ss-component-new 1.3.382 → 1.3.384
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-COQzSlop.js → MTLLoader-BQHXDxnO.js} +1 -1
- package/dist/{MTLLoader-DAuK2Puz.cjs → MTLLoader-CkcKuBZC.cjs} +1 -1
- package/dist/{OrbitControls-BSpF9hj8.js → OrbitControls-BLTRuhDa.js} +1 -1
- package/dist/{OrbitControls-knTPRn96.cjs → OrbitControls-DE3CExKk.cjs} +1 -1
- package/dist/{URDFLoader-D6_CEpHZ.cjs → URDFLoader-D8tyuenp.cjs} +1 -1
- package/dist/{URDFLoader-kbmOvMIB.js → URDFLoader-imRRXSC6.js} +2 -2
- package/dist/{animationData-DbE8xWWf.js → animationData-BvgGr_AD.js} +3 -3
- package/dist/{animationData-DmjEvene.cjs → animationData-C0XKzhAY.cjs} +1 -1
- package/dist/{array-BSUZ99oH.js → array-CTY5U_PN.js} +4 -4
- package/dist/{array-BvQOaFxO.cjs → array-sBmECoLs.cjs} +1 -1
- package/dist/{clone-mFCVwr-G.js → clone-C1cp_ZPA.js} +1 -1
- package/dist/clone-ClJmDMw-.cjs +1 -0
- package/dist/{eleIcon-CiJIZabf.js → eleIcon-B_axj8bR.js} +1 -1
- package/dist/{eleIcon-D20IQFYA.cjs → eleIcon-Dr0KcGoI.cjs} +1 -1
- package/dist/{iconfont-DDZGPkz5.cjs → iconfont-CgUOBkc4.cjs} +1 -1
- package/dist/{iconfont-D72sm9Jm.js → iconfont-DF-mcDbr.js} +2 -2
- package/dist/{index-Bf5kpdKA.js → index-9f9f04mZ.js} +4 -4
- package/dist/{index-DnwmGvcp.js → index-B-H0eGnk.js} +8075 -8063
- package/dist/{index-Dub2SbvH.cjs → index-B1FeUhQ3.cjs} +1 -1
- package/dist/index-B1fJDMjR.cjs +1 -0
- package/dist/{index-BvPKncXn.cjs → index-B6tumL2U.cjs} +1 -1
- package/dist/{index-DIfJQHZp.js → index-B8Y_9tEG.js} +3 -3
- package/dist/{index-BZCpc5VL.js → index-B9g2i970.js} +22 -22
- package/dist/index-BA7_vyhG.cjs +1 -0
- package/dist/{index-DxRhIGgJ.js → index-BCT70WiL.js} +18 -18
- package/dist/{index-CKcz17VF.cjs → index-BELWa90a.cjs} +1 -1
- package/dist/{index--l3tMF8l.cjs → index-BGmW1CP0.cjs} +1 -1
- package/dist/{index-BEli6-9O.cjs → index-BUD_iRcK.cjs} +6 -6
- package/dist/{index-Bx95j-0r.cjs → index-BYFXJgbP.cjs} +1 -1
- package/dist/{index-DkTQi1Vq.js → index-Bc2mOUH-.js} +1 -1
- package/dist/{index-DljiGtdC.cjs → index-BcDE44RI.cjs} +1 -1
- package/dist/{index-Ck1Oilyz.cjs → index-BjMprvSX.cjs} +1 -1
- package/dist/{index-P8lg86z4.js → index-Bldno7Iy.js} +10 -10
- package/dist/{index-CmYd6_TA.js → index-BmZwVwZC.js} +1 -1
- package/dist/{index-KB0XWCq4.cjs → index-Bon3pRBp.cjs} +1 -1
- package/dist/index-BqY1Tkyr.cjs +25 -0
- package/dist/{index-0AwREool.cjs → index-BrM2852p.cjs} +1 -1
- package/dist/{index-eh2g6__P.js → index-BrWiuGP2.js} +2 -2
- package/dist/{index-DFGJd-mG.cjs → index-BtSPIq4_.cjs} +1 -1
- package/dist/{index-Ff9cJTW6.cjs → index-Btb3Lv0L.cjs} +1 -1
- package/dist/{index-CzsK_2wL.cjs → index-BvxR8f8X.cjs} +1 -1
- package/dist/{index-DvSKkDLq.js → index-ByUugKZ4.js} +1 -1
- package/dist/{index-B2-ME7I0.cjs → index-C1mWisuO.cjs} +1 -1
- package/dist/{index-WnDj_ILy.cjs → index-C93sz4z1.cjs} +1 -1
- package/dist/{index-6nl_N4qo.cjs → index-CA6wKd_G.cjs} +1 -1
- package/dist/{index-DtAHjBND.js → index-CEQD4kWk.js} +4 -4
- package/dist/{index-BRaaqaJs.js → index-CKzb7xC4.js} +2 -2
- package/dist/index-CNivaVr-.cjs +2 -0
- package/dist/{index-meO4_UNB.cjs → index-CR69-jEg.cjs} +1 -1
- package/dist/{index-BrBW7tRO.cjs → index-CRJ8dFCC.cjs} +2 -2
- package/dist/{index-BjuzVLIW.js → index-CV8KZP8q.js} +2 -2
- package/dist/{index-QpJbzLNb.js → index-CafzZfEy.js} +59 -50
- package/dist/{index-CGQcujDu.js → index-CbJj36LL.js} +2 -2
- package/dist/{index-IiRA9o9r.cjs → index-Cq_4-egL.cjs} +1 -1
- package/dist/{index-D32grlvH.js → index-CxatyCqn.js} +191 -191
- package/dist/{index-DsMPZC4m.js → index-D5eCm00g.js} +5 -5
- package/dist/{index-ziWPnxXp.js → index-DAvhF5vB.js} +8 -8
- package/dist/{index-Bq0PnZa6.cjs → index-DAw4LkTg.cjs} +1 -1
- package/dist/{index-DQ6jmi_D.cjs → index-DEJ3o_Up.cjs} +1 -1
- package/dist/index-DFkCQ0f_.js +10279 -0
- package/dist/{index-CMK4Oemk.js → index-DHAhIKmQ.js} +2 -2
- package/dist/{index-DCSqmK8s.js → index-DJ53lh6a.js} +3 -3
- package/dist/{index-Adu9r9O6.js → index-DKdzfYLA.js} +4 -4
- package/dist/index-DPM6pfAI.js +161 -0
- package/dist/{index-CIGlEa5l.js → index-DUq4XELr.js} +1 -1
- package/dist/index-DWBWvNDH.js +991 -0
- package/dist/{index-DPpm7s-I.cjs → index-DieG68B-.cjs} +1 -1
- package/dist/{index-CW4qJdP8.cjs → index-DmwxzDGW.cjs} +1 -1
- package/dist/{index-A81u786j.js → index-Dz6JFp0r.js} +2 -2
- package/dist/{index-B4CN6AYM.js → index-GYxiPBtz.js} +5 -5
- package/dist/{index-CTMMHmwj.js → index-OJlYJM1j.js} +261 -257
- package/dist/{index-DkYlSN6W.js → index-PL7-PIPs.js} +2 -2
- package/dist/{index-DMmOKrQZ.cjs → index-TRkfc1lq.cjs} +1 -1
- package/dist/{index-BJ-thkmN.cjs → index-aYsnw0xY.cjs} +1 -1
- package/dist/{index-Fmivd5TB.js → index-heDO7aCF.js} +2 -2
- package/dist/{index-DntOrygq.js → index-jFCWOSpo.js} +6 -6
- package/dist/{index-D-CWxIQ_.cjs → index-n7GfhOVN.cjs} +1 -1
- package/dist/{index-BKmXhP9j.cjs → index-q2BN200x.cjs} +1 -1
- package/dist/{index-CyCYlmRK.js → index-roi8I5S3.js} +1 -1
- package/dist/{index-BZWiTy-K.cjs → index-xttC7OK3.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-1iUOnCnG.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B9qUQdPf.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CvrpCION.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DeDQ2Vpf.js} +4 -4
- package/dist/{isString-DNBlKLZH.cjs → isString-CGrvcmBw.cjs} +1 -1
- package/dist/{isString-D42PBiNa.js → isString-ChmgnNIb.js} +1 -1
- package/dist/{main-CRDks8iO.cjs → main-CpVlWVrP.cjs} +1 -1
- package/dist/{main-8ogz4WPH.js → main-y6n9UlHW.js} +4 -4
- package/dist/{menuIndex-4akJxcU5.cjs → menuIndex-CYeoqj0a.cjs} +1 -1
- package/dist/{menuIndex-DUFFnrEE.js → menuIndex-D3tjk7D7.js} +1 -1
- package/dist/{request-BC2w2vGr.cjs → request-Dl8yi2iS.cjs} +6 -6
- package/dist/{request-CbksSN84.js → request-XJsZ4h2T.js} +80 -79
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +12 -12
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +13 -13
- package/dist/{threeModel-BltK6ahE.js → threeModel-C5eTXG0s.js} +5 -5
- package/dist/{threeModel-pBCJbJUj.cjs → threeModel-Dg-07eQL.cjs} +1 -1
- package/dist/{threePreview-LzLgioUW.cjs → threePreview-CszWwdug.cjs} +1 -1
- package/dist/{threePreview-qDH9f8Ts.js → threePreview-DNQsBr54.js} +5 -5
- package/dist/{threeSceneView-Dj7Ei0tl.cjs → threeSceneView-BU4wHFeI.cjs} +1 -1
- package/dist/{threeSceneView-lpkLya7B.js → threeSceneView-DUmO1oB5.js} +39 -39
- package/dist/{threeSceneViewForCPMPIP-u6-wkzf5.js → threeSceneViewForCPMPIP-CC-c7ijL.js} +9 -9
- package/dist/{threeSceneViewForCPMPIP-CWy6aopm.cjs → threeSceneViewForCPMPIP-KrPFDjjY.cjs} +1 -1
- package/dist/{threeTrackPathView-ChBJzHaY.js → threeTrackPathView-CNw6tT-i.js} +6 -6
- package/dist/{threeTrackPathView-B9p_9ESK.cjs → threeTrackPathView-D09nMCuF.cjs} +1 -1
- package/dist/{threeViewerHost-CSn-5XgQ.cjs → threeViewerHost-Df7LK7Wh.cjs} +1 -1
- package/dist/{threeViewerHost-DuJdDO8l.js → threeViewerHost-yEXWE3BL.js} +3 -3
- package/dist/{urdfTree-CPWlk_zb.cjs → urdfTree-BRAUDT58.cjs} +1 -1
- package/dist/{urdfTree-CHqT5mZW.js → urdfTree-WPGh2KP8.js} +1 -1
- package/dist/{workpieceTreePanel-6yKh6IEH.cjs → workpieceTreePanel-D4MJD2ee.cjs} +1 -1
- package/dist/{workpieceTreePanel-BtXiR5Fg.js → workpieceTreePanel-DFlTuJZM.js} +4 -4
- package/package.json +1 -1
- package/dist/clone-lZuOJI1b.cjs +0 -1
- package/dist/index-BXP2Ie3L.js +0 -619
- package/dist/index-Bi-PYsF7.js +0 -151
- package/dist/index-COvTB4A8.js +0 -10242
- package/dist/index-D7H81vN9.cjs +0 -1
- package/dist/index-E8q1Dd5H.cjs +0 -2
- package/dist/index-MaP8ZSc8.cjs +0 -25
- package/dist/index-mHYDJOd1.cjs +0 -1
package/dist/index-MaP8ZSc8.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";var Bu=Object.defineProperty;var Tu=(a,l,r)=>l in a?Bu(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r;var Wr=(a,l,r)=>Tu(a,typeof l!="symbol"?l+"":l,r);const e=require("vue"),ja=require("./request-BC2w2vGr.cjs"),A=require("./index-BEli6-9O.cjs"),ll=require("./index-meO4_UNB.cjs"),ve=require("./index-BrBW7tRO.cjs"),Zl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Bl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-1iUOnCnG.cjs"),wr=require("./index-BOkUwKV5.cjs"),So=require("./threeViewerHost-CSn-5XgQ.cjs"),Nr=require("./index-CW4qJdP8.cjs"),es=require("./index--l3tMF8l.cjs"),Ks=require("./index-Ff9cJTW6.cjs");;/* empty css */const Eo=require("./isString-DNBlKLZH.cjs"),as=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Gs=require("./index-BVaHwt5f.cjs"),Nu=require("./index-Bx95j-0r.cjs"),Mn=require("./MTLLoader-DAuK2Puz.cjs"),Au=require("./URDFLoader-D6_CEpHZ.cjs");var zu="[object Boolean]";function Ys(a){return a===!0||a===!1||ja.isObjectLike(a)&&ja.baseGetTag(a)==zu}function Mu(a){return a===void 0}const Iu=a=>a.match(/\((.*)\)/)[1],Ou={__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(a){const l=a,r=e.ref(null),n=e.ref(!1),t=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{n.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>t.value,()=>{e.nextTick(()=>{var s,v;(v=(s=r.value)==null?void 0:s.updatePopper)==null||v.call(s)})},{deep:!0,immediate:!0}),(s,v)=>{const f=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(f,{visible:n.value,"onUpdate:visible":v[0]||(v[0]=d=>n.value=d),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:t})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Lu=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,r=e.computed(()=>{var d,y,g,c,D,O;const n=l.value??"";let t=(d=l==null?void 0:l.columnContent)==null?void 0:d.filter;if(t=(y=ve.analyzeSplitToContent(t,","))==null?void 0:y.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k)),t=t==null?void 0:t.find(k=>(k==null?void 0:k[0])==="("),(t==null?void 0:t[0])==="("&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),t=t==null?void 0:t.split("||"),!t)return{backgroundColor:void 0,color:void 0};let s=(c=(g=l==null?void 0:l.columnContent)==null?void 0:g.options)==null?void 0:c.findIndex(k=>(k==null?void 0:k.value)===n);s=t==null?void 0:t[s],s=ve.analyzeSplitToContent(s,","),s=s==null?void 0:s.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k));let v=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextBackRGBA"));v?v=ve.rgbaToColor((D=v==null?void 0:v.split("="))==null?void 0:D[1]):v=void 0;let f=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextRGBA"));return f?f=ve.rgbaToColor((O=f==null?void 0:f.split("="))==null?void 0:O[1]):f=void 0,{backgroundColor:v,color:f}});return(n,t)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(r.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Ru=Zl._export_sfc(Lu,[["__scopeId","data-v-3290070b"]]);function $u(a,l,r,n={}){if(!a||!l||!r||r.length!==4)return;const t=a.getContext("2d");if(!t)return;const{color:s="rgba(255, 235, 59, 0.3)",strokeWidth:v=2,fillOpacity:f=.2}=n,d=a.getBoundingClientRect(),y=l.getBoundingClientRect(),g=l.naturalWidth,c=l.naturalHeight,D=y.width/g,O=y.height/c,k=Math.min(D,O),K=g*k,M=c*k,R=(d.width-K)/2,j=(d.height-M)/2,E=r.map(([x,b])=>{const _=R+x*K,$=j+b*M;return{x:_,y:$}});t.clearRect(0,0,a.width,a.height),t.beginPath(),t.moveTo(E[0].x,E[0].y);for(let x=1;x<E.length;x++)t.lineTo(E[x].x,E[x].y);t.closePath();const w=s.replace(/[\d.]+\)$/,`${f})`);t.fillStyle=w,t.fill(),t.strokeStyle=s.replace(/[\d.]+\)$/,"1)"),t.lineWidth=v,t.stroke()}function ki(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ls(a,l){if(!a||!l)return null;const r=a[l];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const Vu={key:0,class:"ocr-img-preview-root"},Fu={class:"ocr-img-preview-window"},Pu={key:0,class:"img-preview-body"},ju={class:"img-preview-header"},Hu={class:"img-header-left"},Uu={class:"img-name"},qu={key:0,class:"img-header-right"},Wu={class:"img-index"},Ku={key:0,class:"img-thumb-list"},Gu=["onClick"],Yu={key:1,class:"thumb-placeholder"},Ju={class:"thumb-name"},Xu={class:"img-preview-container"},Zu={key:0,class:"img-placeholder"},Qu={key:2,class:"img-placeholder"},ed={key:0},ad={key:1},ld={key:1,class:"img-placeholder"},rd=e.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(a,{emit:l}){const r=a,n=l,t=e.computed({get:()=>r.visible,set:N=>n("update:visible",N)});let s=!1,v="",f=0,d=0,y=0,g=0,c=0,D=0,O=null;const k=N=>{var U,Se;const de=(Se=(U=N==null?void 0:N.target)==null?void 0:U.closest)==null?void 0:Se.call(U,".ocr-img-preview-window");return de||document.querySelector(".ocr-img-preview-window")},K=N=>{if(!N||N==="none")return{tx:0,ty:0};let de=N.match(/matrix\(([^)]+)\)/);if(de){const U=de[1].split(",").map(Se=>Number(Se.trim()));return{tx:(U==null?void 0:U[4])||0,ty:(U==null?void 0:U[5])||0}}if(de=N.match(/matrix3d\(([^)]+)\)/),de){const U=de[1].split(",").map(Se=>Number(Se.trim()));return{tx:(U==null?void 0:U[12])||0,ty:(U==null?void 0:U[13])||0}}return de=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),de?{tx:Number(de[1])||0,ty:Number(de[2])||0}:{tx:0,ty:0}},M=(N,de,U)=>{N.style.transform=`translate(${de}px, ${U}px)`},R=N=>{const de=k(N);if(!de)return;s=!0,O=de,v="move",f=N.clientX,d=N.clientY;const U=window.getComputedStyle(de),{tx:Se,ty:Oe}=K(U.transform);c=Se,D=Oe,document.addEventListener("mousemove",E),document.addEventListener("mouseup",w)},j=(N,de)=>{const U=k(N);if(!U)return;s=!0,O=U,v=de,f=N.clientX,d=N.clientY;const Se=U.getBoundingClientRect();y=Se.width,g=Se.height;const Oe=window.getComputedStyle(U),{tx:Fe,ty:la}=K(Oe.transform);c=Fe,D=la,document.addEventListener("mousemove",E),document.addEventListener("mouseup",w)},E=N=>{if(!s||!O)return;const de=N.clientX-f,U=N.clientY-d,Se=360,Oe=420;let Fe=y,la=g,Da=c,re=D;if(v==="move"){Da=c+de,re=D+U,M(O,Da,re);return}if(v.includes("right")&&(Fe=Math.max(Se,y+de)),v.includes("bottom")&&(la=Math.max(Oe,g+U)),v.includes("left")){const ca=y-de;ca<Se?(Fe=Se,Da=c+(y-Se)):(Fe=ca,Da=c+de)}if(v.includes("top")){const ca=g-U;ca<Oe?(la=Oe,re=D+(g-Oe)):(la=ca,re=D+U)}O.style.width=`${Fe}px`,O.style.height=`${la}px`,M(O,Da,re)},w=()=>{s=!1,v="",O=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w)},x=e.ref([]),b=e.ref(!1);e.watch(()=>r.images,async N=>{if(!Array.isArray(N)||N.length===0){x.value=[];return}b.value=!0;const de=[];for(const U of N)if(U.url&&!U.url.startsWith("blob:")&&!U.url.startsWith("http"))try{const Se=await Bl.downloadFile(U.url),Oe=URL.createObjectURL(Se);de.push({...U,blobUrl:Oe})}catch(Se){console.error(`Failed to load image for preview: ${U.url}`,Se),de.push({...U,blobUrl:""})}else de.push({...U,blobUrl:U.url});x.value=de,b.value=!1},{deep:!0,immediate:!0});const _=e.ref(0),$=e.ref(null),F=e.ref(null),J=e.computed(()=>x.value[_.value]||null),ce=()=>{if(!x.value.length){_.value=0;return}if(r.defaultImageName){const N=x.value.findIndex(de=>(de==null?void 0:de.name)===r.defaultImageName);_.value=N>=0?N:0}else _.value=0},be=N=>{if(!x.value.length)return;const de=Math.max(0,Math.min(N,x.value.length-1));_.value=de},Me=()=>be(_.value-1),V=()=>be(_.value+1),fe=N=>{if(!N)return;const de=x.value.findIndex(U=>(U==null?void 0:U.name)===N);de>=0&&(_.value=de)},le=()=>{if(!F.value)return;const N=F.value.parentElement;if(!N)return;const de=N.getBoundingClientRect();F.value.width=de.width,F.value.height=de.height},pe=()=>{var Se,Oe;if(!F.value||!$.value||!r.focusedFieldName){F.value&&ki(F.value);return}const N=(Se=$.value.$el)==null?void 0:Se.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{pe()})};return}const de=((Oe=J.value)==null?void 0:Oe.name)||"",U=ls(r.fieldMeta,r.focusedFieldName);if(!U){ki(F.value);return}if(U.imageName!==de){ki(F.value);return}le(),$u(F.value,N,U.bboxNorm)},De=()=>{e.nextTick(()=>{le(),pe()})};e.watch(()=>r.focusedFieldName,()=>{if(!t.value)return;const N=ls(r.fieldMeta,r.focusedFieldName);N!=null&&N.imageName&&fe(N.imageName),e.nextTick(()=>{pe()})}),e.watch(()=>{var N;return(N=J.value)==null?void 0:N.name},()=>{t.value&&e.nextTick(()=>{F.value&&ki(F.value),pe()})}),e.watch(()=>r.visible,N=>{N?(ce(),e.nextTick(()=>{le(),pe()})):F.value&&ki(F.value)}),e.watch(()=>r.defaultImageName,()=>{t.value&&ce()});let Ve=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&(Ve=new ResizeObserver(()=>{le(),e.nextTick(()=>{pe()})}),(N=F.value)!=null&&N.parentElement&&Ve.observe(F.value.parentElement))}),e.onUnmounted(()=>{Ve&&(Ve.disconnect(),Ve=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w)});const ge=()=>{F.value&&ki(F.value),n("update:visible",!1),n("close")};return(N,de)=>{var la,Da;const U=e.resolveComponent("el-button"),Se=e.resolveComponent("el-image"),Oe=e.resolveComponent("Loading"),Fe=e.resolveComponent("el-icon");return t.value?(e.openBlock(),e.createElementBlock("div",Vu,[de[12]||(de[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",Fu,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(R,["stop"])},[de[8]||(de[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ge},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:de[0]||(de[0]=e.withModifiers(re=>j(re,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:de[1]||(de[1]=e.withModifiers(re=>j(re,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:de[2]||(de[2]=e.withModifiers(re=>j(re,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:de[3]||(de[3]=e.withModifiers(re=>j(re,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:de[4]||(de[4]=e.withModifiers(re=>j(re,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:de[5]||(de[5]=e.withModifiers(re=>j(re,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:de[6]||(de[6]=e.withModifiers(re=>j(re,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:de[7]||(de[7]=e.withModifiers(re=>j(re,"bottom-right"),["stop"]))},null,32),J.value?(e.openBlock(),e.createElementBlock("div",Pu,[e.createElementVNode("div",ju,[e.createElementVNode("div",Hu,[e.createElementVNode("span",Uu,e.toDisplayString(J.value.name?J.value.name+(J.value.url&&J.value.url.lastIndexOf(".")!==-1?J.value.url.substring(J.value.url.lastIndexOf(".")):""):""),1)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",qu,[e.createVNode(U,{size:"small",disabled:_.value===0,onClick:Me},{default:e.withCtx(()=>de[9]||(de[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Wu,e.toDisplayString(_.value+1)+" / "+e.toDisplayString(x.value.length),1),e.createVNode(U,{size:"small",disabled:_.value===x.value.length-1,onClick:V},{default:e.withCtx(()=>de[10]||(de[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Ku,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(re,ca)=>(e.openBlock(),e.createElementBlock("div",{key:(re.name||"")+"-"+ca,class:e.normalizeClass(["img-thumb-item",{active:ca===_.value}]),onClick:se=>be(ca)},[re!=null&&re.blobUrl?(e.openBlock(),e.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"])):(e.openBlock(),e.createElementBlock("div",Yu,"加载失败")),e.createElementVNode("div",Ju,e.toDisplayString(re.name||"-"),1)],10,Gu))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Xu,[b.value?(e.openBlock(),e.createElementBlock("div",Zu,[e.createVNode(Fe,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Oe)]),_:1}),de[11]||(de[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(la=J.value)!=null&&la.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Se,{ref_key:"imageRef",ref:$,src:J.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[J.value.blobUrl],onLoad:De},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:F,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",Qu,[(Da=J.value)!=null&&Da.url?(e.openBlock(),e.createElementBlock("span",ed,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",ad,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",ld,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),nd=Zl._export_sfc(rd,[["__scopeId","data-v-48a4ecb1"]]),id={class:"cert-preview-body"},od={key:0,class:"pdf-preview-container"},td={class:"thumbs"},sd=["onClick"],cd={class:"thumb-img"},ud=["src"],dd={key:1,class:"thumb-loading"},pd={class:"thumb-title"},fd={class:"viewer"},hd={key:0,class:"viewer-img-wrap"},vd=["src"],md={key:1,class:"viewer-loading"},yd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(""),s=e.ref(""),v=e.computed(()=>(r.versions||[]).find(k=>String(k.versionId)===String(t.value))),f=e.ref({}),d=e.ref(""),y=e.ref("证书附件.pdf"),g=()=>{try{Object.values(f.value||{}).forEach(k=>{k&&URL.revokeObjectURL(k)}),d.value&&URL.revokeObjectURL(d.value)}catch{}f.value={},d.value=""},c=async k=>{if(!k||k.fileType==="pdf")return;const K=Array.isArray(k.images)?k.images:[];for(const M of K){const R=M==null?void 0:M.url;if(!(!R||f.value[R]))try{const j=await A.platformDownloadFile({url:R}),E=URL.createObjectURL(j.data);f.value={...f.value,[R]:E}}catch{}}},D=async k=>{var M;if(!k||k.fileType!=="pdf"){d.value="";return}const K=k.sourceUrl||"";if(!K){d.value="";return}if(d.value){try{URL.revokeObjectURL(d.value)}catch{}d.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:K,versionId:k==null?void 0:k.versionId,certNo:k==null?void 0:k.certNo});const R=await A.platformDownloadFile({url:K});console.log("[CertificatePreview] PDF响应:",{url:K,status:R==null?void 0:R.status,size:(M=R==null?void 0:R.data)==null?void 0:M.size});const j=URL.createObjectURL(R.data);d.value=j;const E=k.certNo?String(k.certNo):"";y.value=E?`${E}.pdf`:"证书附件.pdf"}catch(R){console.error("[CertificatePreview] PDF加载失败:",{url:K,error:R}),d.value=""}};e.watch(()=>r.visible,async k=>{var M;if(!k){g();return}const K=(M=r.versions)==null?void 0:M[0];t.value=(K==null?void 0:K.versionId)||"",await c(K),await D(K)},{immediate:!0}),e.watch(()=>t.value,async()=>{var K,M;const k=v.value;if(!k){s.value="",d.value="";return}if(k.fileType==="pdf"){s.value="",await D(k);return}d.value="",s.value=((M=(K=k.images)==null?void 0:K[0])==null?void 0:M.url)||"",await c(k)},{immediate:!0});const O=()=>{n("update:visible",!1),g()};return e.onBeforeUnmount(()=>{g()}),(k,K)=>{const M=e.resolveComponent("el-empty"),R=e.resolveComponent("el-tab-pane"),j=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),w=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(w,{"model-value":k.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:O},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:O},{default:e.withCtx(()=>K[1]||(K[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[k.versions&&k.versions.length>0?(e.openBlock(),e.createBlock(j,{key:0,modelValue:t.value,"onUpdate:modelValue":K[0]||(K[0]=x=>t.value=x),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.versions,x=>(e.openBlock(),e.createBlock(R,{key:x.versionId,name:x.versionId,label:x.label},{default:e.withCtx(()=>[e.createElementVNode("div",id,[x.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",od,[d.value?(e.openBlock(),e.createBlock(ll.SsFilePreview,{key:1,fileName:y.value,blobUrl:d.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(M,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",td,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.images||[],b=>(e.openBlock(),e.createElementBlock("div",{key:b.url,class:e.normalizeClass(["thumb",{active:b.url===s.value}]),onClick:_=>s.value=b.url},[e.createElementVNode("div",cd,[f.value[b.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:f.value[b.url]},null,8,ud)):(e.openBlock(),e.createElementBlock("div",dd,"加载中"))]),e.createElementVNode("div",pd,e.toDisplayString(b.name),1)],10,sd))),128))]),e.createElementVNode("div",fd,[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value[s.value]?(e.openBlock(),e.createElementBlock("div",hd,[e.createElementVNode("img",{class:"viewer-img",src:f.value[s.value]},null,8,vd)])):(e.openBlock(),e.createElementBlock("div",md,"加载中"))],64)):(e.openBlock(),e.createBlock(M,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(M,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),gd=Zl._export_sfc(yd,[["__scopeId","data-v-220703c0"]]),bd={class:"ocr-candidate-wrap"},kd={class:"ocr-candidate-left"},xd={key:1},wd={key:0},_d={key:1},Sd={key:2},Ed={key:3},Cd={key:0,class:"ocr-candidate-right"},Dd={class:"ocr-candidate-actions"},Bd={key:1},Td={class:"dialog-footer"},Nd={__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(a,{emit:l}){const r=(_=[])=>{const $=[],F=J=>{(J||[]).forEach(ce=>{if(!ce)return;const be=ce.children||ce.childrens||ce.columns;Array.isArray(be)&&be.length>0?F(be):$.push(ce)})};return F(_),$},n=a,t=l,s=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowAdd)!==!1}),v=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowReplace)!==!1}),f=_=>{if(!_)return[];if(Array.isArray(_))return _;if(typeof _=="string")try{const $=JSON.parse(_);return Array.isArray($)?$:[]}catch{return[]}return[]},d=_=>{t("preview-file",_)},y=e.ref([]),g=e.ref(0),c=e.ref("");e.watch(()=>n.candidates,_=>{var $,F;y.value=(_||[]).map(J=>({...J,...(J==null?void 0:J.ocrRow)||{},selectedTargetId:(J==null?void 0:J.selectedTargetId)||"",__decision:J==null?void 0:J.__decision})),g.value=0,c.value=((F=($=y.value)==null?void 0:$[0])==null?void 0:F.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>n.visible,_=>{var $,F;_&&(g.value=0,c.value=((F=($=y.value)==null?void 0:$[0])==null?void 0:F.selectedTargetId)||"")});const D=e.computed(()=>{var $;const _=Number(g.value||0);return(($=y.value||[])==null?void 0:$[_])||null}),O=e.computed(()=>(r(n.columns||[])||[]).filter(F=>F&&F.prop).filter(F=>F.type!=="operate"&&F.label!=="操作"&&F.prop!=="operate")),k=e.computed(()=>O.value.filter(_=>_.label!=="证书附件"&&_.prop!=="证书附件")),K=_=>{if(!_)return;const $=(y.value||[]).findIndex(F=>(F==null?void 0:F.idx)===(_==null?void 0:_.idx));$>-1&&(g.value=$,c.value=(_==null?void 0:_.selectedTargetId)||"")},M=_=>{if(!_){c.value="";return}c.value=String((_==null?void 0:_.id)??"")},R=(_,$="")=>{const F=Number(g.value||0),J=y.value||[],ce=J[F];ce&&(ce.__decision=_,ce.selectedTargetId=$,c.value=$,y.value=[...J])},j=()=>R("skip",""),E=()=>R("add",""),w=()=>{if(!c.value){ja.ElMessage.warning("请先选择要替换的目标记录");return}R("replace",c.value)},x=()=>{t("update:visible",!1)},b=()=>{const _=y.value||[];if(_.find(F=>(F==null?void 0:F.__decision)==="replace"&&!(F!=null&&F.selectedTargetId))){ja.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}t("submit",_),t("update:visible",!1)};return(_,$)=>{const F=e.resolveComponent("el-table-column"),J=e.resolveComponent("svg-icon"),ce=e.resolveComponent("el-table"),be=e.resolveComponent("el-button"),Me=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(wr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:x},{default:e.withCtx(()=>{var V,fe;return[e.createElementVNode("div",bd,[e.createElementVNode("div",kd,[$[0]||($[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(ce,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:K},{default:e.withCtx(()=>[e.createVNode(F,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,le=>(e.openBlock(),e.createBlock(F,{key:le.prop,label:le.label,prop:le.prop,"min-width":le.minWidth||160},{default:e.withCtx(({row:pe})=>[le.label==="证书附件"||le.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[f(pe==null?void 0:pe[le.prop]).length>0?(e.openBlock(),e.createBlock(J,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(De=>d({row:pe,prop:le.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",xd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((pe==null?void 0:pe[le.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(F,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:le})=>[e.createTextVNode(e.toDisplayString(((le==null?void 0:le.candidates)||[]).length),1)]),_:1}),e.createVNode(F,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:le})=>[(le==null?void 0:le.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",wd,"替换")):(le==null?void 0:le.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",_d,"新增")):(le==null?void 0:le.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Sd,"跳过")):(e.openBlock(),e.createElementBlock("span",Ed,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(e.openBlock(),e.createElementBlock("div",Cd,[$[4]||($[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Dd,[e.createVNode(be,{id:"themeBorderButton",onClick:j},{default:e.withCtx(()=>$[1]||($[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(be,{id:"themeBorderButton",onClick:E,disabled:!s.value},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(be,{class:"ok-button",id:"themeButton",onClick:w,disabled:!v.value||!c.value},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((V=D.value)==null?void 0:V.candidates)||[]).length===0?(e.openBlock(),e.createBlock(Me,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(ce,{data:((fe=D.value)==null?void 0:fe.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:M,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(F,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,le=>(e.openBlock(),e.createBlock(F,{key:le.prop,label:le.label,prop:le.prop,"min-width":le.minWidth||160},{default:e.withCtx(({row:pe})=>[le.label==="证书附件"||le.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[f(pe==null?void 0:pe[le.prop]).length>0?(e.openBlock(),e.createBlock(J,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(De=>d({row:pe,prop:le.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Bd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((pe==null?void 0:pe[le.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Td,[e.createVNode(be,{id:"themeBorderButton",onClick:x},{default:e.withCtx(()=>$[5]||($[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(be,{class:"ok-button",id:"themeButton",onClick:b},{default:e.withCtx(()=>$[6]||($[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Ad=Zl._export_sfc(Nd,[["__scopeId","data-v-89e0489c"]]),zd={class:"ocr-preview-content"},Md={class:"ocr-preview-tip"},Id={class:"ocr-preview-table"},Od={style:{display:"flex","align-items":"center",gap:"8px"}},Ld={class:"dialog-footer"},Rd={__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(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref([]),v=e.ref([]);e.watch(()=>r.visible,O=>{O&&(t.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),s.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),v.value=[...r.ocrSelectedFields])});const f=(O,k)=>{const K=[...v.value];if(k)K.includes(O)||K.push(O);else{const M=K.indexOf(O);M>-1&&K.splice(M,1)}v.value=K,n("update:ocrSelectedFields",K)},d=(O,k,K)=>{n("fieldChange",{rowIndex:O,prop:k,value:K})},y=()=>{n("update:ocrPreviewData",t.value),n("confirm",t.value),n("update:visible",!1)},g=()=>{n("update:visible",!1)},c=O=>typeof O!="number"?"-":`${(O*100).toFixed(1)}%`,D=O=>typeof O!="number"?"#606266":O>=.9?"#67c23a":O>=.7?"#e6a23c":"#f56c6c";return(O,k)=>{const K=e.resolveComponent("el-alert"),M=e.resolveComponent("el-table-column"),R=e.resolveComponent("el-checkbox"),j=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),w=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(wr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:g,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",zd,[e.createElementVNode("div",Md,[e.createVNode(K,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Id,[e.createVNode(E,{data:t.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(M,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,x=>(e.openBlock(),e.createBlock(M,{key:x.prop,prop:x.prop,"min-width":x.minWidth||230,"class-name":x.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Od,[x.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(R,{key:0,"model-value":v.value.includes(x.prop),onChange:b=>f(x.prop,b),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(x.label),1)])]),default:e.withCtx(({row:b,$index:_})=>[x.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:D(b[x.prop]),fontWeight:500})},e.toDisplayString(c(b[x.prop])),5)):(e.openBlock(),e.createBlock(j,{key:1,modelValue:b[x.prop],"onUpdate:modelValue":$=>b[x.prop]=$,size:"small",placeholder:"请输入"+x.label,onChange:$=>d(_,x.prop,$)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ld,[e.createVNode(w,{onClick:g,id:"themeBorderButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(w,{class:"ok-button",onClick:y,id:"themeButton"},{default:e.withCtx(()=>k[2]||(k[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},$d=Zl._export_sfc(Rd,[["__scopeId","data-v-df66eb1f"]]),ji=a=>{var n;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let r=(n=ve.analyzeSplitToContent(l,","))==null?void 0:n.map(t=>((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)),un(t)));return r=r==null?void 0:r.join(","),r};function Js(a){return ja.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function Vd(a){return ja.axios.get(a,{responseType:"blob"})}let Kl="$R",Fd="http://222.92.178.198:55002/AIRobot",tt=["Form","BarChart","FormText","FormBlock"];const Xs=a=>{var r,n;let l=(n=ve.analyzeSplitToContent(a,"@"))==null?void 0:n[((r=ve.analyzeSplitToContent(a,"@"))==null?void 0:r.length)-1];return!!(tt!=null&&tt.some(t=>l==null?void 0:l.includes(t)))},Pd=async(a,l,r,n)=>{var s,v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca;let t=a;if(Xs(t==null?void 0:t[0])){let se=Gd(t),da=(s=se==null?void 0:se.filter)==null?void 0:s.join(","),Ee=[];(v=se==null?void 0:se.hideContents)==null||v.forEach(Ue=>{if(Ue){const sa=Ue;sa&&Ee.push(`(HideGroup=Yes, prop=${sa})`)}});let te=(f=se==null?void 0:se.formContents)==null?void 0:f.filter(Ue=>{var sa;return(sa=Ue==null?void 0:Ue.filters)==null?void 0:sa.includes("@ShowHide=Hide")});(te==null?void 0:te.length)>0&&(te==null||te.forEach(Ue=>{if(Ue){const sa=Ue==null?void 0:Ue.prop;sa&&Ee.push(`(Hide=Yes, prop=${sa})`)}}));let Ae=(n==null?void 0:n.menuFilter)??[];return Array.isArray(Ae)||(Ae=Ae?[Ae]:[]),Ae=[...Ae,...Ee],{key:"Form",name:se==null?void 0:se.groupName,value:se==null?void 0:se.formContents,contents:Array.isArray((d=se==null?void 0:se.contents)==null?void 0:d[0])&&((g=(y=se==null?void 0:se.contents)==null?void 0:y[0])!=null&&g.every(Ue=>Array.isArray(Ue)))?[(D=(c=se==null?void 0:se.contents)==null?void 0:c[0])==null?void 0:D[r]]:[se==null?void 0:se.contents],filter:"("+da+")",menuFilter:Ae,groupFilter:se==null?void 0:se.groupFilters}}else if(((O=t==null?void 0:t[0])==null?void 0:O[0])!=="&"){let se=ec(t,n),da="";(k=se==null?void 0:se.tableFilter)!=null&&k.includes(Kl)?se.tableFilter=(K=se==null?void 0:se.tableFilter)==null?void 0:K.replace(Kl,""):da=(j=(R=(M=se==null?void 0:se.tableFilter)==null?void 0:M.replace("(",Kl))==null?void 0:R.split(Kl))==null?void 0:j[0];let Ee=[];se!=null&&se.tableFilter&&((E=ve.analyzeSplitToContent(se==null?void 0:se.tableFilter,","))==null||E.forEach(Ae=>{Ae!=null&&Ae.includes("@ShowHide=Hide")&&Ee.push("HideGroup=Yes")}));let te=(n==null?void 0:n.menuFilter)??[];return Array.isArray(te)||(te=te?[te]:[]),te=[...te,...Ee],{key:"Table",name:se==null?void 0:se.groupName,tableColumns:se==null?void 0:se.tableColumns,assistColumn:se==null?void 0:se.columns,tableContents:l===1?se==null?void 0:se.tableContents:(x=(w=se==null?void 0:se.tableContents)==null?void 0:w[r])!=null&&x.every(Ae=>Array.isArray(Ae))?(b=se==null?void 0:se.tableContents)==null?void 0:b[r]:[(_=se==null?void 0:se.tableContents)==null?void 0:_[r]],filter:se==null?void 0:se.tableFilter,menuFilter:te,quotePage:da!==""?((J=(F=($=da==null?void 0:da.replace("*",Kl))==null?void 0:$.split(Kl))==null?void 0:F[0])==null?void 0:J.replaceAll(":","/"))??"":void 0,quoteGroup:da!==""?((pe=(le=(fe=(V=(Me=(be=(ce=da==null?void 0:da.replace("*",Kl))==null?void 0:ce.split(Kl))==null?void 0:be[1])==null?void 0:Me.replace("{",Kl))==null?void 0:V.split(Kl))==null?void 0:fe[0])==null?void 0:le.split(":"))==null?void 0:pe.filter(Ae=>Ae!==""))??[]:[],relatedQuotes:se==null?void 0:se.relatedQuotes,fatherSyncContents:se==null?void 0:se.fatherSyncContents,sonSyncContents:se==null?void 0:se.sonSyncContents}}else{let se=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],da=t==null?void 0:t[0];da=da==null?void 0:da.slice(1,da==null?void 0:da.length),da=ve.analyzeSplitToContent(da,":"),da=da==null?void 0:da[(da==null?void 0:da.length)-1];let Ee=[];Ee.push("1");let te=da==null?void 0:da.replace("(",Kl);te=(De=te==null?void 0:te.split(Kl))==null?void 0:De[0],Ee.push(te);let Ae=da==null?void 0:da.replace("(",Kl);if(Ae=(Ve=Ae==null?void 0:Ae.split(Kl))==null?void 0:Ve[1],Ae=(N=(ge=Ae==null?void 0:Ae.replace(")",Kl))==null?void 0:ge.split(Kl))==null?void 0:N[0],(U=(de=Ae==null?void 0:Ae.replace(",",Kl))==null?void 0:de.split(Kl))==null||U.forEach(Ue=>{Ee.push(Ue)}),Ee.push(""),Ee.push(""),(Se=Ee==null?void 0:Ee[2])!=null&&Se.includes(".xlsx")||(Oe=Ee==null?void 0:Ee[2])!=null&&Oe.includes(".xls"))try{let Ue=Fd+"/"+(Ee==null?void 0:Ee[2]),sa=await Vd(Ue),Ka=`生成js函数名称为${Ee==null?void 0:Ee[1]}的函数,规则为:`+(Ee==null?void 0:Ee[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((sa==null?void 0:sa.status)===200){let L=sa==null?void 0:sa.data;const H=new FormData;H.append("file",L,Ee==null?void 0:Ee[2]),H.append("query",Ka);let Q=await Js(H);Q=(Da=(la=(Fe=Q==null?void 0:Q.data)==null?void 0:Fe.data)==null?void 0:la.response)==null?void 0:Da.replace("generateResult",Ee==null?void 0:Ee[1]),Ee[Ee.length-2]=Q,Ee[Ee.length-1]=[{name:(ca=(re=Ee==null?void 0:Ee[2])==null?void 0:re.split("."))==null?void 0:ca[0],url:Ue}]}}catch{}return Ee=[Ee],{key:"Method",name:[],tableContents:Ee,tableColumns:se}}},jd=(a,l)=>{var n,t,s,v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee;let r=(t=(n=ve.analyzeSplitToContent(a,"="))==null?void 0:n.filter(te=>te!=="="))==null?void 0:t.map(te=>((te==null?void 0:te[(te==null?void 0:te.length)-1])==="="&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),te));if(Xs(r==null?void 0:r[1])){let te=Kd(r),Ae=(f=(v=(s=te==null?void 0:te.filter)==null?void 0:s.replace("@",Kl))==null?void 0:v.split(Kl))==null?void 0:f[0],Ue=(g=(y=(d=te==null?void 0:te.filter)==null?void 0:d.replace("(",Kl))==null?void 0:y.split(Kl))==null?void 0:g[1],sa=(O=(D=(c=te==null?void 0:te.filter)==null?void 0:c.replace("(",Kl))==null?void 0:D.split(Kl))==null?void 0:O[0];sa="@"+((k=sa==null?void 0:sa.split("@"))==null?void 0:k[1]),Ue=Ue==null?void 0:Ue.slice(0,(Ue==null?void 0:Ue.length)-1),Ue=(M=(K=ve.analyzeSplitToContent(Ue,","))==null?void 0:K.map(L=>(L=sa+L,L)))==null?void 0:M.join("");let Ka=Ae+"("+Ue+")";return{key:"Form",name:te==null?void 0:te.group,filter:Ka,formPage:((E=(j=(R=Ae==null?void 0:Ae.replace("*",Kl))==null?void 0:R.split(Kl))==null?void 0:j[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((J=(F=($=(_=(b=(x=(w=Ae==null?void 0:Ae.replace("*",Kl))==null?void 0:w.split(Kl))==null?void 0:x[1])==null?void 0:b.replace("{",Kl))==null?void 0:_.split(Kl))==null?void 0:$[0])==null?void 0:F.split(":"))==null?void 0:J.filter(L=>L!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let te=ec(r,l,r==null?void 0:r[1]),Ae="";(ce=te==null?void 0:te.tableFilter)!=null&&ce.includes(Kl)?te.tableFilter=(be=te==null?void 0:te.tableFilter)==null?void 0:be.replace(Kl,""):Ae=(fe=(V=(Me=te==null?void 0:te.tableFilter)==null?void 0:Me.replace("(",Kl))==null?void 0:V.split(Kl))==null?void 0:fe[0];let Ue=(De=(pe=(le=te==null?void 0:te.tableFilter)==null?void 0:le.replace("(",Kl))==null?void 0:pe.split(Kl))==null?void 0:De[0];Ue=[{menus:(ge=(Ve=Ue==null?void 0:Ue.split("*"))==null?void 0:Ve[0])==null?void 0:ge.replaceAll(":","/"),groups:((de=(N=Ue==null?void 0:Ue.split("*"))==null?void 0:N[1])==null?void 0:de.split(":"))??[]}];let sa=(Oe=(Se=(U=te==null?void 0:te.tableFilter)==null?void 0:U.replace("(",Kl))==null?void 0:Se.split(Kl))==null?void 0:Oe[1];(sa==null?void 0:sa[(sa==null?void 0:sa.length)-1])===")"&&(sa=sa==null?void 0:sa.slice(0,(sa==null?void 0:sa.length)-1));let Ka=[];te!=null&&te.tableFilter&&((Fe=ve.analyzeSplitToContent(te==null?void 0:te.tableFilter,","))==null||Fe.forEach(H=>{H!=null&&H.includes("@ShowHide=Hide")&&Ka.push("HideGroup=Yes")}));let L=(l==null?void 0:l.menuFilter)??[];return Array.isArray(L)||(L=L?[L]:[]),L=[...L,...Ka],{key:"Table",name:te==null?void 0:te.groupName,filter:te==null?void 0:te.tableFilter,tableColumns:te==null?void 0:te.tableColumns,quotePage:Ae!==""?((re=(Da=(la=Ae==null?void 0:Ae.replace("*",Kl))==null?void 0:la.split(Kl))==null?void 0:Da[0])==null?void 0:re.replaceAll(":","/"))??"":void 0,quoteGroup:Ae!==""?((Ee=(da=(se=(ca=Ae==null?void 0:Ae.replace("*",Kl))==null?void 0:ca.split(Kl))==null?void 0:se[1])==null?void 0:da.split(":"))==null?void 0:Ee.filter(H=>H!==""))??[]:[],menuFilter:L,relatedQuotes:Ue,fatherSyncContents:(te==null?void 0:te.fatherSyncContents)??[],sonSyncContents:(te==null?void 0:te.sonSyncContents)??[]}}},Hd=async(a,l)=>{let r=[],n=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(t,s)=>{let v=[];t=t==null?void 0:t.map(async f=>{var d,y;if(v.push(f),((d=ve.analyzeSplitToContent(a,"="))==null?void 0:d.length)<=2){if(((y=ve.analyzeSplitToContent(a,"="))==null?void 0:y.length)!==0){const g=await Pd(ve.analyzeSplitToContent(a,"="),n,s,f);v.push(g)}}else v.push(jd(a,f))}),await Promise.all(t),r.push(v)}),await Promise.all(l),r};let Fi="/",Ud="$",hn="$R";const Zs=a=>{var r,n,t;let l="";if((a==null?void 0:a.length)>1){let s=a==null?void 0:a.filter((v,f)=>f!==0);s=s==null?void 0:s.join(""),s=ve.analyzerSplitToWord(s,")"),(s==null?void 0:s.length)!==1?(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"?s=s==null?void 0:s.join(""):s=(r=s==null?void 0:s.filter((v,f)=>f!==(s==null?void 0:s.length)-1))==null?void 0:r.join(""):s=s==null?void 0:s[0],l="("+s,((t=a==null?void 0:a[0])==null?void 0:t[((n=a==null?void 0:a[0])==null?void 0:n.length)-2])==="@"&&(l="@"+l)}return{filter:l}},Qs=(a,l=[])=>{let r=(a==null?void 0:a.map(s=>{var v,f;return(f=s==null?void 0:s.key)==null?void 0:f.slice(1,(v=s==null?void 0:s.key)==null?void 0:v.length)}))??[],n=[];r==null||r.forEach(s=>{var v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be;if(s===""&&(s="算法库:通用算法"),s!=null&&s.includes(Ud)){let Me="",V=!0,fe=ve.analyzerSplitToWord(s,"(");(fe==null?void 0:fe.length)>1&&(Me="("+((v=ve.analyzerSplitToWord(fe==null?void 0:fe[1],")"))==null?void 0:v[0]),((d=fe==null?void 0:fe[0])==null?void 0:d[((f=fe==null?void 0:fe[0])==null?void 0:f.length)-2])==="@"&&(Me="@"+Me));let le=s;le=le==null?void 0:le.replace(Me,""),Me=un(Me),Me=(y=ve.analyzeSplitToContent(Me,","))==null?void 0:y.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)),Me!=null&&Me.includes("@ShowHide=Hide")&&(V=!1);let pe=(g=le==null?void 0:le.replace("$",hn))==null?void 0:g.split(hn),De=pe==null?void 0:pe[1],Ve=pe==null?void 0:pe[0];Ve!=null&&Ve.includes("[")&&(Ve=(D=(c=Ve==null?void 0:Ve.replace("[",hn))==null?void 0:c.split(hn))==null?void 0:D[0],De=De+":["+((K=(k=(O=pe==null?void 0:pe[0])==null?void 0:O.replace("[",hn))==null?void 0:k.split(hn))==null?void 0:K[1])),Ve=(R=(M=Ve==null?void 0:Ve.replaceAll(":","/"))==null?void 0:M.replaceAll("{",""))==null?void 0:R.replaceAll("}",""),(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])!=="/"&&(Ve=Ve+"/"),De=((j=Ve==null?void 0:Ve.split("/"))==null?void 0:j[0])+":"+De;let N="";if(!(De!=null&&De.includes("[")))N=De==null?void 0:De.replaceAll(":","/"),n==null||n.push({path:N,isShow:V,filter:Me,fatherPath:Ve});else{let de=(w=(E=De==null?void 0:De.replace("[",hn))==null?void 0:E.split(hn))==null?void 0:w[1];de=de==null?void 0:de.slice(0,(de==null?void 0:de.length)-1),de=(x=ve.analyzeSplitToContent(de,","))==null?void 0:x.map(U=>((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)),U)),de==null||de.forEach(U=>{var Se,Oe;N=((Oe=(Se=De==null?void 0:De.replace("[",hn))==null?void 0:Se.split(hn))==null?void 0:Oe[0])+U,N=N==null?void 0:N.replaceAll(":","/"),n==null||n.push({path:N,isShow:V,filter:Me,fatherPath:Ve})})}}else{let Me="",V=!0,fe=ve.analyzerSplitToWord(s,"(");(fe==null?void 0:fe.length)>1&&(Me=(b=Zs(fe))==null?void 0:b.filter);let le=s;if(le=le==null?void 0:le.replace(Me,""),(Me==null?void 0:Me[0])==="("){Me=Me==null?void 0:Me.slice(1,(Me==null?void 0:Me.length)-1);let De=[];(_=ve.analyzeSplitToContent(Me,","))==null||_.forEach(Ve=>{(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])==="("&&(Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])!=="@"&&(Ve="@"+Ve),De.push(un(Ve))}),Me=De==null?void 0:De.join(",")}else Me=un(Me);Me=($=ve.analyzeSplitToContent(Me,","))==null?void 0:$.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)),Me!=null&&Me.includes("@ShowHide=Hide")&&(V=!1),(le==null?void 0:le[(le==null?void 0:le.length)-1])==="}"&&(le=le+":"),le=(F=le==null?void 0:le.replaceAll("{",""))==null?void 0:F.replaceAll("}","");let pe="";if(le!=null&&le.includes("[")){let De=(J=le==null?void 0:le.replace("[",hn))==null?void 0:J.split(hn),Ve=De==null?void 0:De[1];Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1),(be=(ce=ve.analyzeSplitToContent(Ve,","))==null?void 0:ce.map(ge=>((ge==null?void 0:ge[(ge==null?void 0:ge.length)-1])===","&&(ge=ge==null?void 0:ge.slice(0,(ge==null?void 0:ge.length)-1)),ge)))==null||be.forEach(ge=>{pe=(De==null?void 0:De[0])+ge,pe=pe==null?void 0:pe.replaceAll(":","/"),n==null||n.push({path:pe,isShow:V,filter:Me})})}else pe=le==null?void 0:le.replaceAll(":","/"),n==null||n.push({path:pe,isShow:V,filter:Me})}});let t=A.cloneDeep(n);return(l==null?void 0:l.length)>0&&(t=l),t=t==null?void 0:t.filter(s=>{var v,f,d,y;return!(s!=null&&s.fatherPath)&&((f=(v=s==null?void 0:s.path)==null?void 0:v.split(Fi))==null?void 0:f.length)>1&&((y=(d=s==null?void 0:s.path)==null?void 0:d.split(Fi))==null?void 0:y[1])===""}),t=t==null?void 0:t.map(s=>{var v;return s.path=(v=s.path)==null?void 0:v.replace(Fi,""),s.path}),(t==null?void 0:t.length)>0&&(n=n==null?void 0:n.map(s=>{var f,d,y,g,c,D,O;let v=t==null?void 0:t.find(k=>{var K;return(K=s==null?void 0:s.path)==null?void 0:K.includes(k)});return!(s!=null&&s.fatherPath)&&v&&!((f=s==null?void 0:s.path)!=null&&f.includes(Fi))&&!(t!=null&&t.find(k=>(s==null?void 0:s.path)===k))&&(s.path=v+Fi+((O=(y=(d=s==null?void 0:s.path)==null?void 0:d.split(v))==null?void 0:y[1])==null?void 0:O.slice(1,(D=(c=(g=s==null?void 0:s.path)==null?void 0:g.split(v))==null?void 0:c[1])==null?void 0:D.length))),s})),n},qd=(a,l)=>Qs([{key:a}],l),Wd=async(a,l)=>{const r=[],n=qd(a==null?void 0:a.key,l);return n&&(n==null?void 0:n.length)>0&&(n==null||n.forEach(s=>{r.push([{key:"path",value:s==null?void 0:s.path,parentPath:(s==null?void 0:s.parentPath)??"",isShow:s==null?void 0:s.isShow,menuFilter:s==null?void 0:s.filter}])})),await Hd(a==null?void 0:a.value,r)};let fl="$R",Hi="[Any]";const Kd=a=>{var v,f;let l={},n=a==null?void 0:a[0];(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),n=n==null?void 0:n.split(":"),l.group=n;let t=a==null?void 0:a[1],s;return t!=null&&t.includes("{")?s=(f=(v=t==null?void 0:t.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:f.replaceAll(Hi,""):s=t==null?void 0:t.replaceAll(Hi,""),(s==null?void 0:s[0])==="$"&&(s=s==null?void 0:s.slice(1,s==null?void 0:s.length)),l.filter=s,l},Gd=a=>{var D,O,k,K,M,R;let l=[],r=[],n=[],t=[],s=[],v=[],f="",d=a==null?void 0:a[0];(d==null?void 0:d[0])==="*"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length));let y=ve.analyzeSplitToContent(d,":");(D=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])!=="{"&&(j==null?void 0:j[0])!=="["))==null||D.forEach(j=>{var w,x,b;(j==null?void 0:j[(j==null?void 0:j.length)-1])===":"&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1));let E=ve.analyzerSplitToWord(j,"(");if((E==null?void 0:E.length)>1){f=(w=Zs(E))==null?void 0:w.filter;let _=j==null?void 0:j.replace(f,"");if(n.push(_),(f==null?void 0:f[0])==="("){f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1);let $=[];(x=ve.analyzeSplitToContent(f,","))==null||x.forEach(F=>{(F==null?void 0:F[(F==null?void 0:F.length)-1])===","&&(F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1)),(F==null?void 0:F[0])==="("&&(F=F==null?void 0:F.slice(1,(F==null?void 0:F.length)-1)),(F==null?void 0:F[0])!=="@"&&(F="@"+F),$.push(un(F))}),f=$==null?void 0:$.join(",")}else f=un(f);f=(b=ve.analyzeSplitToContent(f,","))==null?void 0:b.map($=>(($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),$)),f!=null&&f.includes("@ShowHide=Hide")&&v.push(_),t=[...t,...f]}else n.push(E==null?void 0:E[0])});let g=(O=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])==="{"))==null?void 0:O[0],c=(k=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])==="["))==null?void 0:k[0];return l=Ci(c??""),l!=null&&l.every(j=>Array.isArray(j))&&(l=[l]),(g==null?void 0:g[(g==null?void 0:g.length)-1])===":"&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),s=(K=ve.analyzeSplitToContent(g,"@"))==null?void 0:K[1],s="@"+s,g=g==null?void 0:g.replace(s,""),s=un(s),s=(M=ve.analyzeSplitToContent(s,","))==null?void 0:M.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j)),(g==null?void 0:g[0])==="{"&&(g=g==null?void 0:g.slice(1,(g==null?void 0:g.length)-1)),g=(R=ve.analyzeSplitToContent(g,","))==null?void 0:R.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j)),g==null||g.forEach((j,E)=>{var V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka,L,H,Q,ye,me,va;let w=[],x=[],b=!1,_,$=[],F=[],J=[],ce="Input",be=[],Me=[];if(j!=null&&j.includes("==")){_=(V=j==null?void 0:j.split("=="))==null?void 0:V[0];let Qe=(fe=j==null?void 0:j.split("=="))==null?void 0:fe[1],ue="";((le=ve.analyzeSplitToContent(Qe,"$"))==null?void 0:le.length)>1&&((pe=ve.analyzeSplitToContent(Qe,"$"))==null?void 0:pe[0])!=="$"?(ue=(De=ve.analyzeSplitToContent(Qe,"$"))==null?void 0:De[0],ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)):((Ve=ve.analyzeSplitToContent(Qe,"}"))==null?void 0:Ve.length)>1&&(ue=(ge=ve.analyzeSplitToContent(Qe,"}"))==null?void 0:ge[1]);let ma=Qe==null?void 0:Qe.replace(ue,"");(ue==null?void 0:ue[0])==="("&&(ue=ue==null?void 0:ue.slice(1,(ue==null?void 0:ue.length)-1)),(N=ve.analyzeSplitToContent(ue,","))==null||N.forEach(Ke=>{var Ca;(Ke==null?void 0:Ke[0])!=="@"&&(Ke="@"+Ke),(Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1])===","&&(Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1));let Na=un(Ke);(Ca=ve.analyzeSplitToContent(Na,","))==null||Ca.forEach(Ze=>{(Ze==null?void 0:Ze[(Ze==null?void 0:Ze.length)-1])===","&&(Ze=Ze==null?void 0:Ze.slice(0,(Ze==null?void 0:Ze.length)-1)),w.push(Ze)})}),(ma==null?void 0:ma[0])==="$"&&(ma=ma==null?void 0:ma.slice(1,ma==null?void 0:ma.length));let Te=(de=ma==null?void 0:ma.replace("*",fl))==null?void 0:de.split(fl);$=(U=Te==null?void 0:Te[0])==null?void 0:U.split(":"),F=(Oe=(Se=ve.analyzeSplitToContent(Te==null?void 0:Te[1],":"))==null?void 0:Se.filter((Ke,Na)=>{var Ca,Ze;return Na!==((Ze=(Ca=Te==null?void 0:Te[1])==null?void 0:Ca.split(":"))==null?void 0:Ze.length)-1}))==null?void 0:Oe.map(Ke=>((Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1])===":"&&(Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1)),Ke)),J=(la=(Fe=ve.analyzeSplitToContent(Te==null?void 0:Te[1],":"))==null?void 0:Fe.filter((Ke,Na)=>{var Ca,Ze;return Na===((Ze=(Ca=Te==null?void 0:Te[1])==null?void 0:Ca.split(":"))==null?void 0:Ze.length)-1}))==null?void 0:la[0],J=(re=(Da=J==null?void 0:J.replaceAll("{",""))==null?void 0:Da.replaceAll("}",""))==null?void 0:re.split(":"),ce="Select"}else if(((ca=ve.analyzeSplitToContent(j,"="))==null?void 0:ca.length)>1)if(ce="Select",_=(da=(se=j==null?void 0:j.replace("=",fl))==null?void 0:se.split(fl))==null?void 0:da[0],!(j!=null&&j.includes("If")))be=(te=(Ee=j==null?void 0:j.replace("=",fl))==null?void 0:Ee.split(fl))==null?void 0:te[1],be=be==null?void 0:be.split("||");else{let Qe=(Ue=(Ae=j==null?void 0:j.replace("=",fl))==null?void 0:Ae.split(fl))==null?void 0:Ue[1];Me=(sa=ve.analyzeSplitToContent(Qe,")"))==null?void 0:sa.filter(ue=>!(ue!=null&&ue.includes("If"))),Me=Me==null?void 0:Me.map(ue=>((ue==null?void 0:ue[0])==="("&&(ue=ue==null?void 0:ue.slice(1,(ue==null?void 0:ue.length)-1)),ue=ue==null?void 0:ue.split("||"),ue)),x=(Ka=ve.analyzeSplitToContent(Qe,")"))==null?void 0:Ka.filter(ue=>ue==null?void 0:ue.includes("If")),x=x==null?void 0:x.map(ue=>((ue==null?void 0:ue[0])==="|"&&(ue=ue==null?void 0:ue.slice(2,ue==null?void 0:ue.length)),(ue==null?void 0:ue[0])==="("&&(ue=ue==null?void 0:ue.slice(1,(ue==null?void 0:ue.length)-1)),(ue==null?void 0:ue[0])!=="@"&&(ue="@"+ue),ue))}else if(((L=ve.analyzeSplitToContent(j,"@"))==null?void 0:L.length)>1){_=(H=ve.analyzeSplitToContent(j,"@"))==null?void 0:H[0],(_==null?void 0:_[(_==null?void 0:_.length)-1])==="@"&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1));let Qe="@"+((Q=ve.analyzeSplitToContent(j,"@"))==null?void 0:Q[1]);Qe=un(Qe),w=(ye=ve.analyzeSplitToContent(Qe,","))==null?void 0:ye.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue)),w!=null&&w.find(ue=>ue==null?void 0:ue.includes("@Type"))&&(ce=(va=(me=w==null?void 0:w.find(ue=>ue==null?void 0:ue.includes("@Type")))==null?void 0:me.split("="))==null?void 0:va[1])}else _=j;w!=null&&w.includes("@ShowHide=Hide")&&(b=!0),r.push({prop:_,label:_,value:"",menuPath:$,groups:F,columns:J,type:ce,options:be,allContents:Me,filters:w,width:g==null?void 0:g.length,isFormColHidden:b,filterContents:x})}),{groupName:n,groupFilters:t,formContents:r,contents:l,filter:s,hideContents:v}},Ci=a=>{var n,t;if(!a||typeof a!="string")return[];let l=[],r=a.slice(1,(a==null?void 0:a.length)-1);if((r==null?void 0:r[0])!=="[")(n=ve.analyzeSplitToContent(r,","))==null||n.forEach(s=>{(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)),l.push(s??"")});else{let s=[];(t=ve.analyzeSplitToContent(r,","))==null||t.forEach(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)),s.push(Ci(v))}),l=s}return l},ft=(a,l)=>{var R,j,E,w,x,b,_,$,F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka,L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La;let r,n=[],t=[],s=[],v=[],f=[],d=[],y=[],g="Input",c,D="",O="",k="",K=[],M="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(r=(R=a==null?void 0:a.split("=="))==null?void 0:R[0],c=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],g="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((x=(w=(E=a==null?void 0:a.replace("=",fl))==null?void 0:E.split(fl))==null?void 0:w[1])!=null&&x.includes("If")))if(r=ve.analyzeSplitToContent(a,"@"),r=r==null?void 0:r[0],(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=(_=(b=r==null?void 0:r.replace("=",fl))==null?void 0:b.split(fl))==null?void 0:_[0],r!=null&&r.includes("&")&&(r=(F=($=r==null?void 0:r.replace("&",fl))==null?void 0:$.split(fl))==null?void 0:F[0]),c=r,((J=ve.analyzeSplitToContent(a,"@"))==null?void 0:J.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let ie=(ce=ve.analyzeSplitToContent(a,"@"))==null?void 0:ce[1];if((ie==null?void 0:ie[0])!=="@"&&(ie="@"+ie),ie=un(ie),O=ie,O!=null&&O.includes("@Type")){let X=ve.analyzeSplitToContent(O,",");X=X==null?void 0:X.map(Z=>((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)),X=(be=X==null?void 0:X.filter(Z=>Z==null?void 0:Z.includes("@Type")))==null?void 0:be[0],g=(Me=X==null?void 0:X.split("="))==null?void 0:Me[1]}}}else if(a!=null&&a.includes("||")){let ie=[];n=(pe=(le=(fe=(V=a==null?void 0:a.replace("=",fl))==null?void 0:V.split(fl))==null?void 0:fe[1])==null?void 0:le.split("||"))==null?void 0:pe.map(X=>{var q,Be,Xe,ia;let Z=X;if(Z!=null&&Z.includes("@")){let xa="@"+((Be=(q=Z==null?void 0:Z.replace("@",fl))==null?void 0:q.split(fl))==null?void 0:Be[1]);Z=(ia=(Xe=Z==null?void 0:Z.replace("@",fl))==null?void 0:Xe.split(fl))==null?void 0:ia[0],xa=ji(xa),ie.push(xa)}return{label:Z==null?void 0:Z.replaceAll("'",""),value:Z==null?void 0:Z.replaceAll("'","")}}),(ie==null?void 0:ie.length)>0&&(O="("+(ie==null?void 0:ie.join("||"))+")")}else g="Input",D=(ge=(Ve=(De=a==null?void 0:a.replace("=",fl))==null?void 0:De.split(fl))==null?void 0:Ve[1])==null?void 0:ge.replaceAll("'","");else if((U=(de=(N=a==null?void 0:a.replace("=",fl))==null?void 0:N.split(fl))==null?void 0:de[1])!=null&&U.includes("||")){r=(Se=a==null?void 0:a.split("="))==null?void 0:Se[0],c=(Oe=a==null?void 0:a.split("="))==null?void 0:Oe[0];let ie=(la=(Fe=a==null?void 0:a.replace("=",fl))==null?void 0:Fe.split(fl))==null?void 0:la[1];ie=ve.analyzeSplitToContent(ie,")");let X=ie==null?void 0:ie.filter(q=>!(q!=null&&q.includes("If")));X==null||X.forEach(q=>{(q==null?void 0:q[0])==="("&&(q=q==null?void 0:q.slice(1,(q==null?void 0:q.length)-1)),t==null||t.push(q==null?void 0:q.split("||"))});let Z=ie==null?void 0:ie.filter(q=>q==null?void 0:q.includes("If"));Z=Z==null?void 0:Z.map(q=>((q==null?void 0:q[0])==="|"&&(q==null?void 0:q[1])==="|"&&(q=q==null?void 0:q.slice(2,q==null?void 0:q.length)),(q==null?void 0:q[0])==="("&&(q=q==null?void 0:q.slice(1,(q==null?void 0:q.length)-1)),(q==null?void 0:q[0])!=="@"&&(q="@"+q),q)),s=Z}else{let ie=a==null?void 0:a.split("=="),X=(Da=ie==null?void 0:ie.filter(Z=>(Z==null?void 0:Z.includes("$"))&&(Z==null?void 0:Z[0])!=="{"))==null?void 0:Da[0];if(X&&!(X!=null&&X.includes("&"))){let Z=(re=X==null?void 0:X.replace("*",fl))==null?void 0:re.split(fl),q=(Z==null?void 0:Z[0])===""?l==null?void 0:l.value:Z==null?void 0:Z[0];(q==null?void 0:q[0])==="("&&(q=(ca=ve.analyzeSplitToContent(q,")"))==null?void 0:ca[1]),q=(da=(se=q==null?void 0:q.replaceAll("{",""))==null?void 0:se.replaceAll("}",""))==null?void 0:da.replaceAll(Hi,""),(q==null?void 0:q[0])==="$"&&(q=(Ee=q==null?void 0:q.slice(1,q==null?void 0:q.length))==null?void 0:Ee.replaceAll(":","/")),v=q==null?void 0:q.split("/");let Be=(Ae=(te=Z==null?void 0:Z[1])==null?void 0:te.replace("{",fl))==null?void 0:Ae.split(fl),Xe=Be==null?void 0:Be[0];(Xe==null?void 0:Xe[(Xe==null?void 0:Xe.length)-1])===":"&&(Xe=Xe==null?void 0:Xe.slice(0,(Xe==null?void 0:Xe.length)-1)),f=Xe==null?void 0:Xe.split(":"),d=(L=(Ka=(sa=(Ue=Be==null?void 0:Be[1])==null?void 0:Ue.replace("}",fl))==null?void 0:sa.split(fl))==null?void 0:Ka[0])==null?void 0:L.split(":");let ia="";((H=ve.analyzeSplitToContent(X,")"))==null?void 0:H.length)>1&&(ia=(Q=ve.analyzeSplitToContent(X,")"))==null?void 0:Q[0]),ia&&ia!==""&&((ia==null?void 0:ia[0])!=="@"&&(ia="@"+ia),O=ji(ia))}if(ie!=null&&ie.some(Z=>(Z==null?void 0:Z[0])==="&")){let Z=(ye=ie==null?void 0:ie.filter(Xe=>(Xe==null?void 0:Xe[0])==="&"))==null?void 0:ye[0];(Z==null?void 0:Z[0])==="&"&&(Z=Z==null?void 0:Z.slice(1,Z==null?void 0:Z.length)),k=(va=(me=Z==null?void 0:Z.replace("(",fl))==null?void 0:me.split(fl))==null?void 0:va[0];let q=(Qe=ve.analyzeSplitToContent(Z,")"))==null?void 0:Qe[0];q=(ma=(ue=q==null?void 0:q.replace("(",fl))==null?void 0:ue.split(fl))==null?void 0:ma[1],q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1),(q==null?void 0:q[0])==="{"&&(q=q==null?void 0:q.slice(1,q==null?void 0:q.length)),(q==null?void 0:q[(q==null?void 0:q.length)-1])==="}"&&(q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1)),K=q==null?void 0:q.split(",");let Be=(Te=ve.analyzeSplitToContent(Z,")"))==null?void 0:Te[1];Be&&Be!==""&&(M=ji(Be))}else if(!X&&((Ke=ie==null?void 0:ie.filter(Z=>(Z==null?void 0:Z[0])==="{"))==null?void 0:Ke.length)>0){let Z=ie==null?void 0:ie[(ie==null?void 0:ie.length)-1];Z=Z==null?void 0:Z.slice(1,(Z==null?void 0:Z.length)-1),Z=ve.analyzeSplitToContent(Z,","),Z=Z==null?void 0:Z.map(q=>((q==null?void 0:q[(q==null?void 0:q.length)-1])===","&&(q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1)),q)),Z=Z==null?void 0:Z.map(q=>{var Be,Xe,ia,xa;if(q=q==null?void 0:q.replaceAll("$",""),q!=null&&q.includes("{")){let ka="";q=q==null?void 0:q.replaceAll("{","");let Aa=q==null?void 0:q.split("}");ka=((Xe=(Be=Aa==null?void 0:Aa[0])==null?void 0:Be.split(":"))==null?void 0:Xe[0])+":"+(Aa==null?void 0:Aa[1]),q=ka,q=q+":"}if(q!=null&&q.includes(Hi)){let ka="",Aa=q==null?void 0:q.split(Hi);ka=((xa=(ia=Aa==null?void 0:Aa[0])==null?void 0:ia.split(":"))==null?void 0:xa[0])+":"+(Aa==null?void 0:Aa[1]),q=ka,q=q+":"}return q=q==null?void 0:q.replaceAll(":","/"),q}),y=Z}else!((Na=ie==null?void 0:ie[1])!=null&&Na.includes("$"))&&((Ca=ie==null?void 0:ie[1])==null?void 0:Ca[0])!=="("&&d.push(ie==null?void 0:ie[1])}else r=(Ze=a==null?void 0:a.split("&"))==null?void 0:Ze[0],c=(La=a==null?void 0:a.split("&"))==null?void 0:La[0];return{label:r,prop:c,options:n,allContents:t,filterContents:s,menus:v,groups:f,words:d,align:"center",formType:g,filter:O,functionName:k,functionRelatedWords:K,calculatorFilter:M,relatedPages:y,value:D}},Co=(a,l)=>{var n,t,s,v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be,Me,V,fe,le;let r=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((v=(s=(t=(n=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:n.replace(":",fl))==null?void 0:t.split(fl))==null?void 0:s[0])!=null&&v.includes(","))){let pe=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),De=(f=pe==null?void 0:pe.replace(":",fl))==null?void 0:f.split(fl);if(((d=ve.analyzeSplitToContent(De==null?void 0:De[1],"="))==null?void 0:d.length)===1){let Ve=De==null?void 0:De[0],ge=[];(c=ve.analyzeSplitToContent((g=De==null?void 0:De[1])==null?void 0:g.slice(1,((y=De==null?void 0:De[1])==null?void 0:y.length)-1),","))==null||c.forEach(N=>{var de,U;((de=ve.analyzeSplitToContent(N,"="))==null?void 0:de.length)>1?((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),ge=[...ge,...Co(N,l)]):((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),ge.push((U=Co(N,l))==null?void 0:U[0]))}),r==null||r.push({label:Ve,prop:Ve,children:ge,align:"center"})}else{let Ve=[];if(((D=ve.analyzeSplitToContent(pe,"="))==null?void 0:D.length)>=2){let N=(O=ve.analyzeSplitToContent(pe,"="))==null?void 0:O[1],de=(k=ve.analyzeSplitToContent(N,"/"))==null?void 0:k.map(U=>((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)),U));Ve=de==null?void 0:de.map(U=>(U=Ci(U),U))}let ge=(w=(E=(j=(R=(M=(K=pe==null?void 0:pe.replace("{",fl))==null?void 0:K.split(fl))==null?void 0:M[1])==null?void 0:R.replace("}",fl))==null?void 0:j.split(fl))==null?void 0:E[0])==null?void 0:w.split(",");ge==null||ge.forEach((N,de)=>{(Ve==null?void 0:Ve.length)>0&&de===0?r==null||r.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:Ve==null?void 0:Ve.map(U=>{let Se={};return ge==null||ge.forEach((Oe,Fe)=>{Se[Oe]=U==null?void 0:U[Fe]}),Se}),options:Ve==null?void 0:Ve.map(U=>({label:U==null?void 0:U[0],value:U==null?void 0:U[0]})),mainKey:!0}):r==null||r.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((x=ve.analyzeSplitToContent(a,"="))==null?void 0:x.length)===2&&((_=(b=ve.analyzeSplitToContent(a,"="))==null?void 0:b[1])==null?void 0:_[0])==="["){let pe=[];if((($=ve.analyzeSplitToContent(a,"="))==null?void 0:$.length)>=2){let Ve=(F=ve.analyzeSplitToContent(a,"="))==null?void 0:F[1],ge=(ce=(J=ve.analyzeSplitToContent(Ve,"|"))==null?void 0:J.filter(N=>N!=="|"))==null?void 0:ce.map(N=>((N==null?void 0:N[(N==null?void 0:N.length)-1])==="|"&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N));pe=ge==null?void 0:ge.map(N=>(N=Ci(N),N))}let De=(Me=(be=a==null?void 0:a.replace("}",fl))==null?void 0:be.split(fl))==null?void 0:Me[0];De=(V=De==null?void 0:De.slice(1,De==null?void 0:De.length))==null?void 0:V.split(","),De==null||De.forEach((Ve,ge)=>{(pe==null?void 0:pe.length)>0&&ge===0?r==null||r.push({label:Ve,prop:Ve,align:"center",formType:"Select",relatedContents:pe==null?void 0:pe.map(N=>{let de={};return De==null||De.forEach((U,Se)=>{de[U]=N==null?void 0:N[Se]}),de}),options:pe==null?void 0:pe.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):r==null||r.push({label:Ve,prop:Ve,align:"center"})})}else(fe=ve.analyzeSplitToContent(a,","))==null||fe.forEach(pe=>{var De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka,L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La,ie;if((pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===","&&(pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1)),(pe==null?void 0:pe[0])==="{"){let X=ve.analyzeSplitToContent(pe,"="),Z=X==null?void 0:X[(X==null?void 0:X.length)-1],q=[],Be=[],Xe=[],ia="",xa="",ka=[],Aa=[],Sa=(De=Z==null?void 0:Z.replace("*",fl))==null?void 0:De.split(fl),Ie=(Sa==null?void 0:Sa[0])===""?l==null?void 0:l.value:Sa==null?void 0:Sa[0];Ie=ve.analyzeSplitToContent(Ie,")");let Ya="";if((Ie==null?void 0:Ie.length)>1&&((Ve=Ie==null?void 0:Ie[0])==null?void 0:Ve[0])!=="&"&&(Ya=Ie==null?void 0:Ie[0],(Ya==null?void 0:Ya[0])!=="@"&&(Ya="@"+Ya),xa=Ya??""),Ie=(ge=Ie==null?void 0:Ie.filter(kl=>(kl==null?void 0:kl[0])==="$"))==null?void 0:ge[0],((N=ve.analyzeSplitToContent(Ie,"}"))==null?void 0:N.length)>1&&((U=(de=ve.analyzeSplitToContent(Ie,"}"))==null?void 0:de[1])==null?void 0:U[0])==="("&&(Ya=(Se=ve.analyzeSplitToContent(Ie,"}"))==null?void 0:Se[1],(Ya==null?void 0:Ya[0])!=="@"&&(Ya="@"+Ya),xa!==""&&(xa=xa+","),xa=xa+Ya),(Oe=Ie==null?void 0:Ie.slice(1,(Ie==null?void 0:Ie.length)-1))!=null&&Oe.includes("$")||(Ie=(Fe=ve.analyzeSplitToContent(Ie,"}"))==null?void 0:Fe[0]),(Ie==null?void 0:Ie[0])==="$"&&(Ie=(la=Ie==null?void 0:Ie.replace("{",""))==null?void 0:la.replace("}",":"),Ie=(Da=Ie==null?void 0:Ie.slice(1,Ie==null?void 0:Ie.length))==null?void 0:Da.replaceAll(":","/")),Ie!=null&&Ie.includes("$")){let kl=(re=Ie==null?void 0:Ie.split("$"))==null?void 0:re[0];kl=(ca=kl==null?void 0:kl.split("/"))==null?void 0:ca[0],Ie=kl+"/"+((se=Ie==null?void 0:Ie.split("$"))==null?void 0:se[1])+"/"}q=(Ie==null?void 0:Ie.split("/"))??[];let Fa=(Ee=(da=Sa==null?void 0:Sa[1])==null?void 0:da.replace("{",fl))==null?void 0:Ee.split(fl);if((Ue=(Ae=(te=Sa==null?void 0:Sa[1])==null?void 0:te.split("(@"))==null?void 0:Ae[0])!=null&&Ue.includes("&&")||(L=(Ka=(sa=Sa==null?void 0:Sa[1])==null?void 0:sa.split("@"))==null?void 0:Ka[0])!=null&&L.includes("&&")){let kl=(H=Sa==null?void 0:Sa[1])!=null&&H.includes("(@")?(me=(ye=(Q=Sa==null?void 0:Sa[1])==null?void 0:Q.split("(@"))==null?void 0:ye[0])==null?void 0:me.split("&&"):(ue=(Qe=(va=Sa==null?void 0:Sa[1])==null?void 0:va.split("@"))==null?void 0:Qe[0])==null?void 0:ue.split("&&");ka=kl==null?void 0:kl.map(Va=>{var Ml,$l;return(Va==null?void 0:Va[0])==="*"&&(Va=Va==null?void 0:Va.slice(1,Va==null?void 0:Va.length)),Va=($l=(Ml=Va==null?void 0:Va.replace("{",fl))==null?void 0:Ml.split(fl))==null?void 0:$l[0],(Va==null?void 0:Va[(Va==null?void 0:Va.length)-1])===":"&&(Va=Va==null?void 0:Va.slice(0,(Va==null?void 0:Va.length)-1)),Va=Va==null?void 0:Va.split(":"),Va});let Pl=[];kl==null||kl.forEach((Va,Ml)=>{var $l,Ma;(Va==null?void 0:Va[0])==="*"&&(Va=Va==null?void 0:Va.slice(1,Va==null?void 0:Va.length)),Va=(Ma=($l=Va==null?void 0:Va.replace("{",fl))==null?void 0:$l.split(fl))==null?void 0:Ma[1],(Va==null?void 0:Va[(Va==null?void 0:Va.length)-1])==="}"&&(Va=Va==null?void 0:Va.slice(0,(Va==null?void 0:Va.length)-1)),Va=Va==null?void 0:Va.split(","),Pl.push(Ml===0?(Va==null?void 0:Va.length)-1:Va==null?void 0:Va.length),Aa=[...Aa,...Va]}),Pl=(ma=ve.prefixSum(Pl))==null?void 0:ma.map(Va=>Va==null?void 0:Va.total),ka=ka==null?void 0:ka.map((Va,Ml)=>({number:Pl==null?void 0:Pl[Ml],contents:Va}))}let xl=Fa==null?void 0:Fa[0];(xl==null?void 0:xl[(xl==null?void 0:xl.length)-1])===":"&&(xl=xl==null?void 0:xl.slice(0,(xl==null?void 0:xl.length)-1)),Be=(xl==null?void 0:xl.split(":"))??[],Xe=((Ca=(Na=(Ke=(Te=Fa==null?void 0:Fa[1])==null?void 0:Te.replace("}",fl))==null?void 0:Ke.split(fl))==null?void 0:Na[0])==null?void 0:Ca.split(","))??[];let Jl=(La=X==null?void 0:X[0])==null?void 0:La.slice(1,((Ze=X==null?void 0:X[0])==null?void 0:Ze.length)-2);xa&&xa!==""&&(ia=ji(xa)),(ie=Jl==null?void 0:Jl.split(","))==null||ie.forEach((kl,Pl)=>{var Va,Ml,$l,Ma,el;((Va=ve.analyzeSplitToContent(kl,"@"))==null?void 0:Va.length)>1&&(kl=(Ml=ve.analyzeSplitToContent(kl,"@"))==null?void 0:Ml[0],(kl==null?void 0:kl[(kl==null?void 0:kl.length)-1])==="@"&&(kl=kl==null?void 0:kl.slice(0,(kl==null?void 0:kl.length)-1))),r.push({label:kl,prop:kl,align:"center",menus:q,groups:(ka==null?void 0:ka.length)===0?Be:($l=ka==null?void 0:ka.find(tl=>(tl==null?void 0:tl.number)>=Pl))==null?void 0:$l.contents,words:(Aa==null?void 0:Aa.length)===0?(Ma=Xe==null?void 0:Xe[Pl])==null?void 0:Ma.split(":"):(el=Aa==null?void 0:Aa[Pl])==null?void 0:el.split(":"),formType:(q==null?void 0:q.length)>0?"Select":"Input",mainKey:Pl===0,filter:ia,isMainPath:(ka==null?void 0:ka.findIndex(tl=>(tl==null?void 0:tl.number)>=Pl))===0})})}else r.push({label:pe,prop:pe,align:"center"})});else{let pe=(le=ve.analyzeSplitToContent(a,","))==null?void 0:le.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));pe==null||pe.forEach(De=>{r.push(ft(De,l))})}return r},Yd=(a,l)=>{var v,f,d,y,g;let r=a;if(!a)return;let n="";((v=ve.analyzeSplitToContent(a,"}"))==null?void 0:v.length)>1&&(r=(f=ve.analyzeSplitToContent(a,"}"))==null?void 0:f[0],n=(d=ve.analyzeSplitToContent(a,"}"))==null?void 0:d[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let t=[],s=[];return t.push({label:"排序",prop:"sort"}),t.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=ve.analyzeSplitToContent(r,","))==null||y.forEach(c=>{var D;(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)),(c==null?void 0:c[0])==="{"?(D=Co(c,l))==null||D.forEach(O=>{t.push(O)}):t.push(ft(c,l))}),t!=null&&t.some(c=>{var D;return(D=c==null?void 0:c.prop)==null?void 0:D.includes("@")})&&(t=t==null?void 0:t.filter(c=>{var D;return!((D=c==null?void 0:c.prop)!=null&&D.includes("@"))})),n!==""&&((n==null?void 0:n[0])=="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),(g=ve.analyzeSplitToContent(n,","))==null||g.forEach(c=>{var D;(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)),(c==null?void 0:c[0])==="{"?(D=Co(c,l))==null||D.forEach(O=>{s.push(O)}):s.push(ft(c,l))})),{columns:t,secondColumns:s}},un=a=>{var l,r,n,t,s;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let v=(r=(l=a==null?void 0:a.replace("(",fl))==null?void 0:l.split(fl))==null?void 0:r[1],f=(t=(n=a==null?void 0:a.replace("(",fl))==null?void 0:n.split(fl))==null?void 0:t[0];return v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1),v=(s=ve.analyzeSplitToContent(v,","))==null?void 0:s.map(d=>((d==null?void 0:d[(d==null?void 0:d.length)-1])===","&&(d=d==null?void 0:d.slice(0,(d==null?void 0:d.length)-1)),(d==null?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1)),f+d)),v=v==null?void 0:v.join(","),a!=null&&a.includes("@Quote")&&(v!=null&&v.includes("@QuoteType")||(v=v===""?v+"@QuoteType=Manual":v+",@QuoteType=Manual"),v!=null&&v.includes("@QuoteSonSync")||(v=v===""?v+"@QuoteSonSync=No":v+",@QuoteSonSync=No"),v!=null&&v.includes("@QuoteFatherSync")||(v=v===""?v+"@QuoteFatherSync=Yes":v+",@QuoteFatherSync=Yes")),v}},rs=a=>{let l=a==null?void 0:a.map(r=>{var n,t;return{menus:r==null?void 0:r.menus,content:((n=r==null?void 0:r.menus)==null?void 0:n.join("/"))+fl+((t=r==null?void 0:r.groups)==null?void 0:t.join("/"))}});return l=l==null?void 0:l.filter(r=>{var n;return(r==null?void 0:r.menus)&&((n=r==null?void 0:r.menus)==null?void 0:n.length)>0}),l=l==null?void 0:l.map(r=>r==null?void 0:r.content),l=[...new Set(l)],l=l==null?void 0:l.map(r=>{var n,t;return{menus:(n=r==null?void 0:r.split(fl))==null?void 0:n[0],groups:((t=r==null?void 0:r.split(fl))==null?void 0:t[1])??[]}}),l},ns=a=>{var r;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(r=ve.analyzeSplitToContent(l,","))==null?void 0:r.map(n=>((n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])!=="@"&&(n="@"+n),n=un(n),n)),l==null?void 0:l.join(",")},ec=(a,l,r="")=>{var j,E,w,x,b,_,$,F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka,L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La,ie;let n=[],t=[],s=[],v="",f="",d="",y=[],g=[],c=[],D="";if(((j=a==null?void 0:a[0])==null?void 0:j[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&!((w=a==null?void 0:a[0])!=null&&w.includes("$")))return;((x=a==null?void 0:a[0])==null?void 0:x[0])!=="*"&&((b=a==null?void 0:a[0])==null?void 0:b[0])!=="$"&&(v=(_=ve.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:_[0],(v==null?void 0:v[0])!=="@"&&(v="@"+v),v=ji(v),d=($=ve.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[1],(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=d==null?void 0:d.replaceAll(":","/"));let k=ve.analyzeSplitToContent(a==null?void 0:a[0],":");if(n=(F=k==null?void 0:k.filter(X=>(X==null?void 0:X[0])!=="{"&&(X==null?void 0:X[0])!=="["))==null?void 0:F.join(""),f=(J=a==null?void 0:a[0])==null?void 0:J.replace(n,""),(n==null?void 0:n[0])==="("&&(n=""),D=(ce=k==null?void 0:k.filter(X=>(X==null?void 0:X[0])!=="["))==null?void 0:ce.join(""),D=(be=a==null?void 0:a[0])==null?void 0:be.replace(D,""),f=f==null?void 0:f.replace(D,""),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),((Me=ve.analyzeSplitToContent(f,"@"))==null?void 0:Me.length)>1&&(v=(V=ve.analyzeSplitToContent(f,"@"))==null?void 0:V[1],(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)),v="@"+v,v=un(v),f=(fe=ve.analyzeSplitToContent(f,"@"))==null?void 0:fe[0],f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),((le=ve.analyzeSplitToContent(n,"@"))==null?void 0:le.length)>1){v!==""&&(v=v+",");let X=(pe=ve.analyzeSplitToContent(n,"@"))==null?void 0:pe[1];X="@"+X,X=un(X),v=v+X,n=(De=ve.analyzeSplitToContent(n,"@"))==null?void 0:De[0]}if((n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=n===""?[]:n==null?void 0:n.split(":"),(f==null?void 0:f[(f==null?void 0:f.length)-1])===":"&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),r!==""){let X=(Ve=ve.analyzeSplitToContent(r,")"))==null?void 0:Ve[0],Z=(ge=ve.analyzeSplitToContent(r,"@"))==null?void 0:ge[1];d=(de=(N=ve.analyzeSplitToContent(r,"@"))==null?void 0:N[0])==null?void 0:de.replace(X,""),(d==null?void 0:d[(d==null?void 0:d.length)-1])==="@"&&(d=d==null?void 0:d.slice(0,(d==null?void 0:d.length)-1)),X=ns(X),Z=ns(Z);let q=X??"";if(q!==""&&(q=q+","),q=q+Z,(q==null?void 0:q[(q==null?void 0:q.length)-1])===","&&(q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1)),q!==""&&v!==""&&(v=v+","),v=v+q,(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=(U=ve.analyzeSplitToContent(d,":"))==null?void 0:U.filter((Be,Xe)=>{var ia;return!((Be==null?void 0:Be[0])==="{"&&Xe===((ia=ve.analyzeSplitToContent(d,":"))==null?void 0:ia.length)-1)}),d=d==null?void 0:d.join(""),(d==null?void 0:d[(d==null?void 0:d.length)-1])===":"&&(d=d==null?void 0:d.slice(0,(d==null?void 0:d.length)-1)),v!=null&&v.includes("@Sync")||(v=v===""?v+"@Sync=(Yes,Yes)":v+",@Sync=(Yes,Yes)"),d!=null&&d.includes("$")){let Be=(Oe=(Se=d==null?void 0:d.replace("*",fl))==null?void 0:Se.split(fl))==null?void 0:Oe[1],Xe=(la=(Fe=d==null?void 0:d.replace("*",fl))==null?void 0:Fe.split(fl))==null?void 0:la[0];Xe=Xe==null?void 0:Xe.split("$"),Xe=((re=(Da=Xe==null?void 0:Xe[0])==null?void 0:Da.split(":"))==null?void 0:re[0])+":"+(Xe==null?void 0:Xe[1])+":",d=Xe+"*"+Be}else d=(ca=d==null?void 0:d.replaceAll("{",""))==null?void 0:ca.replaceAll("}","")}v!==""&&v&&(v="("+v+")"),v=d+v,((se=ve.analyzeSplitToContent(f,"}"))==null?void 0:se.length)>1&&(f=(da=ve.analyzeSplitToContent(f,"}"))==null?void 0:da.filter(X=>(X==null?void 0:X[0])!=="@"),f=f==null?void 0:f.join(""));let K=Yd(f,l);s=f===""?[]:(K==null?void 0:K.columns)??[],c=ve.getColumnChild(s);let M=ve.getColumnChild(s);s!=null&&s.some(X=>{var Z;return Array.isArray(X==null?void 0:X.children)&&((Z=X==null?void 0:X.children)==null?void 0:Z.length)>0})&&(s=[s]),t=D?Ci(D):[],!(t!=null&&t.every(X=>Array.isArray(X)))&&(t==null?void 0:t.length)>0&&(t=[t]),(t==null?void 0:t.length)>0&&(Array.isArray(t==null?void 0:t[0])&&((Ee=t==null?void 0:t[0])!=null&&Ee.every(X=>Array.isArray(X)))?t=t==null?void 0:t.map((X,Z)=>(X=X.map((q,Be)=>(q.unshift("{}"),q.unshift((Be+1).toString()),q)),X)):t=t==null?void 0:t.map((X,Z)=>(X.unshift("{}"),X.unshift((Z+1).toString()),X))),K!=null&&K.secondColumns&&((te=K==null?void 0:K.secondColumns)==null?void 0:te.length)>0&&((t==null?void 0:t.length)>0?t=t==null?void 0:t.map((X,Z)=>{var q,Be;return Array.isArray(X==null?void 0:X[0])?X=X==null?void 0:X.map((Xe,ia)=>{var xa,ka;return Xe.unshift((ka=(xa=K==null?void 0:K.secondColumns)==null?void 0:xa[ia])==null?void 0:ka.prop),Xe}):X.unshift((Be=(q=K==null?void 0:K.secondColumns)==null?void 0:q[Z])==null?void 0:Be.prop),X}):t=(Ae=K==null?void 0:K.secondColumns)==null?void 0:Ae.map((X,Z)=>(X=[X==null?void 0:X.label],X.push(Z),X)),s.unshift({label:"",prop:"disabled",sortable:!1})),c=c==null?void 0:c.map(X=>{var Z,q;return{menus:X==null?void 0:X.menus,content:((Z=X==null?void 0:X.menus)==null?void 0:Z.join("/"))+fl+((q=X==null?void 0:X.groups)==null?void 0:q.join("/"))}});let R=[];if(((sa=(Ue=v==null?void 0:v.replace("(",fl))==null?void 0:Ue.split(fl))==null?void 0:sa[0])!==""&&(R=(L=(Ka=v==null?void 0:v.replace("(",fl))==null?void 0:Ka.split(fl))==null?void 0:L[0],R=[R],R=R==null?void 0:R.map(X=>{var q,Be,Xe;let Z=X==null?void 0:X.split("*");return{menus:(q=Z==null?void 0:Z[0])==null?void 0:q.split(":"),content:((Be=Z==null?void 0:Z[0])==null?void 0:Be.replaceAll(":","/"))+fl+((Xe=Z==null?void 0:Z[1])==null?void 0:Xe.replaceAll(":","/"))}}),c=[...c,...R]),c=c==null?void 0:c.filter(X=>{var Z;return(X==null?void 0:X.menus)&&((Z=X==null?void 0:X.menus)==null?void 0:Z.length)>0}),c=c==null?void 0:c.map(X=>X==null?void 0:X.content),c=[...new Set(c)],c=c==null?void 0:c.map(X=>{var Z,q;return{menus:(Z=X==null?void 0:X.split(fl))==null?void 0:Z[0],groups:((q=X==null?void 0:X.split(fl))==null?void 0:q[1])??[]}}),y=M==null?void 0:M.filter(X=>{var Z;return(X==null?void 0:X.filter)&&((Z=X==null?void 0:X.filter)==null?void 0:Z.includes("@Sync"))}),(y==null?void 0:y.length)>0&&(y=y==null?void 0:y.filter(X=>{var Z,q,Be,Xe;return(Xe=(Be=(q=(Z=ve.analyzeSplitToContent(X==null?void 0:X.filter,","))==null?void 0:Z.find(ia=>ia==null?void 0:ia.includes("@Sync")))==null?void 0:q.split(","))==null?void 0:Be[0])==null?void 0:Xe.includes("Yes")}),y=rs(y)),g=M==null?void 0:M.filter(X=>{var Z;return(X==null?void 0:X.filter)&&((Z=X==null?void 0:X.filter)==null?void 0:Z.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(X=>{var Z,q,Be,Xe;return(Xe=(Be=(q=(Z=ve.analyzeSplitToContent(X==null?void 0:X.filter,","))==null?void 0:Z.find(ia=>ia==null?void 0:ia.includes("@Sync")))==null?void 0:q.split(","))==null?void 0:Be[1])==null?void 0:Xe.includes("Yes")}),g=rs(g)),v!==""&&(v!=null&&v.includes("@Sync"))&&(v==null?void 0:v[0])!=="("){let X=(H=v==null?void 0:v.replace("(",fl))==null?void 0:H.split(fl),Z=X==null?void 0:X[1];if(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),Z=ve.analyzeSplitToContent(Z,","),(me=(ye=(Q=Z==null?void 0:Z.find(q=>q==null?void 0:q.includes("@Sync")))==null?void 0:Q.split(","))==null?void 0:ye[0])!=null&&me.includes("Yes")){let q=X==null?void 0:X[0];q=[{menus:(Qe=(va=q==null?void 0:q.split("*"))==null?void 0:va[0])==null?void 0:Qe.replaceAll(":","/"),groups:((ma=(ue=q==null?void 0:q.split("*"))==null?void 0:ue[1])==null?void 0:ma.split(":"))??[]}],y=[...y,...q]}if((Na=(Ke=(Te=Z==null?void 0:Z.find(q=>q==null?void 0:q.includes("@Sync")))==null?void 0:Te.split(","))==null?void 0:Ke[1])!=null&&Na.includes("Yes")){let q=X==null?void 0:X[0];q=[{menus:(Ze=(Ca=q==null?void 0:q.split("*"))==null?void 0:Ca[0])==null?void 0:Ze.replaceAll(":","/"),groups:((ie=(La=q==null?void 0:q.split("*"))==null?void 0:La[1])==null?void 0:ie.split(":"))??[]}],g=[...g,...q]}}return{groupName:n,tableColumns:s,tableFilter:v,tableContents:t,columns:(K==null?void 0:K.secondColumns)??[],relatedQuotes:c,fatherSyncContents:y,sonSyncContents:g}},ac=(a,l)=>(a=a==null?void 0:a.map((r,n)=>{var t,s,v,f;if(Array.isArray(r))r=r==null?void 0:r.map(d=>{var y,g,c,D;return d!=null&&d.isMainPath||(((y=d==null?void 0:d.children)==null?void 0:y.length)>0?d.children=ac(d.children,l):((g=d==null?void 0:d.menus)==null?void 0:g.length)>0&&!((c=r==null?void 0:r[0])!=null&&c.isMainPath)&&(d.menus=(D=d.menus)==null?void 0:D.map((O,k)=>{var K,M;return((K=d.menus)==null?void 0:K.length)-1===k&&O===""&&(l==null?void 0:l.parentContent)+"/"!==((M=d.menus)==null?void 0:M.join("/"))&&(O=l==null?void 0:l.value),d}),d.bindMenus=d.menus)),d});else{if(n===0&&((t=r.menus)==null?void 0:t.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((s=r.menus)==null?void 0:s.length)>0&&!((v=a==null?void 0:a[0])!=null&&v.isMainPath)&&(r.menus=(f=r.menus)==null?void 0:f.map((d,y)=>{var g,c;return((g=r.menus)==null?void 0:g.length)-1===y&&d===""&&(l==null?void 0:l.parentContent)+"/"!==((c=r.menus)==null?void 0:c.join("/"))&&(d=l==null?void 0:l.value),d}),r.bindMenus=r.menus)}return r}),a),Jd=(a,l)=>(a=a==null?void 0:a.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=ac(r.contents,l)),r)),a),ht=(a,l)=>{let r=a;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(n=>(n=ht(n,l),n)):r=r==null?void 0:r.map(n=>{var t,s;return n!=null&&n.children&&((t=n==null?void 0:n.children)==null?void 0:t.length)>0?n.children=ht(n==null?void 0:n.children,l):n!=null&&n.words&&((s=n==null?void 0:n.words)==null?void 0:s.length)>0&&(l!=null&&l.find(v=>{var f,d,y,g;return((g=(f=n==null?void 0:n.prop)==null?void 0:f.split("."))==null?void 0:g[((y=(d=n==null?void 0:n.prop)==null?void 0:d.split("."))==null?void 0:y.length)-1])===v}))&&(n.mainKey=!0),n}),r};let gr="$R";const Xd=A.useUnit(A.pinia),{selectTitle:Jr}=A.storeToRefs(Xd),vn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixRow",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ri=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ri||{});const Zd=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"backGround",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Qd=a=>{const l=rc(a==null?void 0:a.filter);return l?nc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},ep=a=>{const l=rc(a==null?void 0:a.filter);return l?nc(a==null?void 0:a.contents,{size:l}):a==null?void 0:a.contents},ap=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const r=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(r)?a==null?void 0:a.filter:r}),l}return a==null?void 0:a.contents},lp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},rp=a=>{var r;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(n=>{var t;return(n==null?void 0:n.key)==="tableContents"&&(n.contents=(t=n.contents)==null?void 0:t.slice(0,parseInt(a==null?void 0:a.filter))),n})},np=async a=>{var l,r,n,t,s,v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be,Me,V;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(le=>((le==null?void 0:le.key)==="tableContents"&&(le.contents=ve.shuffle(le.contents)),le));if((a==null?void 0:a.filter)==="Auto"){let fe=(n=(r=a==null?void 0:a.contents)==null?void 0:r.find(Se=>(Se==null?void 0:Se.key)==="header"))==null?void 0:n.contents;Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]),fe=ve.getColumnChild(fe);let le=fe==null?void 0:fe.filter(Se=>(Se==null?void 0:Se.filter)&&(Se==null?void 0:Se.filter)!==""),pe=new Map,De=[];le==null||le.forEach(Se=>{var Oe,Fe;pe.get((Oe=Se==null?void 0:Se.menus)==null?void 0:Oe.join("/"))||(pe.set((Fe=Se==null?void 0:Se.menus)==null?void 0:Fe.join("/"),Se),De.push(Se))});let Ve=(s=(t=Jr==null?void 0:Jr.value)==null?void 0:t.find(Se=>(Se==null?void 0:Se.condition)==="child"))==null?void 0:s.value,ge=De==null?void 0:De.map(Se=>{var Oe,Fe,la;return Se=(Oe=Se==null?void 0:Se.menus)==null?void 0:Oe.join("/"),(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&((la=(Fe=Jr==null?void 0:Jr.value)==null?void 0:Fe.find(Da=>(Da==null?void 0:Da.condition)==="child"))==null?void 0:la.parentContent)+"/"!==Se?Se=Se+Ve:(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}),N=De==null?void 0:De.map(Se=>Se==null?void 0:Se.groups),de=ge==null?void 0:ge.map(async Se=>{let Oe=await Kr(Se,!1);return{path:Se,contents:Oe}});de=await Promise.all(de);let U=de==null?void 0:de.map((Se,Oe)=>{var la,Da,re,ca,se,da,Ee;let Fe=(la=Se==null?void 0:Se.contents)==null?void 0:la.filter(te=>{var Ae,Ue;return(te==null?void 0:te.name)===((Ue=N==null?void 0:N[Oe])==null?void 0:Ue[((Ae=N==null?void 0:N[Oe])==null?void 0:Ae.length)-1])});return Fe=(ca=(re=(Da=Fe==null?void 0:Fe[0])==null?void 0:Da.compData)==null?void 0:re.find(te=>(te==null?void 0:te.key)==="tableContents"))==null?void 0:ca.contents,(Se==null?void 0:Se.path)===((da=(se=Jr==null?void 0:Jr.value)==null?void 0:se.find(te=>(te==null?void 0:te.condition)==="child"))==null?void 0:da.parentContent)&&(Fe=((Ee=Fe==null?void 0:Fe.map(te=>{for(let Ae in te)if(te[Ae]===Ve)return te}))==null?void 0:Ee.filter(te=>te))??[]),Fe??[]});if(U=U==null?void 0:U.map(Se=>(Se=Se==null?void 0:Se.map(Oe=>{var la;let Fe={};for(let Da in Oe)if(le!=null&&le.find(re=>{var ca,se;return((se=(ca=re==null?void 0:re.words)==null?void 0:ca[0])==null?void 0:se.replaceAll("'",""))===Da})){let re=(la=le==null?void 0:le.find(ca=>{var se,da;return((da=(se=ca==null?void 0:ca.words)==null?void 0:se[0])==null?void 0:da.replaceAll("'",""))===Da}))==null?void 0:la.prop;Fe[re]=Oe==null?void 0:Oe[Da]}return Fe}),Se)),U=ve.cartesianProduct(U),Array.isArray(U==null?void 0:U[0])&&(U=U==null?void 0:U[0]),(U==null?void 0:U.length)>0&&((c=(f=(v=le==null?void 0:le[0])==null?void 0:v.menus)==null?void 0:f.join("/"))==null?void 0:c[((g=(y=(d=le==null?void 0:le[0])==null?void 0:d.menus)==null?void 0:y.join("/"))==null?void 0:g.length)-1])==="/")return(D=a==null?void 0:a.contents)==null?void 0:D.map(Oe=>{var Fe;return(Oe==null?void 0:Oe.key)==="tableContents"&&(U==null?void 0:U.length)>0&&(Oe.contents=((Fe=Oe.contents)==null?void 0:Fe.length)>0?Oe.contents:U),Oe})}if((a==null?void 0:a.filter)==="Manual"){let fe=[],le=[],pe=(k=(O=a==null?void 0:a.contents)==null?void 0:O.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:k.contents;(pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===")"?pe=(M=(K=pe==null?void 0:pe.replace("(",gr))==null?void 0:K.split(gr))==null?void 0:M[0]:pe="",pe!==""&&(fe=((j=(R=pe==null?void 0:pe.split("*"))==null?void 0:R[0])==null?void 0:j.split(":"))??[],le=((_=(b=(x=(w=(E=pe==null?void 0:pe.split("*"))==null?void 0:E[1])==null?void 0:w.replace("{",gr))==null?void 0:x.split(gr))==null?void 0:b[0])==null?void 0:_.split(":"))??[]);let De=(F=($=a==null?void 0:a.contents)==null?void 0:$.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:F.contents;De=(ce=(J=De==null?void 0:De.replace("(",gr))==null?void 0:J.split(gr))==null?void 0:ce[1],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1);let Ve=(be=a==null?void 0:a.contents)==null?void 0:be.map(N=>{var de,U,Se,Oe,Fe,la,Da,re,ca;return(N==null?void 0:N.key)==="header"&&((de=N==null?void 0:N.contents)!=null&&de.every(se=>(se==null?void 0:se.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((U=N==null?void 0:N.contents)==null?void 0:U[0])?N.contents=(Se=N==null?void 0:N.contents)==null?void 0:Se.map((se,da)=>{var Ee,te,Ae;return se!=null&&se.isMainPath||(da===0?(se.mainKey=!0,se.formType="Select",se.bindMenus=fe,se.groups=((Ee=se.groups)==null?void 0:Ee.length)===0?le:se.groups,se.words=((te=se.words)==null?void 0:te.length)===0?[se==null?void 0:se.prop]:se.words,se.filter=De,(!(se!=null&&se.menus)||((Ae=se==null?void 0:se.menus)==null?void 0:Ae.length)===0)&&(se.menus=fe)):(se.mainKey=!1,se.bindMenus=fe)),se}):Array.isArray((Oe=N==null?void 0:N.contents)==null?void 0:Oe[0])&&((Da=(la=(Fe=N==null?void 0:N.contents)==null?void 0:Fe[0])==null?void 0:la.filter(()=>(fe==null?void 0:fe.length)>0))==null?void 0:Da.length)>0&&(N.contents[0]=(ca=(re=N==null?void 0:N.contents)==null?void 0:re[0])==null?void 0:ca.map((se,da)=>{var Ee,te,Ae;return se!=null&&se.isMainPath||(da===0?(se.mainKey=!0,se.formType="Select",se.bindMenus=fe,se.groups=((Ee=se.groups)==null?void 0:Ee.length)===0?le:se.groups,se.words=((te=se.words)==null?void 0:te.length)===0?[se==null?void 0:se.prop]:se.words,se.filter=De,(!(se!=null&&se.menus)||Array.isArray(se==null?void 0:se.menus)&&((Ae=se==null?void 0:se.menus)==null?void 0:Ae.length)===0)&&(fe==null?void 0:fe.length)>0&&(se.menus=fe)):(se.mainKey=!1,se.bindMenus=fe)),se}))),N}),ge=(Me=Ve==null?void 0:Ve.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:Me.contents;if(Array.isArray(ge==null?void 0:ge[0])&&(ge=ge==null?void 0:ge[0]),ge=ve.getColumnChild(ge),ge!=null&&ge.some(N=>{var de,U;return((U=N==null?void 0:N.menus)==null?void 0:U[((de=N==null?void 0:N.menus)==null?void 0:de.length)-1])===""})){let N=(V=Jr==null?void 0:Jr.value)==null?void 0:V.find(de=>(de==null?void 0:de.condition)==="child");Ve=Jd(Ve,N)}return Ve}if((a==null?void 0:a.filter)==="Chart"){let fe=a==null?void 0:a.contents;return fe.push({key:"newType",contents:"Chart"}),fe}return a==null?void 0:a.contents},ip=async a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}return a==null?void 0:a.contents},op=a=>{var n,t,s,v,f,d,y,g,c,D,O,k;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((t=(n=l==null?void 0:l.replace(":",gr))==null?void 0:n.split(gr))==null?void 0:t[1])),l=(s=l==null?void 0:l.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(f=(v=l==null?void 0:l.split("="))==null?void 0:v[1])!=null&&f.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let K=(d=l==null?void 0:l.split("="))==null?void 0:d[0],M=(y=l==null?void 0:l.split("="))==null?void 0:y[1];(g=M==null?void 0:M.slice(1,M==null?void 0:M.length))!=null&&g.includes("$")&&(M=(O=(D=(c=Jr==null?void 0:Jr.value)==null?void 0:c.filter(R=>(R==null?void 0:R.condition)==="child"))==null?void 0:D[0])==null?void 0:O.value),l=K+"="+M}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let r=ve.calculatorAndToOr(l);if((r==null?void 0:r.length)>0){let K=[];return r==null||r.forEach(R=>{let j={};for(let E in R){let w=E;w!=null&&w.includes("[")||(j[w]=R[E])}K.push(j)}),(k=a==null?void 0:a.contents)==null?void 0:k.map(R=>{var E,w,x;let j=(w=(E=a==null?void 0:a.contents)==null?void 0:E.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:w.contents;if(j=(x=ve.getEqualChild(j))==null?void 0:x.filter(b=>(b==null?void 0:b.label)!=="操作"),(R==null?void 0:R.key)==="tableContents"){let _=ve.tableToForm(R==null?void 0:R.contents,j);K==null||K.forEach($=>{var F,J;for(let ce in $)!((F=_==null?void 0:_[0])!=null&&F.find(be=>{var Me;return(be==null?void 0:be.key)===ce||((Me=be==null?void 0:be.key)==null?void 0:Me.includes(ce))}))&&!(_!=null&&_.find(be=>{var Me;return(be==null?void 0:be.key)===ce||((Me=be==null?void 0:be.key)==null?void 0:Me.includes(ce))}))||(((J=$[ce])==null?void 0:J[0])!=="!"?_=_==null?void 0:_.filter(be=>{var Me,V;return((Me=be==null?void 0:be.find(fe=>{var le;return(fe==null?void 0:fe.key)===ce||((le=fe==null?void 0:fe.key)==null?void 0:le.includes(ce))}))==null?void 0:Me.value)===$[ce]||Array.isArray($==null?void 0:$[ce])&&((V=$==null?void 0:$[ce])==null?void 0:V.find(fe=>{var le;return((le=be==null?void 0:be.find(pe=>{var De;return(pe==null?void 0:pe.key)===ce||((De=pe==null?void 0:pe.key)==null?void 0:De.includes(ce))}))==null?void 0:le.value)===fe}))}):_=_==null?void 0:_.filter(be=>{var Me;return((Me=be==null?void 0:be.find(V=>{var fe;return(V==null?void 0:V.key)===ce||((fe=V==null?void 0:V.key)==null?void 0:fe.includes(ce))}))==null?void 0:Me.value)!==$[ce]}))}),(_==null?void 0:_.length)===0?R.contents=[]:R.contents=_==null?void 0:_.map($=>{let F={};return $==null||$.forEach(J=>{F[J==null?void 0:J.key]=J==null?void 0:J.value}),F})}return R})}return a==null?void 0:a.contents},tp=a=>a==null?void 0:a.contents,sp=a=>a==null?void 0:a.contents,cp=a=>{var l,r,n,t;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let s=(n=(r=a==null?void 0:a.filter)==null?void 0:r.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:n.split(",");return(t=a==null?void 0:a.contents)==null?void 0:t.map(f=>((f==null?void 0:f.key)==="header"&&(f.contents=ht(f.contents,s)),f))}return a==null?void 0:a.contents},up=a=>{var r,n,t,s,v;let l=(a==null?void 0:a.filter)??"";if(l!==""){let f=(n=(r=l==null?void 0:l.replace("(",gr))==null?void 0:r.split(gr))==null?void 0:n[1];f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1),(f==null?void 0:f[(f==null?void 0:f.length)-1])===")"&&(f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1)),f=(t=ve.analyzeSplitToContent(f,","))==null?void 0:t.map(c=>((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)),c));let d=f==null?void 0:f[0];(d==null?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1));let y=(f==null?void 0:f[1])??"Up",g=(s=a==null?void 0:a.contents)==null?void 0:s.map(c=>{var D,O;return y==="Up"?(c==null?void 0:c.key)==="extraButton"&&(c.contents=(D=d==null?void 0:d.split(","))==null?void 0:D.map(k=>({label:k,prop:k}))):y==="Line"&&(c==null?void 0:c.key)==="rowButton"&&(c.contents=(O=d==null?void 0:d.split(","))==null?void 0:O.map(k=>({label:k,prop:k}))),c});if(y==="Bottom"||y==="Down"){let c=(v=d==null?void 0:d.split(","))==null?void 0:v.map(D=>({label:D,prop:D}));g.push({key:"bottomButton",contents:c})}return g}return a==null?void 0:a.contents},dp=a=>a==null?void 0:a.contents,pp=a=>{var r;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(r=a==null?void 0:a.contents)==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.key)==="rowButton"&&(t.contents=(s=l==null?void 0:l.split(","))==null?void 0:s.map(v=>({label:v,prop:v}))),t}):a==null?void 0:a.contents},fp=a=>{var r;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let n=a==null?void 0:a.contents,t=(r=l==null?void 0:l.split(","))==null?void 0:r.map(s=>({label:s,prop:s}));return n.push({key:"bottomButton",contents:t}),n}return a==null?void 0:a.contents},hp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(r=>{var n;return(r==null?void 0:r.key)==="formContent"&&(r.contents=(n=r.contents)==null?void 0:n.map(t=>(t.isNoClick=!0,t))),r}),l!=null&&l.find(r=>(r==null?void 0:r.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(r=>(r==null?void 0:r.key)!=="extraButton"&&(r==null?void 0:r.key)!=="rowButton")),l}return a==null?void 0:a.contents},vp=a=>{var l;if(a!=null&&a.filter){const r=parseInt(a==null?void 0:a.filter);return!r||Number.isNaN(r)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var s;return(t==null?void 0:t.key)==="formContent"&&(t.contents=(s=t.contents)==null?void 0:s.map(v=>(v.width=r,v))),t})}return a==null?void 0:a.contents},mp=a=>{var l,r,n,t;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const s=parseInt(a==null?void 0:a.filter);return!s||Number.isNaN(s)?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(f=>{var d;return(f==null?void 0:f.key)==="formContent"&&(f.contents=(d=f.contents)==null?void 0:d.map(y=>(y.width=s,y))),f})}if(((n=a==null?void 0:a.filter)==null?void 0:n[0])==="["){let s=Ci(a==null?void 0:a.filter),v=Array.isArray(s)?s.map(d=>parseInt(d)).filter(d=>!!d&&!Number.isNaN(d)):[];return v.length?(t=a==null?void 0:a.contents)==null?void 0:t.map(d=>{if((d==null?void 0:d.key)==="formContent"){const y=d.contents??[];d.contents=y.map((g,c)=>{const D=c+1;let O=0,k=0;for(let M=0;M<v.length;M++){if(k+=v[M],D<=k){O=M;break}M===v.length-1&&(O=v.length-1)}const K=v[O]||v[v.length-1]||1;return g.width=K,g})}return d}):a==null?void 0:a.contents}return a==null?void 0:a.contents},yp=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.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(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var s,v,f;return(t==null?void 0:t.key)==="header"&&(Array.isArray((s=t==null?void 0:t.contents)==null?void 0:s[0])?t.contents[0]=(f=t.contents[0])==null?void 0:f.map(d=>(r!=null&&r.find(y=>y===(d==null?void 0:d.prop))&&(d.fixed="left"),d)):t.contents=(v=t.contents)==null?void 0:v.map(d=>(r!=null&&r.find(y=>y===(d==null?void 0:d.prop))&&(d.fixed="left"),d))),t})}return a==null?void 0:a.contents},gp=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.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 n=s=>(r!=null&&r.find(v=>v===(s==null?void 0:s.prop))&&(s.required=!0),s!=null&&s.children&&Array.isArray(s.children)&&(s.children=s.children.map(v=>n(v))),s);return(l=a==null?void 0:a.contents)==null?void 0:l.map(s=>{var v,f,d;return(s==null?void 0:s.key)==="header"&&(Array.isArray((v=s==null?void 0:s.contents)==null?void 0:v[0])?s.contents[0]=(d=s.contents[0])==null?void 0:d.map(y=>n(y)):s.contents=(f=s.contents)==null?void 0:f.map(y=>n(y))),s})}return a==null?void 0:a.contents},bp=async a=>{var n,t,s,v,f,d,y,g,c,D,O,k,K,M,R,j,E;const l=A.useUnit(A.pinia),{chooseTitle:r}=A.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let w=await Kr(((t=(n=r==null?void 0:r.value)==null?void 0:n[0])==null?void 0:t.parentContent)??((v=(s=r==null?void 0:r.value)==null?void 0:s[0])==null?void 0:v.relatedContent),!1),x=(d=(f=r==null?void 0:r.value)==null?void 0:f[0])==null?void 0:d.value;(g=(y=w==null?void 0:w[0])==null?void 0:y.compData)!=null&&g.find(F=>(F==null?void 0:F.key)==="header")?w=(c=w==null?void 0:w[0])==null?void 0:c.compData:w=(O=(D=w==null?void 0:w.filter(F=>{var J;return(J=F==null?void 0:F.compData)==null?void 0:J.find(ce=>(ce==null?void 0:ce.key)==="header")}))==null?void 0:D[0])==null?void 0:O.compData;let b=(k=w==null?void 0:w.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:k.contents;Array.isArray(b==null?void 0:b[0])&&(b=b==null?void 0:b[0]),b=((K=b==null?void 0:b.find(F=>F==null?void 0:F.isMainKey))==null?void 0:K.prop)??((M=b==null?void 0:b[0])==null?void 0:M.prop);let _=(j=(R=w==null?void 0:w.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:j.find(F=>(F==null?void 0:F[b])===x);return(E=a==null?void 0:a.contents)==null?void 0:E.map(F=>{var J;return(F==null?void 0:F.key)==="formContent"&&(F.contents=(J=F.contents)==null?void 0:J.map(ce=>(ce.value=_==null?void 0:_[ce==null?void 0:ce.prop],ce))),F})}return a==null?void 0:a.contents},kp=a=>{var l,r,n,t,s;if((l=a==null?void 0:a.extra)!=null&&l.row){let v=a==null?void 0:a.filter;if(v!=null&&v.includes("*")&&(v="({"+((n=(r=v==null?void 0:v.replace("{",gr))==null?void 0:r.split(gr))==null?void 0:n[1])),v=(t=v==null?void 0:v.replaceAll("{",""))==null?void 0:t.replaceAll("}",""),(v==null?void 0:v[0])!=="("&&(v="("+v+")"),v.slice(1,(v==null?void 0:v.length)-1)==="undefined")return a==null?void 0:a.contents;let f=ve.calculatorAndToOr(v),d=f==null?void 0:f[0],y=(s=a==null?void 0:a.extra)==null?void 0:s.row,g=[];for(let c in d)(d==null?void 0:d[c])===(y==null?void 0:y[c])?g.push(!0):g.push(!1);return g!=null&&g.every(c=>c===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},xp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},wp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},_p=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Sp=a=>{var l;if(a!=null&&a.filter){let r=a==null?void 0:a.contents,n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=(l=ve.analyzeSplitToContent(n,","))==null?void 0:l.map(t=>((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)),r.push({key:"stepName",contents:n}),r}return a==null?void 0:a.contents},Ep=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},lc={onNumSlice:rp,onRandomContents:np,onConditionContents:op,onFatherPaceContents:tp,onPaceContents:sp,onMainTagContents:cp,onButtonContents:up,onPamButtonContents:dp,onRowButtonContents:pp,onRelated:bp,onRowNum:mp,onFixRow:yp,onReqItem:gp,onBottomButtonContents:fp,onConditionContent:kp,onTabs:xp,onSinChoice:wp,onTextSize:ap,onTextRGBA:lp,onPosition:Qd,onSize:ep,onShowType:_p,onStepName:Sp,onStep:Ep,onInterfaceTypeContents:ip,onBackGround:Zd,onMaxColumn:vp,onEditRead:hp},Cp=async(a,l)=>{var s,v,f,d,y,g,c,D,O,k,K,M;let r="";if(((s=a==null?void 0:a.find(R=>(R==null?void 0:R.key)==="filter"))==null?void 0:s.contents)!==""&&(r=(v=a==null?void 0:a.find(R=>(R==null?void 0:R.key)==="filter"))==null?void 0:v.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(d=(f=r==null?void 0:r.replace("(",gr))==null?void 0:f.split(gr))==null?void 0:d[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let n=(y=ve.analyzeSplitToContent(r,","))==null?void 0:y.map(R=>((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&&R.includes("(")||(R=R==null?void 0:R.replaceAll(":","=")),R)),t=a;for(let R in n){let j,E="";j=(D=(c=(g=n==null?void 0:n[R])==null?void 0:g.replace("=",gr))==null?void 0:c.split(gr))==null?void 0:D[0],E=(K=(k=(O=n==null?void 0:n[R])==null?void 0:O.replace("=",gr))==null?void 0:k.split(gr))==null?void 0:K[1];let w=(M=vn==null?void 0:vn.find(x=>(x==null?void 0:x.key)===j))==null?void 0:M.value;if(w){const x=lc[w];t=await x({contents:t,filter:E})}}return t},Et=async(a,l)=>{var v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F;let r="";if(((v=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:v.contents)!==""&&(r=(f=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:f.contents),r===""||!r)return a;(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=(y=(d=r==null?void 0:r.replace("(",gr))==null?void 0:d.split(gr))==null?void 0:y[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let n=(g=ve.analyzeSplitToContent(r,","))==null?void 0:g.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J!=null&&J.includes("(")||(J=J==null?void 0:J.replaceAll(":","=")),J)),t=a,s=new Map;n==null||n.forEach(J=>{var be,Me,V;let ce=(be=J==null?void 0:J.split("="))==null?void 0:be[0];if(ce==="@MainPam"&&s.get(ce)){let fe=s.get(ce);fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1);let le=(V=(Me=J==null?void 0:J.replace("{",gr))==null?void 0:Me.split(gr))==null?void 0:V[1];le=fe+","+le,s.set(ce,le)}else ce==="@Button"&&s.get(ce)?s.set(J,J):s.set(ce,J)}),n=Array.from(s.values()),n=n==null?void 0:n.sort((J,ce)=>{var be,Me;return((be=vn==null?void 0:vn.find(V=>ce==null?void 0:ce.includes(V==null?void 0:V.key)))==null?void 0:be.order)-((Me=vn==null?void 0:vn.find(V=>J==null?void 0:J.includes(V==null?void 0:V.key)))==null?void 0:Me.order)});for(let J in n){let ce,be="";(c=n==null?void 0:n[J])!=null&&c.includes("(")&&((D=n==null?void 0:n[J])!=null&&D.includes("@If"))?(ce=(K=(k=(O=n==null?void 0:n[J])==null?void 0:O.replace("(",gr))==null?void 0:k.split(gr))==null?void 0:K[0],be="("+((j=(R=(M=n==null?void 0:n[J])==null?void 0:M.replace("(",gr))==null?void 0:R.split(gr))==null?void 0:j[1])):(ce=(x=(w=(E=n==null?void 0:n[J])==null?void 0:E.replace("=",gr))==null?void 0:w.split(gr))==null?void 0:x[0],be=($=(_=(b=n==null?void 0:n[J])==null?void 0:b.replace("=",gr))==null?void 0:_.split(gr))==null?void 0:$[1]);let Me=(F=vn==null?void 0:vn.find(V=>(V==null?void 0:V.key)===ce))==null?void 0:F.value;if(Me){const V=lc[Me];t=await V({contents:t,filter:be,extra:l})}}return t},rc=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const r=l.slice(1,-1).split(",").map(n=>Number(n.trim()));return r.length<2||r.some(n=>Number.isNaN(n))?null:[r[0],r[1]]},nc=(a,l)=>{var K,M,R,j,E;const r=Array.isArray(a)?a:[],n=r.find(w=>(w==null?void 0:w.key)==="formContent"),t=Array.isArray(n==null?void 0:n.contents)?n.contents:[],s=((K=r.find(w=>(w==null?void 0:w.key)==="_gridLayoutMeta"))==null?void 0:K.contents)??{},v=(t==null?void 0:t[0])??{};let f=((M=l==null?void 0:l.position)==null?void 0:M[0])??(s==null?void 0:s._positionStartRow)??(v==null?void 0:v._positionStartRow),d=((R=l==null?void 0:l.position)==null?void 0:R[1])??(s==null?void 0:s._positionRowSpan)??(v==null?void 0:v._positionRowSpan);(!f||Number.isNaN(f)||f<1)&&(f=1),(!d||Number.isNaN(d)||d<1)&&(d=1);let y=((j=l==null?void 0:l.size)==null?void 0:j[0])??(s==null?void 0:s._sizeStart)??(v==null?void 0:v._sizeStart),g=((E=l==null?void 0:l.size)==null?void 0:E[1])??(s==null?void 0:s._sizeEnd)??(v==null?void 0:v._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(g===void 0||Number.isNaN(g))&&(g=1),y=Math.max(0,Math.min(1,y)),g=Math.max(0,Math.min(1,g)),g<=y&&(y=0,g=1);const c=g-y,D=Math.max(1,Math.round(1/c));let O=r.map(w=>{if((w==null?void 0:w.key)!=="formContent")return w;const x=Array.isArray(w==null?void 0:w.contents)?w.contents:[];return{...w,contents:x.map(b=>({...b,width:D,_positionStartRow:f,_positionRowSpan:d,_sizeStart:y,_sizeEnd:g}))}});const k={_positionStartRow:f,_positionRowSpan:d,_sizeStart:y,_sizeEnd:g};return O.some(w=>(w==null?void 0:w.key)==="_gridLayoutMeta")?O=O.map(w=>(w==null?void 0:w.key)==="_gridLayoutMeta"?{...w,contents:k}:w):O.push({key:"_gridLayoutMeta",contents:k}),O};let po="$R";const Dp=A.useUnit(A.pinia),{selectTitle:Bp}=A.storeToRefs(Dp);let Tp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Np=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Ap=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],zp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const is=async(a,l,r=!0)=>{let n=[],t=a==null?void 0:a.map(async s=>{var c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka,L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La,ie,X,Z,q,Be,Xe,ia,xa,ka,Aa,Sa,Ie,Ya,Fa,xl,Jl,kl,Pl,Va,Ml,$l,Ma,el,tl,ol,Ra,ul,rl;let v=(k=(O=(D=(c=s==null?void 0:s.contents)==null?void 0:c.find(ee=>{var ea;return(ea=ee==null?void 0:ee.key)==null?void 0:ea.includes("struct")}))==null?void 0:D.value)==null?void 0:O[0])==null?void 0:k.类型,f=Object.values(s==null?void 0:s.name);f=f==null?void 0:f.reverse();let d=(K=s==null?void 0:s.contents)==null?void 0:K.map(ee=>ee==null?void 0:ee.key),y={comp:v,isShow:s==null?void 0:s.is_show,name:f==null?void 0:f[0],id:s==null?void 0:s.object_id,order_no:s==null?void 0:s.order_no,relatedTables:d,menuFilter:(M=s==null?void 0:s.filter)==null?void 0:M.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(R=s==null?void 0:s.filter)==null?void 0:R.fatherSyncs,relatedQuotes:(j=s==null?void 0:s.filter)==null?void 0:j.quotes,sonSyncContents:(E=s==null?void 0:s.filter)==null?void 0:E.sonSyncs,nameContents:(w=A.cloneDeep(f))==null?void 0:w.reverse()};for(let ee in f)parseInt(ee)>=1&&(y[`name${parseInt(ee)-1}`]=f[ee]);let g=Array.isArray((x=s==null?void 0:s.filter)==null?void 0:x.menuFilter)?(b=s==null?void 0:s.filter)==null?void 0:b.menuFilter:[];if(((_=g==null?void 0:g.filter(ee=>ee==null?void 0:ee.includes("@Filter")))==null?void 0:_.length)>0){let ee=g==null?void 0:g.filter(qe=>qe==null?void 0:qe.includes("@Filter"));ee=ee==null?void 0:ee[0],ee=(F=($=ee==null?void 0:ee.replace("(",po))==null?void 0:$.split(po))==null?void 0:F[1],ee=ee==null?void 0:ee.slice(0,(ee==null?void 0:ee.length)-1),ee!=null&&ee.includes("*")&&(ee=(ce=(J=ee==null?void 0:ee.replace("{",po))==null?void 0:J.split(po))==null?void 0:ce[1],ee=ee==null?void 0:ee.replace("}","")),ee=ve.calculatorAndToOr(ee);let ea=(l==null?void 0:l.originPath)??"";(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));let Je=await Kr(ea,!1),he=(be=Je==null?void 0:Je.filter(qe=>(qe==null?void 0:qe.comp)==="Table"))==null?void 0:be[0];he=(V=(Me=he==null?void 0:he.compData)==null?void 0:Me.find(qe=>(qe==null?void 0:qe.key)==="tableContents"))==null?void 0:V.contents;let ya=(le=(fe=Bp.value)==null?void 0:fe.find(qe=>(qe==null?void 0:qe.condition)==="child"))==null?void 0:le.value;he=(pe=he==null?void 0:he.map(qe=>{for(let na in qe)if((qe==null?void 0:qe[na])===ya)return qe}))==null?void 0:pe.filter(qe=>qe),he=he==null?void 0:he[0],ee=ee==null?void 0:ee[0];let pa=[];for(let qe in ee){let na="";ja.isObject(he)&&(na=(Ve=(De=Object.keys(he))==null?void 0:De.filter(fa=>fa==null?void 0:fa.includes("."+qe)))==null?void 0:Ve[0]),na!==""&&(he!=null&&he[na])&&(ee==null?void 0:ee[qe])===(he==null?void 0:he[na])||he!=null&&he[qe]&&(ee==null?void 0:ee[qe])===(he==null?void 0:he[qe])?pa.push(!0):pa.push(!1)}if(pa!=null&&pa.some(qe=>qe===!1)&&((N=l==null?void 0:l.originPath)==null?void 0:N[((ge=l==null?void 0:l.originPath)==null?void 0:ge.length)-1])!=="/")return}if(v==="Table"||v==="Method"){!r&&((de=y==null?void 0:y.fatherSyncContents)==null?void 0:de.length)>0;let ee=((U=s==null?void 0:s.contents)==null?void 0:U.find(He=>{var ta;return(ta=He==null?void 0:He.key)==null?void 0:ta.includes("content")}))||[],ea=[];y.comp="Table",ee.value=(Se=ee==null?void 0:ee.value)==null?void 0:Se.sort((He,ta)=>parseInt(He==null?void 0:He.id)-parseInt(ta==null?void 0:ta.id)),ee.value=(Oe=ee==null?void 0:ee.value)==null?void 0:Oe.map(He=>{let ta={};for(let ra in He)JSON.stringify(He==null?void 0:He[ra])==="{}"?ta[ra]="":ta[ra]=He==null?void 0:He[ra];return ta}),ea.push({key:"tableContents",contents:ee==null?void 0:ee.value});let Je=(ca=(re=(Da=(la=(Fe=s==null?void 0:s.contents)==null?void 0:Fe.find(He=>{var ta;return(ta=He==null?void 0:He.key)==null?void 0:ta.includes("struct")}))==null?void 0:la.value)==null?void 0:Da[0])==null?void 0:re.结构)==null?void 0:ca.contents;Array.isArray(Je==null?void 0:Je[0])?Je[0]=(se=Je==null?void 0:Je[0])==null?void 0:se.filter(He=>(He==null?void 0:He.prop)!=="sort"&&(He==null?void 0:He.prop)!=="relatedId"):Je=Je==null?void 0:Je.filter(He=>(He==null?void 0:He.prop)!=="sort"&&(He==null?void 0:He.prop)!=="relatedId"),ea.push({key:"header",contents:Je}),ea.push({key:"filter",contents:(Ue=(Ae=(te=(Ee=(da=s==null?void 0:s.contents)==null?void 0:da.find(He=>{var ta;return(ta=He==null?void 0:He.key)==null?void 0:ta.includes("struct")}))==null?void 0:Ee.value)==null?void 0:te[0])==null?void 0:Ae.引用)==null?void 0:Ue.contents});let he=Tp,ya=A.cloneDeep(Np);v==="Method"&&ya.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Je==null?void 0:Je[0])&&((sa=Je==null?void 0:Je[0])==null?void 0:sa.prop)==="disabled"&&(he=Ap,ya=zp);const pa=["推力","真空","压力","温度","流量"],qe=y.name;qe&&pa.includes(qe)&&(he=[...he],he.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let na=[];if(!Array.isArray(Je==null?void 0:Je[0])&&(Je!=null&&Je.some(He=>{var ta;return(He==null?void 0:He.calculatorFilter)&&((ta=He==null?void 0:He.calculatorFilter)==null?void 0:ta.includes("Manual"))}))){let He=(Ka=Je==null?void 0:Je.map(ta=>ta==null?void 0:ta.calculatorFilter))==null?void 0:Ka.filter(ta=>ta&&(ta==null?void 0:ta.includes("Manual")));He==null||He.forEach(ta=>{var Za;let ra=ve.analyzeSplitToContent(ta,",");if(ra=ra==null?void 0:ra.map(Le=>((Le==null?void 0:Le[(Le==null?void 0:Le.length)-1])===","&&(Le=Le==null?void 0:Le.slice(0,(Le==null?void 0:Le.length)-1)),Le)),ra!=null&&ra.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(ra!=null&&ra.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=ra==null?void 0:ra.find(Ne=>Ne==null?void 0:Ne.includes("@FunctionButton"));Le=(Za=Le==null?void 0:Le.split("="))==null?void 0:Za[1],Le=Le==null?void 0:Le.slice(1,(Le==null?void 0:Le.length)-1),Le=Le==null?void 0:Le.split(","),Le=Le==null?void 0:Le[(Le==null?void 0:Le.length)-1],na.push(Le)}}),na=[...new Set(na)],na=na==null?void 0:na.map(ta=>({label:ta,prop:ta,type:"methodButton"}))}else if(Array.isArray(Je==null?void 0:Je[0])&&((L=ve.getColumnChild(Je==null?void 0:Je[0]))!=null&&L.some(He=>{var ta;return(He==null?void 0:He.calculatorFilter)&&((ta=He==null?void 0:He.calculatorFilter)==null?void 0:ta.includes("Manual"))}))){let He=(Q=(H=ve.getColumnChild(Je==null?void 0:Je[0]))==null?void 0:H.map(ta=>ta==null?void 0:ta.calculatorFilter))==null?void 0:Q.filter(ta=>ta&&(ta==null?void 0:ta.includes("Manual")));He==null||He.forEach(ta=>{var Za;let ra=ve.analyzeSplitToContent(ta,",");if(ra=ra==null?void 0:ra.map(Le=>((Le==null?void 0:Le[(Le==null?void 0:Le.length)-1])===","&&(Le=Le==null?void 0:Le.slice(0,(Le==null?void 0:Le.length)-1)),Le)),ra!=null&&ra.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(ra!=null&&ra.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=ra==null?void 0:ra.find(Ne=>Ne==null?void 0:Ne.includes("@FunctionButton"));Le=(Za=Le==null?void 0:Le.split("="))==null?void 0:Za[1],Le=Le==null?void 0:Le.slice(1,(Le==null?void 0:Le.length)-1),Le=Le==null?void 0:Le.split(","),Le=Le==null?void 0:Le[(Le==null?void 0:Le.length)-1],na.push(Le)}}),na=[...new Set(na)],na=na==null?void 0:na.map(ta=>({label:ta,prop:ta,type:"methodButton"}))}if(ea.push({key:"extraButton",contents:he}),ea.push({key:"rowButton",contents:[...ya,...na]}),y.compData=await Et(ea,l),(ye=y.compData)!=null&&ye.find(He=>(He==null?void 0:He.key)==="tab")&&(y.tab=(va=(me=y.compData)==null?void 0:me.find(He=>(He==null?void 0:He.key)==="tab"))==null?void 0:va.contents),(Qe=y.compData)!=null&&Qe.find(He=>(He==null?void 0:He.key)==="step")&&(y.step=(ma=(ue=y.compData)==null?void 0:ue.find(He=>(He==null?void 0:He.key)==="step"))==null?void 0:ma.contents),(Te=y.compData)!=null&&Te.find(He=>(He==null?void 0:He.key)==="choice")&&(y.choice=(Na=(Ke=y.compData)==null?void 0:Ke.find(He=>(He==null?void 0:He.key)==="choice"))==null?void 0:Na.contents),(Ca=y.compData)!=null&&Ca.find(He=>(He==null?void 0:He.key)==="newType")){let He=(La=(Ze=y.compData)==null?void 0:Ze.find(ta=>(ta==null?void 0:ta.key)==="newType"))==null?void 0:La.contents;y.comp=He,y.compData=(ie=y.compData)==null?void 0:ie.filter(ta=>(ta==null?void 0:ta.key)!=="newType")}let fa="",dl=(X=y==null?void 0:y.compData)==null?void 0:X.filter(He=>(He==null?void 0:He.key)==="fixType");(dl==null?void 0:dl.length)>0&&r&&(fa=(Z=dl==null?void 0:dl[0])==null?void 0:Z.contents,y.comp=fa)}else if(v==="Form"){let ee=[],ea=(Xe=(Be=(q=s==null?void 0:s.contents)==null?void 0:q.find(qe=>{var na;return(na=qe==null?void 0:qe.key)==null?void 0:na.includes("content")}))==null?void 0:Be.value)==null?void 0:Xe[0],Je=[],he=Array.isArray((ia=s==null?void 0:s.filter)==null?void 0:ia.menuFilter)?(xa=s==null?void 0:s.filter)==null?void 0:xa.menuFilter:[];he==null||he.forEach(qe=>{if(qe!=null&&qe.includes("@Param(Hide=Yes, prop=")||qe!=null&&qe.includes("(Hide=Yes, prop=")){const na=qe==null?void 0:qe.match(/prop=([^,)]+)/);na!=null&&na[1]&&Je.push(na==null?void 0:na[1])}});let ya=(Ya=(Ie=(Sa=(Aa=(ka=s==null?void 0:s.contents)==null?void 0:ka.find(qe=>{var na;return(na=qe==null?void 0:qe.key)==null?void 0:na.includes("struct")}))==null?void 0:Aa.value)==null?void 0:Sa[0])==null?void 0:Ie.结构)==null?void 0:Ya.contents,pa=(Fa=ya==null?void 0:ya.map(qe=>(qe.value=ea==null?void 0:ea[qe==null?void 0:qe.prop],qe)))==null?void 0:Fa.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId");pa=pa==null?void 0:pa.map(qe=>(Je!=null&&Je.includes(qe==null?void 0:qe.prop)&&(qe.isHideInForm=!0),qe)),ee.push({key:"filter",contents:(Va=(Pl=(kl=(Jl=(xl=s==null?void 0:s.contents)==null?void 0:xl.find(qe=>{var na;return(na=qe==null?void 0:qe.key)==null?void 0:na.includes("struct")}))==null?void 0:Jl.value)==null?void 0:kl[0])==null?void 0:Pl.引用)==null?void 0:Va.contents}),ee.push({key:"formContent",contents:pa}),ee.push({key:"paramHideProps",contents:Je}),y.compData=await Cp(ee),(Ml=y.compData)!=null&&Ml.find(qe=>(qe==null?void 0:qe.key)==="tab")&&(y.tab=(Ma=($l=y.compData)==null?void 0:$l.find(qe=>(qe==null?void 0:qe.key)==="tab"))==null?void 0:Ma.contents),(el=y.compData)!=null&&el.find(qe=>(qe==null?void 0:qe.key)==="step")&&(y.step=(ol=(tl=y.compData)==null?void 0:tl.find(qe=>(qe==null?void 0:qe.key)==="step"))==null?void 0:ol.contents),(Ra=y.compData)!=null&&Ra.find(qe=>(qe==null?void 0:qe.key)==="choice")&&(y.choice=(rl=(ul=y.compData)==null?void 0:ul.find(qe=>(qe==null?void 0:qe.key)==="choice"))==null?void 0:rl.contents)}return y});return n=await Promise.all(t),n},Mp=A.useLoginState(A.pinia),{loginUserInfo:xi}=A.storeToRefs(Mp),vt=async(a,l,r="Manual",n=[])=>{var d;let t=a,s;Array.isArray(l==null?void 0:l[0])?s=ve.getColumnChild(l==null?void 0:l[0]):s=l;let v=(d=s==null?void 0:s.filter(y=>{var g;return(y==null?void 0:y.calculatorFilter)&&((g=y==null?void 0:y.calculatorFilter)==null?void 0:g.includes(r))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:d.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),f=t==null?void 0:t.map(async y=>(y=await Vp(y,v,s,r,t,n),y));return f=await Promise.all(f),f},Ip=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ve.getValueToObjectValue(l,ve.getColumnContents(t))),r==null||r.forEach(v=>{var f;if(l!=null&&l[v]){let d=l==null?void 0:l[v];s=s?d?Bl.isEqual(d.toString(),s.toString()):void 0:d}else{let d=(f=t==null?void 0:t.find(g=>(g==null?void 0:g.label)===v))==null?void 0:f.prop,y=(l==null?void 0:l[d])??0;s=s?y?Bl.isEqual(y.toString(),s.toString()):void 0:y}}),l[n]=s===void 0?void 0:s?1:0,l},kr=a=>{const[l,r,n]=A.cloneDeep(a).split(":").map(Number);let t=+a;return!a||!(a!=null&&a.includes(":"))?t:(l??0)*3600+(r??0)*60+(n??0)},Pn=a=>{const l=s=>s.toString().padStart(2,"0"),r=Math.floor(a/3600),n=Math.floor(a%3600/60),t=a%60;return`${l(r)}:${l(n)}:${parseInt(l(t))}`},Op=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ve.getValueToObjectValue(l,ve.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,O,k,K,M,R;if(l!=null&&l[d]){if(s==="Row")if(!((g=((y=l==null?void 0:l[d])==null?void 0:y.toString())??"")!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let j=+(l==null?void 0:l[d]);f=f+j}else f=kr(f.toString())+kr((D=l==null?void 0:l[d])==null?void 0:D.toString()),f=Pn(f)}else if(s==="Row"){let j=(O=t==null?void 0:t.find(E=>(E==null?void 0:E.label)===d))==null?void 0:O.prop;if(!((K=Number.isNaN(l==null?void 0:l[j])?"":(k=l==null?void 0:l[j])==null?void 0:k.toString())!=null&&K.includes(":"))&&!((M=f==null?void 0:f.toString())!=null&&M.includes(":"))){let E=+((l==null?void 0:l[j])??0);f=f+E}else f=kr(f==null?void 0:f.toString())+kr((R=(l==null?void 0:l[j])??0)==null?void 0:R.toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(O=>(O==null?void 0:O.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c+D},0)}return l[n]=f,l},Lp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ve.getValueToObjectValue(l,ve.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,O,k,K;if(l!=null&&l[d]){if(s==="Row")if(!((g=(y=l==null?void 0:l[d])==null?void 0:y.toString())!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let M=+(l==null?void 0:l[d]);f=f===0?f+M:f-M}else f=f===0?kr(f.toString())+kr(l==null?void 0:l[d].toString()):kr(f.toString())-kr(l==null?void 0:l[d].toString()),f=Pn(f)}else if(s==="Row"){let M=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===d))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[M])?"":(O=l==null?void 0:l[M])==null?void 0:O.toString())!=null&&k.includes(":"))&&!((K=f==null?void 0:f.toString())!=null&&K.includes(":"))){let R=+((l==null?void 0:l[M])??0);f=f===0?f+R:f-R}else f=f===0?kr(f.toString())+kr(((l==null?void 0:l[M])??0).toString()):kr(f.toString())-kr(((l==null?void 0:l[M])??0).toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(O=>(O==null?void 0:O.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c-D},0)}return l[n]=f,l},Rp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ve.getValueToObjectValue(l,ve.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,O,k,K;if(l!=null&&l[d]){if(s==="Row")if(!((g=(y=l==null?void 0:l[d])==null?void 0:y.toString())!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let M=+(l==null?void 0:l[d]);f=f===0?f+M:f*M}else f=f===0?kr(f.toString())+kr(l==null?void 0:l[d].toString()):kr(f.toString())*kr(l==null?void 0:l[d].toString()),f=Pn(f)}else if(s==="Row"){let M=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===d))==null?void 0:D.prop;if(!(l!=null&&l[M]))f=void 0;else if(!((k=Number.isNaN(l==null?void 0:l[M])?"":(O=l==null?void 0:l[M])==null?void 0:O.toString())!=null&&k.includes(":"))&&!((K=f==null?void 0:f.toString())!=null&&K.includes(":"))){let R=+((l==null?void 0:l[M])??0);f=f===0?f+R:f*R}else f=f===0?kr(f.toString())+kr(((l==null?void 0:l[M])??0).toString()):kr(f.toString())*kr(((l==null?void 0:l[M])??0).toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(O=>(O==null?void 0:O.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c*D},0)}return l[n]=f,l},$p=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,f=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ve.getValueToObjectValue(l,ve.getColumnContents(t))),r==null||r.forEach(d=>{var y,g,c,D,O,k,K;if(l!=null&&l[d]){if(s==="Row")if(!((g=(y=l==null?void 0:l[d])==null?void 0:y.toString())!=null&&g.includes(":"))&&!((c=f==null?void 0:f.toString())!=null&&c.includes(":"))){let M=+(l==null?void 0:l[d]);f=f===0?f+M:f/M}else f=f===0?kr(f.toString())+kr(l==null?void 0:l[d].toString()):kr(f.toString())/kr(l==null?void 0:l[d].toString()),f=Pn(f)}else if(s==="Row"){let M=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===d))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[M])?"":(O=l==null?void 0:l[M])==null?void 0:O.toString())!=null&&k.includes(":"))&&!((K=f==null?void 0:f.toString())!=null&&K.includes(":"))){let R=+((l==null?void 0:l[M])??0);f=f===0?f+R:f/R}else f=f===0?kr(f.toString())+kr(((l==null?void 0:l[M])??0).toString()):kr(f.toString())/kr(((l==null?void 0:l[M])??0).toString()),f=Pn(f)}}),s==="Column"){let d=[];r==null||r.forEach(y=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[y])??(c==null?void 0:c[(D=t==null?void 0:t.find(O=>(O==null?void 0:O.label)===y))==null?void 0:D.prop])});d=[...d,...g]}),f=d.reduce((y,g)=>{let c=0;Number.isNaN(y)||(c=+y);let D=0;return Number.isNaN(g)||(D=+g),c/D},0)}return l[n]=f.toFixed(2),l},fo={Sum:Op,Substract:Lp,Multiple:Rp,Divide:$p,Compare:Ip},Vp=async(a,l,r,n="Auto",t,s=[])=>{var g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be,Me,V;let v=a,f=[],d=await A.getPageDataApi({platId:parseInt((g=xi==null?void 0:xi.value)==null?void 0:g.plat_id),pageName:"menu"});d=(O=(D=(c=d==null?void 0:d.data)==null?void 0:c.result)==null?void 0:D.filter(fe=>(fe==null?void 0:fe.property_name)===""))==null?void 0:O[0];let y=[];if(d!=null&&d.object_name){d=d==null?void 0:d.object_name;let fe=await A.getPageDataApi({platId:parseInt((k=xi==null?void 0:xi.value)==null?void 0:k.plat_id),pageName:d});fe=(E=(j=(R=(M=(K=fe==null?void 0:fe.data)==null?void 0:K.result)==null?void 0:M[0])==null?void 0:R.contents)==null?void 0:j.find(le=>{var pe;return(pe=le==null?void 0:le.key)==null?void 0:pe.includes("content")}))==null?void 0:E.value,f=(w=fe==null?void 0:fe.map(le=>({functionName:le==null?void 0:le.函数名称,functionContent:le==null?void 0:le.输出值})))==null?void 0:w.filter(le=>(le==null?void 0:le.functionContent)!==""),f==null||f.forEach(le=>{y.push(le.functionName),fo[le.functionName]=new Function("return "+le.functionContent)()})}if((l==null?void 0:l.length)===0)return v;for(let fe in l){let le=(x=l==null?void 0:l[fe])==null?void 0:x.functionName;const pe=fo==null?void 0:fo[le];let De=(b=l==null?void 0:l[fe])==null?void 0:b.methods;if(De=ve.analyzeSplitToContent(De,","),console.log(De),(_=De==null?void 0:De.find(Ve=>Ve==null?void 0:Ve.includes("@FunctionType")))!=null&&_.includes(n)||(De==null?void 0:De.length)===0){let Ve=((J=(F=($=De==null?void 0:De.find(ge=>ge==null?void 0:ge.includes("@FunctionExtent")))==null?void 0:$.replace(":","="))==null?void 0:F.split("="))==null?void 0:J[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(ge=>ge===le)){let ge="";try{let de=(ce=l==null?void 0:l[fe])==null?void 0:ce.functionRelatedWords,U=(s==null?void 0:s.length)>0?s==null?void 0:s.map(Oe=>{var Fe;return Oe==null?void 0:Oe[(Fe=l==null?void 0:l[fe])==null?void 0:Fe.prop]}):["0"];U=U==null?void 0:U.map(Oe=>Oe==null?void 0:Oe.slice((Oe==null?void 0:Oe.length)-5,Oe==null?void 0:Oe.length)),U=U==null?void 0:U.map(Oe=>ve.isNumber(parseInt(Oe))&&parseInt(Oe)?parseInt(Oe):0);let Se=Math.max(...U);de=de==null?void 0:de.map(Oe=>{if(Oe!=null&&Oe.includes("'"))return Oe==null?void 0:Oe.replaceAll("'","");if(Oe!=null&&Oe.includes("@"))return Se+1;{let Fe=Object.keys(v);return Oe=(v==null?void 0:v[Oe])??(v==null?void 0:v[Fe==null?void 0:Fe.find(la=>la==null?void 0:la.includes("."+Oe))]),Oe}}),ge=pe(...de)}catch(de){ja.ElMessage.warning("关联数据出现错误,"+de.message)}let N=(be=l==null?void 0:l[fe])==null?void 0:be.prop;v[N]=ge}else v=pe({contents:v,valueString:(Me=l==null?void 0:l[fe])==null?void 0:Me.functionRelatedWords,prop:(V=l==null?void 0:l[fe])==null?void 0:V.prop,headers:r,typeString:Ve,allContents:t})}}return v},Fp=A.useLoginState(A.pinia),{loginUserInfo:Xr}=A.storeToRefs(Fp),Pp=A.useMenuState(A.pinia),{activeMenuPath:os,currentMenuPath:ho}=A.storeToRefs(Pp),ic=A.useUnit(A.pinia);let ts="$R";const{selectTitle:Si}=A.storeToRefs(ic),oc=async(a,l)=>{var v,f,d,y,g,c,D,O,k,K,M,R,j;let r=os.value,n="",t=((v=Si==null?void 0:Si.value)==null?void 0:v.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(r=l?r:(f=a==null?void 0:a[0])==null?void 0:f.object_name,n=(d=a==null?void 0:a[0])==null?void 0:d.father_name);let s=[];if(n!==""){let E=n;(E==null?void 0:E[(E==null?void 0:E.length)-1])==="/"&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1));let w=await Kr(E,!1);w=(y=w==null?void 0:w[0])==null?void 0:y.compData;let x=(g=w==null?void 0:w.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:g.contents;x=((c=x==null?void 0:x.find(_=>_==null?void 0:_.isMainKey))==null?void 0:c.prop)??((D=x==null?void 0:x[0])==null?void 0:D.prop);let b=(k=(O=w==null?void 0:w.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:O.contents)==null?void 0:k.map(_=>({label:_==null?void 0:_[x],value:_==null?void 0:_[x]}));s=(K=n==null?void 0:n.split("/"))==null?void 0:K.map(_=>(_===""?t?(t.isShow=!0,_=t):_={value:_,condition:"child",options:b,parentContent:(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"?n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1):n,isShow:!0}:_={condition:"parent",value:_.trim(),isShow:!0},_))}if(r!==""){let E=(M=r==null?void 0:r.split("/"))==null?void 0:M.map(w=>(w={condition:"normal",value:w.trim(),isShow:!0},w));((R=E==null?void 0:E[0])==null?void 0:R.value)===((j=s==null?void 0:s[0])==null?void 0:j.value)&&(E=E==null?void 0:E.filter((w,x)=>x!==0)),s=[...s??[],...E??[]]}n===""&&t&&((t==null?void 0:t.parentContent)!==os.value&&(t.isShow=!1),(t==null?void 0:t.value)!==""&&s.push(t)),ic.setSelectTitle(s)},jp=async a=>{var s,v,f,d,y,g,c,D,O;let l=await A.getPageDataApi({platId:parseInt((s=Xr==null?void 0:Xr.value)==null?void 0:s.plat_id),pageName:"menu"}),r=(v=l==null?void 0:l.data)==null?void 0:v.result,n=(g=(y=(d=(f=a==null?void 0:a.filter(k=>(k==null?void 0:k.comp)==="Table"))==null?void 0:f[0])==null?void 0:d.compData)==null?void 0:y.find(k=>(k==null?void 0:k.key)==="filter"))==null?void 0:g.contents;n=(O=(D=(c=n==null?void 0:n.replace("(",ts))==null?void 0:c.split(ts))==null?void 0:D[0])==null?void 0:O.replaceAll(":","/");let t=r==null?void 0:r.filter(k=>{var K;return(k==null?void 0:k.object_name)===ho.value+"/"||((K=ho.value)==null?void 0:K.includes(n))&&n+"/"===(k==null?void 0:k.object_name)});return(t==null?void 0:t.length)>0&&(a=a==null?void 0:a.map(k=>{var K;return(k==null?void 0:k.comp)==="Table"&&(k.compData=(K=k==null?void 0:k.compData)==null?void 0:K.map(M=>{var R,j,E;return(M==null?void 0:M.key)==="header"&&(Array.isArray((R=M.contents)==null?void 0:R[0])?M.contents[0]=(E=M.contents[0])==null?void 0:E.map((w,x)=>{var b;return x===0&&(w.isExistChild=!0,(b=ho.value)!=null&&b.includes(n)&&(w.fatherPath=n)),w}):M.contents=(j=M.contents)==null?void 0:j.map((w,x)=>{var b;return x===0&&(w.isExistChild=!0,(b=ho.value)!=null&&b.includes(n)&&(w.fatherPath=n)),w})),M})),k})),a},Kr=async(a,l,r={})=>{var v,f,d,y,g,c,D,O,k,K,M,R;let n=await A.getPageDataApi({platId:parseInt((v=Xr==null?void 0:Xr.value)==null?void 0:v.plat_id),pageName:a}),t=(f=n==null?void 0:n.data)==null?void 0:f.result;if((t==null?void 0:t.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==a){let j=await A.getPageDataApi({platId:parseInt((d=Xr==null?void 0:Xr.value)==null?void 0:d.plat_id),pageName:r==null?void 0:r.originPath});if(((g=(y=j==null?void 0:j.data)==null?void 0:y.result)==null?void 0:g.length)>0){let E=await is((c=j==null?void 0:j.data)==null?void 0:c.result,r,!1);E=E==null?void 0:E.map(async b=>{var F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka;let _=[],$=(F=Object.keys(b))==null?void 0:F.filter(L=>(L==null?void 0:L.includes("name"))&&L!=="nameContents");for(let L in b)$!=null&&$.find(H=>H===L)&&_.push(b==null?void 0:b[L]);if(_=_.reverse(),(b==null?void 0:b.comp)==="Table"){let L=(be=(ce=(J=b==null?void 0:b.compData)==null?void 0:J.find(Q=>(Q==null?void 0:Q.key)==="tableContents"))==null?void 0:ce.contents)==null?void 0:be.map(Q=>{let ye={};for(let me in Q)me!=="id"&&me!=="create_time"&&me!=="update_time"&&me!=="sort"&&me!=="create_user_id"&&me!=="update_user_id"&&me!=="department_id"&&me!=="relatedId"&&(ye[me]=Q==null?void 0:Q[me]);return Q=Object.values(ye),Q}),H=(V=(Me=b==null?void 0:b.compData)==null?void 0:Me.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:V.contents;if(Array.isArray(H==null?void 0:H[0])?(H[0].push({label:"排序",prop:"sort"}),H[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(fe=H[0])!=null&&fe.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(H[0]=(le=H[0])==null?void 0:le.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),H[0].unshift({label:"",prop:"disabled",sortable:!1}))):(H||(H=[]),H.push({label:"排序",prop:"sort"}),H.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),H!=null&&H.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(H=H==null?void 0:H.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),H.unshift({label:"",prop:"disabled",sortable:!1}))),H!=null&&H.some(Q=>{var ye;return(Q==null?void 0:Q.calculatorFilter)&&((ye=Q==null?void 0:Q.calculatorFilter)==null?void 0:ye.includes("Auto"))})&&(L=await vt(L,H,"Auto"),L=L==null?void 0:L.map(Q=>Object.values(Q))),b!=null&&b.fatherSyncContents){Array.isArray((pe=b==null?void 0:b.fatherSyncContents)==null?void 0:pe[0])&&(b.fatherSyncContents=(De=b==null?void 0:b.fatherSyncContents)==null?void 0:De[0]);let Q=(Ve=Si.value)==null?void 0:Ve.find(ye=>(ye==null?void 0:ye.condition)==="child");b.fatherSyncContents=(ge=b==null?void 0:b.fatherSyncContents)==null?void 0:ge.map(ye=>{var me,va,Qe,ue,ma,Te;return((va=ye==null?void 0:ye.menus)==null?void 0:va[((me=ye==null?void 0:ye.menus)==null?void 0:me.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(ye==null?void 0:ye.menus)?ye.menus=(ye==null?void 0:ye.menus)+(Q==null?void 0:Q.value):((ue=ye==null?void 0:ye.menus)==null?void 0:ue[((Qe=ye==null?void 0:ye.menus)==null?void 0:Qe.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(ye==null?void 0:ye.menus)&&(ye.menus=(Te=ye.menus)==null?void 0:Te.slice(0,((ma=ye.menus)==null?void 0:ma.length)-1)),ye})}if(b!=null&&b.sonSyncContents){Array.isArray((N=b==null?void 0:b.sonSyncContents)==null?void 0:N[0])&&(b.sonSyncContents=(de=b==null?void 0:b.sonSyncContents)==null?void 0:de[0]);let Q=(U=Si.value)==null?void 0:U.find(ye=>(ye==null?void 0:ye.condition)==="child");b.sonSyncContents=(Se=b==null?void 0:b.sonSyncContents)==null?void 0:Se.map(ye=>{var me,va,Qe,ue,ma,Te;return((va=ye==null?void 0:ye.menus)==null?void 0:va[((me=ye==null?void 0:ye.menus)==null?void 0:me.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(ye==null?void 0:ye.menus)?ye.menus=(ye==null?void 0:ye.menus)+(Q==null?void 0:Q.value):((ue=ye==null?void 0:ye.menus)==null?void 0:ue[((Qe=ye==null?void 0:ye.menus)==null?void 0:Qe.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(ye==null?void 0:ye.menus)&&(ye.menus=(Te=ye.menus)==null?void 0:Te.slice(0,((ma=ye.menus)==null?void 0:ma.length)-1)),ye})}if(b!=null&&b.relatedQuotes){Array.isArray((Oe=b==null?void 0:b.relatedQuotes)==null?void 0:Oe[0])&&(b.relatedQuotes=(Fe=b==null?void 0:b.relatedQuotes)==null?void 0:Fe[0]);let Q=(la=Si.value)==null?void 0:la.find(ye=>(ye==null?void 0:ye.condition)==="child");b.relatedQuotes=(Da=b==null?void 0:b.relatedQuotes)==null?void 0:Da.map(ye=>{var me,va,Qe,ue,ma,Te;return((va=ye==null?void 0:ye.menus)==null?void 0:va[((me=ye==null?void 0:ye.menus)==null?void 0:me.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(ye==null?void 0:ye.menus)?ye.menus=(ye==null?void 0:ye.menus)+(Q==null?void 0:Q.value):((ue=ye==null?void 0:ye.menus)==null?void 0:ue[((Qe=ye==null?void 0:ye.menus)==null?void 0:Qe.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(ye==null?void 0:ye.menus)&&(ye.menus=(Te=ye.menus)==null?void 0:Te.slice(0,((ma=ye.menus)==null?void 0:ma.length)-1)),ye})}b={filter:(ca=(re=b==null?void 0:b.compData)==null?void 0:re.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:ca.contents,key:b==null?void 0:b.comp,name:_,tableColumns:H,tableContents:L,menuFilter:b==null?void 0:b.menuFilter,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}else{let L=(Ee=(da=(se=b==null?void 0:b.compData)==null?void 0:se.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:da.contents)==null?void 0:Ee.map(Q=>(Q==null?void 0:Q.value)??"");L=[L];let H=(Ue=(Ae=(te=b==null?void 0:b.compData)==null?void 0:te.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:Ae.contents)==null?void 0:Ue.map(Q=>(Q.value="",Q));b={contents:L,filter:(Ka=(sa=b==null?void 0:b.compData)==null?void 0:sa.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:Ka.contents,key:b==null?void 0:b.comp,name:_,value:H,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}return b.isShow=!1,b}),E=await Promise.all(E);let w=[{key:"menuPath",contents:[{path:a,fatherPath:(k=(O=(D=j==null?void 0:j.data)==null?void 0:D.result)==null?void 0:O[0])==null?void 0:k.father_name,isShow:!1}]},{key:a,contents:E}];await A.createPlatFormDataApi({platId:parseInt((K=Xr==null?void 0:Xr.value)==null?void 0:K.plat_id),changeData:w});let x=await A.getPageDataApi({platId:parseInt((M=Xr==null?void 0:Xr.value)==null?void 0:M.plat_id),pageName:a});t=(R=x==null?void 0:x.data)==null?void 0:R.result}}l&&await oc(t,!!(r!=null&&r.originPath));let s=await is(t,r);return l&&(s=await jp(s)),s==null?void 0:s.filter(j=>j)},ss=async a=>{var n,t,s,v,f,d,y,g,c,D,O;let l=(n=a==null?void 0:a.menus)==null?void 0:n.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((s=(t=a.value)==null?void 0:t.split(" "))==null?void 0:s[0]));let r=await Kr(l,!1);if(r=(v=r==null?void 0:r.filter(k=>{var K,M;return(k==null?void 0:k.name)===((M=a==null?void 0:a.groups)==null?void 0:M[((K=a==null?void 0:a.groups)==null?void 0:K.length)-1])}))==null?void 0:v[0],(d=(f=r==null?void 0:r.compData)==null?void 0:f.find(k=>(k==null?void 0:k.key)==="tableContents"))!=null&&d.contents){r=(g=(y=r==null?void 0:r.compData)==null?void 0:y.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:g.contents;let k=((c=a==null?void 0:a.words)==null?void 0:c[0])??(a==null?void 0:a.prop);return r=r==null?void 0:r.filter(K=>{var M,R,j,E;return(K==null?void 0:K[a!=null&&a.endChildMenu?k:(M=a==null?void 0:a.words)==null?void 0:M[0]])===(a!=null&&a.relatedWords&&((R=a==null?void 0:a.relatedWords)==null?void 0:R.length)>0?(E=(j=a.value)==null?void 0:j.split(" "))==null?void 0:E[0]:a.value)}),r==null?void 0:r[0]}else{let k=(O=(D=r==null?void 0:r.compData)==null?void 0:D.find(M=>(M==null?void 0:M.key)==="formContent"))==null?void 0:O.contents,K={};return k==null||k.forEach(M=>{K[M.prop]=M.value}),K}},Hp={key:0,class:"extra-button-content"},Up={class:"table-operator-wrap"},qp={key:0,class:"extra-button-filter"},Wp={key:1,class:"extra-header"},Kp=["onClick"],Gp={class:"table-op-text"},Yp={class:"table-op-text"},Jp={class:"drop-menu",style:{width:"120px"}},Xp=["onClick"],Zp={key:0},Qp={key:1},ef=["onClick"],af={class:"table-op-text"},lf={key:1,class:"extra-button-content tabs-button-wrapper"},rf={class:"table-operator-wrap"},nf={class:"extra-button-filter"},of={key:0,class:"extra-header"},tf={class:"table-op-action"},sf={class:"table-op-text"},cf={class:"drop-menu",style:{width:"120px"}},uf={key:0},df={key:1},pf=["onClick"],ff={class:"table-op-text"},hf={__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(a,{emit:l}){const r=l,n=a,t=()=>{const $=(n==null?void 0:n.menuFilter)||[];return Array.isArray($)&&($==null?void 0:$.some(F=>{const J=typeof F=="string"?F:JSON.stringify(F);return J==null?void 0:J.includes("HideGroup=Yes")}))},s=e.ref(""),v=e.ref(!1),f=e.ref(!1),d=e.ref([]),y=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),g=[{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 c($,F){return $.map(J=>{const ce={...J};return F.forEach(be=>{delete ce[be]}),ce})}function D($){if(!$||$.t!=="n")return($==null?void 0:$.v)??"";const F=$.v;if($.z){const J=String($.z).toLowerCase(),ce=["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 V of ce)if(J.includes(V))return O(F);const be=/[ymdhms]/.test(J),Me=/^[0#\.\,\s]+$/.test(J.replace(/[\\\/\-:]/g,""));if(be&&!Me)return O(F)}if(F>=1&&F<=73050){if(F<5e3)return F;if(F>=5e3&&F<4e4){const J=Math.floor((F-25569)/365.25)+1970;return J>=1970&&J<=2e3&&$.z&&/[ymd]/.test(String($.z).toLowerCase())?O(F):F}if(F>=4e4)return O(F)}return F}function O($){if(typeof $!="number")return $;try{const F=new Date(($-25569)*86400*1e3);if(isNaN(F.getTime()))return $;const J=F.getFullYear(),ce=String(F.getMonth()+1).padStart(2,"0"),be=String(F.getDate()).padStart(2,"0");return`${J}-${ce}-${be}`}catch{return $}}const k=$=>{const F=$.raw;if(!F)return;const J=new FileReader;J.onload=ce=>{try{const be=new Uint8Array(ce.target.result),Me=ve.readSync(be,{type:"array"}),V=Me.SheetNames[0],fe=Me.Sheets[V],pe=ve.utils.decode_range(fe["!ref"]).e.c+1,De=new Array(pe).fill(""),Ve=[];for(const Se in fe){if(Se[0]==="!")continue;const{r:Oe,c:Fe}=ve.utils.decode_cell(Se),la=fe[Se];let Da=D(la);if((Da==null||Da==="")&&(Da=""),Oe===0)De[Fe]=Da;else{if(!Ve[Oe-1]){Ve[Oe-1]={};for(let re=0;re<pe;re++)Ve[Oe-1][`col_${re}`]=""}Ve[Oe-1][`col_${Fe}`]=Da}}for(let Se=0;Se<pe;Se++)De[Se]===void 0&&(De[Se]="");const ge=[];for(let Se=0;Se<De.length;Se++)(!De[Se]||De[Se].toString().trim()==="")&&ge.push(Se);let N,de;(ge==null?void 0:ge.length)>0?(ja.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=De.filter((Se,Oe)=>!ge.includes(Oe)),de=c(Ve,ge==null?void 0:ge.map(Se=>`col_${Se}`))):(N=De,de=Ve);const U=Ve==null?void 0:Ve[0];if(!(U!=null&&U.hasOwnProperty("col_0")))return ja.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",N,de)}catch(be){throw ja.ElMessage.error(be.message),new Error(be.message)}},J.readAsArrayBuffer(F)},K=$=>{var J;const F=(J=d.value)==null?void 0:J.reduce((ce,be,Me)=>(Me===0?ce[be.label]=$:ce[be.label]=be==null?void 0:be.value,ce),{});r("filter",F,$,!0)},M=($,F={})=>{r("buttonClick",$,"",F)},R=$=>{var F,J;d.value=(J=(F=ve.getColumnChild(A.cloneDeep($)))==null?void 0:F.filter(ce=>(ce==null?void 0:ce.label)!==""&&(ce==null?void 0:ce.label)!=="操作"))==null?void 0:J.map(ce=>({label:(ce==null?void 0:ce.label)??"",value:"",name:(ce==null?void 0:ce.prop)??"",isFormColHidden:ce==null?void 0:ce.isTableColHidden,width:2,prop:(ce==null?void 0:ce.prop)??""}))},j=e.ref(!1),E=$=>{var F;if(($==null?void 0:$.buttonName)==="确认"&&(r("filter",$==null?void 0:$.content),j.value=($==null?void 0:$.content)&&Object.values($==null?void 0:$.content).length>0),($==null?void 0:$.buttonName)==="清空"){const J=A.cloneDeep($==null?void 0:$.content);for(const ce in J)J[ce]="";d.value=(F=d.value)==null?void 0:F.map(ce=>({...ce,value:""})),r("filter",J),j.value=!1}v.value=!1},w=()=>{v.value=!v.value,f.value=!0},x=()=>{var F,J;d.value=(F=d.value)==null?void 0:F.map(ce=>({...ce,value:""}));const $=(J=d.value)==null?void 0:J.reduce((ce,be)=>(ce[be.label]=be.value,ce),{});r("filter",$)},b=e.ref(null);let _;return _=$=>{var be;if(!v.value)return;const F=(be=b==null?void 0:b.value)==null?void 0:be.$el,J=F==null?void 0:F.contains($.target);let ce=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Me=>{Me.contains($.target)&&(ce=!0)}),!J&&!ce&&(v.value=!1)},e.onMounted(()=>{document.addEventListener("click",_),R(n.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",_)}),e.watch(()=>n.columns,()=>{R(n.columns)},{deep:!0,immediate:!0}),($,F)=>{var fe,le,pe,De,Ve,ge,N,de;const J=e.resolveComponent("el-icon"),ce=e.resolveComponent("svg-icon"),be=e.resolveComponent("el-input"),Me=e.resolveComponent("el-upload"),V=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Hp,[t()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(n==null?void 0:n.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((n==null?void 0:n.level)-1)*12+"px",fontWeight:600-((n==null?void 0:n.level)-1)*100>=400?600-((n==null?void 0:n.level)-1)*100:400,fontSize:17-(n==null?void 0:n.level)>=14?17-(n==null?void 0:n.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Up,[n!=null&&n.filterShow?(e.openBlock(),e.createElementBlock("div",qp,[e.createVNode(Ou,{trigger:"contextmenu",ref_key:"popOverRef",ref:b,title:"",width:800,placement:"bottom-start",isVisible:v.value,"onUpdate:isVisible":F[4]||(F[4]=U=>v.value=U)},{reference:e.withCtx(()=>{var U,Se,Oe,Fe;return[e.createVNode(be,{modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=la=>s.value=la),style:{"min-width":"80px"},placeholder:j.value?(Oe=(Se=(U=a.filterValues)==null?void 0:U.filter(la=>la))==null?void 0:Se.slice(0,3))==null?void 0:Oe.join("/"):"搜索","prefix-icon":e.unref(ja.search_default),clearable:"",onInput:K,disabled:((Fe=d.value)==null?void 0:Fe.length)===0},{suffix:e.withCtx(()=>{var la,Da;return[!s.value&&((Da=(la=a.filterValues)==null?void 0:la.filter(re=>re))!=null&&Da.join("/"))?(e.openBlock(),e.createBlock(J,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(ja.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(w,["stop"])},[e.createVNode(ce,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:F[1]||(F[1]=e.withModifiers(()=>{},["stop"])),onKeyup:F[2]||(F[2]=e.withModifiers(()=>{},["stop"])),onKeypress:F[3]||(F[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,buttonValue:y.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:y.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((fe=a.buttons)==null?void 0:fe.length)>0?(e.openBlock(),e.createElementBlock("div",Wp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((le=a.buttons)==null?void 0:le.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,Se)=>{var Oe;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Se},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:la=>M(U==null?void 0:U.label)},[e.createVNode(ce,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Gp,e.toDisplayString(U==null?void 0:U.label),1)],10,Kp)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(ll._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(ce,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Yp,e.toDisplayString(U==null?void 0:U.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Jp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>{var la,Da;return e.openBlock(),e.createElementBlock("div",{key:Fe==null?void 0:Fe.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:re=>!a.lockingPage&&M(Fe==null?void 0:Fe.label)},[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(la=Fe==null?void 0:Fe.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",Zp,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Da=Fe==null?void 0:Fe.label)!=null&&Da.includes("全部")?(e.openBlock(),e.createElementBlock("span",Qp,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,Xp)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Fe=>!a.lockingPage&&M(U==null?void 0:U.label,U)},[e.createVNode(ce,{class:"table-op-icon",name:((Oe=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Oe.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",af,e.toDisplayString(U==null?void 0:U.label),1)],10,ef)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",lf,[e.createElementVNode("div",rf,[e.createElementVNode("div",nf,[e.createVNode(be,{modelValue:s.value,"onUpdate:modelValue":F[5]||(F[5]=U=>s.value=U),style:{"min-width":"80px"},placeholder:j.value?(Ve=(De=(pe=a.filterValues)==null?void 0:pe.filter(U=>U))==null?void 0:De.slice(0,3))==null?void 0:Ve.join("/"):"搜索","prefix-icon":e.unref(ja.search_default),clearable:"",onInput:K,disabled:((ge=d.value)==null?void 0:ge.length)===0},{suffix:e.withCtx(()=>{var U,Se;return[!s.value&&((Se=(U=a.filterValues)==null?void 0:U.filter(Oe=>Oe))!=null&&Se.join("/"))?(e.openBlock(),e.createBlock(J,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(ja.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(w,["stop"])},[e.createVNode(ce,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((N=a.buttons)==null?void 0:N.length)>0?(e.openBlock(),e.createElementBlock("div",of,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((de=a.buttons)==null?void 0:de.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,Se)=>{var Oe;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Se},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",tf,[e.createVNode(ce,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",sf,e.toDisplayString(U==null?void 0:U.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(ll._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(V,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Fe;return[e.createVNode(ce,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(U==null?void 0:U.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",cf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>(e.openBlock(),e.createBlock(V,{key:Fe==null?void 0:Fe.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:la=>M(Fe==null?void 0:Fe.label)},{default:e.withCtx(()=>{var la,Da;return[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(la=Fe==null?void 0:Fe.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",uf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Da=Fe==null?void 0:Fe.label)!=null&&Da.includes("全部")?(e.openBlock(),e.createElementBlock("span",df,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Fe=>!a.lockingPage&&M(U==null?void 0:U.label,U)},[e.createVNode(ce,{class:"table-op-icon",name:(Oe=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Oe.icon},null,8,["name"]),e.createElementVNode("span",ff,e.toDisplayString(U==null?void 0:U.label),1)],10,pf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},vf=Zl._export_sfc(hf,[["__scopeId","data-v-44a17652"]]),mf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,r)=>{const n=e.resolveComponent("el-table-column"),t=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(t,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,s=>{var v;return e.openBlock(),e.createBlock(n,{key:s==null?void 0:s.prop,label:s==null?void 0:s.label,prop:s==null?void 0:s.prop,fixed:(s==null?void 0:s.prop)==="operate"?"right":s==null?void 0:s.fixed,align:(s==null?void 0:s.align)??"left","show-overflow-tooltip":(s==null?void 0:s.showOverflowTooltip)??!0,width:s==null?void 0:s.width,"min-width":(s==null?void 0:s.minWidth)||((s==null?void 0:s.prop)==="operate"?80:(((v=s==null?void 0:s.label)==null?void 0:v.length)*2||4)*27)},{default:e.withCtx(f=>[e.renderSlot(l.$slots,"content",{row:f.row,column:f.column,$index:f.$index,scope:f}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,(d,y)=>(e.openBlock(),e.createBlock(ll._sfc_main$2,{key:y,column:d,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(g,c)=>({name:c,fn:e.withCtx(({row:D,slotData:O,item:k,column:K})=>[e.renderSlot(l.$slots,c,e.mergeProps({ref_for:!0},O??D,{item:k??d,slotData:O??D,row:D,column:K,columnProp:d}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class yf extends Bl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,r,n,t){const s=this,v=new Bl.FileLoader(s.manager);v.setPath(s.path),v.setResponseType("arraybuffer"),v.setRequestHeader(s.requestHeader),v.setWithCredentials(s.withCredentials),v.load(l,function(f){try{r(s.parse(f))}catch(d){t?t(d):console.error(d),s.manager.itemError(l)}},n,t)}_getDataView(l,r,n,t){switch(n){case"F":return t===8?l.getFloat64(r,this.littleEndian):l.getFloat32(r,this.littleEndian);case"I":return t===1?l.getInt8(r):t===2?l.getInt16(r,this.littleEndian):l.getInt32(r,this.littleEndian);case"U":return t===1?l.getUint8(r):t===2?l.getUint16(r,this.littleEndian):l.getUint32(r,this.littleEndian)}}parse(l){function r(O,k){const K=O.length,M=new Uint8Array(k);let R=0,j=0,E,w,x;do if(E=O[R++],E<32){if(E++,j+E>k)throw new Error("Output buffer is not large enough");if(R+E>K)throw new Error("Invalid compressed data");do M[j++]=O[R++];while(--E)}else{if(w=E>>5,x=j-((E&31)<<8)-1,R>=K)throw new Error("Invalid compressed data");if(w===7&&(w+=O[R++],R>=K))throw new Error("Invalid compressed data");if(x-=O[R++],j+w+2>k)throw new Error("Output buffer is not large enough");if(x<0)throw new Error("Invalid compressed data");if(x>=j)throw new Error("Invalid compressed data");do M[j++]=M[x++];while(--w+2)}while(R<K);return M}function n(O){const k={},K=new Uint8Array(O);let M="",R="",j=0,E=!1;const w=K.length;for(;j<w&&E===!1;){const $=String.fromCharCode(K[j++]);$===`
|
|
2
|
-
`||$==="\r"?(R.trim().toLowerCase().startsWith("data")&&(E=!0),R=""):R+=$,M+=$}const x=M.search(/[\r\n]DATA\s(\S*)\s/i),b=/[\r\n]DATA\s(\S*)\s/i.exec(M.slice(x-1));if(k.data=b[1],k.headerLen=b[0].length+x,k.str=M.slice(0,k.headerLen),k.str=k.str.replace(/#.*/gi,""),k.version=/^VERSION (.*)/im.exec(k.str),k.fields=/^FIELDS (.*)/im.exec(k.str),k.size=/^SIZE (.*)/im.exec(k.str),k.type=/^TYPE (.*)/im.exec(k.str),k.count=/^COUNT (.*)/im.exec(k.str),k.width=/^WIDTH (.*)/im.exec(k.str),k.height=/^HEIGHT (.*)/im.exec(k.str),k.viewpoint=/^VIEWPOINT (.*)/im.exec(k.str),k.points=/^POINTS (.*)/im.exec(k.str),k.version!==null&&(k.version=parseFloat(k.version[1])),k.fields=k.fields!==null?k.fields[1].split(" "):[],k.type!==null&&(k.type=k.type[1].split(" ")),k.width!==null&&(k.width=parseInt(k.width[1])),k.height!==null&&(k.height=parseInt(k.height[1])),k.viewpoint!==null&&(k.viewpoint=k.viewpoint[1]),k.points!==null&&(k.points=parseInt(k.points[1],10)),k.points===null&&(k.points=k.width*k.height),k.size!==null&&(k.size=k.size[1].split(" ").map(function($){return parseInt($,10)})),k.count!==null)k.count=k.count[1].split(" ").map(function($){return parseInt($,10)});else{k.count=[];for(let $=0,F=k.fields.length;$<F;$++)k.count.push(1)}k.offset={};let _=0;for(let $=0,F=k.fields.length;$<F;$++)k.data==="ascii"?k.offset[k.fields[$]]=$:(k.offset[k.fields[$]]=_,_+=k.size[$]*k.count[$]);return k.rowSize=_,k}const t=n(l),s=[],v=[],f=[],d=[],y=[],g=new Bl.Color;if(t.data==="ascii"){const O=t.offset,M=new TextDecoder().decode(l).slice(t.headerLen).split(`
|
|
3
|
-
`);for(let R=0,j=M.length;R<j;R++){if(M[R]==="")continue;const E=M[R].split(" ");if(O.x!==void 0&&(s.push(parseFloat(E[O.x])),s.push(parseFloat(E[O.y])),s.push(parseFloat(E[O.z]))),O.rgb!==void 0){const w=t.fields.findIndex(ce=>ce==="rgb"),x=t.type[w],b=parseFloat(E[O.rgb]);let _=b;if(x==="F"){const ce=new Float32Array(1);ce[0]=b,_=new Int32Array(ce.buffer)[0]}const $=(_>>16&255)/255,F=(_>>8&255)/255,J=(_>>0&255)/255;g.setRGB($,F,J,Bl.SRGBColorSpace),f.push(g.r,g.g,g.b)}O.normal_x!==void 0&&(v.push(parseFloat(E[O.normal_x])),v.push(parseFloat(E[O.normal_y])),v.push(parseFloat(E[O.normal_z]))),O.intensity!==void 0&&d.push(parseFloat(E[O.intensity])),O.label!==void 0&&y.push(parseInt(E[O.label]))}}if(t.data==="binary_compressed"){const O=new Uint32Array(l.slice(t.headerLen,t.headerLen+8)),k=O[0],K=O[1],M=r(new Uint8Array(l,t.headerLen+8,k),K),R=new DataView(M.buffer),j=t.offset;for(let E=0;E<t.points;E++){if(j.x!==void 0){const w=t.fields.indexOf("x"),x=t.fields.indexOf("y"),b=t.fields.indexOf("z");s.push(this._getDataView(R,t.points*j.x+t.size[w]*E,t.type[w],t.size[w])),s.push(this._getDataView(R,t.points*j.y+t.size[x]*E,t.type[x],t.size[x])),s.push(this._getDataView(R,t.points*j.z+t.size[b]*E,t.type[b],t.size[b]))}if(j.rgb!==void 0){const w=t.fields.indexOf("rgb"),x=R.getUint8(t.points*j.rgb+t.size[w]*E+2)/255,b=R.getUint8(t.points*j.rgb+t.size[w]*E+1)/255,_=R.getUint8(t.points*j.rgb+t.size[w]*E+0)/255;g.setRGB(x,b,_,Bl.SRGBColorSpace),f.push(g.r,g.g,g.b)}if(j.normal_x!==void 0){const w=t.fields.indexOf("normal_x"),x=t.fields.indexOf("normal_y"),b=t.fields.indexOf("normal_z");v.push(this._getDataView(R,t.points*j.normal_x+t.size[w]*E,t.type[w],t.size[w])),v.push(this._getDataView(R,t.points*j.normal_y+t.size[x]*E,t.type[x],t.size[x])),v.push(this._getDataView(R,t.points*j.normal_z+t.size[b]*E,t.type[b],t.size[b]))}if(j.intensity!==void 0){const w=t.fields.indexOf("intensity");d.push(this._getDataView(R,t.points*j.intensity+t.size[w]*E,t.type[w],t.size[w]))}if(j.label!==void 0){const w=t.fields.indexOf("label");y.push(R.getInt32(t.points*j.label+t.size[w]*E,this.littleEndian))}}}if(t.data==="binary"){const O=new DataView(l,t.headerLen),k=t.offset;for(let K=0,M=0;K<t.points;K++,M+=t.rowSize){if(k.x!==void 0){const R=t.fields.indexOf("x"),j=t.fields.indexOf("y"),E=t.fields.indexOf("z");s.push(this._getDataView(O,M+k.x,t.type[R],t.size[R])),s.push(this._getDataView(O,M+k.y,t.type[j],t.size[j])),s.push(this._getDataView(O,M+k.z,t.type[E],t.size[E]))}if(k.rgb!==void 0){const R=O.getUint8(M+k.rgb+2)/255,j=O.getUint8(M+k.rgb+1)/255,E=O.getUint8(M+k.rgb+0)/255;g.setRGB(R,j,E,Bl.SRGBColorSpace),f.push(g.r,g.g,g.b)}if(k.normal_x!==void 0){const R=t.fields.indexOf("normal_x"),j=t.fields.indexOf("normal_y"),E=t.fields.indexOf("normal_z");v.push(this._getDataView(O,M+k.normal_x,t.type[R],t.size[R])),v.push(this._getDataView(O,M+k.normal_y,t.type[j],t.size[j])),v.push(this._getDataView(O,M+k.normal_z,t.type[E],t.size[E]))}if(k.intensity!==void 0){const R=t.fields.indexOf("intensity");d.push(this._getDataView(O,M+k.intensity,t.type[R],t.size[R]))}k.label!==void 0&&y.push(O.getInt32(M+k.label,this.littleEndian))}}const c=new Bl.BufferGeometry;s.length>0&&c.setAttribute("position",new Bl.Float32BufferAttribute(s,3)),v.length>0&&c.setAttribute("normal",new Bl.Float32BufferAttribute(v,3)),f.length>0&&c.setAttribute("color",new Bl.Float32BufferAttribute(f,3)),d.length>0&&c.setAttribute("intensity",new Bl.Float32BufferAttribute(d,1)),y.length>0&&c.setAttribute("label",new Bl.Int32BufferAttribute(y,1)),c.computeBoundingSphere();const D=new Bl.PointsMaterial({size:.005});return f.length>0&&(D.vertexColors=!0),new Bl.Points(c,D)}}const gf=A.useModelComp(A.pinia),{systemPath:cs}=A.storeToRefs(gf),vo=e.ref(),us=new WeakMap;function bf(a,l,r,n,t){const s=async D=>{try{const O=await A.platformDownloadFile({url:D});if(O.status!==200)throw new Error(`下载失败: ${O.status}`);return O.data}catch(O){throw console.error("addModelFromUrl失败:",O),O}},v=D=>new Promise((O,k)=>{const K=new FileReader;K.onload=M=>{try{const R=M.target.result,E=new Mn.MTLLoader().parse(R);E.preload(),O(E)}catch(R){k(R)}},K.onerror=()=>{k(new Error("MTL文件读取失败"))},K.readAsText(D)}),f=async D=>{const O={materials:{},create:function(k){return this.materials[k]?this.materials[k]:(console.warn(`Material '${k}' not found, using default material`),new Bl.MeshPhongMaterial({color:8947848,side:Bl.DoubleSide}))},getAsArray:function(){const k=[];for(const K in this.materials)k.push(this.materials[K]);return k},preload:function(){for(const k in this.materials)this.materials[k].map&&(this.materials[k].map.needsUpdate=!0)}};for(const k of D){const K=await v(k);Object.assign(O.materials,K.materials)}return O.preload(),O},d=async(D,O=[])=>new Promise((k,K)=>{const M=new FileReader;M.onload=async R=>{try{const j=R.target.result;let E=null;O&&O.length>0&&(O.length===1?E=await v(O[0]):E=await f(O));const w=new Mn.OBJLoader;E&&w.setMaterials(E);const x=w.parse(j);E||x.traverse(b=>{b.isMesh&&(b.material=new Bl.MeshPhongMaterial({color:8947848,side:Bl.DoubleSide}))}),k(x)}catch(j){K(j)}},M.onerror=()=>{K(new Error("OBJ文件读取失败"))},M.readAsText(D)}),y=async D=>{var O;try{r.value=!0;const{scene:k}=a();if(!k)throw new Error("Scene not initialized");t();const K=[];for(let M=0;M<D.length;M++){const R=D[M];n.value=`正在加载模型 ${M+1}/${D.length}...`;const j=await s(R.objUrl),E=((O=R.objUrl)==null?void 0:O.split("/").pop())||`model_${M}.obj`,w=new File([j],E,{type:j.type});let x=[];if(R.mtlUrls){const _=Array.isArray(R.mtlUrls)?R.mtlUrls:[R.mtlUrls];for(let $=0;$<_.length;$++){const F=_[$],J=await s(F),ce=(F==null?void 0:F.split("/").pop())||`material_${M}_${$}.mtl`,be=new File([J],ce,{type:J.type});x.push(be)}}const b=await d(w,x);k.add(b),l.value.push(b),K.push(b)}return r.value=!1,K}catch(k){throw console.error("加载模型失败:",k),r.value=!1,k}},g=async(D,O,k=[],K=[])=>{let M;const R=D.toLowerCase();switch(R){case".txt":case".cpt":case".obj":const j=await O.text();if(R===".txt"||R===".cpt"){const re=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,se=[...j.matchAll(re)].map(te=>({x:parseFloat(te[1]),y:parseFloat(te[2]),z:parseFloat(te[3])})),da=new Bl.BufferGeometry,Ee=se.flatMap(te=>[te.x,te.y,te.z]);if(da.setAttribute("position",new Bl.Float32BufferAttribute(Ee,3)),R===".txt"){const te=new Bl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});M=new Bl.Points(da,te)}else if(R===".cpt"){const te=new Bl.LineBasicMaterial({color:"#5B5C99",linewidth:100});M=new Bl.Line(da,te)}}else if(R===".obj"){const re=new Mn.OBJLoader;if(k&&k.length>0){const ca=new Mn.MTLLoader;for(const se of k){const da=await se.text(),Ee=ca.parse(da);Ee.preload(),re.setMaterials(Ee);break}}M=re.parse(j),(!k||k.length===0)&&M.traverse(ca=>{ca.isMesh&&(ca.material=new Bl.MeshPhongMaterial({color:"#B3B3D4"})),ca instanceof Bl.Mesh&&(ca.material.side=Bl.DoubleSide)})}break;case".stl":const E=await O.arrayBuffer(),x=new Mn.STLLoader().parse(E),b=new Bl.MeshPhongMaterial({color:"#B3B3D4",side:Bl.DoubleSide});M=new Bl.Mesh(x,b);break;case".nc":const _=["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"],$={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},F=new Bl.Group,J=_.map(re=>new Promise((ca,se)=>{new Mn.STLLoader().load(cs.value===""?`/model/${re}`:`${cs.value}\\${re}`,Ee=>{const te=new Bl.MeshPhongMaterial({color:$[re]||"#B3B3D4",side:Bl.DoubleSide}),Ae=new Bl.Mesh(Ee,te);ca(Ae)},void 0,se)}));try{(await Promise.all(J)).forEach(ca=>F.add(ca)),M=F}catch(re){throw console.error("加载NC文件对应的STL文件失败:",re),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const ce=new yf,be=new Bl.Group;try{const re=await ja.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ca=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"}),se=await ja.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),da=new Blob([se.data],{type:"application/octet-stream;charset=UTF-8"}),Ee=await new Promise((Ae,Ue)=>{const sa=URL.createObjectURL(ca);ce.load(sa,Ka=>{const L=new Float32Array(Ka.geometry.attributes.position.count*3);for(let H=0;H<Ka.geometry.attributes.position.count;H++)L[H*3]=1,L[H*3+1]=0,L[H*3+2]=0;Ka.geometry.setAttribute("color",new Bl.BufferAttribute(L,3)),Ka.material.vertexColors=!0,Ka.scale.set(.3,.3,.3),URL.revokeObjectURL(sa),Ae(Ka)},void 0,Ue)}),te=await new Promise((Ae,Ue)=>{const sa=URL.createObjectURL(da);ce.load(sa,Ka=>{const L=new Float32Array(Ka.geometry.attributes.position.count*3);for(let H=0;H<Ka.geometry.attributes.position.count;H++)L[H*3]=0,L[H*3+1]=1,L[H*3+2]=0;Ka.geometry.setAttribute("color",new Bl.BufferAttribute(L,3)),Ka.material.vertexColors=!0,Ka.scale.set(.3,.3,.3),URL.revokeObjectURL(sa),Ae(Ka)},void 0,Ue)});be.add(Ee),be.add(te),M=be}catch(re){throw console.error("PCD文件加载失败:",re),new Error("无法加载PCD文件")}break;case".urdf":const Me=URL.createObjectURL(O),V=new Au.URDFLoader,fe="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",le={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},pe=new WeakMap,De=new WeakMap,Ve=new WeakMap,ge=async re=>{if(pe.has(re))return console.log(`从缓存加载: ${re}`),pe.get(re);try{const ca=await ja.axios.get(`${fe}/${re}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),se=new Blob([ca.data],{type:"application/octet-stream;charset=UTF-8"});return le.enableCache&&pe.set(re,se),se}catch(ca){throw console.error(`加载文件失败: ${re}`,ca),new Error(`无法加载文件: ${re}`)}},N=(re="default")=>{if(De.has(re))return De.get(re);const ca=new Bl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Bl.FrontSide});return De.set(re,ca),ca},de=re=>{try{re.isBufferGeometry&&re.mergeVertices&&re.mergeVertices(),re.computeVertexNormals&&re.computeVertexNormals(),re.computeBoundingSphere&&re.computeBoundingSphere(),re.deleteAttribute&&re.deleteAttribute("uv2")}catch(ca){console.warn("几何体优化失败,使用原始几何体:",ca)}return re},U=async(re,ca,se)=>{const da=`stl_${ca}`;if(Ve.has(da)){const Ue=Ve.get(da);return new Bl.Mesh(Ue,N())}const Ee=await re.arrayBuffer();let Ae=new Mn.STLLoader(se).parse(Ee);return Ae=de(Ae),Ve.set(da,Ae),new Bl.Mesh(Ae,N())},Se=async(re,ca,se)=>{const da=`obj_${ca}`;if(pe.has(da))return pe.get(da).clone();const Ee=await re.text(),te=new Mn.OBJLoader(se),Ae=ca.replace(".obj",".mtl");try{const Ka=await(await ge(Ae)).text(),H=new Mn.MTLLoader(se).parse(Ka);H.preload(),te.setMaterials(H)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Ae}`)}const Ue=te.parse(Ee);return Ue.traverse(sa=>{sa.isMesh&&(sa.geometry=de(sa.geometry),sa.castShadow=!0,sa.receiveShadow=!0,sa.renderOrder=1)}),pe.set(da,Ue),Ue},Oe=(re,ca)=>{const se=new Bl.LOD;if(se.addLevel(re,0),re.geometry){const da=re.geometry.clone(),Ee=new Bl.Mesh(da,re.material);se.addLevel(Ee,50)}return se};let Fe=0,la=0;const Da=[];V.loadMeshCb=async(re,ca,se,da,Ee)=>{const te=re.split("/").pop(),Ae=se||(()=>{});Fe++;const Ue=new Promise(async(sa,Ka)=>{try{const L=await ge(te);if(!L||L.size===0)throw new Error(`文件为空: ${te}`);const H=te.split(".").pop().toLowerCase();let Q;switch(H){case"stl":Q=await U(L,te,ca);break;case"obj":Q=await Se(L,te,ca);break;default:throw new Error(`不支持的文件格式: ${H}`)}le.enableLOD&&Q.isMesh&&(Q=Oe(Q,te)),Ae(Q),la++,da&&da({loaded:la,total:Fe,progress:la/Fe}),sa(Q)}catch(L){console.error(`mesh文件加载失败: ${te}`,L);const H=new Bl.Group;Ae(H),sa(H);const Q=new Bl.BoxGeometry(.1,.1,.1),ye=new Bl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Bl.Mesh(Q,ye)}});Da.push(Ue)};try{if(!Me){vo.value=void 0;break}if(M=await V.loadAsync(Me),console.log(`URDF文件加载完成,等待${Fe}个mesh文件加载...`),Da.length>0)try{await Promise.allSettled(Da),console.log(`所有mesh文件处理完成,成功加载: ${la}/${Fe}`)}catch(se){console.warn("部分mesh文件加载失败,但继续显示模型",se)}M.traverse(se=>{se.isMesh&&(se.castShadow=!0,se.receiveShadow=!0,se.renderOrder=1,se.material&&(se.material.needsUpdate=!0))}),console.time("计算包围盒");const re=new Bl.Box3;re.expandByObject(M);const ca=`urdf_${Date.now()}`;M.userData.boundingBox=re.clone(),M.userData.modelId=ca,us.set(ca,{box:re.clone(),center:re.getCenter(new Bl.Vector3),size:re.getSize(new Bl.Vector3),maxSize:Math.max(...re.getSize(new Bl.Vector3).toArray())}),vo.value=M,console.log("URDF模型加载完成并优化")}catch(re){console.error("URDF加载失败:",re),vo.value=void 0}finally{Me&&URL.revokeObjectURL(Me)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return M};return{addModelsFromUrls:y,loadModelByDefaultPath:async D=>{console.log(D);try{r.value=!0,n.value="正在加载模型...";const{scene:O}=a();if(!O)throw new Error("Scene not initialized");t(),await new Promise(K=>setTimeout(K,100));const k=[];for(let K=0;K<D.length;K++){const M=D[K],R=await g(M.suffix,M.blob,M.mtlBlobs||[],M.meshFiles||[]);R&&(O.add(R),l.value.push(R),k.push(R))}return r.value=!1,n.value="",k}catch(O){throw console.error("加载模型失败:",O),r.value=!1,n.value="",O}},urdfModel:vo,modelBoundingBoxes:us}}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>',(a=>{var l=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,t,s,v,f,d=function(c,D){D.parentNode.insertBefore(c,D)};if(l&&!a.__iconfont__svg__cssinject__){a.__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(c){console&&console.log(c)}}n=function(){var c,D=document.createElement("div");D.innerHTML=a._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,(c=document.body).firstChild?d(D,c.firstChild):c.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),n()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(s=n,v=a.document,f=!1,g(),v.onreadystatechange=function(){v.readyState=="complete"&&(v.onreadystatechange=null,y())})}function y(){f||(f=!0,s())}function g(){try{v.documentElement.doScroll("left")}catch{return void setTimeout(g,50)}y()}})(window);const kf=["onClick"],xf=e.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(a,{emit:l}){const r=a,n=l,t=e.ref(null),s=e.ref(null),v=e.computed(()=>{const w=Number(r==null?void 0:r.textSize),x=ve.rgbaToColor(r==null?void 0:r.textColor),b={},_={};return!Number.isNaN(w)&&w&&(b.fontSize=`${w}px`,_.fontSize=`${w}px`),x&&(b.color=x,_.color=x),{label:b,value:_}}),f=e.ref(""),d=e.ref(""),y=e.ref(!1),g=async w=>{if(w){d.value&&(URL.revokeObjectURL(d.value),d.value="");try{const x=await A.platformDownloadFile({url:w}),b=new Blob([x==null?void 0:x.data],{type:(x==null?void 0:x.headers["content-type"])||"image/*"});d.value=URL.createObjectURL(b)}catch{d.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,w=>{w&&(f.value=w)},{immediate:!0}),e.watch(f,w=>{g(w)},{immediate:!0});const c=()=>{var w;(w=s.value)==null||w.click()},D=async w=>{var _,$,F;const x=w.target,b=(_=x==null?void 0:x.files)==null?void 0:_[0];if(!b){x.value="";return}y.value=!0;try{const J=new FormData;J.append("file",b);const ce=await A.platformUploadFile(J),be=(F=($=ce==null?void 0:ce.data)==null?void 0:$.result)==null?void 0:F.url;be?(f.value=be,n("update:backGroundImage",be),g(be),ja.ElMessage.success("背景图片上传成功")):ja.ElMessage.error("背景图片上传失败")}catch{ja.ElMessage.error("背景图片上传失败")}finally{y.value=!1,x.value=""}},O=e.computed(()=>d.value?{backgroundImage:`url(${d.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),k=w=>ll.getComponent(w),K=w=>{if(!w)return;const x=w.querySelector("input, textarea, .el-input__inner");x&&typeof x.focus=="function"&&x.focus()},M=(w,x,b)=>{r.disabled||w.field&&(t.value=x,e.nextTick(()=>{K(b.currentTarget)}))},R=()=>{t.value=null},j=w=>{var b;const x=((b=w==null?void 0:w.field)==null?void 0:b.value)??(w==null?void 0:w.value);return x==null||x===""?"-":x},E=w=>{const x=w!=null&&w.width&&w.width>0?w.width:1,_=`calc((100% - ${(x-1)*16}px) / ${x})`;return{flex:`0 0 ${_}`,maxWidth:_,minWidth:"140px",boxSizing:"border-box"}};return(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(O.value),onClick:x[2]||(x[2]=b=>(r==null?void 0:r.backGround)&&c())},[r!=null&&r.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:x[0]||(x[0]=e.withModifiers(b=>c(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:s,type:"file",accept:"image/*",style:{display:"none"},onChange:D},null,544),x[3]||(x[3]=e.createElementVNode("img",{src:ll._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.items,(b,_)=>{var $,F,J,ce,be,Me,V,fe;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:_,style:e.normalizeStyle(E(b)),onClick:x[1]||(x[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle(v.value.label)},e.toDisplayString(b==null?void 0:b.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(v.value.value),onClick:le=>{var pe;return(pe=b.field)!=null&&pe.isNoClick?null:M(b,_,le)}},[t.value===_&&b.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k((($=b.field)==null?void 0:$.type)??"Input")),{key:0,modelValue:b.field.value,"onUpdate:modelValue":le=>b.field.value=le,isEdit:!0,disabled:(F=b.field)==null?void 0:F.disabled,content:((J=b.field)==null?void 0:J.contents)??[],optionUrl:b.field,originalValue:(ce=b.field)==null?void 0:ce.value,config:(be=b.field)==null?void 0:be.config,configModel:((Me=b.field)==null?void 0:Me.prop)??((V=b.field)==null?void 0:V.name),selectedTagList:((fe=b.field)==null?void 0:fe.selectValue)??[],onBlur:R,onBlurChange:R},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(j(b)),1)],64))],12,kf)],4)}),128))],4))}}),wf=Zl._export_sfc(xf,[["__scopeId","data-v-d73001ab"]]),tc=A.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),_f={class:"calculator-content"},Sf={class:"calculator-child"},Ef={class:"calculator-child"},Cf=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),r=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(n,t)=>(e.openBlock(),e.createElementBlock("div",_f,[e.createElementVNode("div",Sf,[e.createVNode(ll.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Ef,[e.createVNode(ll.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Df=Zl._export_sfc(Cf,[["__scopeId","data-v-73db0fe7"]]),mt=(a,l)=>{let r=a,n=l;return Array.isArray(r)&&(r=r==null?void 0:r.map((t,s)=>{if(Array.isArray(t)){let v={};return t=t==null?void 0:t.forEach((f,d)=>{var y;(y=n==null?void 0:n[d])!=null&&y.prop?v[n[d].prop]=f:Array.isArray(f)&&(v.children=mt(f,n))}),Object.assign(v,{id:s})}else return t})),r},sc=(a,l,r)=>{let n=a,t=l;return n=n==null?void 0:n.map((s,v)=>{var f,d;return!Array.isArray(s)||!((f=t==null?void 0:t[v])!=null&&f.label)&&!r||(s.unshift(((d=t==null?void 0:t[v])==null?void 0:d.label)??""),s.some(y=>Array.isArray(y))&&(s=s==null?void 0:s.map(y=>{var g;return Array.isArray(y)&&(y=sc(y,(g=t==null?void 0:t[v])==null?void 0:g.children,r)),y}))),s}),n},Bf=(a,l,r)=>{if(l==="")return a==null?void 0:a.filter(n=>(n==null?void 0:n.id)!==r);{const n=l.split("-");return Tf(a,n,r)}},Tf=(a,l,r)=>{let n=a,t=l;return(t==null?void 0:t.length)===0?n=n==null?void 0:n.filter(s=>s.id!==r):n=n==null?void 0:n.map(s=>(s.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),s=cc(s,t,r)),s)),n},cc=(a,l,r)=>{var s,v;let n=a,t=l;return(t==null?void 0:t.length)===0?n.children=(s=n.children)==null?void 0:s.filter(f=>f.id!==r):n.children=(v=n.children)==null?void 0:v.map(f=>(f.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),f=cc(f,t,r)),f)),n},Nf=(a,l,r)=>{if(l==="")return r;{const n=l.split("-");return Af(a,n,r)}},Af=(a,l,r)=>{let n=a,t=l;return(t==null?void 0:t.length)===0?n=r:n=n==null?void 0:n.map(s=>(s.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),s=uc(s,t,r)),s)),n},uc=(a,l,r)=>{var s;let n=a,t=l;return(t==null?void 0:t.length)===0?n.children=r:n.children=(s=n.children)==null?void 0:s.map(v=>(v.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),v=uc(v,t,r)),v)),n};class zf{constructor(l={}){Wr(this,"url");Wr(this,"heartbeatInterval");Wr(this,"socket",null);Wr(this,"isConnected",!1);Wr(this,"heartTimer",null);Wr(this,"canvas",null);Wr(this,"ctx",null);Wr(this,"mainCamCutMode",0);Wr(this,"pMainShowStartX",0);Wr(this,"pMainShowStartY",0);Wr(this,"onLog");Wr(this,"onDevCount");Wr(this,"onResolution");Wr(this,"onCameraStatus");Wr(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,r,n){var v;(v=this.canvas)!=null&&v.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const t=document.createElement("canvas");t.style.border="solid 1px #A0A0A0",t.id="MainCamCanvas",t.width=r,t.height=n;const s=t.getContext("2d");if(!s)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(t),this.canvas=t,this.ctx=s}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,r)=>{const n=new WebSocket(this.url);n.binaryType="arraybuffer",n.onopen=()=>{this.socket=n,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},n.onerror=t=>{this.isConnected=!1,this.log("socket.onerror"),r(t)},n.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},n.onmessage=t=>{this.handleMessage(t)}})}destroy(){var l;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,(l=this.canvas)!=null&&l.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(l=0){this.sendBytes(new Uint8Array([119,136,81,l]))}chooseResolution(l){if(!Array.isArray(l)||l.length===0)return null;const r=l.find(t=>t.width===2592&&t.height===1944);return r||[...l].sort((t,s)=>s.width*s.height-t.width*t.height)[0]||null}openCamera(l=0,r=1280,n=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const t=new Uint8Array(12);t[0]=119,t[1]=136,t[2]=1,t[3]=l,t[4]=this.canvas.width>>8&255,t[5]=this.canvas.width&255,t[6]=this.canvas.height>>8&255,t[7]=this.canvas.height&255,t[8]=r>>8&255,t[9]=r&255,t[10]=n>>8&255,t[11]=n&255,this.sendBytes(t)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const t=new Uint8Array(12);t[0]=119,t[1]=136,t[2]=16,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=0,this.sendBytes(t)}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(l){var r;(r=this.onLog)==null||r.call(this,l)}sendBytes(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(l.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(l){var t,s,v,f,d,y;const r=new Uint8Array(l.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 n=r[2];if(n===80){const g=r[3],c=r.length-4,D=new Uint8Array(c);for(let K=0;K<c;K++)D[K]=r[4+K];const k=decodeURIComponent(this.byteToString(D)).split("|");(t=this.onDevCount)==null||t.call(this,g,k);return}if(n===81){const g=r[3]||0,c=[];for(let D=0;D<g;D++){const O=(r[4+D*4+0]||0)*256+(r[4+D*4+1]||0),k=(r[4+D*4+2]||0)*256+(r[4+D*4+3]||0);c.push({width:O,height:k,text:`${O}*${k}`})}(s=this.onResolution)==null||s.call(this,g,c);return}if(n===1){r[3]===1&&((v=this.onCameraStatus)==null||v.call(this,"opened")),r[3]===3&&((f=this.onCameraStatus)==null||f.call(this,"closed"));return}if(n===16){if(r[3]===1){const c=r[4]*256+r[5],D=r[6]*65536+r[7]*256+r[8];let O="";if(c>0){const M=new Uint8Array(c);for(let R=0;R<c;R++)M[R]=r[9+R];O=decodeURIComponent(this.byteToString(M))}const k=new Uint8Array(D);for(let M=0;M<D;M++)k[M]=r[9+c+M];const K=this.uint8ArrayToString(k);(d=this.onPhoto)==null||d.call(this,{flag:0,imgPath:O,base64:K})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(n===204){if(!this.canvas||!this.ctx)return;const g=r[3]*256+r[4],c=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(g,c);let O=11;for(let k=0;k<D.data.length;k+=4)D.data[k+0]=r[O],D.data[k+1]=r[O+1],D.data[k+2]=r[O+2],D.data[k+3]=255,O+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}byteToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}}const Mf={style:{display:"flex",gap:"16px",height:"100%"}},If={key:0,style:{color:"var(--el-text-color-secondary)"}},Of={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},Lf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Rf={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"}},$f={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Vf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Ff=["src","onClick"],Pf=["onClick"],jf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Hf={class:"dialog-footer"},Uf=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(null),s=e.ref(!1),v=e.ref([]),f=e.ref(""),d=e.ref(!1),y=e.ref([]),g=new zf({url:"ws://127.0.0.1:22225"});function c(F,J){var le;const ce=F.split(","),be=((le=ce[0].match(/:(.*?);/))==null?void 0:le[1])??"image/jpeg",Me=atob(ce[1]);let V=Me.length;const fe=new Uint8Array(V);for(;V--;)fe[V]=Me.charCodeAt(V);return new File([fe],J,{type:be})}function D(){g.onLog=F=>{console.log("[GPY]",F)},g.onDevCount=(F,J)=>{if(f.value+=`设备数量=${F},设备=${J.join(",")}
|
|
4
|
-
`,F>0){f.value+=`检测到设备,正在获取分辨率...
|
|
5
|
-
`;try{g.getResolution(0)}catch(ce){f.value+=`获取分辨率失败:${(ce==null?void 0:ce.message)??ce}
|
|
6
|
-
`}}else f.value+=`未检测到高拍仪设备!
|
|
7
|
-
`},g.onResolution=(F,J)=>{if(F<=0||!Array.isArray(J)||J.length===0){f.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
|
|
8
|
-
`;try{g.openCamera(0,1280,720)}catch(be){f.value+=`打开摄像头失败:${(be==null?void 0:be.message)??be}
|
|
9
|
-
`}return}const ce=g.chooseResolution(J);if(!ce){f.value+=`分辨率选择失败,回退使用 1280*720 打开...
|
|
10
|
-
`;try{g.openCamera(0,1280,720)}catch(be){f.value+=`打开摄像头失败:${(be==null?void 0:be.message)??be}
|
|
11
|
-
`}return}f.value+=`获取分辨率 ${ce.text}成功,打开摄像头...
|
|
12
|
-
`;try{g.closeCamera(),setTimeout(()=>{try{g.openCamera(0,ce.width,ce.height)}catch(be){f.value+=`打开摄像头失败:${(be==null?void 0:be.message)??be}
|
|
13
|
-
`}},100)}catch{try{g.openCamera(0,ce.width,ce.height)}catch(be){f.value+=`打开摄像头失败:${(be==null?void 0:be.message)??be}
|
|
14
|
-
`}}},g.onCameraStatus=F=>{F==="opened"?(s.value=!0,f.value+=`摄像头已打开
|
|
15
|
-
`):(s.value=!1,f.value+=`摄像头已关闭
|
|
16
|
-
`)},g.onPhoto=F=>{if(F.flag===0&&F.base64){const J=`data:image/jpeg;base64,${F.base64}`,ce=c(J,`gpy-capture-${Date.now()}.jpg`);v.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:J,file:ce}),f.value+=`拍照完成,已接收图片(当前 ${v.value.length} 张)
|
|
17
|
-
`}else f.value+=`拍照失败 flag=${F.flag}
|
|
18
|
-
`}}const O=async()=>{if(await e.nextTick(),!t.value)return;k(),D();const F=t.value.getBoundingClientRect();g.init(t.value,Math.floor(F.width),Math.floor(F.height)),f.value+=`正在连接设备服务...
|
|
19
|
-
`,await g.connect(),f.value+=`正在获取设备数量...
|
|
20
|
-
`,g.getDevCount()},k=()=>{try{g.destroy()}catch(F){console.error(F)}s.value=!1,v.value=[],f.value="",d.value=!1,y.value=[]};e.watch(()=>r.visible,F=>{F?O():k()});const K=()=>{try{g.bestSize()}catch(F){console.error(F)}},M=()=>{try{g.rotateLeft()}catch(F){console.error(F)}},R=()=>{try{g.rotateRight()}catch(F){console.error(F)}},j=()=>{try{g.focus()}catch(F){console.error(F)}},E=()=>{f.value+=`正在拍照...
|
|
21
|
-
`;try{g.photo()}catch(F){f.value+=`拍照调用失败:${(F==null?void 0:F.message)??F}
|
|
22
|
-
`}},w=()=>{v.value.length>0?n("confirm",v.value.map(F=>F.file)):n("confirm",[])},x=F=>{F<0||F>=v.value.length||(v.value.splice(F,1),f.value+=`已删除一张图片(剩余 ${v.value.length} 张)
|
|
23
|
-
`)},b=F=>{if(!F)return;const J=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:J,blobUrl:F}],d.value=!0},_=()=>{d.value=!1},$=()=>{k(),n("cancel")};return(F,J)=>{const ce=e.resolveComponent("el-input"),be=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(wr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:$,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",Mf,[e.createElementVNode("div",{ref_key:"cameraBox",ref:t,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)"}},[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",If,"初始化摄像头..."))],512),e.createElementVNode("div",Of,[e.createElementVNode("div",Lf,[J[0]||(J[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",Rf,[v.value.length===0?(e.openBlock(),e.createElementBlock("div",$f,"暂无图片")):(e.openBlock(),e.createElementBlock("div",Vf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(Me,V)=>(e.openBlock(),e.createElementBlock("div",{key:Me.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[e.createElementVNode("img",{src:Me.url,onClick:fe=>b(Me.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,Ff),e.createElementVNode("div",{onClick:fe=>x(V),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,Pf)]))),128))]))],512)]),e.createElementVNode("div",jf,[J[1]||(J[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(ce,{type:"textarea",value:f.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Hf,[e.createVNode(be,{onClick:K,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[2]||(J[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(be,{onClick:M,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[3]||(J[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(be,{onClick:R,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[4]||(J[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(be,{onClick:j,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[5]||(J[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(be,{onClick:E,disabled:!s.value,id:"themeButton"},{default:e.withCtx(()=>J[6]||(J[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),J[9]||(J[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(be,{onClick:w,disabled:v.value.length===0,id:"themeButton"},{default:e.withCtx(()=>J[7]||(J[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(be,{onClick:$,id:"themeBorderButton"},{default:e.withCtx(()=>J[8]||(J[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),d.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:_},null,8,["fileDataList"])):e.createCommentVNode("",!0)],64)}}}),qf=Zl._export_sfc(Uf,[["__scopeId","data-v-24a2050a"]]),ds=A.useMenuState(A.pinia),Wf=async a=>{var s,v,f,d,y,g;let l=a==null?void 0:a.导入文件,r=a==null?void 0:a.函数参数,n=(s=l==null?void 0:l[0])==null?void 0:s.url,t="";if(!(n!=null&&n.includes("http"))||!(n!=null&&n.includes("https"))){ds.setContentLoading(!0);const c=await A.platformDownloadFile({url:n});let D=c==null?void 0:c.data;const O=new FormData;O.append("file",D,((v=l==null?void 0:l[0])==null?void 0:v.name)+"."+((f=n==null?void 0:n.split("."))==null?void 0:f[1])),O.append("query",r);let k=await Js(O);k=(g=(y=(d=k==null?void 0:k.data)==null?void 0:d.data)==null?void 0:y.response)==null?void 0:g.replace("generateResult",a==null?void 0:a.函数名称),t=k,ds.setContentLoading(!1)}return t},Ct=A.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(a){this.objUrl=a},setBlobUrls(a){this.blobUrls=a}}}),Kf=A.useModelComp(A.pinia),{extraContents:nv}=A.storeToRefs(Kf),Gf=A.useLoginState(A.pinia),{extraUrl:ni}=A.storeToRefs(Gf);let dc=ni.value===""||!ni.value?"http://139.196.154.85:20015":ni.value;e.watch(()=>ni.value,()=>{dc=ni.value===""||!ni.value?"http://139.196.154.85:20015":ni.value},{deep:!0,immediate:!0});const Do={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},ps={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:dc+"/api/public/paddleOCR"};class Yf{constructor(l){Wr(this,"config");this.config={...ps,...l}}updateConfig(l){this.config={...this.config,...l}}getConfig(){return{...this.config}}validateFileSize(l){const r=this.config.maxSize*1024*1024;return l.size<=r}validateFileType(l){return l.type.startsWith("image/")||l.type==="application/pdf"}getAuthorizationToken(){const l=ja.Local.get(ja.accessTokenKey);return l?`Bearer ${l}`:""}buildOCRRequest(l,r){return{title:r,form:{OCR图片文件:l}}}async recognize(l,r){const n=this.getAuthorizationToken(),t=this.buildOCRRequest(l,r),s=this.config.apiUrl||ps.apiUrl||"";return(await ja.axios.post(s,t,{headers:{"Content-Type":"application/json",Authorization:n}})).data}getFieldAliases(l){return Do[l]?Do[l]:[l]}extractTableHeaders(l){const r=[],n=new Set,t=v=>{const f=v==null?void 0:v.label;return!(!f||f==="操作"||f===this.config.columnName||(v==null?void 0:v.type)==="operate"||(v==null?void 0:v.prop)==="operate")},s=v=>{(v||[]).forEach(f=>{if(!f)return;const d=(f==null?void 0:f.children)||(f==null?void 0:f.child)||(f==null?void 0:f.columns);if(Array.isArray(d)&&d.length>0){s(d);return}if(t(f)){const y=f.label;if(!n.has(y)){n.add(y);const g=this.getFieldAliases(y);r.push(g)}}})};return s(l||[]),r}}function pc(a){return new Yf(a)}pc();const yt=async(a,l)=>{var v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b;let r=(f=(v=A.cloneDeep(a))==null?void 0:v.optionUrl)==null?void 0:f.menuSelect,n=[];r==null||r.forEach(_=>{});let t="",s=await ve.menuToParent(r);if(s==null||s.forEach(_=>{var $,F,J,ce;(_==null?void 0:_.name)===(((ce=(J=(F=($=A.cloneDeep(a))==null?void 0:$.optionUrl)==null?void 0:F.groupSelect)==null?void 0:J[0])==null?void 0:ce.replaceAll("'",""))??"")&&(t=_==null?void 0:_.id)}),l){t=l;const _=await Nr.getInsofDataApi({id:t}),$=(c=(g=(y=(d=_==null?void 0:_.data)==null?void 0:d.result)==null?void 0:y[0])==null?void 0:g.key)==null?void 0:c.pageKey;s=await ve.getItemData($,sessionStorage.getItem("systemKey"),"")}if(t!==""){let _;l?_=(D=s==null?void 0:s.find(J=>(J==null?void 0:J.id)===l))==null?void 0:D.compData:_=(O=s==null?void 0:s.find(J=>{var ce,be,Me,V;return(J==null?void 0:J.name)===(((be=(ce=a==null?void 0:a.groupSelect)==null?void 0:ce.split(":"))==null?void 0:be[0])||((V=(Me=a==null?void 0:a.optionUrl)==null?void 0:Me.groupSelect)==null?void 0:V[0]))}))==null?void 0:O.compData;let $=(K=(k=_==null?void 0:_.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:k.contents)==null?void 0:K.map(J=>J==null?void 0:J.label);(R=(M=_==null?void 0:_.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:M.contents)!=null&&R.every(J=>Array.isArray(J))&&($=(w=ve.getColumnChild((E=(j=_==null?void 0:_.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:j.contents)==null?void 0:E[0]))==null?void 0:w.map(J=>J==null?void 0:J.prop));let F=(b=(x=_==null?void 0:_.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:x.contents)==null?void 0:b.map(J=>{if(Array.isArray(J))J=J==null?void 0:J.filter(ce=>!(ce!=null&&ce.id));else{let ce={};for(let be in J)be!=="id"&&(ce[be]=J==null?void 0:J[be]);J=ce}return J});F==null||F.forEach(J=>{Array.isArray(J)?n.push(ve.getValueToObjectValue(J,$)):n.push(J)})}return n},Jf=A.useMenuState(A.pinia),{activeMenuPath:iv}=A.storeToRefs(Jf),Xf=A.useUnit(A.pinia),{chooseTitle:ov}=A.storeToRefs(Xf),Zf="col-operate",fc=a=>`${Zf}-${a}`,Qf=(a,l)=>{const r=new Map;a.forEach(t=>{const{prop:s}=t;r.set(s,t)});const n=t=>{Array.isArray(t)&&t.forEach(s=>{const{prop:v}=s||{},f=r.get(v);e0(f,s),Array.isArray(s==null?void 0:s.children)&&s.children.length>0&&n(s.children)})};return n(l),l},e0=(a,l)=>(a&&(l.sortable=a==null?void 0:a.sortable,l.filterable=a==null?void 0:a.filterable,l.showSummary=a==null?void 0:a.showSummary,l.operable=a==null?void 0:a.operable,l.fixed=a==null?void 0:a.fixed),l),a0=(a,l)=>{const{sortable:r=!1,filterable:n=!1,showSummary:t=!1,operable:s=!1,fixed:v=!1}=l||{};return{prop:a,sortable:r,filterable:n,showSummary:t,operable:s,fixed:v}},l0=async a=>{var s,v;if(!a)return;const l=fc(a),r=await Nr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:l}}),n=(s=r==null?void 0:r.data)==null?void 0:s.code,t=(v=r==null?void 0:r.data)==null?void 0:v.result;if(n==200)return t==null?void 0:t[0]},r0=async a=>{if(a)return[]},n0=async(a,l)=>{if(!a||!l)return;const r=fc(a);return await Nr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:l}})},i0=async(a,l)=>!a||!l?void 0:await Nr.updateInsofDataApi({id:a,value:{columns:l}}),fs=async(a,l)=>{const r=sessionStorage.getItem("systemKey");if(!a||!l||!r)return;const n=await l0(a);return n?await i0(n==null?void 0:n.id,l):await n0(a,l)};var xo={exports:{}},o0=xo.exports,hs;function t0(){return hs||(hs=1,function(a,l){(function(r,n){n()})(o0,function(){function r(y,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function n(y,g,c){var D=new XMLHttpRequest;D.open("GET",y),D.responseType="blob",D.onload=function(){d(D.response,g,c)},D.onerror=function(){console.error("could not download file")},D.send()}function t(y){var g=new XMLHttpRequest;g.open("HEAD",y,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function s(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(g)}}var v=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof A.commonjsGlobal=="object"&&A.commonjsGlobal.global===A.commonjsGlobal?A.commonjsGlobal:void 0,f=v.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),d=v.saveAs||(typeof window!="object"||window!==v?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(y,g,c){var D=v.URL||v.webkitURL,O=document.createElement("a");g=g||y.name||"download",O.download=g,O.rel="noopener",typeof y=="string"?(O.href=y,O.origin===location.origin?s(O):t(O.href)?n(y,g,c):s(O,O.target="_blank")):(O.href=D.createObjectURL(y),setTimeout(function(){D.revokeObjectURL(O.href)},4e4),setTimeout(function(){s(O)},0))}:"msSaveOrOpenBlob"in navigator?function(y,g,c){if(g=g||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(r(y,c),g);else if(t(y))n(y,g,c);else{var D=document.createElement("a");D.href=y,D.target="_blank",setTimeout(function(){s(D)})}}:function(y,g,c,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof y=="string")return n(y,g,c);var O=y.type==="application/octet-stream",k=/constructor/i.test(v.HTMLElement)||v.safari,K=/CriOS\/[\d]+/.test(navigator.userAgent);if((K||O&&k||f)&&typeof FileReader<"u"){var M=new FileReader;M.onloadend=function(){var E=M.result;E=K?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=E:location=E,D=null},M.readAsDataURL(y)}else{var R=v.URL||v.webkitURL,j=R.createObjectURL(y);D?D.location=j:location.href=j,D=null,setTimeout(function(){R.revokeObjectURL(j)},4e4)}});v.saveAs=d.saveAs=d,a.exports=d})}(xo)),xo.exports}t0();const Hn=A.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(a){this.itemData=a},setCurStructureCompIds(a){this.curStructureCompIds=a},setRefreshCurStructure(a){this.isRefreshCurStructure=a},setOriginalData(a){this.originalData=a},setExtraContents(a){this.extraContents=a},setNodeDev(a){this.nodeDev=a},setIsEdit(a){this.isEdit=a},setSelectTab(a){this.selectTab=a}}}),s0=A.useLoginState(A.pinia),{loginUserInfo:st}=A.storeToRefs(s0),c0=async a=>{var n,t,s;let l=await A.getAllTables({platId:parseInt((n=st==null?void 0:st.value)==null?void 0:n.plat_id),tableNames:[a]});return l=(s=(t=l==null?void 0:l.data)==null?void 0:t.result)==null?void 0:s[0],await oc(l,!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:l}]}]},u0=A.useLoginState(),{loginUserInfo:hl}=A.storeToRefs(u0);let mo="$R";const Br=A.useModelComp(A.pinia),hc=e.ref(!1),{itemData:d0,itemGridData:li,curStructureCompIds:vs,isSubmitCurStructure:p0,routeToChildPath:f0,pageMapState:gt,itemExtendData:yo,refreshTable:ms}=A.storeToRefs(Br),Oo=Hn(A.pinia),Ir=A.useMenuState(A.pinia),tr=e.shallowRef([]),{asideMenus:h0,activeTopMenuPath:v0,activeMenuPath:yl,platform:tv,buttonTriggerType:m0,currentMenuPath:Zr}=A.storeToRefs(Ir),dn=A.useUnit(A.pinia),{selectTitle:Fn,chooseTitle:Bo}=A.storeToRefs(dn);e.ref();const Di=e.ref(!0),jn=e.ref(0),bt=e.ref([]);e.ref(!1);const Dt=e.ref(!1),Ki=e.ref(),vc=e.ref(),mc=e.ref(),y0=()=>{Br.setItemGridData([]),Br.setIsEdit("edit"),Br.setSubmitCurStructure(yl.value!=="/平台管理/菜单管理")},g0=()=>{Br.setIsEdit("view"),Br.setRefreshCurStructure(!0)},b0=async a=>{var t;let l=Fn.value,r=l==null?void 0:l.findIndex(s=>(s==null?void 0:s.value)===(a==null?void 0:a.value)),n=l==null?void 0:l.filter((s,v)=>v<=r);dn.setSelectTitle(ll.safeClone(n)),n=(t=n==null?void 0:n.map(s=>s==null?void 0:s.value))==null?void 0:t.join("/"),Ir.setActiveMenuPath(null),Ir.setActiveMenuPath(n)},ct=async(a,l,r,n="contentConfig")=>{var t;try{if(!Array.isArray(a))return;let s,v;l==="create"?(s={dataList:a==null?void 0:a.map(d=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:n,parentTable:"",version:1},value:{pageData:{...d,compData:(y=d==null?void 0:d.compData)==null?void 0:y.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},v=Nr.batchAddInsofDataApi):l==="update"?(s={dataList:a==null?void 0:a.map(d=>{var y;return{id:d==null?void 0:d.id,value:{pageData:{...d,compData:(y=d==null?void 0:d.compData)==null?void 0:y.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},v=Nr.batchUpdateInsofDataApi):l==="delete"&&(s={ids:a},v=Nr.batchDeleteInsofDataApi);const f=await v(s);if(((t=f==null?void 0:f.data)==null?void 0:t.code)===200)return f.data.result;throw ja.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{ja.ElMessage.error("保存响应失败")}},ys=async(a,l,r,n)=>{var t,s,v,f,d,y,g,c,D,O,k;try{const K=(s=(t=a==null?void 0:a.results)==null?void 0:t.filter(x=>!(x!=null&&x.id)||typeof(x==null?void 0:x.id)=="string"))==null?void 0:s.map(x=>({key:{pageKey:a==null?void 0:a.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:l,relatedInfo:r},value:{tableData:x}})),M=(f=(v=a==null?void 0:a.results)==null?void 0:v.filter(x=>(x==null?void 0:x.id)&&typeof(x==null?void 0:x.id)=="number"))==null?void 0:f.map(x=>({id:x==null?void 0:x.id,value:{tableData:x}})),R=JSON.parse(JSON.stringify(a)),j=(d=R==null?void 0:R.results)==null?void 0:d.map(x=>x.id);let E;r?E=(c=(g=(y=gt.value)==null?void 0:y[yl.value])==null?void 0:g.filter(x=>{var b,_,$;return((b=x==null?void 0:x.key)==null?void 0:b.type)===l&&(($=(_=x==null?void 0:x.key)==null?void 0:_.relatedInfo)==null?void 0:$.target)===n}))==null?void 0:c.map(x=>x==null?void 0:x.id):E=(k=(O=(D=gt.value)==null?void 0:D[yl.value])==null?void 0:O.filter(x=>{var b;return((b=x==null?void 0:x.key)==null?void 0:b.type)===l}))==null?void 0:k.map(x=>x==null?void 0:x.id);const w=E==null?void 0:E.filter(x=>!(j!=null&&j.includes(x))&&typeof x=="number");(K==null?void 0:K.length)>0&&await Nr.batchAddInsofDataApi({dataList:K}),(M==null?void 0:M.length)>0&&await Nr.batchUpdateInsofDataApi({dataList:M}),(w==null?void 0:w.length)>0&&await Nr.batchDeleteInsofDataApi({ids:w})}catch(K){throw new Error(K)}},k0=async a=>{var y,g,c,D,O,k,K,M,R,j;Ir.setContentLoading(!0);const l=JSON.parse(JSON.stringify(d0.value));if(!p0.value)return Ir.setCacheStructures({key:m0.value,data:l}),ja.ElMessage.success("已暂存");const r=l==null?void 0:l.map(E=>E.id),n=r.filter(E=>{var w;return!((w=vs.value)!=null&&w.includes(E))}),t=(y=vs.value)==null?void 0:y.filter(E=>!r.includes(E)),s=[...n,...t].filter(E=>typeof E!==null&&typeof E<"u"),v=l==null?void 0:l.filter(E=>!E.id),f=l==null?void 0:l.filter(E=>E.id);let d=[];if(s&&(s==null?void 0:s.length)>0&&d.push(ct(s,"delete",a)),v&&(v==null?void 0:v.length)>0&&d.push(ct(v,"create",a)),f&&(f==null?void 0:f.length)>0&&d.push(ct(f,"update",a)),li.value&&((g=li.value)!=null&&g.isDelete&&((D=(c=li.value)==null?void 0:c.results)==null?void 0:D.length)>0&&((k=(O=li.value)==null?void 0:O.results)!=null&&k.every(E=>typeof E=="number"))?await Nr.batchDeleteInsofDataApi({ids:(K=li.value)==null?void 0:K.results}):(console.log("itemGridData.value",li.value),d.push(await ys(li.value,"gridLayout")))),yo.value)for(const E in yo.value)d.push(await ys((M=yo.value)==null?void 0:M[E],"extend",{target:E,compId:(j=(R=yo.value)==null?void 0:R[E])==null?void 0:j.compId},E));await Promise.all(d).then(()=>{ja.ElMessage.success("保存成功"),Br.setRefreshCurStructure(!0)}).catch(E=>{ja.ElMessage.success(E)}),Ir.setContentLoading(!1)},Gi=a=>Bi(a),x0=e.computed(()=>{var a;return(a=tr.value)==null?void 0:a.filter(l=>(l==null?void 0:l.affix)&&(l==null?void 0:l.affix)!=="default")}),yc=e.computed(()=>{var a;return(a=tr.value)==null?void 0:a.filter(l=>!(l!=null&&l.affix&&(l==null?void 0:l.affix)!=="default"))}),gc=e.ref(0),bc=e.ref(null),w0="ocr_committed_temp_ids_v1",_0=(a,l)=>`${w0}:${String(a??"")}:${String(l??"")}`,S0=(a,l,r)=>{try{const n=_0(a,l),t=sessionStorage.getItem(n),s=t?JSON.parse(t):[],v=Array.isArray(s)?s:[],f=Array.from(new Set([...v,...r||[]].map(d=>String(d)))).slice(-200);sessionStorage.setItem(n,JSON.stringify(f))}catch{}},To=async(a,l="data",r)=>{var t,s,v,f,d,y,g,c,D,O,k,K,M,R,j,E,w,x,b,_,$,F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka,L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La,ie,X,Z,q,Be,Xe,ia,xa,ka,Aa,Sa,Ie,Ya,Fa,xl,Jl,kl,Pl,Va,Ml,$l;let n=((v=(s=(t=Fn.value)==null?void 0:t.filter(Ma=>(Ma==null?void 0:Ma.condition)==="child"))==null?void 0:s[0])==null?void 0:v.value)??"";if((a==null?void 0:a.buttonName)==="新增"){let Ma=(f=a==null?void 0:a.fixContent)==null?void 0:f.map(ee=>{let ea={};for(let Je in ee)Array.isArray(ee==null?void 0:ee[Je])?ea[Je]=JSON.stringify(ee==null?void 0:ee[Je]):ea[Je]=ee==null?void 0:ee[Je];return ea}),el=await A.quoteApi({platId:parseInt((d=hl==null?void 0:hl.value)==null?void 0:d.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});el=(y=el==null?void 0:el.data)==null?void 0:y.result,el=el==null?void 0:el.filter(ee=>{var ea,Je;return!((ee==null?void 0:ee.fatherPath)!==""&&((Je=(ea=ee==null?void 0:ee.quote)==null?void 0:ea[0])==null?void 0:Je.menus)===(yl==null?void 0:yl.value))});let tl=el==null?void 0:el.map(ee=>{var ya,pa;let ea={},Je=Ma==null?void 0:Ma[0],he;return Array.isArray((ya=ee==null?void 0:ee.struct)==null?void 0:ya[0])?he=ve.getColumnChild((pa=ee==null?void 0:ee.struct)==null?void 0:pa[0]):he=ee==null?void 0:ee.struct,he=he==null?void 0:he.filter(qe=>(qe==null?void 0:qe.prop)!=="relatedId"),he==null||he.forEach(qe=>{var na,fa;ea[qe.prop]=((na=qe==null?void 0:qe.words)!=null&&na[0]?(Je==null?void 0:Je[(fa=qe==null?void 0:qe.words)==null?void 0:fa[0]])??(Je==null?void 0:Je[qe==null?void 0:qe.prop]):Je==null?void 0:Je[qe==null?void 0:qe.prop])??""}),ea.id="1",ea.relatedId=`[${ea.id}]`,delete ea.sort,{tableName:"content_"+(ee==null?void 0:ee.id),tableContents:[ea]}}),ol=[{tableName:(g=a==null?void 0:a.relatedContents)==null?void 0:g.find(ee=>ee==null?void 0:ee.includes("content")),tableContents:Ma}];ol=[...ol,...tl];let Ra=await A.quoteApi({platId:parseInt((c=hl==null?void 0:hl.value)==null?void 0:c.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});Ra=(O=(D=Ra==null?void 0:Ra.data)==null?void 0:D.result)==null?void 0:O.filter(ee=>!(ol!=null&&ol.find(ea=>(ea==null?void 0:ea.tableName)==="content_"+(ee==null?void 0:ee.id)))),Ra=Ra==null?void 0:Ra.filter(ee=>{var ea,Je;return!((ee==null?void 0:ee.fatherPath)!==""&&((Je=(ea=ee==null?void 0:ee.quote)==null?void 0:ea[0])==null?void 0:Je.menus)===(yl==null?void 0:yl.value))});let ul=Ra==null?void 0:Ra.map(ee=>{var ya,pa,qe,na,fa,dl,He;let ea={},Je=Ma==null?void 0:Ma[0],he;return Array.isArray((ya=ee==null?void 0:ee.struct)==null?void 0:ya[0])?he=ve.getColumnChild((pa=ee==null?void 0:ee.struct)==null?void 0:pa[0]):he=ee==null?void 0:ee.struct,he=he==null?void 0:he.filter(ta=>(ta==null?void 0:ta.prop)!=="relatedId"),((na=(qe=he==null?void 0:he[0])==null?void 0:qe.words)!=null&&na[0]?Je!=null&&Je[(dl=(fa=he==null?void 0:he[0])==null?void 0:fa.words)==null?void 0:dl[0]]:Je!=null&&Je[(He=he==null?void 0:he[0])==null?void 0:He.prop])?(he==null||he.forEach(ta=>{var ra,Za;ea[ta.prop]=((ra=ta==null?void 0:ta.words)!=null&&ra[0]?(Je==null?void 0:Je[(Za=ta==null?void 0:ta.words)==null?void 0:Za[0]])??(Je==null?void 0:Je[ta==null?void 0:ta.prop]):Je==null?void 0:Je[ta==null?void 0:ta.prop])??""}),ea.id="1",ea.relatedId=`[${ea.id}]`,delete ea.sort):ea=void 0,{tableName:"content_"+(ee==null?void 0:ee.id),tableContents:[ea]}});ul=ul==null?void 0:ul.filter(ee=>{var ea;return!((ea=ee==null?void 0:ee.tableContents)!=null&&ea.every(Je=>Je===void 0))}),ol=[...ol,...ul],await A.pageBatchAddApi({platId:parseInt((k=hl==null?void 0:hl.value)==null?void 0:k.plat_id),changeContents:ol});let rl=[];ol==null||ol.forEach(ee=>{var ea;(ea=ee==null?void 0:ee.tableContents)==null||ea.forEach(Je=>{rl.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Je),request_result:"{}",is_delete:!1,request_table:ee==null?void 0:ee.tableName,request_type:"add"})})}),await A.pageBatchAddApi({platId:parseInt((K=hl==null?void 0:hl.value)==null?void 0:K.plat_id),changeContents:[{tableName:"log",tableContents:rl}]})}if((a==null?void 0:a.buttonName)==="OCR批量新增"){const Ma=((a==null?void 0:a.ocrRows)||[]).map(Ra=>Ra==null?void 0:Ra.id).filter(Ra=>Ra!=null),el=((a==null?void 0:a.ocrRows)||[]).map(Ra=>{const ul={...Ra};return delete ul._isOCRRow,delete ul._ocrTableId,Object.keys(ul).forEach(rl=>{/(^|\.)证书附件$/.test(rl)&&Array.isArray(ul[rl])&&(ul[rl]=JSON.stringify(ul[rl].map(ee=>({url:(ee==null?void 0:ee.url)||"",name:(ee==null?void 0:ee.name)||(ee==null?void 0:ee.fileName)||"",fileName:(ee==null?void 0:ee.fileName)||(ee==null?void 0:ee.name)||""})).filter(ee=>ee.url||ee.name)))}),ul});let tl=[{tableName:(M=a==null?void 0:a.relatedContents)==null?void 0:M.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:el}];await A.pageBatchAddApi({platId:parseInt((R=hl==null?void 0:hl.value)==null?void 0:R.plat_id),changeContents:tl});let ol=[];tl==null||tl.forEach(Ra=>{var ul;(ul=Ra==null?void 0:Ra.tableContents)==null||ul.forEach(rl=>{ol.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(rl),request_result:"{}",is_delete:!1,request_table:Ra==null?void 0:Ra.tableName,request_type:"ocrBatchAdd"})})}),await A.pageBatchAddApi({platId:parseInt((j=hl==null?void 0:hl.value)==null?void 0:j.plat_id),changeContents:[{tableName:"log",tableContents:ol}]}),S0(a==null?void 0:a.parentTableId,a==null?void 0:a.index,Ma)}if((a==null?void 0:a.buttonName)==="编辑"){const el=((a==null?void 0:a.fixContent)||(a==null?void 0:a.singleContent)||[]||[]).map(he=>{const ya={...he};return delete ya._isOCRRow,delete ya._ocrTableId,delete ya._isTemp,delete ya.tableEditType,delete ya.index,ya});let tl=el==null?void 0:el.map(he=>{let ya={};for(let pa in he)Array.isArray(he==null?void 0:he[pa])?ya[pa]=JSON.stringify(he==null?void 0:he[pa]):ya[pa]=he==null?void 0:he[pa];return ya}),ol=await A.quoteApi({platId:parseInt((E=hl==null?void 0:hl.value)==null?void 0:E.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});ol=(w=ol==null?void 0:ol.data)==null?void 0:w.result,ol=ol==null?void 0:ol.filter(he=>{var ya,pa;return!((he==null?void 0:he.fatherPath)!==""&&((pa=(ya=he==null?void 0:he.quote)==null?void 0:ya[0])==null?void 0:pa.menus)===(yl==null?void 0:yl.value))});let Ra=(x=tl==null?void 0:tl[0])==null?void 0:x.id,ul=[{tableName:(b=a==null?void 0:a.relatedContents)==null?void 0:b.find(he=>he==null?void 0:he.includes("content")),tableContents:tl}],rl=(_=ol==null?void 0:ol.map(he=>{var pa,qe,na,fa,dl;let ya=(pa=he==null?void 0:he.contents)==null?void 0:pa.filter(He=>{var ta,ra;return JSON.stringify(He==null?void 0:He.relatedId)!=="{}"&&(He==null?void 0:He.relatedId)!==""&&(He!=null&&He.relatedId)?(ta=He==null?void 0:He.relatedId)==null?void 0:ta.includes(parseInt(Ra)):(He==null?void 0:He.sort)===((ra=tl==null?void 0:tl[0])==null?void 0:ra.sort)});if((ya==null?void 0:ya.length)>0){let He=tl==null?void 0:tl[0];He={...He,id:(qe=ya==null?void 0:ya[0])==null?void 0:qe.id};let ta={},ra=He,Za;return Array.isArray((na=he==null?void 0:he.struct)==null?void 0:na[0])?Za=ve.getColumnChild((fa=he==null?void 0:he.struct)==null?void 0:fa[0]):Za=he==null?void 0:he.struct,Za=Za==null?void 0:Za.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),Za==null||Za.forEach(Le=>{var Ne,_l;ta[Le.prop]=((Ne=Le==null?void 0:Le.words)!=null&&Ne[0]?(ra==null?void 0:ra[(_l=Le==null?void 0:Le.words)==null?void 0:_l[0]])??(ra==null?void 0:ra[Le==null?void 0:Le.prop]):ra==null?void 0:ra[Le==null?void 0:Le.prop])??""}),ta.id=(dl=ya==null?void 0:ya[0])==null?void 0:dl.id,delete ta.sort,delete ta.relatedId,{tableName:"content_"+(he==null?void 0:he.id),tableContents:[ta]}}else return}))==null?void 0:_.filter(he=>he);ul=[...ul,...rl];let ee=await A.quoteApi({platId:parseInt(($=hl==null?void 0:hl.value)==null?void 0:$.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});ee=(J=(F=ee==null?void 0:ee.data)==null?void 0:F.result)==null?void 0:J.filter(he=>!(ul!=null&&ul.find(ya=>(ya==null?void 0:ya.tableName)==="content_"+(he==null?void 0:he.id)))),ee=ee==null?void 0:ee.filter(he=>{var ya,pa;return!((he==null?void 0:he.fatherPath)!==""&&((pa=(ya=he==null?void 0:he.quote)==null?void 0:ya[0])==null?void 0:pa.menus)===(yl==null?void 0:yl.value))});let ea=(ce=ee==null?void 0:ee.map(he=>{var pa,qe,na,fa,dl;let ya=(pa=he==null?void 0:he.contents)==null?void 0:pa.filter(He=>{var ta,ra,Za;return JSON.stringify(He==null?void 0:He.relatedId)!=="{}"&&(He==null?void 0:He.relatedId)!==""&&(He!=null&&He.relatedId)?(ta=He==null?void 0:He.relatedId)==null?void 0:ta.includes(parseInt(Ra)):(He==null?void 0:He.sort)===((ra=tl==null?void 0:tl[0])==null?void 0:ra.sort)||(He==null?void 0:He.sort)===(parseInt(((Za=tl==null?void 0:tl[0])==null?void 0:Za.sort)??"0")+1).toString()});if((ya==null?void 0:ya.length)>0){let He=tl==null?void 0:tl[0];He={...He,id:(qe=ya==null?void 0:ya[0])==null?void 0:qe.id};let ta={},ra=He,Za;return Array.isArray((na=he==null?void 0:he.struct)==null?void 0:na[0])?Za=ve.getColumnChild((fa=he==null?void 0:he.struct)==null?void 0:fa[0]):Za=he==null?void 0:he.struct,Za=Za==null?void 0:Za.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),Za==null||Za.forEach(Le=>{var Ne,_l,Ol,ql;((Ne=Le==null?void 0:Le.words)!=null&&Ne[0]?(ra==null?void 0:ra[(_l=Le==null?void 0:Le.words)==null?void 0:_l[0]])??(ra==null?void 0:ra[Le==null?void 0:Le.prop]):ra!=null&&ra[Le==null?void 0:Le.prop])&&(ta[Le.prop]=((Ol=Le==null?void 0:Le.words)!=null&&Ol[0]?(ra==null?void 0:ra[(ql=Le==null?void 0:Le.words)==null?void 0:ql[0]])??(ra==null?void 0:ra[Le==null?void 0:Le.prop]):ra==null?void 0:ra[Le==null?void 0:Le.prop])??"")}),ta.id=(dl=ya==null?void 0:ya[0])==null?void 0:dl.id,delete ta.sort,delete ta.relatedId,{tableName:"content_"+(he==null?void 0:he.id),tableContents:[ta]}}else return}))==null?void 0:ce.filter(he=>he);ul=[...ul,...ea],await A.pageBatchUpdateApi({platId:parseInt((be=hl==null?void 0:hl.value)==null?void 0:be.plat_id),changeContents:ul});let Je=[];ul==null||ul.forEach(he=>{var ya;(ya=he==null?void 0:he.tableContents)==null||ya.forEach(pa=>{Je.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(pa),request_result:"{}",is_delete:!1,request_table:he==null?void 0:he.tableName,request_type:"update"})})}),await A.pageBatchAddApi({platId:parseInt((Me=hl==null?void 0:hl.value)==null?void 0:Me.plat_id),changeContents:[{tableName:"log",tableContents:Je}]})}if((a==null?void 0:a.buttonName)==="删除"){let Ma=[{tableName:(V=a==null?void 0:a.relatedContents)==null?void 0:V.find(ee=>ee==null?void 0:ee.includes("content")),tableContents:a==null?void 0:a.fixContent}],el=await A.quoteApi({platId:parseInt((fe=hl==null?void 0:hl.value)==null?void 0:fe.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});el=(le=el==null?void 0:el.data)==null?void 0:le.result,el=el==null?void 0:el.filter(ee=>{var ea,Je;return!((ee==null?void 0:ee.fatherPath)!==""&&((Je=(ea=ee==null?void 0:ee.quote)==null?void 0:ea[0])==null?void 0:Je.menus)===(yl==null?void 0:yl.value))});let tl=(De=(pe=a==null?void 0:a.fixContent)==null?void 0:pe[0])==null?void 0:De.id,ol=(Ve=el==null?void 0:el.map(ee=>{var Je,he,ya,pa,qe,na;let ea=(Je=ee==null?void 0:ee.contents)==null?void 0:Je.filter(fa=>{var dl,He,ta;return JSON.stringify(fa==null?void 0:fa.relatedId)!=="{}"&&(fa==null?void 0:fa.relatedId)!==""&&(fa!=null&&fa.relatedId)?(dl=fa==null?void 0:fa.relatedId)==null?void 0:dl.includes(parseInt(tl)):(fa==null?void 0:fa.sort)===((ta=(He=a==null?void 0:a.fixContent)==null?void 0:He[0])==null?void 0:ta.sort)});if((ea==null?void 0:ea.length)>0){let fa=(he=a==null?void 0:a.fixContent)==null?void 0:he[0];fa={...fa,id:(ya=ea==null?void 0:ea[0])==null?void 0:ya.id};let dl={},He=fa,ta;return Array.isArray((pa=ee==null?void 0:ee.struct)==null?void 0:pa[0])?ta=ve.getColumnChild((qe=ee==null?void 0:ee.struct)==null?void 0:qe[0]):ta=ee==null?void 0:ee.struct,ta=ta==null?void 0:ta.filter(ra=>(ra==null?void 0:ra.prop)!=="relatedId"),ta==null||ta.forEach(ra=>{var Za,Le;dl[ra.prop]=((Za=ra==null?void 0:ra.words)!=null&&Za[0]?(He==null?void 0:He[(Le=ra==null?void 0:ra.words)==null?void 0:Le[0]])??(He==null?void 0:He[ra==null?void 0:ra.prop]):He==null?void 0:He[ra==null?void 0:ra.prop])??""}),dl.id=(na=ea==null?void 0:ea[0])==null?void 0:na.id,delete dl.sort,delete dl.relatedId,{tableName:"content_"+(ee==null?void 0:ee.id),tableContents:[dl]}}else return}))==null?void 0:Ve.filter(ee=>ee);Ma=[...Ma,...ol];let Ra=await A.quoteApi({platId:parseInt((ge=hl==null?void 0:hl.value)==null?void 0:ge.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});Ra=(de=(N=Ra==null?void 0:Ra.data)==null?void 0:N.result)==null?void 0:de.filter(ee=>!(Ma!=null&&Ma.find(ea=>(ea==null?void 0:ea.tableName)==="content_"+(ee==null?void 0:ee.id)))),Ra=Ra==null?void 0:Ra.filter(ee=>{var ea,Je;return!((ee==null?void 0:ee.fatherPath)!==""&&((Je=(ea=ee==null?void 0:ee.quote)==null?void 0:ea[0])==null?void 0:Je.menus)===(yl==null?void 0:yl.value))});let ul=(U=Ra==null?void 0:Ra.map(ee=>{var Je,he,ya,pa,qe,na;let ea=(Je=ee==null?void 0:ee.contents)==null?void 0:Je.filter(fa=>{var dl,He,ta;return JSON.stringify(fa==null?void 0:fa.relatedId)!=="{}"&&(fa==null?void 0:fa.relatedId)!==""&&(fa!=null&&fa.relatedId)?(dl=fa==null?void 0:fa.relatedId)==null?void 0:dl.includes(parseInt(tl)):(fa==null?void 0:fa.sort)===((ta=(He=a==null?void 0:a.fixContent)==null?void 0:He[0])==null?void 0:ta.sort)});if((ea==null?void 0:ea.length)>0){let fa=(he=a==null?void 0:a.fixContent)==null?void 0:he[0];fa={...fa,id:(ya=ea==null?void 0:ea[0])==null?void 0:ya.id};let dl={},He=fa,ta;return Array.isArray((pa=ee==null?void 0:ee.struct)==null?void 0:pa[0])?ta=ve.getColumnChild((qe=ee==null?void 0:ee.struct)==null?void 0:qe[0]):ta=ee==null?void 0:ee.struct,ta=ta==null?void 0:ta.filter(ra=>(ra==null?void 0:ra.prop)!=="relatedId"),ta==null||ta.forEach(ra=>{var Za,Le;dl[ra.prop]=((Za=ra==null?void 0:ra.words)!=null&&Za[0]?(He==null?void 0:He[(Le=ra==null?void 0:ra.words)==null?void 0:Le[0]])??(He==null?void 0:He[ra==null?void 0:ra.prop]):He==null?void 0:He[ra==null?void 0:ra.prop])??""}),dl.id=(na=ea==null?void 0:ea[0])==null?void 0:na.id,delete dl.sort,delete dl.relatedId,{tableName:"content_"+(ee==null?void 0:ee.id),tableContents:[dl]}}else return}))==null?void 0:U.filter(ee=>ee);Ma=[...Ma,...ul],await A.pageBatchDeleteApi({platId:parseInt((Se=hl==null?void 0:hl.value)==null?void 0:Se.plat_id),changeContents:Ma});let rl=[];Ma==null||Ma.forEach(ee=>{var ea;(ea=ee==null?void 0:ee.tableContents)==null||ea.forEach(Je=>{rl.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(Je),request_result:"{}",is_delete:!1,request_table:ee==null?void 0:ee.tableName,request_type:"delete"})})}),await A.pageBatchAddApi({platId:parseInt((Oe=hl==null?void 0:hl.value)==null?void 0:Oe.plat_id),changeContents:[{tableName:"log",tableContents:rl}]})}if((a==null?void 0:a.buttonName)==="复制新增"){let Ma=await A.getPageDataApi({platId:parseInt((Fe=hl==null?void 0:hl.value)==null?void 0:Fe.plat_id),pageName:"menu"});if(Ma=(la=Ma==null?void 0:Ma.data)==null?void 0:la.result,Ma!=null&&Ma.find(el=>(el==null?void 0:el.father_name)===yl.value+"/")){mc.value=a,vc.value=Ma==null?void 0:Ma.filter(ol=>(ol==null?void 0:ol.father_name)===yl.value+"/");let el=(re=(Da=a==null?void 0:a.columns)==null?void 0:Da.find(ol=>ol==null?void 0:ol.mainKey))==null?void 0:re.prop,tl=(se=(ca=a==null?void 0:a.fixContent)==null?void 0:ca[0])==null?void 0:se[el];Dt.value=!0,Ki.value=[{prop:el,label:el,name:el,value:tl}]}else{let el=(da=a==null?void 0:a.fixContent)==null?void 0:da.map(Ra=>{let ul={};for(let rl in Ra)Array.isArray(Ra==null?void 0:Ra[rl])?ul[rl]=JSON.stringify(Ra==null?void 0:Ra[rl]):ul[rl]=Ra==null?void 0:Ra[rl];return ul.relatedId="",ul}),tl=[{tableName:(Ee=a==null?void 0:a.relatedContents)==null?void 0:Ee.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:el}];await A.pageBatchAddApi({platId:parseInt((te=hl==null?void 0:hl.value)==null?void 0:te.plat_id),changeContents:tl});let ol=[];tl==null||tl.forEach(Ra=>{var ul;(ul=Ra==null?void 0:Ra.tableContents)==null||ul.forEach(rl=>{ol.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(rl),request_result:"{}",is_delete:!1,request_table:Ra==null?void 0:Ra.tableName,request_type:"copyAdd"})})}),await A.pageBatchAddApi({platId:parseInt((Ae=hl==null?void 0:hl.value)==null?void 0:Ae.plat_id),changeContents:[{tableName:"log",tableContents:ol}]})}}if((a==null?void 0:a.buttonName)==="methodButton"){let Ma=((Ka=(sa=(Ue=a==null?void 0:a.columns)==null?void 0:Ue.map(he=>he==null?void 0:he.filter))==null?void 0:sa.filter(he=>he!==""))==null?void 0:Ka[0])??"";Ma=ve.analyzeSplitToContent(Ma,","),Ma=(Ma==null?void 0:Ma.find(he=>he==null?void 0:he.includes("@Filter")))??"";let el=(L=a==null?void 0:a.fixContent)==null?void 0:L.map(he=>{let ya={};for(let pa in he)Array.isArray(he==null?void 0:he[pa])?ya[pa]=JSON.stringify(he==null?void 0:he[pa]):ya[pa]=he==null?void 0:he[pa];return ya}),tl=await A.quoteApi({platId:parseInt((H=hl==null?void 0:hl.value)==null?void 0:H.plat_id),type:"fatherSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});tl=(Q=tl==null?void 0:tl.data)==null?void 0:Q.result,tl=tl==null?void 0:tl.filter(he=>{var ya,pa;return!((he==null?void 0:he.fatherPath)!==""&&((pa=(ya=he==null?void 0:he.quote)==null?void 0:ya[0])==null?void 0:pa.menus)===(yl==null?void 0:yl.value))});let ol=(me=(ye=a==null?void 0:a.columns)==null?void 0:ye[0])==null?void 0:me.prop,Ra=(va=el==null?void 0:el[0])==null?void 0:va[ol],ul=[{tableName:(Qe=a==null?void 0:a.relatedContents)==null?void 0:Qe.find(he=>he==null?void 0:he.includes("content")),tableContents:el}],rl=(ue=tl==null?void 0:tl.map(he=>{var pa,qe,na,fa,dl;let ya=(pa=he==null?void 0:he.contents)==null?void 0:pa.filter(He=>{var ta;return(ta=Object.values(He))==null?void 0:ta.find(ra=>ra===Ra)});if((ya==null?void 0:ya.length)>0){let He=el==null?void 0:el[0];He={...He,id:(qe=ya==null?void 0:ya[0])==null?void 0:qe.id};let ta={},ra=He,Za;return Array.isArray((na=he==null?void 0:he.struct)==null?void 0:na[0])?Za=ve.getColumnChild((fa=he==null?void 0:he.struct)==null?void 0:fa[0]):Za=he==null?void 0:he.struct,Za=Za==null?void 0:Za.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),Za==null||Za.forEach(Le=>{var Ne,_l;ta[Le.prop]=((Ne=Le==null?void 0:Le.words)!=null&&Ne[0]?(ra==null?void 0:ra[(_l=Le==null?void 0:Le.words)==null?void 0:_l[0]])??(ra==null?void 0:ra[Le==null?void 0:Le.prop]):ra==null?void 0:ra[Le==null?void 0:Le.prop])??""}),ta.id=(dl=ya==null?void 0:ya[0])==null?void 0:dl.id,delete ta.sort,{tableName:"content_"+(he==null?void 0:he.id),tableContents:[ta]}}else return}))==null?void 0:ue.filter(he=>he);ul=[...ul,...rl];let ee=await A.quoteApi({platId:parseInt((ma=hl==null?void 0:hl.value)==null?void 0:ma.plat_id),type:"sonSyncs",related:[{menus:n!==""?yl.value+"/"+n:yl.value,groups:a==null?void 0:a.name}]});if(ee=(Ke=(Te=ee==null?void 0:ee.data)==null?void 0:Te.result)==null?void 0:Ke.filter(he=>!(ul!=null&&ul.find(ya=>(ya==null?void 0:ya.tableName)==="content_"+(he==null?void 0:he.id)))),ee=ee==null?void 0:ee.filter(he=>{var ya,pa;return!((he==null?void 0:he.fatherPath)!==""&&((pa=(ya=he==null?void 0:he.quote)==null?void 0:ya[0])==null?void 0:pa.menus)===(yl==null?void 0:yl.value))}),Ma&&Ma!==""){(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])===","&&(Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),Ma=(Ca=(Na=Ma==null?void 0:Ma.replace("(",mo))==null?void 0:Na.split(mo))==null?void 0:Ca[1],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1),(Ma==null?void 0:Ma[0])==="*"&&(Ma="{"+((La=(Ze=Ma==null?void 0:Ma.replace("{",mo))==null?void 0:Ze.split(mo))==null?void 0:La[1])),Ma=(ie=Ma==null?void 0:Ma.replaceAll("{",""))==null?void 0:ie.replaceAll("}","");let he=ve.calculatorAndToOr(Ma);he=he==null?void 0:he[0];let ya;if((X=Object.values(he))!=null&&X.some(pa=>(pa==null?void 0:pa[0])==="*")){let pa=(q=(Z=Fn.value)==null?void 0:Z.find(qe=>(qe==null?void 0:qe.condition)==="child"))!=null&&q.value?(Zr==null?void 0:Zr.value)+"/"+((Xe=(Be=Fn.value)==null?void 0:Be.find(qe=>(qe==null?void 0:qe.condition)==="child"))==null?void 0:Xe.value):Zr==null?void 0:Zr.value;ya=await Kr(pa,!1)}for(let pa in he)if(((ia=he==null?void 0:he[pa])==null?void 0:ia[0])==="*"){let qe=(Sa=(Aa=(ka=he[pa])==null?void 0:ka.slice(1,(xa=he[pa])==null?void 0:xa.length))==null?void 0:Aa.split(":"))==null?void 0:Sa[0],na=(Ya=(Ie=he[pa])==null?void 0:Ie.split(":"))==null?void 0:Ya[1],fa=(Fa=ya==null?void 0:ya.filter(dl=>(dl==null?void 0:dl.name)===qe))==null?void 0:Fa[0];fa=(Jl=(xl=fa==null?void 0:fa.compData)==null?void 0:xl.find(dl=>(dl==null?void 0:dl.key)==="tableContents"))==null?void 0:Jl.contents,fa=(kl=fa==null?void 0:fa[0])==null?void 0:kl[na],he[pa]=fa}Ma=((Pl=Object.values(he))==null?void 0:Pl[0])??""}let ea=(Va=ee==null?void 0:ee.map(he=>{var pa,qe,na,fa,dl;let ya=(pa=he==null?void 0:he.contents)==null?void 0:pa.filter(He=>{var ta;return(ta=Object.values(He))==null?void 0:ta.find(ra=>ra===(Ma===""?Ra:Ma))});if((ya==null?void 0:ya.length)>0){let He=el==null?void 0:el[0];He={...He,id:(qe=ya==null?void 0:ya[0])==null?void 0:qe.id};let ta={},ra=He,Za;return Array.isArray((na=he==null?void 0:he.struct)==null?void 0:na[0])?Za=ve.getColumnChild((fa=he==null?void 0:he.struct)==null?void 0:fa[0]):Za=he==null?void 0:he.struct,Za=Za==null?void 0:Za.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),Za==null||Za.forEach(Le=>{var _l,Ol,ql,Wl;let Ne=(_l=a==null?void 0:a.columns)==null?void 0:_l.find(Ql=>{var pr,Ll,fr;return((Ll=(pr=Ql==null?void 0:Ql.words)==null?void 0:pr[0])==null?void 0:Ll.replaceAll("'",""))===(Le==null?void 0:Le.prop)&&((fr=Ql==null?void 0:Ql.functionRelatedWords)==null?void 0:fr.length)>0});Ne=(Ol=Ne==null?void 0:Ne.prop)==null?void 0:Ol.replaceAll("'",""),ta[Le.prop]=((ql=Le==null?void 0:Le.words)!=null&&ql[0]?(ra==null?void 0:ra[(Wl=Le==null?void 0:Le.words)==null?void 0:Wl[0]])??(ra==null?void 0:ra[Le==null?void 0:Le.prop])??(ra==null?void 0:ra[Ne]):(ra==null?void 0:ra[Le==null?void 0:Le.prop])??(ra==null?void 0:ra[Ne]))??void 0}),ta.id=(dl=ya==null?void 0:ya[0])==null?void 0:dl.id,delete ta.sort,{tableName:"content_"+(he==null?void 0:he.id),tableContents:[ta]}}else return}))==null?void 0:Va.filter(he=>he);ul=[...ul,...ea],await A.pageBatchUpdateApi({platId:parseInt((Ml=hl==null?void 0:hl.value)==null?void 0:Ml.plat_id),changeContents:ul});let Je=[];ul==null||ul.forEach(he=>{var ya;(ya=he==null?void 0:he.tableContents)==null||ya.forEach(pa=>{Je.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(pa),request_result:"{}",is_delete:!1,request_table:he==null?void 0:he.tableName,request_type:"method"})})}),await A.pageBatchAddApi({platId:parseInt(($l=hl==null?void 0:hl.value)==null?void 0:$l.plat_id),changeContents:[{tableName:"log",tableContents:Je}]})}Br.setRefreshCurStructure(!0),await xt(a)},kt=async(a,l,r)=>{var t;let n=a==null?void 0:a.find(s=>(s==null?void 0:s.id)===l);if(n){let s=(t=n.compData)==null?void 0:t.map(v=>{var f;if((v==null?void 0:v.key)==="tableContents"){let d={...v,contents:r};return d.contents=(f=(d==null?void 0:d.contents)??[])==null?void 0:f.map(y=>{let g={};for(let c in y)JSON.stringify(y==null?void 0:y[c])==="{}"?g[c]="":g[c]=y==null?void 0:y[c];return g}),d}return v});return n.compData=await Et(s,{}),a=a==null?void 0:a.map(v=>((v==null?void 0:v.id)===(n==null?void 0:n.id)&&(v=n),v)),a}else{let s=a==null?void 0:a.filter(f=>{var d;return(f==null?void 0:f.children)&&((d=f==null?void 0:f.children)==null?void 0:d.length)>0||(f==null?void 0:f.comp)==="Tabs"}),v=s==null?void 0:s.map(async f=>{var d;return f!=null&&f.children&&((d=f==null?void 0:f.children)==null?void 0:d.length)>0?f.children=await kt(f==null?void 0:f.children,l,r):f.compData=await kt(f==null?void 0:f.compData,l,r),f});return s=await Promise.all(v),s}},xt=async a=>{var s,v,f,d,y,g,c;let l=(s=a==null?void 0:a.relatedContents)==null?void 0:s.filter(D=>D==null?void 0:D.includes("content_"));if(!l)return;let r=await A.getAllTables({platId:parseInt((v=hl==null?void 0:hl.value)==null?void 0:v.plat_id),tableNames:l??[]});if(r=(d=(f=r==null?void 0:r.data)==null?void 0:f.result)==null?void 0:d[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(D=>{D==null||delete D.source_table;const O={};for(let k in D){const K=D==null?void 0:D[k],M=K&&Object.prototype.toString.call(K)==="[object Object]"&&Object.keys(K).length===0,R=Array.isArray(K)&&K.length===0;K==null||K==="{}"||M||R?O[k]="":O[k]=K}return O});let n=(g=(y=l==null?void 0:l[0])==null?void 0:y.split("_"))==null?void 0:g[1],t=await kt(tr.value,n,r);tr.value=(c=tr.value)==null?void 0:c.map(D=>{var O,k;return(O=t==null?void 0:t[0])!=null&&O.tabInform&&((k=t==null?void 0:t[0])==null?void 0:k.tabInform)===(D==null?void 0:D.tabInform)?D=t==null?void 0:t[0]:(D!=null&&D.name?(D==null?void 0:D.name)===(t==null?void 0:t.name):(D==null?void 0:D.id)===(t==null?void 0:t.id))&&(D=t),D})},E0=a=>{let l=Ki.value;Ki.value=l==null?void 0:l.map(r=>(r.value=a==null?void 0:a[r==null?void 0:r.prop],r))},C0=async()=>{var D,O,k,K,M,R,j,E,w,x;let a=mc.value,l=vc.value,r=(O=(D=a==null?void 0:a.columns)==null?void 0:D.find(b=>b==null?void 0:b.mainKey))==null?void 0:O.prop,n=(K=(k=Ki.value)==null?void 0:k[0])==null?void 0:K.value,t=(M=a==null?void 0:a.fixContent)==null?void 0:M.map(b=>{var $;let _={};for(let F in b)Array.isArray(b==null?void 0:b[F])?_[F]=JSON.stringify(b==null?void 0:b[F]):_[F]=b==null?void 0:b[F];return($=a==null?void 0:a.columns)==null||$.forEach(F=>{(F==null?void 0:F.formType)==="Upload"&&(_==null?void 0:_[F==null?void 0:F.prop])===""&&(_[F==null?void 0:F.prop]="{}")}),_[r]=n,_}),s=[{tableName:(R=a==null?void 0:a.relatedContents)==null?void 0:R.find(b=>b==null?void 0:b.includes("content")),tableContents:t}];await A.pageBatchAddApi({platId:parseInt((j=hl==null?void 0:hl.value)==null?void 0:j.plat_id),changeContents:s}),l=l==null?void 0:l.filter(b=>{var _,$,F;return(F=b==null?void 0:b.object_name)==null?void 0:F.includes(($=(_=a==null?void 0:a.fixContent)==null?void 0:_[0])==null?void 0:$[r])});let v=[],f=new Map;l==null||l.forEach(b=>{v.push(`content_${b==null?void 0:b.object_id}`),v.push(`struct_${b==null?void 0:b.object_id}`),f.set(b==null?void 0:b.object_id,b)});let d=await A.getAllTables({platId:parseInt((E=hl==null?void 0:hl.value)==null?void 0:E.plat_id),tableNames:v??[]});d=(w=d==null?void 0:d.data)==null?void 0:w.result;let y=[],g=[];d=ve.chunk(d,2),d==null||d.forEach(b=>{var F,J,ce,be,Me,V,fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da,re;let _=f.get((be=(ce=(J=(F=b==null?void 0:b[1])==null?void 0:F[0])==null?void 0:J.source_table)==null?void 0:ce.split("_"))==null?void 0:be[1]),$=(fe=(V=(Me=_==null?void 0:_.object_name)==null?void 0:Me.split("/"))==null?void 0:V.filter((ca,se)=>{var da,Ee;return((Ee=(da=_==null?void 0:_.object_name)==null?void 0:da.split("/"))==null?void 0:Ee.length)-1!==se}))==null?void 0:fe.join("/");if($=$+"/"+n,g!=null&&g.find(ca=>(ca==null?void 0:ca.path)===$)||g.push({fatherPath:_==null?void 0:_.father_name,isShow:_==null?void 0:_.is_show,path:$}),((pe=(le=b==null?void 0:b[1])==null?void 0:le[0])==null?void 0:pe.类型)==="Table"){let ca=((ge=(Ve=(De=b==null?void 0:b[1])==null?void 0:De[0])==null?void 0:Ve.结构)==null?void 0:ge.contents)??[],se=ll.safeClone(ca);Array.isArray(se==null?void 0:se[0])&&(se=ve.getColumnChild(se==null?void 0:se[0]));let da=[];if(((N=b==null?void 0:b[0])==null?void 0:N.length)>0&&(da=(de=b==null?void 0:b[0])==null?void 0:de.map(Ee=>se==null?void 0:se.map(Ae=>(Ae=(Ee==null?void 0:Ee[Ae==null?void 0:Ae.prop])??"",Ae)))),y!=null&&y.find(Ee=>(Ee==null?void 0:Ee.key)===$)){let Ee=(U=y==null?void 0:y.find(Ae=>(Ae==null?void 0:Ae.key)===$))==null?void 0:U.contents;Ee.push({isShow:_==null?void 0:_.is_show,filter:((Fe=(Oe=(Se=b==null?void 0:b[1])==null?void 0:Se[0])==null?void 0:Oe.引用)==null?void 0:Fe.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:ca,tableContents:da});let te=y==null?void 0:y.findIndex(Ae=>(Ae==null?void 0:Ae.key)===$);y[te].contents=Ee}else y.push({key:$,contents:[{isShow:_==null?void 0:_.is_show,filter:((re=(Da=(la=b==null?void 0:b[1])==null?void 0:la[0])==null?void 0:Da.引用)==null?void 0:re.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:ca,tableContents:da}]})}});let c=[];c.push({key:"menuPath",contents:g}),c=[...c,...y],await A.createPlatFormDataApi({platId:parseInt((x=hl==null?void 0:hl.value)==null?void 0:x.plat_id),changeData:c}),Dt.value=!1,Br.setRefreshTable(!0)},No=async(a,l)=>{},Ao=async a=>{tr.value=await ve.getDeepDiffItems(a),Br.setItemData(tr.value),Br.setOriginalData(tr.value)};e.ref();const D0=e.ref(null),B0=()=>{var a,l;console.log("倒计时结束时"),A.ElMessageBox.alert(`超时未提交,【${(l=(a=yl.value)==null?void 0:a.split("/"))==null?void 0:l[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},kc=e.ref([]),T0=e.computed(()=>{var a,l;return(l=(a=gt.value)==null?void 0:a[yl.value])==null?void 0:l.filter(r=>{var n;return((n=r==null?void 0:r.key)==null?void 0:n.type)==="gridLayout"})});e.watch(()=>[v0.value],()=>{dn.setSelectTitle([]),dn.setChooseTitle([])},{deep:!0});e.watch(()=>Bo.value,async(a,l)=>{var n,t,s,v,f,d;let r=(n=Bo.value)==null?void 0:n.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Zr.value);if((r==null?void 0:r.length)>0){Ir.setContentLoading(!0);let y=((t=r==null?void 0:r[0])==null?void 0:t.relatedContent)??(yl==null?void 0:yl.value),g=y+"/"+((s=r==null?void 0:r[0])==null?void 0:s.value),c=!!((v=r==null?void 0:r[0])!=null&&v.parentContent),D=await Kr(g,c,{originPath:y});D=(f=D==null?void 0:D.filter(K=>K))==null?void 0:f.map(K=>(K.isShow=!0,K)),console.log(D,"loadingContents");let O=await ve.getDeepDiffItems(D),k=O==null?void 0:O.filter(K=>K==null?void 0:K.choice);Oo.setSelectTab((d=k==null?void 0:k[0])==null?void 0:d.choiceName),O=O==null?void 0:O.filter(K=>{var M;return!(K!=null&&K.choiceName)||(K==null?void 0:K.choiceName)===((M=k==null?void 0:k[0])==null?void 0:M.choiceName)}),tr.value=O,Ir.setContentLoading(!1)}});const N0=(a,l)=>{setTimeout(async()=>{var f,d,y;let r=(f=Bo.value)==null?void 0:f.filter(g=>(g==null?void 0:g.condition)==="child"&&(g==null?void 0:g.value)!==""&&(g==null?void 0:g.parentContent)!==Zr.value),n=yl==null?void 0:yl.value,t=yl==null?void 0:yl.value;(r==null?void 0:r.length)>0&&(t=((d=r==null?void 0:r[0])==null?void 0:d.relatedContent)??(yl==null?void 0:yl.value),n=t+"/"+((y=r==null?void 0:r[0])==null?void 0:y.value));let s=await Kr(n,!1,{originPath:t});s=s==null?void 0:s.map(g=>(g.isShow=!0,g));let v=await ve.getDeepDiffItems(s);tr.value=v==null?void 0:v.filter(g=>!(g!=null&&g.step)||(g==null?void 0:g.step)===(a==null?void 0:a.title))},10)},A0=a=>{setTimeout(async()=>{var v,f,d;let l=(v=Bo.value)==null?void 0:v.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Zr.value),r=yl==null?void 0:yl.value,n=yl==null?void 0:yl.value;(l==null?void 0:l.length)>0&&(n=((f=l==null?void 0:l[0])==null?void 0:f.relatedContent)??(yl==null?void 0:yl.value),r=n+"/"+((d=l==null?void 0:l[0])==null?void 0:d.value));let t=await Kr(r,!1,{originPath:n});t=t==null?void 0:t.map(y=>(y.isShow=!0,y)),Oo.setSelectTab(a);let s=await ve.getDeepDiffItems(t);tr.value=s==null?void 0:s.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===a)},10)};e.watch(()=>h0.value,a=>{a!=null&&a.length||(tr.value=[])},{immediate:!0});e.watch(()=>[yl.value],async a=>{var s,v,f,d;if(!yl.value)return;if(yl.value==="/"){tr.value=[];return}Ir.setCurrentMenuPath(yl.value),Br.setLockingPage(""),tr.value=[];let l=e.getCurrentInstance();(s=l==null?void 0:l.scope)==null||s.stop(),l=null,Di.value=!1,Ir.setContentLoading(!0),hc.value=!0;let r=a==null?void 0:a[0],n=r,t=(v=Fn.value)==null?void 0:v.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==yl.value&&!(y!=null&&y.relatedContent));if((t==null?void 0:t.length)>0&&(r=r+"/"+((f=t==null?void 0:t[0])==null?void 0:f.value)),r==="系统管理/日志管理")tr.value=await c0("log");else{let y=await Kr(r,!0,{originPath:n});y=y==null?void 0:y.map(D=>(D.isShow=!0,D));let g=await ve.getDeepDiffItems(y),c=g==null?void 0:g.filter(D=>D==null?void 0:D.choice);Oo.setSelectTab((d=c==null?void 0:c[0])==null?void 0:d.choiceName),tr.value=g==null?void 0:g.filter(D=>{var O;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((O=c==null?void 0:c[0])==null?void 0:O.choiceName)})}Ir.setContentLoading(!1),Br.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Br.setItemData(tr.value),Br.setOriginalData(tr.value),Br.setRefreshTable(!1),e.nextTick(()=>{jn.value=jn.value++,Di.value=!0})},{immediate:!0});e.watch(()=>[ms.value],async()=>{var a,l,r,n;if(ms.value){tr.value=[];let t=e.getCurrentInstance();(a=t==null?void 0:t.scope)==null||a.stop(),t=null,Di.value=!1,Ir.setContentLoading(!0),hc.value=!0;let s=Zr==null?void 0:Zr.value,v=s,f=(l=Fn.value)==null?void 0:l.filter(c=>(c==null?void 0:c.condition)==="child"&&(c==null?void 0:c.value)!==""&&(c==null?void 0:c.parentContent)!==(Zr==null?void 0:Zr.value));(f==null?void 0:f.length)>0&&(s=s+"/"+((r=f==null?void 0:f[0])==null?void 0:r.value));let d=await Kr(s,!0,{originPath:v});d=d==null?void 0:d.map(c=>(c.isShow=!0,c));let y=await ve.getDeepDiffItems(d),g=y==null?void 0:y.filter(c=>c==null?void 0:c.choice);if(Oo.setSelectTab((n=g==null?void 0:g[0])==null?void 0:n.choiceName),tr.value=y==null?void 0:y.filter(c=>{var D;return!(c!=null&&c.choiceName)||(c==null?void 0:c.choiceName)===((D=g==null?void 0:g[0])==null?void 0:D.choiceName)}),Ir.setContentLoading(!1),Br.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Br.setItemData(tr.value),Br.setOriginalData(tr.value),Br.setRefreshTable(!1),(f==null?void 0:f.length)>0){let c=[...Fn.value,...f];dn.setSelectTitle(c)}e.nextTick(()=>{jn.value=jn.value++,Di.value=!0})}},{immediate:!0,deep:!0});const z0=async()=>{Ir.setLinkMenuInfo(null),Ir.setActiveMenuPath(f0.value),tr.value=null,Br.setRouteToChildPath(""),Ir.setChildMenu("")},M0=a=>new RegExp("button","i").test(a),I0=a=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(a),xc=a=>{if(I0(a)){const l=a==null?void 0:a.split("^");(l==null?void 0:l.length)>0&&(l!=null&&l[0])&&Ir.setLinkMenuInfo({path:l==null?void 0:l[0],data:l==null?void 0:l[1]})}},wc=async(a,l,r)=>{var D,O,k,K,M,R,j,E,w,x,b,_;let n="",t="";for(let $ in l)(l==null?void 0:l[$])===a&&(t=$);r==null||r.forEach($=>{($==null?void 0:$.prop)===t&&(n=$==null?void 0:$.fatherPath)});let s=n===""?yl.value:n;n!==""&&Ir.setCurrentMenuPath(s),Ir.setCurrentMenuPath(s+"/"+a),Ir.setContentLoading(!0),tr.value=await Kr(s+"/"+a,!0,{originPath:s+"/",row:l});let v=await Kr(s,!1),f=(D=v==null?void 0:v.filter($=>($==null?void 0:$.comp)==="Table"))==null?void 0:D[0],d=((M=(K=(k=(O=f==null?void 0:f.compData)==null?void 0:O.find($=>($==null?void 0:$.key)==="header"))==null?void 0:k.contents)==null?void 0:K[0])==null?void 0:M.prop)??((x=(w=(E=(j=(R=f==null?void 0:f.compData)==null?void 0:R.find($=>($==null?void 0:$.key)==="header"))==null?void 0:j.contents)==null?void 0:E[0])==null?void 0:w[0])==null?void 0:x.prop),y=(_=(b=f==null?void 0:f.compData)==null?void 0:b.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:_.contents;y=y==null?void 0:y.map($=>({label:$==null?void 0:$[d],value:$==null?void 0:$[d]}));let g=Fn.value,c={value:a,condition:"child",options:y,relatedContent:s,isShow:!0};g=g==null?void 0:g.filter($=>($==null?void 0:$.condition)!=="child"),g.push(c),dn.setSelectTitle(g),dn.setChooseTitle([c]),Ir.setContentLoading(!1),Br.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Br.setItemData(tr.value),Br.setOriginalData(tr.value)},O0=a=>{gc.value=a},_i=e.reactive({index:0,comp:null}),L0=e.computed(()=>{var a;return(a=tr.value)==null?void 0:a.map((l,r)=>({id:l.id,name:l.name,status:R0(l,r)}))}),_c=(a,l)=>{var d,y,g,c,D;const r=l?a:a-2,n=(d=tr.value)==null?void 0:d[r],t=(g=(y=n==null?void 0:n.compData)==null?void 0:y.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:g.contents,s=t==null?void 0:t.findIndex(O=>(O==null?void 0:O.isMainKey)&&(O==null?void 0:O.label)!=="操作"),v=s===-1?0:s,f=(D=(c=n==null?void 0:n.compData)==null?void 0:c.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:D.contents;return{valid:f==null?void 0:f.every(O=>O==null?void 0:O[v+1]),length:(f==null?void 0:f.length)||0}},R0=(a,l)=>{var n;let r="process";if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){const{valid:t,length:s}=_c(l,!0);_i.index===l?r="process":s===0?r="wait":r=t?"success":"error"}return r},Sc=a=>{var r,n,t,s,v;const l=a+1;if(l>1&&((t=(n=(r=tr.value)==null?void 0:r[a])==null?void 0:n.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:f}=_c(l);f?(_i.index=l,_i.comp=(s=tr.value)==null?void 0:s[a]):ja.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else _i.index=l,_i.comp=(v=tr.value)==null?void 0:v[a]},Ec=e.computed(()=>{var a,l;return(l=(a=yc.value)==null?void 0:a[0])==null?void 0:l.isStepLayout});e.watch(()=>Ec.value,a=>{a&&Sc(0)},{immediate:!0});const $0={class:"table-content"},V0={class:"menu-config-wrap"},F0=["onClick"],P0={key:0,class:"viewport-wrap"},j0=["onClick"],H0={title:"选择显示列信息"},U0={key:0,class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},q0=["title"],W0={class:"col-operate-wrap"},K0={key:0,class:"col-operate-radio-wrapper"},G0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Y0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},J0={class:"pop-view"},X0={class:"pop-wrapper"},Z0={class:"file-list-pop"},Q0=["title","onClick"],e3=["onClick"],a3=["onClick"],l3={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},r3={class:"form-content"},n3={key:0,class:"dialog-footer"},i3={class:"dialog-footer"},o3={class:"ocr-dialog-content"},t3={class:"ocr-steps"},s3={key:0,class:"ocr-action-buttons"},c3={key:1,class:"ocr-preview-area"},u3={class:"ocr-file-grid"},d3={class:"file-thumbnail"},p3=["src"],f3={key:1,class:"thumbnail-placeholder"},h3={class:"progress-svg",viewBox:"0 0 36 36"},v3=["stroke","stroke-width","stroke-dasharray"],m3={key:0,class:"progress-icon"},y3={key:1,class:"progress-icon"},g3=["onClick"],b3={class:"file-name"},k3={key:0,class:"ocr-recognize-button"},x3={key:2,class:"ocr-progress-section"},w3={key:3,class:"ocr-confirm-area"},_3={class:"ocr-preview-tip"},S3={class:"ocr-preview-table"},E3={style:{display:"flex","align-items":"center",gap:"8px"}},C3={key:0},D3={key:4,class:"ocr-success-area"},B3={key:0,class:"ocr-dialog-footer"},T3={class:"form-content"},N3={style:{width:"100%",margin:"0","font-size":"14px","font-weight":"600"}},A3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},z3={style:{display:"flex"}},gs="ss-ocr-upload-history",M3="ss-ocr-cert-history-v1",I3={__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(a,{emit:l}){var Vt;const r=e.ref([]),n=Ct(A.pinia),t=e.ref(null),s=e.ref(new Set),v=e.ref(new Map),f=e.ref(!1),d=e.ref(new Map),y=new Map,g=e.ref(new Map),c=a,D=e.ref((c==null?void 0:c.allowSelect)??!0),O=e.ref(((Vt=c==null?void 0:c.config)==null?void 0:Vt.showIndex)??!0),k=e.ref(),K=e.ref(!0),M=e.ref(!1),R=e.ref([]),j={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},E=e.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"}]}]),w=ve.useOriginalState(A.pinia);let x="$R";const{originalPath:b}=A.storeToRefs(w),_=b.value,$=e.computed(()=>{var h;const u=(h=ve.getAllLeafNodes(V.value)||[])==null?void 0:h.filter(B=>(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate");return u.length>0?u.every(B=>!!(B!=null&&B.sortable)):!1});e.computed(()=>{var h;return(h=V.value)==null?void 0:h.every(B=>B==null?void 0:B.filterable)}),e.computed(()=>{var h;return(h=V.value)==null?void 0:h.every(B=>B==null?void 0:B.operable)});const F=e.ref(!0),J=e.ref([]),ce=e.reactive({column:{},status:!1,text:"合计"}),be=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Me=l,V=e.ref([]),fe=e.ref([]),le=e.ref([]),pe=e.reactive({prop:"",order:null}),De=e.ref([]),Ve=e.ref(!1),ge=e.ref(!1),N=e.ref(null),{isUseBackdrop:de,initTrackFileType:U,getFileExtension:Se,setData:Oe,getFileInfo:Fe,getFilesInfo:la}=So.useThreeSystem(),Da=e.ref([]),re=e.ref(!1),ca=e.ref(),se=A.useMenuState(),{importLoading:da,activeMenuPath:Ee,contentLoading:te,linkMenuInfo:Ae}=A.storeToRefs(se),Ue=ve.useTableComp(A.pinia),sa=A.useModelComp(A.pinia),Ka=Hn(A.pinia),{extraContents:L,cacheUpdatingData:H,tableViewContents:Q,tableLoading:ye,pageMapState:me,lockingPage:va}=A.storeToRefs(sa),{selectTab:Qe}=A.storeToRefs(Ka),{compType:ue,hasEditable:ma}=Ks.useRole(),Te=e.ref([]),Ke=e.ref([]),Na=e.ref(new Map);e.ref(!1);const Ca=e.ref("");e.ref();const Ze=e.ref(!0),La=e.ref(0),ie=e.ref(!0),X=e.ref(""),Z=e.ref(!1),q=e.ref(null);e.ref([]);const Be=e.ref({label:"查看三维模型"}),Xe=e.ref(!1),ia=e.ref(),xa=e.ref([]),ka=e.ref([]),Aa=e.ref(!1),Sa=e.ref([]),Ie=e.ref([]),Ya=e.ref([]),Fa=e.ref([]),xl=e.ref([]),Jl=()=>{try{const u=localStorage.getItem(gs),h=u?JSON.parse(u):[];xl.value=Array.isArray(h)?h:[]}catch{xl.value=[]}},kl=()=>{try{localStorage.setItem(gs,JSON.stringify(xl.value||[]))}catch{}},Pl=u=>{var oe,ne,W;if(!u)return;const h=u.url||((oe=u==null?void 0:u.uploadResult)==null?void 0:oe.url)||"",B=u.name||((ne=u==null?void 0:u.uploadResult)==null?void 0:ne.name)||((W=u==null?void 0:u.uploadResult)==null?void 0:W.fileName)||"";if(!h&&!B)return;const z={name:B,url:h,ts:Date.now()},P=String(z.name||"").trim().toLowerCase(),C=(xl.value||[]).findIndex(we=>String((we==null?void 0:we.name)||"").trim().toLowerCase()===P);C>-1&&xl.value.splice(C,1),xl.value.unshift(z),xl.value.length>20&&(xl.value=xl.value.slice(0,20)),kl()};Jl();const Va=(u,h)=>`${M3}:${String(u??"")}:${String(h??"")}`,Ml=(u,h)=>{try{const B=sessionStorage.getItem(Va(u,h)),z=B?JSON.parse(B):[];return Array.isArray(z)?z:[]}catch{return[]}},$l=(u,h,B)=>{try{sessionStorage.setItem(Va(u,h),JSON.stringify(Array.isArray(B)?B:[]))}catch{}},Ma=(u,h,B)=>{if(!h)return;const z=Ml(u,h),P=[B,...z||[]].filter(Boolean).slice(0,1);return $l(u,h,P),P},el=(u,h,B)=>{if(!h||!B)return;const z=Va(u,h),P=Va(u,B);try{const C=sessionStorage.getItem(z);if(!C)return;const oe=(()=>{try{const we=JSON.parse(C);return Array.isArray(we)?we:[]}catch{return[]}})(),ne=Ml(u,B),W=[...oe,...ne||[]].filter(Boolean).sort((we,ze)=>Number((ze==null?void 0:ze.ts)||0)-Number((we==null?void 0:we.ts)||0)).slice(0,1);sessionStorage.setItem(P,JSON.stringify(W)),sessionStorage.removeItem(z)}catch{}},tl=e.ref(!1),ol=e.ref(!1),Ra=e.ref([]),ul=e.ref(null);e.ref(!1),e.ref([]),e.ref(""),e.ref("");const rl=e.ref(!1),ee=e.ref([]),ea=e.ref(1),Je=e.ref(new Map),he=e.ref(new Map),ya=e.ref(0),pa=e.ref(!1),qe=e.ref([]),na=e.ref([]),fa=u=>{var h;try{const B=(h=ve.getAllLeafNodes(V.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(B==null?void 0:B.find(z=>(z==null?void 0:z.prop)===u||(z==null?void 0:z.label)===u))||null}catch{return null}},dl=u=>{const h=fa(u),B=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return ll.getComponent(B)||ll.getComponent("Input")},He=e.ref([]),ta=e.ref(null),ra=e.ref([]),Za=e.ref(null),Le=e.ref(""),Ne=e.ref(!1),_l=e.ref([]),Ol=e.ref(""),ql=e.ref(!1),Wl=e.ref([]),Ql=e.ref([]),pr=e.ref([]),Ll=e.ref(null),fr=e.ref([]),Vr=e.ref("");e.computed(()=>{var u;try{const h=(u=ve.getAllLeafNodes(V.value)||[])==null?void 0:u.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("编号")||""}catch{return""}});const jl=e.computed(()=>{var u;try{const h=(u=ve.getAllLeafNodes(V.value)||[])==null?void 0:u.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("名称")||""}catch{return""}}),ar=e.computed(()=>{var u;try{const h=(u=ve.getAllLeafNodes(V.value)||[])==null?void 0:u.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("制造厂")||""}catch{return""}}),Fr=()=>{ql.value=!1,Wl.value=[],Ql.value=[],pr.value=[],Ll.value=null,fr.value=[],Vr.value=""},Tr=u=>u==null?!1:typeof u=="string"?u.trim()!=="":Array.isArray(u)?u.length>0:!0,Pr=(u,h)=>{const B=(u==null?void 0:u.ocrRow)||{};for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Tr(B[P])&&(h[P]=B[P]);const z=Ke.value.find(P=>P.id===h.id);if(z)for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Tr(B[P])&&(z[P]=B[P]);Na.value&&Na.value.set(h.id,h),Ma(c==null?void 0:c.index,h.id,u==null?void 0:u.versionItem),Ql.value=[...Ql.value||[],JSON.parse(JSON.stringify(h))]},Mr=async(u,h=null)=>{var B,z,P,C,oe,ne,W;try{const we=(B=ve.getAllLeafNodes(V.value)||[])==null?void 0:B.filter(wa=>(wa==null?void 0:wa.type)!=="operate"&&(wa==null?void 0:wa.label)!=="操作"&&(wa==null?void 0:wa.prop)!=="operate"),ze=new Map;we==null||we.forEach(wa=>{wa!=null&&wa.label&&(wa!=null&&wa.prop)&&ze.set(wa.label,wa.prop)});const Pe=ze.get("系统编号")||ze.get("编号");if(!Pe){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Re=h||Ll.value;if((Array.isArray(Re==null?void 0:Re.result)?Re.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let wa=0;wa<u.length;wa++){const Ia=u[wa],za=Ia[Pe];if(!za){console.warn(`第 ${wa+1} 条匹配行缺少系统编号,跳过`);continue}const Ye=`设备管理/试验设备/${za}`,Ja=await A.getPageDataApi({platId:parseInt((z=sl.value)==null?void 0:z.plat_id),pageName:Ye});if(!((P=Ja==null?void 0:Ja.data)!=null&&P.result)||!Array.isArray(Ja.data.result)){console.warn(`未找到详情页数据: ${Ye}`);continue}const ba=Ja.data.result.find(oa=>(oa==null?void 0:oa.property_name)==="校检记录");if(!ba){console.warn(`详情页 ${Ye} 中未找到校检记录表`);continue}const Xa=(C=ba.contents)==null?void 0:C.find(oa=>(oa==null?void 0:oa.key)&&oa.key.startsWith("content_"));if(!Xa||!Xa.key){console.warn("校检记录表中未找到 content item");continue}const ke=Xa.key,Oa=Array.isArray(Xa.value)?Xa.value:[];if(Oa.length>=5){const _e=[...Oa].sort((ua,Ta)=>{const al=Number((ua==null?void 0:ua.create_time)||0),Ha=Number((Ta==null?void 0:Ta.create_time)||0);return al-Ha})[0];_e!=null&&_e.id&&await A.pageBatchDeleteApi({platId:parseInt((oe=sl.value)==null?void 0:oe.plat_id),changeContents:[{tableName:ke,tableContents:[{id:_e.id}]}]})}const ga=(ne=we==null?void 0:we.find(oa=>(oa==null?void 0:oa.label)==="证书附件"))==null?void 0:ne.prop,Ea=String(Date.now()),_a={id:Ea},T=Oa[0]||{},Y=new Date().toISOString().split("T")[0];if(Object.keys(T||{}).forEach(oa=>{if(oa!=="id"){if(oa==="证书附件"){_a[oa]="";return}if(oa==="校检日期"||oa==="检校日期"){_a[oa]=Ia[oa]||Ia.校检日期||Ia.检校日期||Y;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(oa)){_a[oa]=Ia[oa]??"";return}_a[oa]=Ia[oa]??""}}),ga&&Ia[ga]){const oa=Ia[ga];if(Array.isArray(oa)&&oa.length>0)_a.证书附件=JSON.stringify(oa.map(_e=>({url:(_e==null?void 0:_e.url)||"",name:(_e==null?void 0:_e.name)||(_e==null?void 0:_e.fileName)||"",fileName:(_e==null?void 0:_e.fileName)||(_e==null?void 0:_e.name)||""})).filter(_e=>_e.url||_e.name));else if(typeof oa=="string")try{const _e=JSON.parse(oa);_a.证书附件=oa}catch{_a.证书附件=JSON.stringify([{url:oa,name:oa,fileName:oa}])}}console.log(ke,"tableName","inspectionRecordRow",_a),await A.pageBatchAddApi({platId:parseInt((W=sl.value)==null?void 0:W.plat_id),changeContents:[{tableName:ke,tableContents:[_a]}]});const $e=ba==null?void 0:ba.object_id;if($e&&Ea){const oa=ga&&Ia[ga]?Ia[ga]:null;let _e=[],ua="",Ta=!1;if(Array.isArray(oa)&&oa.length>0){_e=oa.map(pl=>({name:(pl==null?void 0:pl.name)||(pl==null?void 0:pl.fileName)||"",url:(pl==null?void 0:pl.url)||""})).filter(pl=>pl.url||pl.name);const Ha=oa[0];ua=(Ha==null?void 0:Ha.url)||"";const cl=(Ha==null?void 0:Ha.name)||(Ha==null?void 0:Ha.fileName)||"";Ta=String(cl).toLowerCase().endsWith(".pdf")||String(ua).toLowerCase().endsWith(".pdf")}else if(typeof oa=="string")try{const Ha=JSON.parse(oa);Array.isArray(Ha)?(_e=Ha.map(cl=>({name:(cl==null?void 0:cl.name)||(cl==null?void 0:cl.fileName)||"",url:(cl==null?void 0:cl.url)||""})).filter(cl=>cl.url||cl.name),_e.length>0&&(ua=_e[0].url||"",Ta=String(_e[0].name).toLowerCase().endsWith(".pdf")||String(ua).toLowerCase().endsWith(".pdf"))):(ua=oa,Ta=String(oa).toLowerCase().endsWith(".pdf"))}catch{ua=oa,Ta=String(oa).toLowerCase().endsWith(".pdf")}const al={ts:Date.now(),versionId:String(Date.now())+"_"+String(wa),label:new Date().toLocaleString(),certType:Ia.证书类型||"",certNo:Ia.证书编号||"",fileType:Ta?"pdf":"image",sourceUrl:Ta?ua:"",images:_e};Ma($e,Ea,al)}}}catch(we){console.error("向校检记录表插入OCR识别结果失败:",we),ja.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Sr=u=>{const h=Array.isArray(u)?u:Wl.value||[];if(h.length===0){Fr();return}if(h.find(C=>(C==null?void 0:C.__decision)==="replace"&&!(C!=null&&C.selectedTargetId))){ja.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(C=>{var ne;const oe=C==null?void 0:C.__decision;if(!(!oe||oe==="skip")){if(oe==="add"){Ma(c==null?void 0:c.index,(ne=C==null?void 0:C.ocrRow)==null?void 0:ne.id,C==null?void 0:C.versionItem),pr.value=[...pr.value||[],C.ocrRow];return}if(oe==="replace"){const W=C==null?void 0:C.selectedTargetId,we=(Te.value||[]).find(ze=>String(ze==null?void 0:ze.id)===String(W));if(!we)return;Pr(C,we)}}}),(Ql.value||[]).length>0&&(Te.value=[...Te.value||[]]),(pr.value||[]).length>0&&(Te.value=[...Te.value||[],...pr.value||[]],Ke.value=[...Ke.value||[],...pr.value||[]],(pr.value||[]).forEach(C=>{var oe,ne;return(ne=(oe=Na.value)==null?void 0:oe.set)==null?void 0:ne.call(oe,C.id,C)})),ln.value=Te.value;const z=Ql.value||[],P=pr.value||[];if(z.length>0&&(Me("change",{buttonName:"编辑",singleContent:z,content:Te.value,relatedContents:c==null?void 0:c.related,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,columns:V.value,name:c==null?void 0:c.compName}),Mr(z)),P.length>0){const C=Ll.value;Me("change",{buttonName:"OCR批量新增",content:Te.value,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,column:V.value,ocrRows:P,relatedContents:c==null?void 0:c.related,uploadedFiles:(Array.isArray(C==null?void 0:C.result)?C.result:[]).map(oe=>(Array.isArray(oe==null?void 0:oe.图片信息)?oe.图片信息:[]).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:C,matchedCount:(z||[]).length,newCount:(P||[]).length})}ja.ElMessage.success("已提交候选处理结果"),Fr()},Er=pc(),yn=e.computed(()=>Er.getConfig()),Dr=e.ref(),ur=e.ref(),gn=tc(A.pinia),ln=e.ref(),rn=e.ref(0),Sn=A.useUnit(A.pinia),{selectIndex:Tn,selectMenu:pn,selectTitle:lr}=A.storeToRefs(Sn),{selectString:Il}=A.storeToRefs(gn),Ar=A.useLoginState(A.pinia),{loginUserInfo:sl}=A.storeToRefs(Ar),cr=e.ref(720),Vl=e.ref(!1),_r=e.ref(!1),Gl=e.ref([]),hr=e.ref(),Or=e.ref(!0),bn=e.ref(!0);e.ref([]);const Nn=e.inject("contentRef");e.provide("contentRef",Nn),e.provide("getSuggestListForCell",xu),e.provide("getSuggestLoadingForCell",(u,h)=>{const B=`${u==null?void 0:u.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return g.value.get(B)||!1}),e.watch(()=>{var u;return(u=Te.value)==null?void 0:u.length},u=>{be.total=u}),e.watch(()=>Q.value,async()=>{var h,B,z,P,C,oe,ne,W,we,ze,Pe,Re,Ge,wa,Ia,za,Ye;if(((h=Q.value)==null?void 0:h.length)===0||!((B=c==null?void 0:c.itemData)!=null&&B.find(Ja=>(Ja==null?void 0:Ja.key)==="columnPath"))||!((z=c==null?void 0:c.itemData)!=null&&z.find(Ja=>(Ja==null?void 0:Ja.key)==="pageColumn")))return;let u=(we=(W=(ne=(oe=(C=(P=c==null?void 0:c.itemData)==null?void 0:P.find(Ja=>(Ja==null?void 0:Ja.key)==="pageColumn"))==null?void 0:C.contents)==null?void 0:oe.split("["))==null?void 0:ne[1])==null?void 0:W.split("]"))==null?void 0:we[0];((Ge=(Re=(Pe=(ze=c==null?void 0:c.itemData)==null?void 0:ze.find(Ja=>(Ja==null?void 0:Ja.key)==="pageColumn"))==null?void 0:Pe.contents)==null?void 0:Re.split("["))==null?void 0:Ge[0])+((Ia=(wa=Q.value)==null?void 0:wa.find(Ja=>(Ja==null?void 0:Ja.key)===u))==null?void 0:Ia.value),(Ye=(za=c==null?void 0:c.itemData)==null?void 0:za.find(Ja=>(Ja==null?void 0:Ja.key)==="pageGroup"))==null||Ye.contents,$t(compData,c.allMapContents)},{deep:!0});const kn=u=>{var B,z,P,C,oe;const h=(z=(B=V.value)==null?void 0:B.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=(P=V.value)==null?void 0:P.map(W=>W==null?void 0:W.prop);return(C=ne==null?void 0:ne.map(W=>u==null?void 0:u[W]))==null?void 0:C.join("|")}return(oe=h==null?void 0:h.map(ne=>u==null?void 0:u[ne]))==null?void 0:oe.join("|")},Un=u=>{var ne,W,we,ze,Pe;const h=(W=(ne=V.value)==null?void 0:ne.filter(Re=>Re==null?void 0:Re.required))==null?void 0:W.map(Re=>Re==null?void 0:Re.prop),B=[];if(u==null||u.forEach(Re=>{h==null||h.forEach(Ge=>{const wa=Re[Ge];(wa==null||wa==="")&&(B.includes(Ge)||B.push(Ge))})}),B.length>0)return ja.ElMessage.warning(`请填写必填项:${B.join("、")}`);const z=new Map,P=new Map;(we=Te.value)==null||we.forEach(Re=>{const Ge=kn(Re);z.set(Ge,Re)}),u==null||u.forEach(Re=>{const Ge=kn(Re);P.set(Ge,Re)});const C=u==null?void 0:u.filter(Re=>z.has(kn(Re))),oe=(ze=Te.value)==null?void 0:ze.filter(Re=>P.has(kn(Re)));return(C==null?void 0:C.length)>0&&(m.columns=(Pe=V.value)==null?void 0:Pe.filter(Re=>(Re==null?void 0:Re.label)!=="操作"),m.existRows=oe,m.tableData=C,m.show=!0),m.newRows=u==null?void 0:u.filter(Re=>{const Ge=kn(Re);return!z.has(Ge)}),m.newRows},Ln=e.ref(""),xn=e.ref(null),An=async()=>{var u,h,B,z,P,C;try{const oe=await A.quoteApi({related:[{menus:Ee.value,groups:c==null?void 0:c.compName}],platId:parseInt((u=sl.value)==null?void 0:u.plat_id)});if(((h=oe==null?void 0:oe.data)==null?void 0:h.code)===200){xn.value=(B=oe==null?void 0:oe.data)==null?void 0:B.result;const ne=(z=V.value)==null?void 0:z.map(ze=>(ze==null?void 0:ze.prop)||(ze==null?void 0:ze.label)),W=Rn(ne,(P=oe==null?void 0:oe.data)==null?void 0:P.result),we=W==null?void 0:W.flatMap(ze=>ze==null?void 0:ze.quote);(we==null?void 0:we.length)>0&&(Ln.value=(C=we==null?void 0:we.map(ze=>ze==null?void 0:ze.menus))==null?void 0:C.join("、"))}}catch(oe){throw new Error(oe)}};function Rn(u,h){var B;return(B=h.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some(P=>P.words&&Array.isArray(P.words)?P.words.some(C=>u.includes(C)):!1):!1))==null?void 0:B.map(z=>{const P={...z};return P.struct&&Array.isArray(P.struct)&&(P.struct=P.struct.filter(C=>C.words&&Array.isArray(C.words)?C.words.some(oe=>u.includes(oe)):!1)),P})}const Qr=async(u,h)=>{var B,z;try{xn.value||await An();const P=h==null?void 0:h.map(oe=>{const ne=Object.keys(oe),W={};return ne.forEach((we,ze)=>{W[u[ze]]=oe[we]}),W}),C=Un(P);if(!C||(C==null?void 0:C.length)===0)return;m.show||await I(C)}catch(P){throw ja.ElMessage.error("数据导入处理失败"),await A.pageBatchAddApi({platId:parseInt((B=sl==null?void 0:sl.value)==null?void 0:B.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(P),is_delete:!1,request_table:(z=c==null?void 0:c.related)==null?void 0:z.find(C=>C==null?void 0:C.includes("content")),request_type:"error"}]}]}),new Error(P)}},zn=async u=>{var C,oe,ne,W,we,ze,Pe;let h=le.value;h!=null&&h.find(Re=>(u==null?void 0:u.key)===(Re==null?void 0:Re.key))&&(h=h==null?void 0:h.filter(Re=>(u==null?void 0:u.key)!==(Re==null?void 0:Re.key))),h.push({key:u==null?void 0:u.key,value:[(oe=u==null?void 0:u.value)==null?void 0:oe[((C=u==null?void 0:u.value)==null?void 0:C.length)-1]]});let B=Fa.value;B=B==null?void 0:B.map(Re=>{var Ge,wa;return(Re==null?void 0:Re.type)==="Select"&&(u==null?void 0:u.key)===(Re==null?void 0:Re.prop)&&Array.isArray(Re.value)&&(Ge=Re.value)!=null&&Ge.every(Ia=>typeof Ia=="string")&&(Re.selectValue=(wa=h==null?void 0:h.find(Ia=>(Ia==null?void 0:Ia.key)===(Re==null?void 0:Re.prop)))==null?void 0:wa.value),Re});let z=(W=(ne=B==null?void 0:B.find(Re=>(Re==null?void 0:Re.prop)===(u==null?void 0:u.key)))==null?void 0:ne.optionUrl)==null?void 0:W.menuId,P=B==null?void 0:B.find(Re=>(Re==null?void 0:Re.prop)===(u==null?void 0:u.key));if(z){let Re=await yt(P==null?void 0:P.optionUrl,z),Ge,wa=J.value,Ia=(Pe=(ze=(we=Fa.value)==null?void 0:we.find(za=>{var Ye;return(Ye=P==null?void 0:P.optionUrl)==null?void 0:Ye.menuId}))==null?void 0:ze.selectValue)==null?void 0:Pe[0];if(Re==null||Re.forEach(za=>{var Ye,Ja,ba,Xa,ke,Oa,ga,Ea,_a,T;if(z){let Y=(Ja=(Ye=Fa.value)==null?void 0:Ye.find(oa=>{var _e,ua;return((_e=P==null?void 0:P.optionUrl)==null?void 0:_e.menuId)===((ua=oa==null?void 0:oa.optionUrl)==null?void 0:ua.menuId)}))==null?void 0:Ja.prop,$e=(Xa=(ba=B==null?void 0:B.find(oa=>(oa==null?void 0:oa.prop)===Y))==null?void 0:ba.selectValue)==null?void 0:Xa[0];Y!=null&&Y.includes("·")&&(Y=(ke=Y==null?void 0:Y.split("·"))==null?void 0:ke[0],$e=(_a=(Ea=(ga=u==null?void 0:u.value)==null?void 0:ga[((Oa=u==null?void 0:u.value)==null?void 0:Oa.length)-1])==null?void 0:Ea.split(" "))==null?void 0:_a[0]),wa!=null&&wa.find(oa=>(oa==null?void 0:oa.value)===Ia)?Ge=(T=wa==null?void 0:wa.find(oa=>(oa==null?void 0:oa.value)===Ia))==null?void 0:T.objectValue:za[Y]===$e&&(Ge=za)}}),Ge){let za=B;za=za==null?void 0:za.map(Ye=>{var Ja,ba,Xa,ke,Oa,ga;return z&&(Ge!=null&&Ge[Ye==null?void 0:Ye.prop])&&X.value==="新增"&&(Ye==null?void 0:Ye.prop)!==(P==null?void 0:P.prop)?Ye.value=(Ge==null?void 0:Ge[Ye==null?void 0:Ye.prop])||(Ge==null?void 0:Ge[(ke=(Xa=(ba=(Ja=Ye==null?void 0:Ye.optionUrl)==null?void 0:Ja.groupSelect)==null?void 0:ba[1])==null?void 0:Xa.replaceAll("[",""))==null?void 0:ke.replaceAll("]","")]):Ye.value=(ga=(Oa=Fa.value)==null?void 0:Oa.find(Ea=>(Ea==null?void 0:Ea.prop)===(Ye==null?void 0:Ye.prop)))==null?void 0:ga.value,Ye}),Fa.value=za}}le.value=h},qn=async(u,h)=>{var B,z,P,C,oe;if((B=u==null?void 0:u.toString())!=null&&B.includes(".txt")||(z=u==null?void 0:u.toString())!=null&&z.includes(".cpt")||(P=u==null?void 0:u.toString())!=null&&P.includes(".cyd")){const ne=await ja.axios.get(u,{responseType:"blob",headers:{"Content-Type":"application/json"}}),W=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});let we=URL.createObjectURL(W);ca.value=[{name:(oe=u==null?void 0:u.split("/"))==null?void 0:oe[((C=u==null?void 0:u.split("/"))==null?void 0:C.length)-1],blobUrl:we}],re.value=!0}else Array.isArray(h)&&(h==null?void 0:h.length)>0&&Me("routeUrl",{isEdit:!1,routerUrl:h})};e.onBeforeUnmount(()=>{bn.value=!1;let u=rn.value;rn.value=u+1});const Lr=e.reactive({prop:"",order:null}),Wn=e.computed(()=>{const u=(Te.value??[]).slice(),h=Lr.prop||pe.prop,B=Lr.order||pe.order;if(!h||!B)return u;const z=B==="ascending",P=oe=>{if(h)return oe&&Object.prototype.hasOwnProperty.call(oe,h)?oe[h]:h.includes(".")?h.split(".").reduce((ne,W)=>ne==null?ne:ne[W],oe):oe==null?void 0:oe[h]},C=oe=>{if(oe==null)return{ok:!1,value:NaN};if(typeof oe=="number")return{ok:Number.isFinite(oe),value:oe};const ne=String(oe).trim();if(ne==="")return{ok:!1,value:NaN};const W=ne.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(W))return{ok:!1,value:NaN};const we=Number(W);return{ok:Number.isFinite(we),value:we}};return u.sort((oe,ne)=>{const W=P(oe),we=P(ne);if(W==null&&we==null)return 0;if(W==null)return z?-1:1;if(we==null)return z?1:-1;const ze=C(W),Pe=C(we);if(ze.ok&&Pe.ok)return z?ze.value-Pe.value:Pe.value-ze.value;const Re=ke=>{if(ke==null)return{ok:!1,value:NaN};const Oa=String(ke).trim();if(Oa==="")return{ok:!1,value:NaN};const ga=Oa.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ga)return{ok:!1,value:NaN};const Ea=ga[1]?-1:1,_a=Number(ga[2]),T=Number(ga[3]),Y=Number(ga[4]);return[_a,T,Y].some($e=>Number.isNaN($e))?{ok:!1,value:NaN}:T>=60||Y>=60?{ok:!1,value:NaN}:{ok:!0,value:Ea*(_a*3600+T*60+Y)}},Ge=Re(W),wa=Re(we);if(Ge.ok&&wa.ok)return z?Ge.value-wa.value:wa.value-Ge.value;const Ia=new Date(W).getTime(),za=new Date(we).getTime(),Ye=!Number.isNaN(Ia),Ja=!Number.isNaN(za);if(Ye&&Ja)return z?Ia-za:za-Ia;const ba=String(W),Xa=String(we);return z?ba.localeCompare(Xa):Xa.localeCompare(ba)})}),fn=e.computed(()=>{var B;const u=(be.currentPage-1)*be.pageSize,h=u+be.pageSize;return Me("getSliceContLength",be),(B=Wn.value)==null?void 0:B.slice(u,h)}),Ti=u=>{be.currentPage=u,Me("getSliceContLength",be)},Lo=u=>{var z;be.pageSize=u;const h=((z=Te.value)==null?void 0:z.length)??0,B=u>0?Math.ceil(h/u):1;be.currentPage>B&&(be.currentPage=B||1,ja.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Me("getSliceContLength",be)},Ro=({prop:u,order:h})=>{Lr.prop=u,Lr.order=h,be.currentPage=1};function En(u){const h=[];function B(z,P=""){z.forEach(C=>{C.children&&C.children.length>0?B(C.children,C.prop):h.push(C.prop)})}return B(u),h}const $o=(u,h)=>{var ne,W,we,ze;let B=(W=(ne=V.value)==null?void 0:ne.map(Pe=>Pe==null?void 0:Pe.prop))==null?void 0:W.filter(Pe=>Pe!=="operate");((we=V.value)==null?void 0:we.some(Pe=>{var Re;return((Re=Pe==null?void 0:Pe.children)==null?void 0:Re.length)>0}))&&(B=En((ze=V.value)==null?void 0:ze.filter(Pe=>(Pe==null?void 0:Pe.prop)!=="operate")));let P;if(P=(u==null?void 0:u.length)===(B==null?void 0:B.length)?u:u.slice(0,B==null?void 0:B.length),!(P==null?void 0:P.every(Pe=>B==null?void 0:B.find(Re=>Pe===Re))))return ja.ElMessage.error("导入的数据表头不匹配");Qr(P,h)},Vo=(u,h)=>{var P;const B=u==null?void 0:u.filter(C=>C!=="序号"),z=h==null?void 0:h.map(C=>{const oe=Object.entries(C);return oe.shift(),Object.fromEntries(oe)});sa.setRefreshCurStructure(!1),((P=V.value)==null?void 0:P.length)===0||$o(B,z)},Fo=(u,h,B,z)=>{const P=[],C=[],oe=we=>Object.keys(we).length;for(const we in u)if(u[we]!==void 0){const ze=u[we],Pe=[];for(const[Re,Ge]of Object.entries(ze))Pe.push(Ge),C.length<oe(ze)&&C.push(Re);P.push(Pe)}P.unshift(C);const ne=ve.utils.aoa_to_sheet(P),W=ve.utils.book_new();ve.utils.book_append_sheet(W,ne,z),ve.writeFileSync(W,`${h}.xlsx`),Gl.value=[]},Ni=async(u,h,B,z=!1,P)=>{try{sa.setRefreshCurStructure(!1)}catch(C){ja.ElMessage.error(C)}},Ji=async(u,h)=>{await Ni()},jr=async(u,h)=>{await Ni("columnType",h,u,!1)},Po=async({newRow:u,targetIndex:h})=>{var P;if(!ma(c.config,{type:ue.TABLE}))return;const z=(be.currentPage-1)*be.pageSize+(h??0);u._isTemp=!0;try{(u.sort===void 0||u.sort===null||String(u.sort).trim()==="")&&(u.sort=Xn(z,Te.value||[]))}catch{}Te.value.splice(z,0,u),await e.nextTick(),v.value.has(u.id)||v.value.set(u.id,A.cloneDeep(u)),Te.value=(P=Te.value)==null?void 0:P.map(C=>({...C,tableEditType:(C==null?void 0:C.id)===u.id?"edit":(C==null?void 0:C.tableEditType)??"text"})),s.value.add(u.id),Vl.value=!0},jo=(u,h,B,z=[])=>(!Array.isArray(h)||h.length===0||h.forEach(P=>{const C=P==null?void 0:P.prop;if(!C)return;let oe=u==null?void 0:u[C];if(oe==null||String(oe).trim()==="")return;oe=String(oe);const ne=new Set([...(Array.isArray(B)?B:[]).filter(ze=>(ze==null?void 0:ze.id)!==(u==null?void 0:u.id)).map(ze=>ze==null?void 0:ze[C]).filter(ze=>ze!=null).map(ze=>String(ze)),...(Array.isArray(z)?z:[]).map(ze=>ze==null?void 0:ze[C]).filter(ze=>ze!=null).map(ze=>String(ze))]);if(!ne.has(oe))return;let W=1,we="";for(;we=`${oe}(${W})`,!!ne.has(we);)W++;u[C]=we}),u),Ai=async()=>{var P,C,oe,ne,W,we,ze,Pe;const u=Array.from(s.value||[]);if(u.length===0)return;const h=(C=ve.getColumnChild((P=A.cloneDeep(V.value))==null?void 0:P.filter(Re=>(Re==null?void 0:Re.label)!=="操作")))==null?void 0:C.filter(Re=>(Re==null?void 0:Re.required)===!0);if((h==null?void 0:h.length)>0)for(let Re=0;Re<u.length;Re++){const Ge=u[Re],wa=(oe=Te.value)==null?void 0:oe.find(Ia=>(Ia==null?void 0:Ia.id)===Ge);if(wa)for(let Ia=0;Ia<h.length;Ia++){const za=h[Ia],Ye=za==null?void 0:za.prop,Ja=(za==null?void 0:za.label)??Ye,ba=wa==null?void 0:wa[Ye];if(ba===""||ba===null||ba===void 0||Array.isArray(ba)&&ba.length===0){ja.ElMessage.error(`${Ja}不能为空`);return}}}const B=[],z=[];if(u.forEach(Re=>{var Ja;const Ge=(Ja=Te.value)==null?void 0:Ja.find(ba=>(ba==null?void 0:ba.id)===Re);if(!Ge)return;if(Ge!=null&&Ge._isTemp){const Xa=(ve.getAllLeafNodes(V.value)||[]).filter(T=>(T==null?void 0:T.mainKey)===!0||(T==null?void 0:T.isMainKey)===!0),ke=Te.value.findIndex(T=>(T==null?void 0:T.id)===Re),Oa=ke>=0?ke+1:Te.value.length+1;jo(Ge,Xa,Te.value,B);const ga={id:Oa.toString()};(Ge==null?void 0:Ge.sort)!==void 0&&(Ge==null?void 0:Ge.sort)!==null&&String(Ge.sort).trim()!==""?ga.sort=String(Ge.sort):ga.sort=Xn(ke>=0?ke:Te.value.length-1,Te.value||[]),(ve.getAllLeafNodes(V.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 Y=T==null?void 0:T.prop;if(Y){const $e=Ge[Y];$e!==void 0?ga[Y]=$e??"":ga[Y]=""}}),B.push(ga);return}const Ia=(ve.getAllLeafNodes(V.value)||[]).filter(ba=>(ba==null?void 0:ba.type)!=="operate"&&(ba==null?void 0:ba.label)!=="操作"&&(ba==null?void 0:ba.prop)!=="operate"),za=new Set(Ia.map(ba=>ba==null?void 0:ba.prop).filter(Boolean)),Ye={};for(const ba of za)Object.prototype.hasOwnProperty.call(Ge,ba)&&(Ye[ba]=Ge[ba]);z.push({id:Ge.id,value:{tableData:Ye}})}),sa.setTableLoading(c==null?void 0:c.index),z.length>0){const Re=z.map(wa=>{const Ia={id:wa.id,...wa.value.tableData};return delete Ia._isOCRRow,delete Ia._ocrTableId,delete Ia._isTemp,delete Ia.tableEditType,delete Ia.index,Ia}),Ge=[{tableName:((ne=c==null?void 0:c.related)==null?void 0:ne.find(wa=>wa==null?void 0:wa.includes("content")))??"content_"+(c==null?void 0:c.index),tableContents:Re}];try{await A.pageBatchUpdateApi({platId:parseInt((W=sl.value)==null?void 0:W.plat_id),changeContents:Ge})}catch(wa){ja.ElMessage.error(((ze=(we=wa==null?void 0:wa.response)==null?void 0:we.data)==null?void 0:ze.message)||(wa==null?void 0:wa.message)||"保存失败"),sa.setTableLoading(!1);return}}if(B.length>0){const Re={fixContent:B,buttonName:"新增",relatedContents:c==null?void 0:c.related,name:c==null?void 0:c.compName,columns:V.value};Me("change",Re)}ja.ElMessage.success("保存成功"),s.value.clear(),v.value.clear(),Te.value=(Pe=Te.value)==null?void 0:Pe.map(Re=>({...Re,tableEditType:"text"})),Vl.value=!1,sa.setRefreshCurStructure(!0)},Ho=()=>{var h;const u=Array.from(s.value||[]);if(u.length===0){Vl.value=!1;return}u.forEach(B=>{var C,oe;const z=v.value.get(B),P=(C=Te.value)==null?void 0:C.find(ne=>(ne==null?void 0:ne.id)===B);if(P!=null&&P._isTemp){Te.value=Te.value.filter(ne=>(ne==null?void 0:ne.id)!==P.id);return}if(z){const ne=(oe=Te.value)==null?void 0:oe.findIndex(W=>(W==null?void 0:W.id)===B);ne!==-1&&(Te.value[ne]={...Te.value[ne],...z})}}),s.value.clear(),v.value.clear(),Te.value=(h=Te.value)==null?void 0:h.map(B=>({...B,tableEditType:"text"})),Vl.value=!1},zi=e.ref(!1),Xi=async u=>{var P,C,oe,ne;if(!Vl.value||u!=null&&u.isComposing||(u==null?void 0:u.key)!=="Enter")return;const h=u==null?void 0:u.target;if(((C=(P=h==null?void 0:h.tagName)==null?void 0:P.toLowerCase)==null?void 0:C.call(P))==="textarea")return;const z=document.getElementById("excel-table");z&&!z.contains(h)||((oe=h==null?void 0:h.blur)==null||oe.call(h),(ne=u.preventDefault)==null||ne.call(u),await e.nextTick(),await Zi())},Zi=async()=>{if(H.value){Vl.value=!1;return}if(!zi.value){zi.value=!0;try{Array.from(s.value||[]).length>0?await Ai():Vl.value=!1}finally{Promise.resolve().then(()=>{zi.value=!1})}}},Uo=u=>{Gl.value=u},Qi=(u,h)=>{hr.value===h?Or.value=!1:Or.value=!0,hr.value=h==null?void 0:h.changeProp},si=u=>{if(!u)return;const{item:h,value:B}=u,z=Fa.value.find(P=>P.prop==h.prop);z&&z.contents.push({label:B,value:B})},nn=e.computed(()=>{var B,z,P;const u=(B=V.value)==null?void 0:B.some(C=>C==null?void 0:C.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",u?"inline-block":"none"),(P=(z=V.value)==null?void 0:z.filter(C=>(C==null?void 0:C.label)!=="操作"))==null?void 0:P.map(C=>({...C,filterable:!!(C!=null&&C.filterable),showSummary:!!(C!=null&&C.showSummary),operable:!!(C!=null&&C.operable),fixed:C==null?void 0:C.fixed}))}),Kn=async(u,h,B)=>{const z=A.cloneDeep(V.value);await e.nextTick();const P=z==null?void 0:z.map(oe=>(B==null?void 0:B.label)===(oe==null?void 0:oe.label)?{...oe,[h]:u}:oe),C=Mi(P);await fs(c.index,C),V.value=P,fe.value=C},Mi=u=>{var P;const h=u||[];return((P=ve.getAllLeafNodes(h)||[])==null?void 0:P.filter(C=>(C==null?void 0:C.prop)&&(C==null?void 0:C.type)!=="operate"&&(C==null?void 0:C.label)!=="操作"&&(C==null?void 0:C.prop)!=="operate")).map(C=>{const{prop:oe}=C;return a0(oe,C)})},eo=async u=>{let h=await r0(c.index);h||(h=Mi(u)),fe.value=h},ao=async(u,h)=>{const B=A.cloneDeep(V.value),z=oe=>Array.isArray(oe)?oe.map(ne=>{const W=Array.isArray(ne==null?void 0:ne.children)&&ne.children.length>0,we={...ne};return(we==null?void 0:we.prop)==="operate"||(we==null?void 0:we.label)==="操作"||(we==null?void 0:we.type)==="operate"?(we.sortable=!1,we.filterable=!1,we.operable=!1):we.sortable=W?!1:!!u,W&&(we.children=z(we.children)),we}):oe,P=z(B),C=Mi(P);await fs(c.index,C),V.value=P,fe.value=C,await e.nextTick(),rn.value=rn.value+1},lo=()=>{Z.value=!1},Gn=u=>{Me("clickTrigger",u)},ro=async u=>{var C,oe,ne,W,we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja,ba;const h=u==null?void 0:u.row,B=u==null?void 0:u.rowData,z=u==null?void 0:u.suffix;if((C=h==null?void 0:h.toString())!=null&&C.includes(".urdf")||u!=null&&u.isUrdf||z!=null&&z.includes(".urdf")){if(h.includes(",")){ja.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(de(h)){const ke={files:[Fe(h)],data:{}};Oe(ke);return}Sa.value=[{url:h,extension:Se(h)}],ge.value=!0,N.value={data:A.cloneDeep(B)},Ve.value=!0;return}let P=[];if((oe=h==null?void 0:h.toString())!=null&&oe.includes(".stl")||(ne=h==null?void 0:h.toString())!=null&&ne.includes(".STL")||(W=h==null?void 0:h.toString())!=null&&W.includes(".obj")||(we=h==null?void 0:h.toString())!=null&&we.includes(".mtl")){const Xa=(ze=h==null?void 0:h.toString())==null?void 0:ze.split(","),ke=la(Xa),Oa=ke==null?void 0:ke[0];if(de(Oa==null?void 0:Oa.extension)){Oe({files:ke,data:{}});return}Sa.value=ke,ge.value=!1,Ve.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")||(Ge=h==null?void 0:h.toString())!=null&&Ge.includes(".obj")||(wa=h==null?void 0:h.toString())!=null&&wa.includes(".mtl")||z!=null&&z.includes(".stl")||z!=null&&z.includes(".STL")||z!=null&&z.includes(".obj")||z!=null&&z.includes(".mtl")){let Xa,ke=[],Oa={};if(Array.isArray(h)?Xa=h:Xa=h==null?void 0:h.split(","),Xa==null||Xa.forEach(ga=>{ga.includes(".mtl")?ke.push(ga):Oa.blob=Oa.blob?Oa.blob+","+ga:ga}),(ke==null?void 0:ke.length)>0&&(Oa.mtlBlobs=ke),z&&(Oa.suffix=z),(za=(Ia=Object.values(Oa))==null?void 0:Ia[0])!=null&&za.includes("http:"))P.push(Oa);else{const ga=new Blob([Oa.blob],{type:"application/octet-stream;charset=UTF-8"});let Ea=URL.createObjectURL(ga),_a="";(Ye=h==null?void 0:h.split("/"))==null||Ye.forEach((T,Y)=>{var $e;Y===(($e=h==null?void 0:h.split("/"))==null?void 0:$e.length)-1&&(_a=T)}),(Ja=Oa.blob)!=null&&Ja.includes(".stl")&&(_a=(_a==null?void 0:_a.replaceAll(">",""))+".urdf"),ca.value=[{name:_a,blobUrl:Ea}],re.value=!0}}else{const Xa=await ja.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ke=new Blob([Xa.data],{type:"application/octet-stream;charset=UTF-8"});let Oa=URL.createObjectURL(ke),ga="";if((ba=h==null?void 0:h.split("/"))==null||ba.forEach((Ea,_a)=>{var T;_a===((T=h==null?void 0:h.split("/"))==null?void 0:T.length)-1&&(ga=Ea)}),de(ga)){const Ea=U(ga),_a=Fe(h);Oe({files:[_a],data:{trackFileType:Ea}});return}ca.value=[{name:ga,blobUrl:Oa}],re.value=!0}(P==null?void 0:P.length)>0&&n.setBlobUrls(P)},Yn=u=>{var z,P,C,oe;if(u!=null&&u.downloadUrl)return u==null?void 0:u.name;const h=(oe=(z=u==null?void 0:u.url)==null?void 0:z.split("."))==null?void 0:oe[((C=(P=u==null?void 0:u.url)==null?void 0:P.split("."))==null?void 0:C.length)-1];return(u==null?void 0:u.name)+"."+h},no=u=>{if(!u)return"未知文件";try{const z=Yn(u);if(typeof z=="string"&&z.includes("."))return z}catch{}const h=(u==null?void 0:u.fileName)||(u==null?void 0:u.name)||"未知文件",B=(u==null?void 0:u.suffix)||"";return h.includes(".")?h:`${h}${B}`},io=u=>{if(u==null||typeof u=="number"||typeof u!="string")return u;const h=u.match(/^(\d+)\_(\d+)$/);if(!h)return u;const B=Number(h[1]),z=Number(h[2]);return!Number.isFinite(B)||!Number.isFinite(z)?u:String(B*1e3+z)},Jn=u=>{if(u==null)return null;const h=String(u).trim();if(!h)return null;const B=Number(h);return Number.isFinite(B)?B:null},qo=u=>{if(u==null)return null;const h=String(u).trim();if(!h)return null;if(/^\d+$/.test(h)){const P=Number(h);return Number.isFinite(P)?h.length<=10?P*1e3:P:null}const B=h.includes("T")?h:h.replace(" ","T"),z=Date.parse(B);return Number.isFinite(z)?z:null},ci=(u,h=[])=>{const B=Array.isArray(u)?u.slice():[];if(B.length<=1)return B;const z=new Map((h||[]).map((oe,ne)=>[String(oe),ne])),P=B.some(oe=>Jn(oe==null?void 0:oe.sort)!==null),C=B.map((oe,ne)=>({r:oe,idx:ne,id:String((oe==null?void 0:oe.id)??""),sortVal:Jn(oe==null?void 0:oe.sort),createTimeMs:qo(oe==null?void 0:oe.create_time),prevIdx:z.has(String(oe==null?void 0:oe.id))?z.get(String(oe==null?void 0:oe.id)):Number.POSITIVE_INFINITY}));return C.sort((oe,ne)=>{if(P){const ze=oe.sortVal,Pe=ne.sortVal;if(ze===null&&Pe!==null)return 1;if(ze!==null&&Pe===null)return-1;if(ze!==null&&Pe!==null&&ze!==Pe)return ze-Pe}const W=oe.createTimeMs,we=ne.createTimeMs;return W!==null&&we!==null&&W!==we?we-W:W!==null&&we===null?-1:W===null&&we!==null?1:oe.prevIdx!==ne.prevIdx?oe.prevIdx-ne.prevIdx:oe.idx-ne.idx}),C.map(oe=>oe.r)},Xn=(u,h=[])=>{const B=h==null?void 0:h[u-1],z=h==null?void 0:h[u],P=Jn(B==null?void 0:B.sort),C=Jn(z==null?void 0:z.sort);let oe=null;P!==null&&C!==null&&C>P?oe=(P+C)/2:P!==null?oe=P+1:C!==null?oe=Math.max(C-1,0):oe=(u??0)+1;const ne=Number(oe.toFixed(6));return String(Number.isFinite(ne)?ne:oe)},ui=async u=>{let h=null,B=null;if(u!=null&&u.id){const P=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const C=await A.platformDownloadFile(u);h=URL.createObjectURL(C.data),B=no(u)}finally{P.close()}}else if(u!=null&&u.downloadUrl){const P=await di(),C=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),oe=await ja.axios.post(u==null?void 0:u.url,null,{responseType:"blob",headers:{Authorization:P,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{C.close()}),ne=new Blob([oe.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ne),B=u==null?void 0:u.name}else{const P=await A.platformDownloadFile({url:u==null?void 0:u.url});!u.url.toUpperCase().includes(".OBJ")&&!u.url.toUpperCase().includes(".STL")&&!u.url.toUpperCase().includes(".MTL")&&!u.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL(P.data),B=Yn(u)):h=u==null?void 0:u.url}if(de(h)){const P={row:`${h}`,suffix:Se(B)};ro(P);return}const z={name:B,blobUrl:h};ca.value=[z],re.value=!0},Wo=async u=>{let h=null,B=null;if(u!=null&&u.id){const C=await A.platformDownloadFile(u);h=URL.createObjectURL(C.data),B=no(u)}else if(u!=null&&u.downloadUrl){const C=await di(),oe=await ja.axios.post(u==null?void 0:u.url,null,{responseType:"blob",headers:{Authorization:C,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ne=new Blob([oe.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ne),B=u==null?void 0:u.name}else{const C=await A.platformDownloadFile({url:u==null?void 0:u.url});h=URL.createObjectURL(C.data),B=Yn(u)}const z={name:B,blobUrl:h},P=document.createElement("a");P.href=z.blobUrl,P.download=z.name,P.style.display="none",document.body.appendChild(P),P.click(),setTimeout(()=>{document.body.removeChild(P)},100)},Ii=(u,h)=>{var z;if(Object.values(h).length===0)return;let B=u;return Object.values(h).find(P=>{var C,oe,ne;return((C=P==null?void 0:P.toString())==null?void 0:C.includes(".txt"))||((oe=P==null?void 0:P.toString())==null?void 0:oe.includes(".cpt"))||((ne=P==null?void 0:P.toString())==null?void 0:ne.includes(".obj"))})?B=[...u,Be.value]:(z=c==null?void 0:c.config)!=null&&z.allowMove&&(B=[...u,{label:"迁移"}]),B},Ko=()=>{M.value=!0},Go=e.ref([]),oo=async(u,h,B=!1)=>{var oe,ne,W,we;if(!u)return;if(B){Te.value=[...Na.value.values()].filter(ze=>Object.values(ze).some(Pe=>typeof Pe=="string"?Pe==null?void 0:Pe.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let z={};for(let ze in u)(u==null?void 0:u[ze])!==""&&(z[ze]=u==null?void 0:u[ze]);if(JSON.stringify(z)==="{}"){Te.value=Array.from(((oe=Na.value)==null?void 0:oe.values())??[]);return}let P=(ne=c==null?void 0:c.related)==null?void 0:ne.find(ze=>ze==null?void 0:ze.includes("content_")),C=await A.getFillFind({platId:parseInt((W=sl==null?void 0:sl.value)==null?void 0:W.plat_id),tableName:P,params:z});C=(we=C==null?void 0:C.data)==null?void 0:we.result,Te.value=C,sa.setTableLoading(!1)},Zn=e.computed(()=>{var h,B;return((B=(h=c==null?void 0:c.itemData)==null?void 0:h.find(z=>(z==null?void 0:z.key)==="isEdit"))==null?void 0:B.contents)??!0}),Cn=async u=>{var z,P,C,oe;if(!ma(c.config,{type:ue.TABLE})||!(((P=(z=c==null?void 0:c.itemData)==null?void 0:z.find(ne=>(ne==null?void 0:ne.key)==="isEdit"))==null?void 0:P.contents)??!0)||!u)return;((C=Array.from(s.value))==null?void 0:C.length)>0&&await Ai();const B=u==null?void 0:u.id;B!=null&&(s.value.clear(),v.value.clear(),v.value.has(B)||v.value.set(B,A.cloneDeep(u)),Te.value=(oe=Te.value)==null?void 0:oe.map(ne=>({...ne,tableEditType:(ne==null?void 0:ne.id)===B?"edit":"text"})),s.value.add(B),Vl.value=!0)},Oi=async(u,h,B,z)=>{z!=null&&z.isExistChild&&Me("clickMainKey",u,B,V.value)},Li=()=>{re.value=!1},Yo=u=>{Me("rowClick",u)};e.watch(()=>c.changedContent,()=>{var B,z;if(!c.changedContent)return;let u=(B=Te.value)==null?void 0:B.map(P=>{var C;return P.id===((C=c.changedContent)==null?void 0:C.id)&&(P={...c.changedContent,id:c.changedContent.newId?c.changedContent.newId:c.changedContent.id},delete P.newId),P});const h=(z=c.itemData)==null?void 0:z.map(P=>((P==null?void 0:P.key)==="tableContents"&&(P.contents=u),P));Te.value=u,Me("contentChange",{contents:h,index:c.index}),Me("change",{content:u,index:c==null?void 0:c.index,buttonName:"",id:c==null?void 0:c.index})},{deep:!0,immediate:!0});const Jo=()=>{},Xo=async()=>{const u=Ee.value,h=sessionStorage.getItem("systemKey"),B=await ve.getItemData(u,h,""),z=(B==null?void 0:B.find(ne=>(ne==null?void 0:ne.name)==="方法明细"))||(B==null?void 0:B[0]),P=(z==null?void 0:z.compData)||[],C=P==null?void 0:P.find(ne=>{const W=ne==null?void 0:ne.key;return W==="formContent"||W==="tableContents"});return C==null?void 0:C.contents},di=async()=>{const h=ja.Local.get("access-token");return h?`Bearer ${h}`:""},Zo=async(u,{token:h,inputData:B}={})=>await ja.axios.post(u,B,{headers:{Authorization:h}}).catch(P=>(se.setImportLoading(!1),Promise.reject(P))),Qo=u=>{var z;let h={};const B=[];return h.form={},(z=A.cloneDeep(u))==null||z.forEach((P,C)=>{var oe,ne,W,we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja,ba;if((P==null?void 0:P.comp)==="Table"){(ne=(oe=P==null?void 0:P.compData)==null?void 0:oe.find(ga=>(ga==null?void 0:ga.key)==="header"))==null||ne.contents;let Xa=(ze=(we=(W=P==null?void 0:P.compData)==null?void 0:W.find(ga=>(ga==null?void 0:ga.key)==="tableContents"))==null?void 0:we.contents)==null?void 0:ze.map(ga=>ga.slice(1));(Ia=(wa=(Ge=(Re=(Pe=P==null?void 0:P.compData)==null?void 0:Pe.find(ga=>(ga==null?void 0:ga.key)==="header"))==null?void 0:Re.contents)==null?void 0:Ge[0])==null?void 0:wa[0])==null||Ia.label;let ke=(Ye=(za=P==null?void 0:P.compData)==null?void 0:za.find(ga=>(ga==null?void 0:ga.key)==="header"))==null?void 0:Ye.contents,Oa=[];Xa==null||Xa.forEach(ga=>{let Ea=[];ga==null||ga.forEach((_a,T)=>{var $e;let Y={};(($e=ke[T])==null?void 0:$e.label)!=="操作"&&(Y[ke[T].label]=_a,Ea.push(Y))}),Oa.push(Ea)}),h[P.name]=Oa}else{const Xa=(ba=(Ja=P.compData)==null?void 0:Ja.find(ke=>(ke==null?void 0:ke.key)==="formContent"))==null?void 0:ba.contents;Xa==null||Xa.forEach(ke=>{var Oa,ga;if(ke.prop!==""){let Ea=ke==null?void 0:ke.value;Array.isArray(Ea)?Ea=((Oa=Ea==null?void 0:Ea[0])==null?void 0:Oa.oldUrl)||"http://222.92.178.198:62001/"+((ga=Ea==null?void 0:Ea[0])==null?void 0:ga.url):Ea=Ea.toString(),ke={key:(ke==null?void 0:ke.prop)??(ke==null?void 0:ke.label),value:Ea},B.push(ke)}})}}),h.form=ve.getFormContents(B),h},et=u=>{const h=[],B=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(B):h.push(z)};return B(u),h},at=async(u,h,B)=>{var ke,Oa,ga,Ea,_a,T,Y,$e,oa,_e,ua,Ta,al,Ha,cl,pl,Fl;se.setImportLoading(!0),sa.setFreshContent(!1);let z=await Xo().catch(Pa=>(se.setImportLoading(!1),Promise.reject(Pa)));z=z==null?void 0:z.filter(Pa=>{var ml;return((ml=Pa==null?void 0:Pa.find($a=>$a==null?void 0:$a.id))==null?void 0:ml.id)===(h==null?void 0:h.id)});let P=ve.getEqualChild([(ke=V.value)==null?void 0:ke.filter(Pa=>(Pa==null?void 0:Pa.label)!=="操作")]);const C=(ga=(Oa=ve.tableToForm(z,P))==null?void 0:Oa[0])==null?void 0:ga.find(Pa=>{const ml=Pa==null?void 0:Pa.key;return ml==="Interface"||ml==="方法体"}),oe=C==null?void 0:C.value;if(!oe){console.log("未搜索到isMain, 缺少算法执行接口"),se.setImportLoading(!1);return}const ne=V.value?ve.getEqualChild([V.value]):[],W=ne.find(Pa=>{const ml=Pa==null?void 0:Pa.prop;return ml==="Input1"||ml==="输入数据.输入1"||ml==="样本输入数据"}),we=W==null?void 0:W.prop;let ze=h==null?void 0:h[we];const Pe=await di().catch(Pa=>(se.setImportLoading(!1),Promise.reject(Pa)));let Re=!0,Ge="";(Ea=V.value)==null||Ea.forEach(Pa=>{(Pa==null?void 0:Pa.prop)===we&&(Re=!!(Pa!=null&&Pa.childPath),Ge=Pa==null?void 0:Pa.childPath)});let wa="";if(Re){let Pa=(T=(_a=V.value)==null?void 0:_a.find(il=>(il==null?void 0:il.isMainKey)===!0))==null?void 0:T.prop;wa=h==null?void 0:h[Pa];let ml=Ge==null?void 0:Ge.split(_),$a=[];ml==null||ml.forEach((il,wl)=>{(ml==null?void 0:ml.length)-1===wl&&$a.push(wa),$a.push(il)}),$a=$a==null?void 0:$a[0];let nl=await ve.getItemData($a,sessionStorage.getItem("systemKey"),""),qa=nl==null?void 0:nl.filter(il=>(il==null?void 0:il.name)===we);qa=qa==null?void 0:qa.map(il=>{var wl;return il.compData=(wl=il==null?void 0:il.compData)==null?void 0:wl.map(Dl=>{var xr;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(xr=Dl==null?void 0:Dl.contents)==null?void 0:xr.filter(Rl=>(Rl==null?void 0:Rl[1])===(h==null?void 0:h[we]))),Dl}),il}),(!qa||(qa==null?void 0:qa.length)===0)&&(qa=nl,qa=qa==null?void 0:qa.map(il=>{var wl;return il.compData=(wl=il==null?void 0:il.compData)==null?void 0:wl.map(Dl=>{var xr;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(xr=Dl==null?void 0:Dl.contents)==null?void 0:xr.filter(Rl=>{var gl,Nl;return(Rl==null?void 0:Rl[1])===(h==null?void 0:h[(Nl=(gl=V==null?void 0:V.value)==null?void 0:gl[0])==null?void 0:Nl.prop])})),Dl}),il})),ze=Qo(qa)}const Ia=await Zo(oe,{token:Pe,inputData:ze}).catch(Pa=>(se.setImportLoading(!1),Promise.reject(Pa))),za=(Y=Ia==null?void 0:Ia.data)==null?void 0:Y.data,Ye=ne.find(Pa=>(Pa==null?void 0:Pa.prop)==="Output1"),Ja=Ye==null?void 0:Ye.prop;let ba=[],Xa=[];if(za&&(($e=Object.values(za))==null?void 0:$e.length)>0){let Pa=[];const ml=new FormData,$a=(oa=et(za))==null?void 0:oa.map(async qa=>{var il,wl;if(!Array.isArray(qa)&&(qa!=null&&qa.includes("http"))){let Dl=await ja.axios.get(qa,{responseType:"blob"}),xr=(wl=qa==null?void 0:qa.split("/"))==null?void 0:wl[((il=qa==null?void 0:qa.split("/"))==null?void 0:il.length)-1];ml.append("files",Dl.data,xr)}else Pa.push(qa)});if(await Promise.all($a),!ve.isFormDataEmpty(ml)){let qa=await A.uploadAmountApi(ml),il=(ua=(_e=qa==null?void 0:qa.data)==null?void 0:_e.result)==null?void 0:ua.map(wl=>{var Dl,xr,Rl,gl,Nl,Xl;return{name:(Xl=(Nl=(gl=(Dl=wl==null?void 0:wl.url)==null?void 0:Dl.split("/"))==null?void 0:gl[((Rl=(xr=wl==null?void 0:wl.url)==null?void 0:xr.split("/"))==null?void 0:Rl.length)-1])==null?void 0:Nl.split("."))==null?void 0:Xl[0],url:wl==null?void 0:wl.url}});Pa=[...Pa,...il]}let nl={};for(let qa in h)qa!=="id"&&(nl[qa]=h[qa]);nl[Ja]=Pa,Xa.push({id:h==null?void 0:h.id,value:{tableData:nl}})}if((Xa==null?void 0:Xa.length)>0){const Pa=Xa.map($a=>{const nl={id:$a.id,...$a.value.tableData};return delete nl._isOCRRow,delete nl._ocrTableId,delete nl._isTemp,delete nl.tableEditType,delete nl.index,nl}),ml=[{tableName:(Ta=c==null?void 0:c.related)==null?void 0:Ta.find($a=>$a==null?void 0:$a.includes("content")),tableContents:Pa}];await A.pageBatchUpdateApi({platId:parseInt((al=sl.value)==null?void 0:al.plat_id),changeContents:ml})}if((ba==null?void 0:ba.length)>0)try{await A.pageBatchAddApi({platId:parseInt((Ha=sl.value)==null?void 0:Ha.plat_id),changeContents:[{tableName:(cl=c==null?void 0:c.related)==null?void 0:cl.find(Pa=>Pa==null?void 0:Pa.includes("content")),tableContents:ba.map(Pa=>{var $a,nl,qa;const ml={id:(($a=Pa==null?void 0:Pa.key)==null?void 0:$a.id)??((nl=Pa==null?void 0:Pa.key)==null?void 0:nl.rowId)??(Pa==null?void 0:Pa.id),...((qa=Pa==null?void 0:Pa.value)==null?void 0:qa.tableData)||{}};return delete ml._isOCRRow,delete ml._ocrTableId,delete ml._isTemp,delete ml.tableEditType,delete ml.index,Object.keys(ml).forEach(il=>{il==="证书附件"&&Array.isArray(ml[il])&&(ml[il]=JSON.stringify(ml[il]))}),ml})}]})}catch(Pa){ja.ElMessage.error(((Fl=(pl=Pa==null?void 0:Pa.response)==null?void 0:pl.data)==null?void 0:Fl.message)||(Pa==null?void 0:Pa.message)||"保存失败"),sa.setTableLoading(!1);return}Vi(!0),se.setImportLoading(!1),sa.setFreshContent(!0)},to=(u,h)=>(u=u==null?void 0:u.map(B=>{var z,P;return B!=null&&B.children&&((z=B.children)!=null&&z.find(C=>C.id===(h==null?void 0:h.id))?B.children=(P=B.children)==null?void 0:P.filter(C=>(C==null?void 0:C.id)!==(h==null?void 0:h.id)):B.children=to(B.children,h)),B}),u),pi=e.ref(!1),o=()=>{pi.value=!0},i=async u=>{var B,z,P,C;pi.value=!1;const h=Array.isArray(u)?u:u?[u]:[];if(h.length!==0)for(const oe of h){const ne={name:oe.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(oe),raw:oe,uid:Date.now()+Math.random()};Ra.value.push(ne),rr(ne,"uploading"),Al(ne,0);try{const W=new FormData;W.append("file",oe,ne.name);const we=await A.platformUploadFile(W);ne.uploadResult=((B=we==null?void 0:we.data)==null?void 0:B.result)||{name:ne.name,url:"",fileName:ne.name},Pl({name:((z=ne.uploadResult)==null?void 0:z.name)||ne.name,url:((P=ne.uploadResult)==null?void 0:P.url)||"",id:(C=ne.uploadResult)==null?void 0:C.id}),rr(ne,"uploaded"),Al(ne,100)}catch(W){console.error("文件上传失败:",W),ja.ElMessage.error(`文件 ${ne.name} 上传失败,请重试`),rr(ne,"pending"),Al(ne,0);const we=Ra.value.findIndex(ze=>ze.uid===ne.uid);we>-1&&Ra.value.splice(we,1)}}},p=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:c==null?void 0:c.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(u,h,B)=>{h===(c==null?void 0:c.index)?B(new Error("选择源不能和目标源一致")):B()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),m=e.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],newRows:[],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:""}),S=()=>{m.show=!1},I=async u=>{var h,B,z,P,C,oe,ne,W;try{const we=[];let ze=(h=Te.value||[])==null?void 0:h.slice();(u||[]).forEach(Ia=>{const za={...Ia};try{za.sort=Xn(0,ze)}catch{}we.push(za),ze.unshift(za)});let Pe=await A.quoteApi({platId:parseInt((B=sl==null?void 0:sl.value)==null?void 0:B.plat_id),type:"fatherSyncs",related:[{menus:Ee.value,groups:""},{menus:Ee.value,groups:c==null?void 0:c.compName}]});Pe=(z=Pe==null?void 0:Pe.data)==null?void 0:z.result;let Re=Pe==null?void 0:Pe.map(Ia=>({tableName:"content_"+(Ia==null?void 0:Ia.id),tableContents:we==null?void 0:we.map((za,Ye)=>({id:Ye,...za}))})),Ge=[{tableName:(P=c==null?void 0:c.related)==null?void 0:P.find(Ia=>Ia==null?void 0:Ia.includes("content")),tableContents:we==null?void 0:we.map((Ia,za)=>({id:za,...Ia}))}];Ge=[...Ge,...Re];const wa=await A.pageBatchAddApi({platId:parseInt((C=sl.value)==null?void 0:C.plat_id),changeContents:Ge});if(((oe=wa==null?void 0:wa.data)==null?void 0:oe.code)===200){const Ia={buttonName:"新增",columns:V.value,fixContent:we==null?void 0:we.map((Ye,Ja)=>({id:Ja,...Ye})),relatedContents:c==null?void 0:c.related};await xt(Ia),ja.ElMessage.success("数据导入成功");let za=[];Ge==null||Ge.forEach(Ye=>{var Ja;(Ja=Ye==null?void 0:Ye.tableContents)==null||Ja.forEach(ba=>{za.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ba),request_result:"{}",is_delete:!1,request_table:Ye==null?void 0:Ye.tableName,request_type:"export"})})}),await A.pageBatchAddApi({platId:parseInt((ne=sl==null?void 0:sl.value)==null?void 0:ne.plat_id),changeContents:[{tableName:"log",tableContents:za}]})}else{let Ia=[];Ge==null||Ge.forEach(za=>{var Ye;(Ye=za==null?void 0:za.tableContents)==null||Ye.forEach(Ja=>{Ia.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ja),request_result:"{}",is_delete:!1,request_table:za==null?void 0:za.tableName,request_type:"error"})})}),await A.pageBatchAddApi({platId:parseInt((W=sl==null?void 0:sl.value)==null?void 0:W.plat_id),changeContents:[{tableName:"log",tableContents:Ia}]}),ja.ElMessage.error("数据导入响应失败")}}catch(we){throw new Error(we)}},G=async u=>{var h,B,z,P,C,oe,ne,W,we,ze;try{if(u==="cancel"&&(m.show=!1),u==="replace"&&((h=m==null?void 0:m.existRows)==null?void 0:h.length)>0){await A.pageBatchDeleteApi({platId:parseInt((B=sl.value)==null?void 0:B.plat_id),changeContents:[{tableName:((z=c==null?void 0:c.related)==null?void 0:z.find(Re=>Re==null?void 0:Re.includes("content_")))||((P=c==null?void 0:c.related)==null?void 0:P.find(Re=>Re==null?void 0:Re.includes("content"))),tableContents:m==null?void 0:m.existRows}]});const Pe=await A.pageBatchAddApi({platId:parseInt((C=sl.value)==null?void 0:C.plat_id),changeContents:[{tableName:(oe=c==null?void 0:c.related)==null?void 0:oe.find(Re=>Re==null?void 0:Re.includes("content")),tableContents:(()=>{const Re=(Te.value||[]).filter(za=>!((m==null?void 0:m.existRows)||[]).some(Ye=>String(Ye==null?void 0:Ye.id)===String(za==null?void 0:za.id))),Ge=(m==null?void 0:m.tableData)||[],wa=[];let Ia=Re.slice();return Ge.forEach(za=>{const Ye={...za};try{Ye.sort=Xn(0,Ia)}catch{}wa.push(Ye),Ia.unshift(Ye)}),wa.map((za,Ye)=>({id:Ye,...za}))})()}]});if(((ne=Pe==null?void 0:Pe.data)==null?void 0:ne.code)!==200)return;(W=m.newRows)!=null&&W.length&&await I(m.newRows),await xt({buttonName:"新增",columns:V.value,fixContent:(we=m==null?void 0:m.tableData)==null?void 0:we.map((Re,Ge)=>({id:Ge,...Re})),relatedContents:c==null?void 0:c.related}),(ze=m.newRows)!=null&&ze.length||ja.ElMessage.success("数据导入成功")}}catch(Pe){throw new Error(Pe)}finally{m.show=!1,m.columns=[],m.tableData=[],m.existRows=[]}},ae=()=>{p.show=!1},xe=u=>{var h,B;if((u==null?void 0:u.buttonName)==="取消")return p.show=!1;p.to=u==null?void 0:u.content,!(!(c!=null&&c.index)||!((h=p.to)!=null&&h.groupName))&&(c==null?void 0:c.index)!==((B=p.to)==null?void 0:B.groupName)&&(Me("change",{buttonName:"迁移",value:{from:p.from,to:p.to,data:p.selectRow}}),p.show=!1)},je=async u=>{var h,B,z,P;if(u){if(!Er.validateFileSize(u.raw)){ja.ElMessage.warning(`文件大小不能超过 ${yn.value.maxSize}MB`);const C=Ra.value.findIndex(oe=>oe.uid===u.uid);C>-1&&Ra.value.splice(C,1),Ce();return}if(!Er.validateFileType(u.raw)){ja.ElMessage.warning("请上传图片文件");const C=Ra.value.findIndex(oe=>oe.uid===u.uid);C>-1&&Ra.value.splice(C,1),Ce();return}rr(u,"uploading"),Al(u,0);try{const C=new FormData;C.append("file",u.raw,u.name);const oe=await A.platformUploadFile(C);u.uploadResult=((h=oe==null?void 0:oe.data)==null?void 0:h.result)||{name:u.name,url:"",fileName:u.name},Pl({name:((B=u.uploadResult)==null?void 0:B.name)||u.name,url:((z=u.uploadResult)==null?void 0:z.url)||"",id:(P=u.uploadResult)==null?void 0:P.id}),rr(u,"uploaded"),Al(u,100)}catch(C){console.error("文件上传失败:",C),ja.ElMessage.error(`文件 ${u.name} 上传失败,请重试`),rr(u,"pending"),Al(u,0);const oe=Ra.value.findIndex(ne=>ne.uid===u.uid);oe>-1&&Ra.value.splice(oe,1)}finally{Ce()}}},Ce=()=>{e.nextTick(()=>{const u=document.querySelector('.ocr-upload-input input[type="file"]');u&&(u.value="")})},aa=async()=>{var B,z;if(sessionStorage.setItem("ocr_root_table_id",String((c==null?void 0:c.index)??"")),Ra.value.length===0){ja.ElMessage.warning("请先选择要上传的图片");return}if(Ra.value.filter(P=>{const C=Cl(P);return C!=="uploaded"&&C!=="completed"&&C!=="failed"}).length>0){ja.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ol.value=!0,ya.value=0;let h=null;try{Ra.value.forEach(Ye=>{rr(Ye,"processing")});const P=Math.floor(Math.random()*10)+90;h=setInterval(()=>{ya.value<P?ya.value+=1:clearInterval(h)},50);const C=Ra.value.map(Ye=>{var Ja,ba,Xa;return{name:((Ja=Ye.uploadResult)==null?void 0:Ja.name)||Ye.name,url:((ba=Ye.uploadResult)==null?void 0:ba.url)||"",fileName:((Xa=Ye.uploadResult)==null?void 0:Xa.fileName)||Ye.name}}),oe=Er.extractTableHeaders(V.value),ne=C.map(Ye=>({name:(Ye==null?void 0:Ye.fileName)||(Ye==null?void 0:Ye.name),url:(Ye==null?void 0:Ye.url)||""})),W=await Er.recognize(ne,oe);if(console.log(W,"ocrResult"),clearInterval(h),h=null,(W==null?void 0:W.code)===500||(W==null?void 0:W.type)==="error"||!(W!=null&&W.result)){ya.value=0,Ra.value.forEach(Ye=>{rr(Ye,"failed"),Al(Ye,0)}),ja.ElMessage.error((W==null?void 0:W.message)||"OCR识别失败,请重试"),ol.value=!1;return}ya.value=P;const we=Array.isArray(W==null?void 0:W.result)?W.result:[];if(we.length===0){ya.value=0,Ra.value.forEach(Ye=>{rr(Ye,"failed"),Al(Ye,0)}),ja.ElMessage.warning("OCR识别未返回有效数据"),ol.value=!1;return}const ze=new Set,Pe=[];we.forEach((Ye,Ja)=>{const ba=Ye!=null&&Ye.数据&&typeof(Ye==null?void 0:Ye.数据)=="object"?Ye.数据:{},Xa=Array.isArray(Ye==null?void 0:Ye.图片信息)?Ye.图片信息:[],ke=new Map;Xa.forEach(ga=>{ga!=null&&ga.name&&ke.set(ga.name,ga.url||"")});const Oa={_index:Ja,_certType:(Ye==null?void 0:Ye.证书类型)||"",_certNo:(Ye==null?void 0:Ye.证书编号)||"",_ocrImages:Xa,__ocrFieldMeta:{}};Object.entries(ba).forEach(([ga,Ea])=>{let _a="",T=0,Y=[],$e="";Ea&&typeof Ea=="object"&&!Array.isArray(Ea)?(_a=(Ea==null?void 0:Ea.value)??"",T=(Ea==null?void 0:Ea.score)??0,Y=Array.isArray(Ea==null?void 0:Ea.bboxNorm)?Ea==null?void 0:Ea.bboxNorm:[],$e=(Ea==null?void 0:Ea.imageName)||""):Array.isArray(Ea)&&Ea.length>=2?(_a=Ea[0]??"",T=Ea[1]??0):(_a=Ea??"",T=0),Oa[ga]=_a,Oa[`${ga}_accuracy`]=T,ze.add(ga),Oa.__ocrFieldMeta[ga]={value:_a,score:T,bboxNorm:Y,imageName:$e,imageUrl:$e&&ke.get($e)||"",images:Xa}}),Pe.push(Oa)});const Re=[],Ge=new Set;Pe.forEach(Ye=>{Ye&&ze.forEach(Ja=>{const ba=Ye[`${Ja}_accuracy`];(typeof ba=="number"?ba>0:ba!=null&&String(ba).trim()!==""&&String(ba)!=="0")&&Ge.add(Ja)})}),ze.forEach(Ye=>{Re.push({prop:Ye,label:Ye,editable:!0,minWidth:230}),Ge.has(Ye)&&Re.push({prop:`${Ye}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Ra.value.forEach(Ye=>{rr(Ye,"completed")}),ya.value=100,na.value=Re,qe.value=Pe,He.value=C,ta.value=W;const wa=["出厂编号","设备名称","制造厂"],Ia=Re.filter(Ye=>Ye&&!Ye.isAccuracy&&typeof Ye.prop=="string").map(Ye=>Ye.prop),za=["出厂编号","设备名称","制造厂"];ra.value=Ia.filter(Ye=>za.includes(Ye)),console.log("[OCR] 默认勾选字段 props:",ra.value),ea.value=2,ol.value=!1,pa.value=!1}catch(P){console.error("OCR处理失败:",P),h&&(clearInterval(h),h=null),ja.ElMessage.error(((z=(B=P==null?void 0:P.response)==null?void 0:B.data)==null?void 0:z.message)||"OCR识别失败,请重试"),ol.value=!1,ya.value=0,Ra.value.forEach(C=>{rr(C,"pending"),Al(C,0)})}},Ba=u=>{if(u==null)return"";let h=String(u);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,B=>String.fromCharCode(B.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},Ga=()=>{var Ye,Ja;const u=He.value,h=ta.value,B=qe.value;if(!B||B.length===0){ja.ElMessage.warning("暂无数据可添加");return}const z=(Ye=ve.getAllLeafNodes(V.value)||[])==null?void 0:Ye.filter(ba=>(ba==null?void 0:ba.type)!=="operate"&&(ba==null?void 0:ba.label)!=="操作"&&(ba==null?void 0:ba.prop)!=="operate"),P=new Map,C=new Map,oe=(Ja=z==null?void 0:z.find(ba=>(ba==null?void 0:ba.label)==="证书附件"))==null?void 0:Ja.prop;z==null||z.forEach(ba=>{ba!=null&&ba.label&&(ba!=null&&ba.prop)&&(P.set(ba.label,ba.prop),C.set(ba.prop,ba.label))});const ne=Date.now(),W=ba=>String(ne*1e3+ba),we=[],ze=[],Pe=ba=>{const Xa=Do&&Do[ba]||[ba];for(const ke of Xa){const Oa=P.get(ke);if(Oa)return Oa}return""},Re=Pe("出厂编号"),Ge=Pe("设备名称"),wa=Pe("制造厂"),Ia=[],za=ba=>{var _a,T;if(!oe)return[];const Xa=(Array.isArray(u)?u[ba]:null)||null,ke=(Xa==null?void 0:Xa.url)||"",Oa=(Xa==null?void 0:Xa.fileName)||(Xa==null?void 0:Xa.name)||"";return(String(Oa).toLowerCase().endsWith(".pdf")||String(ke).toLowerCase().endsWith(".pdf"))&&ke?[{url:ke,name:Oa,fileName:Oa}]:(Array.isArray((T=(_a=h==null?void 0:h.result)==null?void 0:_a[ba])==null?void 0:T.图片信息)?h.result[ba].图片信息:[]).map(Y=>({url:(Y==null?void 0:Y.url)||"",name:(Y==null?void 0:Y.name)||"",fileName:(Y==null?void 0:Y.name)||""})).filter(Y=>Y.url)};if(B.forEach((ba,Xa)=>{var al;const ke={id:W(Xa),_isOCRRow:!0,_ocrTableId:c==null?void 0:c.index};for(const[Ha,cl]of P.entries())Object.prototype.hasOwnProperty.call(ba,Ha)&&(ke[cl]=ba[Ha]);oe&&(ke[oe]=za(Xa));const Oa=(Array.isArray(h==null?void 0:h.result)?h.result[Xa]:null)||null,ga=(Array.isArray(u)?u[Xa]:null)||null,Ea=(ga==null?void 0:ga.url)||"",_a=(ga==null?void 0:ga.fileName)||(ga==null?void 0:ga.name)||"",T=String(_a).toLowerCase().endsWith(".pdf")||String(Ea).toLowerCase().endsWith(".pdf"),Y={ts:Date.now(),versionId:String(Date.now())+"_"+String(Xa),label:new Date().toLocaleString(),certType:(Oa==null?void 0:Oa.证书类型)||"",certNo:(Oa==null?void 0:Oa.证书编号)||"",fileType:T?"pdf":"image",sourceUrl:T?Ea:"",images:Array.isArray(Oa==null?void 0:Oa.图片信息)?Oa.图片信息.map(Ha=>({name:(Ha==null?void 0:Ha.name)||"",url:(Ha==null?void 0:Ha.url)||""})).filter(Ha=>Ha.url):[]},$e=Ha=>Ba(Ha?ke==null?void 0:ke[Ha]:""),oa=$e(Re),_e=$e(Ge),ua=$e(wa);if(!!(Re&&Ge&&wa&&oa&&_e&&ua)){const Ha=(Te.value||[]).find(cl=>{const pl=Ba(Re?cl==null?void 0:cl[Re]:""),Fl=Ba(Ge?cl==null?void 0:cl[Ge]:""),Pa=Ba(wa?cl==null?void 0:cl[wa]:"");return pl&&Fl&&Pa&&pl===oa&&Fl===_e&&Pa===ua});if(Ha){Ia.push({idx:Xa,ocrRow:ke,versionItem:Y,ocrNo:oa,candidates:[Ha],selectedTargetId:String((Ha==null?void 0:Ha.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(oa&&Re){const Ha=(Te.value||[]).filter(cl=>{const pl=Ba(Re?cl==null?void 0:cl[Re]:"");return pl&&pl===oa});if(Ha.length>0){Ia.push({idx:Xa,ocrRow:ke,versionItem:Y,ocrNo:oa,candidates:Ha,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ke.sort===void 0||ke.sort===null||String(ke.sort).trim()===""){const Ha=(Te.value||[]).map(pl=>Jn(pl==null?void 0:pl.sort)).filter(pl=>pl!==null),cl=Ha.length>0?Math.max(...Ha):((al=Te.value)==null?void 0:al.length)??0;ke.sort=String(Number((cl+1).toFixed(6)))}}catch{}Ma(c==null?void 0:c.index,ke.id,Y),Ia.push({idx:Xa,ocrRow:ke,versionItem:Y,ocrNo:oa,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ia||[]).length>0){Wl.value=(Ia||[]).map(ba=>({...ba,selectedTargetId:(ba==null?void 0:ba.selectedTargetId)||""})),ql.value=!0,Ql.value=ze,pr.value=we,Ll.value=h,fr.value=u,Vr.value=oe||"";return}},Ua=(u,h,B)=>{qe.value[u]&&(qe.value[u][h]=B)},Qa=u=>u==null||u===0?"-":`${(Number(u)*100).toFixed(1)}%`,bl=u=>{if(u==null||u===0)return"#909399";const h=Number(u);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},vl=u=>{var B,z,P,C;if(Za.value===u){Za.value=null,Ne.value=!1,Le.value="";return}Za.value=u,Le.value="";const h=(B=qe.value)==null?void 0:B[u];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){_l.value=h._ocrImages.map(W=>({name:(W==null?void 0:W.name)||"",url:(W==null?void 0:W.url)||""})).filter(W=>W.name||W.url);const oe=h.__ocrFieldMeta||{},ne=(z=Object.values(oe))==null?void 0:z.find(W=>W==null?void 0:W.imageName);Ol.value=(ne==null?void 0:ne.imageName)||((C=(P=_l.value)==null?void 0:P[0])==null?void 0:C.name)||"",Ne.value=_l.value.length>0}else _l.value=[],Ne.value=!1,Ol.value=""},El=()=>{tl.value=!1,Ra.value=[],ul.value=null,ea.value=1,Je.value.clear(),he.value.clear(),ya.value=0,Ne.value=!1},Hl=u=>u.raw?URL.createObjectURL(u.raw):u.url?u.url:"",Cl=u=>{const h=u.uid||u.name;return Je.value.get(h)||"pending"},zl=u=>{const h=u.uid||u.name;return he.value.get(h)||0},Al=(u,h)=>{const B=u.uid||u.name;he.value.set(B,Math.min(100,Math.max(0,h)))},Hr=u=>{const h=Cl(u),B=100.53;if(h==="completed"||h==="uploaded")return`${B} ${B}`;if(h==="failed")return`${B} ${B}`;if(h==="uploading"){const z=zl(u);return`${B*(z/100)} ${B}`}else if(h==="processing")return`${B*.5} ${B}`;return`0 ${B}`},rr=(u,h)=>{const B=u.uid||u.name;Je.value.set(B,h),(h==="completed"||h==="uploaded")&&Al(u,100)},Gr=()=>{e.nextTick(()=>{const u=document.querySelector('.ocr-upload-input input[type="file"]');if(u)u.value="",u.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 B=>{const z=Array.from(B.target.files||[]);for(const P of z){const C={name:P.name,raw:P,uid:Date.now()+Math.random()};Ra.value.push(C),await je(C)}B.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},on=()=>{ea.value>1&&ea.value--},wn=()=>{ea.value===1?Ra.value.length>0&&!ol.value&&aa():ea.value===2&&(Ga(),ea.value=3)},fi=async u=>{await Tt(u==null?void 0:u.row)},Qn=async({row:u,prop:h})=>{!u||!h||await Tt(u,h)},Tt=async(u,h)=>{var P,C;const B=u==null?void 0:u.id;if(!B){ja.ElMessage.warning("暂无可预览数据");return}let z=Ml(c==null?void 0:c.index,B);if(!z||z.length===0){const oe=sessionStorage.getItem("ocr_root_table_id"),ne=oe!==null?Number(oe):null;if(ne!=null&&ne!==""&&!Number.isNaN(ne)){const W=Ml(ne,B);Array.isArray(W)&&W.length>0&&($l(c==null?void 0:c.index,B,W),z=W)}}if(!z||z.length===0){const oe=(P=ve.getAllLeafNodes(V.value)||[])==null?void 0:P.filter(W=>(W==null?void 0:W.type)!=="operate"&&(W==null?void 0:W.label)!=="操作"&&(W==null?void 0:W.prop)!=="operate"),ne=h||((C=oe==null?void 0:oe.find(W=>(W==null?void 0:W.label)==="证书附件"))==null?void 0:C.prop);if(ne&&u[ne]){const W=u[ne];let we=[],ze="",Pe=!1;if(typeof W=="string")try{const Re=JSON.parse(W);Array.isArray(Re)&&(we=Re.map(Ge=>({name:(Ge==null?void 0:Ge.name)||(Ge==null?void 0:Ge.fileName)||"",url:(Ge==null?void 0:Ge.url)||""})).filter(Ge=>Ge.url||Ge.name),we.length>0&&(ze=we[0].url||"",Pe=String(we[0].name).toLowerCase().endsWith(".pdf")||String(ze).toLowerCase().endsWith(".pdf")))}catch{ze=W,Pe=String(W).toLowerCase().endsWith(".pdf"),we=[{name:W,url:W}]}else Array.isArray(W)&&(we=W.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),we.length>0&&(ze=we[0].url||"",Pe=String(we[0].name).toLowerCase().endsWith(".pdf")||String(ze).toLowerCase().endsWith(".pdf")));if(we.length>0||ze){const Re={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:u.证书类型||"",certNo:u.证书编号||"",fileType:Pe?"pdf":"image",sourceUrl:Pe?ze:"",images:we};z=[Re],Ma(c==null?void 0:c.index,B,Re)}}}if(!z||z.length===0){ja.ElMessage.warning("暂无可预览数据");return}ee.value=z,rl.value=!0},lu=u=>{Ra.value=Ra.value.filter((h,B)=>B!==u)},lt=async(u,h,B)=>{var z,P,C,oe,ne,W,we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja,ba,Xa,ke,Oa,ga;if(ma(c.config,{type:ue.TABLE,tableOperate:u})){if(Ca.value="",Aa.value=!0,Ze.value=!0,Me("onButtonClick",u,h),J.value=[],u==="删除")A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Ea,_a,T,Y;(Ea=Te.value)!=null&&Ea.find($e=>($e==null?void 0:$e.id)===(h==null?void 0:h.id))?Te.value=(_a=A.cloneDeep(Te.value))==null?void 0:_a.filter($e=>($e==null?void 0:$e.id)!==(h==null?void 0:h.id)):Te.value=to(A.cloneDeep(Te.value),h);try{h!=null&&h.id&&((Y=(T=Na.value)==null?void 0:T.has)!=null&&Y.call(T,h==null?void 0:h.id))&&Na.value.delete(h.id)}catch{}Bf(ln.value,pn.value,h==null?void 0:h.id),sa.setTableLoading(c==null?void 0:c.index),Me("change",{content:Te.value,fixContent:[h],index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.groupNames,buttonName:u,columns:V.value,relatedContents:c==null?void 0:c.related}),console.log(h,"item")});else if(u==="批量删除"){if(((z=Gl.value)==null?void 0:z.length)===0)return ja.ElMessage.warning("请先勾选操作的数据");A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var T,Y,$e,oa,_e;const Ea=(T=Gl.value)==null?void 0:T.map(ua=>ua.id);Te.value=(Y=A.cloneDeep(Te.value))==null?void 0:Y.filter(ua=>!(Ea!=null&&Ea.includes(ua.id))),sa.setTableLoading(c==null?void 0:c.index),Me("change",{content:Te.value,fixContent:Gl.value,index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:u,relatedContents:c==null?void 0:c.related,columns:V.value});const _a=(Ea||[]).filter(Boolean);if(_a.length>0&&_a.every(ua=>ua!=null&&ua!=="")){const ua=(Gl.value||[]).map(Ta=>{const al={...Ta};return delete al._isOCRRow,delete al._ocrTableId,delete al._isTemp,delete al.tableEditType,delete al.index,al});await A.pageBatchDeleteApi({platId:parseInt(($e=sl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:((oa=c==null?void 0:c.related)==null?void 0:oa.find(Ta=>Ta==null?void 0:Ta.includes("content_")))||((_e=c==null?void 0:c.related)==null?void 0:_e.find(Ta=>Ta==null?void 0:Ta.includes("content"))),tableContents:ua}]})}})}else if(u==="复制新增"){X.value="复制新增",A.cloneDeep(h);const Ea=(P=V.value)==null?void 0:P.find(_a=>_a==null?void 0:_a.isMainKey);Ea||((C=V.value)==null||C[0]),ur.value=h,Vi(!0)}else if(u==="新增")X.value="新增",Ri(""),Z.value=!0;else if(u==="编辑")X.value="编辑",Ri(h),Z.value=!0;else if(u==="查看")X.value="查看",Ri(h),Aa.value=!1,Ze.value=!1,Z.value=!0;else if(u==="查看三维模型"){const Ea={};for(let T in h)T!=="id"&&(Ea[T]=h[T]);let _a=(oe=Object.values(Ea))==null?void 0:oe[1];Ue.setTableShowThree(_a)}else if(u==="切换视图")vu();else if(((ne=B==null?void 0:B.extra)==null?void 0:ne.type)==="modelExample")X.value=u,Xe.value=!0;else if(u==="新建"){let Ea=me.value,_a=[];for(let _e in Ea)_e!=null&&_e.includes(`loading${((W=sl.value)==null?void 0:W.account)||((we=sl.value)==null?void 0:we.账号)}`)&&(_a=[..._a,..._e]);let T=[];for(let _e in Ea)_e!=null&&_e.includes(`updateLoading${((ze=sl.value)==null?void 0:ze.account)||((Pe=sl.value)==null?void 0:Pe.账号)}`)&&(T=[...T,..._e]);let Y=_a==null?void 0:_a.map(_e=>_e==null?void 0:_e.id);const $e=T==null?void 0:T.map(_e=>_e==null?void 0:_e.id);Y=[...A.cloneDeep(Y),...$e],(Y==null?void 0:Y.length)>0&&(Y!=null&&Y.every(_e=>_e!==null&&_e))&&await Nr.batchDeleteInsofDataApi({ids:Y});const oa=(Re=Ya.value)==null?void 0:Re.find(_e=>(_e==null?void 0:_e.label)==="新建");await iu(!1,oa)}else if(u==="修改模板"){let Ea=A.cloneDeep(Ee).value;sa.setRouteToChildPath(Ea),se.setActiveMenuPath(Ea+_)}else if(u==="执行")at(u,h);else if(u==="导出paraform"){const Ea=A.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const _a=["推力","真空","压力","温度","流量"],T=gl=>{var Nl,Xl,Tl;return gl?typeof(gl==null?void 0:gl.value)=="string"?gl.value:((Tl=(Xl=(Nl=gl==null?void 0:gl._custom)==null?void 0:Nl.value)==null?void 0:Xl.value)==null?void 0:Tl.value)||"":""},Y=Array.isArray(lr.value)?lr.value:[],$e=T(Y.find(gl=>(gl==null?void 0:gl.condition)==="child")),oa=String($e||"").slice(0,8),_e=gl=>{if(gl==null)return"";const Nl=String(gl).trim();if(!Nl)return"";if(/^\d{8}$/.test(Nl))return Nl;const Xl=Nl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Xl){const Yl=Xl[1],nr=Xl[2].padStart(2,"0"),Ul=Xl[3].padStart(2,"0");return`${Yl}${nr}${Ul}`}const Tl=Nl.replace(/\D/g,"");return Tl.length>=8?Tl.slice(0,8):""},ua=async gl=>{var Nl,Xl;if(!gl)return"";try{const Tl=await Kr("试验任务/任务管理",!1),Yl=(mr,sr=[])=>{if(!Array.isArray(mr))return sr;for(const dr of mr)(dr==null?void 0:dr.comp)==="Table"&&(dr!=null&&dr.name)&&sr.push(dr),Array.isArray(dr==null?void 0:dr.children)&&Yl(dr.children,sr),Array.isArray(dr==null?void 0:dr.tab)&&Yl(dr.tab,sr),Array.isArray(dr==null?void 0:dr.choice)&&Yl(dr.choice,sr);return sr},Ul=Yl(Tl||[]).find(mr=>(mr==null?void 0:mr.name)==="任务列表"),vr=((Xl=(Nl=Ul==null?void 0:Ul.compData)==null?void 0:Nl.find(mr=>(mr==null?void 0:mr.key)==="tableContents"))==null?void 0:Xl.contents)||[];if(!Array.isArray(vr)||vr.length===0)return"";const qr=vr.find(mr=>String((mr==null?void 0:mr["试验代号(名称)"])||"").slice(0,8)===gl);return _e(qr==null?void 0:qr.计划试验时间)}catch(Tl){return console.warn("获取任务列表计划试验时间失败:",Tl),""}},Ta=(Ee.value||"").replace(/\/+$/,""),al=$e?`${Ta}/${$e}`:Ta,Ha=await Kr(al||Ee.value,!1),cl=String(Qe.value||"").trim(),pl=gl=>String(gl||"").trim(),Fl=(gl,Nl=[],Xl="")=>{if(!Array.isArray(gl))return Nl;for(const Tl of gl){const Yl=pl((Tl==null?void 0:Tl.choiceName)||(Tl==null?void 0:Tl.name0)||Xl);(Tl==null?void 0:Tl.comp)==="Table"&&(Tl==null?void 0:Tl.name)&&_a.includes(Tl.name)&&(!cl||Yl===cl)&&Nl.push(Tl),Array.isArray(Tl==null?void 0:Tl.children)&&Fl(Tl.children,Nl,Yl),Array.isArray(Tl==null?void 0:Tl.tab)&&Fl(Tl.tab,Nl,Yl),Array.isArray(Tl==null?void 0:Tl.choice)&&Fl(Tl.choice,Nl,Yl)}return Nl},Pa=Fl(Ha||[]),ml=new Map;for(const gl of Pa)gl!=null&&gl.name&&!ml.has(gl.name)&&ml.set(gl.name,gl);const $a=_a.map(gl=>ml.get(gl)).filter(Boolean);if(!$a||$a.length===0)return ja.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const nl=gl=>{const Nl=new Map,Xl=(Tl,Yl=[])=>{if(Array.isArray(Tl))for(const nr of Tl){const Ul=((nr==null?void 0:nr.label)??"").toString().trim(),vr=Ul?[...Yl,Ul]:[...Yl];if(Array.isArray(nr==null?void 0:nr.children)&&nr.children.length>0)Xl(nr.children,vr);else{const mr=((nr==null?void 0:nr.prop)??"").toString();if(!mr)continue;const sr=Ul||mr,dr=(vr.length>0?[...Yl,sr]:[sr]).join(".");Nl.set(mr,dr)}}};return Xl(gl,[]),Nl},qa=(gl,Nl)=>{const Xl=nl(gl||[]),Yl=(ve.getAllLeafNodes(gl||[])||[]).filter(Ul=>(Ul==null?void 0:Ul.prop)&&(Ul==null?void 0:Ul.type)!=="operate"&&(Ul==null?void 0:Ul.label)!=="操作"&&(Ul==null?void 0:Ul.prop)!=="operate"),nr=Array.isArray(Nl)?Nl:[];return nr.length===0?[]:nr.map(Ul=>{const vr={};return Yl.forEach(qr=>{const mr=String(qr.prop),sr=Xl.get(mr)||String(qr.label||qr.prop);vr[sr]=(Ul==null?void 0:Ul[mr])??""}),vr})},il=$a.map(gl=>{var nr,Ul;const Nl=(gl==null?void 0:gl.compData)||[];let Xl=(nr=Nl==null?void 0:Nl.find(vr=>(vr==null?void 0:vr.key)==="header"))==null?void 0:nr.contents;Array.isArray(Xl==null?void 0:Xl[0])&&(Xl=Xl[0]);const Tl=((Ul=Nl==null?void 0:Nl.find(vr=>(vr==null?void 0:vr.key)==="tableContents"))==null?void 0:Ul.contents)||[];if(!Array.isArray(Xl)||Xl.length===0||!Array.isArray(Tl)||Tl.length===0)return null;const Yl=qa(Xl||[],Tl||[]);return!Array.isArray(Yl)||Yl.length===0?null:{类型:gl==null?void 0:gl.name,数据:Yl}}).filter(Boolean);if(!il||il.length===0)return ja.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const wl=await ua(oa),Dl={试验代号:oa,试验日期:wl,ParaForm:il},xr=await di().catch(()=>""),Rl=await A.exportParaformApi(Dl,xr);if(((Ge=Rl==null?void 0:Rl.data)==null?void 0:Ge.code)===200&&((Ia=(wa=Rl==null?void 0:Rl.data)==null?void 0:wa.result)!=null&&Ia.Excel文件)){const gl=Rl.data.result.Excel文件,Nl=await A.platformDownloadFile({url:gl}),Xl=new Blob([Nl.data],{type:"application/vnd.ms-excel"}),Tl=URL.createObjectURL(Xl),Yl=A.dayjs().format("YYYYMMDD"),Ul=`${(oa||"UNKNOWN").trim()||"UNKNOWN"}_${Yl}_paraform.xls`,vr=document.createElement("a");vr.href=Tl,vr.download=Ul,vr.style.display="none",document.body.appendChild(vr),vr.click(),setTimeout(()=>{document.body.removeChild(vr),URL.revokeObjectURL(Tl)},100);const qr=Array.isArray((Ye=(za=Rl==null?void 0:Rl.data)==null?void 0:za.result)==null?void 0:Ye.warnings)?Rl.data.result.warnings:[];if(qr.length>0){const mr=qr.map((sr,dr)=>`${dr+1}. ${(sr==null?void 0:sr.field)||"未知字段"}:${(sr==null?void 0:sr.message)||""}`).join(`
|
|
24
|
-
`);ja.ElMessage.warning({message:`导出成功,但存在以下提示:
|
|
25
|
-
${mr}`,duration:5e3,showClose:!0})}else ja.ElMessage.success("导出成功")}else ja.ElMessage.error(((Ja=Rl==null?void 0:Rl.data)==null?void 0:Ja.message)||"导出失败")}catch(_a){console.error("导出paraform失败:",_a),ja.ElMessage.error("导出失败:"+((_a==null?void 0:_a.message)||"未知错误"))}finally{Ea.close()}}else if(u!=null&&u.includes("导出")&&u!=="导出paraform"){if(u==="导出选中"&&((ba=Gl.value)==null?void 0:ba.length)===0)return ja.ElMessage.warning(`请先勾选${u}的数据`);if(u==="导出全部"&&((Xa=Te.value)==null?void 0:Xa.length)===0)return ja.ElMessage.warning("暂无数据导出");let Ea=["序号",...(Oa=(ke=V.value)==null?void 0:ke.map($e=>$e==null?void 0:$e.prop))==null?void 0:Oa.filter($e=>$e!=="操作")],_a=u==="导出全部"?Te.value:Gl.value;const T=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];_a=_a==null?void 0:_a.map($e=>Object.fromEntries(Object.entries($e).filter(([oa])=>!T.includes(oa)))),Ea=["序号",...Ea],_a=_a==null?void 0:_a.map(($e,oa)=>({序号:oa+1,...$e}));let Y=(c==null?void 0:c.compName)||"表格信息";Fo(_a,Y,Ea,Y)}else if(u==="OCR识别")tl.value=!0,Ra.value=[],ea.value=1,Je.value.clear(),he.value.clear(),ya.value=0;else if(u==="迁移")p.selectRow=h,p.show=!0;else if(u==="生成方法"){let Ea=await Wf(h),_a;h!==""?_a=[h]:_a=A.cloneDeep(Te.value),_a=_a==null?void 0:_a.map(Y=>(Y.输出值=Ea,Y));const T={fixContent:_a,buttonName:"编辑",relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};Me("change",T)}else if(((ga=B==null?void 0:B.extra)==null?void 0:ga.type)==="methodButton"){let Ea;h!==""?Ea=[h]:Ea=A.cloneDeep(Te.value);const T={fixContent:await vt(Ea,V==null?void 0:V.value,"Manual",Te.value),buttonName:"methodButton",relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};Me("change",T)}}},ru=async(u,h)=>{var B,z,P,C,oe,ne,W,we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja,ba,Xa,ke;try{let Oa,ga;const Ea=(B=me.value[Ee.value+_])==null?void 0:B.filter(Ta=>{var al;return((al=Ta==null?void 0:Ta.key)==null?void 0:al.type)==="structureMethod"}),_a=(z=me.value[Ee.value+_])==null?void 0:z.filter(Ta=>{var al;return((al=Ta==null?void 0:Ta.key)==null?void 0:al.type)==="structure"}),T=Ea==null?void 0:Ea.find(Ta=>{var al,Ha;return((Ha=(al=Ta==null?void 0:Ta.value)==null?void 0:al.pageData)==null?void 0:Ha.method)==="保存"});if(!T)return;const Y=(ne=(oe=me.value[(C=(P=T==null?void 0:T.value)==null?void 0:P.pageData)==null?void 0:C.path])==null?void 0:oe.filter(Ta=>{var al;return((al=Ta==null?void 0:Ta.key)==null?void 0:al.type)==="data"}))==null?void 0:ne.find(Ta=>{var al,Ha,cl,pl;return((Ha=(al=Ta==null?void 0:Ta.value)==null?void 0:al.tableData)==null?void 0:Ha.算法名称)===((pl=(cl=T==null?void 0:T.value)==null?void 0:cl.pageData)==null?void 0:pl.method)});if(!Y)return;const $e={buttonName:(we=(W=T==null?void 0:T.value)==null?void 0:W.pageData)==null?void 0:we.method,api:(Pe=(ze=Y==null?void 0:Y.value)==null?void 0:ze.tableData)==null?void 0:Pe.算法体,content:_a==null?void 0:_a.map(Ta=>{var al;return(al=Ta==null?void 0:Ta.value)==null?void 0:al.pageData}),extraContent:[],extraValues:(Ge=(Re=T==null?void 0:T.value)==null?void 0:Re.pageData)==null?void 0:Ge.data,methodName:(Ia=(wa=T==null?void 0:T.value)==null?void 0:wa.pageData)==null?void 0:Ia.path};if(!u)return;const oa={...u,compData:(za=u==null?void 0:u.compData)==null?void 0:za.map(Ta=>{var al;return(Ta==null?void 0:Ta.key)==="formContent"?{...Ta,contents:(al=Ta==null?void 0:Ta.contents)==null?void 0:al.map(Ha=>(Ha==null?void 0:Ha.prop)===h?{...Ha,value:""}:Ha)}:Ta})},_e={key:{pageKey:Ee.value+_,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:oa}},ua=await ja.axios.post($e.api,_e,{headers:{"Content-Type":"application/json"}});return((Ye=ua==null?void 0:ua.data)==null?void 0:Ye.code)===200&&(Oa=(ba=(Ja=ua==null?void 0:ua.data)==null?void 0:Ja.result)==null?void 0:ba.latestReportCode,ga=(ke=(Xa=ua==null?void 0:ua.data)==null?void 0:Xa.result)==null?void 0:ke.status),{newMainKeyValue:Oa,newStatus:ga}}catch(Oa){throw ja.ElMessage.error(Oa),new Error(Oa)}},Nt=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const nu=async(u,h,B)=>{var W,we;let z=u==null?void 0:u[h==null?void 0:h.prop],P=1,C,oe;const ne=A.cloneDeep(Ee).value+_+z;if(ne){Nt.value="",C=(W=me.value[ne])==null?void 0:W.filter(Re=>{var Ge;return((Ge=Re==null?void 0:Re.key)==null?void 0:Ge.type)==="structure"});const ze=C==null?void 0:C.find(Re=>{var Ge,wa,Ia;return((Ia=(wa=(Ge=Re==null?void 0:Re.value)==null?void 0:Ge.pageData)==null?void 0:wa.comp)==null?void 0:Ia.toUpperCase())==="FORM"});oe={...(we=ze==null?void 0:ze.value)==null?void 0:we.pageData,id:ze==null?void 0:ze.id};const Pe=await ru(oe,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(Te.value.some(ze=>(ze==null?void 0:ze[h==null?void 0:h.prop])===z)){const ze=z;for(;Te.value.some(Pe=>(Pe==null?void 0:Pe[h==null?void 0:h.prop])===`${ze}(${P})`);)P++;z=`${ze}(${P})`}return z},iu=async(u,h,B)=>{var C,oe,ne,W;let z,P;if(await nu(B==null?void 0:B.data,B==null?void 0:B.firstCol),z=A.cloneDeep(Ee).value+_,P=A.cloneDeep(z)+`loading${((C=sl.value)==null?void 0:C.account)||((oe=sl.value)==null?void 0:oe.账号)}`,h){const we=(W=(ne=me.value[P])==null?void 0:ne.filter(ze=>{var Pe;return((Pe=ze==null?void 0:ze.key)==null?void 0:Pe.parentTable)===""}))==null?void 0:W.map(ze=>{var Pe;return{id:ze==null?void 0:ze.id,...(Pe=ze==null?void 0:ze.value)==null?void 0:Pe.pageData}});(we==null?void 0:we.length)>0||await ve.loadingConstruct(z,P,null,null,null),sa.setRouteToChildPath(A.cloneDeep(Ee).value),se.setActiveMenuPath(P)}else sa.setRouteToChildPath(A.cloneDeep(Ee).value),se.setActiveMenuPath(P)},ou=()=>{Ve.value=!1,Sa.value=[],ge.value=!1},Ri=u=>{var C,oe,ne,W,we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja,ba,Xa,ke,Oa,ga,Ea,_a;const h=[];De.value=A.cloneDeep(V.value),(oe=ve.getColumnChild((C=A.cloneDeep(V.value))==null?void 0:C.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||oe.forEach((T,Y)=>{var $e,oa,_e;T!=null&&T.formType&&(($e=T==null?void 0:T.formType)==null?void 0:$e.toUpperCase())==="SELECT"||T!=null&&T.menuId?h.push({label:(oa=T==null?void 0:T.prop)!=null&&oa.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"+Y,prop:T==null?void 0:T.prop,type:"Select",value:(u==null?void 0:u[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Y,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,multipleLimit:T==null?void 0:T.multipleLimit,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:(_e=T==null?void 0:T.prop)!=null&&_e.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"+Y,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"?(u==null?void 0:u[T==null?void 0:T.prop])??"{}":(u==null?void 0:u[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Y,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})}),u===""||!u||(Ca.value=(u==null?void 0:u.id)??"");let B=ve.getColumnChild((ne=A.cloneDeep(V.value))==null?void 0:ne.filter(T=>(T==null?void 0:T.label)!=="操作"));xa.value&&((W=xa.value)==null?void 0:W.length)>0&&(xa.value=(we=A.cloneDeep(xa).value)==null?void 0:we.map(T=>{var $e;let Y=(T==null?void 0:T.prop)||(($e=B==null?void 0:B.find(oa=>(oa==null?void 0:oa.label)===(T==null?void 0:T.label)))==null?void 0:$e.prop);return Y&&(T.value=u[Y]),T})),Fa.value=xa.value&&((ze=xa.value)==null?void 0:ze.length)>0?ve.getTableFormToForm(xa.value):h,Fa.value=((Pe=Fa.value)==null?void 0:Pe.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??Fa.value;let z=[],P=((wa=(Ge=(Re=c.itemData)==null?void 0:Re.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Ge[0])==null?void 0:wa.contents)??"";if(P=ve.analyzeSplitToContent(P,","),(P==null?void 0:P.length)>0&&(z=P.flat()),(z==null?void 0:z.length)>0){let T=z==null?void 0:z.filter(ua=>ua==null?void 0:ua.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 ua=(za=(Ia=T==null?void 0:T.replace("=",x))==null?void 0:Ia.split(x))==null?void 0:za[1];((Ye=ua==null?void 0:ua.trim())==null?void 0:Ye.toUpperCase())==="MANUAL"&&(c==null||c.index,Fa.value=(Ja=Fa.value)==null?void 0:Ja.map((Ta,al)=>Ta))}let Y=(ba=Fa.value)==null?void 0:ba.filter(ua=>ua==null?void 0:ua.mainKey),$e;Y==null||Y.forEach(ua=>{var al;if($e!==void 0)return;let Ta=ua==null?void 0:ua.menus;((al=Y==null?void 0:Y.filter(Ha=>Ha==null?void 0:Ha.mainKey))==null?void 0:al.length)>1&&($e=Ta,ua==null||ua.groups)});let oa=[],_e=new Map;if(Y==null||Y.forEach(ua=>{var Ta,al,Ha,cl,pl,Fl,Pa,ml,$a,nl,qa,il,wl;if((Ta=ua==null?void 0:ua.prop)!=null&&Ta.includes(".")){let Dl=[];_e.get(((Ha=(al=ua==null?void 0:ua.prop)==null?void 0:al.split("."))==null?void 0:Ha[0])+(ua!=null&&ua.isMainPath?0:1)+((cl=ua==null?void 0:ua.groups)==null?void 0:cl[0]))&&(Dl=_e.get(((Fl=(pl=ua==null?void 0:ua.prop)==null?void 0:pl.split("."))==null?void 0:Fl[0])+(ua!=null&&ua.isMainPath?0:1)+((Pa=ua==null?void 0:ua.groups)==null?void 0:Pa[0]))),Dl.push(ua),_e.set((($a=(ml=ua==null?void 0:ua.prop)==null?void 0:ml.split("."))==null?void 0:$a[0])+(ua!=null&&ua.isMainPath?0:1)+((nl=ua==null?void 0:ua.groups)==null?void 0:nl[0]),Dl)}else{let Dl=[];_e.get("normal"+(ua!=null&&ua.isMainPath?0:1)+((qa=ua==null?void 0:ua.groups)==null?void 0:qa[0]))&&(Dl=_e.get("normal"+(ua!=null&&ua.isMainPath?0:1)+((il=ua==null?void 0:ua.groups)==null?void 0:il[0]))),Dl.push(ua),_e.set("normal"+(ua!=null&&ua.isMainPath?0:1)+((wl=ua==null?void 0:ua.groups)==null?void 0:wl[0]),Dl)}}),oa=Array.from(_e.values()),(oa==null?void 0:oa.length)>0)for(let ua in oa){let Ta=oa==null?void 0:oa[ua];if((Ta==null?void 0:Ta.length)!==1){if((Ta==null?void 0:Ta.length)>1){let al=Ta==null?void 0:Ta.map(nl=>nl==null?void 0:nl.prop),Ha=Ta==null?void 0:Ta.map(nl=>nl==null?void 0:nl.label),cl=Ta==null?void 0:Ta.map(nl=>nl==null?void 0:nl.value),pl=(Xa=A.cloneDeep(Ta))==null?void 0:Xa[0],Fl=(ke=Fa.value)==null?void 0:ke.findIndex(nl=>(nl==null?void 0:nl.prop)===(pl==null?void 0:pl.prop)),Pa=(Oa=Fa.value)==null?void 0:Oa.slice(0,Fl),ml=(Ea=Fa.value)==null?void 0:Ea.slice(Fl,(ga=Fa.value)==null?void 0:ga.length);pl.label=Ha==null?void 0:Ha.join("·"),pl.value=cl==null?void 0:cl.join(" "),pl.value.trim()===""&&(pl.value=""),pl.prop=al==null?void 0:al.join("·");let $a=Ta==null?void 0:Ta.map(nl=>{var qa;return(qa=nl==null?void 0:nl.words)==null?void 0:qa.join(".")});pl.relatedWords=$a,pl.usingType="parent",ml.unshift(pl),Fa.value=[...Pa,...ml],Fa.value=(_a=Fa.value)==null?void 0:_a.map(nl=>(al!=null&&al.find(qa=>qa===(nl==null?void 0:nl.prop))&&(nl.isFormColHidden=!0,nl.relatedWords=$a),nl))}}}}},tu=()=>{var h;const u=(h=t.value)==null?void 0:h.$el;u&&Bl.Sortable.create(u,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:B=>{var oe;const{oldIndex:z,newIndex:P}=B;if(z===P)return;const C=nn.value.splice(z,1)[0];nn.value.splice(P,0,C),V.value=(oe=V.value)==null?void 0:oe.slice().sort((ne,W)=>{if(ne.label==="操作")return 1;if(W.label==="操作")return-1;const we=nn.value.findIndex(Pe=>Pe.label===ne.label),ze=nn.value.findIndex(Pe=>Pe.label===W.label);return we-ze})}})};e.onMounted(()=>{ia.value=window.innerWidth-240*2,window.addEventListener("keydown",Xi)});const su=()=>{e.nextTick(()=>{tu()})},cu=()=>{f.value=!0},rt=(u,h)=>{var z;if(!u&&!(u!=null&&u.children))return{contents:u,currentSelectContents:void 0};let B;return u.children=(z=u.children)==null?void 0:z.map(P=>{var C,oe;if((P==null?void 0:P.id)===Ca.value){let ne={};for(let W in P){let we=(C=h==null?void 0:h.find(ze=>(ze==null?void 0:ze.prop)===W))==null?void 0:C.label;we?ne[W]=(oe=ur.value)==null?void 0:oe[we]:ne[W]=P[W]??""}P=Object.assign(ne,ur.value),B=P}else{let ne=rt(P,h);P=ne==null?void 0:ne.contents,B=ne==null?void 0:ne.currentSelectContents}return P}),{contents:u,currentSelectContents:B}},At=(u,h)=>{let B,z;return u!=null&&u.find(P=>(P==null?void 0:P.id)===Ca.value)?B=u==null?void 0:u.map(P=>{var C,oe,ne;if((P==null?void 0:P.id)===Ca.value){let W={};for(let ze in P){let Pe=(C=h==null?void 0:h.find(Re=>(Re==null?void 0:Re.prop)===ze))==null?void 0:C.label;Pe?W[ze]=((oe=ur.value)==null?void 0:oe[Pe])??"":W[ze]=P[ze]??""}let we=ur.value;for(let ze in W)(ne=ur.value)!=null&&ne[ze]||(we[ze]=(W==null?void 0:W[ze])??"");P=we,z=P}return P}):B=u==null?void 0:u.map(P=>{var C,oe,ne,W;if((P==null?void 0:P.id)===Ca.value){let we={};for(let ze in P){let Pe=(C=h==null?void 0:h.find(Re=>(Re==null?void 0:Re.prop)===ze))==null?void 0:C.label;Pe?we[ze]=(oe=ur.value)==null?void 0:oe[Pe]:we[ze]=P[ze]??""}P=Object.assign(we,ur.value),z=P}else P=(ne=rt(P,h))==null?void 0:ne.contents,z=(W=rt(P,h))==null?void 0:W.currentSelectContents;return P}),{newContents:B,currentSelectContents:z}},zt=(u,h,B)=>{var z,P;return u[h==null?void 0:h.prop]=B,typeof u.id=="number"&&(u.id=(z=u.id)==null?void 0:z.toString()),u.children&&((P=u.children)==null?void 0:P.length)>0&&(u.children=u.children.map(zt)),u},Mt=u=>{var B;const h=[];return h.push({...u}),u!=null&&u.children&&Array.isArray(u.children)&&((B=u.children)==null||B.forEach(z=>{h.push(...Mt(z))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(z=>{const P={...z};return delete P.children,P}):[]},so=["Pacific6000数据采集装置.通道号","通道号"],$i=u=>{if(!u)return"";const h=so.map(B=>u==null?void 0:u[B]).find(B=>B!=null&&String(B).trim()!=="");return h==null?"":String(h).trim()},nt=async(u,h=void 0)=>{if(!u)return!1;try{const B=Ge=>{var wa,Ia,za;return Ge?typeof(Ge==null?void 0:Ge.value)=="string"?Ge.value:((za=(Ia=(wa=Ge==null?void 0:Ge._custom)==null?void 0:wa.value)==null?void 0:Ia.value)==null?void 0:za.value)||"":""},z=Array.isArray(lr.value)?lr.value:[],P=B(z.find(Ge=>(Ge==null?void 0:Ge.condition)==="child")),C=(Ee.value||"").replace(/\/+$/,""),oe=P?`${C}/${P}`:C,ne=await Kr(oe||Ee.value,!1),W=String(Qe.value||"").trim(),we=Ge=>String(Ge||"").trim(),ze=(Ge,wa=[],Ia="")=>{if(!Array.isArray(Ge))return wa;for(const za of Ge){const Ye=we((za==null?void 0:za.choiceName)||(za==null?void 0:za.name0)||Ia);(za==null?void 0:za.comp)==="Table"&&(!W||Ye===W)&&wa.push(za),Array.isArray(za==null?void 0:za.children)&&ze(za.children,wa,Ye),Array.isArray(za==null?void 0:za.tab)&&ze(za.tab,wa,Ye),Array.isArray(za==null?void 0:za.choice)&&ze(za.choice,wa,Ye)}return wa},Pe=ze(ne||[]),Re=String((c==null?void 0:c.compName)||"");return Pe.some(Ge=>{var Ia,za;const wa=((za=(Ia=Ge==null?void 0:Ge.compData)==null?void 0:Ia.find(Ye=>(Ye==null?void 0:Ye.key)==="tableContents"))==null?void 0:za.contents)||[];return!Array.isArray(wa)||wa.length===0?!1:wa.some(Ye=>{if(String((Ge==null?void 0:Ge.name)||"")===Re&&(Ye==null?void 0:Ye.id)===h)return!1;const ba=$i(Ye);return!!ba&&ba===u})})}catch{return(Te.value||[]).some(z=>{if((z==null?void 0:z.id)===h)return!1;const P=$i(z);return!!P&&P===u})}},Vi=async(u=!0,h,B)=>{var we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja,ba,Xa,ke,Oa,ga,Ea,_a,T,Y,$e,oa,_e,ua,Ta,al,Ha,cl,pl,Fl,Pa,ml;if(ur.value){const $a=(ze=ve.getColumnChild((we=A.cloneDeep(V.value))==null?void 0:we.filter(qa=>(qa==null?void 0:qa.label)!=="操作")))==null?void 0:ze.filter(qa=>(qa==null?void 0:qa.required)===!0);for(let qa=0;qa<(($a==null?void 0:$a.length)??0);qa++){const il=$a[qa],wl=il==null?void 0:il.prop,Dl=(il==null?void 0:il.label)??wl,xr=(Pe=ur.value)==null?void 0:Pe[wl];if(xr===""||xr===null||xr===void 0||Array.isArray(xr)&&xr.length===0){ja.ElMessage.error(`${Dl}不能为空`);return}}const nl=$i(ur.value);if(nl&&await nt(nl,Ca.value||void 0)){ja.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=ve.getColumnChild((Re=A.cloneDeep(V.value))==null?void 0:Re.filter($a=>($a==null?void 0:$a.label)!=="操作")),P,C=A.cloneDeep(Te.value);if(!ur.value){Z.value=!1;return}if(Ca.value===""){La.value++;let $a;$a={id:La.value.toString()};try{$a.sort=Xn(0,Te.value||[])}catch{}$a!=null&&$a.children&&($a={...$a,children:(Ge=$a.children)==null?void 0:Ge.map(qa=>zt(qa,h,B))});const nl=Object.assign(ur.value,$a);C.unshift(nl),P=nl}else C=(wa=At(C,z))==null?void 0:wa.newContents,P=(Ia=At(C,z))==null?void 0:Ia.currentSelectContents;const oe=(za=c.itemData)==null?void 0:za.filter($a=>($a==null?void 0:$a.key)==="childTree")[0];if(((Ye=oe==null?void 0:oe.contents)==null?void 0:Ye.length)>0){X.value="编辑";const $a=[];C==null||C.forEach((il,wl)=>{var xr;let Dl={};if(Array.isArray(il)){let Rl=[];il==null||il.filter(gl=>!(gl!=null&&gl.id)).forEach((gl,Nl)=>{var Xl,Tl,Yl,nr,Ul,vr,qr;if((Tl=(Xl=Dr.value)==null?void 0:Xl[Nl])!=null&&Tl.prop&&!Array.isArray(gl)){let mr={};mr[Dr.value[Nl].column]=gl,L!=null&&L.value&&((Yl=L==null?void 0:L.value)==null?void 0:Yl.length)>0&&((nr=L==null?void 0:L.value)!=null&&nr.find(sr=>JSON.stringify(sr==null?void 0:sr[0])===JSON.stringify(mr)))&&(Rl=(Ul=L==null?void 0:L.value)==null?void 0:Ul.find(sr=>JSON.stringify(sr==null?void 0:sr[0])===JSON.stringify(mr))),Rl&&Rl.length>0?Dl[Dr.value[Nl].prop]=Rl!=null&&Rl.find(sr=>{var dr;return((dr=Object.keys(sr))==null?void 0:dr[0])===Dr.value[Nl].column})?(vr=Rl==null?void 0:Rl.find(sr=>{var dr;return((dr=Object.keys(sr))==null?void 0:dr[0])===Dr.value[Nl].column}))==null?void 0:vr[Dr.value[Nl].column]:gl:Dl[Dr.value[Nl].prop]=gl}else Array.isArray(gl)&&((qr=Dr.value[Nl])!=null&&qr.prop?Dl[Dr.value[Nl].prop]=gl:Dl.children=mt(gl,Dr.value))})}else Dl=il;if(Array.isArray(il)&&il.some(Rl=>Rl==null?void 0:Rl.id)){const Rl=(xr=il==null?void 0:il.find(gl=>gl.id))==null?void 0:xr.id;$a.push(Object.assign(Dl,{id:io(Rl)}))}else Dl.id?$a.push(Dl):$a.push(Object.assign(Dl,{id:wl.toString()}))});const nl=(Te.value||[]).map(il=>String(il==null?void 0:il.id)),qa=ci($a,nl);Te.value=Rt(qa,oe,V.value)}Ot(Te.value),ln.value=Te.value;const ne=Nf(ln.value,pn.value,C);let W=[];if(H.value?(W=(Ja=A.cloneDeep(H).value.singleContent)==null?void 0:Ja.filter($a=>($a==null?void 0:$a.id)!==(P==null?void 0:P.id)),W.push(P)):W=[P],Vl.value){const $a={content:ne,singleContent:((ba=oe==null?void 0:oe.contents)==null?void 0:ba.length)>0?W==null?void 0:W.flatMap(Mt):W,index:c==null?void 0:c.index,buttonName:"编辑",column:V.value,parentTableId:c==null?void 0:c.parentTableId};sa.setCacheUpdatingData($a)}if((Xa=V.value)==null||Xa.forEach($a=>{($a==null?void 0:$a.formType)==="Upload"&&(P[$a.prop]=P[$a.prop]===""?"{}":typeof P[$a.prop]!="string"?JSON.stringify(P[$a.prop]):P[$a.prop])}),u){(Ea=(ga=(Oa=(ke=c.itemData)==null?void 0:ke.find(qa=>(qa==null?void 0:qa.key)==="filterAllType"))==null?void 0:Oa.value)==null?void 0:ga.find(qa=>(qa==null?void 0:qa.value)==="onConditionContents"))==null||Ea.content;let $a=(_a=c.itemData)==null?void 0:_a.filter(qa=>(qa==null?void 0:qa.key)==="filterAllType");$a=Array.from(new Map($a.filter(Boolean).map((qa,il)=>[qa.value,{...qa,_idx:il}])).values()).sort((qa,il)=>qa._idx-il._idx).map(({_idx:qa,...il})=>il),$a=(T=$a==null?void 0:$a[($a==null?void 0:$a.length)-1])==null?void 0:T.value;const nl={fixContent:[P],buttonName:X.value,relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};sa.setTableLoading(c==null?void 0:c.index),Z.value=!1,ur.value=void 0,Me("change",nl)}if((oa=($e=(Y=Fa.value)==null?void 0:Y[0])==null?void 0:$e.optionUrl)!=null&&oa.menuId){Z.value=!1;let $a=(_e=c.itemData)==null?void 0:_e.filter(nl=>(nl==null?void 0:nl.key)==="filterAllType");if(($a==null?void 0:$a.length)>0){let nl=$a==null?void 0:$a.map(wl=>wl==null?void 0:wl.value),qa=(al=(Ta=(ua=nl.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Num")}))==null?void 0:ua.content)==null?void 0:Ta.split(":"))==null?void 0:al[1];((pl=(cl=(Ha=nl.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Type:")}))==null?void 0:Ha.content)==null?void 0:cl.split(":"))==null?void 0:pl[1])!=="Manual"&&(qa=parseInt(qa),Te.value=(ml=Te.value)==null?void 0:ml.slice(((Fl=Te.value)==null?void 0:Fl.length)-qa,(Pa=Te.value)==null?void 0:Pa.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",Xi),V.value=[],Te.value=[],De.value=[],Da.value=[],xa.value=[],ka.value=[],Sa.value=[],Ie.value=[],Fa.value=[],Gl.value=[],t.value=null,Ln.value=""});const co=async(u,h,B)=>{var Ge,wa,Ia,za,Ye,Ja,ba,Xa,ke,Oa,ga,Ea,_a;hr.value=(B==null?void 0:B.prop)??(B==null?void 0:B.property);const z=A.cloneDeep(c.itemData),P=((Ge=z==null?void 0:z.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Ge.contents)??[];let C=P==null?void 0:P.find((T,Y)=>{var $e,oa,_e;return(T==null?void 0:T.prop)===hr.value||(T==null?void 0:T.label)===hr.value||(Y==null?void 0:Y.toString())===((_e=(oa=($e=hr.value)==null?void 0:$e.split("a"))==null?void 0:oa[1])==null?void 0:_e.toString())});const oe=ve.getColumnChild((wa=A.cloneDeep(V.value))==null?void 0:wa.filter(T=>(T==null?void 0:T.label)!=="操作"));if(C||(C=oe==null?void 0:oe.find(T=>(T==null?void 0:T.prop)===hr.value||(T==null?void 0:T.label)===hr.value)),C&&!((Ia=C==null?void 0:C.menus)!=null&&Ia.length)&&!((za=C==null?void 0:C.groups)!=null&&za.length)&&!((Ye=C==null?void 0:C.words)!=null&&Ye.length)){const T=(Ja=Fa.value)==null?void 0:Ja.find(Y=>(Y==null?void 0:Y.prop)===hr.value);T&&(C={...C,menus:(T==null?void 0:T.menus)??(C==null?void 0:C.menus),groups:(T==null?void 0:T.groups)??(C==null?void 0:C.groups),words:(T==null?void 0:T.words)??(C==null?void 0:C.words),bindMenus:(T==null?void 0:T.bindMenus)??(C==null?void 0:C.bindMenus),isMainPath:(T==null?void 0:T.isMainPath)??(C==null?void 0:C.isMainPath),relatedContents:(T==null?void 0:T.relatedContents)??(C==null?void 0:C.relatedContents),endChildMenu:(T==null?void 0:T.endChildMenu)??(C==null?void 0:C.endChildMenu)})}if(C&&((ba=Fa==null?void 0:Fa.value)==null||ba.forEach(T=>{var Y,$e,oa,_e,ua;(T==null?void 0:T.prop)===(C==null?void 0:C.prop)&&(T!=null&&T.endChildMenu)&&((Y=C==null?void 0:C.prop)!=null&&Y.includes(".")&&((oa=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:oa[0])!==((ua=(_e=T==null?void 0:T.prop)==null?void 0:_e.split("."))==null?void 0:ua[0])?C.endChildMenu=T==null?void 0:T.value:C.endChildMenu=T==null?void 0:T.endChildMenu)})),!C)return;const ne=hr.value,W=(Xa=Te.value)==null?void 0:Xa.findIndex(T=>(T==null?void 0:T.id)===(h==null?void 0:h.id));W!==-1&&ne&&(Te.value[W]={...Te.value[W],[ne]:u});const we=T=>{Array.isArray(T)&&T.forEach(Y=>{Array.isArray(Y==null?void 0:Y.allSelectionContents)&&Y.allSelectionContents.length>0&&(Y.contactValue=Te.value[W]??h),Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&we(Y.children)})};we(V.value),C.value=u,C.endChildMenu=C.endChildMenu||"";let ze=C!=null&&C.isMainPath&&(C!=null&&C.mainKey)?C==null?void 0:C.value:"";const Pe=T=>{Array.isArray(T)&&T.forEach(Y=>{var oa,_e;if(((Y==null?void 0:Y.type)==="Select"||(Y==null?void 0:Y.formType)&&Y.formType.toUpperCase()==="SELECT"||(Y==null?void 0:Y.columnType)&&Y.columnType.toUpperCase()==="SELECT")&&Array.isArray(Y==null?void 0:Y.menus)&&Y.menus.length>0&&Y.menus[Y.menus.length-1]===""&&(C!=null&&C.isMainPath)&&(C!=null&&C.mainKey)){const ua=(oa=Y==null?void 0:Y.prop)!=null&&oa.includes(".")?Y.prop.split(".")[0]:null,Ta=(_e=C==null?void 0:C.prop)!=null&&_e.includes(".")?C.prop.split(".")[0]:null;(!ua||!Ta||ua===Ta)&&(Y.endChildMenu=ze)}Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&Pe(Y.children)})};if(Pe(V.value),!!(C!=null&&C.mainKey)&&Array.isArray(C==null?void 0:C.menus)&&(C==null?void 0:C.menus.length)>0&&(C!=null&&C.value)&&(C==null?void 0:C.value)!==""){let T=C!=null&&C.relatedContents&&((ke=C==null?void 0:C.relatedContents)==null?void 0:ke.length)>0?(Oa=C==null?void 0:C.relatedContents)==null?void 0:Oa.find(Y=>{var $e,oa,_e,ua;return(Y==null?void 0:Y[(ua=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:ua[((_e=(oa=C==null?void 0:C.prop)==null?void 0:oa.split("."))==null?void 0:_e.length)-1]])===(C==null?void 0:C.value)}):await ss(C);if(T){const Y={...h};oe==null||oe.forEach($e=>{var oa,_e,ua,Ta,al,Ha,cl,pl,Fl,Pa,ml,$a,nl,qa,il,wl;($e==null?void 0:$e.prop)!==(C==null?void 0:C.prop)&&(C!=null&&C.relatedContents&&((oa=C==null?void 0:C.relatedContents)==null?void 0:oa.length)>0?(_e=$e==null?void 0:$e.prop)!=null&&_e.includes(".")&&((Ta=(ua=$e==null?void 0:$e.prop)==null?void 0:ua.split("."))==null?void 0:Ta[0])===((Ha=(al=C==null?void 0:C.prop)==null?void 0:al.split("."))==null?void 0:Ha[0])?Y[$e.prop]=T[(Pa=(cl=$e==null?void 0:$e.prop)==null?void 0:cl.split("."))==null?void 0:Pa[((Fl=(pl=$e==null?void 0:$e.prop)==null?void 0:pl.split("."))==null?void 0:Fl.length)-1]]??Y[$e.prop]:Y[$e.prop]=(T==null?void 0:T[$e.prop])??Y[$e.prop]:ve.same((C==null?void 0:C.menus)??[],($e==null?void 0:$e.menus)??[])&&ve.same((C==null?void 0:C.groups)??[],($e==null?void 0:$e.groups)??[])&&!ve.same((C==null?void 0:C.words)??[],($e==null?void 0:$e.words)??[])?(ml=$e==null?void 0:$e.prop)!=null&&ml.includes(".")&&((nl=($a=$e==null?void 0:$e.prop)==null?void 0:$a.split("."))==null?void 0:nl[0])!==((il=(qa=C==null?void 0:C.prop)==null?void 0:qa.split("."))==null?void 0:il[0])||(Y[$e.prop]=(T==null?void 0:T[(wl=$e==null?void 0:$e.words)==null?void 0:wl.join(".")])??(T==null?void 0:T[$e.prop])??Y[$e.prop]):(!($e!=null&&$e.isMainPath)&&ve.same((C==null?void 0:C.bindMenus)??[],($e==null?void 0:$e.bindMenus)??[]),Y[$e.prop]=(T==null?void 0:T[$e.prop])??Y[$e.prop]))}),Te.value=(ga=A.cloneDeep(Te.value))==null?void 0:ga.map($e=>($e==null?void 0:$e.id)===(h==null?void 0:h.id)?{...Y,id:$e==null?void 0:$e.id}:$e)}}if((Ea=C==null?void 0:C.optionUrl)!=null&&Ea.menuSelect){let T="";oe==null||oe.forEach(oa=>{var _e,ua,Ta,al,Ha;T===""&&((Ta=(ua=(_e=oa==null?void 0:oa.optionUrl)==null?void 0:_e.groupSelect)==null?void 0:ua[1])!=null&&Ta.includes("["))&&(T=(Ha=(al=oa==null?void 0:oa.optionUrl)==null?void 0:al.groupSelect)==null?void 0:Ha[1])});let Y=await yt(C),$e;if(Y==null||Y.forEach(oa=>{var _e,ua,Ta,al,Ha,cl,pl,Fl,Pa,ml;T===((ua=(_e=C==null?void 0:C.optionUrl)==null?void 0:_e.groupSelect)==null?void 0:ua[1])&&((Ha=(al=(Ta=C==null?void 0:C.optionUrl)==null?void 0:Ta.groupSelect)==null?void 0:al[1])!=null&&Ha.includes("["))&&((ml=A.cloneDeep(oa))==null?void 0:ml[(Pa=(Fl=(pl=(cl=C==null?void 0:C.optionUrl)==null?void 0:cl.groupSelect)==null?void 0:pl[1])==null?void 0:Fl.replaceAll("[",""))==null?void 0:Pa.replaceAll("]","")])===(C==null?void 0:C.value)&&($e=oa)}),$e){const oa={...h};oe==null||oe.forEach(_e=>{var ua,Ta,al,Ha,cl,pl,Fl,Pa,ml,$a,nl;($e!=null&&$e[_e==null?void 0:_e.label]||$e!=null&&$e[(Ha=(al=(Ta=(ua=_e==null?void 0:_e.optionUrl)==null?void 0:ua.groupSelect)==null?void 0:Ta[1])==null?void 0:al.replaceAll("[",""))==null?void 0:Ha.replaceAll("]","")])&&((Fl=(pl=(cl=_e==null?void 0:_e.optionUrl)==null?void 0:cl.groupSelect)==null?void 0:pl[1])!=null&&Fl.includes("["))&&(oa[_e.prop]=($e==null?void 0:$e[_e==null?void 0:_e.label])||($e==null?void 0:$e[(nl=($a=(ml=(Pa=_e==null?void 0:_e.optionUrl)==null?void 0:Pa.groupSelect)==null?void 0:ml[1])==null?void 0:$a.replaceAll("[",""))==null?void 0:nl.replaceAll("]","")]))}),Te.value=(_a=A.cloneDeep(Te.value))==null?void 0:_a.map(_e=>(_e==null?void 0:_e.id)===(h==null?void 0:h.id)?{...oa,id:_e==null?void 0:_e.id}:_e)}}},uu=async u=>{var Ge,wa,Ia,za,Ye,Ja,ba,Xa,ke,Oa,ga,Ea,_a,T;if(!u)return;const h=A.cloneDeep(ur.value||{});ur.value=u;const B=$i(h),z=$i(ur.value);if(z&&z!==B&&await nt(z,Ca.value||void 0)){ja.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),so.forEach($e=>{if(Object.prototype.hasOwnProperty.call(ur.value||{},$e)||Object.prototype.hasOwnProperty.call(h||{},$e)){const oa=(h==null?void 0:h[$e])??"";ur.value[$e]=oa,u[$e]=oa}}),Fa.value=(Fa.value||[]).map($e=>{if(!($e!=null&&$e.prop)||!so.includes($e.prop))return $e;const oa=(h==null?void 0:h[$e.prop])??"";return{...$e,value:oa,selectValue:oa===""?[]:[oa]}});return}let P=A.cloneDeep(c.itemData);P==null||P.map(Y=>{var $e,oa,_e,ua;return(Y==null?void 0:Y.key)==="header"&&(Array.isArray(($e=Y.contents)==null?void 0:$e[0])?Y.contents=(_e=ve.getColumnChild((oa=Y.contents)==null?void 0:oa[0]))==null?void 0:_e.map((Ta,al)=>{var Ha,cl,pl,Fl,Pa,ml;return((pl=(cl=(Ha=Fa.value)==null?void 0:Ha.find($a=>($a==null?void 0:$a.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:cl.optionUrl)==null?void 0:pl.multiple)===!0&&!Array.isArray((Fl=Object.values(u))==null?void 0:Fl[al])?Ta.value=[(Pa=Object.values(u))==null?void 0:Pa[al]]:Ta.value=(ml=Object.values(u))==null?void 0:ml[al],Ta}):Y.contents=(ua=Y.contents)==null?void 0:ua.map((Ta,al)=>{var Ha,cl,pl,Fl,Pa,ml;return((pl=(cl=(Ha=Fa.value)==null?void 0:Ha.find($a=>($a==null?void 0:$a.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:cl.optionUrl)==null?void 0:pl.multiple)===!0&&!Array.isArray((Fl=Object.values(u))==null?void 0:Fl[al])?Ta.value=[(Pa=Object.values(u))==null?void 0:Pa[al]]:Ta.value=(ml=Object.values(u))==null?void 0:ml[al],Ta})),Y});let C=Fa.value,oe=(Ge=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ge.contents;if(hr.value||(C=C==null?void 0:C.map(Y=>{var $e;return Y.value=Y.value??(($e=oe==null?void 0:oe.find((oa,_e)=>(oa==null?void 0:oa.prop)===(Y==null?void 0:Y.name)))==null?void 0:$e.value),Y})),!Or.value)return;let ne=A.cloneDeep(hr.value);(wa=hr.value)!=null&&wa.includes("·")&&(hr.value=(za=(Ia=hr.value)==null?void 0:Ia.split("·"))==null?void 0:za[0]);let W=(Ja=(Ye=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ye.contents)==null?void 0:Ja.find((Y,$e)=>(Y==null?void 0:Y.prop)===hr.value);(ba=Fa==null?void 0:Fa.value)==null||ba.forEach(Y=>{var $e,oa,_e,ua,Ta,al,Ha,cl,pl;(Y==null?void 0:Y.prop)===(W==null?void 0:W.prop)&&(Y!=null&&Y.endChildMenu)&&(($e=W==null?void 0:W.prop)!=null&&$e.includes(".")&&((_e=(oa=W==null?void 0:W.prop)==null?void 0:oa.split("."))==null?void 0:_e[0])!==((Ta=(ua=Y==null?void 0:Y.prop)==null?void 0:ua.split("."))==null?void 0:Ta[0])?W.endChildMenu=(Ha=(al=Y==null?void 0:Y.value)==null?void 0:al.split(" "))==null?void 0:Ha[0]:W.endChildMenu=(pl=(cl=Y==null?void 0:Y.endChildMenu)==null?void 0:cl.split(" "))==null?void 0:pl[0])});let we=W!=null&&W.isMainPath&&(W!=null&&W.mainKey)?W==null?void 0:W.value:"",ze=C,Pe=le.value;if(Pe!=null&&Pe.find(Y=>(W==null?void 0:W.prop)===(Y==null?void 0:Y.key))&&(Pe=Pe==null?void 0:Pe.filter(Y=>(W==null?void 0:W.prop)!==(Y==null?void 0:Y.key))),Pe!=null&&Pe.find(Y=>ne===(Y==null?void 0:Y.key))&&(Pe=Pe==null?void 0:Pe.filter(Y=>ne!==(Y==null?void 0:Y.key))),(W==null?void 0:W.formType)==="Select"?ze=ze==null?void 0:ze.map(Y=>{var $e,oa,_e,ua,Ta,al,Ha,cl,pl,Fl,Pa,ml,$a,nl,qa,il;return(Y==null?void 0:Y.type)==="Select"&&((($e=Y==null?void 0:Y.allSelectionContents)==null?void 0:$e.length)>0&&(Y.contactValue=u),((W==null?void 0:W.prop)===(Y==null?void 0:Y.prop)||ne===(Y==null?void 0:Y.prop))&&W&&(Array.isArray(W.value)&&((oa=W.value)==null?void 0:oa.length)>0&&((_e=W.value)!=null&&_e.every(wl=>typeof wl=="string"))?(Pe.push({key:Y==null?void 0:Y.prop,value:[(Ta=W.value)==null?void 0:Ta[((ua=W.value)==null?void 0:ua.length)-1]]}),Y.selectValue=(al=Pe==null?void 0:Pe.find(wl=>(wl==null?void 0:wl.key)===(Y==null?void 0:Y.prop)))==null?void 0:al.value):Array.isArray(W.value)&&((Ha=W.value)==null?void 0:Ha.length)===0?(Pe=[],Y.selectValue=[],u[Y==null?void 0:Y.prop]=""):Array.isArray(Y.value)&&Pe.push({key:Y==null?void 0:Y.prop,value:[(cl=Y.value)==null?void 0:cl[(Y==null?void 0:Y.length)-1]]})),((Fl=Y==null?void 0:Y.menus)==null?void 0:Fl[((pl=Y==null?void 0:Y.menus)==null?void 0:pl.length)-1])===""&&(W!=null&&W.isMainPath)&&(W!=null&&W.mainKey)&&((Pa=Y==null?void 0:Y.prop)!=null&&Pa.includes(".")&&(($a=(ml=Y==null?void 0:Y.prop)==null?void 0:ml.split("."))==null?void 0:$a[0])!==((qa=(nl=W==null?void 0:W.prop)==null?void 0:nl.split("."))==null?void 0:qa[0])||(Y.endChildMenu=(il=we==null?void 0:we.split(" "))==null?void 0:il[0]))),Y.value=(u==null?void 0:u[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y}):(W==null?void 0:W.formType)!=="Input"&&(ze=ze==null?void 0:ze.map(Y=>(Y.value=(u==null?void 0:u[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y))),le.value=Pe,ze!=null&&ze.some(Y=>(Y==null?void 0:Y.functionName)&&(Y==null?void 0:Y.functionName)!=="")){let Y=await vt([u],V==null?void 0:V.value,"Auto",Te.value),$e=[];(Xa=ze==null?void 0:ze.filter(_e=>(_e==null?void 0:_e.functionName)&&(_e==null?void 0:_e.functionName)!==""))==null||Xa.forEach(_e=>{var ua;((ua=_e==null?void 0:_e.functionRelatedWords)==null?void 0:ua.length)>0&&($e=[...$e,..._e==null?void 0:_e.functionRelatedWords])}),$e=$e==null?void 0:$e.filter(_e=>(_e==null?void 0:_e[0])!=="@");let oa=[];for(let _e in Y==null?void 0:Y[0])$e!=null&&$e.find(ua=>_e===ua||(_e==null?void 0:_e.includes("."+ua)))&&oa.push(((ke=Y==null?void 0:Y[0])==null?void 0:ke[_e])!=="");(Y==null?void 0:Y.length)>0&&oa.every(_e=>_e)&&(ze=ze==null?void 0:ze.map(_e=>{var ua;return _e.value=((ua=Y==null?void 0:Y[0])==null?void 0:ua[_e==null?void 0:_e.prop])??_e.value,_e})),ur.value=Y==null?void 0:Y[0]}if(Fa.value=ze,W=Object.assign({},W??{},{relatedWords:(ga=(Oa=Fa==null?void 0:Fa.value)==null?void 0:Oa.find(Y=>(Y==null?void 0:Y.prop)===(W==null?void 0:W.prop)))==null?void 0:ga.relatedWords}),(W==null?void 0:W.mainKey)&&(W!=null&&W.value)&&(W==null?void 0:W.value)!==""){let Y=W!=null&&W.relatedContents&&((Ea=W==null?void 0:W.relatedContents)==null?void 0:Ea.length)>0?(_a=W==null?void 0:W.relatedContents)==null?void 0:_a.find($e=>{var oa,_e,ua,Ta;return($e==null?void 0:$e[(Ta=(oa=W==null?void 0:W.prop)==null?void 0:oa.split("."))==null?void 0:Ta[((ua=(_e=W==null?void 0:W.prop)==null?void 0:_e.split("."))==null?void 0:ua.length)-1]])===(W==null?void 0:W.value)}):await ss(W);if(Y&&JSON.stringify(Y)!=="{}"){let $e=ze;$e=$e==null?void 0:$e.map(_e=>{var ua,Ta,al,Ha,cl,pl,Fl,Pa,ml,$a,nl,qa,il,wl,Dl,xr,Rl,gl,Nl,Xl,Tl;if((W==null?void 0:W.prop)===(_e==null?void 0:_e.prop))_e.value=(Y==null?void 0:Y[(ua=_e==null?void 0:_e.words)==null?void 0:ua.join(".")])??(Y==null?void 0:Y[_e==null?void 0:_e.prop])??Y[(cl=(Ta=_e==null?void 0:_e.prop)==null?void 0:Ta.split("."))==null?void 0:cl[((Ha=(al=_e==null?void 0:_e.prop)==null?void 0:al.split("."))==null?void 0:Ha.length)-1]];else if(W!=null&&W.relatedContents&&((pl=W==null?void 0:W.relatedContents)==null?void 0:pl.length)>0)_e.value=(Fl=_e==null?void 0:_e.prop)!=null&&Fl.includes(".")&&((ml=(Pa=_e==null?void 0:_e.prop)==null?void 0:Pa.split("."))==null?void 0:ml[0])===((nl=($a=W==null?void 0:W.prop)==null?void 0:$a.split("."))==null?void 0:nl[0])?Y[(Dl=(qa=_e==null?void 0:_e.prop)==null?void 0:qa.split("."))==null?void 0:Dl[((wl=(il=_e==null?void 0:_e.prop)==null?void 0:il.split("."))==null?void 0:wl.length)-1]]:(Y==null?void 0:Y[_e==null?void 0:_e.prop])??(_e==null?void 0:_e.value);else if(ve.same((W==null?void 0:W.menus)??[],(_e==null?void 0:_e.menus)??[])&&ve.same((W==null?void 0:W.groups)??[],(_e==null?void 0:_e.groups)??[])&&!ve.same((W==null?void 0:W.words)??[],(_e==null?void 0:_e.words)??[]))if((xr=_e==null?void 0:_e.prop)!=null&&xr.includes(".")&&((gl=(Rl=_e==null?void 0:_e.prop)==null?void 0:Rl.split("."))==null?void 0:gl[0])!==((Xl=(Nl=W==null?void 0:W.prop)==null?void 0:Nl.split("."))==null?void 0:Xl[0])){let Yl=Object.keys(Y);Yl=Yl==null?void 0:Yl.find(nr=>{var Ul;return nr==null?void 0:nr.includes("."+((Ul=_e==null?void 0:_e.words)==null?void 0:Ul.join(".")))}),_e.value=(Y==null?void 0:Y[Yl])??(Y==null?void 0:Y[_e==null?void 0:_e.prop])??_e.value}else{let Yl=Object.keys(Y);Yl=Yl==null?void 0:Yl.find(nr=>{var Ul;return nr==null?void 0:nr.includes("."+((Ul=_e==null?void 0:_e.words)==null?void 0:Ul.join(".")))}),_e.value=(Y==null?void 0:Y[(Tl=_e==null?void 0:_e.words)==null?void 0:Tl.join(".")])??(Y==null?void 0:Y[Yl])??(Y==null?void 0:Y[_e==null?void 0:_e.prop])??_e.value}else!(_e!=null&&_e.isMainPath)&&ve.same((W==null?void 0:W.bindMenus)??[],(_e==null?void 0:_e.bindMenus)??[]),_e.value=(Y==null?void 0:Y[_e==null?void 0:_e.prop])??_e.value;return _e}),Fa.value=$e;let oa={};(T=Fa.value)==null||T.forEach(_e=>{oa[_e.prop]=_e==null?void 0:_e.value}),ur.value=oa}}Or.value=!0,M.value=!1},du=u=>u?(u==null?void 0:u.toUpperCase())==="INPUT"?"TEXTAREA":u:"TEXTAREA",pu=u=>{var C,oe;const h=(oe=(C=xa.value)==null?void 0:C.find(ne=>(ne==null?void 0:ne.label)===(u==null?void 0:u.label)))==null?void 0:oe.multiple,B=u==null?void 0:u.prop;if((u==null?void 0:u.formType)!="Select")return;Te.value.forEach(ne=>{const W=ne==null?void 0:ne[B];h&&Eo.isString(W)&&(ne[B]=[W]),!h&&!Eo.isString(W)&&(ne[B]="")})},It=(u,h)=>{var B;return h==null||h.forEach(z=>{u[z==null?void 0:z.prop]=z==null?void 0:z.value}),u.children&&((B=u.children)==null?void 0:B.length)>0&&(u.children=u.children.map(z=>It(z,h))),u},it=u=>{var B,z,P,C,oe,ne;Ri("");const h=(B=Fa.value)==null?void 0:B.reduce((W,we)=>(W[we.name]=we.value,W),{});if(((z=Object.keys(h))==null?void 0:z.length)>0){ur.value=h,Ca.value="",La.value=(P=Te.value)==null?void 0:P.length,Ie.value=(C=Ya.value)==null?void 0:C.filter(we=>(we==null?void 0:we.label)!=="新增");const W=(ne=(oe=De.value)==null?void 0:oe.filter(we=>(we==null?void 0:we.label)!=="操作"))==null?void 0:ne.map(we=>{var Pe,Re,Ge;const ze=(Re=(Pe=xa.value)==null?void 0:Pe.find(wa=>(wa==null?void 0:wa.label)===(we==null?void 0:we.label)))==null?void 0:Re.multiple;return pu(we),{...we,contents:(we==null?void 0:we.options)??[],optionUrl:we!=null&&we.formMenuSelect&&((Ge=we==null?void 0:we.formMenuSelect)==null?void 0:Ge.length)>0?{groupSelect:we==null?void 0:we.groupSelect,menuSelect:we==null?void 0:we.formMenuSelect,selectRelateType:"",type:we==null?void 0:we.formType,multiple:ze}:null}});V.value=W==null?void 0:W.map(we=>It(we,[{prop:"type",value:"edit"},{prop:"columnType",value:du(we==null?void 0:we.formType)||(we==null?void 0:we.columnType)}])),u==="createClick"&&(X.value="新增",Vi(!0))}},hi={START:"开始时间",END:"结束时间",HOURS:"工时"},fu=(u,h)=>Number(A.dayjs(h).diff(A.dayjs(u),"day",!0).toFixed(1)),Ot=u=>{var C;const h=c.itemData,B=(C=h==null?void 0:h.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:C.contents,z=new Map;return B==null||B.forEach((oe,ne)=>{const{label:W}=oe;z.set(W,ne)}),!z.has(hi.START)||!z.has(hi.END)||!z.has(hi.HOURS)?u:u==null?void 0:u.map(oe=>{const ne=oe==null?void 0:oe[hi.START],W=oe==null?void 0:oe[hi.END],we=fu(ne,W);return ne&&W&&(oe[hi.HOURS]=`${we}天`),oe})},Lt=(u,h,B=0)=>{if(B>((h==null?void 0:h.length)??""))return u;const z=h==null?void 0:h[B],P=new Map;for(const oe of u){const ne=oe[z];P.has(ne)||P.set(ne,[]),P.get(ne)&&P.get(ne).push(oe)}const C=[];for(const[oe,ne]of P){const[W,...we]=ne,ze={...W};B+1===((h==null?void 0:h.length)??"")?ze.children=ne==null?void 0:ne.map(Pe=>(Pe.level=A.cloneDeep(B)+1,Pe)).filter((Pe,Re)=>Re!==0):we.length>0&&(ze.children=Lt(we,h,B+1)),ze.level=B,C.push(ze)}return C},Rt=(u,h,B)=>{var P;if(!(h!=null&&h.contents)||((P=h==null?void 0:h.contents)==null?void 0:P.length)===0)return u;let z=[];return z=Lt(u,h==null?void 0:h.contents,0),z},$t=async(u,h)=>{var za,Ye,Ja,ba,Xa,ke,Oa,ga,Ea,_a,T,Y,$e,oa,_e,ua,Ta,al,Ha,cl,pl,Fl,Pa,ml,$a,nl,qa,il,wl,Dl,xr,Rl,gl,Nl,Xl,Tl,Yl,nr,Ul,vr,qr,mr,sr,dr,Ft,Pt,jt;const B=u==null?void 0:u.filter(ha=>(ha==null?void 0:ha.key)==="header");u==null||u.filter(ha=>(ha==null?void 0:ha.key)==="tableIndexColumn")[0];const z=u==null?void 0:u.filter(ha=>(ha==null?void 0:ha.key)==="childTree")[0];let P=!0;if((Ja=(Ye=(za=u==null?void 0:u.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:za.value)==null?void 0:Ye.find(ha=>(ha==null?void 0:ha.value)==="onPamButtonContents"))!=null&&Ja.content){let ha=(ke=(Xa=(ba=u==null?void 0:u.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:ba.value)==null?void 0:Xa.find(Sl=>(Sl==null?void 0:Sl.value)==="onPamButtonContents"))==null?void 0:ke.content;ha=(Oa=ha==null?void 0:ha.split(":"))==null?void 0:Oa[1],ha=(ga=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:ga.split(","),P=!!(ha!=null&&ha.find(Sl=>Sl==="操作"))}const C=u==null?void 0:u.find(ha=>(ha==null?void 0:ha.key)==="page"),oe=u==null?void 0:u.find(ha=>(ha==null?void 0:ha.key)==="rowButton"),ne=u==null?void 0:u.find(ha=>(ha==null?void 0:ha.key)==="extraButton"),W=u==null?void 0:u.filter(ha=>(ha==null?void 0:ha.key)==="tableContents"),we=u==null?void 0:u.filter(ha=>(ha==null?void 0:ha.key)==="bottomButton"),ze=u==null?void 0:u.filter(ha=>(ha==null?void 0:ha.key)==="tableIndex");xa.value=(_a=(Ea=u==null?void 0:u.filter(ha=>(ha==null?void 0:ha.key)==="tableToForm"))==null?void 0:Ea[0])==null?void 0:_a.contents,ie.value=(C==null?void 0:C.contents)??!0;let Pe=[];Il.value===""?Pe=B==null?void 0:B[0]:Pe=(B==null?void 0:B.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+Il.value+")"))??(B==null?void 0:B.find(ha=>!(ha!=null&&ha.selectLabel)));let Re=[];Il.value===""?Re=ze==null?void 0:ze[0]:Re=(ze==null?void 0:ze.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+Il.value+")"))??(ze==null?void 0:ze.find(ha=>!(ha!=null&&ha.selectLabel)));let Ge=[],wa=[];if(((T=Pe==null?void 0:Pe.contents)==null?void 0:T.length)>0){let ha=[],Sl=Pe==null?void 0:Pe.contents;if(Array.isArray(Sl==null?void 0:Sl[0])&&((Y=Sl==null?void 0:Sl[0])!=null&&Y.every(Wa=>!(Wa!=null&&Wa.children)))&&(Sl=Sl==null?void 0:Sl[0]),Sl.some(Wa=>Array.isArray(Wa)&&(Wa==null?void 0:Wa.find(We=>We.children))))ha=($e=ve.getGradeColumns(Sl,P))==null?void 0:$e[0],ha!=null&&ha.find(Wa=>(Wa==null?void 0:Wa.label)==="操作")||ha.push({label:"操作",prop:"operate",type:"operate"});else{let Wa=Sl.some(We=>Array.isArray(We))?Sl==null?void 0:Sl[0]:Sl;Wa!=null&&Wa.find(We=>(We==null?void 0:We.label)==="操作")||Wa.push({label:"操作",prop:"operate",type:"operate"}),Wa==null||Wa.forEach((We,er)=>{var Rr,zr,$r,Cr,ai,yi,gi,br,_n,$n,bi,an,Vn,Wt,Kt,Gt,Yt,Jt,Xt,Zt;if((zr=(Rr=Ee.value)==null?void 0:Rr.split("/"))==null||zr.forEach(ir=>{var yr,Dn,Qt;ir!==""&&((Qt=(Dn=(yr=ir==null?void 0:ir.split(_+"updateLoading"))==null?void 0:yr[0])==null?void 0:Dn.split(_+"loading"))==null||Qt[0])}),We!=null&&We.methodContent){let ir=(ai=(Cr=($r=We==null?void 0:We.methodContent)==null?void 0:$r.replace("@","%%#"))==null?void 0:Cr.split("%%#"))==null?void 0:ai[1];if(ir=ir==null?void 0:ir.slice(0,(ir==null?void 0:ir.length)-1),ir=ve.contentTransArrayToAllNoExtra(ir??"",","),(yi=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("@Button")))!=null&&yi.includes("Prop")&&((gi=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("Type")))!=null&&gi.includes("Manual"))){let yr=(_n=(br=ir==null?void 0:ir.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:br.split(":"))==null?void 0:_n[1];yr=((an=(bi=($n=yr==null?void 0:yr.replaceAll("[",""))==null?void 0:$n.replaceAll("]",""))==null?void 0:bi.split(","))==null?void 0:an[1])??"算法执行",Ge.push(yr)}else if((Vn=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("@Button")))!=null&&Vn.includes("Row")&&((Wt=ir==null?void 0:ir.find(yr=>yr==null?void 0:yr.includes("Type")))!=null&&Wt.includes("Manual"))){let yr=(Gt=(Kt=ir==null?void 0:ir.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:Kt.split(":"))==null?void 0:Gt[1];yr=((Xt=(Jt=(Yt=yr==null?void 0:yr.replaceAll("[",""))==null?void 0:Yt.replaceAll("]",""))==null?void 0:Jt.split(","))==null?void 0:Xt[1])??"算法执行",wa.push(yr)}}(Zt=xa.value)==null||Zt.find(ir=>(ir==null?void 0:ir.prop)===(We==null?void 0:We.prop)),ha.push({label:(We==null?void 0:We.label)==="操作"?P?"操作":"":(We==null?void 0:We.label)??"",prop:(We==null?void 0:We.label)==="操作"?"operate":(We==null?void 0:We.prop)??"a"+er,width:We!=null&&We.width?parseInt(We.width):"",fixed:(We==null?void 0:We.fixed)??void 0,sortable:(We==null?void 0:We.sortable)??!1,filterable:(We==null?void 0:We.filterable)??!1,operable:(We==null?void 0:We.operable)??!1,showSummary:(We==null?void 0:We.showSummary)??!1,align:(We==null?void 0:We.align)??"left",showOverflowTooltip:(We==null?void 0:We.showOverflowTooltip)??!0,isNotDrag:(We==null?void 0:We.isNotDrag)??!1,isEditCol:(We==null?void 0:We.isEditCol)??!1,isOperate:(We==null?void 0:We.isOperate)??!1,id:(We==null?void 0:We.id)??er,type:(We==null?void 0:We.label)==="操作"?"operate":void 0,formType:(We==null?void 0:We.formType)??(We!=null&&We.groupSelect?"Select":""),disabled:We==null?void 0:We.disabled,options:(We==null?void 0:We.options)??[],value:(We==null?void 0:We.value)??"",isExistChild:(We==null?void 0:We.isExistChild)??!1,mainKey:(We==null?void 0:We.mainKey)??er===0,allSelectionContents:(We==null?void 0:We.allContents)??[],filterContent:We==null?void 0:We.filterContents,menus:We==null?void 0:We.menus,groups:We==null?void 0:We.groups,words:We==null?void 0:We.words,filter:We==null?void 0:We.filter,bindMenus:We==null?void 0:We.bindMenus,fatherPath:We==null?void 0:We.fatherPath,isMainPath:We==null?void 0:We.isMainPath,required:(We==null?void 0:We.required)??!1,relatedContents:We==null?void 0:We.relatedContents,functionName:We==null?void 0:We.functionName,functionRelatedWords:We==null?void 0:We.functionRelatedWords,calculatorFilter:We==null?void 0:We.calculatorFilter,relatedPages:We==null?void 0:We.relatedPages,multiple:(We==null?void 0:We.multiple)??!1,multipleLimit:We==null?void 0:We.multipleLimit})})}R.value=(oa=we==null?void 0:we[0])==null?void 0:oa.contents;const tn=ve.getNewColumnChild(ha),Ht=Wa=>Array.isArray(Wa)?Wa.map(We=>(Array.isArray(We==null?void 0:We.children)&&We.children.length>0?(We.sortable=!1,Ht(We.children)):(We==null?void 0:We.prop)==="operate"||(We==null?void 0:We.label)==="操作"||(We==null?void 0:We.type)==="operate"||(We.sortable=!1),We)):Wa;Ht(tn),await eo(tn),Qf(fe.value,tn),V.value=tn,Da.value=tn,r.value=(_e=V.value)==null?void 0:_e.map(Wa=>Wa==null?void 0:Wa.label);let sn=(Ta=(ua=ve.getAllLeafNodes(V.value))==null?void 0:ua.filter(Wa=>(Wa==null?void 0:Wa.type)!=="operate"))==null?void 0:Ta.map((Wa,We)=>({prop:(Wa==null?void 0:Wa.prop)??"a"+We,column:Wa.label}));Dr.value=sn;let en=[];Il.value===""?en=W==null?void 0:W[0]:en=(W==null?void 0:W.find(Wa=>(Wa==null?void 0:Wa.selectLabel)==="("+Il.value+")"))??(W==null?void 0:W.find(Wa=>!(Wa!=null&&Wa.selectLabel)));let ei=Array.isArray((al=en==null?void 0:en.contents)==null?void 0:al[0])&&((Ha=en==null?void 0:en.contents)!=null&&Ha[0].every(Wa=>Array.isArray(Wa)))?(cl=en==null?void 0:en.contents)==null?void 0:cl[0]:en==null?void 0:en.contents;Re!=null&&Re.contents&&((pl=Re==null?void 0:Re.contents)==null?void 0:pl.length)!==0&&(ei=(Fl=A.cloneDeep(ei))==null?void 0:Fl.map((Wa,We)=>{if(!Array.isArray(Wa)){let er={};for(let Rr in Wa)Rr!=="id"&&Rr!=="index"&&(er[Rr]=Wa[Rr]);Wa=Object.values(er)}return Wa}));const Cu=!!((Pa=V.value)!=null&&Pa.find(Wa=>Wa.prop==="index"));ei=sc(ei,Re==null?void 0:Re.contents,Cu);const vi=[];ei==null||ei.forEach((Wa,We)=>{var Rr;let er={};if(Array.isArray(Wa)){let zr=[];Wa==null||Wa.filter($r=>!($r!=null&&$r.id)).forEach(($r,Cr)=>{var ai,yi,gi,br,_n,$n;if((ai=sn==null?void 0:sn[Cr])!=null&&ai.prop&&!Array.isArray($r)){let bi={};bi[sn[Cr].column]=$r,L!=null&&L.value&&((yi=L==null?void 0:L.value)==null?void 0:yi.length)>0&&((gi=L==null?void 0:L.value)!=null&&gi.find(an=>JSON.stringify(an==null?void 0:an[0])===JSON.stringify(bi)))&&(zr=(br=L==null?void 0:L.value)==null?void 0:br.find(an=>JSON.stringify(an==null?void 0:an[0])===JSON.stringify(bi))),zr&&zr.length>0?er[sn[Cr].prop]=zr!=null&&zr.find(an=>{var Vn;return((Vn=Object.keys(an))==null?void 0:Vn[0])===sn[Cr].column})?(_n=zr==null?void 0:zr.find(an=>{var Vn;return((Vn=Object.keys(an))==null?void 0:Vn[0])===sn[Cr].column}))==null?void 0:_n[sn[Cr].column]:$r:er[sn[Cr].prop]=$r}else Array.isArray($r)&&(($n=sn[Cr])!=null&&$n.prop?er[sn[Cr].prop]=$r:er.children=mt($r,sn))})}else er=Wa;if(Array.isArray(Wa)&&Wa.some(zr=>zr==null?void 0:zr.id)){const zr=(Rr=Wa==null?void 0:Wa.find($r=>$r.id))==null?void 0:Rr.id;vi.push(Object.assign(er,{id:io(zr)}))}else er.id?vi.push(er):vi.push(Object.assign(er,{id:We.toString()}))});try{const Wa=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),We=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),er=Wa==null?void 0:Wa.tableId,Rr=Wa==null?void 0:Wa.compIndex;if(er&&Array.isArray(We)&&We.length>0&&String(er)===String(c==null?void 0:c.parentTableId)&&String(Rr)===String(c==null?void 0:c.index)){const zr=new Set(vi.map(Cr=>String(Cr==null?void 0:Cr.id))),$r=We.filter(Cr=>!zr.has(String(Cr)));if($r.length>0){const Cr=Wa==null?void 0:Wa.pageKey,ai=Cr!=null&&Cr.startsWith("/")?Cr.substring(1):Cr;((h==null?void 0:h[Cr])||(h==null?void 0:h[ai])||[]).filter(br=>{var _n,$n;return((_n=br==null?void 0:br.key)==null?void 0:_n.type)==="data"&&String(($n=br==null?void 0:br.key)==null?void 0:$n.tableId)===String(er)&&$r.includes(br==null?void 0:br.id)}).forEach(br=>{var _n;zr.has(String(br==null?void 0:br.id))||(vi.push({id:br==null?void 0:br.id,...((_n=br==null?void 0:br.value)==null?void 0:_n.tableData)||{}}),zr.add(String(br==null?void 0:br.id)))})}}}catch{}let mi=null;try{const Wa=`ocr_committed_temp_ids_v1:${String((c==null?void 0:c.parentTableId)??"")}:${String((c==null?void 0:c.index)??"")}`,We=JSON.parse(sessionStorage.getItem(Wa)||"null");Array.isArray(We)&&We.length>0&&(mi=new Set(We.map(er=>String(er))))}catch{}const Ut=Array.from(((ml=Na.value)==null?void 0:ml.values())||[]).filter(Wa=>!(!(Wa!=null&&Wa._isOCRRow&&(Wa==null?void 0:Wa._ocrTableId)===(c==null?void 0:c.index))||mi&&mi.has(String(Wa==null?void 0:Wa.id)))),Du=(Te.value||[]).map(Wa=>String(Wa==null?void 0:Wa.id)),qt=ci(vi,Du);if(Te.value=Rt(qt,z,V.value),Ke.value=qt,($a=Ke.value)==null||$a.forEach(Wa=>{var We;(We=Na.value)==null||We.set(Wa.id,Wa)}),mi&&mi.size>0)try{const Wa=new Set(Array.from(mi.values()));Te.value=(Te.value||[]).filter(We=>!Wa.has(String(We==null?void 0:We.id))),Ke.value=(Ke.value||[]).filter(We=>!Wa.has(String(We==null?void 0:We.id))),Wa.forEach(We=>{var er,Rr;try{(Rr=(er=Na.value)==null?void 0:er.delete)==null||Rr.call(er,We)}catch{}})}catch{}const uo=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ot=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(uo&&Array.isArray(ot)&&ot.length>0&&String(uo==null?void 0:uo.compIndex)===String(c==null?void 0:c.index)){const Wa=new Set((Ke.value||[]).map(We=>String(We==null?void 0:We.id)));ot.filter(We=>!Wa.has(String(We)))}if(Ut.length>0){const Wa=new Set((Te.value||[]).map(er=>er==null?void 0:er.id)),We=Ut.filter(er=>!Wa.has(er.id));We.length>0&&(Te.value=[...Te.value||[],...We],Ke.value=[...Ke.value||[],...We],We.forEach(er=>{var Rr;return(Rr=Na.value)==null?void 0:Rr.set(er.id,er)}))}}else V.value=[],De.value=[],Te.value=[],Ke.value=[],Na.value=new Map;if(wa=[...new Set(wa)],wa=wa==null?void 0:wa.map(ha=>({label:ha,type:"methodButton"})),((nl=oe==null?void 0:oe.contents)==null?void 0:nl.length)>0?ka.value=oe==null?void 0:oe.contents:ka.value=[],ka.value=[...ka.value,...wa],Ge=[...new Set(Ge)],Ge=Ge==null?void 0:Ge.map(ha=>({label:ha,type:"methodButton"})),((qa=ne==null?void 0:ne.contents)==null?void 0:qa.length)>0)if((Dl=(wl=(il=u==null?void 0:u.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:il.value)==null?void 0:wl.find(ha=>(ha==null?void 0:ha.value)==="onButtonContents"))!=null&&Dl.content){let ha=(gl=(Rl=(xr=u==null?void 0:u.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:xr.value)==null?void 0:Rl.find(Sl=>(Sl==null?void 0:Sl.value)==="onButtonContents"))==null?void 0:gl.content;if(ha=(Nl=ha==null?void 0:ha.split(":"))==null?void 0:Nl[1],ha=(Xl=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:Xl.split(","),Ie.value=(Tl=ne==null?void 0:ne.contents)==null?void 0:Tl.filter(Sl=>ha==null?void 0:ha.find(tn=>tn===(Sl==null?void 0:Sl.label))),Ya.value=(Yl=ne==null?void 0:ne.contents)==null?void 0:Yl.filter(Sl=>ha==null?void 0:ha.find(tn=>tn===(Sl==null?void 0:Sl.label))),(nr=ne==null?void 0:ne.contents)!=null&&nr.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别")&&!((Ul=Ie.value)!=null&&Ul.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别"))){const Sl=(vr=ne==null?void 0:ne.contents)==null?void 0:vr.find(tn=>(tn==null?void 0:tn.label)==="OCR识别");Ie.value=[...Ie.value,Sl],Ya.value=[...Ya.value,Sl]}K.value=!!(ha!=null&&ha.find(Sl=>Sl==="搜索")),F.value=!!(ha!=null&&ha.find(Sl=>Sl==="块状显示"))}else Ie.value=ne==null?void 0:ne.contents,Ya.value=ne==null?void 0:ne.contents;else Ie.value=[],Ya.value=[];Ie.value=[...Ie.value,...Ge],Ya.value=[...Ya.value,...Ge],typeof Ee.value=="string"&&Ee.value==="设备管理/试验设备"&&(c==null?void 0:c.compName)==="设备列表"?((qr=Ie.value)!=null&&qr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(Ie.value=[...Ie.value||[],{label:"OCR识别"}]),(mr=Ya.value)!=null&&mr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(Ya.value=[...Ya.value||[],{label:"OCR识别"}])):(Ie.value=(Ie.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别"),Ya.value=(Ya.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别")),(sr=Ie.value)!=null&&sr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(Ie.value=[...Ie.value||[],{label:"切换视图"}]),(dr=Ya.value)!=null&&dr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(Ya.value=[...Ya.value||[],{label:"切换视图"}]),La.value=((Ft=Te==null?void 0:Te.value)==null?void 0:Ft.length)??0,Ot(Te.value),ln.value=Te.value,Vl.value&&(V.value=(jt=(Pt=De.value)==null?void 0:Pt.filter(ha=>(ha==null?void 0:ha.label)!=="操作"))==null?void 0:jt.map(ha=>{var Sl;return{...ha,type:"edit",optionUrl:ha!=null&&ha.formMenuSelect&&((Sl=ha==null?void 0:ha.formMenuSelect)==null?void 0:Sl.length)>0?{groupSelect:ha==null?void 0:ha.groupSelect,menuSelect:ha==null?void 0:ha.formMenuSelect,selectRelateType:"",type:ha==null?void 0:ha.formType}:null}}),it())};e.watch(()=>[c.itemData,Il.value,Tn.value,pn.value,L==null?void 0:L.value],async()=>{var u,h,B,z,P,C;if((u=c==null?void 0:c.itemData)!=null&&u.find(oe=>(oe==null?void 0:oe.key)==="columnPath")&&!((h=Q.value)!=null&&h.find(oe=>{var ne,W;return(oe==null?void 0:oe.key)===((W=(ne=c==null?void 0:c.itemData)==null?void 0:ne.find(we=>(we==null?void 0:we.key)==="columnPath"))==null?void 0:W.contents)}))){let oe=Q.value,ne={key:(z=(B=c==null?void 0:c.itemData)==null?void 0:B.find(W=>(W==null?void 0:W.key)==="columnPath"))==null?void 0:z.contents,value:(C=(P=c==null?void 0:c.itemData)==null?void 0:P.find(W=>(W==null?void 0:W.key)==="columnUsingPath"))==null?void 0:C.contents};oe!=null&&oe.find(W=>(W==null?void 0:W.key)===(ne==null?void 0:ne.key))?oe=oe==null?void 0:oe.map(W=>((W==null?void 0:W.key)===(ne==null?void 0:ne.key)&&(W.value=ne.value),W)):oe.push(ne),sa.setTableViewContents(oe)}await $t(c.itemData,c.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>c==null?void 0:c.operatingForm,u=>{u!=null&&u.form&&(Ri(u==null?void 0:u.form),X.value=u==null?void 0:u.dialogTitle,Aa.value=!0,Z.value=!0)},{immediate:!0,deep:!0});const hu=()=>{var u;(u=k.value)!=null&&u.includes("read")&&(Vl.value=!Vl.value)},vu=()=>{_r.value=!_r.value};e.watch(()=>{var u;return(u=c==null?void 0:c.config)==null?void 0:u.viewport},u=>{var h;k.value=u,(u==null?void 0:u.length)===0?Vl.value=!1:(u!=null&&u.includes("read")||(Vl.value=!0),u!=null&&u.includes("edit")||(Vl.value=!1)),O.value=((h=c==null?void 0:c.config)==null?void 0:h.showIndex)||Vl.value},{immediate:!0}),e.watch(()=>Vl.value,u=>{var h;u?(it("viewChange"),sa.setCacheUpdatingData(null)):(Ie.value=Ya.value,V.value=Da.value,H.value&&(sa.setTableLoading(c==null?void 0:c.index),Me("change",H.value))),O.value=u||((h=c==null?void 0:c.config)==null?void 0:h.showIndex),Gl.value=[]},{immediate:!0}),e.watch(()=>{var u;return(u=fn.value)==null?void 0:u.length},u=>{u===0&&(be.currentPage=1)}),e.watch(()=>c==null?void 0:c.compNames,u=>{p.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:u||[],width:1}]},{immediate:!0}),e.ref(!1);const mu=(u,h)=>{var B;it("createClick"),h===be.pageSize&&(be.currentPage=Math.ceil(((B=Te.value)==null?void 0:B.length)/be.pageSize))},yu=async(u,h,B)=>{var P,C,oe,ne,W;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(z&&so.includes(z)&&B!==void 0&&B!==null&&String(B).trim()!==""){const we=String(B).trim();if(await nt(we,u==null?void 0:u.id)){ja.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Pe=(P=Te.value)==null?void 0:P.findIndex(Ge=>(Ge==null?void 0:Ge.id)===(u==null?void 0:u.id)),Re=Pe!==-1?(oe=(C=Te.value)==null?void 0:C[Pe])==null?void 0:oe[z]:void 0;z&&(u[z]=Re??"");return}}if(Vl.value){const we=u==null?void 0:u.id;we!=null&&(v.value.has(we)||v.value.set(we,A.cloneDeep(u)),s.value.add(we));const ze=(ne=Te.value)==null?void 0:ne.findIndex(Pe=>(Pe==null?void 0:Pe.id)===(u==null?void 0:u.id));ze!==-1&&z&&(Te.value[ze]={...Te.value[ze],[z]:B}),co(B,u,h);return}co(B,u,h),ur.value=A.cloneDeep(u),Ca.value=u==null?void 0:u.id,La.value=(W=Te.value)==null?void 0:W.length,X.value=u!=null&&u._isTemp?"新增":"编辑",Vi(!1)},gu=async()=>{var u,h;try{const B=[];if(c!=null&&c.related&&Array.isArray(c.related)&&(console.log("props.related",c.related),c.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const P=z.split("_")[1];P&&(B.push(`content_${P}`),B.push(`struct_${P}`))}})),B.length===0&&(c!=null&&c.itemData)){const z=(h=(u=c.itemData)==null?void 0:u.find(P=>(P==null?void 0:P.key)==="contentTableId"))==null?void 0:h.contents;z&&(B.push(`content_${z}`),B.push(`struct_${z}`))}return B}catch(B){return console.error("获取 tableNames 失败:",B),[]}},bu=async(u,h,B)=>{var C,oe;if(!B||typeof B!="string"||B.trim()===""){const ne=(h==null?void 0:h.property)??(h==null?void 0:h.prop),W=`${u==null?void 0:u.id}:${ne}`;d.value.delete(W),g.value.set(W,!1);return}const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),P=`${u==null?void 0:u.id}:${z}`;g.value.set(P,!0);try{const ne=await gu();if(ne.length===0){console.warn("未找到同名表,跳过全局搜索"),d.value.delete(P),g.value.set(P,!1);return}const W=parseInt((C=sl.value)==null?void 0:C.plat_id);if(!W){console.warn("platId 无效,跳过全局搜索"),d.value.delete(P),g.value.set(P,!1);return}const we=await A.getAllTables({platId:W,tableNames:ne??[]}),ze=((oe=we==null?void 0:we.data)==null?void 0:oe.result)||[],Pe=[],Re=[];for(let Ge=0;Ge<ze.length;Ge+=2)Ge+1<ze.length&&Re.push([ze[Ge],ze[Ge+1]]);Re.forEach(([Ge,wa])=>{var Xa;if(!Array.isArray(Ge)||Ge.length===0||!Array.isArray(wa)||wa.length===0)return;const Ia=wa[0];let za=((Xa=Ia==null?void 0:Ia.结构)==null?void 0:Xa.contents)??[];if(!Array.isArray(za)||za.length===0)return;let Ye=A.cloneDeep(za);if(Array.isArray(Ye==null?void 0:Ye[0])&&(Ye=ve.getColumnChild(Ye[0])),!Array.isArray(Ye)||Ye.length===0||!Ye.some(ke=>(ke==null?void 0:ke.prop)===z))return;[...Ge].sort((ke,Oa)=>{const ga=Number((ke==null?void 0:ke.update_time)??0);return Number((Oa==null?void 0:Oa.update_time)??0)-ga}).slice(0,20).forEach(ke=>{const Oa=ke[z];if(Oa!=null){const ga=String(Oa);ga.toLowerCase().includes(B.toLowerCase())&&Pe.findIndex(_a=>{var T;return ke.id&&((T=_a.rowData)==null?void 0:T.id)===ke.id?!0:_a.label===ga})===-1&&Pe.push({label:ga,rowData:A.cloneDeep(ke),sourceTable:(Ia==null?void 0:Ia.source_table)||""})}})}),d.value.set(P,Pe)}catch(ne){console.error("全局搜索建议失败:",ne),d.value.delete(P)}finally{g.value.set(P,!1)}},ku=(u,h,B)=>{if(!Vl.value)return;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),P=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if(P&&P.toUpperCase()!=="INPUT"&&P!=="")return;const C=`${u==null?void 0:u.id}:${z}`;if(y.has(C)&&clearTimeout(y.get(C)),!B||B.trim()===""){d.value.delete(C),g.value.set(C,!1);return}const oe=setTimeout(()=>{bu(u,{prop:z,property:z},B),y.delete(C)},300);y.set(C,oe)};function xu(u,h){const B=`${u==null?void 0:u.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return d.value.get(B)||[]}const wu=(u,h,B)=>{var ze;if(!B||!B.rowData)return;const z=B.rowData,P=u==null?void 0:u.id,C=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ne=(ve.getAllLeafNodes(V.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&&(u[Re]=z[Re])});const W=(ze=Te.value)==null?void 0:ze.findIndex(Pe=>(Pe==null?void 0:Pe.id)===P);W!==-1&&ne.forEach(Pe=>{const Re=Pe==null?void 0:Pe.prop;Re&&z[Re]!==void 0&&(Te.value[W][Re]=z[Re])}),P!=null&&(v.value.has(P)||v.value.set(P,A.cloneDeep(u)),s.value.add(P));const we=`${P}:${C}`;d.value.delete(we),g.value.set(we,!1),co(u[C],u,h)},Ur=u=>{var W,we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja;const{row:h,column:B,item:z,slotData:P}=u;let C=h!=null&&h[B==null?void 0:B.prop]||(h==null?void 0:h[B==null?void 0:B.prop])===0?((we=(W=h==null?void 0:h[B==null?void 0:B.prop])==null?void 0:W[0])==null?void 0:we.contents)??((h==null?void 0:h[B==null?void 0:B.prop])===0?"0":h==null?void 0:h[B==null?void 0:B.prop]):((Pe=(ze=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:ze[0])==null?void 0:Pe.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((Ge=(Re=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Re[0])==null?void 0:Ge.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((za=(Ia=h==null?void 0:h[(wa=z==null?void 0:z.child)==null?void 0:wa.prop])==null?void 0:Ia[0])==null?void 0:za.contents)??(h==null?void 0:h[(Ye=z==null?void 0:z.child)==null?void 0:Ye.prop]),ne=Array.isArray(C)&&!(C!=null&&C.every(ba=>typeof ba=="string"||typeof ba=="number"))?"查看":C;if(ne=Array.isArray(ne)?ne.join(","):ne,(B==null?void 0:B.formType)==="Date")if(!ne||ne===""||ne===null||ne===void 0)ne="";else{const ba=A.dayjs(ne,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ne=ba.isValid()?ba.format("YYYYMMDD"):ne??""}return Array.isArray(B==null?void 0:B.relatedPages)&&((Ja=B==null?void 0:B.relatedPages)==null?void 0:Ja.length)>0&&(ne="详情页"),ne},_u=u=>{var we,ze,Pe,Re,Ge,wa,Ia,za,Ye,Ja;const{row:h,column:B,item:z,slotData:P}=u;let C=h!=null&&h[B==null?void 0:B.prop]?((ze=(we=h==null?void 0:h[B==null?void 0:B.prop])==null?void 0:we[0])==null?void 0:ze.contents)??(h==null?void 0:h[B==null?void 0:B.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])??((wa=(Ge=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Ge[0])==null?void 0:wa.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((Ye=(za=h==null?void 0:h[(Ia=z==null?void 0:z.child)==null?void 0:Ia.prop])==null?void 0:za[0])==null?void 0:Ye.contents)??(h==null?void 0:h[(Ja=z==null?void 0:z.child)==null?void 0:Ja.prop]);const ne=Array.isArray(C)&&!(C!=null&&C.every(ba=>typeof ba=="string"||typeof ba=="number")),W=Array.isArray(C)&&(C==null?void 0:C.find(ba=>ba==null?void 0:ba.url));return ne&&W},Su=u=>{var P,C,oe,ne;if(!(u!=null&&u.column))return!1;const h=Ee.value==="试验任务/任务管理",B=(c==null?void 0:c.compName)==="任务列表",z=((C=(P=u==null?void 0:u.column)==null?void 0:P.filter)==null?void 0:C.includes("@TextRGBA"))||((ne=(oe=u==null?void 0:u.column)==null?void 0:oe.filter)==null?void 0:ne.includes("@TextBackRGBA"));return h&&B&&z},Eu=(u,h)=>u.find(B=>Object.values(B).some(z=>z===h));return e.watch(()=>Ae.value,async u=>{if(u){se.setContentLoading(!0),await e.nextTick();const h=Eu(Te.value,u==null?void 0:u.data);if(!h)return se.setContentLoading(!1);await Oi(u==null?void 0:u.data,null,h,{data:u==null?void 0:u.data}),se.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>c==null?void 0:c.cacheNewData,u=>{var h;u&&(Array.isArray(u)?u.forEach(B=>{var z,P,C,oe,ne;if(换,String(B==null?void 0:B.compId)===String(c==null?void 0:c.index)&&(B!=null&&B.resId)&&((z=B==null?void 0:B.data)!=null&&z.id)){const W=(P=B==null?void 0:B.data)==null?void 0:P.id,we=B==null?void 0:B.resId;if(Te.value=(C=Te.value)==null?void 0:C.map(ze=>{if((ze==null?void 0:ze.id)===W){const Pe={...ze,id:we};return delete Pe._isOCRRow,delete Pe._ocrTableId,Pe}return ze}),(ne=(oe=Na.value)==null?void 0:oe.has)!=null&&ne.call(oe,W)){const Pe={...Na.value.get(W)||{},id:we};delete Pe._isOCRRow,delete Pe._ocrTableId,Na.value.delete(W),Na.value.set(we,Pe)}el(c==null?void 0:c.index,W,we)}}):String(u==null?void 0:u.compId)===String(c==null?void 0:c.index)&&(Te.value=(h=Te.value)==null?void 0:h.map(B=>{var z;if((B==null?void 0:B.id)===((z=u==null?void 0:u.data)==null?void 0:z.id)){const P={...B,id:u==null?void 0:u.resId};return delete P._isOCRRow,delete P._ocrTableId,P}return B})))},{immediate:!0,deep:!0}),(u,h)=>{var Ye,Ja,ba,Xa;const B=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),P=e.resolveComponent("el-switch"),C=e.resolveComponent("el-checkbox"),oe=e.resolveComponent("el-radio"),ne=e.resolveComponent("el-radio-group"),W=e.resolveComponent("el-checkbox-group"),we=e.resolveComponent("el-button"),ze=e.resolveComponent("el-icon"),Pe=e.resolveComponent("el-progress"),Re=e.resolveComponent("el-alert"),Ge=e.resolveComponent("el-table-column"),wa=e.resolveComponent("el-table"),Ia=e.resolveComponent("el-upload"),za=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",$0,[bn.value?(e.openBlock(),e.createBlock(ll.ssTable,{id:"excel-table",pageObj:be,showIndex:O.value,isTree:(Ye=a.compItem)==null?void 0:Ye.isTree,summaryInfo:ce,columns:V.value,defaultSort:pe,isCardViewport:_r.value,checkedColumns:r.value,key:rn.value+V.value,tableData:fn.value,isEditViewport:Vl.value,isShowPagination:ie.value,isShowEdit:!1,isShowDelete:!1,allowSelect:D.value,onDbClickRow:Cn,extraButton:Ie.value,rowButton:ka.value,cacheExtraButtons:Ya.value,isClearSelection:((Ja=Gl.value)==null?void 0:Ja.length)===0,onDoCurrentChange:Ti,onDoSizeChange:Lo,onSortChange:Ro,onContentClick:Oi,onRowClick:Yo,onSelectChange:Uo,onCellChange:yu,onCellInput:ku,onSelectSuggest:wu,onChange:co,onPreview:ro,onSubmitEditingTable:Zi,onHandleColEditChange:Ji,onHandleColTypeChange:jr,onClickButton:lt,onAddNewRow:Po,bottomButton:R.value,allowRowAddOrDelete:Zn.value},e.createSlots({headerButton:e.withCtx(ke=>{var Oa,ga,Ea,_a;return[a.showHeader?(e.openBlock(),e.createBlock(vf,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(va)===e.unref(Ee),filterValues:Go.value,selectNums:(Oa=Gl.value)==null?void 0:Oa.length,dataNums:(ga=Te.value)==null?void 0:ga.length,compName:a.compName,isDevMode:a.isDevMode,buttons:ke.buttons,menuFilter:(_a=(Ea=a.compItem)==null?void 0:Ea.component)==null?void 0:_a.menuFilter,onButtonClick:h[1]||(h[1]=(T,Y,$e)=>lt(T,Y,{extra:$e})),columns:V.value,onFilter:oo,onGetImportData:Vo,level:a.level,filterShow:K.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var ke,Oa,ga,Ea;return[((ke=Te.value)==null?void 0:ke.length)>0&&a.allowOperate&&F.value?(e.openBlock(),e.createElementBlock("div",P0,[(Oa=k.value)!=null&&Oa.includes("read")&&((ga=k.value)!=null&&ga.includes("edit"))&&((Ea=ka.value)!=null&&Ea.some(_a=>(_a==null?void 0:_a.label)==="编辑"))&&!_r.value&&e.unref(va)!==e.unref(Ee)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:hu},[e.createVNode(B,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:ke,index:Oa})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ga=>mu(ke,Oa)},[e.createVNode(B,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,j0)]),operateCol:e.withCtx(()=>[e.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:su,onBeforeEnter:cu},{reference:e.withCtx(()=>[e.createElementVNode("span",H0,[e.createVNode(B,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",U0,[h[20]||(h[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(P,{"model-value":$.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=ke=>ao(ke))},null,8,["model-value"]),h[21]||(h[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(W,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=ke=>r.value=ke),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:t},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(nn.value,ke=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ke.label},[e.createVNode(C,{value:ke.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:ke.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(ke.label),9,q0)]),_:2},1032,["value"]),e.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Oa;return[e.createElementVNode("div",W0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Oa=Object.keys(ke))==null?void 0:Oa.filter(ga=>{var Ea;return(Ea=E.value)==null?void 0:Ea.find(_a=>(_a==null?void 0:_a.value)===ga)}),ga=>{var Ea,_a;return e.openBlock(),e.createElementBlock("div",{key:ga},[j[ga]=="radio"?(e.openBlock(),e.createElementBlock("div",K0,[h[19]||(h[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(ne,{"model-value":ke==null?void 0:ke[ga],onChange:T=>Kn(T,ga,ke)},{default:e.withCtx(()=>{var T,Y;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Y=(T=E.value)==null?void 0:T.find($e=>($e==null?void 0:$e.value)===ga))==null?void 0:Y.options,$e=>(e.openBlock(),e.createBlock(oe,{key:$e==null?void 0:$e.value,label:$e==null?void 0:$e.value,value:$e==null?void 0:$e.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($e==null?void 0:$e.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),j[ga]=="switch"?(e.openBlock(),e.createBlock(P,{key:1,"model-value":ke==null?void 0:ke[ga],"active-text":(_a=(Ea=E.value)==null?void 0:Ea.find(T=>(T==null?void 0:T.value)===ga))==null?void 0:_a.label,onChange:T=>Kn(T,ga,ke)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",G0,[e.createVNode(B,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(ke=>{var Oa,ga,Ea,_a,T,Y,$e,oa,_e,ua,Ta,al,Ha,cl,pl,Fl,Pa,ml,$a,nl;return[((Oa=ke==null?void 0:ke.column)==null?void 0:Oa.label)==="证书附件"||((ga=ke==null?void 0:ke.column)==null?void 0:ga.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",Y0,[e.createVNode(B,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(qa=>fi(ke),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):_u(ke)?(e.openBlock(),e.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",J0,e.toDisplayString(Ur(ke)),1)]),default:e.withCtx(()=>{var qa,il;return[e.createElementVNode("div",X0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((il=ke==null?void 0:ke.row)==null?void 0:il[(qa=ke==null?void 0:ke.column)==null?void 0:qa.prop],wl=>(e.openBlock(),e.createElementBlock("div",Z0,[e.createElementVNode("div",{class:"prop-url",title:Yn(wl),onClick:Dl=>ui(wl)},e.toDisplayString(Yn(wl)),9,Q0),e.createElementVNode("div",{class:"prop-download",onClick:Dl=>Wo(wl)}," 下载 ",8,e3)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[Su(ke)?(e.openBlock(),e.createBlock(Ru,{key:0,value:Ur(ke),columnContent:ke==null?void 0:ke.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(Ur(ke))&&((_a=(Ea=Ur(ke))==null?void 0:Ea.toString())!=null&&_a.includes(".txt")||(Y=(T=Ur(ke))==null?void 0:T.toString())!=null&&Y.includes(".cpt")||(oa=($e=Ur(ke))==null?void 0:$e.toString())!=null&&oa.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Ur(ke))&&((ua=(_e=Ur(ke))==null?void 0:_e.toString())!=null&&ua.includes(".txt")||(al=(Ta=Ur(ke))==null?void 0:Ta.toString())!=null&&al.includes(".cpt")||(cl=(Ha=Ur(ke))==null?void 0:Ha.toString())!=null&&cl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Ur(ke))&&((Fl=(pl=Ur(ke))==null?void 0:pl.toString())!=null&&Fl.includes(".txt")||(ml=(Pa=Ur(ke))==null?void 0:Pa.toString())!=null&&ml.includes(".cpt")||(nl=($a=Ur(ke))==null?void 0:$a.toString())!=null&&nl.includes(".cyd"))?"pointer":"",marginLeft:(ke==null?void 0:ke.colIndex)===0?`${((ke==null?void 0:ke.level)??0)*20}px`:0}),onClick:qa=>{var il;return qn(Ur(ke),((il=ke==null?void 0:ke.column)==null?void 0:il.relatedPages)??[])}},e.toDisplayString(Ur(ke)===0?"0":Ur(ke)),13,a3))],64))]}),_:2},[((ba=ka.value)==null?void 0:ba.length)>0?{name:"actions",fn:e.withCtx(({item:ke,fIndex:Oa})=>[e.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",V0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ii(ka.value,ke),(ga,Ea)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ea,onClick:e.withModifiers(_a=>lt(ga==null?void 0:ga.label,ke,{extra:ga}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:ga==null?void 0:ga.textColor}),class:"extra-button-label"},e.toDisplayString(ga==null?void 0:ga.label),5)],8,F0))),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","allowRowAddOrDelete"])):e.createCommentVNode("",!0),Vl.value?(e.openBlock(),e.createElementBlock("div",l3,[e.createVNode(we,{id:"themeBorderButton",onClick:Ho},{default:e.withCtx(()=>h[22]||(h[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(we,{class:"ok-button",id:"themeButton",onClick:Ai},{default:e.withCtx(()=>h[23]||(h[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(wr.ssDialog,{title:X.value,visible:Z.value,width:cr.value,onBeforeDestroy:lo,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",r3,[e.createVNode(ll.ssForm,{ref_key:"formRef",ref:q,rowContents:Fa.value,showOperator:!1,onChange:uu,isEnableWrap:!1,onFixChangeValue:Ko,onClickTrigger:Gn,isEdit:Ze.value,onBlurChange:Qi,onCreate:si,onTagChange:zn},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[Aa.value?(e.openBlock(),e.createElementBlock("div",n3,[e.createVNode(we,{onClick:h[4]||(h[4]=ke=>Z.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>h[24]||(h[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(we,{class:"ok-button",onClick:h[5]||(h[5]=ke=>Vi(!0)),id:"themeButton"},{default:e.withCtx(()=>h[25]||(h[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(wr.ssDialog,{title:X.value,visible:Xe.value,width:ia.value,onBeforeDestroy:h[7]||(h[7]=ke=>Xe.value=!1)},{default:e.withCtx(()=>[e.createVNode(Df)]),footer:e.withCtx(()=>[e.createElementVNode("div",i3,[e.createVNode(we,{onClick:h[6]||(h[6]=ke=>Xe.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>h[26]||(h[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(we,{class:"ok-button",onClick:Jo,id:"themeButton"},{default:e.withCtx(()=>h[27]||(h[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),re.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:2,fileDataList:ca.value,onDestroy:Li},null,8,["fileDataList"])):e.createCommentVNode("",!0),Ve.value?(e.openBlock(),e.createBlock(wr.ssDialog,{key:3,visible:Ve.value,onBeforeDestroy:ou,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:Sa.value,threeData:N.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(wr.ssDialog,{title:"OCR扫描录入",visible:tl.value,"close-on-click-modal":!1,onBeforeDestroy:El,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[h[38]||(h[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",o3,[e.createElementVNode("div",t3,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ea.value===1}])},h[28]||(h[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[31]||(h[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ea.value===2}])},h[29]||(h[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[32]||(h[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ea.value===3}])},h[30]||(h[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),ea.value===1?(e.openBlock(),e.createElementBlock("div",s3,[e.createVNode(we,{onClick:o,class:"ocr-action-btn",disabled:ol.value,size:"default"},{default:e.withCtx(()=>h[33]||(h[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(we,{onClick:Gr,class:"ocr-action-btn",disabled:ol.value,size:"default"},{default:e.withCtx(()=>h[34]||(h[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),ea.value===1?(e.openBlock(),e.createElementBlock("div",c3,[e.createElementVNode("div",u3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ra.value,(ke,Oa)=>{var ga;return e.openBlock(),e.createElementBlock("div",{key:Oa,class:"ocr-file-item"},[e.createElementVNode("div",d3,[ke.raw&&((ga=ke.raw.type)!=null&&ga.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:Hl(ke),alt:"预览",class:"thumbnail-image"},null,8,p3)):(e.openBlock(),e.createElementBlock("div",f3,[e.createVNode(ze,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(ja.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:Cl(ke)==="uploading",processing:Cl(ke)==="processing",completed:Cl(ke)==="completed"||Cl(ke)==="uploaded",failed:Cl(ke)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",h3,[h[35]||(h[35]=e.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),e.createElementVNode("circle",{class:e.normalizeClass(["progress-ring-fill",{completed:Cl(ke)==="completed"||Cl(ke)==="uploaded",uploading:Cl(ke)==="uploading",processing:Cl(ke)==="processing",failed:Cl(ke)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:Cl(ke)==="failed"?"#f56c6c":Cl(ke)==="completed"||Cl(ke)==="uploaded"?"#67c23a":"#409eff","stroke-width":Cl(ke)==="completed"||Cl(ke)==="uploaded"||Cl(ke)==="failed"?3:2,"stroke-dasharray":Hr(ke),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,v3)])),Cl(ke)==="completed"||Cl(ke)==="uploaded"?(e.openBlock(),e.createElementBlock("div",m3,[e.createVNode(ze,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ja.check_default))]),_:1})])):e.createCommentVNode("",!0),Cl(ke)==="failed"?(e.openBlock(),e.createElementBlock("div",y3,[e.createVNode(ze,{class:"error-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ja.close_default))]),_:1})])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"file-delete-btn",onClick:Ea=>lu(Oa)},[e.createVNode(ze,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ja.close_default))]),_:1})],8,g3)]),e.createElementVNode("div",b3,e.toDisplayString(ke.name||"文件名123"),1)])}),128))]),Ra.value.length>0?(e.openBlock(),e.createElementBlock("div",k3,[e.createVNode(we,{onClick:aa,class:"ocr-start-recognize-btn",disabled:ol.value||Ra.value.length===0,size:"default"},{default:e.withCtx(()=>h[36]||(h[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),ea.value===1?(e.openBlock(),e.createElementBlock("div",x3,[e.createVNode(Pe,{percentage:ya.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),ea.value===2?(e.openBlock(),e.createElementBlock("div",w3,[e.createElementVNode("div",_3,[e.createVNode(Re,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",S3,[e.createVNode(wa,{data:qe.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(Ge,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(na.value,ke=>(e.openBlock(),e.createBlock(Ge,{key:ke.prop,prop:ke.prop,"min-width":ke.minWidth||230,"class-name":ke.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",E3,[e.createElementVNode("span",null,e.toDisplayString(ke.label),1)])]),default:e.withCtx(({row:Oa,$index:ga})=>{var Ea,_a,T;return[ke.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:bl(Oa[ke.prop]),fontWeight:500})},e.toDisplayString(Qa(Oa[ke.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Za.value!==ga?(e.openBlock(),e.createElementBlock("span",C3,e.toDisplayString(Oa[ke.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(dl(ke.prop)),{key:1,modelValue:Oa[ke.prop],"onUpdate:modelValue":Y=>Oa[ke.prop]=Y,size:"small",placeholder:"请输入"+ke.label,content:((Ea=fa(ke.prop))==null?void 0:Ea.contents)??((_a=fa(ke.prop))==null?void 0:_a.options)??[],optionUrl:(T=fa(ke.prop))==null?void 0:T.optionUrl,onChange:Y=>Ua(ga,ke.prop,Y),onFocus:Y=>Le.value=ke.prop,onBlur:h[8]||(h[8]=Y=>Le.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(Ge,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:ke})=>[Za.value===ke?(e.openBlock(),e.createBlock(ze,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Oa=>vl(ke),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(ja.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(B,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Oa=>vl(ke),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),ea.value===3?(e.openBlock(),e.createElementBlock("div",D3,[e.createVNode(ze,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ja.check_default))]),_:1}),h[37]||(h[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Ia,{ref:"ocrUploadRef","file-list":Ra.value,"onUpdate:fileList":h[9]||(h[9]=ke=>Ra.value=ke),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":je,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[ea.value!==3?(e.openBlock(),e.createElementBlock("div",B3,[e.createVNode(we,{onClick:on,class:"ocr-start-recognize-btn",disabled:ea.value===1||ol.value},{default:e.withCtx(()=>h[39]||(h[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(we,{onClick:wn,class:"ocr-start-recognize-btn",disabled:ol.value},{default:e.withCtx(()=>h[40]||(h[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(qf,{visible:pi.value,onConfirm:i,onCancel:h[10]||(h[10]=ke=>pi.value=!1)},null,8,["visible"]),e.createVNode(gd,{visible:rl.value,"onUpdate:visible":h[11]||(h[11]=ke=>rl.value=ke),versions:ee.value},null,8,["visible","versions"]),e.createVNode(nd,{visible:Ne.value,"onUpdate:visible":h[12]||(h[12]=ke=>Ne.value=ke),images:_l.value,"default-image-name":Ol.value,"field-meta":Za.value!==null?((Xa=qe.value[Za.value])==null?void 0:Xa.__ocrFieldMeta)||{}:{},"focused-field-name":Le.value,onClose:h[13]||(h[13]=ke=>Ne.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(Ad,{visible:ql.value,"onUpdate:visible":h[14]||(h[14]=ke=>ql.value=ke),candidates:Wl.value,"name-prop":jl.value,"mfr-prop":ar.value,columns:V.value,onSubmit:Sr,onPreviewFile:Qn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode($d,{visible:pa.value,"onUpdate:visible":h[15]||(h[15]=ke=>pa.value=ke),ocrPreviewData:qe.value,"onUpdate:ocrPreviewData":h[16]||(h[16]=ke=>qe.value=ke),ocrSelectedFields:ra.value,"onUpdate:ocrSelectedFields":h[17]||(h[17]=ke=>ra.value=ke),ocrPreviewColumns:na.value,onConfirm:Ga,onFieldChange:h[18]||(h[18]=({rowIndex:ke,prop:Oa,value:ga})=>Ua(ke,Oa,ga))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(wr.ssDialog,{title:p.title,visible:p.show,width:p.width,onBeforeDestroy:ae},{default:e.withCtx(()=>[e.createElementVNode("div",T3,[e.createVNode(ll.ssForm,{rowContents:p==null?void 0:p.contents,formRules:p==null?void 0:p.formRules,showOperator:!1,buttonValue:p.buttonValue,isEdit:Ze.value,isStartJustify:!1,onOnButtonClick:xe},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(wr.ssDialog,{title:"",visible:m.show,width:m.width,alignCenter:!0,onBeforeDestroy:S},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",N3,e.toDisplayString(m.title),1),e.createVNode(za,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>h[41]||(h[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",A3,[e.createVNode(za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(Ln.value||"暂无"),1)]),_:1}),e.createElementVNode("div",z3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m==null?void 0:m.buttonValue,ke=>(e.openBlock(),e.createBlock(we,{key:ke==null?void 0:ke.label,style:e.normalizeStyle({background:ke==null?void 0:ke.background,color:ke==null?void 0:ke.color}),onClick:Oa=>G(ke==null?void 0:ke.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ke==null?void 0:ke.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(mf,{columns:m==null?void 0:m.columns,tableData:m==null?void 0:m.tableData},{content:e.withCtx(({row:ke,item:Oa,slotData:ga,scope:Ea,column:_a,columnProp:T,$index:Y})=>[e.createTextVNode(e.toDisplayString((ke==null?void 0:ke[_a==null?void 0:_a.prop])||(ke==null?void 0:ke[_a==null?void 0:_a.label])||(ke==null?void 0:ke[_a==null?void 0:_a.property])||(ga==null?void 0:ga[_a==null?void 0:_a.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"])])}}},Cc=Zl._export_sfc(I3,[["__scopeId","data-v-11b04e78"]]),O3={key:1,class:"static-form-body"},L3=["onClick"],R3={key:1},$3=e.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(a,{emit:l}){const r=a,n=l,t=x=>{switch(x){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},s=e.computed(()=>{var $;const x=($=r.itemData)==null?void 0:$.find(F=>(F==null?void 0:F.key)==="formContent"),b=(x==null?void 0:x.contents)||[];return(r.fields&&r.fields.length>0?r.fields:b).filter(F=>(F==null?void 0:F.label)||(F==null?void 0:F.isHideInForm)).map(F=>{let J=F==null?void 0:F.value;Array.isArray(J)&&(J=J.map(V=>V==null?"":typeof V=="object"?V.label??V.value??V.name??JSON.stringify(V):String(V)).filter(Boolean).join(",")),J!=null&&typeof J=="object"&&(J=J.label??J.value??J.name??JSON.stringify(J));const ce=F.isHideInForm?"":F.label??"",be=J==null||J===""?"-":String(J),Me=ce==="使用状态";return{label:ce,value:be,isStatus:Me,tagType:Me?t(be):"",width:F.width??1,field:F}})}),v=e.ref(null),f=e.ref(null),d=e.computed(()=>{const x=Number(r==null?void 0:r.textSize),b=ve.rgbaToColor(r==null?void 0:r.textColor),_={},$={},F={},J={};return!Number.isNaN(x)&&x&&(_.fontSize=`${x}px`,$.fontSize=`${x+1}px`,F.fontSize=`${x}px`,J.fontSize=`${x}px`),b&&($.color=b,F.color=b,J.color=b),{item:_,label:$,value:F,empty:J}}),y=e.ref(""),g=e.ref(""),c=e.ref(!1),D=async x=>{if(x){g.value&&(URL.revokeObjectURL(g.value),g.value="");try{const b=await A.platformDownloadFile({url:x}),_=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});g.value=URL.createObjectURL(_)}catch{g.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,x=>{x&&(y.value=x)},{immediate:!0}),e.watch(y,x=>{D(x)},{immediate:!0});const O=()=>{var x;(x=f.value)==null||x.click()},k=async x=>{var $,F,J;const b=x.target,_=($=b==null?void 0:b.files)==null?void 0:$[0];if(!_){b.value="";return}c.value=!0;try{const ce=new FormData;ce.append("file",_);const be=await A.platformUploadFile(ce),Me=(J=(F=be==null?void 0:be.data)==null?void 0:F.result)==null?void 0:J.url;Me?(y.value=Me,n("update:backGroundImage",Me),D(Me),ja.ElMessage.success("背景图片上传成功")):ja.ElMessage.error("背景图片上传失败")}catch{ja.ElMessage.error("背景图片上传失败")}finally{c.value=!1,b.value=""}},K=e.computed(()=>g.value?{backgroundImage:`url(${g.value})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),M=x=>ll.getComponent(x),R=x=>{if(!x)return;const b=x.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},j=(x,b,_)=>{r.disabled||(v.value=b,e.nextTick(()=>{R(_.currentTarget)}))},E=()=>{v.value=null},w=x=>{const b=x!=null&&x.width&&x.width>0?x.width:1,$=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${$}`,maxWidth:$,minWidth:"0",boxSizing:"border-box"}};return(x,b)=>{const _=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(K.value),onClick:b[2]||(b[2]=$=>(r==null?void 0:r.backGround)==="Yes"&&O())},[(r==null?void 0:r.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=e.withModifiers($=>O(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:f,type:"file",accept:"image/*",style:{display:"none"},onChange:k},null,544),b[3]||(b[3]=e.createElementVNode("img",{src:ll._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),s.value.length?(e.openBlock(),e.createElementBlock("div",O3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,($,F)=>{var J,ce,be,Me,V,fe,le,pe,De;return e.openBlock(),e.createElementBlock("div",{key:F,class:"static-form-item",style:e.normalizeStyle({...w($),...d.value.item}),onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"]))},[$.label&&!((J=$==null?void 0:$.field)!=null&&J.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(d.value.label)},e.toDisplayString($.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(d.value.value),onClick:Ve=>{var ge;return(ge=$.field)!=null&&ge.isNoClick?null:j($,F,Ve)}},[v.value===F&&$.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(((ce=$.field)==null?void 0:ce.type)??"Input")),{key:0,modelValue:$.field.value,"onUpdate:modelValue":Ve=>$.field.value=Ve,isEdit:!0,disabled:(be=$.field)==null?void 0:be.disabled,content:((Me=$.field)==null?void 0:Me.contents)??[],optionUrl:$.field,originalValue:(V=$.field)==null?void 0:V.value,config:(fe=$.field)==null?void 0:fe.config,configModel:((le=$.field)==null?void 0:le.prop)??((pe=$.field)==null?void 0:pe.name),selectedTagList:((De=$.field)==null?void 0:De.selectValue)??[],onBlur:E,onBlurChange:E},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.isStatus?(e.openBlock(),e.createBlock(_,{key:0,type:$.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",R3,e.toDisplayString($.value??"-"),1))],64))],12,L3)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(d.value.empty)}," 暂无数据 ",4))],4)}}}),Dc=Zl._export_sfc($3,[["__scopeId","data-v-74b02d73"]]),V3={class:"form-content"},F3={title:"选择标签"},P3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},j3={class:"col-operate-wrap"},H3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},U3={__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(a,{emit:l}){const r=()=>{v.value=!1,f.value=!1,d.value=[]},n=a;e.computed(()=>{var Z;const ie=(Z=Fe.value)==null?void 0:Z.split("/");return(ie==null?void 0:ie.some(q=>(q==null?void 0:q.includes("updateLoading"))||(q==null?void 0:q.includes("loading"))))?!1:De.value==="view"});const t=l,s=e.ref([]),v=e.ref(!1),f=e.ref(!1),d=e.ref([]),{getFileExtension:y}=So.useThreeSystem(),g=e.ref(),c=e.ref(!1),D=e.ref(!1),O=A.useUnit(A.pinia),{chooseTitle:k}=A.storeToRefs(O),K=e.ref([]),M=e.ref(),R=e.ref(!1),j=e.ref([]),E=tc(A.pinia),w=Ct(A.pinia),x=e.ref(!1),b=e.ref(),_=e.ref(),$=e.ref(),F=e.ref(),J=e.ref(),ce=A.useLoginState(A.pinia),{loginUserInfo:be}=A.storeToRefs(ce),Me=e.ref(),V=e.ref(!0),fe=A.useModelComp(A.pinia),{tableViewContents:le,itemData:pe,isEdit:De,routeToChildPath:Ve,lockingPage:ge,homepageBackgroundTableId:N}=A.storeToRefs(fe),de=e.ref(null),U=e.ref(!1),Se=e.ref(!1),Oe=A.useMenuState(),{activeMenuPath:Fe}=A.storeToRefs(Oe),la=ve.useOriginalState(A.pinia),{originalPath:Da}=A.storeToRefs(la),{compType:re,hasEditable:ca}=Ks.useRole(),se=()=>!ca(n.config,{type:re.FORM});e.computed(()=>Fe.value==="设备管理/试验设备"&&n.compName==="设备概要");const da=async()=>{var Z,q,Be;const ie=N==null?void 0:N.value,X=(Z=be==null?void 0:be.value)==null?void 0:Z.plat_id;if(!(!ie||!X))try{const Xe=await A.getAllTables({platId:parseInt(X),tableNames:[`content_${ie}`,`struct_${ie}`],user_unique_id:"0"}),ia=((Be=(q=Xe==null?void 0:Xe.data)==null?void 0:q.result)==null?void 0:Be[0])??[],xa=String((n==null?void 0:n.index)??""),ka=ia==null?void 0:ia.find(Aa=>String(Aa==null?void 0:Aa.relatedForm_id)===xa);ka!=null&&ka.backgroundImg_url&&(F.value=ka.backgroundImg_url)}catch(Xe){console.error("获取首页背景图片表数据失败:",Xe)}},Ee=e.ref([]),te=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Ae=async ie=>{Se.value=ie,await ye("disabled",null,ie,!0)},Ue=async ie=>{await ye("operable",null,ie,!0)};e.watch(()=>Fe.value,async()=>{s.value=[],d.value=[]},{deep:!0,immediate:!0});const sa=()=>{e.nextTick(()=>{Q()})},Ka=ie=>{var X;s.value=(X=s.value)==null?void 0:X.map(Z=>({...Z,isFormColHidden:!(ie!=null&&ie.includes(Z.label))}))};e.onUnmounted(()=>{de.value=null});const L=ie=>{t("clickTrigger",ie)},H=async ie=>{var X,Z,q,Be,Xe,ia;if(ie===""){let xa="";(X=s.value)==null||X.forEach(Ie=>{Ie!=null&&Ie.isMain&&(xa=Ie==null?void 0:Ie.value)});let ka=await ve.getItemData(Ve.value,sessionStorage.getItem("systemKey"),"");xa=((ia=(Xe=(Be=(q=(Z=ka==null?void 0:ka[0])==null?void 0:Z.compData)==null?void 0:q.find(Ie=>(Ie==null?void 0:Ie.key)==="mainRouters"))==null?void 0:Be.contents)==null?void 0:Xe[0])==null?void 0:ia.routerContent)+Da.value+xa;let Sa=await ve.getItemData(xa,sessionStorage.getItem("systemKey"),"");R.value=!0,j.value=Sa==null?void 0:Sa.filter(Ie=>(Ie==null?void 0:Ie.comp)!=="methodButton"),t("routeUrl",j.value)}},Q=()=>{var X;const ie=(X=de.value)==null?void 0:X.$el;ie&&Bl.Sortable.create(ie,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Z=>{const{oldIndex:q,newIndex:Be}=Z;if(q===Be)return;const Xe=s.value.splice(q,1)[0];s.value.splice(Be,0,Xe)}})},ye=async(ie,X,Z,q=!1)=>{try{fe.setRefreshCurStructure(!1)}catch{ja.ElMessage.error("编辑处理失败")}},me=async(ie,X)=>{await ye()},va=async(ie,X)=>{ie&&await ye()},Qe=async(ie,X,Z)=>{await ye(X,Z,ie,!1)},ue=(ie,X)=>{Me.value===X?V.value=!1:V.value=!0,Me.value=X==null?void 0:X.changeProp},ma=async ie=>{var ia;F.value=ie;const X=n.itemData,Z=X==null?void 0:X.find(xa=>(xa==null?void 0:xa.key)==="backGroundImage");Z?Z.contents=ie:X==null||X.push({key:"backGroundImage",contents:ie}),t("change",{key:"backGroundImage",contents:ie});const q=N==null?void 0:N.value,Be=n==null?void 0:n.index,Xe=(ia=be==null?void 0:be.value)==null?void 0:ia.plat_id;if(!(!q||!Xe||!Be||!ie))try{await A.pageBatchAddApi({platId:parseInt(Xe),changeContents:[{tableName:`content_${q}`,tableContents:[{backgroundImg_url:ie,relatedForm_id:String(Be)}]}],user_unique_id:"0"})}catch(xa){console.error("保存背景图片记录失败:",xa),ja.ElMessage.error("背景图片记录保存失败")}},Te=async ie=>{var Z,q,Be,Xe,ia,xa,ka,Aa,Sa,Ie,Ya,Fa,xl,Jl,kl;let X=[];if((Z=ie==null?void 0:ie.toString())!=null&&Z.includes(".urdf")){if(ie.includes(",")){ja.ElMessage.error("当前版本仅允许单个urdf预览!");return}d.value=[{url:ie,extension:y(ie)}],f.value=!0,v.value=!0;return}if((q=ie==null?void 0:ie.toString())!=null&&q.includes(".stl")||(Be=ie==null?void 0:ie.toString())!=null&&Be.includes(".STL")||(Xe=ie==null?void 0:ie.toString())!=null&&Xe.includes(".obj")||(ia=ie==null?void 0:ie.toString())!=null&&ia.includes(".mtl")){const Va=((xa=ie==null?void 0:ie.toString())==null?void 0:xa.split(",")).map(Ml=>({url:Ml,extension:y(Ml)}));d.value=Va,f.value=!1,v.value=!0;return}if((ka=ie==null?void 0:ie.toString())!=null&&ka.includes(".stl")||(Aa=ie==null?void 0:ie.toString())!=null&&Aa.includes(".STL")||(Sa=ie==null?void 0:ie.toString())!=null&&Sa.includes(".obj")||(Ie=ie==null?void 0:ie.toString())!=null&&Ie.includes(".mtl")){let Pl,Va=[],Ml={};if(Array.isArray(ie)?Pl=ie:Pl=ie==null?void 0:ie.split(","),Pl==null||Pl.forEach($l=>{$l.includes(".mtl")?Va.push($l):Ml.blob=Ml.blob?Ml.blob+","+$l:$l}),(Va==null?void 0:Va.length)>0&&(Ml.mtlBlobs=Va),(Fa=(Ya=Object.values(Ml))==null?void 0:Ya[0])!=null&&Fa.includes("http:"))X.push(Ml);else{const $l=new Blob([Ml.blob],{type:"application/octet-stream;charset=UTF-8"});let Ma=URL.createObjectURL($l),el="";(xl=ie==null?void 0:ie.split("/"))==null||xl.forEach((tl,ol)=>{var Ra;ol===((Ra=ie==null?void 0:ie.split("/"))==null?void 0:Ra.length)-1&&(el=tl)}),(Jl=Ml.blob)!=null&&Jl.includes(".stl")&&(el=(el==null?void 0:el.replaceAll(">",""))+".urdf"),M.value=[{name:el,blobUrl:Ma}],D.value=!0}}else{const Pl=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Va=await ja.axios.get(ie,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Pl.close()}),Ml=new Blob([Va.data],{type:"application/octet-stream;charset=UTF-8"});let $l=URL.createObjectURL(Ml),Ma="";(kl=ie==null?void 0:ie.split("/"))==null||kl.forEach((el,tl)=>{var ol;tl===((ol=ie==null?void 0:ie.split("/"))==null?void 0:ol.length)-1&&(Ma=el)}),M.value=[{name:Ma,blobUrl:$l}],D.value=!0}(X==null?void 0:X.length)>0&&w.setBlobUrls(X)},Ke=()=>{D.value=!1},Na=ie=>{var Xe,ia,xa,ka;const X=(ia=(Xe=ll.safeClone(n.itemData))==null?void 0:Xe.find(Aa=>(Aa==null?void 0:Aa.key)==="formContent"))==null?void 0:ia.contents,Z=ll.safeClone(ie.content);let q={};Z&&((xa=Object.values(Z))==null?void 0:xa.length)>0&&((ka=Object.values(Z))==null||ka.forEach((Aa,Sa)=>{q[X[Sa].key]=Aa}));const Be={content:q,index:n==null?void 0:n.index,buttonName:ie==null?void 0:ie.buttonName};t("change",Be)};e.computed(()=>"http://222.92.178.198:62001");const Ca=async ie=>{var Ya,Fa,xl,Jl,kl,Pl,Va,Ml,$l,Ma,el,tl,ol,Ra,ul,rl;if(!ie)return;(Fa=(Ya=n==null?void 0:n.itemData)==null?void 0:Ya.find(ee=>(ee==null?void 0:ee.key)==="parentFormPath"))==null||Fa.contents;let X=le.value;(X==null?void 0:X.length)>0&&(X=X==null?void 0:X.map(ee=>{var Je,he,ya,pa;let ea=(Je=ee==null?void 0:ee.key)==null?void 0:Je.split("/");return(n==null?void 0:n.compName)===(ea==null?void 0:ea[0])&&(he=s.value)!=null&&he.find(qe=>(qe==null?void 0:qe.prop)===(ea==null?void 0:ea[1]))&&(ee.value=(pa=(ya=s.value)==null?void 0:ya.find(qe=>(qe==null?void 0:qe.prop)===(ea==null?void 0:ea[1])))==null?void 0:pa.value),ee}),fe.setTableViewContents(X));const Z=ll.safeClone(n.itemData);let q=Z==null?void 0:Z.map(ee=>{var ea;return(ee==null?void 0:ee.key)==="formContent"&&((ea=ee.contents)==null||ea.map((Je,he)=>{var ya,pa,qe,na,fa,dl,He,ta,ra,Za,Le,Ne,_l,Ol,ql,Wl,Ql,pr,Ll,fr,Vr;return Je.type=(pa=(ya=s.value)==null?void 0:ya.find(jl=>(jl==null?void 0:jl.prop)===(Je==null?void 0:Je.prop)))==null?void 0:pa.type,Je.options=Je!=null&&Je.options?Je.options:((fa=(na=(qe=Je==null?void 0:Je.key)==null?void 0:qe.split("$"))==null?void 0:na[1])==null?void 0:fa.length)>0?(ra=(ta=Iu((He=(dl=Je==null?void 0:Je.key)==null?void 0:dl.split("$"))==null?void 0:He[1]))==null?void 0:ta.split(","))==null?void 0:ra.map(jl=>({label:jl,value:jl})):[],(Za=Je==null?void 0:Je.key)!=null&&Za.includes("$")&&(Je.key=(Ne=(Le=Je==null?void 0:Je.key)==null?void 0:Le.split("$"))==null?void 0:Ne[0]),Je.signature=(Ol=(_l=s.value)==null?void 0:_l.find(jl=>(jl==null?void 0:jl.prop)===(Je==null?void 0:Je.prop)))==null?void 0:Ol.signature,Je.isLoginUser=(Wl=(ql=s.value)==null?void 0:ql.find(jl=>(jl==null?void 0:jl.prop)===(Je==null?void 0:Je.prop)))==null?void 0:Wl.isLoginUser,Je.value=(Ql=Object.values(ie))==null?void 0:Ql[he],Je.isFormColHidden=(Ll=(pr=s.value)==null?void 0:pr.find(jl=>(jl==null?void 0:jl.prop)===(Je==null?void 0:Je.prop)))==null?void 0:Ll.isFormColHidden,Je.isHideInForm=(Vr=(fr=s.value)==null?void 0:fr.find(jl=>(jl==null?void 0:jl.prop)===(Je==null?void 0:Je.prop)))==null?void 0:Vr.isHideInForm,Je})),ee}),Be=s.value,Xe=(Jl=(xl=ll.safeClone(q))==null?void 0:xl.find(ee=>(ee==null?void 0:ee.key)==="formContent"))==null?void 0:Jl.contents;if(Be=Be==null?void 0:Be.map(ee=>{var ea,Je;return(ee==null?void 0:ee.type)==="Select"&&((ea=ee==null?void 0:ee.allSelectionContents)==null?void 0:ea.length)>0&&(ee.contactValue=ie),ee.value=(Je=Xe==null?void 0:Xe.find((he,ya)=>((he==null?void 0:he.id)??ya)===(ee==null?void 0:ee.id)))==null?void 0:Je.value,ee}),!V.value){t("contentChange",{contents:q,index:n.index});return}let ia="",xa=(Va=(Pl=(kl=ll.safeClone(q))==null?void 0:kl.find(ee=>(ee==null?void 0:ee.key)==="formContent"))==null?void 0:Pl.contents)==null?void 0:Va.find((ee,ea)=>{var Je,he,ya;return(ee==null?void 0:ee.label)===Me.value||ea.toString()===((ya=(he=(Je=Me.value)==null?void 0:Je.split("t"))==null?void 0:he[1])==null?void 0:ya.toString())}),ka=(Ml=xa==null?void 0:xa.optionUrl)==null?void 0:Ml.menuSelect,Aa=!0;if((el=(Ma=($l=ll.safeClone(q))==null?void 0:$l.find(ee=>(ee==null?void 0:ee.key)==="formContent"))==null?void 0:Ma.contents)==null||el.forEach(ee=>{var ea,Je,he,ya,pa,qe;Aa&&((he=(Je=(ea=ee==null?void 0:ee.optionUrl)==null?void 0:ea.groupSelect)==null?void 0:Je[1])!=null&&he.includes("["))&&(ia=(pa=(ya=ee==null?void 0:ee.optionUrl)==null?void 0:ya.groupSelect)==null?void 0:pa[1],JSON.stringify(ka)===JSON.stringify((qe=ee==null?void 0:ee.optionUrl)==null?void 0:qe.menuSelect)&&(Aa=!1))}),(tl=xa==null?void 0:xa.optionUrl)!=null&&tl.menuSelect&&V.value){let ee=await yt(xa),ea,Je=(ol=xa==null?void 0:xa.optionUrl)==null?void 0:ol.menuSelect;if(ee==null||ee.forEach(he=>{var ya,pa,qe,na,fa,dl,He,ta,ra,Za;ia===((pa=(ya=xa==null?void 0:xa.optionUrl)==null?void 0:ya.groupSelect)==null?void 0:pa[1])&&((fa=(na=(qe=xa==null?void 0:xa.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:na[1])!=null&&fa.includes("["))&&((Za=ll.safeClone(he))==null?void 0:Za[(ra=(ta=(He=(dl=xa==null?void 0:xa.optionUrl)==null?void 0:dl.groupSelect)==null?void 0:He[1])==null?void 0:ta.replaceAll("[",""))==null?void 0:ra.replaceAll("]","")])===(xa==null?void 0:xa.value)&&(ea=he)}),ea){let he=ll.safeClone(Be);he=he==null?void 0:he.map(pa=>{var qe,na,fa,dl,He,ta,ra,Za,Le,Ne,_l;return(ea!=null&&ea[pa==null?void 0:pa.label]||ea!=null&&ea[(dl=(fa=(na=(qe=pa==null?void 0:pa.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:na[1])==null?void 0:fa.replaceAll("[",""))==null?void 0:dl.replaceAll("]","")])&&((ra=(ta=(He=pa==null?void 0:pa.optionUrl)==null?void 0:He.groupSelect)==null?void 0:ta[1])!=null&&ra.includes("["))&&Je!=null&&Je.every(Ol=>{var ql,Wl;return(Wl=(ql=pa==null?void 0:pa.optionUrl)==null?void 0:ql.menuSelect)==null?void 0:Wl.includes(Ol)})&&(pa.value=(ea==null?void 0:ea[pa==null?void 0:pa.label])||(ea==null?void 0:ea[(_l=(Ne=(Le=(Za=pa==null?void 0:pa.optionUrl)==null?void 0:Za.groupSelect)==null?void 0:Le[1])==null?void 0:Ne.replaceAll("[",""))==null?void 0:_l.replaceAll("]","")]),Array.isArray(pa.value)&&pa.value.every(Ol=>(Ol==null?void 0:Ol.url)&&(Ol==null?void 0:Ol.name))&&(pa.type="Upload")),pa}),he=he==null?void 0:he.map(pa=>{var qe,na,fa;return(qe=pa==null?void 0:pa.optionUrl)!=null&&qe.oldMenuSelect&&(pa.optionUrl.menuSelect=(fa=(na=ll.safeClone(pa))==null?void 0:na.optionUrl)==null?void 0:fa.oldMenuSelect),pa}),s.value=ll.safeClone(he);let ya=ll.safeClone(he);ya=ya==null?void 0:ya.map(pa=>{var qe,na,fa,dl,He,ta;return(na=(qe=pa==null?void 0:pa.optionUrl)==null?void 0:qe.menuSelect)!=null&&na.some(ra=>ra==null?void 0:ra.includes("["))&&(pa.optionUrl.oldMenuSelect=(dl=(fa=ll.safeClone(pa))==null?void 0:fa.optionUrl)==null?void 0:dl.menuSelect,pa.optionUrl.menuSelect=(ta=(He=pa==null?void 0:pa.optionUrl)==null?void 0:He.menuSelect)==null?void 0:ta.map(ra=>{var Za,Le,Ne,_l;if(ra!=null&&ra.includes("[")){let Ol=(Le=(Za=ra==null?void 0:ra.replaceAll("[","").replaceAll("]",""))==null?void 0:Za.split(":"))==null?void 0:Le[1];ra=(_l=(Ne=ll.safeClone(he))==null?void 0:Ne.find(ql=>(ql==null?void 0:ql.label)===Ol))==null?void 0:_l.value}return ra})),pa}),s.value=ya}else s.value=Be;q=q==null?void 0:q.map(he=>{var ya;return(he==null?void 0:he.key)==="formContent"&&(he.contents=(ya=he.contents)==null?void 0:ya.map(pa=>{var qe,na,fa,dl;return pa.value=((na=(qe=s.value)==null?void 0:qe.find(He=>(He==null?void 0:He.label)===(pa==null?void 0:pa.key)))==null?void 0:na.value)??(pa==null?void 0:pa.value),pa.type=((dl=(fa=s.value)==null?void 0:fa.find(He=>(He==null?void 0:He.prop)===(pa==null?void 0:pa.key)))==null?void 0:dl.type)??(pa==null?void 0:pa.type),pa})),he})}V.value=!1,t("contentChange",{contents:q,index:n.index});let Sa=[],Ie=[];if((ul=ll.safeClone((Ra=q==null?void 0:q.find(ee=>(ee==null?void 0:ee.key)==="formContent"))==null?void 0:Ra.contents))==null||ul.forEach(ee=>{var ea;Array.isArray(ee==null?void 0:ee.value)&&((ea=ee==null?void 0:ee.value)!=null&&ea.find(Je=>{var he;return(he=Je==null?void 0:Je.url)==null?void 0:he.includes(".obj")}))&&(Ie=ee==null?void 0:ee.value)}),(Ie==null?void 0:Ie.length)>0){const ee=(rl=ll.safeClone(Ie))==null?void 0:rl.filter(ea=>{var Je;return(Je=ea==null?void 0:ea.url)==null?void 0:Je.includes(".obj")});ee==null||ee.forEach(ea=>{var he,ya,pa,qe;const Je=(he=Ie==null?void 0:Ie.filter(na=>{var fa;return(na==null?void 0:na.name)===(ea==null?void 0:ea.name)&&((fa=na==null?void 0:na.url)==null?void 0:fa.includes(".mtl"))}))==null?void 0:he.map(na=>na==null?void 0:na.url);Sa.push({objUrl:ea==null?void 0:ea.url,mtlUrls:((ya=Ie==null?void 0:Ie.filter(na=>{var fa;return(na==null?void 0:na.name)===(ea==null?void 0:ea.name)&&((fa=na==null?void 0:na.url)==null?void 0:fa.includes(".mtl"))}))==null?void 0:ya.length)===1?(qe=(pa=Ie==null?void 0:Ie.filter(na=>{var fa;return(na==null?void 0:na.name)===(ea==null?void 0:ea.name)&&((fa=na==null?void 0:na.url)==null?void 0:fa.includes(".mtl"))}))==null?void 0:pa[0])==null?void 0:qe.url:Je})}),w.setObjUrl(Sa)}},Ze=(ie,X,Z)=>{let q="";const Be=X==null?void 0:X.map(Xe=>{var ia;return(ia=Xe==null?void 0:Xe.value)==null?void 0:ia.pageData});return Be==null||Be.forEach(Xe=>{var ia;(Xe==null?void 0:Xe.name)===(ie==null?void 0:ie[0])&&((ia=Xe==null?void 0:Xe.compData)==null||ia.forEach(xa=>{var ka;(xa==null?void 0:xa.key)==="formContent"&&((ka=xa==null?void 0:xa.contents)==null||ka.forEach(Aa=>{var Sa;(Aa==null?void 0:Aa.prop)===(ie==null?void 0:ie[1])&&(q=(Aa==null?void 0:Aa.value)===""?ve.judgeContents((Sa=ll.safeClone(Aa))==null?void 0:Sa.optionUrl,Z):Aa==null?void 0:Aa.value)}))}))}),q},La=(ie,X,Z,q)=>{var xa,ka;let Be="",Xe="";(xa=ll.safeClone(X))==null||xa.forEach((Aa,Sa)=>{Aa!=null&&Aa.includes("[")?Xe=Xe+Da.value+ie[Sa]:Xe=Xe===""?Xe+Aa:Xe+"/"+Aa});let ia=(ka=q[Xe])==null?void 0:ka.map(Aa=>{var Sa;return(Sa=Aa==null?void 0:Aa.value)==null?void 0:Sa.pageData});return ia==null||ia.forEach(Aa=>{var Sa;(Aa==null?void 0:Aa.name)===(Z==null?void 0:Z[0])&&((Sa=Aa==null?void 0:Aa.compData)==null||Sa.forEach(Ie=>{var Ya;(Ie==null?void 0:Ie.key)==="formContent"&&((Ya=Ie==null?void 0:Ie.contents)==null||Ya.forEach(Fa=>{(Fa==null?void 0:Fa.prop)===(Z==null?void 0:Z[1])&&(Be=Fa==null?void 0:Fa.value)}))}))}),Be};return e.watch(()=>N==null?void 0:N.value,async()=>{await da()},{immediate:!0}),e.watch(()=>n.itemData,async()=>{var Ya,Fa,xl,Jl,kl,Pl,Va,Ml,$l,Ma,el,tl,ol,Ra,ul,rl,ee,ea,Je,he,ya,pa,qe;const ie=(Ya=n.itemData)==null?void 0:Ya.find(na=>(na==null?void 0:na.key)==="formContent"),X=(Fa=ll.safeClone(n.itemData))==null?void 0:Fa.find(na=>(na==null?void 0:na.key)==="formButton"),Z=(xl=ll.safeClone(n.itemData))==null?void 0:xl.find(na=>(na==null?void 0:na.key)==="formFlex"),q=(Jl=ll.safeClone(n.itemData))==null?void 0:Jl.find(na=>(na==null?void 0:na.key)==="formWrap"),Be=(kl=ll.safeClone(n.itemData))==null?void 0:kl.find(na=>(na==null?void 0:na.key)==="enableWrap"),Xe=(Pl=ll.safeClone(n.itemData))==null?void 0:Pl.find(na=>(na==null?void 0:na.key)==="textSize"),ia=(Va=ll.safeClone(n.itemData))==null?void 0:Va.find(na=>(na==null?void 0:na.key)==="textRGBA"),xa=(Ml=ll.safeClone(n.itemData))==null?void 0:Ml.find(na=>(na==null?void 0:na.key)==="backGround"),ka=($l=ll.safeClone(n.itemData))==null?void 0:$l.find(na=>(na==null?void 0:na.key)==="backGroundImage");(q==null?void 0:q.contents)==="纵向"?c.value=!1:c.value=!0;const Aa=Number(Xe==null?void 0:Xe.contents);b.value=Number.isNaN(Aa)?void 0:Aa,_.value=ia==null?void 0:ia.contents,$.value=xa==null?void 0:xa.contents,F.value=ka==null?void 0:ka.contents;const Sa=Be==null?void 0:Be.contents;if(Sa===void 0?x.value=ri.BLOCK:typeof Sa=="boolean"?x.value=Sa?ri.ORDINARY:ri.BLOCK:x.value=Sa,J.value=typeof(Z==null?void 0:Z.contents)!="boolean"?!(!(Z!=null&&Z.contents)===""||((Ma=Z==null?void 0:Z.contents)==null?void 0:Ma.toUpperCase())==="VERTICAL"):Z==null?void 0:Z.contents,((el=ie==null?void 0:ie.contents)==null?void 0:el.length)>0&&Array.isArray(ie==null?void 0:ie.contents)){let na=n.allMapContents;const fa=(ol=(tl=ll.safeClone(ie))==null?void 0:tl.contents)==null?void 0:ol.map((Ne,_l)=>{var Mr,Sr,Er,yn,Dr,ur,gn,ln,rn,Sn,Tn,pn,lr;let Ol=(Ne==null?void 0:Ne.label)??(Ne==null?void 0:Ne.key)??"";Ne==null||Ne.type;let ql=(Ne==null?void 0:Ne.options)??[];if((Mr=Ne==null?void 0:Ne.key)!=null&&Mr.includes("$")&&(Ol=(Sr=ll.safeClone(Ne==null?void 0:Ne.key).split("$"))==null?void 0:Sr[0],((yn=(Er=ll.safeClone(Ne==null?void 0:Ne.key).split("$"))==null?void 0:Er[1])==null?void 0:yn.length)>0)){const[Il,Ar]=(ur=(Dr=ll.safeClone(Ne==null?void 0:Ne.key).split("$"))==null?void 0:Dr[1])==null?void 0:ur.split(/[()]/);(gn=ve.FormType.find(sl=>(sl==null?void 0:sl.key)===Il))==null||gn.value,((ln=Ar==null?void 0:Ar.split(","))==null?void 0:ln.length)>0&&(ql=(rn=Ar==null?void 0:Ar.split(","))==null?void 0:rn.map(sl=>({label:sl,value:sl})))}let Wl=Ne==null?void 0:Ne.options;((Sn=Ne==null?void 0:Ne.optionUrl)==null?void 0:Sn.selectRelateType)==="自定义绑定"&&(Wl=(pn=(Tn=Ne==null?void 0:Ne.optionUrl)==null?void 0:Tn.defaultSelect)==null?void 0:pn.map(Il=>({label:Il,value:Il})));let Ql=(Ne==null?void 0:Ne.menuPath)??[],pr=(Ne==null?void 0:Ne.groups)??[],Ll=(Ne==null?void 0:Ne.columns)??[],fr=!1,Vr=(Ne==null?void 0:Ne.isFormColHidden)??!1,jl="",ar=Ne!=null&&Ne.value?Ne.value:(Wl==null?void 0:Wl.length)>0?(lr=Wl==null?void 0:Wl[0])==null?void 0:lr.value:(Ne==null?void 0:Ne.value)??"",Fr=!1,Tr="Input";return((Wl==null?void 0:Wl.length)>0||(Ql==null?void 0:Ql.length)>0)&&(Tr="Select"),(Array.isArray(jl)&&(jl!=null&&jl.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url)))||Array.isArray(ar)&&(ar!=null&&ar.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url))))&&(Tr="upload"),Ne!=null&&Ne.isMainUrl&&(Tr="Url"),{label:Ol??"",name:Ol??"t"+_l,prop:Ol??ll.safeClone(Ne==null?void 0:Ne.key),type:(Ne==null?void 0:Ne.type)??Tr,value:(Ne==null?void 0:Ne.type)==="Date"&&ar===""?new Date:ar,id:(Ne==null?void 0:Ne.id)??_l,contents:(Wl==null?void 0:Wl.length)>0?Wl:ql??[],width:(Ne==null?void 0:Ne.width)??1,isLoginUser:fr,config:Ne==null?void 0:Ne.config,optionUrl:(Ne==null?void 0:Ne.optionUrl)??Ne,isFormColHidden:Vr,isHideInForm:(Ne==null?void 0:Ne.isHideInForm)??!1,signature:Fr,isMain:Ne==null?void 0:Ne.isMain,required:(Ne==null?void 0:Ne.required)??!1,isMainUrl:Ne==null?void 0:Ne.isMainUrl,operable:(Ne==null?void 0:Ne.operable)??!1,disabled:(Ne==null?void 0:Ne.disabled)??!1,isSync:Ne==null?void 0:Ne.isSync,menus:Ql,groups:pr,words:Ll,allSelectionContents:Ne==null?void 0:Ne.allContents,filterContent:Ne==null?void 0:Ne.filterContents,isNoClick:(Ne==null?void 0:Ne.isNoClick)??!1}}),dl=fa==null?void 0:fa.map(Ne=>Ne==null?void 0:Ne.value);let He="";dl==null||dl.forEach(Ne=>{Ne!==""&&Ne!==void 0&&(He=He===""?Ne:He+"/"+Ne)}),E.setSelectArray(dl),E.setSelectString(He);let ta=(Ra=ll.safeClone(fa))==null?void 0:Ra.map(Ne=>(Ne!=null&&Ne.value&&ve.IsJson(Ne==null?void 0:Ne.value)&&Array.isArray(JSON.parse(Ne==null?void 0:Ne.value))&&(Ne.value=JSON.parse(Ne.value)),Ne)),ra={};ta==null||ta.forEach(Ne=>{ra[Ne.label]=Ne==null?void 0:Ne.value}),ta=ta==null?void 0:ta.map(Ne=>{var _l,Ol,ql,Wl,Ql,pr,Ll,fr,Vr;if((Ne==null?void 0:Ne.type)==="Select"&&((_l=Ne==null?void 0:Ne.allSelectionContents)==null?void 0:_l.length)>0&&(Ne.contactValue=ra),(ql=(Ol=Ne==null?void 0:Ne.optionUrl)==null?void 0:Ol.menuSelect)!=null&&ql.some(jl=>jl==null?void 0:jl.includes("["))){let jl="";Ne.optionUrl.oldMenuSelect=(Ql=(Wl=ll.safeClone(Ne))==null?void 0:Wl.optionUrl)==null?void 0:Ql.menuSelect,Ne.optionUrl.menuSelect=(Ll=(pr=Ne==null?void 0:Ne.optionUrl)==null?void 0:pr.menuSelect)==null?void 0:Ll.map(ar=>{var Fr,Tr,Pr,Mr,Sr,Er;if(ar!=null&&ar.includes("[")){let yn=(Tr=(Fr=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Fr.split(":"))==null?void 0:Tr[1];jl=Ze((Pr=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Pr.split(":"),na==null?void 0:na[Fe.value],na),ar=((Sr=(Mr=ll.safeClone(ta))==null?void 0:Mr.find(Dr=>(Dr==null?void 0:Dr.label)===yn))==null?void 0:Sr.value)||Ze((Er=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Er.split(":"),na==null?void 0:na[Fe.value],na)}return ar}),jl!==""&&Ne.value===""&&(Ne.value=La(Ne.optionUrl.menuSelect,Ne.optionUrl.oldMenuSelect,(fr=Ne==null?void 0:Ne.optionUrl)==null?void 0:fr.groupSelect,na),Array.isArray(Ne.value)&&((Vr=Ne.value)!=null&&Vr.every(ar=>ar==null?void 0:ar.url))&&(Ne.type="UPLOAD"))}return Ne}),s.value=ta,Se.value=((ul=s.value)==null?void 0:ul.every(Ne=>Ne==null?void 0:Ne.disabled))||ge.value===Fe.value,U.value=(rl=s.value)==null?void 0:rl.every(Ne=>Ne==null?void 0:Ne.operable),Ee.value=(ee=s.value)==null?void 0:ee.map(Ne=>Ne==null?void 0:Ne.label);let Za=[],Le=[];if((ea=ll.safeClone(s.value))==null||ea.forEach(Ne=>{var _l;Array.isArray(Ne==null?void 0:Ne.value)&&((_l=Ne==null?void 0:Ne.value)!=null&&_l.find(Ol=>{var ql;return(ql=Ol==null?void 0:Ol.url)==null?void 0:ql.includes(".obj")}))&&(Le=Ne==null?void 0:Ne.value)}),(Le==null?void 0:Le.length)>0){const Ne=(Je=ll.safeClone(Le))==null?void 0:Je.filter(_l=>{var Ol;return(Ol=_l==null?void 0:_l.url)==null?void 0:Ol.includes(".obj")});Ne==null||Ne.forEach(_l=>{var ql,Wl,Ql,pr;const Ol=(ql=Le==null?void 0:Le.filter(Ll=>{var fr;return(Ll==null?void 0:Ll.name)===(_l==null?void 0:_l.name)&&((fr=Ll==null?void 0:Ll.url)==null?void 0:fr.includes(".mtl"))}))==null?void 0:ql.map(Ll=>Ll==null?void 0:Ll.url);Za.push({objUrl:_l==null?void 0:_l.url,mtlUrls:((Wl=Le==null?void 0:Le.filter(Ll=>{var fr;return(Ll==null?void 0:Ll.name)===(_l==null?void 0:_l.name)&&((fr=Ll==null?void 0:Ll.url)==null?void 0:fr.includes(".mtl"))}))==null?void 0:Wl.length)===1?(pr=(Ql=Le==null?void 0:Le.filter(Ll=>{var fr;return(Ll==null?void 0:Ll.name)===(_l==null?void 0:_l.name)&&((fr=Ll==null?void 0:Ll.url)==null?void 0:fr.includes(".mtl"))}))==null?void 0:Ql[0])==null?void 0:pr.url:Ol})}),w.setObjUrl(Za)}(he=ll.safeClone(s.value))==null||he.forEach(Ne=>{var _l,Ol,ql,Wl,Ql,pr,Ll,fr,Vr,jl,ar,Fr,Tr;if((Ol=(_l=Ne==null?void 0:Ne.value)==null?void 0:_l.toString())!=null&&Ol.includes(".stl")||(Wl=(ql=Ne==null?void 0:Ne.value)==null?void 0:ql.toString())!=null&&Wl.includes(".STL")||(pr=(Ql=Ne==null?void 0:Ne.value)==null?void 0:Ql.toString())!=null&&pr.includes(".obj")||(fr=(Ll=Ne==null?void 0:Ne.value)==null?void 0:Ll.toString())!=null&&fr.includes(".mtl")||(jl=(Vr=Ne==null?void 0:Ne.value)==null?void 0:Vr.toString())!=null&&jl.includes(".urdf")){let Pr={},Mr=[],Sr;Array.isArray(Ne==null?void 0:Ne.value)?Sr=Ne==null?void 0:Ne.value:Sr=(ar=Ne==null?void 0:Ne.value)==null?void 0:ar.split(","),Sr==null||Sr.forEach(Er=>{Er.includes(".mtl")?Mr.push(Er):Pr.blob=Pr.blob==="undefined"?Er:Pr.blob+","+Er}),(Mr==null?void 0:Mr.length)>0&&(Pr.mtlBlobs=Mr),(Tr=(Fr=Object.values(Pr))==null?void 0:Fr[0])!=null&&Tr.includes("http:")}})}else s.value=[];let Ie=le.value;if((Ie==null?void 0:Ie.length)>0&&(Ie=Ie==null?void 0:Ie.map(na=>{var dl,He,ta,ra;let fa=(dl=na==null?void 0:na.key)==null?void 0:dl.split("/");return(n==null?void 0:n.compName)===(fa==null?void 0:fa[0])&&(He=s.value)!=null&&He.find(Za=>(Za==null?void 0:Za.prop)===(fa==null?void 0:fa[1]))&&(na.value=(ra=(ta=s.value)==null?void 0:ta.find(Za=>(Za==null?void 0:Za.prop)===(fa==null?void 0:fa[1])))==null?void 0:ra.value),na}),fe.setTableViewContents(Ie)),n!=null&&n.formRules)g.value=n==null?void 0:n.formRules;else{let na={};(ya=ll.safeClone(s).value)==null||ya.forEach(fa=>{((fa==null?void 0:fa.isMain)===!0||(fa==null?void 0:fa.required)===!0)&&(na[(fa==null?void 0:fa.prop)??(fa==null?void 0:fa.name)]=[{required:!0,message:`${(fa==null?void 0:fa.label)||(fa==null?void 0:fa.prop)||(fa==null?void 0:fa.name)}不能为空`}])}),g.value=na}if(((pa=X==null?void 0:X.contents)==null?void 0:pa.length)>0){const na=[];(qe=X==null?void 0:X.contents)==null||qe.forEach((fa,dl)=>{(fa==null?void 0:fa.label)!==""&&na.push({label:(fa==null?void 0:fa.label)??"",id:(fa==null?void 0:fa.id)??dl,type:(fa==null?void 0:fa.type)??"",background:fa==null?void 0:fa.background})}),K.value=na}else K.value=[]},{deep:!0,immediate:!0}),e.watch(()=>ge.value,ie=>{Se.value=ie===Fe.value},{immediate:!0}),(ie,X)=>{var xa;const Z=e.resolveComponent("svg-icon"),q=e.resolveComponent("el-switch"),Be=e.resolveComponent("el-checkbox"),Xe=e.resolveComponent("el-popover"),ia=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",V3,[x.value===e.unref(ri).TEXT?(e.openBlock(),e.createBlock(Dc,{key:0,itemData:a.itemData,compName:a.compName,fields:s.value,textSize:b.value,textColor:_.value,backGround:$.value,backGroundImage:F.value,disabled:Se.value||se(),"onUpdate:backGroundImage":ma},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):x.value===e.unref(ri).BLOCK?(e.openBlock(),e.createBlock(wf,{key:1,items:(xa=s.value)==null?void 0:xa.map(ka=>({label:ka!=null&&ka.isHideInForm?"":ka==null?void 0:ka.label,value:ka==null?void 0:ka.value,width:(ka==null?void 0:ka.width)??1,field:ka})),textSize:b.value,textColor:_.value,backGround:$.value,backGroundImage:F.value,disabled:Se.value||se(),"onUpdate:backGroundImage":ma},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":x.value===e.unref(ri).ORDINARY})},[e.createVNode(ll.ssForm,{rowContents:s.value,formRules:g.value,buttonValue:K.value,isRowFlex:!1,isEnableWrap:!0,textSize:b.value,textColor:_.value,backGround:$.value,backGroundImage:F.value,onOnButtonClick:Na,onChange:Ca,formDisabled:Se.value||se(),formLabelsOperable:U.value,isButtonRow:c.value,onPreview:Te,onBlurChange:ue,onHandleColEditChange:me,onHandleColTypeChange:va,onRouteUrl:H,onClickTrigger:L,"onUpdate:backGroundImage":ma},{operateCol:e.withCtx(({renderColumns:ka,formDisabled:Aa,formLabelsOperable:Sa})=>[e.createVNode(Xe,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:sa},{reference:e.withCtx(()=>[e.createElementVNode("span",F3,[e.createVNode(Z,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",P3,[X[1]||(X[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(q,{"model-value":Aa,"active-text":"禁用","inactive-text":"",onChange:Ae,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(q,{"model-value":Sa,"active-text":"编辑所有标签","inactive-text":"",onChange:Ue},null,8,["model-value"]),X[2]||(X[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(ia,{modelValue:Ee.value,"onUpdate:modelValue":X[0]||(X[0]=Ie=>Ee.value=Ie),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:de,onChange:Ka},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ka,Ie=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:Ie.label},[e.createVNode(Be,{value:Ie.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Ie.label),1)]),_:2},1032,["value"]),e.createVNode(Xe,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(Z,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Ya;return[e.createElementVNode("div",j3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Ya=Object.keys(Ie))==null?void 0:Ya.filter(Fa=>{var xl;return(xl=te.value)==null?void 0:xl.find(Jl=>(Jl==null?void 0:Jl.value)===Fa)}),Fa=>{var xl,Jl;return e.openBlock(),e.createElementBlock("div",{key:Fa},[e.createVNode(ll._sfc_main$1,{value:Ie==null?void 0:Ie[Fa],"active-text":(Jl=(xl=te.value)==null?void 0:xl.find(kl=>(kl==null?void 0:kl.value)===Fa))==null?void 0:Jl.label,inactiveText:"",onChange:kl=>Qe(kl,Fa,Ie)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",H3,[e.createVNode(Z,{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?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:3,fileDataList:M.value,onDestroy:Ke},null,8,["fileDataList"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createBlock(wr.ssDialog,{key:4,visible:v.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:d.value,onGetAnimationData:ie.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},bs=Zl._export_sfc(U3,[["__scopeId","data-v-7bb009b3"]]),zo=e.ref(0),Bc=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=A.cloneDeep(a))==null?void 0:l.map(n=>(zo.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??zo.value,children:Bc(n==null?void 0:n.children)},n))},q3=a=>{var r;return(r=A.cloneDeep(a))==null?void 0:r.map(n=>(zo.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??zo.value,children:Bc(n==null?void 0:n.children)},n))},Tc=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===l)?(r=A.cloneDeep(a))==null?void 0:r.filter(t=>(t==null?void 0:t.id)!==l):(a=a==null?void 0:a.map(n=>(n.children=Tc(n==null?void 0:n.children,l),n)),a)},Nc=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=A.cloneDeep(a))==null?void 0:r.map(t=>((t==null?void 0:t.id)===(l==null?void 0:l.id)&&(t=l),t)):(a=a==null?void 0:a.map(n=>(n.children=Nc(n==null?void 0:n.children,l),n)),a)},Ac=(a,l)=>{var r;return a!=null&&a.find(n=>{var t;return(n==null?void 0:n.id)===((t=l==null?void 0:l.contents)==null?void 0:t.id)})?(r=A.cloneDeep(a))==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.id)===((s=l==null?void 0:l.contents)==null?void 0:s.id)&&(t=l==null?void 0:l.contents),t}):(a=a==null?void 0:a.map(n=>(n.children=Ac(n==null?void 0:n.children,l),n)),a)},zc=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=A.cloneDeep(a))==null?void 0:r.map(t=>((t==null?void 0:t.id)===(l==null?void 0:l.id)&&(t!=null&&t.children||(t.children=[]),t.children.push(l.contents)),t)):(a=a==null?void 0:a.map(n=>(n.children=zc(n==null?void 0:n.children,l),n)),a)},or=[{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"}],W3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],K3=[{label:"新增",value:"add"}],In=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:K3},{key:"background",label:"按钮背景色",type:"Color"}],On=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:W3},{key:"textColor",label:"按钮颜色",type:"Color"}],G3={class:"table-header-child"},Y3={class:"table-header-child-main"},J3={class:"table-header-child-content"},X3={class:"table-header-child-content-item"},Z3={class:"fix-button"},Q3={key:0},e2={class:"form-content"},a2={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref(""),v=ve.useTableComp(A.pinia),{tableIndex:f}=A.storeToRefs(v);e.ref(0);const d=e.ref(""),y=e.ref([]),g=e.ref([]),c=E=>{var x;t.value=!0;let w=[];or==null||or.forEach(b=>{let _=A.cloneDeep(f.value)+1;v.setTableIndex(_),w.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:f.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((x=E==null?void 0:E.children)==null?void 0:x.length)>0&&w.push({children:E==null?void 0:E.children,isFormColHidden:!0}),d.value=E==null?void 0:E.id,y.value=w,g.value=w},D=E=>{n("fixChange",A.cloneDeep(E))},O=E=>{n("deleteChange",A.cloneDeep(E))},k=E=>{t.value=!0;let w=[];or==null||or.forEach(x=>{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),w.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:"",id:f.value,contents:x==null?void 0:x.options})}),s.value=E==null?void 0:E.id,y.value=w,g.value=w},K=E=>{let w=A.cloneDeep(g.value);w=w==null?void 0:w.map(x=>(x.children||(x.value=E==null?void 0:E[x.name]),x)),g.value=w},M=()=>{var w,x;y.value=g.value;let E={};if(d.value!=="")E.id=d.value,(w=y.value)==null||w.forEach(b=>{const _=or==null?void 0:or.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),E.id="id"+f.value,(x=y.value)==null||x.forEach(_=>{const $=or==null?void 0:or.find(F=>(F==null?void 0:F.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}d.value="",y.value=[],g.value=[]},R=()=>{t.value=!1,d.value="",s.value="",y.value=[],g.value=[]},j=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",E),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(E,w)=>{const x=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",G3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(b,_)=>(e.openBlock(),e.createElementBlock("div",Y3,[e.createElementVNode("div",J3,[e.createElementVNode("div",X3,e.toDisplayString(b.label),1),e.createElementVNode("div",Z3,[e.createVNode(x,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>k(b)},null,8,["onClick"]),e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>c(b)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>j(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",Q3,[e.createVNode(Mc,{tableChildContents:b==null?void 0:b.children,onDeleteChange:O,onFixChange:D},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:R,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",e2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:K},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:R,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:M},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},l2=Zl._export_sfc(a2,[["__scopeId","data-v-e0fef72d"]]),r2={class:"table-header-child"},n2={class:"table-header-child-main"},i2={class:"table-header-child-content"},o2={class:"table-header-child-content-item"},t2={class:"fix-button"},s2={key:0},c2={class:"form-content"},u2={class:"dialog-footer"},d2={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref(""),v=ve.useTableComp(A.pinia),{tableIndex:f}=A.storeToRefs(v),d=e.ref(""),y=e.ref([]),g=e.ref([]),c=E=>{n("fixChange",A.cloneDeep(E))},D=E=>{var x;t.value=!0;let w=[];or==null||or.forEach(b=>{let _=A.cloneDeep(f.value)+1;v.setTableIndex(_),w.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:f.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((x=E==null?void 0:E.children)==null?void 0:x.length)>0&&w.push({children:E==null?void 0:E.children,isFormColHidden:!0}),d.value=E==null?void 0:E.id,y.value=w,g.value=w},O=E=>{t.value=!0;let w=[];or==null||or.forEach(x=>{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),w.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:"",id:f.value,contents:x==null?void 0:x.options})}),s.value=E==null?void 0:E.id,y.value=w,g.value=w},k=E=>{let w=A.cloneDeep(g.value);w=w==null?void 0:w.map(x=>(x.children||(x.value=E==null?void 0:E[x.name]),x)),g.value=w},K=()=>{var w,x;y.value=g.value;let E={};if(d.value!=="")E.id=d.value,(w=y.value)==null||w.forEach(b=>{const _=or==null?void 0:or.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(f.value)+1;v.setTableIndex(b),E.id="idChild"+f.value,(x=y.value)==null||x.forEach(_=>{const $=or==null?void 0:or.find(F=>(F==null?void 0:F.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}d.value="",y.value=[],g.value=[]},M=()=>{t.value=!1,d.value="",s.value="",y.value=[],g.value=[]},R=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",E),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},j=E=>{n("deleteChange",E)};return(E,w)=>{const x=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",r2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(_,$)=>(e.openBlock(),e.createElementBlock("div",n2,[e.createElementVNode("div",i2,[e.createElementVNode("div",o2,e.toDisplayString(_.label),1),e.createElementVNode("div",t2,[e.createVNode(x,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>O(_)},null,8,["onClick"]),e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>D(_)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>R(_)},null,8,["onClick"])])]),_!=null&&_.children&&_.children.length>0?(e.openBlock(),e.createElementBlock("div",s2,[e.createVNode(l2,{tableChildContents:_==null?void 0:_.children,onDeleteChange:j,onFixChange:c},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:M,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",c2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",u2,[e.createVNode(b,{onClick:M,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>w[0]||(w[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>w[1]||(w[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Mc=Zl._export_sfc(d2,[["__scopeId","data-v-ebd68fa1"]]),p2={class:"table-operate-content"},f2={class:"table-operate-item"},h2={class:"operate-title"},v2={class:"operate-content"},m2={class:"fix-content"},y2={class:"fix-content-label"},g2={class:"fix-button"},b2={key:0},k2={class:"operate-title"},x2={class:"operate-content"},w2={class:"fix-content"},_2={class:"fix-content-label"},S2={class:"fix-button"},E2={class:"operate-title"},C2={class:"operate-content"},D2={class:"fix-content"},B2={class:"fix-content-label"},T2={class:"fix-button"},N2={class:"operate-title"},A2={class:"operate-content"},z2={class:"fix-content"},M2={class:"fix-content-label"},I2={class:"fix-button"},O2={class:"operate-content"},L2={style:{display:"flex","justify-content":"space-between"}},R2={class:"form-content"},$2={class:"dialog-footer"},V2={class:"form-content"},F2={class:"dialog-footer"},P2={class:"form-content"},j2={class:"dialog-footer"},H2={class:"form-content"},U2={class:"dialog-footer"},q2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref(!1),v=e.ref(!1),f=e.ref([]),d=e.ref(!1),y=e.ref([]),g=e.ref(!1),c=e.ref([]),D=e.ref(""),O=e.ref(""),k=e.ref([]),K=e.ref([]),M=e.ref([]),R=e.ref([]),j=e.ref(!1),E=e.ref([]),w=e.ref([]),x=e.ref(0),b=e.ref([]),_=e.ref([]),$=e.ref([]),F=()=>{j.value=!0;let L=[];In==null||In.forEach(H=>{x.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:(H==null?void 0:H.key)==="background"?"var(--ssComponent-primary-color)":"",id:x.value,contents:H==null?void 0:H.options})}),E.value=L,w.value=L},J=()=>{var H,Q,ye;v.value=!0;let L=[];(ye=(Q=(H=ve.FormContent)==null?void 0:H.find(me=>(me==null?void 0:me.key)==="Input"))==null?void 0:Q.value)==null||ye.forEach(me=>{x.value++,L.push({label:me==null?void 0:me.label,name:(me==null?void 0:me.name)||(me==null?void 0:me.label),type:me.type,value:(me==null?void 0:me.label)==="类型"?"Input":"",id:x.value,contents:me==null?void 0:me.options})}),b.value=L,_.value=L},ce=L=>{L||(b.value=_.value)},be=async L=>{var H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca;if((L==null?void 0:L.类型)!==((Q=(H=_.value)==null?void 0:H.find(Ze=>(Ze==null?void 0:Ze.label)==="类型"))==null?void 0:Q.value)){let Ze=[],La=await((va=(me=(ye=ve.FormContent)==null?void 0:ye.find(ie=>(ie==null?void 0:ie.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:me.value)==null?void 0:va.value)?await((Ke=(Te=(ma=ve.FormContent)==null?void 0:ma.find(ie=>(ie==null?void 0:ie.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:Te.value)==null?void 0:Ke.value):(ue=(Qe=ve.FormContent)==null?void 0:Qe.find(ie=>(ie==null?void 0:ie.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:ue.value;if(La==null||La.forEach(ie=>{x.value++,Ze.push({label:ie==null?void 0:ie.label,name:(ie==null?void 0:ie.name)||(ie==null?void 0:ie.label),type:ie.type,value:ie!=null&&ie.属性名?(L==null?void 0:L.prop)||(L==null?void 0:L.name)||(L==null?void 0:L.label):(L==null?void 0:L[ie.label])??"",id:x.value,contents:ie==null?void 0:ie.options,prop:(ie==null?void 0:ie.prop)||(ie==null?void 0:ie.name)||(ie==null?void 0:ie.label)})}),L!=null&&L.菜单选项&&((Na=L==null?void 0:L.菜单选项)==null?void 0:Na.length)>0){const ie=await ve.menuToContentType(L==null?void 0:L.菜单选项);Ze=Ze==null?void 0:Ze.map(X=>((X==null?void 0:X.name)==="组信息选项"&&(X.contents=ie),X))}_.value=await ve.selectToBase(A.cloneDeep(Ze)),b.value=await ve.selectToBase(A.cloneDeep(Ze))}else{let Ze=A.cloneDeep(b.value);if(Ze=Ze==null?void 0:Ze.map(La=>(La.value=L==null?void 0:L[La.name],La)),L!=null&&L.菜单选项&&((Ca=L==null?void 0:L.菜单选项)==null?void 0:Ca.length)>0){const La=await ve.menuToContentType(L==null?void 0:L.菜单选项);Ze=Ze==null?void 0:Ze.map(ie=>((ie==null?void 0:ie.name)==="组信息选项"&&(ie.contents=La),ie))}Ze=ve.formToOptionsContents(Ze),_.value=await ve.selectToBase(A.cloneDeep(Ze))}},Me=async L=>{await be(L),b.value=_.value},V=(L,H)=>{if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="selectRelateType"){const Q=H==null?void 0:H.optionUrl;return(Q==null?void 0:Q.selectRelateType)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="menuSelect"){const Q=H==null?void 0:H.optionUrl;return(Q==null?void 0:Q.menuSelect)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="groupSelect"){const Q=H==null?void 0:H.optionUrl;return(Q==null?void 0:Q.groupSelect)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="originalContent")return(H==null?void 0:H.value)||H[L.key];if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="multiple"){const Q=H[L.key];return Ys(Q)?Q:L.default}return(L==null?void 0:L.label)==="类型"&&H[L.key]===""?"Input":(L==null?void 0:L.key)==="isFormColHidden"&&!H[L.key]?!1:H[L.key]},fe=async L=>{var ye,me,va,Qe,ue,ma,Te,Ke,Na;v.value=!0;let H=[];const Q=await((va=(me=(ye=ve.FormContent)==null?void 0:ye.find(Ca=>(Ca==null?void 0:Ca.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:me.value)==null?void 0:va.value)?await((Ke=(Te=(ma=ve.FormContent)==null?void 0:ma.find(Ca=>(Ca==null?void 0:Ca.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:Te.value)==null?void 0:Ke.value):(ue=(Qe=ve.FormContent)==null?void 0:Qe.find(Ca=>(Ca==null?void 0:Ca.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:ue.value;if(Q==null||Q.forEach(Ca=>{x.value++,H.push({label:Ca==null?void 0:Ca.label,name:(Ca==null?void 0:Ca.name)||(Ca==null?void 0:Ca.label),type:Ca.type,value:(Ca==null?void 0:Ca.label)==="属性名"?(L==null?void 0:L.prop)||(L==null?void 0:L.name)||(L==null?void 0:L.label):V(Ca,L),id:x.value,contents:Ca==null?void 0:Ca.options})}),L!=null&&L.menuSelect&&((Na=L==null?void 0:L.menuSelect)==null?void 0:Na.length)>0){const Ca=await ve.menuToContentType(L==null?void 0:L.menuSelect);H=H==null?void 0:H.map(Ze=>((Ze==null?void 0:Ze.name)==="组信息选项"&&(Ze.contents=Ca),Ze))}D.value=L==null?void 0:L.id,b.value=await ve.selectToBase(ve.formToOptionsContents(H)),_.value=await ve.selectToBase(ve.formToOptionsContents(H))},le=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;$.value=(H=A.cloneDeep($.value))==null?void 0:H.filter(ye=>(ye==null?void 0:ye.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ye=>((ye==null?void 0:ye.key)==="tableToForm"&&(ye.contents=$.value),ye))),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},pe=()=>{v.value=!1,b.value=[],D.value=""},De=async()=>{var ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca;b.value=_.value;let L={};D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value);let H=await((va=(me=(ye=ve.FormContent)==null?void 0:ye.find(Ze=>{var La,ie;return(Ze==null?void 0:Ze.key)===(((ie=(La=b.value)==null?void 0:La.find(X=>(X==null?void 0:X.label)==="类型"))==null?void 0:ie.value)??"label")}))==null?void 0:me.value)==null?void 0:va.value)??((ue=(Qe=ve.FormContent)==null?void 0:Qe.find(Ze=>{var La,ie;return(Ze==null?void 0:Ze.key)===(((ie=(La=b.value)==null?void 0:La.find(X=>(X==null?void 0:X.label)==="类型"))==null?void 0:ie.value)??"label")}))==null?void 0:ue.value);if((ma=b.value)==null||ma.forEach(Ze=>{const La=H==null?void 0:H.find(ie=>(ie==null?void 0:ie.label)===(Ze==null?void 0:Ze.label));La&&(L[La.key]=Ze.value)}),L.name=L.label,(Te=$.value)!=null&&Te.find(Ze=>Ze.id===L.id))$.value=(Ke=$.value)==null?void 0:Ke.map(Ze=>(Ze.id===L.id&&(Ze=L),Ze));else{let Ze=A.cloneDeep($.value);$.value||($.value=[]),Ze.push(L),$.value=Ze}$.value=$.value.map(({id:Ze,...La})=>La),v.value=!1,D.value="";let Q=A.cloneDeep(r.originalItemContents);(Na=A.cloneDeep(r.originalItemContents))!=null&&Na.find(Ze=>(Ze==null?void 0:Ze.key)==="tableToForm")?Q=(Ca=A.cloneDeep(r.originalItemContents))==null?void 0:Ca.map(Ze=>((Ze==null?void 0:Ze.key)==="tableToForm"&&(Ze.contents=$.value),Ze)):Q.push({key:"tableToForm",contents:$.value}),n("change",Q)},Ve=L=>{j.value=!0;let H=[];In==null||In.forEach(Q=>{x.value++,H.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:L[Q.key],id:x.value,contents:Q==null?void 0:Q.options})}),D.value=L==null?void 0:L.id,E.value=H,w.value=H};e.watch(()=>g.value,()=>{var H,Q;let L=A.cloneDeep(r.originalItemContents);(H=A.cloneDeep(r.originalItemContents))!=null&&H.find(ye=>(ye==null?void 0:ye.key)==="page")?L=(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ye=>((ye==null?void 0:ye.key)==="page"&&(ye.contents=g.value),ye)):L.push({key:"page",contents:g.value}),n("change",L)},{deep:!0});const ge=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;K.value=(H=A.cloneDeep(K.value))==null?void 0:H.filter(ye=>(ye==null?void 0:ye.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ye=>((ye==null?void 0:ye.key)==="extraButton"&&(ye.contents=K.value),ye))),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},N=()=>{var Q,ye,me,va,Qe;E.value=w.value;let L={};if(D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value),(Q=E.value)==null||Q.forEach(ue=>{const ma=In==null?void 0:In.find(Te=>(Te==null?void 0:Te.label)===(ue==null?void 0:ue.label));ma?L[ma.key]=ue.value:ue!=null&&ue.children&&ue.children.length>0&&(L.children=ue.children)}),(ye=K.value)!=null&&ye.find(ue=>ue.id===L.id))K.value=(me=K.value)==null?void 0:me.map(ue=>(ue.id===L.id&&(ue=L),ue));else{let ue=A.cloneDeep(K.value)??[];ue.push(L),K.value=ue}j.value=!1,D.value="";let H=A.cloneDeep(r.originalItemContents);(va=A.cloneDeep(r.originalItemContents))!=null&&va.find(ue=>(ue==null?void 0:ue.key)==="extraButton")?H=(Qe=A.cloneDeep(r.originalItemContents))==null?void 0:Qe.map(ue=>((ue==null?void 0:ue.key)==="extraButton"&&(ue.contents=K.value),ue)):H.push({key:"extraButton",contents:K.value}),n("change",H)},de=L=>{let H=A.cloneDeep(w.value);H=H==null?void 0:H.map(Q=>(Q.children||(Q.value=L==null?void 0:L[Q.name]),Q)),w.value=H},U=()=>{j.value=!1,E.value=[],D.value=""},Se=L=>{d.value=!0;let H=[];On==null||On.forEach(Q=>{x.value++,H.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:L[Q.key],id:x.value,contents:Q==null?void 0:Q.options})}),D.value=L==null?void 0:L.id,M.value=H,R.value=H},Oe=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;k.value=(H=A.cloneDeep(k.value))==null?void 0:H.filter(ye=>(ye==null?void 0:ye.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ye=>((ye==null?void 0:ye.key)==="rowButton"&&(ye.contents=k.value),ye))),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Fe=()=>{s.value=!0;let L=[];or==null||or.forEach(H=>{x.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:"",id:x.value,contents:H==null?void 0:H.options})}),y.value=L,c.value=L},la=()=>{d.value=!0;let L=[];On==null||On.forEach(H=>{x.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:"",id:x.value,contents:H==null?void 0:H.options})}),M.value=L,R.value=L},Da=L=>{let H=A.cloneDeep(R.value);H=H==null?void 0:H.map(Q=>(Q.children||(Q.value=L==null?void 0:L[Q.name]),Q)),R.value=H},re=()=>{var Q,ye,me,va,Qe;M.value=R.value;let L={};if(D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value),(Q=M.value)==null||Q.forEach(ue=>{const ma=On==null?void 0:On.find(Te=>(Te==null?void 0:Te.label)===(ue==null?void 0:ue.label));ma?L[ma.key]=ue.value:ue!=null&&ue.children&&ue.children.length>0&&(L.children=ue.children)}),(ye=k.value)!=null&&ye.find(ue=>ue.id===L.id))k.value=(me=k.value)==null?void 0:me.map(ue=>(ue.id===L.id&&(ue=L),ue));else{let ue=A.cloneDeep(k.value);ue.push(L),k.value=ue}d.value=!1,D.value="";let H=A.cloneDeep(r.originalItemContents);(va=A.cloneDeep(r.originalItemContents))!=null&&va.find(ue=>(ue==null?void 0:ue.key)==="rowButton")?H=(Qe=A.cloneDeep(r.originalItemContents))==null?void 0:Qe.map(ue=>((ue==null?void 0:ue.key)==="rowButton"&&(ue.contents=k.value),ue)):H.push({key:"rowButton",contents:k.value}),n("change",H)},ca=()=>{d.value=!1,D.value="",R.value=[],M.value=[]},se=L=>{s.value=!0;let H=[];or==null||or.forEach(Q=>{x.value++,H.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:"",id:x.value,contents:Q==null?void 0:Q.options})}),y.value=H,O.value=L==null?void 0:L.id,c.value=H},da=L=>{var H;f.value=Tc(A.cloneDeep(f.value),L==null?void 0:L.id),n("change",(H=A.cloneDeep(r.originalItemContents))==null?void 0:H.map(Q=>{var ye;return(Q==null?void 0:Q.key)==="header"&&(Q.contents=(ye=f.value)!=null&&ye.some(me=>me==null?void 0:me.children)?[f.value]:f.value),Q}))},Ee=L=>{var Q,ye,me;L.type==="fix"?L.id!==""?f.value=Ac(f.value,L):f.value=Nc(f.value,L==null?void 0:L.contents):f.value=zc(f.value,L),f.value=(Q=f.value)!=null&&Q.some(va=>va==null?void 0:va.children)?[f.value]:f.value,D.value="";let H=A.cloneDeep(r.originalItemContents);(ye=A.cloneDeep(r.originalItemContents))!=null&&ye.find(va=>(va==null?void 0:va.key)==="header")?H=(me=A.cloneDeep(r.originalItemContents))==null?void 0:me.map(va=>((va==null?void 0:va.key)==="header"&&(va.contents=f.value),va)):H.push({key:"header",contents:f.value}),n("change",H)},te=L=>{var Q;s.value=!0;let H=[];or==null||or.forEach(ye=>{x.value++,H.push({label:ye==null?void 0:ye.label,name:ye==null?void 0:ye.label,type:ye.type,value:L[ye.key],id:x.value,contents:ye==null?void 0:ye.options})}),L!=null&&L.children&&((Q=L==null?void 0:L.children)==null?void 0:Q.length)>0&&H.push({children:L==null?void 0:L.children,isFormColHidden:!0}),D.value=L==null?void 0:L.id,O.value="",y.value=H,c.value=H},Ae=L=>{let H=A.cloneDeep(c.value);H=H==null?void 0:H.map(Q=>(Q.children||(Q.value=L==null?void 0:L[Q.name]),Q)),c.value=H},Ue=()=>{s.value=!1,D.value="",O.value="",c.value=[]},sa=()=>{var Q,ye,me,va,Qe,ue;y.value=c.value;let L={};if(D.value!==""?L.id=D.value:(x.value++,L.id="id"+x.value),(Q=y.value)==null||Q.forEach(ma=>{const Te=or==null?void 0:or.find(Ke=>(Ke==null?void 0:Ke.label)===(ma==null?void 0:ma.label));Te?L[Te.key]=ma.value:ma!=null&&ma.children&&ma.children.length>0&&(L.children=ma.children)}),(ye=f.value)!=null&&ye.find(ma=>ma.id===L.id))f.value=(me=f.value)==null?void 0:me.map(ma=>(ma.id===L.id&&(ma=L),ma));else{let ma=A.cloneDeep(f.value)??[];O.value===""?ma.push(L):ma=ma==null?void 0:ma.map(Te=>(Te.id===O.value&&(Te.children||(Te.children=[]),Te.children.push(L)),Te)),f.value=ma}f.value=(va=f.value)!=null&&va.some(ma=>ma==null?void 0:ma.children)?[f.value]:f.value,s.value=!1,D.value="",O.value="";let H=A.cloneDeep(r.originalItemContents);(Qe=A.cloneDeep(r.originalItemContents))!=null&&Qe.find(ma=>(ma==null?void 0:ma.key)==="header")?H=(ue=A.cloneDeep(r.originalItemContents))==null?void 0:ue.map(ma=>((ma==null?void 0:ma.key)==="header"&&(ma.contents=f.value),ma)):H.push({key:"header",contents:f.value}),n("change",H)},Ka=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;f.value=(H=A.cloneDeep(f.value))==null?void 0:H.filter(ye=>(ye==null?void 0:ye.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(ye=>{var me;return(ye==null?void 0:ye.key)==="header"&&(ye.contents=(me=f.value)!=null&&me.some(va=>va==null?void 0:va.children)?[f.value]:f.value),ye})),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>r.originalItemContents,()=>{var L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La,ie,X,Z,q;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(t.value=A.cloneDeep(r.originalItemContents),f.value=(H=(L=t.value)==null?void 0:L.find(Be=>(Be==null?void 0:Be.key)==="header"))==null?void 0:H.contents,k.value=(ye=(Q=t.value)==null?void 0:Q.find(Be=>(Be==null?void 0:Be.key)==="rowButton"))==null?void 0:ye.contents,K.value=(va=(me=t.value)==null?void 0:me.find(Be=>(Be==null?void 0:Be.key)==="extraButton"))==null?void 0:va.contents,g.value=(ue=(Qe=t.value)==null?void 0:Qe.find(Be=>(Be==null?void 0:Be.key)==="page"))!=null&&ue.contents?!!((Te=(ma=t.value)==null?void 0:ma.find(Be=>(Be==null?void 0:Be.key)==="page"))!=null&&Te.contents):!1,$.value=(Na=(Ke=t.value)==null?void 0:Ke.find(Be=>(Be==null?void 0:Be.key)==="tableToForm"))==null?void 0:Na.contents,f.value=(Ca=f.value)==null?void 0:Ca.map((Be,Xe)=>(Array.isArray(Be)?Be=q3(Be):Be={label:(Be==null?void 0:Be.label)??"",prop:(Be==null?void 0:Be.label)==="操作"?"operate":Be==null?void 0:Be.prop,width:Be!=null&&Be.width?parseInt(Be.width):"",fixed:(Be==null?void 0:Be.fixed)??void 0,sortable:(Be==null?void 0:Be.sortable)??!1,align:(Be==null?void 0:Be.align)??"left",showOverflowTooltip:(Be==null?void 0:Be.showOverflowTooltip)??!0,isNotDrag:(Be==null?void 0:Be.isNotDrag)??!1,isEditCol:(Be==null?void 0:Be.isEditCol)??!1,isOperate:(Be==null?void 0:Be.isOperate)??!1,id:(Be==null?void 0:Be.id)??Xe,formMenuSelect:(Be==null?void 0:Be.formMenuSelect)??void 0,groupSelect:(Be==null?void 0:Be.groupSelect)??void 0},Be)),f.value=(Ze=f.value)!=null&&Ze.every(Be=>Array.isArray(Be))?(La=f.value)==null?void 0:La[0]:f.value,k.value=(ie=k.value)==null?void 0:ie.map((Be,Xe)=>Be={label:(Be==null?void 0:Be.label)??"",type:(Be==null?void 0:Be.type)??"",textColor:(Be==null?void 0:Be.textColor)??"#000000",id:(Be==null?void 0:Be.id)??Xe}),K.value=(X=K.value)==null?void 0:X.map((Be,Xe)=>Be={label:(Be==null?void 0:Be.label)??"",type:(Be==null?void 0:Be.type)??"",background:(Be==null?void 0:Be.background)??"var(--ssComponent-primary-color)",id:(Be==null?void 0:Be.id)??Xe}),$.value)$.value=(q=$.value)==null?void 0:q.map(Be=>{x.value++;let Xe=Be;return Xe.id=x.value,Xe});else{let Be=[];const Xe=(Z=ve.getColumnChild(A.cloneDeep(f.value)))==null?void 0:Z.filter(ia=>(ia==null?void 0:ia.prop)!=="operate");Xe==null||Xe.forEach(ia=>{var xa;x.value++,Be.push({label:ia==null?void 0:ia.label,name:(ia==null?void 0:ia.prop)||(ia==null?void 0:ia.label),type:ia!=null&&ia.groupSelect?"Select":"Input",value:"",id:x.value,contents:ia==null?void 0:ia.options,menuSelect:ia==null?void 0:ia.formMenuSelect,groupSelect:(xa=ia==null?void 0:ia.groupSelect)==null?void 0:xa.split(":"),selectRelateType:"关联绑定列"})}),$.value=Be}},{deep:!0,immediate:!0}),(L,H)=>{const Q=e.resolveComponent("svg-icon"),ye=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",p2,[e.createElementVNode("div",f2,[e.createElementVNode("div",h2,[H[2]||(H[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(ye,{class:"icon-content",onClick:Fe,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",v2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(me,va)=>(e.openBlock(),e.createElementBlock("div",{key:va},[e.createElementVNode("div",m2,[e.createElementVNode("div",y2,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",g2,[e.createVNode(Q,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Qe=>se(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Qe=>te(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Qe=>Ka(me)},null,8,["onClick"])])]),me!=null&&me.children&&me.children.length>0?(e.openBlock(),e.createElementBlock("div",b2,[e.createVNode(Mc,{tableChildContents:me==null?void 0:me.children,onDeleteChange:da,onFixChange:Ee},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",k2,[H[4]||(H[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(ye,{class:"icon-content",id:"themeButton",onClick:la},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[3]||(H[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",x2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(me,va)=>(e.openBlock(),e.createElementBlock("div",{key:va},[e.createElementVNode("div",w2,[e.createElementVNode("div",_2,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",S2,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Qe=>Se(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Qe=>Oe(me)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",E2,[H[6]||(H[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(ye,{class:"icon-content",id:"themeButton",onClick:F},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[5]||(H[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",C2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,(me,va)=>(e.openBlock(),e.createElementBlock("div",{key:va},[e.createElementVNode("div",D2,[e.createElementVNode("div",B2,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",T2,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Qe=>Ve(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Qe=>ge(me)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",N2,[H[8]||(H[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(ye,{class:"icon-content",id:"themeButton",onClick:J},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[7]||(H[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",A2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(me,va)=>(e.openBlock(),e.createElementBlock("div",{key:va},[e.createElementVNode("div",z2,[e.createElementVNode("div",M2,e.toDisplayString(me==null?void 0:me.label),1),e.createElementVNode("div",I2,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Qe=>fe(me)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Qe=>le(me)},null,8,["onClick"])])])]))),128))]),H[10]||(H[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",O2,[e.createElementVNode("div",L2,[H[9]||(H[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(ll._sfc_main$1,{modelValue:g.value,"onUpdate:modelValue":H[0]||(H[0]=me=>g.value=me)},null,8,["modelValue"])])])]),e.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:Ue,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",R2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:Ae},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",$2,[e.createVNode(ye,{onClick:Ue,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[11]||(H[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(ye,{class:"ok-button button",onClick:sa,id:"themeButton"},{default:e.withCtx(()=>H[12]||(H[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:d.value,onBeforeDestroy:ca,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",V2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:Da},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",F2,[e.createVNode(ye,{onClick:ca,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[13]||(H[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(ye,{class:"ok-button button",onClick:re,id:"themeButton"},{default:e.withCtx(()=>H[14]||(H[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:j.value,onBeforeDestroy:U,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",P2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:de},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",j2,[e.createVNode(ye,{onClick:U,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[15]||(H[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(ye,{class:"ok-button button",onClick:N,id:"themeButton"},{default:e.withCtx(()=>H[16]||(H[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:v.value,onBeforeDestroy:pe,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",H2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:be,onChangeVisible:ce,onBlurChange:Me},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",U2,[e.createVNode(ye,{onClick:pe,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[17]||(H[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(ye,{class:"ok-button button",onClick:De,id:"themeButton"},{default:e.withCtx(()=>H[18]||(H[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},W2=Zl._export_sfc(q2,[["__scopeId","data-v-7a6b87b5"]]),K2=A.useModelComp(A.pinia),{pageMapState:G2}=A.storeToRefs(K2),Y2=A.useMenuState(A.pinia),{activeMenuPath:J2}=A.storeToRefs(Y2),X2=e.ref(24),Z2=e.ref(6),Q2=e.ref(10),eh=e.ref(70),ah=e.ref(.18),lh=e.ref(45),rh=(a,l,r,n)=>{var t,s,v,f,d,y,g,c,D,O,k,K,M,R,j,E;return{x:((s=(t=a==null?void 0:a.value)==null?void 0:t.tableData)==null?void 0:s.x)||l%2*12,y:((f=(v=a==null?void 0:a.value)==null?void 0:v.tableData)==null?void 0:f.y)||l,w:((y=(d=a==null?void 0:a.value)==null?void 0:d.tableData)==null?void 0:y.w)||X2.value,h:((c=(g=a==null?void 0:a.value)==null?void 0:g.tableData)==null?void 0:c.h)||r,minW:((O=(D=a==null?void 0:a.value)==null?void 0:D.tableData)==null?void 0:O.minW)||Z2.value,minH:((K=(k=a==null?void 0:a.value)==null?void 0:k.tableData)==null?void 0:K.minH)||ah.value,maxH:((R=(M=a==null?void 0:a.value)==null?void 0:M.tableData)==null?void 0:R.maxH)||lh.value,i:((E=(j=a==null?void 0:a.value)==null?void 0:j.tableData)==null?void 0:E.i)||l,id:(a==null?void 0:a.id)||l+"",component:n}},nh=(a,l)=>{var n,t,s,v,f,d,y,g;let r=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){if(((v=(s=(t=a==null?void 0:a.compData)==null?void 0:t.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:s.contents)==null?void 0:v.length)===0)return 2}else((f=a==null?void 0:a.comp)==null?void 0:f.toUpperCase())==="FORM"&&(r=((g=(y=(d=a==null?void 0:a.compData)==null?void 0:d.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:y.contents)==null?void 0:g.length)/5);return r*2},Ic=(a,l,r)=>{var v,f;const n=(f=(v=G2.value)==null?void 0:v[J2.value])==null?void 0:f.filter(d=>{var y;return((y=d==null?void 0:d.key)==null?void 0:y.type)==="gridLayout"}),t=n==null?void 0:n.find(d=>{var y,g,c;return((c=(g=(y=d==null?void 0:d.value)==null?void 0:y.tableData)==null?void 0:g.component)==null?void 0:c.id)===a.id}),s=nh(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((d,y)=>Ic(d,y))),{...rh(t,l,s,a)}},ih=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const r=A.cloneDeep(a);return Array.isArray(a)?r==null?void 0:r.map((n,t)=>Ic(n,t)):[]},oh=a=>({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}]}]}}),th=(a,l)=>a==null?void 0:a.map(r=>{for(const n in l)if(n===(r==null?void 0:r.prop))return{...r,value:l[n]};return r}),sh=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]);e.watch(()=>r.compType,f=>{var g;const d=oh(r==null?void 0:r.optionItems),y=f?(g=d[f==null?void 0:f.toUpperCase()])==null?void 0:g[r==null?void 0:r.target]:[];t.value=y==null?void 0:y.map(c=>{for(const[D,O]of Object.entries((r==null?void 0:r.comp)||{}))if((c==null?void 0:c.prop)===D)return{...c,value:O};return c})},{immediate:!0});const s=f=>ll.getComponent(f),v=f=>{var d,y;(f==null?void 0:f.prop)==="layout"&&(f==null?void 0:f.value)==="horizontal"?t.value=(d=t.value)==null?void 0:d.map(g=>{var c;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(c=g==null?void 0:g.options)==null?void 0:c.map(D=>({...D,disabled:!0}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!0}:g}):t.value=(y=t.value)==null?void 0:y.map(g=>{var c;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(c=g==null?void 0:g.options)==null?void 0:c.map(D=>({...D,disabled:!1}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!1}:g}),n("change",{target:r==null?void 0:r.target,styleConfigs:t.value,prop:f==null?void 0:f.prop})};return(f,d)=>{const y=e.resolveComponent("el-col"),g=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,c=>(e.openBlock(),e.createBlock(g,{class:"style-row",key:c==null?void 0:c.prop},{default:e.withCtx(()=>[e.createVNode(y,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c==null?void 0:c.label)+":",1)]),_:2},1024),e.createVNode(y,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(c.type)),{modelValue:c.value,"onUpdate:modelValue":D=>c.value=D,content:c==null?void 0:c.options,optionUrl:c==null?void 0:c.optionUrl,disabled:c==null?void 0:c.disabled,activeText:c==null?void 0:c.activeText,inactiveText:c==null?void 0:c.inactiveText,onChange:D=>v(c)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),ch=Zl._export_sfc(sh,[["__scopeId","data-v-6c233914"]]),uh=e.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(a,{emit:l}){const r=a,n=l,t=[{required:!0,message:"输入不能为空",trigger:"blur"}],s=e.ref([]),v=R=>R==null?void 0:R.reduce((j,E)=>(j[E==null?void 0:E.prop]=E==null?void 0:E.rule,j),{}),f=e.computed(()=>({formRules:v(s.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),d=e.ref([]),y=e.ref(""),g=(R,j,E)=>{var b;let w=[];(r==null?void 0:r.activeTabName)==="任务配置"?(w=[{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:R},{label:"按钮名称",value:"按钮名称",children:j}]},{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:"暂停"}]}],s.value=[{prop:"任务名称",rule:t},{prop:"任务关键词",rule:t},{prop:"执行任务",rule:t},{prop:"执行动作",rule:t},{prop:"执行交互",rule:t}]):(r==null?void 0:r.activeTabName)==="任务关联"&&(w=[{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:(b=r==null?void 0:r.relatedData)==null?void 0:b.map(_=>({label:_==null?void 0:_.任务名称,value:_==null?void 0:_.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"关联名称",rule:t},{prop:"关联状态",rule:t},{prop:"关联形式",rule:t},{prop:"关联任务集合",rule:t}]);let x;return E&&(E==null?void 0:E.length)>0?x=[...w,...c(R,j,E)]:x=w,x},c=(R,j,E)=>{const w=[{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 E?w==null?void 0:w.filter(x=>E==null?void 0:E.includes(x==null?void 0:x.prop)):w},D=(R,j)=>{var _,$,F,J,ce,be,Me,V,fe;const E=((ce=(J=(F=($=(_=r==null?void 0:r.comp)==null?void 0:_.compData)==null?void 0:$.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:F.contents)==null?void 0:J.filter(le=>(le==null?void 0:le.label)!=="操作"))==null?void 0:ce.map(le=>({value:le==null?void 0:le.prop,label:le.label})))||[],w=/button/i,x=((fe=(V=(Me=(be=r==null?void 0:r.comp)==null?void 0:be.compData)==null?void 0:Me.filter(le=>w.test(le==null?void 0:le.key)))==null?void 0:V.flatMap(le=>le==null?void 0:le.contents))==null?void 0:fe.map(le=>({value:le==null?void 0:le.label,label:le.label})))||[],b=g(E,x,R);d.value=j?th(b,j):b,R&&(R==null?void 0:R.length)>0&&s.value.push(...R==null?void 0:R.map(le=>({prop:le,rule:t})))};e.onMounted(()=>{D(null,r==null?void 0:r.extendItem)});const O=R=>{const j=R==null?void 0:R[y.value];if(y.value==="执行任务"){if(!(j!=null&&j.join("/")))return;const E=j==null?void 0:j.join("/");D(E==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:E==="进度设置/进度条"?["进度关键词"]:null,R)}},k=R=>{n("change",{target:r==null?void 0:r.target,extendConfigs:R})},K=(R,j)=>{y.value=j==null?void 0:j.changeProp,O(R)},M=R=>{n("onButtonClick",R)};return(R,j)=>(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,key:d.value,isStartJustify:!1,isEnableWrap:!1,formRules:f.value.formRules,buttonValue:f.value.buttonValue,onChange:k,onBlurChange:K,onOnButtonClick:M},null,8,["rowContents","formRules","buttonValue"]))}}),dh=Zl._export_sfc(uh,[["__scopeId","data-v-7c660c1f"]]),ph={};function fh(a,l){return null}const hh=Zl._export_sfc(ph,[["render",fh]]),vh={class:"form-operate-content"},mh={class:"form-operate-item"},yh={class:"operate-title"},gh={class:"operate-content"},bh={class:"fix-content"},kh={class:"fix-button"},xh={class:"operate-title"},wh={class:"operate-content"},_h={class:"fix-content"},Sh={class:"fix-button"},Eh={style:{display:"flex","justify-content":"space-between"}},Ch={class:"form-content"},Dh={class:"dialog-footer"},Bh={class:"form-content"},Th={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref([]),v=e.ref([]),f=e.ref(!1),d=e.ref([]),y=e.ref([]),g=e.ref(""),c=e.ref(!1),D=e.ref(0),O=e.ref([]),k=e.ref([]),K=(V,fe)=>{if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="selectRelateType"){const le=fe==null?void 0:fe.optionUrl;return(le==null?void 0:le.selectRelateType)||fe[V.key]}if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="menuSelect"){const le=fe==null?void 0:fe.optionUrl;return(le==null?void 0:le.menuSelect)||fe[V.key]}if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="groupSelect"){const le=fe==null?void 0:fe.optionUrl;return(le==null?void 0:le.groupSelect)||fe[V.key]}if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="originalContent")return(fe==null?void 0:fe.value)||fe[V.key];if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="multiple"){const le=fe[V.key];return Ys(le)?le:V.default}return(V==null?void 0:V.label)==="类型"&&fe[V.key]===""?"Input":(V==null?void 0:V.key)==="isFormColHidden"&&!fe[V.key]?!1:fe[V.key]},M=async V=>{var pe,De,Ve,ge,N,de;t.value=!0;let fe=[];const le=await((Ve=(De=(pe=ve.FormContent)==null?void 0:pe.find(U=>(U==null?void 0:U.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:De.value)==null?void 0:Ve.value)??((N=(ge=ve.FormContent)==null?void 0:ge.find(U=>(U==null?void 0:U.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:N.value);if(le==null||le.forEach(U=>{D.value++,fe.push({label:U==null?void 0:U.label,name:U==null?void 0:U.label,type:U.type,prop:U==null?void 0:U.prop,value:K(U,V),id:D.value,contents:U==null?void 0:U.options,width:(V==null?void 0:V.width)??1})}),V!=null&&V.menuSelect&&((de=V==null?void 0:V.menuSelect)==null?void 0:de.length)>0){const U=await ve.menuToContentType(V==null?void 0:V.menuSelect);fe=fe==null?void 0:fe.map(Se=>((Se==null?void 0:Se.name)==="组信息选项"&&(Se.contents=U),Se))}g.value=V==null?void 0:V.id,s.value=await ve.selectToBase(ve.formToOptionsContents(fe)),v.value=await ve.selectToBase(ve.formToOptionsContents(fe))},R=V=>{var le;f.value=!0;let fe=[];(le=ve.FormButton)==null||le.forEach(pe=>{D.value++,fe.push({label:pe==null?void 0:pe.label,name:pe==null?void 0:pe.label,type:pe.type,value:(pe==null?void 0:pe.label)==="类型"&&V[pe.key]===""?"normal":V[pe.key],id:D.value,contents:pe==null?void 0:pe.options})}),O.value=fe,k.value=fe,g.value=V==null?void 0:V.id};e.watch(()=>c.value,()=>{var fe,le;let V=A.cloneDeep(r.originalItemContents);(fe=A.cloneDeep(r.originalItemContents))!=null&&fe.find(pe=>(pe==null?void 0:pe.key)==="enableWrap")?V=(le=A.cloneDeep(r.originalItemContents))==null?void 0:le.map(pe=>((pe==null?void 0:pe.key)==="enableWrap"&&(pe.contents=!c.value),pe)):V.push({key:"enableWrap",contents:!c.value}),n("change",V)},{deep:!0});const j=()=>{var le,pe,De,Ve,ge;O.value=k.value;let V={};if(g.value!==""?V.id=g.value:(D.value++,V.id="id"+D.value),(le=O.value)==null||le.forEach(N=>{var U;const de=(U=ve.FormButton)==null?void 0:U.find(Se=>(Se==null?void 0:Se.label)===(N==null?void 0:N.label));de&&(V[de.key]=N.value)}),(pe=d.value)!=null&&pe.find(N=>N.id===V.id))d.value=(De=d.value)==null?void 0:De.map(N=>(N.id===V.id&&(N=V),N));else{let N=A.cloneDeep(d.value);d.value||(d.value=[]),N.push(V),d.value=N}f.value=!1,g.value="";let fe=A.cloneDeep(r.originalItemContents);(Ve=A.cloneDeep(r.originalItemContents))!=null&&Ve.find(N=>(N==null?void 0:N.key)==="formButton")?fe=(ge=A.cloneDeep(r.originalItemContents))==null?void 0:ge.map(N=>((N==null?void 0:N.key)==="formButton"&&(N.contents=d.value),N)):fe.push({key:"formButton",contents:d.value}),n("change",fe)},E=V=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,le;y.value=(fe=A.cloneDeep(y.value))==null?void 0:fe.filter(pe=>(pe==null?void 0:pe.id)!==(V==null?void 0:V.id)),n("change",(le=A.cloneDeep(r.originalItemContents))==null?void 0:le.map(pe=>((pe==null?void 0:pe.key)==="formContent"&&(pe.contents=y.value),pe))),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=V=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,le;d.value=(fe=A.cloneDeep(d.value))==null?void 0:fe.filter(pe=>(pe==null?void 0:pe.id)!==(V==null?void 0:V.id)),n("change",(le=A.cloneDeep(r.originalItemContents))==null?void 0:le.map(pe=>((pe==null?void 0:pe.key)==="formButton"&&(pe.contents=d.value),pe))),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=()=>{var fe;f.value=!0;let V=[];(fe=ve.FormButton)==null||fe.forEach(le=>{D.value++,V.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:(le==null?void 0:le.label)==="类型"?"normal":"",id:D.value,contents:le==null?void 0:le.options})}),O.value=V,k.value=V},b=()=>{var fe,le,pe;t.value=!0;let V=[];(pe=(le=(fe=ve.FormContent)==null?void 0:fe.find(De=>(De==null?void 0:De.key)==="Input"))==null?void 0:le.value)==null||pe.forEach(De=>{D.value++,V.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)==="类型"?"Input":"",id:D.value,contents:De==null?void 0:De.options})}),s.value=V,v.value=V},_=V=>{let fe=A.cloneDeep(k.value);fe=fe==null?void 0:fe.map(le=>(le.value=V==null?void 0:V[le.name],le)),k.value=fe},$=V=>{const fe=V.find(De=>(De==null?void 0:De.name)==="类型");if((fe==null?void 0:fe.value)!="Select")return;const le=V.find(De=>(De==null?void 0:De.name)==="多选"),pe=V.find(De=>(De==null?void 0:De.name)==="初始值");le!=null&&le.value&&Eo.isString(pe.value)&&(pe.value=[pe.value]),!(le!=null&&le.value)&&!Eo.isString(pe.value)&&(pe.value="")},F=async V=>{var fe,le,pe,De,Ve,ge,N,de,U,Se,Oe,Fe;if((V==null?void 0:V.类型)!==((le=(fe=v.value)==null?void 0:fe.find(la=>(la==null?void 0:la.label)==="类型"))==null?void 0:le.value)){let la=[];const Da=await((Ve=(De=(pe=ve.FormContent)==null?void 0:pe.find(re=>(re==null?void 0:re.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:De.value)==null?void 0:Ve.value)?await((Se=(U=(de=ve.FormContent)==null?void 0:de.find(re=>(re==null?void 0:re.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:U.value)==null?void 0:Se.value):(N=(ge=ve.FormContent)==null?void 0:ge.find(re=>(re==null?void 0:re.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:N.value;if(Da==null||Da.forEach(re=>{var se,da;D.value++;const ca=Mu(re==null?void 0:re.default)?(V==null?void 0:V[re.label])??re.value??"":re==null?void 0:re.default;la.push({label:re==null?void 0:re.label,name:re==null?void 0:re.label,type:re.type,value:ca,prop:re==null?void 0:re.prop,id:D.value,contents:re==null?void 0:re.options,width:((da=(se=v.value)==null?void 0:se[0])==null?void 0:da.width)??1})}),V!=null&&V.菜单选项&&((Oe=V==null?void 0:V.菜单选项)==null?void 0:Oe.length)>0){const re=await ve.menuToContentType(V==null?void 0:V.菜单选项);la=la==null?void 0:la.map(ca=>((ca==null?void 0:ca.name)==="组信息选项"&&(ca.contents=re),ca))}$(la),v.value=await ve.selectToBase(A.cloneDeep(la)),s.value=await ve.selectToBase(A.cloneDeep(la))}else{let la=A.cloneDeep(v.value);if(la=la==null?void 0:la.map(Da=>(Da.value=V==null?void 0:V[Da.name],Da)),V!=null&&V.菜单选项&&((Fe=V==null?void 0:V.菜单选项)==null?void 0:Fe.length)>0){const Da=await ve.menuToContentType(V==null?void 0:V.菜单选项);la=la==null?void 0:la.map(re=>((re==null?void 0:re.name)==="组信息选项"&&(re.contents=Da),re))}la=ve.formToOptionsContents(la),$(la),v.value=await ve.selectToBase(A.cloneDeep(la))}},J=V=>{V||(s.value=v.value)},ce=async V=>{await F(V),s.value=v.value},be=Bl.debounce(async()=>{var pe,De,Ve,ge,N,de,U,Se,Oe,Fe,la,Da;s.value=v.value;let V={};V.width=((De=(pe=s.value)==null?void 0:pe[0])==null?void 0:De.width)??1,g.value!==""?V.id=g.value:(D.value++,V.id="id"+D.value);let fe=await((N=(ge=(Ve=ve.FormContent)==null?void 0:Ve.find(re=>{var ca,se;return(re==null?void 0:re.key)===(((se=(ca=s.value)==null?void 0:ca.find(da=>(da==null?void 0:da.label)==="类型"))==null?void 0:se.value)??"label")}))==null?void 0:ge.value)==null?void 0:N.value)??((U=(de=ve.FormContent)==null?void 0:de.find(re=>{var ca,se;return(re==null?void 0:re.key)===(((se=(ca=s.value)==null?void 0:ca.find(da=>(da==null?void 0:da.label)==="类型"))==null?void 0:se.value)??"label")}))==null?void 0:U.value);if((Se=s.value)==null||Se.forEach(re=>{const ca=fe==null?void 0:fe.find(se=>(se==null?void 0:se.label)===(re==null?void 0:re.label));ca&&(V[ca.key]=re.value)}),V.width=V.width?V.width:1,V.key=V==null?void 0:V.label,V.isFormColHidden=V==null?void 0:V.isFormColHidden,(Oe=y.value)!=null&&Oe.find(re=>re.id===V.id))y.value=(Fe=y.value)==null?void 0:Fe.map(re=>(re.id===V.id&&(re=V),re));else{let re=A.cloneDeep(y.value);re.push(V),y.value=re}y.value=y.value.map(({id:re,...ca})=>ca),t.value=!1,g.value="";let le=A.cloneDeep(r.originalItemContents);(la=A.cloneDeep(r.originalItemContents))!=null&&la.find(re=>(re==null?void 0:re.key)==="formContent")?le=(Da=A.cloneDeep(r.originalItemContents))==null?void 0:Da.map(re=>((re==null?void 0:re.key)==="formContent"&&(re.contents=y.value),re)):le.push({key:"formContent",contents:y.value}),n("change",le)},300),Me=()=>{t.value=!1,f.value=!1,g.value="",v.value=[],k.value=[]};return e.watch(()=>r.originalItemContents,()=>{var fe,le,pe,De,Ve,ge;if(!r.originalItemContents||r.originalItemContents.length===0)return;const V=A.cloneDeep(r.originalItemContents);y.value=((fe=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:fe.contents)??[],d.value=((le=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="formButton"))==null?void 0:le.contents)??[],c.value=(pe=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&pe.contents?!((De=V==null?void 0:V.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&De.contents):!0,y.value=(Ve=A.cloneDeep(y.value))==null?void 0:Ve.map((N,de)=>{var Se;let U=N;return U.id=(N==null?void 0:N.id)??de,N!=null&&N.label||(N.label=(N==null?void 0:N.key)??(N==null?void 0:N.label)??""),N!=null&&N.type||(N.type=(N==null?void 0:N.type)??""),N.contents=((Se=N==null?void 0:N.options)==null?void 0:Se.length)===0?(N==null?void 0:N.contents)??"":N==null?void 0:N.options,U}),y.value=ve.formToOptionsContents(y.value),d.value=(ge=d.value)==null?void 0:ge.map((N,de)=>N={label:(N==null?void 0:N.label)??"",type:(N==null?void 0:N.type)??"",background:(N==null?void 0:N.background)??"var(--ssComponent-primary-color)",id:de})},{deep:!0,immediate:!0}),(V,fe)=>{const le=e.resolveComponent("svg-icon"),pe=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",vh,[e.createElementVNode("div",mh,[e.createElementVNode("div",yh,[fe[2]||(fe[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[fe[1]||(fe[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",gh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(De,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",bh,[e.createElementVNode("div",null,e.toDisplayString(De.label),1),e.createElementVNode("div",kh,[e.createVNode(le,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ge=>M(De)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ge=>E(De)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",xh,[fe[4]||(fe[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:x},{icon:e.withCtx(()=>[e.createVNode(le,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[fe[3]||(fe[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",wh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(De,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",_h,[e.createElementVNode("div",null,e.toDisplayString(De.label),1),e.createElementVNode("div",Sh,[e.createVNode(le,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ge=>R(De)},null,8,["onClick"]),e.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ge=>w(De)},null,8,["onClick"])])])]))),128))]),fe[6]||(fe[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",Eh,[fe[5]||(fe[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(ll._sfc_main$1,{modelValue:c.value,"onUpdate:modelValue":fe[0]||(fe[0]=De=>c.value=De)},null,8,["modelValue"])])]),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ch,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:F,onChangeVisible:J,onBlurChange:ce},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Dh,[e.createVNode(pe,{onClick:Me,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>fe[7]||(fe[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(pe,{class:"ok-button button",onClick:e.unref(be),id:"themeButton"},{default:e.withCtx(()=>fe[8]||(fe[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:f.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Bh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:O.value,key:O.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Me,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:j},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ks=Zl._export_sfc(Th,[["__scopeId","data-v-20850524"]]),Nh={class:"step-module content"},Ah={class:"module-data"},zh={class:"step-module layout"},Mh={class:"form-content"},Ih=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.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}]),s=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),v=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=e.reactive({visible:!1,width:"40%",title:"步骤条"}),d=e.ref("create"),y=e.ref({}),g=e.ref([]),c=M=>{var R;y.value=M,n("change",(R=k())==null?void 0:R.compData)},D=(M,R)=>{var j,E;switch(M){case"create":(j=s.value)==null||j.forEach(w=>{w.value=""}),d.value="create",f.visible=!0;break;case"update":(E=s.value)==null||E.forEach(w=>{w.value=R[w==null?void 0:w.prop]}),d.value="update",f.visible=!0;break;case"delete":g.value.splice(R,1),d.value="delete";break}},O=M=>{var R,j,E;if((M==null?void 0:M.buttonName)==="确认"){const w=A.cloneDeep(M==null?void 0:M.content);switch(Object.keys(w).forEach(x=>{w[x]===""&&delete w[x]}),d.value){case"create":g.value.push({...w,index:((R=g.value)==null?void 0:R.length)+1});break;case"update":g.value=(j=g.value)==null?void 0:j.map(x=>x.index===(w==null?void 0:w.index)?{...x,title:w==null?void 0:w.title,description:w==null?void 0:w.description}:x);break}n("change",(E=k())==null?void 0:E.compData),f.visible=!1}else f.visible=!1},k=()=>({comp:"Step",compData:[{key:"stepList",contents:g.value},{key:"stepConfig",contents:y.value}]}),K=()=>{f.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,M=>{var R,j;M&&(y.value=((R=M==null?void 0:M.find(E=>E.key==="stepConfig"))==null?void 0:R.contents)??{},g.value=((j=M==null?void 0:M.find(E=>E.key==="stepList"))==null?void 0:j.contents)??[])},{immediate:!0}),(M,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Nh,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=w=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Ah,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(w==null?void 0:w.title),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...w,index:x+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",x)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",zh,[R[5]||(R[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ll.ssForm,{rowContents:t.value,onChange:c},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:f.visible,title:f.title,onBeforeDestroy:K,width:f.width},{default:e.withCtx(()=>[e.createElementVNode("div",Mh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:v.value,onOnButtonClick:O},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Oh=Zl._export_sfc(Ih,[["__scopeId","data-v-7dbd17f2"]]),Lh={class:"step-module content"},Rh={class:"module-data"},$h={class:"step-module layout"},Vh={class:"form-content"},Fh=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref("create"),s=e.ref({}),v=e.ref([]),f=e.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}]),d=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),g=e.reactive({visible:!1,width:"40%",title:"时间线"}),c=M=>{var R;s.value=M,n("change",(R=k())==null?void 0:R.compData)},D=(M,R)=>{var j,E;switch(M){case"create":(j=d.value)==null||j.forEach(w=>{w.value=""}),t.value="create",g.visible=!0;break;case"update":(E=d.value)==null||E.forEach(w=>{w.value=R[w==null?void 0:w.prop]}),t.value="update",g.visible=!0;break;case"delete":v.value.splice(R,1),t.value="delete";break}},O=M=>{var R,j,E,w;if((M==null?void 0:M.buttonName)==="确认"){const x=A.cloneDeep(M==null?void 0:M.content);switch(Object.keys(x).forEach(b=>{x[b]===""&&delete x[b]}),t.value){case"create":(j=v.value)==null||j.push({...x,index:((R=v.value)==null?void 0:R.length)+1});break;case"update":v.value=(E=v.value)==null?void 0:E.map(b=>b.index===(x==null?void 0:x.index)?{...b,content:x==null?void 0:x.content,timestamp:x==null?void 0:x.timestamp}:b);break}n("change",(w=k())==null?void 0:w.compData),g.visible=!1}else g.visible=!1},k=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:v.value},{key:"timeLineConfig",contents:s.value}]}),K=()=>{g.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,M=>{var R,j;M&&(s.value=((R=M==null?void 0:M.find(E=>E.key==="timeLineConfig"))==null?void 0:R.contents)??{},v.value=((j=M==null?void 0:M.find(E=>E.key==="timeLineList"))==null?void 0:j.contents)??[])},{immediate:!0}),(M,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Lh,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=w=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",Rh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(w==null?void 0:w.content),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...w,index:x+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",x)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",$h,[R[5]||(R[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ll.ssForm,{rowContents:f.value,onChange:c},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:g.visible,title:g.title,onBeforeDestroy:K,width:g.width},{default:e.withCtx(()=>[e.createElementVNode("div",Vh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:O},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Ph=Zl._export_sfc(Fh,[["__scopeId","data-v-39ffc861"]]),jh={};function Hh(a,l){return e.openBlock(),e.createElementBlock("div")}const Uh=Zl._export_sfc(jh,[["render",Hh]]),qh={class:"extra-content"},Wh={key:0},Kh={key:1},Gh={class:"dialog-footer"},Yh={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const r=a,n=e.ref(0),t=e.ref(),s=e.ref(),v=l,f=e.ref(!1),d=e.ref({}),y=e.ref({}),g=e.ref();e.watch(()=>[r.itemData],()=>{var w;const E=A.cloneDeep(r.itemData);t.value=(w=A.cloneDeep(E))==null?void 0:w.map(x=>{var b;if(x.key==="extra"){let _=[];(b=x.value)==null||b.forEach($=>{var F;_.push((F=Object.values($))==null?void 0:F[0])}),x.value=_}return x})},{deep:!0,immediate:!0});const c=(E,w,x,b)=>{var $;let _={};(($=E==null?void 0:E[0])==null?void 0:$.contents)==="详情"&&(f.value=!0,_[w]=E,s.value=E==null?void 0:E.filter(F=>(F==null?void 0:F.key)!=="tableContentName"),d.value=_,y.value=x,g.value=b.id)},D=E=>{var F,J,ce,be;const w=(J=(F=Object.values(A.cloneDeep(d.value)))==null?void 0:F[0])==null?void 0:J.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),x=(be=(ce=Object.values(A.cloneDeep(d.value)))==null?void 0:ce[0])==null?void 0:be.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=x==null?void 0:x.map((Me,V)=>{var fe;return V===E.index&&(Me==null?void 0:Me.comp)==="Table"&&(Me.compData=(fe=Me.compData)==null?void 0:fe.map(le=>{var pe,De;return(le==null?void 0:le.key)==="tableContents"&&(le.contents=(De=(pe=E.content)==null?void 0:pe.map(Ve=>{let ge={};for(let N in Ve)N!=="id"&&(ge[N]=Ve[N]);return ge}))==null?void 0:De.map(Ve=>Object.values(Ve))),le})),Me});b.unshift(w==null?void 0:w[0]);let _=A.cloneDeep(d.value),$={};for(let Me in _)$[Me]=b;d.value=$},O=()=>{f.value=!1,d.value={},y.value={},g.value=void 0,n.value++},k=E=>{var F,J,ce,be;const w=(J=(F=Object.values(A.cloneDeep(d.value)))==null?void 0:F[0])==null?void 0:J.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),x=(be=(ce=Object.values(A.cloneDeep(d.value)))==null?void 0:ce[0])==null?void 0:be.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=x==null?void 0:x.map((Me,V)=>(V===E.index&&(Me.compData=E.contents),Me));b.unshift(w==null?void 0:w[0]);let _=A.cloneDeep(d.value),$={};for(let Me in _)$[Me]=b;d.value=$},K=()=>{var w,x;let E={};for(let b in y.value)b===((w=Object.keys(d.value))==null?void 0:w[0])?E[b]=(x=Object.values(d.value))==null?void 0:x[0]:E[b]=y.value[b];v("change",{buttonName:"编辑",index:g.value,singleContent:E},"methodData"),f.value=!1,d.value={},y.value={},g.value=void 0},M=()=>{f.value=!1,d.value={},y.value={},g.value=void 0},R=E=>{v("change",E,"methodData")},j=E=>Bi(E);return(E,w)=>{const x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",qh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:n.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",Wh)):(e.openBlock(),e.createElementBlock("div",Kh,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:_,index:(b==null?void 0:b.id)??_,onContentClick:c,onChange:R},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(wr.ssDialog,{visible:f.value,onBeforeDestroy:M},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(b.comp)),{itemData:b==null?void 0:b.compData,onChange:D,childItemData:b==null?void 0:b.itemChildData,key:_,onContentChange:k,index:(b==null?void 0:b.id)??_,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",Gh,[e.createVNode(x,{class:"cancel-button footer-button",onClick:O,id:"themeBorderButton"},{default:e.withCtx(()=>w[0]||(w[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(x,{class:"confirm-button footer-button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>w[1]||(w[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Jh=Zl._export_sfc(Yh,[["__scopeId","data-v-2d9c5ab2"]]),Xh={key:0,class:"method-content"},Zh={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),r=ve.useOriginalState(A.pinia),{originalPath:n}=A.storeToRefs(r),t=a,s=e.ref(!1),v=e.ref(),f=ve.useTableComp(A.pinia),{multipleTableConst:d}=A.storeToRefs(f),y=A.useModelComp(A.pinia),g=e.ref(!1),c=A.useMenuState(A.pinia),D=A.useLoginState(A.pinia),{itemData:O,isEdit:k,routeToChildPath:K,tableViewContents:M,lockingPage:R,payloadTypes:j}=A.storeToRefs(y),{activeMenuPath:E,platform:w,childMenu:x}=A.storeToRefs(c),{loginUserInfo:b}=A.storeToRefs(D),_=e.ref(!1),$=async()=>{var ge,N;(ge=l.value)!=null&&ge.find(de=>(de==null?void 0:de.buttonName)==="保存")&&await le((N=l.value)==null?void 0:N.find(de=>(de==null?void 0:de.buttonName)==="保存")),await ve.onSaveBack()};e.watch(()=>O.value,async()=>{k.value==="view"&&!_.value&&await Ve(A.cloneDeep(t.itemData)),_.value=!1},{deep:!0});const F=()=>{s.value=!1,v.value=void 0},J=ge=>ge.map(N=>{const de={};for(const U in N){const Se=N[U];if(U.includes(d.value)){const Oe=U.split(d.value);let Fe=de;Oe.forEach((la,Da)=>{Da===Oe.length-1?Fe[la]=Se:(Fe[la]||(Fe[la]={}),Fe=Fe[la])})}else de[U]=Se}return de}),ce=async(ge,N,de=[])=>{var Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka;let U=(Se=A.cloneDeep(N))==null?void 0:Se.filter(L=>(L==null?void 0:L.comp)!=="methodButton");if(ge!=null&&ge.includes("[")){let L=(re=(Da=(la=(Fe=(Oe=A.cloneDeep(ge))==null?void 0:Oe.split("["))==null?void 0:Fe[1])==null?void 0:la.split("]"))==null?void 0:Da[0])==null?void 0:re.split(":"),H="";if(L!=null&&L[0]){let Q=(ca=U==null?void 0:U.find(ye=>(ye==null?void 0:ye.name)===(L==null?void 0:L[0])))==null?void 0:ca.compData;if(!Q){let ye=(se=ge==null?void 0:ge.split("["))==null?void 0:se[0],me=await ve.getItemData(ye,sessionStorage.getItem("systemKey"),"",!1,"","",de);Q=(da=me==null?void 0:me.find(va=>(va==null?void 0:va.name)===(L==null?void 0:L[0])))==null?void 0:da.compData}Q==null||Q.forEach(ye=>{var me,va,Qe,ue,ma,Te;if((ye==null?void 0:ye.key)==="formContent")(me=ye==null?void 0:ye.contents)==null||me.forEach(Ke=>{var Na;(Ke==null?void 0:Ke.key)===(L==null?void 0:L[1])&&(Array.isArray(Ke==null?void 0:Ke.value)?H=Ke==null?void 0:Ke.value:H=(Na=Ke==null?void 0:Ke.value)==null?void 0:Na.toString())});else if((ye==null?void 0:ye.key)==="tableContents"){let Ke=[],Na=(va=Q==null?void 0:Q.find(Ze=>(Ze==null?void 0:Ze.key)==="header"))==null?void 0:va.contents,Ca=(L==null?void 0:L[1])??"";if(Na!=null&&Na.every(Ze=>Array.isArray(Ze))){let Ze=ve.getColumnChild((ma=Na==null?void 0:Na[0])==null?void 0:ma.filter(La=>(La==null?void 0:La.label)!=="操作"));(Te=ye.contents)==null||Te.forEach(La=>{let ie={};La=La==null?void 0:La.filter(X=>!(X!=null&&X.id)),Ze==null||Ze.forEach((X,Z)=>{let q=La[Z];typeof La[Z]=="number"&&(q=La[Z].toString()),(Ca===""||Ca===X.prop)&&(ie[X.prop]=q)}),Ke.push(ie)}),Ke=J(Ke)}else{let Ze=(Qe=Na==null?void 0:Na.map(La=>La==null?void 0:La.label))==null?void 0:Qe.filter(La=>La!=="操作");(ue=ye.contents)==null||ue.forEach(La=>{let ie={};La=La==null?void 0:La.filter(X=>!(X!=null&&X.id)),Ze==null||Ze.forEach((X,Z)=>{let q=La[Z];typeof La[Z]=="number"&&(q=La[Z].toString()),(Ca===""||Ca===X)&&(ie[X]=q)}),Ke.push(ie)})}H=Ke}})}return H}else if(ge!=null&&ge.includes("/")){let L={};return(Ee=A.cloneDeep(U))==null||Ee.forEach((H,Q)=>{var ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La,ie,X,Z,q,Be,Xe,ia;if((H==null?void 0:H.comp)==="Table"){let xa=Array.isArray((va=(me=(ye=H==null?void 0:H.compData)==null?void 0:ye.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:me.contents)==null?void 0:va[0])?(Te=(ma=(ue=(Qe=H==null?void 0:H.compData)==null?void 0:Qe.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:ue.contents)==null?void 0:ma[0])==null?void 0:Te.some(Ie=>Ie==null?void 0:Ie.children):[],ka=(Ca=(Na=(Ke=H==null?void 0:H.compData)==null?void 0:Ke.find(Ie=>(Ie==null?void 0:Ie.key)==="tableContents"))==null?void 0:Na.contents)==null?void 0:Ca.map(Ie=>(Ie!=null&&Ie.find(Ya=>Ya==null?void 0:Ya.id)&&(Ie=Ie.slice(1)),Ie)),Aa=(Z=(X=(ie=(La=(Ze=H==null?void 0:H.compData)==null?void 0:Ze.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:La.contents)==null?void 0:ie[0])==null?void 0:X[0])==null?void 0:Z.label,Sa=(Be=(q=H==null?void 0:H.compData)==null?void 0:q.find(Ie=>(Ie==null?void 0:Ie.key)==="header"))==null?void 0:Be.contents;if(xa)(xa==null?void 0:xa.length)===0?L[H.name]=L!=null&&L[H.name]?L[H.name]:ve.tableToForm(ka,Sa):L[Aa]=ve.tableToForm(ka,Sa);else{const Ie=[];Sa=Sa.slice(1,Sa.length-1),Sa==null||Sa.forEach((Ya,Fa)=>{ka==null||ka.forEach(xl=>{Ie.push({key:Ya.label+xl[0],value:xl[Fa+1]})})}),L["form"+Q]=Ie}}else{const xa=(ia=(Xe=H.compData)==null?void 0:Xe.find(Aa=>(Aa==null?void 0:Aa.key)==="formContent"))==null?void 0:ia.contents;L!=null&&L.form||(L.form=[]);const ka=[];xa==null||xa.forEach(Aa=>{Aa.key!==""&&(Aa={key:(Aa==null?void 0:Aa.key)??(Aa==null?void 0:Aa.label),value:Aa==null?void 0:Aa.value},ka.push(Aa))}),L.form=[...ka,...A.cloneDeep(L==null?void 0:L.form)]}}),L}else{if(ge==="createInsofDataApi"){let L=(te=A.cloneDeep(N))==null?void 0:te[0];return L={comp:(Ae=A.cloneDeep(L))==null?void 0:Ae.comp,compData:(Ue=A.cloneDeep(L))==null?void 0:Ue.compData,name:(sa=A.cloneDeep(L))==null?void 0:sa.name,isShow:(Ka=A.cloneDeep(L))==null?void 0:Ka.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:E.value},value:{pageData:L}}}return ge}},be=async(ge,N,de)=>{var Oe,Fe,la;let U=await ve.getItemData(N,sessionStorage.getItem("systemKey"),""),Se=U==null?void 0:U.find(Da=>(Da==null?void 0:Da.name)===(de==null?void 0:de[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Da={};for(let Ae in A.cloneDeep(ge))A.cloneDeep(ge)[Ae]!=="loginUser"?Da[Ae]=A.cloneDeep(ge)[Ae]:Da[Ae]=((Oe=b.value)==null?void 0:Oe.account)||((Fe=b.value)==null?void 0:Fe.账号);let re=[],ca=Da;Array.isArray(ge)||(ca=[Da]),ca==null||ca.forEach(Ae=>{re.push({[Ae[de[1]]]:Ae})});let se=[],da=re==null?void 0:re.map(Ae=>{var Ue;return(Ue=Object.keys(Ae))==null?void 0:Ue[0]});U==null||U.forEach(Ae=>{var Ue;(Ae==null?void 0:Ae.name)===(de==null?void 0:de[0])&&((Ue=Ae==null?void 0:Ae.compData)==null||Ue.forEach(sa=>{var Ka;(sa==null?void 0:sa.key)==="tableContents"&&((Ka=sa==null?void 0:sa.contents)==null||Ka.forEach(L=>{L!=null&&L.some(H=>da.includes(H))&&se.push({[L.find(H=>H.id).id]:L.find(H=>da.includes(H))})}))}))});let Ee=se==null?void 0:se.map(Ae=>{var Ue;return(Ue=Object.keys(Ae))==null?void 0:Ue[0]}),te=[];if(Ee==null||Ee.forEach(Ae=>{var Ka;let Ue=(Ka=se==null?void 0:se.find(L=>{var H;return((H=Object.keys(L))==null?void 0:H[0].toString())===Ae.toString()}))==null?void 0:Ka[Ae],sa=re==null?void 0:re.find(L=>{var H;return((H=Object.keys(L))==null?void 0:H[0])===Ue});te.push({id:parseInt(Ae),value:{tableData:sa[Ue]}})}),(te==null?void 0:te.length)>0)return te}else if((Se==null?void 0:Se.comp)==="Form"){let Da=A.cloneDeep(Se);Da.compData=(la=Da.compData)==null?void 0:la.map(se=>{var da;return(se==null?void 0:se.key)==="formContent"&&(se.contents=(da=se.contents)==null?void 0:da.map(Ee=>((Ee==null?void 0:Ee.key)===(de==null?void 0:de[1])&&(Ee.value=(ge==null?void 0:ge[Ee==null?void 0:Ee.prop])||ge),Ee))),se});let re={};for(let se in Da)se!=="id"&&(re[se]=Da[se]);let ca=[];if(ca.push({id:Se==null?void 0:Se.id,keyType:de==null?void 0:de[1],value:{pageData:re}}),(ca==null?void 0:ca.length)>0)return ca}}},Me=async(ge,N,de)=>{var Oe,Fe,la,Da,re,ca,se,da,Ee,te;let U=await ve.getItemData(N,sessionStorage.getItem("systemKey"),""),Se=U==null?void 0:U.find(Ae=>(Ae==null?void 0:Ae.name)===(de==null?void 0:de[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Ae={};for(let Ue in A.cloneDeep(ge))A.cloneDeep(ge)[Ue]!=="loginUser"?Ae[Ue]=A.cloneDeep(ge)[Ue]:Ae[Ue]=((Oe=b.value)==null?void 0:Oe.account)||((Fe=b.value)==null?void 0:Fe.账号);await Nr.createInsofDataApi({key:{type:"data",pageKey:N,tableId:Se==null?void 0:Se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Ae}})}else if((Se==null?void 0:Se.comp)==="Form"){let Ae=A.cloneDeep(Se),Ue=Object.keys(ge),sa="";(Da=(la=A.cloneDeep(Ae))==null?void 0:la.compData)==null||Da.forEach(me=>{var va,Qe;(me==null?void 0:me.key)==="formContent"&&((Qe=(va=A.cloneDeep(me))==null?void 0:va.contents)==null||Qe.forEach(ue=>{var ma;Ue.includes(ue==null?void 0:ue.key)&&(ue==null?void 0:ue.value)===((ma=b.value)==null?void 0:ma.姓名)&&(sa=ue==null?void 0:ue.key)}))});let Ka=[];(re=Object.values(ge[sa]))==null||re.forEach(me=>{me!=null&&me.includes("(")&&Ka.push(me)}),Ka=[...new Set(Ka)];const L=Ka==null?void 0:Ka.map(async me=>{var Te,Ke,Na,Ca,Ze,La,ie,X,Z,q,Be,Xe;let va="";(La=(Ze=(Ca=(Na=(Ke=(Te=A.cloneDeep(me))==null?void 0:Te.split("("))==null?void 0:Ke[1])==null?void 0:Na.split(")"))==null?void 0:Ca[0])==null?void 0:Ze.split(":"))==null||La.forEach(ia=>{va=va===""?va+ia.replaceAll("'",""):va+"/"+ia.replaceAll("'","")});let Qe=[];(Xe=(Be=(q=(Z=(X=(ie=A.cloneDeep(me))==null?void 0:ie.split("<"))==null?void 0:X[1])==null?void 0:Z.split(">"))==null?void 0:q[0])==null?void 0:Be.split(":"))==null||Xe.forEach(ia=>{Qe.push(ia.replaceAll("'",""))});const ue=await ve.getItemData(va,sessionStorage.getItem("systemKey"),"");let ma="";return ue==null||ue.forEach(ia=>{var xa;ia.name===(Qe==null?void 0:Qe[0])&&((xa=ia==null?void 0:ia.compData)==null||xa.forEach(ka=>{var Aa;(ka==null?void 0:ka.key)==="formContent"&&((Aa=ka.contents)==null||Aa.forEach(Sa=>{(Sa==null?void 0:Sa.key)===(Qe==null?void 0:Qe[1])&&(ma=Sa==null?void 0:Sa.value)}))}))}),{[me]:ma}}),H=await Promise.all(L);Ae.compData=(se=(ca=A.cloneDeep(Ae))==null?void 0:ca.compData)==null?void 0:se.map(me=>{var va,Qe;return(me==null?void 0:me.key)==="formContent"&&(me.contents=(Qe=(va=A.cloneDeep(me))==null?void 0:va.contents)==null?void 0:Qe.map(ue=>{var ma,Te,Ke,Na;return(ma=ge[sa])!=null&&ma[ue==null?void 0:ue.key]&&(ge[sa][ue==null?void 0:ue.key].includes("(")?ue.value=(Te=H==null?void 0:H.find(Ca=>{var Ze;return((Ze=Object.keys(Ca))==null?void 0:Ze[0])===ge[sa][ue==null?void 0:ue.key]}))==null?void 0:Te[ge[sa][ue==null?void 0:ue.key]]:ue.value=(Na=(Ke=A.cloneDeep(ge))==null?void 0:Ke[sa])==null?void 0:Na[ue==null?void 0:ue.key]),ue})),me});const Q=await Nr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let ye="";((da=Q==null?void 0:Q.data)==null?void 0:da.type)==="success"&&((te=(Ee=Q==null?void 0:Q.data)==null?void 0:Ee.result)==null||te.forEach(me=>{var va,Qe;((Qe=(va=me==null?void 0:me.value)==null?void 0:va.pageData)==null?void 0:Qe.name)===(de==null?void 0:de[0])&&(ye=me.id)}),await Nr.updateInsofDataApi({id:ye,value:{pageData:Ae}}))}}},V=(ge,N="",de={})=>{for(const[U,Se]of Object.entries(ge)){const Oe=N?`${N}.${U}`:U;Se!==null&&typeof Se=="object"&&!Array.isArray(Se)&&Object.prototype.toString.call(Se)!=="[object Date]"?V(Se,Oe,de):de[Oe]=Se}return de},fe=async(ge,N,de,U)=>{var Fe,la,Da,re,ca,se,da,Ee,te,Ae,Ue,sa,Ka,L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na;let Se=await ve.getItemData(N,sessionStorage.getItem("systemKey"),""),Oe=Se==null?void 0:Se.find(Ca=>(Ca==null?void 0:Ca.name)===(de==null?void 0:de[0]));if(Oe){if(!(de!=null&&de[1])&&(Oe==null?void 0:Oe.comp)==="Table"){let Ca={},Ze=[],La=(la=(Fe=Oe==null?void 0:Oe.compData)==null?void 0:Fe.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:la.contents;La!=null&&La.every(Z=>Array.isArray(Z))?Ze=(re=ve.getColumnChild((Da=La==null?void 0:La[0])==null?void 0:Da.filter(Z=>(Z==null?void 0:Z.label)!=="操作")))==null?void 0:re.map(Z=>Z==null?void 0:Z.prop):Ze=La==null?void 0:La.map(Z=>Z==null?void 0:Z.label);for(let Z in A.cloneDeep(ge))if(A.cloneDeep(ge)[Z]!=="loginUser"){let q=V(A.cloneDeep(ge)[Z]),Be={};for(let Xe in q)if(Ze!=null&&Ze.find(ia=>ia===Xe))Be[Xe]=q[Xe];else if(Ze!=null&&Ze.find(ia=>(ia==null?void 0:ia.toUpperCase())===(Xe==null?void 0:Xe.toUpperCase()))){let ia=Ze==null?void 0:Ze.find(xa=>(xa==null?void 0:xa.toUpperCase())===(Xe==null?void 0:Xe.toUpperCase()));Be[ia]=q[Xe]}Ca[Z]=Be}else Ca[Z]=((ca=b.value)==null?void 0:ca.account)||((se=b.value)==null?void 0:se.账号);let ie=await Nr.getInsofDataApi({keyLikes:{tableId:Oe==null?void 0:Oe.id}});if(((Ee=(da=ie==null?void 0:ie.data)==null?void 0:da.result)==null?void 0:Ee.length)>0){let Z=(Ae=(te=ie==null?void 0:ie.data)==null?void 0:te.result)==null?void 0:Ae.map(q=>q==null?void 0:q.id);(Z==null?void 0:Z.length)>0&&await Nr.batchDeleteInsofDataApi({ids:Z})}let X=[];if((Ue=Oe==null?void 0:Oe.compData)!=null&&Ue.find(Z=>(Z==null?void 0:Z.key)==="pageColumn")&&((L=(Ka=(sa=Oe==null?void 0:Oe.compData)==null?void 0:sa.find(Z=>(Z==null?void 0:Z.key)==="pageColumn"))==null?void 0:Ka.contents)!=null&&L.includes("["))){const Z=await Nr.getInsofDataApi({id:Oe==null?void 0:Oe.tableId});let q=((me=(ye=(Q=(H=Z==null?void 0:Z.data)==null?void 0:H.result)==null?void 0:Q[0])==null?void 0:ye.key)==null?void 0:me.pageKey)??"";(va=Object.values(Ca))==null||va.forEach(Be=>{X.push({key:{type:"data",pageKey:q,tableId:Oe==null?void 0:Oe.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Be}})})}else(Qe=Object.values(Ca))==null||Qe.forEach(Z=>{X.push({key:{type:"data",pageKey:N,tableId:Oe==null?void 0:Oe.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Z}})});(X==null?void 0:X.length)>0&&await Nr.batchAddInsofDataApi({dataList:X})}else if(!(de!=null&&de[1])&&(Oe==null?void 0:Oe.comp)==="Form"){let Ca=A.cloneDeep(Oe);Ca.compData=(ma=(ue=A.cloneDeep(Ca))==null?void 0:ue.compData)==null?void 0:ma.map(ie=>{var X,Z;return(ie==null?void 0:ie.key)==="formContent"&&(ie.contents=(Z=(X=A.cloneDeep(ie))==null?void 0:X.contents)==null?void 0:Z.map(q=>{var Be,Xe;return(Be=A.cloneDeep(ge))!=null&&Be[q==null?void 0:q.key]&&(q.value=(Xe=A.cloneDeep(ge))==null?void 0:Xe[q==null?void 0:q.key]),q})),ie});const Ze=await Nr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let La="";((Te=Ze==null?void 0:Ze.data)==null?void 0:Te.type)==="success"&&((Na=(Ke=Ze==null?void 0:Ze.data)==null?void 0:Ke.result)==null||Na.forEach(ie=>{var X,Z;((Z=(X=ie==null?void 0:ie.value)==null?void 0:X.pageData)==null?void 0:Z.name)===(de==null?void 0:de[0])&&(La=ie.id)}),await Nr.updateInsofDataApi({id:La,value:{pageData:Ca}}))}}},le=async ge=>{var N,de,U,Se,Oe,Fe,la,Da,re,ca,se,da,Ee,te;c.setImportLoading(!0);try{if(ge.api){let Ae=new WeakMap,Ue=await ve.getItemData((x==null?void 0:x.value)===""?E.value:x==null?void 0:x.value,sessionStorage.getItem("systemKey"),"",!1,"","",Ae),sa="";if(Ue=Ue==null?void 0:Ue.map(Qe=>{var ue,ma,Te,Ke,Na,Ca,Ze,La,ie,X,Z,q;if((Qe==null?void 0:Qe.comp)==="Form")Qe.compData=(ue=Qe.compData)==null?void 0:ue.map(Be=>{var Xe;return(Be==null?void 0:Be.key)==="formContent"&&(Be.contents=(Xe=Be.contents)==null?void 0:Xe.map(ia=>{var xa;if((ia==null?void 0:ia.value)===""&&(ia==null?void 0:ia.type)==="Select"){let ka=ve.judgeContents((xa=A.cloneDeep(ia))==null?void 0:xa.optionUrl,Ae);ia.value=ia.value||ka}return ia})),Be});else if((Qe==null?void 0:Qe.comp)==="Table"&&(ma=Qe.compData)!=null&&ma.find(Be=>(Be==null?void 0:Be.key)==="pageColumn")){let Be=(Ke=(Te=Qe.compData)==null?void 0:Te.find(ka=>(ka==null?void 0:ka.key)==="pageColumn"))==null?void 0:Ke.contents,Xe=((Ca=(Na=Qe.compData)==null?void 0:Na.find(ka=>(ka==null?void 0:ka.key)==="pageGroup"))==null?void 0:Ca.contents)??"",ia=(ie=(La=(Ze=Be==null?void 0:Be.split("["))==null?void 0:Ze[1])==null?void 0:La.split("]"))==null?void 0:ie[0];sa=((X=Be==null?void 0:Be.split("["))==null?void 0:X[0])+((q=(Z=M.value)==null?void 0:Z.find(ka=>(ka==null?void 0:ka.key)===ia))==null?void 0:q.value)}return Qe}),!(sa===""||sa==="")){const Qe=await ve.getItemData(sa,sessionStorage.getItem("systemKey"),"",!1,"","",Ae);Ue=Ue==null?void 0:Ue.map(ue=>{var ma,Te,Ke,Na,Ca,Ze,La,ie,X,Z,q,Be,Xe;if((ue==null?void 0:ue.comp)==="Table"&&(ma=ue.compData)!=null&&ma.find(ia=>(ia==null?void 0:ia.key)==="pageColumn")){let ia=(Ke=(Te=ue.compData)==null?void 0:Te.find(Ie=>(Ie==null?void 0:Ie.key)==="pageColumn"))==null?void 0:Ke.contents,xa=((Ca=(Na=ue.compData)==null?void 0:Na.find(Ie=>(Ie==null?void 0:Ie.key)==="pageGroup"))==null?void 0:Ca.contents)??"",ka=(ie=(La=(Ze=ia==null?void 0:ia.split("["))==null?void 0:Ze[1])==null?void 0:La.split("]"))==null?void 0:ie[0],Aa=((X=ia==null?void 0:ia.split("["))==null?void 0:X[0])+((q=(Z=M.value)==null?void 0:Z.find(Ie=>(Ie==null?void 0:Ie.key)===ka))==null?void 0:q.value),Sa=(Be=Qe==null?void 0:Qe.find(Ie=>(Ie==null?void 0:Ie.name)===(xa===""?t==null?void 0:t.compName:xa)))==null?void 0:Be.compData;ue.compData=(Xe=ue.compData)==null?void 0:Xe.map(Ie=>{var Ya;return(Ie==null?void 0:Ie.key)==="tableContents"&&(Ie.contents=(Ya=Sa==null?void 0:Sa.find(Fa=>(Fa==null?void 0:Fa.key)==="tableContents"))==null?void 0:Ya.contents),Ie})}return ue})}let Ka={};if(((de=(N=ge==null?void 0:ge.extraValues)==null?void 0:N.input)==null?void 0:de.length)>0){const Qe=(Se=(U=ge==null?void 0:ge.extraValues)==null?void 0:U.input)==null?void 0:Se.map(async ue=>{var ma;pe!=null&&pe.find(Te=>Te===ue)?Ka=await ce(ue,Ue):Ka[Object.keys(ue)[0]]=await ce((ma=Object.values(ue))==null?void 0:ma[0],Ue,Ae)});await Promise.all(Qe)}else Ka=await ce("/",Ue);let L=!1;(Fe=(Oe=ge==null?void 0:ge.extraValues)==null?void 0:Oe.output)==null||Fe.forEach(Qe=>{var ue,ma;(ma=(ue=Object.values(Qe))==null?void 0:ue[0])!=null&&ma.includes(".doc")&&(L=!0)});let H;if(L){const Qe=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});H=await ja.axios.post(ge.api,Ka,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Qe.close()})}else H=await ja.axios.post(ge.api,Ka,{headers:{"Content-Type":"application/json"}});let Q=(ca=(re=(Da=(la=A.cloneDeep(ge))==null?void 0:la.extraValues)==null?void 0:Da.output)==null?void 0:re.map(Qe=>{var ue,ma,Te,Ke,Na,Ca,Ze,La,ie,X,Z,q,Be,Xe,ia,xa;if(!((ma=(ue=Object.values(Qe))==null?void 0:ue[0])!=null&&ma.includes(".doc"))){let ka=(X=(ie=(La=(Ke=A.cloneDeep((Te=Object.values(Qe))==null?void 0:Te[0]))==null?void 0:Ke.split("["))==null?void 0:La[((Ze=(Ca=A.cloneDeep((Na=Object.values(Qe))==null?void 0:Na[0]))==null?void 0:Ca.split("["))==null?void 0:Ze.length)-1])==null?void 0:ie.split("]"))==null?void 0:X[0],Aa=ka==null?void 0:ka.split(":"),Sa=(Be=A.cloneDeep((Z=Object.values(Qe))==null?void 0:Z[0]))==null?void 0:Be.substring(0,A.cloneDeep((q=Object.values(Qe))==null?void 0:q[0]).lastIndexOf("["));if(Sa=(ia=A.cloneDeep(Sa))==null?void 0:ia.slice(0,((Xe=A.cloneDeep(Sa))==null?void 0:Xe.length)-1),Sa!=null&&Sa.includes("[")){let Ie="";if((xa=ve.contentTransArrayToAll(Sa,"/"))==null||xa.forEach(Ya=>{var Fa,xl,Jl,kl,Pl,Va,Ml;if(!(Ya!=null&&Ya.includes("[")))Ie=Ie===""?Ie+Ya.replaceAll("/",""):Ie+"/"+Ya.replaceAll("/","");else{let $l=A.cloneDeep(Ya).slice(1,((Fa=A.cloneDeep(Ya))==null?void 0:Fa.length)-1),Ma=(Va=(Pl=(kl=(Jl=(xl=A.cloneDeep($l))==null?void 0:xl.split("["))==null?void 0:Jl[1])==null?void 0:kl.split("]"))==null?void 0:Pl[0])==null?void 0:Va.split(":"),el="",tl=(Ml=Ue==null?void 0:Ue.find(ol=>(ol==null?void 0:ol.name)===(Ma==null?void 0:Ma[0])))==null?void 0:Ml.compData;tl==null||tl.forEach(ol=>{var Ra;(ol==null?void 0:ol.key)==="formContent"&&((Ra=ol==null?void 0:ol.contents)==null||Ra.forEach(ul=>{(ul==null?void 0:ul.key)===(Ma==null?void 0:Ma[1])&&(el=ul==null?void 0:ul.value)}))}),Ie=Ie===""?Ie+el.replaceAll("/",""):Ie+"/"+el.replaceAll("/","")}}),Sa=Ie,Sa[(Sa==null?void 0:Sa.length)-1]!=="/")return Sa}}}))==null?void 0:ca.filter(Qe=>Qe);Q=[...new Set(A.cloneDeep(Q))];let ye=Q==null?void 0:Q.map(async Qe=>{let ue=await ve.getItemData(Qe,sessionStorage.getItem("systemKey"),"",!1,"","",Ae);if((ue==null?void 0:ue.length)===0)return await ve.getParentContents(Qe)});await Promise.all(ye);let me=[],va=(Ee=(da=(se=A.cloneDeep(ge))==null?void 0:se.extraValues)==null?void 0:da.output)==null?void 0:Ee.map(async Qe=>{var La,ie,X,Z,q,Be,Xe,ia,xa,ka,Aa,Sa,Ie,Ya,Fa,xl,Jl,kl,Pl,Va,Ml,$l,Ma,el,tl,ol,Ra,ul,rl,ee,ea,Je,he,ya,pa,qe,na,fa,dl,He,ta,ra,Za,Le,Ne,_l,Ol,ql,Wl,Ql,pr,Ll,fr,Vr,jl,ar,Fr,Tr,Pr,Mr,Sr,Er,yn,Dr,ur,gn,ln,rn,Sn,Tn;if((ie=(La=Object.values(Qe))==null?void 0:La[0])!=null&&ie.includes(".doc")){var ue=new Blob([H.data],{type:"application/octet-stream;charset=UTF-8"}),ma=H.headers["content-disposition"],Te=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Ke=Te.exec(ma),Na=Ke==null?void 0:Ke[1],Ca=document.createElement("a"),Ze=window.URL.createObjectURL(ue);v.value=[{name:Na,blobUrl:Ze}],s.value=!0}else{let pn=(ka=(xa=(ia=(Z=A.cloneDeep((X=Object.values(Qe))==null?void 0:X[0]))==null?void 0:Z.split("["))==null?void 0:ia[((Xe=(Be=A.cloneDeep((q=Object.values(Qe))==null?void 0:q[0]))==null?void 0:Be.split("["))==null?void 0:Xe.length)-1])==null?void 0:xa.split("]"))==null?void 0:ka[0],lr=pn==null?void 0:pn.split(":"),Il=(Ie=A.cloneDeep((Aa=Object.values(Qe))==null?void 0:Aa[0]))==null?void 0:Ie.substring(0,A.cloneDeep((Sa=Object.values(Qe))==null?void 0:Sa[0]).lastIndexOf("["));if(Il!=null&&Il.includes("[")?Il=(Fa=A.cloneDeep(Il))==null?void 0:Fa.slice(0,((Ya=A.cloneDeep(Il))==null?void 0:Ya.length)-1):Il===""&&(Il=E.value),Il=Il.replaceAll("<","[").replaceAll(">","]"),Il!=null&&Il.includes("[")){let sl="";(xl=ve.contentTransArrayToAll(Il,"/"))==null||xl.forEach((cr,Vl)=>{var _r,Gl,hr,Or,bn,Nn,kn,Un,Ln,xn,An;if(!(cr!=null&&cr.includes("[")))sl=sl===""?sl+cr.replaceAll("/",""):sl+"/"+cr.replaceAll("/","");else{let Rn="",Qr="";(_r=A.cloneDeep(cr))!=null&&_r.includes("]")?(Rn=A.cloneDeep(cr).slice(1,((Gl=A.cloneDeep(cr))==null?void 0:Gl.length)-1),Qr=(kn=(Nn=(bn=(Or=(hr=A.cloneDeep(Rn))==null?void 0:hr.split("["))==null?void 0:Or[1])==null?void 0:bn.split("]"))==null?void 0:Nn[0])==null?void 0:kn.split(":")):(Rn=A.cloneDeep(cr).slice(1,(Un=A.cloneDeep(cr))==null?void 0:Un.length),Qr=(Ln=A.cloneDeep(Rn))==null?void 0:Ln.split("/"));let zn="",qn=(xn=Ue==null?void 0:Ue.find(Lr=>(Lr==null?void 0:Lr.name)===(Qr==null?void 0:Qr[0])))==null?void 0:xn.compData;qn==null||qn.forEach(Lr=>{var Wn;(Lr==null?void 0:Lr.key)==="formContent"&&((Wn=Lr==null?void 0:Lr.contents)==null||Wn.forEach(fn=>{(fn==null?void 0:fn.key)===(Qr==null?void 0:Qr[1])&&(zn=fn==null?void 0:fn.value)}))}),((An=ve.contentTransArrayToAll(Il,"/"))==null?void 0:An.length)-1!==Vl?sl=sl===""?sl+zn.replaceAll("/",""):sl+"/"+zn.replaceAll("/",""):sl=sl+n.value+zn.replaceAll("/","")}}),(Jl=E.value)!=null&&Jl.includes(sl)?Il=E.value:Il=sl}let Ar=A.cloneDeep((kl=Object.keys(Qe))==null?void 0:kl[0]);if(((Pl=H==null?void 0:H.data)==null?void 0:Pl.statusCode)===200||((Va=H==null?void 0:H.data)==null?void 0:Va.code)===200){if((($l=(Ml=H==null?void 0:H.data)==null?void 0:Ml.data)!=null&&$l[Ar]||(el=(Ma=H==null?void 0:H.data)==null?void 0:Ma.result)!=null&&el[Ar])&&(lr==null?void 0:lr.length)===1)return await fe(((ol=(tl=H==null?void 0:H.data)==null?void 0:tl.data)==null?void 0:ol[Ar])||((ul=(Ra=H==null?void 0:H.data)==null?void 0:Ra.result)==null?void 0:ul[Ar]),A.cloneDeep(Il),lr,sa);if((ee=(rl=H==null?void 0:H.data)==null?void 0:rl.data)!=null&&ee[Ar]||(Je=(ea=H==null?void 0:H.data)==null?void 0:ea.result)!=null&&Je[Ar]){let sl=await be(((ya=(he=H==null?void 0:H.data)==null?void 0:he.data)==null?void 0:ya[Ar])||((qe=(pa=H==null?void 0:H.data)==null?void 0:pa.result)==null?void 0:qe[Ar]),A.cloneDeep(Il),lr);return sl&&(me=[...me,...sl]),sl}else{if(!((na=H==null?void 0:H.data)!=null&&na.data)){let sl=await ve.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,"","",Ae);sl=sl==null?void 0:sl.map(Vl=>{var _r;return(Vl==null?void 0:Vl.name)===(lr==null?void 0:lr[0])&&(Vl.compData=(_r=Vl.compData)==null?void 0:_r.map(Gl=>{var hr;return(Gl==null?void 0:Gl.key)==="formContent"&&(Gl.contents=(hr=Gl.contents)==null?void 0:hr.map(Or=>{var bn,Nn;return(Or==null?void 0:Or.key)===(lr==null?void 0:lr[1])&&(Or.value=(Nn=(bn=H==null?void 0:H.data)==null?void 0:bn.result)==null?void 0:Nn[Ar==null?void 0:Ar.replaceAll(":","")]),Or})),Gl})),Vl});let cr=[];(fa=sl==null?void 0:sl.filter(Vl=>(Vl==null?void 0:Vl.comp)==="Form"))==null||fa.forEach(async Vl=>{let _r={};for(let Gl in Vl)Gl!=="id"&&(_r[Gl]=Vl[Gl]);cr.push({id:Vl==null?void 0:Vl.id,value:{pageData:_r}})}),(cr==null?void 0:cr.length)>0&&await Nr.batchUpdateInsofDataApi({dataList:cr});return}if((lr==null?void 0:lr.length)===1){const sl=(ta=(He=(dl=H==null?void 0:H.data)==null?void 0:dl.data)==null?void 0:He.path)==null?void 0:ta.path;let cr="";(_l=(Ne=(Le=(Za=(ra=sl==null?void 0:sl.split("("))==null?void 0:ra[1])==null?void 0:Za.split(")"))==null?void 0:Le[0])==null?void 0:Ne.split(":"))==null||_l.forEach(Gl=>{var hr,Or;cr=cr===""?cr+((hr=Gl==null?void 0:Gl.replaceAll("'",""))==null?void 0:hr.trim()):cr+"/"+((Or=Gl==null?void 0:Gl.replaceAll("'",""))==null?void 0:Or.trim())});let Vl=[(pr=(Ql=(Wl=(ql=(Ol=sl==null?void 0:sl.split("<"))==null?void 0:Ol[1])==null?void 0:ql.split(">"))==null?void 0:Wl[0])==null?void 0:Ql.replaceAll("'",""))==null?void 0:pr.trim()],_r;return(Vr=(fr=(Ll=H==null?void 0:H.data)==null?void 0:Ll.data)==null?void 0:fr.data)!=null&&Vr[lr==null?void 0:lr[0]]?_r=await fe((Fr=(ar=(jl=H==null?void 0:H.data)==null?void 0:jl.data)==null?void 0:ar.data)==null?void 0:Fr[lr==null?void 0:lr[0]],cr,lr,sa):_r=await Me((Pr=(Tr=H==null?void 0:H.data)==null?void 0:Tr.data)==null?void 0:Pr.data,cr,Vl,Ae),_r}else{const sl=(Er=(Sr=(Mr=H==null?void 0:H.data)==null?void 0:Mr.data)==null?void 0:Sr.path)==null?void 0:Er.path;let cr="";return(ln=(gn=(ur=(Dr=(yn=sl==null?void 0:sl.split("("))==null?void 0:yn[1])==null?void 0:Dr.split(")"))==null?void 0:ur[0])==null?void 0:gn.split(":"))==null||ln.forEach(_r=>{var Gl,hr;cr=cr===""?cr+((Gl=_r==null?void 0:_r.replaceAll("'",""))==null?void 0:Gl.trim()):cr+"/"+((hr=_r==null?void 0:_r.replaceAll("'",""))==null?void 0:hr.trim())}),await be((Tn=(Sn=(rn=H==null?void 0:H.data)==null?void 0:rn.data)==null?void 0:Sn.data)==null?void 0:Tn[lr==null?void 0:lr[0]],cr,lr)}}}}});if(await Promise.all(va),(me==null?void 0:me.length)>0){let Qe=[];me==null||me.forEach(Te=>{Qe!=null&&Qe.find(Ke=>{var Na,Ca,Ze,La;return((Ca=(Na=Ke==null?void 0:Ke.value)==null?void 0:Na.pageData)==null?void 0:Ca.name)===((La=(Ze=Te==null?void 0:Te.value)==null?void 0:Ze.pageData)==null?void 0:La.name)})||Qe.push(Te)});let ue=[];Qe==null||Qe.forEach(Te=>{var Ca,Ze,La,ie;let Ke=A.cloneDeep(Te);Ke.value.pageData.compData=(Ca=Ke.value.pageData.compData)==null?void 0:Ca.map(X=>{var Z;return(X==null?void 0:X.key)==="formContent"&&(X.contents=(Z=X.contents)==null?void 0:Z.map(q=>{var Xe,ia,xa,ka;let Be=(Xe=A.cloneDeep(me))==null?void 0:Xe.find(Aa=>(Aa==null?void 0:Aa.keyType)===(q==null?void 0:q.key));if(Be){let Aa=(ka=(xa=(ia=Be.value.pageData.compData)==null?void 0:ia.find(Sa=>(Sa==null?void 0:Sa.key)==="formContent"))==null?void 0:xa.contents)==null?void 0:ka.find(Sa=>(Sa==null?void 0:Sa.key)===(q==null?void 0:q.key));q.value=Aa==null?void 0:Aa.value}return q})),X}),ue.push({id:Ke==null?void 0:Ke.id,value:Ke==null?void 0:Ke.value});let Na=[];(ie=(La=(Ze=Ke==null?void 0:Ke.value)==null?void 0:Ze.pageData)==null?void 0:La.compData)==null||ie.forEach(X=>{var Z;(X==null?void 0:X.key)==="formContent"&&((Z=X==null?void 0:X.contents)==null||Z.forEach(q=>{var Be,Xe,ia,xa,ka,Aa;if((Xe=(Be=q==null?void 0:q.optionUrl)==null?void 0:Be.menuSelect)!=null&&Xe.find(Sa=>Sa==null?void 0:Sa.includes("[")))if(Na!=null&&Na.find(Sa=>{var Ie,Ya,Fa;return((Ie=Sa==null?void 0:Sa.key)==null?void 0:Ie.join(","))===((Fa=(Ya=q==null?void 0:q.optionUrl)==null?void 0:Ya.menuSelect)==null?void 0:Fa.join(","))})){let Sa=(ia=Na==null?void 0:Na.find(Ie=>{var Ya,Fa,xl;return((Ya=Ie==null?void 0:Ie.key)==null?void 0:Ya.join(","))===((xl=(Fa=q==null?void 0:q.optionUrl)==null?void 0:Fa.menuSelect)==null?void 0:xl.join(","))}))==null?void 0:ia.value;Sa.push({key:q==null?void 0:q.prop,groups:(xa=q==null?void 0:q.optionUrl)==null?void 0:xa.groupSelect,value:q==null?void 0:q.value}),Na=Na==null?void 0:Na.map(Ie=>{var Ya,Fa,xl;return((Ya=Ie==null?void 0:Ie.key)==null?void 0:Ya.join(","))===((xl=(Fa=q==null?void 0:q.optionUrl)==null?void 0:Fa.menuSelect)==null?void 0:xl.join(","))&&(Ie.value=Sa),Ie})}else Na.push({key:(ka=q==null?void 0:q.optionUrl)==null?void 0:ka.menuSelect,value:[{key:q==null?void 0:q.prop,groups:(Aa=q==null?void 0:q.optionUrl)==null?void 0:Aa.groupSelect,value:q==null?void 0:q.value}]})}))}),(Na==null?void 0:Na.length)>0&&(Na=Na==null?void 0:Na.map(X=>{var q;let Z="";return(q=X==null?void 0:X.key)==null||q.forEach(Be=>{var Xe;if(!(Be!=null&&Be.includes("[")))Z=Z===""?Z+Be:Z+"/"+Be;else{let ia="",xa=(Xe=Be==null?void 0:Be.replaceAll("[","").replaceAll("]",""))==null?void 0:Xe.split(":");Ue==null||Ue.forEach(ka=>{var Aa;(ka==null?void 0:ka.name)===(xa==null?void 0:xa[0])&&((Aa=ka==null?void 0:ka.compData)==null||Aa.forEach(Sa=>{var Ie;(Sa==null?void 0:Sa.key)==="formContent"&&((Ie=Sa==null?void 0:Sa.contents)==null||Ie.forEach(Ya=>{(Ya==null?void 0:Ya.prop)===(xa==null?void 0:xa[1])&&(ia=Ya==null?void 0:Ya.value)}))}))}),Z=Z+n.value+ia}}),X.key=Z,X})),Na==null||Na.forEach(X=>{var Xe,ia,xa;let Z=(Xe=Ae[X.key])==null?void 0:Xe.find(ka=>{var Aa,Sa,Ie,Ya,Fa,xl,Jl;return((Sa=(Aa=ka==null?void 0:ka.value)==null?void 0:Aa.pageData)==null?void 0:Sa.name)===((Fa=(Ya=(Ie=X==null?void 0:X.value)==null?void 0:Ie[0])==null?void 0:Ya.groups)==null?void 0:Fa[0])&&((Jl=(xl=ka==null?void 0:ka.value)==null?void 0:xl.pageData)==null?void 0:Jl.name)!==void 0}),q=Z==null?void 0:Z.id,Be=(ia=Z==null?void 0:Z.value)==null?void 0:ia.pageData;Be.compData=(xa=Be.compData)==null?void 0:xa.map(ka=>{var Aa;return(ka==null?void 0:ka.key)==="formContent"&&(ka.contents=(Aa=ka.contents)==null?void 0:Aa.map(Sa=>{var Ya;let Ie=(Ya=X.value)==null?void 0:Ya.find(Fa=>(Fa==null?void 0:Fa.key)===(Sa==null?void 0:Sa.prop));return Ie&&(Sa.value=Ie.value),Sa})),ka}),ue.push({id:q,value:{pageData:Be}})})});let ma=(te=A.cloneDeep(me))==null?void 0:te[0];(ue==null?void 0:ue.length)>0&&await Nr.batchUpdateInsofDataApi({dataList:ue})}y.setFreshContent(!0)}c.setImportLoading(!1)}catch{ja.ElMessage.error("方法执行错误,请查看方法!"),c.setImportLoading(!1)}_.value=!0},pe=["createInsofDataApi"],De=Bl.debounce(async ge=>{le(ge)},100),Ve=async ge=>{var Fe,la,Da;const N=A.cloneDeep(ge);let de,U=new WeakMap;ge!=null&&ge[0].path&&(de=await(N==null?void 0:N.map(async(re,ca)=>{var Ka,L,H,Q,ye,me,va,Qe,ue,ma,Te,Ke,Na,Ca,Ze,La;const da=(Ka=U[re==null?void 0:re.path])==null?void 0:Ka.filter(ie=>{var X;return((X=ie==null?void 0:ie.key)==null?void 0:X.type)==="data"});let Ee="";const te=await ve.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);da==null||da.forEach(ie=>{var X,Z,q,Be,Xe;((Z=(X=ie==null?void 0:ie.value)==null?void 0:X.tableData)==null?void 0:Z.算法名称)===((q=N==null?void 0:N[ca])==null?void 0:q.method)&&(Ee=(Xe=(Be=ie==null?void 0:ie.value)==null?void 0:Be.tableData)==null?void 0:Xe.算法体)});const Ae=await ve.getItemData(re==null?void 0:re.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);let Ue="",sa=(ye=(Q=(H=(L=Ae==null?void 0:Ae[0])==null?void 0:L.compData)==null?void 0:H.find(ie=>(ie==null?void 0:ie.key)==="header"))==null?void 0:Q.contents)==null?void 0:ye.findIndex(ie=>(ie==null?void 0:ie.prop)==="算法体");return(va=(me=Ae==null?void 0:Ae[0])==null?void 0:me.compData)==null||va.forEach(ie=>{var X;(ie==null?void 0:ie.key)==="tableContents"&&((X=ie==null?void 0:ie.contents)==null||X.forEach(Z=>{Z!=null&&Z.find(q=>q===(re==null?void 0:re.method))&&(Ue=Z[sa])}))}),{buttonName:((Qe=N==null?void 0:N[ca])==null?void 0:Qe.method)||((Te=(ma=(ue=da==null?void 0:da[0])==null?void 0:ue.value)==null?void 0:ma.tableData)==null?void 0:Te.算法名称),api:(Ee===""?(Ca=(Na=(Ke=da==null?void 0:da[0])==null?void 0:Ke.value)==null?void 0:Na.tableData)==null?void 0:Ca.算法体:Ee)||Ue,content:te==null?void 0:te.filter(ie=>ie.comp!=="methodButton"),extraContent:(Ze=A.cloneDeep(re.value))==null?void 0:Ze.slice(1),methodName:(re==null?void 0:re.path)??"",extraValues:(La=N==null?void 0:N[ca])==null?void 0:La.data}})));const Se=N==null?void 0:N.map(async re=>{var Ae,Ue,sa,Ka,L,H;const ca=(Ae=resAll.data.result)==null?void 0:Ae.filter(Q=>{var ye,me,va;return((ye=Q==null?void 0:Q.key)==null?void 0:ye.parentTable)===""&&((me=Q==null?void 0:Q.key)==null?void 0:me.type)==="method"&&((va=Q==null?void 0:Q.key)==null?void 0:va.methodName)===Q.method}),se=ca==null?void 0:ca[0],da=(Ue=resAll.data.result)==null?void 0:Ue.filter(Q=>{var ye,me;return((ye=Q==null?void 0:Q.key)==null?void 0:ye.type)==="methodData"&&((me=Q==null?void 0:Q.key)==null?void 0:me.tableId)===(se==null?void 0:se.id)}),Ee=await ve.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U),te=da==null?void 0:da[0];return{buttonName:(sa=se==null?void 0:se.key)==null?void 0:sa.methodKey,api:(L=(Ka=te==null?void 0:te.value)==null?void 0:Ka.tableData)==null?void 0:L[0],content:Ee==null?void 0:Ee.filter(Q=>Q.comp!=="methodButton"),extraContent:(H=A.cloneDeep(re.value))==null?void 0:H.slice(1),methodName:(re==null?void 0:re.method)??""}}),Oe=(Fe=ge==null?void 0:ge[0])!=null&&Fe.path&&((la=ge==null?void 0:ge[0])==null?void 0:la.path)!==""?await Promise.all(de):await Promise.all(Se);l.value=Oe==null?void 0:Oe.filter(re=>re==null?void 0:re.extraContent),(Da=l.value)==null||Da.forEach(re=>{var ca;re.api===""&&((ca=re.content)==null||ca.forEach(se=>{var da;se.comp=="Table"&&y.setExtraContents(ve.methodTableToContent(se.compData,(da=re.extraContent)==null?void 0:da[0]))}))})};return e.watch(()=>t.itemData,async()=>{k.value=="view"&&!_.value&&await Ve(A.cloneDeep(t.itemData)),_.value=!1},{immediate:!0,deep:!0}),(ge,N)=>{var de,U,Se;return e.unref(k)!=="edit"?(e.openBlock(),e.createElementBlock("div",Xh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((de=l.value)==null?void 0:de.filter(Oe=>(Oe==null?void 0:Oe.buttonName)!=="保存"),Oe=>{var Fe;return e.openBlock(),e.createElementBlock("div",null,[Oe.api!==""?(e.openBlock(),e.createBlock(e.unref(as._sfc_main),{key:0,disabled:e.unref(R)===e.unref(E)&&!((Fe=Oe==null?void 0:Oe.buttonName)!=null&&Fe.includes("预览")),class:"calculator-content",modelValue:Oe.buttonName,onClickTrigger:la=>e.unref(De)(Oe),loading:g.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(K)!==""&&((Se=e.unref(E))==null?void 0:Se[((U=e.unref(E))==null?void 0:U.length)-1])!==e.unref(n)?(e.openBlock(),e.createBlock(e.unref(as._sfc_main),{key:0,class:"calculator-content",onClickTrigger:$,modelValue:"保存"})):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:0,fileDataList:v.value,onDestroy:F},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},Qh=Zl._export_sfc(Zh,[["__scopeId","data-v-063aa9af"]]),e4={};function a4(a,l){return" 567 "}const l4=Zl._export_sfc(e4,[["render",a4]]),r4={class:"module content"},n4={class:"module data"},i4={class:"module layout"},o4={class:"form-content"},t4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.reactive({visible:!1,width:"40%",title:"签名配置"}),s=e.ref("create"),v=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=e.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}]),d=e.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:""}]),y=e.ref({}),g=e.ref([]),c=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:g.value},{key:"signConfig",contents:y.value}]}),D=M=>{var R;y.value=A.cloneDeep(M),n("change",(R=c())==null?void 0:R.compData)},O=M=>{var R,j;if((M==null?void 0:M.buttonName)==="确认"){const E=A.cloneDeep(M==null?void 0:M.content);switch(s.value){case"create":g.value.push({...E,index:((R=g.value)==null?void 0:R.length)+1});break}n("change",(j=c())==null?void 0:j.compData),t.visible=!1}else t.visible=!1},k=(M,R)=>{var j,E;switch(M){case"create":(j=d.value)==null||j.forEach(w=>{w.value=""}),s.value="create",t.visible=!0;break;case"update":(E=d.value)==null||E.forEach(w=>{w.value=R[w==null?void 0:w.prop]}),s.value="update",t.visible=!0;break;case"delete":g.value.splice(R,1),s.value="delete";break}},K=()=>{t.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,M=>{var R,j;M&&(y.value=((R=M==null?void 0:M.find(E=>E.key==="signConfig"))==null?void 0:R.contents)??{},g.value=((j=M==null?void 0:M.find(E=>E.key==="signTypeList"))==null?void 0:j.contents)??[])},{immediate:!0}),(M,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",r4,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=w=>k("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",n4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(w,x)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:x},[e.createElementVNode("span",null,e.toDisplayString(w==null?void 0:w.label),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>k("update",{...w,index:x+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>k("delete",x)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",i4,[e.createVNode(ll.ssForm,{rowContents:f.value,onChange:D},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:t.visible,title:t.title,onBeforeDestroy:K,width:t.width},{default:e.withCtx(()=>[e.createElementVNode("div",o4,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:v.value,onOnButtonClick:O},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),s4=Zl._export_sfc(t4,[["__scopeId","data-v-487e0536"]]),c4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(0),s=e.computed(()=>{var c,D;return(c=r==null?void 0:r.stepConfig)!=null&&c.allowTrigger?t.value:(D=r==null?void 0:r.stepConfig)==null?void 0:D.active}),v=(c,D)=>{t.value=D-1,n("clickStep",c,D)};e.onMounted(()=>{var c;n("clickStep",(c=r==null?void 0:r.stepList)==null?void 0:c[0],0)});const f=c=>ll.getComponent(c),d=()=>{var D;const c=(D=r==null?void 0:r.stepList)==null?void 0:D.find((O,k)=>k+1===s.value);return console.log("findStep",c),c?c==null?void 0:c.children:[]},y=c=>{n("clickTrigger",c)},g=c=>{n("changeTrigger",c)};return(c,D)=>{var K,M,R,j,E;const O=e.resolveComponent("el-step"),k=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k,{direction:(K=a.stepConfig)==null?void 0:K.direction,active:s.value,"finish-status":"success",simple:(M=a.stepConfig)==null?void 0:M.simple,"align-center":((R=a.stepConfig)==null?void 0:R.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(w,x)=>(e.openBlock(),e.createBlock(O,{key:x,class:"step-item",onClick:b=>v(w,x+1)},{title:e.withCtx(()=>[e.renderSlot(c.$slots,"title",{title:w==null?void 0:w.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(c.$slots,"description",{descriptions:w==null?void 0:w.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(j=a.stepConfig)!=null&&j.allowTrigger&&((E=a.stepConfig)!=null&&E.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(d(),(w,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f(w==null?void 0:w.type)),{modelValue:w.value,"onUpdate:modelValue":b=>w.value=b,onClickTrigger:y,onChangeTrigger:g,content:w==null?void 0:w.content},e.createSlots({_:2},[e.renderList(c.$slots,(b,_)=>({name:_,fn:e.withCtx($=>[e.renderSlot(c.$slots,_,e.mergeProps({ref_for:!0},$||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),u4=Zl._export_sfc(c4,[["__scopeId","data-v-fdbd6832"]]),d4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const r=a,n=l,t=e.ref({}),s=e.ref([]),v=(f,d)=>{n("clickStep",f,d)};return e.watch(()=>r==null?void 0:r.itemData,f=>{var c,D,O,k;t.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let d=((c=f==null?void 0:f.find(K=>(K==null?void 0:K.key)==="stepName"))==null?void 0:c.contents)??[],y=[];(O=(D=f==null?void 0:f.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:D.contents)==null||O.forEach(K=>{y.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 g=((k=f==null?void 0:f.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:k.contents)??[];d=d==null?void 0:d.map((K,M)=>{let R=y==null?void 0:y.map(j=>{var E;return{...j,value:(E=g==null?void 0:g[M])==null?void 0:E[j==null?void 0:j.prop]}});return{title:K,description:R}}),s.value=d},{immediate:!0,deep:!0}),(f,d)=>{const y=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(u4,{stepConfig:t.value,stepList:s.value,onClickStep:v},{icon:e.withCtx(()=>[e.createVNode(y,{name:"import"})]),title:e.withCtx(({title:g})=>[e.createTextVNode(e.toDisplayString(g),1)]),description:e.withCtx(({descriptions:g})=>[e.createVNode(ll.ssForm,{ref:"formRef",rowContents:g,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),p4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,r)=>{const n=e.resolveComponent("el-timeline-item"),t=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(t,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(s,v)=>(e.openBlock(),e.createBlock(n,{key:v,timestamp:s.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"content",{content:s==null?void 0:s.content,timestamp:s==null?void 0:s.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),f4=Zl._export_sfc(p4,[["__scopeId","data-v-4172a886"]]),h4={class:"line-content"},v4={class:"line-time"},m4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref({}),n=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,t=>{var s,v;n.value=(s=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="timeLineList"))==null?void 0:s.contents,r.value=(v=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="timeLineConfig"))==null?void 0:v.contents},{immediate:!0}),(t,s)=>(e.openBlock(),e.createBlock(f4,{activities:n.value,timeLineConfig:r.value},{content:e.withCtx(({content:v,timestamp:f})=>[e.createElementVNode("span",h4,e.toDisplayString(v),1),e.createElementVNode("span",v4,e.toDisplayString(f),1)]),_:1},8,["activities","timeLineConfig"]))}}),y4=Zl._export_sfc(m4,[["__scopeId","data-v-b4d9deed"]]),g4={class:"tabs-content"},b4=e.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(a,{emit:l}){const r=a,n=l,t=e.ref();e.watch(()=>r==null?void 0:r.itemData,()=>{t.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const s=D=>{n("change",D)},v=(D,O)=>{n("contentChange",D,O)},f=D=>{n("pageChange",D)},d=D=>{n("rowClick",D)},y=(D,O)=>{n("routeUrl",D,O)},g=D=>{n("clickTrigger",D)},c=(D,O)=>{n("clickMainKey",D,O)};return(D,O)=>{var k,K;return e.openBlock(),e.createElementBlock("div",g4,[(k=t.value)!=null&&k.length?(e.openBlock(),e.createBlock(ll.ssTab,{tabsContents:t.value,key:(K=t.value)==null?void 0:K.length},{pane:e.withCtx(({tab:M,index:R})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(M==null?void 0:M.comp)),{related:M==null?void 0:M.relatedTables,compNames:r==null?void 0:r.compNames,compName:M==null?void 0:M.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:a.isDevMode,itemData:M==null?void 0:M.compData,childItemData:M==null?void 0:M.itemChildData,onChange:s,index:(M==null?void 0:M.id)??R,config:{showIndex:M==null?void 0:M.showIndex,allowMove:M==null?void 0:M.allowMove,viewport:M==null?void 0:M.viewport,status:M==null?void 0:M.status},onContentChange:v,onPageChange:f,onRowClick:d,onRouteUrl:y,parentTableId:M==null?void 0:M.tableId,allMapContents:a.allMapContents,children:M==null?void 0:M.children,level:1,onClickTrigger:g,onClickMainKey:c},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),k4=Zl._export_sfc(b4,[["__scopeId","data-v-1ea318b4"]]),x4={class:"type-select"},w4=["onClick"],_4={class:"list-icon"},S4={__name:"modelSelect",setup(a){const l=Hn(A.pinia),{itemData:r}=A.storeToRefs(l),n=t=>{const s=A.cloneDeep(r.value);s.push({comp:t.comp,name:t.name,compData:[]}),l.setItemData(s)};return(t,s)=>{const v=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",x4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(au),(f,d)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:d},[e.createElementVNode("div",{class:"list-content",onClick:y=>n(f)},[e.createElementVNode("div",_4,[e.createVNode(v,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,w4)]))),128))])}}},E4=Zl._export_sfc(S4,[["__scopeId","data-v-91799bf8"]]),C4={class:"fill-content"},D4={class:"operate-content"},B4={class:"collapse-title-content"},T4={class:"collapse-title-item"},N4={key:1},A4=["onClick"],z4={class:"icon-content"},M4={key:0,class:"edit-content"},I4=["onClick"],O4={class:"comp-child"},L4={__name:"modelFill",setup(a){const l=Hn(A.pinia),{itemData:r,originalData:n}=A.storeToRefs(l),t=e.ref([]);e.ref([]);const s=e.ref([]),v=e.ref([]),f=O=>{var K;let k=(K=A.cloneDeep(v.value))==null?void 0:K.map((M,R)=>(O===R&&(M.content=!0),M));v.value=k},d=O=>{var K;let k=(K=A.cloneDeep(v.value))==null?void 0:K.map((M,R)=>(O===R&&(M.content=!1),M));v.value=k,t.value=A.cloneDeep(r.value)},y=(O,k)=>{var j;let K=(j=A.cloneDeep(v.value))==null?void 0:j.map((E,w)=>(O===w&&(E.content=!1),E));v.value=K;const M=A.cloneDeep(r.value),R=M==null?void 0:M.filter((E,w)=>(w===O&&(E.name=k),E));l.setOriginalData(R),l.setItemData(R)};e.watch(()=>r.value,()=>{var O,k,K;!r.value||((O=r.value)==null?void 0:O.length)===0?t.value=[]:t.value=(k=A.cloneDeep(r.value))==null?void 0:k.filter(M=>(M==null?void 0:M.comp)!=="methodButton"),s.value=t.value,v.value=(K=A.cloneDeep(s.value))==null?void 0:K.map((M,R)=>({id:R,content:!1}))},{deep:!0,immediate:!0});const g=O=>Bi(O),c=(O,k,K)=>{var R,j;if(!O)return;let M=A.cloneDeep(r.value);M=(R=M==null?void 0:M.map((E,w)=>(w===K&&(E.compData=O),E)))==null?void 0:R.filter(E=>(E==null?void 0:E.comp)!=="methodButton"),v.value=(j=A.cloneDeep(M))==null?void 0:j.map((E,w)=>({id:w,content:!1})),l.setOriginalData(M),l.setItemData(M)},D=O=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const k=A.cloneDeep(r.value),K=k==null?void 0:k.filter((M,R)=>R!==O);l.setOriginalData(K),l.setItemData(K),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(O,k)=>{const K=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",C4,[k[1]||(k[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",D4,[e.createVNode(Gs.default,{class:"collapse-content",collapseContents:t.value},{title:e.withCtx(({item:M,index:R})=>{var j,E,w,x,b,_,$,F,J,ce;return[e.createElementVNode("div",B4,[e.createElementVNode("div",T4,[(E=(j=v.value)==null?void 0:j.find(be=>be.id===R))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:M.name&&M.name!==""?"8px":"0px"})},e.toDisplayString(M.name),5)),(x=(w=v.value)==null?void 0:w.find(be=>be.id===R))!=null&&x.content?(e.openBlock(),e.createElementBlock("div",N4,[e.createVNode(ll.ssInput,{modelValue:M.name,"onUpdate:modelValue":be=>M.name=be,onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(_=(b=v.value)==null?void 0:b.find(be=>be.id===R))!=null&&_.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(be=>f(R),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Edit",style:{width:"16px",height:"16px"}})],8,A4))]),e.createElementVNode("div",z4,[(F=($=v.value)==null?void 0:$.find(be=>be.id===R))!=null&&F.content?(e.openBlock(),e.createElementBlock("div",M4,[e.createVNode(K,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(be=>d(R),["stop"])},null,8,["onClick"]),e.createVNode(K,{name:"Save",onClick:e.withModifiers(be=>y(R,M.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(ce=(J=v.value)==null?void 0:J.find(be=>be.id===R))!=null&&ce.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(be=>D(R),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Delete",style:{width:"16px",height:"16px"}})],8,I4))])])]}),content:e.withCtx(({item:M,index:R})=>{var j,E;return[e.createElementVNode("div",O4,[e.createTextVNode(e.toDisplayString(g(M.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g(M.comp+"Operate")),{itemContents:M==null?void 0:M.compData,originalItemContents:(E=(j=s.value)==null?void 0:j.find((w,x)=>x===R))==null?void 0:E.compData,onChange:w=>c(w,M,R)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},R4=Zl._export_sfc(L4,[["__scopeId","data-v-a46a44b9"]]),$4={key:0,class:"show-content"},V4={style:{display:"flex"}},F4={__name:"modelShow",setup(a){const l=Hn(A.pinia),{itemData:r}=A.storeToRefs(l),n=e.ref([]);e.watch(()=>r.value,()=>{var s;!r.value||((s=r.value)==null?void 0:s.length)===0?n.value=[]:n.value=A.cloneDeep(r.value)},{deep:!0,immediate:!0});const t=s=>Bi(s);return(s,v)=>{var f;return((f=n.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",$4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(d,y)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:y},[e.createElementVNode("div",V4,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},P4=Zl._export_sfc(F4,[["__scopeId","data-v-3f3e863e"]]),j4={class:"tabs-header"},H4={class:"tabs-list"},U4={class:"tab-name"},q4={class:"tab-actions"},W4=["onClick"],K4=["onClick"],G4=["onClick"],Y4={class:"model-operate"},J4={class:"model-select",style:{display:"unset"}},X4={class:"existing-components"},Z4={class:"component-list"},Q4=["onClick"],e6={class:"component-info"},a6={class:"component-type"},l6={class:"component-name"},r6={class:"model-fill"},n6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref(!1),v=e.ref(""),f=e.ref({title:""}),d=e.ref(-1),y=e.ref(!1),g=e.ref(-1),c=e.ref(new WeakMap),D=e.ref(null),O=Hn(A.pinia),{itemData:k}=A.storeToRefs(O),K=()=>{v.value="新增标签页",f.value.title="",d.value=-1,s.value=!0},M=ge=>{v.value="修改标签页",f.value.title=t.value[ge].title,d.value=ge,s.value=!0},R=ge=>{const N=w(ge);c.value.delete(N),t.value.splice(ge,1),Ve()},j=()=>{if(f.value.title.trim()){if(d.value===-1){const ge={title:f.value.title,value:f.value.title,label:f.value.title,children:[],id:E()};t.value.push(ge)}else t.value[d.value].title=f.value.title,t.value[d.value].value=f.value.title,t.value[d.value].label=f.value.title;s.value=!1,Ve()}},E=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,w=ge=>{const N=t.value[ge];return N.id||(N.id=E()),N.id},x=ge=>{var U;g.value=ge;const N=w(ge);D.value=A.cloneDeep(k.value);let de=c.value.get(N);!de&&((U=t.value[ge].children)==null?void 0:U.length)>0&&(de=F(t.value[ge].children)),de?O.setItemData(A.cloneDeep(de)):O.setItemData([]),y.value=!0},b=e.computed(()=>{const ge=A.useModelComp(A.pinia),N=A.storeToRefs(ge).itemData.value;return console.log("可用组件数据",N),!N||!Array.isArray(N)?[]:N.filter(de=>{var U;if(de.comp==="Tabs"&&g.value>=0){const Se=w(g.value);if((U=de.compData)==null?void 0:U.some(Fe=>{var la;return Fe.key==="stepList"&&((la=Fe.contents)==null?void 0:la.some(Da=>Da.id===Se))}))return!1}return!0})}),_=ge=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[ge]||ge,$=ge=>{var N;try{const de=A.cloneDeep(ge);de.id=Date.now()+Math.random(),de.comp==="Tabs"&&((N=de.compData)==null||N.forEach(Se=>{Se.key==="stepList"&&Se.contents&&Se.contents.forEach(Oe=>{Oe.id=E()})}));const U=A.cloneDeep(k.value);U.push(de),O.setItemData(U)}catch(de){console.error("添加组件失败:",de)}},F=ge=>ge.map(N=>{var de;switch(N.type){case"form":return{comp:"Form",name:N.value||"表单",compData:J(N.content)};case"table":return{comp:"Table",name:N.value||"表格",compData:ce(N.content)};default:return{comp:"Unknown",name:N.value||"",compData:((de=N.content)==null?void 0:de.originalData)||[]}}}),J=ge=>{if(!ge)return[];const N=[];return ge.rowContents&&N.push({key:"formContent",contents:ge.rowContents}),ge.buttonValue&&N.push({key:"formButton",contents:ge.buttonValue}),typeof ge.isEnableWrap<"u"&&N.push({key:"enableWrap",contents:ge.isEnableWrap}),N},ce=ge=>[],be=()=>{if(g.value>=0&&g.value<t.value.length){const ge=w(g.value);c.value.set(ge,A.cloneDeep(k.value)),t.value[g.value].children=fe(k.value),console.log("保存后的数据",fe(k.value))}y.value=!1,g.value=-1,D.value=null,Ve()},Me=()=>{D.value&&O.setItemData(A.cloneDeep(D.value)),y.value=!1,g.value=-1,D.value=null},V=()=>{y.value&&Me()},fe=ge=>{if(!Array.isArray(ge))throw new Error("sourceData must be an array");return ge.map((N,de)=>{if(!N||typeof N!="object")return N;const{comp:U,name:Se,compData:Oe}=N;switch(U){case"Form":return{type:"form",content:le(Oe||[]),value:"表单"};case"Table":return{type:"table",content:pe(Oe||[]),value:"表格"};default:return{type:"xxx",content:De(Oe||[]),value:""}}})},le=ge=>{const N={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},de={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return ge.forEach((U,Se)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${Se}:`,U);return}const{key:Oe,contents:Fe}=U,la=de[Oe];if(!la){console.warn(`Unknown Form config key: ${Oe}`);return}Oe==="enableWrap"?N[la]=!!Fe:N[la]=Array.isArray(Fe)?Fe:[]}),N},pe=ge=>{const N={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},de={header:"columns",tableContents:"tableData"};return ge.forEach((U,Se)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${Se}:`,U);return}const{key:Oe,contents:Fe}=U,la=de[Oe];if(!la){console.warn(`Unknown Table config key: ${Oe}`);return}N[la]=Array.isArray(Fe)?Fe:[]}),N},De=ge=>(console.log("Default conversion logic - to be implemented"),{originalData:ge,processed:!1,componentType:"unknown"}),Ve=()=>{const ge=[{key:"stepList",contents:t.value}];n("change",ge)};return e.watch(()=>r.itemContents,ge=>{if(ge&&ge.length>0){const N=ge.find(de=>de.key==="stepList");N&&N.contents&&(t.value=N.contents.map(de=>({title:de.title||"",value:de.value||de.title||"",label:de.label||de.title||"",children:de.children||[],id:de.id||E()})))}},{immediate:!0,deep:!0}),(ge,N)=>{const de=e.resolveComponent("svg-icon"),U=e.resolveComponent("el-input"),Se=e.resolveComponent("el-form-item"),Oe=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",j4,[N[6]||(N[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:K},[e.createVNode(de,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),N[5]||(N[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",H4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(Fe,la)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:la},[e.createElementVNode("span",U4,e.toDisplayString(Fe.title),1),e.createElementVNode("div",q4,[e.createElementVNode("button",{onClick:Da=>M(la)},"修改标题",8,W4),e.createElementVNode("button",{onClick:Da=>x(la)},"布局调整",8,K4),e.createElementVNode("button",{onClick:Da=>R(la)},"删除",8,G4)])]))),128))]),e.createVNode(wr.ssDialog,{modelValue:s.value,"onUpdate:modelValue":N[2]||(N[2]=Fe=>s.value=Fe),title:v.value,onBeforeDestroy:N[3]||(N[3]=Fe=>s.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:N[1]||(N[1]=Fe=>s.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:j},"确定")]),default:e.withCtx(()=>[e.createVNode(Oe,{model:f.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(Se,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:f.value.title,"onUpdate:modelValue":N[0]||(N[0]=Fe=>f.value.title=Fe),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(wr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":N[4]||(N[4]=Fe=>y.value=Fe),title:"布局调整",fullScreen:"",onBeforeDestroy:V},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:Me},"取消"),e.createElementVNode("button",{onClick:be},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",Y4,[e.createElementVNode("div",J4,[e.createVNode(E4),e.createElementVNode("div",X4,[N[8]||(N[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",Z4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,Fe=>(e.openBlock(),e.createElementBlock("div",{key:Fe.id,class:"component-item",onClick:la=>$(Fe)},[e.createElementVNode("div",e6,[e.createElementVNode("span",a6,e.toDisplayString(_(Fe.comp)),1),e.createElementVNode("span",l6,e.toDisplayString(Fe.name),1)]),N[7]||(N[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Q4))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:ge.innerWidth},[e.createVNode(P4)])),e.createElementVNode("div",r6,[e.createVNode(R4)])])]),_:1},8,["modelValue"])])}}},i6=Zl._export_sfc(n6,[["__scopeId","data-v-9096ed0d"]]);function o6(){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 t6(a){return{type:"line",...a}}function s6(){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:[]},yAxis:[{type:"value"}],series:[]}}function c6(a){return{type:"bar",barWidth:"60%",...a}}function u6(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function d6(a){return{type:"pie",radius:"80%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...a}}const p6=()=>({title:{text:"",left:"center"},tooltip:{trigger:"item"},xAxis:{scale:!0},yAxis:{scale:!0},series:[]}),f6=a=>({type:"scatter",symbolSize:20,...a}),mn={Line:{initBaseoptions:o6,initSeries:t6},Bar:{initBaseoptions:s6,initSeries:c6},Pie:{initBaseoptions:u6,initSeries:d6},Scatter:{initBaseoptions:p6,initSeries:f6}},h6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";const y=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(y==null||y.forEach(D=>{var O;g.push((O=r==null?void 0:r[0])==null?void 0:O[D])}),!y||!g)return d;d.xAxis.data=y;const c=f({data:g});return d.series.push(c),d},v6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";const y=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(y==null||y.forEach(D=>{var O;g.push((O=r==null?void 0:r[0])==null?void 0:O[D])}),!y||!g)return d;d.xAxis.data=y;const c=f({data:g});return d.series.push(c),d},m6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";const y=l==null?void 0:l.map(O=>O==null?void 0:O.prop);let g=[];if(y==null||y.forEach(O=>{var k;g.push((k=r==null?void 0:r[0])==null?void 0:k[O])}),!y||!g)return d;const c=[];for(let O=0;O<y.length;O++){const k=y[O],K=g[O];c.push({name:k,value:K})}const D=f({data:c});return d.series.push(D),d},y6=({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=mn==null?void 0:mn[n];if(!s)return;const{initBaseoptions:v,initSeries:f}=s,d=v();d.title.text=t??"";let y=[];const g=l==null?void 0:l.map(O=>O==null?void 0:O.prop);if(y=g==null?void 0:g.map(O=>{var K;let k=[];return k.push(O),k.push((K=r==null?void 0:r[0])==null?void 0:K[O]),k}),!y)return d;const D=f({data:y});return d.series.push(D),d},g6=async(a=[])=>{var v,f,d;const l=((v=a==null?void 0:a.find(y=>y.key==="ChartType"))==null?void 0:v.contents)??{},r=((f=a==null?void 0:a.find(y=>y.key==="header"))==null?void 0:f.contents)??[],n=((d=a==null?void 0:a.find(y=>y.key==="tableContents"))==null?void 0:d.contents)??[];let{type:t}=l,s={};return t==="Line"&&(s=await h6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="Bar"&&(s=await v6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="Pie"&&(s=await m6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="Scatter"&&(s=await y6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),s},b6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(a){const l=a,r=e.ref({});e.onMounted(async()=>{const t=l==null?void 0:l.itemData;r.value=await g6(t)});const n=e.computed(()=>(l==null?void 0:l.height)||"300px");return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:n.value})},[e.createVNode(Nu.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),k6=Zl._export_sfc(b6,[["__scopeId","data-v-d4c081e8"]]),x6={class:"chart-module layout"},w6={class:"chart-module content"},_6={class:"chart-module content"},S6={class:"form-content"},E6={class:"dialog-footer"},C6={class:"form-content"},D6={class:"dialog-footer"},B6={class:"form-content"},T6={class:"dialog-footer"},N6=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.reactive({visible:!1,width:"840",title:"基础配置"}),s=e.ref([]),v=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],f=e.ref({}),d=()=>{var Ee;s.value=v(),(Ee=s.value)==null||Ee.forEach(te=>{var Ue;const Ae=te==null?void 0:te.prop;te.value=(Ue=f==null?void 0:f.value)==null?void 0:Ue[Ae]}),t.visible=!0},y=Ee=>{f.value=Ee},g=()=>{var Ee;t.visible=!1,n("change",(Ee=se())==null?void 0:Ee.compData)},c=e.reactive({visible:!1,width:"840",title:"数据配置"}),D=e.ref([]),O=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],k=e.ref({}),K=()=>{const Ee=D.value,te=A.cloneDeep(Ee);return te==null||te.forEach(Ae=>{var sa;const Ue=Ae==null?void 0:Ae.prop;Ae.value=(sa=k.value)==null?void 0:sa[Ue]}),te},M=Ee=>{var Ae;k.value=Ee;const te=K();D.value=te,n("change",(Ae=se())==null?void 0:Ae.compData)},R=async()=>{const Ee=await ve.getMenusContent(),te=K();te==null||te.forEach(Ae=>{(Ae==null?void 0:Ae.prop)==="menu"&&(Ae.contents=Ee)}),D.value=te,c.visible=!0,await Fe(k.value.menu),await re(k.value.group)},j=e.reactive({visible:!1,width:"840",title:"详情页配置"}),E=e.ref([]),w=()=>[{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:[]}],x=e.ref({}),b=()=>{const Ee=E.value,te=A.cloneDeep(Ee);return te==null||te.forEach(Ae=>{var sa;const Ue=Ae==null?void 0:Ae.prop;Ae.value=(sa=x.value)==null?void 0:sa[Ue]}),te},_=Ee=>{var Ae;x.value=Ee;const te=b();E.value=te,n("change",(Ae=se())==null?void 0:Ae.compData)},$=async()=>{await V();const Ee=A.cloneDeep(F.value),te=b();te==null||te.forEach(Ae=>{var sa;const Ue=Ae==null?void 0:Ae.prop;Ae.value=(sa=x==null?void 0:x.value)==null?void 0:sa[Ue],Ue==="mainKey"&&(Ae.contents=Ee)}),E.value=te,j.visible=!0},F=e.ref([]),J=e.ref([]),ce=e.ref({}),be=e.ref({}),Me=()=>{const{compData:Ee}=U.value||{},te=Ee==null?void 0:Ee.find(Q=>{const{key:ye}=Q;return ye==="header"}),Ae=(te==null?void 0:te.contents)||[],Ue=Ae==null?void 0:Ae.filter((Q,ye)=>{const{label:me}=Q;return me!=="操作"}),sa=Ue==null?void 0:Ue.findIndex((Q,ye)=>{const{isMainKey:me}=Q;return me});if(sa<0)return[];const Ka=Ee==null?void 0:Ee.find(Q=>{const{key:ye}=Q;return ye==="tableContents"}),L=(Ka==null?void 0:Ka.contents)||[];return L==null?void 0:L.map(Q=>{const ye=Q==null?void 0:Q[0];let me=sa;ja.isObject(ye)&&(ye!=null&&ye.id)&&(me=me+1);const va=Q==null?void 0:Q[me];return{label:va,value:va}})},V=async()=>{const Ee=await Me();F.value=Ee},fe=async Ee=>{const te=sessionStorage.getItem("systemKey");return await ve.getItemData(Ee,te,"")},le=async Ee=>{const te=Ee;J.value=te==null?void 0:te.map(Ae=>{const{name:Ue}=Ae;return ce.value[Ue]=Ae,{label:Ue,value:Ue}})},pe=Ee=>{const{comp:te,compData:Ae}=be.value||{};if(te==="Table"){let Ue=b();Ue=Ue.filter(sa=>{const{prop:Ka}=sa;return Ka!=="formItems"}),la(Ue,Ae),E.value=Ue}},De=async()=>{var Ae,Ue;const Ee=(Ae=x==null?void 0:x.value)==null?void 0:Ae.mainKey,te=(Ue=k==null?void 0:k.value)==null?void 0:Ue.menu;if(Ee){const Ka=`${te==null?void 0:te.join("/")}^${Ee}`,L=await fe(Ka);await le(L);const H=b();H==null||H.forEach(Q=>{(Q==null?void 0:Q.prop)==="group"&&(Q.contents=J.value)}),E.value=H}};e.watch(()=>{var Ee;return(Ee=x==null?void 0:x.value)==null?void 0:Ee.mainKey},async(Ee,te)=>{Ee!=te&&Ee&&await De()});const Ve=async Ee=>{const te=ce.value[Ee];be.value=te,await pe()};e.watch(()=>{var Ee;return(Ee=x==null?void 0:x.value)==null?void 0:Ee.group},async(Ee,te)=>{Ee!=te&&Ee&&Ve(Ee)});const ge=async()=>{var te;await De();const Ee=(te=x.value)==null?void 0:te.group;await Ve(Ee)},N=e.ref([]),de=e.ref({}),U=e.ref({}),Se=async Ee=>{const te=Ee==null?void 0:Ee.join("/"),Ae=sessionStorage.getItem("systemKey");return await ve.getItemData(te,Ae,"")},Oe=async Ee=>{const te=await Se(Ee);N.value=te==null?void 0:te.map(Ae=>{const{name:Ue}=Ae;return de.value[Ue]=Ae,{label:Ue,value:Ue}})},Fe=async(Ee,te)=>{await Oe(Ee);const Ae=K();Ae==null||Ae.forEach(Ue=>{(Ue==null?void 0:Ue.prop)==="group"&&(Ue.contents=N.value)}),D.value=Ae};e.watch(()=>{var Ee;return(Ee=k==null?void 0:k.value)==null?void 0:Ee.menu},async(Ee,te)=>{const Ae=Ee==null?void 0:Ee.join("/"),Ue=te==null?void 0:te.join("/");Ae!=Ue&&await Fe(Ee)});const la=(Ee,te)=>{const Ae=te==null?void 0:te.find(L=>{const{key:H}=L;return H==="header"}),Ue=(Ae==null?void 0:Ae.contents)||[],sa=Ue==null?void 0:Ue.filter((L,H)=>{const{label:Q}=L;return Q!=="操作"}),Ka=sa==null?void 0:sa.map((L,H)=>{const{label:Q}=L;return{label:Q,value:H}});Ee==null||Ee.forEach(L=>{const H=L==null?void 0:L.prop;(H==="nameCol"||H==="valueCol")&&(L.contents=Ka)})},Da=Ee=>{const{comp:te,compData:Ae}=U.value||{};if(te==="Table"){k.value.formItems=[];let Ue=K();Ue=Ue.filter(sa=>{const{prop:Ka}=sa;return Ka!=="formItems"}),la(Ue,Ae),D.value=Ue}},re=async Ee=>{const te=de.value[Ee];U.value=te,await Da()};e.watch(()=>{var Ee;return(Ee=k==null?void 0:k.value)==null?void 0:Ee.group},async(Ee,te)=>{Ee!=te&&re(Ee)});const ca=async()=>{var Ae,Ue;const Ee=(Ae=k.value)==null?void 0:Ae.menu;await Fe(Ee);const te=(Ue=k.value)==null?void 0:Ue.group;await re(te)},se=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:f.value},{key:"chartDataConfig",contents:k.value},{key:"chartDetailConfig",contents:x.value}]}),da=()=>{t.visible=!1,c.visible=!1,j.visible=!1};return e.onMounted(async()=>{var te,Ae,Ue;D.value=O(),E.value=w();const Ee=r==null?void 0:r.itemContents;f.value=((te=Ee==null?void 0:Ee.find(sa=>sa.key==="chartBaseConfig"))==null?void 0:te.contents)??{},k.value=((Ae=Ee==null?void 0:Ee.find(sa=>sa.key==="chartDataConfig"))==null?void 0:Ae.contents)??{},await ca(),x.value=((Ue=Ee==null?void 0:Ee.find(sa=>sa.key==="chartDetailConfig"))==null?void 0:Ue.contents)??{},await ge()}),(Ee,te)=>{const Ae=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",x6,[te[4]||(te[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(Ae,{id:"themeButton",onClick:te[0]||(te[0]=Ue=>d())},{default:e.withCtx(()=>te[3]||(te[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",w6,[te[6]||(te[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(Ae,{id:"themeButton",onClick:te[1]||(te[1]=Ue=>R())},{default:e.withCtx(()=>te[5]||(te[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",_6,[te[8]||(te[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(Ae,{id:"themeButton",onClick:te[2]||(te[2]=Ue=>$())},{default:e.withCtx(()=>te[7]||(te[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(wr.ssDialog,{visible:t.visible,title:t.title,onBeforeDestroy:da,width:t.width},{default:e.withCtx(()=>[e.createElementVNode("div",S6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",E6,[e.createVNode(Ae,{class:"cancel-button button",onClick:da,id:"themeBorderButton"},{default:e.withCtx(()=>te[9]||(te[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(Ae,{class:"ok-button button",onClick:g,id:"themeButton"},{default:e.withCtx(()=>te[10]||(te[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(wr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:da,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",C6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:M},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",D6,[e.createVNode(Ae,{class:"cancel-button button",onClick:da,id:"themeBorderButton"},{default:e.withCtx(()=>te[11]||(te[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(Ae,{class:"ok-button button",onClick:da,id:"themeButton"},{default:e.withCtx(()=>te[12]||(te[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(wr.ssDialog,{visible:j.visible,title:j.title,onBeforeDestroy:da,width:j.width},{default:e.withCtx(()=>[e.createElementVNode("div",B6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",T6,[e.createVNode(Ae,{class:"cancel-button button",onClick:da,id:"themeBorderButton"},{default:e.withCtx(()=>te[13]||(te[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(Ae,{class:"ok-button button",onClick:da,id:"themeButton"},{default:e.withCtx(()=>te[14]||(te[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),A6=Zl._export_sfc(N6,[["__scopeId","data-v-fe119645"]]),z6={class:"layout"},M6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const r=l,n=a;e.onMounted(async()=>{});const t=e.computed(()=>A.cloneDeep(n==null?void 0:n.itemData)||[]),s=e.computed(()=>{var g;const y=(g=t==null?void 0:t.value)==null?void 0:g.find(c=>{const{key:D}=c;return D==="baseConfig"});return y==null?void 0:y.contents}),v=e.computed(()=>{var g;const y=(g=t==null?void 0:t.value)==null?void 0:g.find(c=>{const{key:D}=c;return D==="children"});return y==null?void 0:y.contents}),f=e.computed(()=>{let y=A.cloneDeep(v.value)||[];const g=y.length;let c=0;const D=[];if(y=y.map(O=>{const k=O.span;return k?(O.span=Number(k),c=c+O.span):D.push(O),O}),c<24){const O=Math.floor((24-c)/g);D.forEach(k=>{k.span=O})}return y}),d=y=>{r("rowClick",y)};return(y,g)=>{var O;const c=e.resolveComponent("el-col"),D=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",z6,[e.createVNode(D,{style:e.normalizeStyle({height:(O=s.value)==null?void 0:O.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(k,K)=>(e.openBlock(),e.createBlock(c,{span:k==null?void 0:k.span},{default:e.withCtx(()=>{var M;return[e.unref(Di)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(k.comp)),{key:e.unref(jn),compName:k.name,index:(k==null?void 0:k.id)??K,height:(M=s.value)==null?void 0:M.height,itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,onChange:e.unref(To),onContentChange:e.unref(No),onPageChange:e.unref(Ao),onRowClick:d},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),I6=Zl._export_sfc(M6,[["__scopeId","data-v-ab9a36ed"]]),O6={class:"layout-operate"},L6={class:"layout-module"},R6={class:"collapse-title-item"},$6={class:"collapse-title"},V6={class:"icon-content"},F6=["onClick"],P6={class:"comp-child"},j6=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l;e.onMounted(()=>{K()});const t=e.ref({}),s=e.ref({}),v=e.ref([]),f=x=>[{label:"高度",prop:"height",type:"input",value:x==null?void 0:x.height}],d=x=>{s.value=x,n("change",w(),!0)},y=e.ref([]),g=e.ref([]),c=x=>[{label:"占比",prop:"span",type:"input",value:x==null?void 0:x.span}],D=e.computed(()=>{const x=r==null?void 0:r.itemContents;return A.cloneDeep(x)}),O=e.computed(()=>{const x=D==null?void 0:D.value,b=x==null?void 0:x.find(_=>{const{key:$}=_;return $==="baseConfig"});return b==null?void 0:b.contents}),k=e.computed(()=>{const x=D==null?void 0:D.value,b=x==null?void 0:x.find(_=>{const{key:$}=_;return $==="children"});return b==null?void 0:b.contents}),K=()=>{var x;t.value=D.value||{},y.value=(k==null?void 0:k.value)||[],v.value=f(),v.value=(x=v.value)==null?void 0:x.map(b=>{var $;const{prop:_}=b;return b.value=($=O.value)==null?void 0:$[_],b})};e.watch(()=>{var x;return(x=k==null?void 0:k.value)==null?void 0:x.length},()=>{var x;y.value=(k==null?void 0:k.value)||[],g.value=(x=k.value)==null?void 0:x.map(b=>c(b))},{immediate:!0});const M=(x,b)=>{const _=A.cloneDeep(k==null?void 0:k.value);_[b].span=x.span,y.value=_,n("change",w(),!0)},R=x=>Bi(x),j=(x,b,_)=>{if(!x)return;const $=A.cloneDeep(k==null?void 0:k.value);$[_]&&($[_].compData=x,y.value=$,n("change",w(),!0))},E=x=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=A.cloneDeep(k==null?void 0:k.value);b=b==null?void 0:b.filter((_,$)=>x!==$),y.value=b,n("change",w(),!0),ja.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=()=>({compData:[{key:"baseConfig",contents:s.value},{key:"children",contents:y==null?void 0:y.value}]});return(x,b)=>{const _=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",O6,[e.createElementVNode("div",L6,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(ll.ssForm,{rowContents:v.value,isEnableWrap:!0,onChange:b[0]||(b[0]=$=>d($))},null,8,["rowContents"])])]),e.createVNode(Gs.default,{class:"collapse-content",collapseContents:k.value},{title:e.withCtx(({item:$,index:F})=>[e.createElementVNode("div",R6,[e.createElementVNode("div",$6,e.toDisplayString($.name),1),e.createElementVNode("div",V6,[e.createElementVNode("div",{onClick:e.withModifiers(J=>E(F),["stop"]),class:"icon-content"},[e.createVNode(_,{name:"Delete",style:{width:"16px",height:"16px"}})],8,F6)])])]),content:e.withCtx(({item:$,index:F})=>[e.createElementVNode("div",P6,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:g.value[F],key:F,isEnableWrap:!0,onChange:J=>M(J,F)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R($.comp+"Operate")),{itemContents:$==null?void 0:$.compData,originalItemContents:$.compData,onChange:J=>j(J,$,F)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),H6=Zl._export_sfc(j6,[["__scopeId","data-v-ba05456e"]]),U6=typeof window<"u";var xs;U6&&((xs=window==null?void 0:window.navigator)!=null&&xs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cn(a){return a==null}function Oc(){}const q6=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(q6)));function W6(){const a=new Map;return{on(l,r){const n=a.get(l);n!=null&&n.add(r)||a.set(l,new Set([r]))},off(l,r){const n=a.get(l);n&&n.delete(r)},clear(l){const r=a.get(l);r&&r.clear()},clearAll(){a.clear()},emit(l,...r){const n=a.get(l);n&&n.forEach(t=>{t(...r)})}}}function ws(a,l=16){if(typeof a!="function")return Oc;const r=(...s)=>{a(...s)};if(l<=0)return Lc(r);let n=0,t;return function(...s){const v=Date.now(),f=v-n;clearTimeout(t),f>=l?(n=v,r(...s)):t=setTimeout(()=>{n=Date.now(),r(...s)},Math.max(0,l-f))}}function K6(a,l=100){if(typeof a!="function")return Oc;const r=(...t)=>{a(...t)};if(l<=0)return Lc(r);let n;return function(...t){clearTimeout(n),n=setTimeout(()=>{r(...t)},l)}}function Lc(a){if(typeof a!="function")return a;let l=!1,r,n;return function(...t){return r=t,l||(l=!0,n=Promise.resolve().then(()=>(l=!1,n=void 0,a(...r)))),n}}const Ui=new Set,Rc=new WeakMap;function G6(){Ui.forEach(a=>{a(...Rc.get(a))}),Ui.clear()}function Yr(a,...l){if(typeof a!="function")return a;Rc.set(a,l),!Ui.has(a)&&(Ui.add(a),Ui.size===1&&Promise.resolve().then(G6))}const $c=Symbol("LAYOUT_KEY"),Vc=Symbol("EMITTER_KEY");function Y6(a){let l=0,r;for(let n=0,t=a.length;n<t;n++)r=a[n].y+a[n].h,r>l&&(l=r);return l}function wt(a){const l=Array(a.length);for(let r=0,n=a.length;r<n;r++)l[r]=J6(a[r]);return l}function J6(a){return{...a}}function Fc(a,l){return!(a===l||a.x+a.w<=l.x||a.x>=l.x+l.w||a.y+a.h<=l.y||a.y>=l.y+l.h)}function wi(a,l,r){const n=jc(a),t=Hc(a),s=Array(a.length);for(let v=0,f=t.length;v<f;v++){let d=t[v];d.static||(d=X6(n,d,l,r),n.push(d)),s[a.findIndex(y=>y.i===d.i)]=d,d.moved=!1}return s}function X6(a,l,r,n){if(r)for(;l.y>0&&!qi(a,l);)l.y--;else if(n){const s=n[l.i].y;for(;l.y>s&&!qi(a,l);)l.y--}let t;for(;t=qi(a,l);)l.y=t.y+t.h;return l}function Z6(a,l){const r=jc(a);for(let n=0,t=a.length;n<t;n++){const s=a[n];if(s.x+s.w>l.cols&&(s.x=l.cols-s.w),s.x<0&&(s.x=0,s.w=l.cols),!s.static)r.push(s);else for(;qi(r,s);)s.y++}return a}function _s(a,l){for(let r=0,n=a.length;r<n;r++)if(a[r].i===l)return a[r]}function qi(a,l){for(let r=0,n=a.length;r<n;r++)if(Fc(a[r],l))return a[r]}function Pc(a,l){return a.filter(r=>Fc(r,l))}function jc(a){return a.filter(l=>l.static)}function _t(a,l,r,n,t=!1,s=!1){if(l.static)return a;const v=l.x,f=l.y,d=n&&l.y>n;typeof r=="number"&&(l.x=r),typeof n=="number"&&(l.y=n),l.moved=!0;let y=Hc(a);d&&(y=y.reverse());const g=Pc(y,l);if(s&&g.length)return l.x=v,l.y=f,l.moved=!1,a;for(let c=0,D=g.length;c<D;c++){const O=g[c];O.moved||l.y>O.y&&l.y-O.y>O.h/4||(O.static?a=Ss(a,O,l,t):a=Ss(a,l,O,t))}return a}function Ss(a,l,r,n){if(n){const t={x:r.x,y:r.y,w:r.w,h:r.h};if(t.y=Math.max(l.y-r.h,0),!qi(a,t))return _t(a,r,void 0,t.y,!1)}return _t(a,r,void 0,r.y+1,!1)}function Q6(a,l,r,n){const t="translate3d("+l+"px,"+a+"px, 0)";return{transform:t,WebkitTransform:t,MozTransform:t,msTransform:t,OTransform:t,width:r+"px",height:n+"px",position:"absolute"}}function e1(a,l,r,n){const t="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:t,WebkitTransform:t,MozTransform:t,msTransform:t,OTransform:t,width:r+"px",height:n+"px",position:"absolute"}}function a1(a,l,r,n){return{top:a+"px",left:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function l1(a,l,r,n){return{top:a+"px",right:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function Hc(a){return Array.from(a).sort(function(l,r){return l.y===r.y&&l.x===r.x?0:l.y>r.y||l.y===r.y&&l.x>r.x?1:-1})}function r1(a,l){l=l||"Layout";const r=["x","y","w","h"],n=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let t=0,s=a.length;t<s;t++){const v=a[t];for(let f=0;f<r.length;f++)if(typeof v[r[f]]!="number")throw new Error("VueGridLayout: "+l+"["+t+"]."+r[f]+" must be a number!");if(v.i===void 0||v.i===null)throw new Error("VueGridLayout: "+l+"["+t+"].i cannot be null!");if(typeof v.i!="number"&&typeof v.i!="string")throw new Error("VueGridLayout: "+l+"["+t+"].i must be a string or number!");if(n.indexOf(v.i)>=0)throw new Error("VueGridLayout: "+l+"["+t+"].i must be unique!");if(n.push(v.i),v.static!==void 0&&typeof v.static!="boolean")throw new Error("VueGridLayout: "+l+"["+t+"].static must be a boolean!")}}function n1(a,l="vgl"){const r=()=>`${l}-${a}`;return{b:r,be:n=>`${r()}__${n}`,bm:n=>`${r()}--${n}`,bem:(n,t)=>`${r()}__${n}--${t}`}}function Es(a){return i1(a)}function i1(a){var l;const r=((l=a.target)==null?void 0:l.offsetParent)||document.body,n=a.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),t=a.clientX+r.scrollLeft-n.left,s=a.clientY+r.scrollTop-n.top;return{x:t,y:s}}function Cs(a,l,r,n){return o1(a)?{deltaX:r-a,deltaY:n-l,lastX:a,lastY:l,x:r,y:n}:{deltaX:0,deltaY:0,lastX:r,lastY:n,x:r,y:n}}function o1(a){return typeof a=="number"&&!Number.isNaN(a)}function s1(a,l){const r=qc(a);let n=r[0];for(let t=1,s=r.length;t<s;t++){const v=r[t];l>a[v]&&(n=v)}return n}function Uc(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function c1(a,l,r,n,t,s,v){if(l[n])return wt(l[n]);let f=a;const d=qc(r),y=d.slice(d.indexOf(n));for(let g=0,c=y.length;g<c;g++){const D=y[g];if(l[D]){f=l[D];break}}return f=wt(f||[]),wi(Z6(f,{cols:s}),v)}function qc(a){return Object.keys(a).sort((l,r)=>a[l]-a[r])}let u1="auto";function d1(){return typeof document<"u"}function Ds(){return d1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):u1}var Pi={exports:{}},p1=Pi.exports,Bs;function f1(){return Bs||(Bs=1,function(a,l){(function(r,n){a.exports=n()})(p1,function(){function r(o,i){var p=Object.keys(o);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(o);i&&(m=m.filter(function(S){return Object.getOwnPropertyDescriptor(o,S).enumerable})),p.push.apply(p,m)}return p}function n(o){for(var i=1;i<arguments.length;i++){var p=arguments[i]!=null?arguments[i]:{};i%2?r(Object(p),!0).forEach(function(m){d(o,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(p)):r(Object(p)).forEach(function(m){Object.defineProperty(o,m,Object.getOwnPropertyDescriptor(p,m))})}return o}function t(o){return t=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},t(o)}function s(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function v(o,i){for(var p=0;p<i.length;p++){var m=i[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(o,K(m.key),m)}}function f(o,i,p){return i&&v(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}function d(o,i,p){return(i=K(i))in o?Object.defineProperty(o,i,{value:p,enumerable:!0,configurable:!0,writable:!0}):o[i]=p,o}function y(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&c(o,i)}function g(o){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},g(o)}function c(o,i){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,m){return p.__proto__=m,p},c(o,i)}function D(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function O(o){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 p,m=g(o);if(i){var S=g(this).constructor;p=Reflect.construct(m,arguments,S)}else p=m.apply(this,arguments);return function(I,G){if(G&&(typeof G=="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(I)}(this,p)}}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(o,i,p){var m=function(I,G){for(;!Object.prototype.hasOwnProperty.call(I,G)&&(I=g(I))!==null;);return I}(o,i);if(m){var S=Object.getOwnPropertyDescriptor(m,i);return S.get?S.get.call(arguments.length<3?o:p):S.value}},k.apply(this,arguments)}function K(o){var i=function(p,m){if(typeof p!="object"||p===null)return p;var S=p[Symbol.toPrimitive];if(S!==void 0){var I=S.call(p,m);if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(o,"string");return typeof i=="symbol"?i:i+""}var M=function(o){return!(!o||!o.Window)&&o instanceof o.Window},R=void 0,j=void 0;function E(o){R=o;var i=o.document.createTextNode("");i.ownerDocument!==o.document&&typeof o.wrap=="function"&&o.wrap(i)===i&&(o=o.wrap(o)),j=o}function w(o){return M(o)?o:(o.ownerDocument||o).defaultView||j.window}typeof window<"u"&&window&&E(window);var x=function(o){return!!o&&t(o)==="object"},b=function(o){return typeof o=="function"},_={window:function(o){return o===j||M(o)},docFrag:function(o){return x(o)&&o.nodeType===11},object:x,func:b,number:function(o){return typeof o=="number"},bool:function(o){return typeof o=="boolean"},string:function(o){return typeof o=="string"},element:function(o){if(!o||t(o)!=="object")return!1;var i=w(o)||j;return/object|function/.test(typeof Element>"u"?"undefined":t(Element))?o instanceof Element||o instanceof i.Element:o.nodeType===1&&typeof o.nodeName=="string"},plainObject:function(o){return x(o)&&!!o.constructor&&/function Object\b/.test(o.constructor.toString())},array:function(o){return x(o)&&o.length!==void 0&&b(o.splice)}};function $(o){var i=o.interaction;if(i.prepared.name==="drag"){var p=i.prepared.axis;p==="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):p==="y"&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function F(o){var i=o.iEvent,p=o.interaction;if(p.prepared.name==="drag"){var m=p.prepared.axis;if(m==="x"||m==="y"){var S=m==="x"?"y":"x";i.page[S]=p.coords.start.page[S],i.client[S]=p.coords.start.client[S],i.delta[S]=0}}}var J={id:"actions/drag",install:function(o){var i=o.actions,p=o.Interactable,m=o.defaults;p.prototype.draggable=J.draggable,i.map.drag=J,i.methodDict.drag="draggable",m.actions.drag=J.defaults},listeners:{"interactions:before-action-move":$,"interactions:action-resume":$,"interactions:action-move":F,"auto-start:check":function(o){var i=o.interaction,p=o.interactable,m=o.buttons,S=p.options.drag;if(S&&S.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(m&p.options.drag.mouseButtons)!=0))return o.action={name:"drag",axis:S.lockAxis==="start"?S.startAxis:S.lockAxis},!1}},draggable:function(o){return _.object(o)?(this.options.drag.enabled=o.enabled!==!1,this.setPerAction("drag",o),this.setOnEvents("drag",o),/^(xy|x|y|start)$/.test(o.lockAxis)&&(this.options.drag.lockAxis=o.lockAxis),/^(xy|x|y)$/.test(o.startAxis)&&(this.options.drag.startAxis=o.startAxis),this):_.bool(o)?(this.options.drag.enabled=o,this):this.options.drag},beforeMove:$,move:F,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(o){return o.search("drag")===0}},ce=J,be={init:function(o){var i=o;be.document=i.document,be.DocumentFragment=i.DocumentFragment||Me,be.SVGElement=i.SVGElement||Me,be.SVGSVGElement=i.SVGSVGElement||Me,be.SVGElementInstance=i.SVGElementInstance||Me,be.Element=i.Element||Me,be.HTMLElement=i.HTMLElement||be.Element,be.Event=i.Event,be.Touch=i.Touch||Me,be.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 Me(){}var V=be,fe={init:function(o){var i=V.Element,p=o.navigator||{};fe.supportsTouch="ontouchstart"in o||_.func(o.DocumentTouch)&&V.document instanceof o.DocumentTouch,fe.supportsPointerEvent=p.pointerEnabled!==!1&&!!V.PointerEvent,fe.isIOS=/iP(hone|od|ad)/.test(p.platform),fe.isIOS7=/iP(hone|od|ad)/.test(p.platform)&&/OS 7[^\d]/.test(p.appVersion),fe.isIe9=/MSIE 9/.test(p.userAgent),fe.isOperaMobile=p.appName==="Opera"&&fe.supportsTouch&&/Presto/.test(p.userAgent),fe.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",fe.pEventTypes=fe.supportsPointerEvent?V.PointerEvent===o.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,fe.wheelEvent=V.document&&"onmousewheel"in V.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},le=fe;function pe(o,i){if(o.contains)return o.contains(i);for(;i;){if(i===o)return!0;i=i.parentNode}return!1}function De(o,i){for(;_.element(o);){if(ge(o,i))return o;o=Ve(o)}return null}function Ve(o){var i=o.parentNode;if(_.docFrag(i)){for(;(i=i.host)&&_.docFrag(i););return i}return i}function ge(o,i){return j!==R&&(i=i.replace(/\/deep\//g," ")),o[le.prefixedMatchesSelector](i)}var N=function(o){return o.parentNode||o.host};function de(o,i){for(var p,m=[],S=o;(p=N(S))&&S!==i&&p!==S.ownerDocument;)m.unshift(S),S=p;return m}function U(o,i,p){for(;_.element(o);){if(ge(o,i))return!0;if((o=Ve(o))===p)return ge(o,i)}return!1}function Se(o){return o.correspondingUseElement||o}function Oe(o){var i=o instanceof V.SVGElement?o.getBoundingClientRect():o.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 Fe(o){var i,p=Oe(o);if(!le.isIOS7&&p){var m={x:(i=(i=w(o))||j).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};p.left+=m.x,p.right+=m.x,p.top+=m.y,p.bottom+=m.y}return p}function la(o){for(var i=[];o;)i.push(o),o=Ve(o);return i}function Da(o){return!!_.string(o)&&(V.document.querySelector(o),!0)}function re(o,i){for(var p in i)o[p]=i[p];return o}function ca(o,i,p){return o==="parent"?Ve(p):o==="self"?i.getRect(p):De(p,o)}function se(o,i,p,m){var S=o;return _.string(S)?S=ca(S,i,p):_.func(S)&&(S=S.apply(void 0,m)),_.element(S)&&(S=Fe(S)),S}function da(o){return o&&{x:"x"in o?o.x:o.left,y:"y"in o?o.y:o.top}}function Ee(o){return!o||"x"in o&&"y"in o||((o=re({},o)).x=o.left||0,o.y=o.top||0,o.width=o.width||(o.right||0)-o.x,o.height=o.height||(o.bottom||0)-o.y),o}function te(o,i,p){o.left&&(i.left+=p.x),o.right&&(i.right+=p.x),o.top&&(i.top+=p.y),o.bottom&&(i.bottom+=p.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function Ae(o,i,p){var m=p&&o.options[p];return da(se(m&&m.origin||o.options.origin,o,i,[o&&i]))||{x:0,y:0}}function Ue(o,i){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(xe){return!0},m=arguments.length>3?arguments[3]:void 0;if(m=m||{},_.string(o)&&o.search(" ")!==-1&&(o=sa(o)),_.array(o))return o.forEach(function(xe){return Ue(xe,i,p,m)}),m;if(_.object(o)&&(i=o,o=""),_.func(i)&&p(o))m[o]=m[o]||[],m[o].push(i);else if(_.array(i))for(var S=0,I=i;S<I.length;S++){var G=I[S];Ue(o,G,p,m)}else if(_.object(i))for(var ae in i)Ue(sa(ae).map(function(xe){return"".concat(o).concat(xe)}),i[ae],p,m);return m}function sa(o){return o.trim().split(/ +/)}var Ka=function(o,i){return Math.sqrt(o*o+i*i)},L=["webkit","moz"];function H(o,i){o.__set||(o.__set={});var p=function(S){if(L.some(function(I){return S.indexOf(I)===0}))return 1;typeof o[S]!="function"&&S!=="__set"&&Object.defineProperty(o,S,{get:function(){return S in o.__set?o.__set[S]:o.__set[S]=i[S]},set:function(I){o.__set[S]=I},configurable:!0})};for(var m in i)p(m);return o}function Q(o,i){o.page=o.page||{},o.page.x=i.page.x,o.page.y=i.page.y,o.client=o.client||{},o.client.x=i.client.x,o.client.y=i.client.y,o.timeStamp=i.timeStamp}function ye(o){o.page.x=0,o.page.y=0,o.client.x=0,o.client.y=0}function me(o){return o instanceof V.Event||o instanceof V.Touch}function va(o,i,p){return o=o||"page",(p=p||{}).x=i[o+"X"],p.y=i[o+"Y"],p}function Qe(o,i){return i=i||{x:0,y:0},le.isOperaMobile&&me(o)?(va("screen",o,i),i.x+=window.scrollX,i.y+=window.scrollY):va("page",o,i),i}function ue(o){return _.number(o.pointerId)?o.pointerId:o.identifier}function ma(o,i,p){var m=i.length>1?Ke(i):i[0];Qe(m,o.page),function(S,I){I=I||{},le.isOperaMobile&&me(S)?va("screen",S,I):va("client",S,I)}(m,o.client),o.timeStamp=p}function Te(o){var i=[];return _.array(o)?(i[0]=o[0],i[1]=o[1]):o.type==="touchend"?o.touches.length===1?(i[0]=o.touches[0],i[1]=o.changedTouches[0]):o.touches.length===0&&(i[0]=o.changedTouches[0],i[1]=o.changedTouches[1]):(i[0]=o.touches[0],i[1]=o.touches[1]),i}function Ke(o){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},p=0;p<o.length;p++){var m=o[p];for(var S in i)i[S]+=m[S]}for(var I in i)i[I]/=o.length;return i}function Na(o){if(!o.length)return null;var i=Te(o),p=Math.min(i[0].pageX,i[1].pageX),m=Math.min(i[0].pageY,i[1].pageY),S=Math.max(i[0].pageX,i[1].pageX),I=Math.max(i[0].pageY,i[1].pageY);return{x:p,y:m,left:p,top:m,right:S,bottom:I,width:S-p,height:I-m}}function Ca(o,i){var p=i+"X",m=i+"Y",S=Te(o),I=S[0][p]-S[1][p],G=S[0][m]-S[1][m];return Ka(I,G)}function Ze(o,i){var p=i+"X",m=i+"Y",S=Te(o),I=S[1][p]-S[0][p],G=S[1][m]-S[0][m];return 180*Math.atan2(G,I)/Math.PI}function La(o){return _.string(o.pointerType)?o.pointerType:_.number(o.pointerType)?[void 0,void 0,"touch","pen","mouse"][o.pointerType]:/touch/.test(o.type||"")||o instanceof V.Touch?"touch":"mouse"}function ie(o){var i=_.func(o.composedPath)?o.composedPath():o.path;return[Se(i?i[0]:o.target),Se(o.currentTarget)]}var X=function(){function o(i){s(this,o),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return f(o,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),o}();Object.defineProperty(X.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Z=function(o,i){for(var p=0;p<i.length;p++){var m=i[p];o.push(m)}return o},q=function(o){return Z([],o)},Be=function(o,i){for(var p=0;p<o.length;p++)if(i(o[p],p,o))return p;return-1},Xe=function(o,i){return o[Be(o,i)]},ia=function(o){y(p,o);var i=O(p);function p(m,S,I){var G;s(this,p),(G=i.call(this,S._interaction)).dropzone=void 0,G.dragEvent=void 0,G.relatedTarget=void 0,G.draggable=void 0,G.propagationStopped=!1,G.immediatePropagationStopped=!1;var ae=I==="dragleave"?m.prev:m.cur,xe=ae.element,je=ae.dropzone;return G.type=I,G.target=xe,G.currentTarget=xe,G.dropzone=je,G.dragEvent=S,G.relatedTarget=S.target,G.draggable=S.interactable,G.timeStamp=S.timeStamp,G}return f(p,[{key:"reject",value:function(){var m=this,S=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&S.cur.dropzone===this.dropzone&&S.cur.element===this.target)if(S.prev.dropzone=this.dropzone,S.prev.element=this.target,S.rejected=!0,S.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var I=S.activeDrops,G=Be(I,function(xe){var je=xe.dropzone,Ce=xe.element;return je===m.dropzone&&Ce===m.target});S.activeDrops.splice(G,1);var ae=new p(S,this.dragEvent,"dropdeactivate");ae.dropzone=this.dropzone,ae.target=this.target,this.dropzone.fire(ae)}else this.dropzone.fire(new p(S,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}(X);function xa(o,i){for(var p=0,m=o.slice();p<m.length;p++){var S=m[p],I=S.dropzone,G=S.element;i.dropzone=I,i.target=G,I.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function ka(o,i){for(var p=function(I,G){for(var ae=[],xe=0,je=I.interactables.list;xe<je.length;xe++){var Ce=je[xe];if(Ce.options.drop.enabled){var aa=Ce.options.drop.accept;if(!(_.element(aa)&&aa!==G||_.string(aa)&&!ge(G,aa)||_.func(aa)&&!aa({dropzone:Ce,draggableElement:G})))for(var Ba=0,Ga=Ce.getAllElements();Ba<Ga.length;Ba++){var Ua=Ga[Ba];Ua!==G&&ae.push({dropzone:Ce,element:Ua,rect:Ce.getRect(Ua)})}}}return ae}(o,i),m=0;m<p.length;m++){var S=p[m];S.rect=S.dropzone.getRect(S.element)}return p}function Aa(o,i,p){for(var m=o.dropState,S=o.interactable,I=o.element,G=[],ae=0,xe=m.activeDrops;ae<xe.length;ae++){var je=xe[ae],Ce=je.dropzone,aa=je.element,Ba=je.rect,Ga=Ce.dropCheck(i,p,S,I,aa,Ba);G.push(Ga?aa:null)}var Ua=function(Qa){for(var bl,vl,El,Hl=[],Cl=0;Cl<Qa.length;Cl++){var zl=Qa[Cl],Al=Qa[bl];if(zl&&Cl!==bl)if(Al){var Hr=N(zl),rr=N(Al);if(Hr!==zl.ownerDocument)if(rr!==zl.ownerDocument)if(Hr!==rr){Hl=Hl.length?Hl:de(Al);var Gr=void 0;if(Al instanceof V.HTMLElement&&zl instanceof V.SVGElement&&!(zl instanceof V.SVGSVGElement)){if(zl===rr)continue;Gr=zl.ownerSVGElement}else Gr=zl;for(var on=de(Gr,Al.ownerDocument),wn=0;on[wn]&&on[wn]===Hl[wn];)wn++;var fi=[on[wn-1],on[wn],Hl[wn]];if(fi[0])for(var Qn=fi[0].lastChild;Qn;){if(Qn===fi[1]){bl=Cl,Hl=on;break}if(Qn===fi[2])break;Qn=Qn.previousSibling}}else El=Al,(parseInt(w(vl=zl).getComputedStyle(vl).zIndex,10)||0)>=(parseInt(w(El).getComputedStyle(El).zIndex,10)||0)&&(bl=Cl);else bl=Cl}else bl=Cl}return bl}(G);return m.activeDrops[Ua]||null}function Sa(o,i,p){var m=o.dropState,S={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return p.type==="dragstart"&&(S.activate=new ia(m,p,"dropactivate"),S.activate.target=null,S.activate.dropzone=null),p.type==="dragend"&&(S.deactivate=new ia(m,p,"dropdeactivate"),S.deactivate.target=null,S.deactivate.dropzone=null),m.rejected||(m.cur.element!==m.prev.element&&(m.prev.dropzone&&(S.leave=new ia(m,p,"dragleave"),p.dragLeave=S.leave.target=m.prev.element,p.prevDropzone=S.leave.dropzone=m.prev.dropzone),m.cur.dropzone&&(S.enter=new ia(m,p,"dragenter"),p.dragEnter=m.cur.element,p.dropzone=m.cur.dropzone)),p.type==="dragend"&&m.cur.dropzone&&(S.drop=new ia(m,p,"drop"),p.dropzone=m.cur.dropzone,p.relatedTarget=m.cur.element),p.type==="dragmove"&&m.cur.dropzone&&(S.move=new ia(m,p,"dropmove"),p.dropzone=m.cur.dropzone)),S}function Ie(o,i){var p=o.dropState,m=p.activeDrops,S=p.cur,I=p.prev;i.leave&&I.dropzone.fire(i.leave),i.enter&&S.dropzone.fire(i.enter),i.move&&S.dropzone.fire(i.move),i.drop&&S.dropzone.fire(i.drop),i.deactivate&&xa(m,i.deactivate),p.prev.dropzone=S.dropzone,p.prev.element=S.element}function Ya(o,i){var p=o.interaction,m=o.iEvent,S=o.event;if(m.type==="dragmove"||m.type==="dragend"){var I=p.dropState;i.dynamicDrop&&(I.activeDrops=ka(i,p.element));var G=m,ae=Aa(p,G,S);I.rejected=I.rejected&&!!ae&&ae.dropzone===I.cur.dropzone&&ae.element===I.cur.element,I.cur.dropzone=ae&&ae.dropzone,I.cur.element=ae&&ae.element,I.events=Sa(p,0,G)}}var Fa={id:"actions/drop",install:function(o){var i=o.actions,p=o.interactStatic,m=o.Interactable,S=o.defaults;o.usePlugin(ce),m.prototype.dropzone=function(I){return function(G,ae){if(_.object(ae)){if(G.options.drop.enabled=ae.enabled!==!1,ae.listeners){var xe=Ue(ae.listeners),je=Object.keys(xe).reduce(function(aa,Ba){return aa[/^(enter|leave)/.test(Ba)?"drag".concat(Ba):/^(activate|deactivate|move)/.test(Ba)?"drop".concat(Ba):Ba]=xe[Ba],aa},{}),Ce=G.options.drop.listeners;Ce&&G.off(Ce),G.on(je),G.options.drop.listeners=je}return _.func(ae.ondrop)&&G.on("drop",ae.ondrop),_.func(ae.ondropactivate)&&G.on("dropactivate",ae.ondropactivate),_.func(ae.ondropdeactivate)&&G.on("dropdeactivate",ae.ondropdeactivate),_.func(ae.ondragenter)&&G.on("dragenter",ae.ondragenter),_.func(ae.ondragleave)&&G.on("dragleave",ae.ondragleave),_.func(ae.ondropmove)&&G.on("dropmove",ae.ondropmove),/^(pointer|center)$/.test(ae.overlap)?G.options.drop.overlap=ae.overlap:_.number(ae.overlap)&&(G.options.drop.overlap=Math.max(Math.min(1,ae.overlap),0)),"accept"in ae&&(G.options.drop.accept=ae.accept),"checker"in ae&&(G.options.drop.checker=ae.checker),G}return _.bool(ae)?(G.options.drop.enabled=ae,G):G.options.drop}(this,I)},m.prototype.dropCheck=function(I,G,ae,xe,je,Ce){return function(aa,Ba,Ga,Ua,Qa,bl,vl){var El=!1;if(!(vl=vl||aa.getRect(bl)))return!!aa.options.drop.checker&&aa.options.drop.checker(Ba,Ga,El,aa,bl,Ua,Qa);var Hl=aa.options.drop.overlap;if(Hl==="pointer"){var Cl=Ae(Ua,Qa,"drag"),zl=Qe(Ba);zl.x+=Cl.x,zl.y+=Cl.y;var Al=zl.x>vl.left&&zl.x<vl.right,Hr=zl.y>vl.top&&zl.y<vl.bottom;El=Al&&Hr}var rr=Ua.getRect(Qa);if(rr&&Hl==="center"){var Gr=rr.left+rr.width/2,on=rr.top+rr.height/2;El=Gr>=vl.left&&Gr<=vl.right&&on>=vl.top&&on<=vl.bottom}return rr&&_.number(Hl)&&(El=Math.max(0,Math.min(vl.right,rr.right)-Math.max(vl.left,rr.left))*Math.max(0,Math.min(vl.bottom,rr.bottom)-Math.max(vl.top,rr.top))/(rr.width*rr.height)>=Hl),aa.options.drop.checker&&(El=aa.options.drop.checker(Ba,Ga,El,aa,bl,Ua,Qa)),El}(this,I,G,ae,xe,je,Ce)},p.dynamicDrop=function(I){return _.bool(I)?(o.dynamicDrop=I,p):o.dynamicDrop},re(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",o.dynamicDrop=!1,S.actions.drop=Fa.defaults},listeners:{"interactions:before-action-start":function(o){var i=o.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(o,i){var p=o.interaction,m=(o.event,o.iEvent);if(p.prepared.name==="drag"){var S=p.dropState;S.activeDrops=[],S.events={},S.activeDrops=ka(i,p.element),S.events=Sa(p,0,m),S.events.activate&&(xa(S.activeDrops,S.events.activate),i.fire("actions/drop:start",{interaction:p,dragEvent:m}))}},"interactions:action-move":Ya,"interactions:after-action-move":function(o,i){var p=o.interaction,m=o.iEvent;if(p.prepared.name==="drag"){var S=p.dropState;Ie(p,S.events),i.fire("actions/drop:move",{interaction:p,dragEvent:m}),S.events={}}},"interactions:action-end":function(o,i){if(o.interaction.prepared.name==="drag"){var p=o.interaction,m=o.iEvent;Ya(o,i),Ie(p,p.dropState.events),i.fire("actions/drop:end",{interaction:p,dragEvent:m})}},"interactions:stop":function(o){var i=o.interaction;if(i.prepared.name==="drag"){var p=i.dropState;p&&(p.activeDrops=null,p.events=null,p.cur.dropzone=null,p.cur.element=null,p.prev.dropzone=null,p.prev.element=null,p.rejected=!1)}}},getActiveDrops:ka,getDrop:Aa,getDropEvents:Sa,fireDropEvents:Ie,filterEventType:function(o){return o.search("drag")===0||o.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},xl=Fa;function Jl(o){var i=o.interaction,p=o.iEvent,m=o.phase;if(i.prepared.name==="gesture"){var S=i.pointers.map(function(je){return je.pointer}),I=m==="start",G=m==="end",ae=i.interactable.options.deltaSource;if(p.touches=[S[0],S[1]],I)p.distance=Ca(S,ae),p.box=Na(S),p.scale=1,p.ds=0,p.angle=Ze(S,ae),p.da=0,i.gesture.startDistance=p.distance,i.gesture.startAngle=p.angle;else if(G||i.pointers.length<2){var xe=i.prevEvent;p.distance=xe.distance,p.box=xe.box,p.scale=xe.scale,p.ds=0,p.angle=xe.angle,p.da=0}else p.distance=Ca(S,ae),p.box=Na(S),p.scale=p.distance/i.gesture.startDistance,p.angle=Ze(S,ae),p.ds=p.scale-i.gesture.scale,p.da=p.angle-i.gesture.angle;i.gesture.distance=p.distance,i.gesture.angle=p.angle,_.number(p.scale)&&p.scale!==1/0&&!isNaN(p.scale)&&(i.gesture.scale=p.scale)}}var kl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(o){var i=o.actions,p=o.Interactable,m=o.defaults;p.prototype.gesturable=function(S){return _.object(S)?(this.options.gesture.enabled=S.enabled!==!1,this.setPerAction("gesture",S),this.setOnEvents("gesture",S),this):_.bool(S)?(this.options.gesture.enabled=S,this):this.options.gesture},i.map.gesture=kl,i.methodDict.gesture="gesturable",m.actions.gesture=kl.defaults},listeners:{"interactions:action-start":Jl,"interactions:action-move":Jl,"interactions:action-end":Jl,"interactions:new":function(o){o.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(o){if(!(o.interaction.pointers.length<2)){var i=o.interactable.options.gesture;if(i&&i.enabled)return o.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(o){return o.search("gesture")===0}},Pl=kl;function Va(o,i,p,m,S,I,G){if(!i)return!1;if(i===!0){var ae=_.number(I.width)?I.width:I.right-I.left,xe=_.number(I.height)?I.height:I.bottom-I.top;if(G=Math.min(G,Math.abs((o==="left"||o==="right"?ae:xe)/2)),ae<0&&(o==="left"?o="right":o==="right"&&(o="left")),xe<0&&(o==="top"?o="bottom":o==="bottom"&&(o="top")),o==="left"){var je=ae>=0?I.left:I.right;return p.x<je+G}if(o==="top"){var Ce=xe>=0?I.top:I.bottom;return p.y<Ce+G}if(o==="right")return p.x>(ae>=0?I.right:I.left)-G;if(o==="bottom")return p.y>(xe>=0?I.bottom:I.top)-G}return!!_.element(m)&&(_.element(i)?i===m:U(m,i,S))}function Ml(o){var i=o.iEvent,p=o.interaction;if(p.prepared.name==="resize"&&p.resizeAxes){var m=i;p.interactable.options.resize.square?(p.resizeAxes==="y"?m.delta.x=m.delta.y:m.delta.y=m.delta.x,m.axes="xy"):(m.axes=p.resizeAxes,p.resizeAxes==="x"?m.delta.y=0:p.resizeAxes==="y"&&(m.delta.x=0))}}var $l,Ma,el={id:"actions/resize",before:["actions/drag"],install:function(o){var i=o.actions,p=o.browser,m=o.Interactable,S=o.defaults;el.cursors=function(I){return I.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"}}(p),el.defaultMargin=p.supportsTouch||p.supportsPointerEvent?20:10,m.prototype.resizable=function(I){return function(G,ae,xe){return _.object(ae)?(G.options.resize.enabled=ae.enabled!==!1,G.setPerAction("resize",ae),G.setOnEvents("resize",ae),_.string(ae.axis)&&/^x$|^y$|^xy$/.test(ae.axis)?G.options.resize.axis=ae.axis:ae.axis===null&&(G.options.resize.axis=xe.defaults.actions.resize.axis),_.bool(ae.preserveAspectRatio)?G.options.resize.preserveAspectRatio=ae.preserveAspectRatio:_.bool(ae.square)&&(G.options.resize.square=ae.square),G):_.bool(ae)?(G.options.resize.enabled=ae,G):G.options.resize}(this,I,o)},i.map.resize=el,i.methodDict.resize="resizable",S.actions.resize=el.defaults},listeners:{"interactions:new":function(o){o.interaction.resizeAxes="xy"},"interactions:action-start":function(o){(function(i){var p=i.iEvent,m=i.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var S=p,I=m.rect;m._rects={start:re({},I),corrected:re({},I),previous:re({},I),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},S.edges=m.prepared.edges,S.rect=m._rects.corrected,S.deltaRect=m._rects.delta}})(o),Ml(o)},"interactions:action-move":function(o){(function(i){var p=i.iEvent,m=i.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var S=p,I=m.interactable.options.resize.invert,G=I==="reposition"||I==="negate",ae=m.rect,xe=m._rects,je=xe.start,Ce=xe.corrected,aa=xe.delta,Ba=xe.previous;if(re(Ba,Ce),G){if(re(Ce,ae),I==="reposition"){if(Ce.top>Ce.bottom){var Ga=Ce.top;Ce.top=Ce.bottom,Ce.bottom=Ga}if(Ce.left>Ce.right){var Ua=Ce.left;Ce.left=Ce.right,Ce.right=Ua}}}else Ce.top=Math.min(ae.top,je.bottom),Ce.bottom=Math.max(ae.bottom,je.top),Ce.left=Math.min(ae.left,je.right),Ce.right=Math.max(ae.right,je.left);for(var Qa in Ce.width=Ce.right-Ce.left,Ce.height=Ce.bottom-Ce.top,Ce)aa[Qa]=Ce[Qa]-Ba[Qa];S.edges=m.prepared.edges,S.rect=Ce,S.deltaRect=aa}})(o),Ml(o)},"interactions:action-end":function(o){var i=o.iEvent,p=o.interaction;if(p.prepared.name==="resize"&&p.prepared.edges){var m=i;m.edges=p.prepared.edges,m.rect=p._rects.corrected,m.deltaRect=p._rects.delta}},"auto-start:check":function(o){var i=o.interaction,p=o.interactable,m=o.element,S=o.rect,I=o.buttons;if(S){var G=re({},i.coords.cur.page),ae=p.options.resize;if(ae&&ae.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(I&ae.mouseButtons)!=0)){if(_.object(ae.edges)){var xe={left:!1,right:!1,top:!1,bottom:!1};for(var je in xe)xe[je]=Va(je,ae.edges[je],G,i._latestPointer.eventTarget,m,S,ae.margin||el.defaultMargin);xe.left=xe.left&&!xe.right,xe.top=xe.top&&!xe.bottom,(xe.left||xe.right||xe.top||xe.bottom)&&(o.action={name:"resize",edges:xe})}else{var Ce=ae.axis!=="y"&&G.x>S.right-el.defaultMargin,aa=ae.axis!=="x"&&G.y>S.bottom-el.defaultMargin;(Ce||aa)&&(o.action={name:"resize",axes:(Ce?"x":"")+(aa?"y":"")})}return!o.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(o){var i=o.edges,p=o.axis,m=o.name,S=el.cursors,I=null;if(p)I=S[m+p];else if(i){for(var G="",ae=0,xe=["top","bottom","left","right"];ae<xe.length;ae++){var je=xe[ae];i[je]&&(G+=je)}I=S[G]}return I},filterEventType:function(o){return o.search("resize")===0},defaultMargin:null},tl=el,ol={id:"actions",install:function(o){o.usePlugin(Pl),o.usePlugin(tl),o.usePlugin(ce),o.usePlugin(xl)}},Ra=0,ul={request:function(o){return $l(o)},cancel:function(o){return Ma(o)},init:function(o){if($l=o.requestAnimationFrame,Ma=o.cancelAnimationFrame,!$l)for(var i=["ms","moz","webkit","o"],p=0;p<i.length;p++){var m=i[p];$l=o["".concat(m,"RequestAnimationFrame")],Ma=o["".concat(m,"CancelAnimationFrame")]||o["".concat(m,"CancelRequestAnimationFrame")]}$l=$l&&$l.bind(o),Ma=Ma&&Ma.bind(o),$l||($l=function(S){var I=Date.now(),G=Math.max(0,16-(I-Ra)),ae=o.setTimeout(function(){S(I+G)},G);return Ra=I+G,ae},Ma=function(S){return clearTimeout(S)})}},rl={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(o){rl.isScrolling=!0,ul.cancel(rl.i),o.autoScroll=rl,rl.interaction=o,rl.prevTime=rl.now(),rl.i=ul.request(rl.scroll)},stop:function(){rl.isScrolling=!1,rl.interaction&&(rl.interaction.autoScroll=null),ul.cancel(rl.i)},scroll:function(){var o=rl.interaction,i=o.interactable,p=o.element,m=o.prepared.name,S=i.options[m].autoScroll,I=ee(S.container,i,p),G=rl.now(),ae=(G-rl.prevTime)/1e3,xe=S.speed*ae;if(xe>=1){var je={x:rl.x*xe,y:rl.y*xe};if(je.x||je.y){var Ce=ea(I);_.window(I)?I.scrollBy(je.x,je.y):I&&(I.scrollLeft+=je.x,I.scrollTop+=je.y);var aa=ea(I),Ba={x:aa.x-Ce.x,y:aa.y-Ce.y};(Ba.x||Ba.y)&&i.fire({type:"autoscroll",target:p,interactable:i,delta:Ba,interaction:o,container:I})}rl.prevTime=G}rl.isScrolling&&(ul.cancel(rl.i),rl.i=ul.request(rl.scroll))},check:function(o,i){var p;return(p=o.options[i].autoScroll)==null?void 0:p.enabled},onInteractionMove:function(o){var i=o.interaction,p=o.pointer;if(i.interacting()&&rl.check(i.interactable,i.prepared.name))if(i.simulation)rl.x=rl.y=0;else{var m,S,I,G,ae=i.interactable,xe=i.element,je=i.prepared.name,Ce=ae.options[je].autoScroll,aa=ee(Ce.container,ae,xe);if(_.window(aa))G=p.clientX<rl.margin,m=p.clientY<rl.margin,S=p.clientX>aa.innerWidth-rl.margin,I=p.clientY>aa.innerHeight-rl.margin;else{var Ba=Oe(aa);G=p.clientX<Ba.left+rl.margin,m=p.clientY<Ba.top+rl.margin,S=p.clientX>Ba.right-rl.margin,I=p.clientY>Ba.bottom-rl.margin}rl.x=S?1:G?-1:0,rl.y=I?1:m?-1:0,rl.isScrolling||(rl.margin=Ce.margin,rl.speed=Ce.speed,rl.start(i))}}};function ee(o,i,p){return(_.string(o)?ca(o,i,p):o)||w(p)}function ea(o){return _.window(o)&&(o=window.document.body),{x:o.scrollLeft,y:o.scrollTop}}var Je={id:"auto-scroll",install:function(o){var i=o.defaults,p=o.actions;o.autoScroll=rl,rl.now=function(){return o.now()},p.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=rl.defaults},listeners:{"interactions:new":function(o){o.interaction.autoScroll=null},"interactions:destroy":function(o){o.interaction.autoScroll=null,rl.stop(),rl.interaction&&(rl.interaction=null)},"interactions:stop":rl.stop,"interactions:action-move":function(o){return rl.onInteractionMove(o)}}},he=Je;function ya(o,i){var p=!1;return function(){return p||(j.console.warn(i),p=!0),o.apply(this,arguments)}}function pa(o,i){return o.name=i.name,o.axis=i.axis,o.edges=i.edges,o}function qe(o){return _.bool(o)?(this.options.styleCursor=o,this):o===null?(delete this.options.styleCursor,this):this.options.styleCursor}function na(o){return _.func(o)?(this.options.actionChecker=o,this):o===null?(delete this.options.actionChecker,this):this.options.actionChecker}var fa={id:"auto-start/interactableMethods",install:function(o){var i=o.Interactable;i.prototype.getAction=function(p,m,S,I){var G=function(ae,xe,je,Ce,aa){var Ba=ae.getRect(Ce),Ga=xe.buttons||{0:1,1:4,3:8,4:16}[xe.button],Ua={action:null,interactable:ae,interaction:je,element:Ce,rect:Ba,buttons:Ga};return aa.fire("auto-start:check",Ua),Ua.action}(this,m,S,I,o);return this.options.actionChecker?this.options.actionChecker(p,m,G,this,I,S):G},i.prototype.ignoreFrom=ya(function(p){return this._backCompatOption("ignoreFrom",p)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=ya(function(p){return this._backCompatOption("allowFrom",p)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=na,i.prototype.styleCursor=qe}};function dl(o,i,p,m,S){return i.testIgnoreAllow(i.options[o.name],p,m)&&i.options[o.name].enabled&&Za(i,p,o,S)?o:null}function He(o,i,p,m,S,I,G){for(var ae=0,xe=m.length;ae<xe;ae++){var je=m[ae],Ce=S[ae],aa=je.getAction(i,p,o,Ce);if(aa){var Ba=dl(aa,je,Ce,I,G);if(Ba)return{action:Ba,interactable:je,element:Ce}}}return{action:null,interactable:null,element:null}}function ta(o,i,p,m,S){var I=[],G=[],ae=m;function xe(Ce){I.push(Ce),G.push(ae)}for(;_.element(ae);){I=[],G=[],S.interactables.forEachMatch(ae,xe);var je=He(o,i,p,I,G,m,S);if(je.action&&!je.interactable.options[je.action.name].manualStart)return je;ae=Ve(ae)}return{action:null,interactable:null,element:null}}function ra(o,i,p){var m=i.action,S=i.interactable,I=i.element;m=m||{name:null},o.interactable=S,o.element=I,pa(o.prepared,m),o.rect=S&&m.name?S.getRect(I):null,_l(o,p),p.fire("autoStart:prepared",{interaction:o})}function Za(o,i,p,m){var S=o.options,I=S[p.name].max,G=S[p.name].maxPerElement,ae=m.autoStart.maxInteractions,xe=0,je=0,Ce=0;if(!(I&&G&&ae))return!1;for(var aa=0,Ba=m.interactions.list;aa<Ba.length;aa++){var Ga=Ba[aa],Ua=Ga.prepared.name;if(Ga.interacting()&&(++xe>=ae||Ga.interactable===o&&((je+=Ua===p.name?1:0)>=I||Ga.element===i&&(Ce++,Ua===p.name&&Ce>=G))))return!1}return ae>0}function Le(o,i){return _.number(o)?(i.autoStart.maxInteractions=o,this):i.autoStart.maxInteractions}function Ne(o,i,p){var m=p.autoStart.cursorElement;m&&m!==o&&(m.style.cursor=""),o.ownerDocument.documentElement.style.cursor=i,o.style.cursor=i,p.autoStart.cursorElement=i?o:null}function _l(o,i){var p=o.interactable,m=o.element,S=o.prepared;if(o.pointerType==="mouse"&&p&&p.options.styleCursor){var I="";if(S.name){var G=p.options[S.name].cursorChecker;I=_.func(G)?G(S,p,m,o._interacting):i.actions.map[S.name].getCursor(S)}Ne(o.element,I||"",i)}else i.autoStart.cursorElement&&Ne(i.autoStart.cursorElement,"",i)}var Ol={id:"auto-start/base",before:["actions"],install:function(o){var i=o.interactStatic,p=o.defaults;o.usePlugin(fa),p.base.actionChecker=null,p.base.styleCursor=!0,re(p.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(m){return Le(m,o)},o.autoStart={maxInteractions:1/0,withinInteractionLimit:Za,cursorElement:null}},listeners:{"interactions:down":function(o,i){var p=o.interaction,m=o.pointer,S=o.event,I=o.eventTarget;p.interacting()||ra(p,ta(p,m,S,I,i),i)},"interactions:move":function(o,i){(function(p,m){var S=p.interaction,I=p.pointer,G=p.event,ae=p.eventTarget;S.pointerType!=="mouse"||S.pointerIsDown||S.interacting()||ra(S,ta(S,I,G,ae,m),m)})(o,i),function(p,m){var S=p.interaction;if(S.pointerIsDown&&!S.interacting()&&S.pointerWasMoved&&S.prepared.name){m.fire("autoStart:before-start",p);var I=S.interactable,G=S.prepared.name;G&&I&&(I.options[G].manualStart||!Za(I,S.element,S.prepared,m)?S.stop():(S.start(S.prepared,I,S.element),_l(S,m)))}}(o,i)},"interactions:stop":function(o,i){var p=o.interaction,m=p.interactable;m&&m.options.styleCursor&&Ne(p.element,"",i)}},maxInteractions:Le,withinInteractionLimit:Za,validateAction:dl},ql=Ol,Wl={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(o,i){var p=o.interaction,m=o.eventTarget,S=o.dx,I=o.dy;if(p.prepared.name==="drag"){var G=Math.abs(S),ae=Math.abs(I),xe=p.interactable.options.drag,je=xe.startAxis,Ce=G>ae?"x":G<ae?"y":"xy";if(p.prepared.axis=xe.lockAxis==="start"?Ce[0]:xe.lockAxis,Ce!=="xy"&&je!=="xy"&&je!==Ce){p.prepared.name=null;for(var aa=m,Ba=function(Ua){if(Ua!==p.interactable){var Qa=p.interactable.options.drag;if(!Qa.manualStart&&Ua.testIgnoreAllow(Qa,aa,m)){var bl=Ua.getAction(p.downPointer,p.downEvent,p,aa);if(bl&&bl.name==="drag"&&function(vl,El){if(!El)return!1;var Hl=El.options.drag.startAxis;return vl==="xy"||Hl==="xy"||Hl===vl}(Ce,Ua)&&ql.validateAction(bl,Ua,aa,m,i))return Ua}}};_.element(aa);){var Ga=i.interactables.forEachMatch(aa,Ba);if(Ga){p.prepared.name="drag",p.interactable=Ga,p.element=aa;break}aa=Ve(aa)}}}}}};function Ql(o){var i=o.prepared&&o.prepared.name;if(!i)return null;var p=o.interactable.options;return p[i].hold||p[i].delay}var pr={id:"auto-start/hold",install:function(o){var i=o.defaults;o.usePlugin(ql),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(o){o.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(o){var i=o.interaction,p=Ql(i);p>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},p))},"interactions:move":function(o){var i=o.interaction,p=o.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!p&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(o){var i=o.interaction;Ql(i)>0&&(i.prepared.name=null)}},getHoldDuration:Ql},Ll=pr,fr={id:"auto-start",install:function(o){o.usePlugin(ql),o.usePlugin(Ll),o.usePlugin(Wl)}},Vr=function(o){return/^(always|never|auto)$/.test(o)?(this.options.preventDefault=o,this):_.bool(o)?(this.options.preventDefault=o?"always":"never",this):this.options.preventDefault};function jl(o){var i=o.interaction,p=o.event;i.interactable&&i.interactable.checkAndPreventDefault(p)}var ar={id:"core/interactablePreventDefault",install:function(o){var i=o.Interactable;i.prototype.preventDefault=Vr,i.prototype.checkAndPreventDefault=function(p){return function(m,S,I){var G=m.options.preventDefault;if(G!=="never")if(G!=="always"){if(S.events.supportsPassive&&/^touch(start|move)$/.test(I.type)){var ae=w(I.target).document,xe=S.getDocOptions(ae);if(!xe||!xe.events||xe.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(I.type)||_.element(I.target)&&ge(I.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||I.preventDefault()}else I.preventDefault()}(this,o,p)},o.interactions.docEvents.push({type:"dragstart",listener:function(p){for(var m=0,S=o.interactions.list;m<S.length;m++){var I=S[m];if(I.element&&(I.element===p.target||pe(I.element,p.target)))return void I.interactable.checkAndPreventDefault(p)}}})},listeners:["down","move","up","cancel"].reduce(function(o,i){return o["interactions:".concat(i)]=jl,o},{})};function Fr(o,i){if(i.phaselessTypes[o])return!0;for(var p in i.map)if(o.indexOf(p)===0&&o.substr(p.length)in i.phases)return!0;return!1}function Tr(o){var i={};for(var p in o){var m=o[p];_.plainObject(m)?i[p]=Tr(m):_.array(m)?i[p]=q(m):i[p]=m}return i}var Pr=function(){function o(i){s(this,o),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 f(o,[{key:"start",value:function(i,p){var m,S,I=i.phase,G=this.interaction,ae=function(je){var Ce=je.interactable.options[je.prepared.name],aa=Ce.modifiers;return aa&&aa.length?aa:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ba){var Ga=Ce[Ba];return Ga&&Ga.enabled&&{options:Ga,methods:Ga._methods}}).filter(function(Ba){return!!Ba})}(G);this.prepareStates(ae),this.startEdges=re({},G.edges),this.edges=re({},this.startEdges),this.startOffset=(m=G.rect,S=p,m?{left:S.x-m.left,top:S.y-m.top,right:m.right-S.x,bottom:m.bottom-S.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var xe=this.fillArg({phase:I,pageCoords:p,preEnd:!1});return this.result=Mr(),this.startAll(xe),this.result=this.setAll(xe)}},{key:"fillArg",value:function(i){var p=this.interaction;return i.interaction=p,i.interactable=p.interactable,i.element=p.element,i.rect||(i.rect=p.rect),i.edges||(i.edges=this.startEdges),i.startOffset=this.startOffset,i}},{key:"startAll",value:function(i){for(var p=0,m=this.states;p<m.length;p++){var S=m[p];S.methods.start&&(i.state=S,S.methods.start(i))}}},{key:"setAll",value:function(i){var p=i.phase,m=i.preEnd,S=i.skipModifiers,I=i.rect,G=i.edges;i.coords=re({},i.pageCoords),i.rect=re({},I),i.edges=re({},G);for(var ae=S?this.states.slice(S):this.states,xe=Mr(i.coords,i.rect),je=0;je<ae.length;je++){var Ce,aa=ae[je],Ba=aa.options,Ga=re({},i.coords),Ua=null;(Ce=aa.methods)!=null&&Ce.set&&this.shouldDo(Ba,m,p)&&(i.state=aa,Ua=aa.methods.set(i),te(i.edges,i.rect,{x:i.coords.x-Ga.x,y:i.coords.y-Ga.y})),xe.eventProps.push(Ua)}re(this.edges,i.edges),xe.delta.x=i.coords.x-i.pageCoords.x,xe.delta.y=i.coords.y-i.pageCoords.y,xe.rectDelta.left=i.rect.left-I.left,xe.rectDelta.right=i.rect.right-I.right,xe.rectDelta.top=i.rect.top-I.top,xe.rectDelta.bottom=i.rect.bottom-I.bottom;var Qa=this.result.coords,bl=this.result.rect;if(Qa&&bl){var vl=xe.rect.left!==bl.left||xe.rect.right!==bl.right||xe.rect.top!==bl.top||xe.rect.bottom!==bl.bottom;xe.changed=vl||Qa.x!==xe.coords.x||Qa.y!==xe.coords.y}return xe}},{key:"applyToInteraction",value:function(i){var p=this.interaction,m=i.phase,S=p.coords.cur,I=p.coords.start,G=this.result,ae=this.startDelta,xe=G.delta;m==="start"&&re(this.startDelta,G.delta);for(var je=0,Ce=[[I,ae],[S,xe]];je<Ce.length;je++){var aa=Ce[je],Ba=aa[0],Ga=aa[1];Ba.page.x+=Ga.x,Ba.page.y+=Ga.y,Ba.client.x+=Ga.x,Ba.client.y+=Ga.y}var Ua=this.result.rectDelta,Qa=i.rect||p.rect;Qa.left+=Ua.left,Qa.right+=Ua.right,Qa.top+=Ua.top,Qa.bottom+=Ua.bottom,Qa.width=Qa.right-Qa.left,Qa.height=Qa.bottom-Qa.top}},{key:"setAndApply",value:function(i){var p=this.interaction,m=i.phase,S=i.preEnd,I=i.skipModifiers,G=this.setAll(this.fillArg({preEnd:S,phase:m,pageCoords:i.modifiedCoords||p.coords.cur.page}));if(this.result=G,!G.changed&&(!I||I<this.states.length)&&p.interacting())return!1;if(i.modifiedCoords){var ae=p.coords.cur.page,xe={x:i.modifiedCoords.x-ae.x,y:i.modifiedCoords.y-ae.y};G.coords.x+=xe.x,G.coords.y+=xe.y,G.delta.x+=xe.x,G.delta.y+=xe.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var p=i.interaction,m=i.event,S=this.states;if(S&&S.length){for(var I=!1,G=0;G<S.length;G++){var ae=S[G];i.state=ae;var xe=ae.options,je=ae.methods,Ce=je.beforeEnd&&je.beforeEnd(i);if(Ce)return this.endResult=Ce,!1;I=I||!I&&this.shouldDo(xe,!0,i.phase,!0)}I&&p.move({event:m,preEnd:!0})}}},{key:"stop",value:function(i){var p=i.interaction;if(this.states&&this.states.length){var m=re({states:this.states,interactable:p.interactable,element:p.element,rect:null},i);this.fillArg(m);for(var S=0,I=this.states;S<I.length;S++){var G=I[S];m.state=G,G.methods.stop&&G.methods.stop(m)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var p=0;p<i.length;p++){var m=i[p],S=m.options,I=m.methods,G=m.name;this.states.push({options:S,methods:I,index:p,name:G})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var p=i.interaction,m=p.coords,S=p.rect,I=p.modification;if(I.result){for(var G=I.startDelta,ae=I.result,xe=ae.delta,je=ae.rectDelta,Ce=0,aa=[[m.start,G],[m.cur,xe]];Ce<aa.length;Ce++){var Ba=aa[Ce],Ga=Ba[0],Ua=Ba[1];Ga.page.x-=Ua.x,Ga.page.y-=Ua.y,Ga.client.x-=Ua.x,Ga.client.y-=Ua.y}S.left-=je.left,S.right-=je.right,S.top-=je.top,S.bottom-=je.bottom}}},{key:"shouldDo",value:function(i,p,m,S){return!(!i||i.enabled===!1||S&&!i.endOnly||i.endOnly&&!p||m==="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(p){return Tr(p)}),this.result=Mr(re({},i.result.coords),re({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),o}();function Mr(o,i){return{rect:i,coords:o,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Sr(o,i){var p=o.defaults,m={start:o.start,set:o.set,beforeEnd:o.beforeEnd,stop:o.stop},S=function(I){var G=I||{};for(var ae in G.enabled=G.enabled!==!1,p)ae in G||(G[ae]=p[ae]);var xe={options:G,methods:m,name:i,enable:function(){return G.enabled=!0,xe},disable:function(){return G.enabled=!1,xe}};return xe};return i&&typeof i=="string"&&(S._defaults=p,S._methods=m),S}function Er(o){var i=o.iEvent,p=o.interaction.modification.result;p&&(i.modifiers=p.eventProps)}var yn={id:"modifiers/base",before:["actions"],install:function(o){o.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(o){var i=o.interaction;i.modification=new Pr(i)},"interactions:before-action-start":function(o){var i=o.interaction,p=o.interaction.modification;p.start(o,i.coords.start.page),i.edges=p.edges,p.applyToInteraction(o)},"interactions:before-action-move":function(o){var i=o.interaction,p=i.modification,m=p.setAndApply(o);return i.edges=p.edges,m},"interactions:before-action-end":function(o){var i=o.interaction,p=i.modification,m=p.beforeEnd(o);return i.edges=p.startEdges,m},"interactions:action-start":Er,"interactions:action-move":Er,"interactions:action-end":Er,"interactions:after-action-start":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:after-action-move":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:stop":function(o){return o.interaction.modification.stop(o)}}},Dr=yn,ur={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},gn=function(o){y(p,o);var i=O(p);function p(m,S,I,G,ae,xe,je){var Ce;s(this,p),(Ce=i.call(this,m)).relatedTarget=null,Ce.screenX=void 0,Ce.screenY=void 0,Ce.button=void 0,Ce.buttons=void 0,Ce.ctrlKey=void 0,Ce.shiftKey=void 0,Ce.altKey=void 0,Ce.metaKey=void 0,Ce.page=void 0,Ce.client=void 0,Ce.delta=void 0,Ce.rect=void 0,Ce.x0=void 0,Ce.y0=void 0,Ce.t0=void 0,Ce.dt=void 0,Ce.duration=void 0,Ce.clientX0=void 0,Ce.clientY0=void 0,Ce.velocity=void 0,Ce.speed=void 0,Ce.swipe=void 0,Ce.axes=void 0,Ce.preEnd=void 0,ae=ae||m.element;var aa=m.interactable,Ba=(aa&&aa.options||ur).deltaSource,Ga=Ae(aa,ae,I),Ua=G==="start",Qa=G==="end",bl=Ua?D(Ce):m.prevEvent,vl=Ua?m.coords.start:Qa?{page:bl.page,client:bl.client,timeStamp:m.coords.cur.timeStamp}:m.coords.cur;return Ce.page=re({},vl.page),Ce.client=re({},vl.client),Ce.rect=re({},m.rect),Ce.timeStamp=vl.timeStamp,Qa||(Ce.page.x-=Ga.x,Ce.page.y-=Ga.y,Ce.client.x-=Ga.x,Ce.client.y-=Ga.y),Ce.ctrlKey=S.ctrlKey,Ce.altKey=S.altKey,Ce.shiftKey=S.shiftKey,Ce.metaKey=S.metaKey,Ce.button=S.button,Ce.buttons=S.buttons,Ce.target=ae,Ce.currentTarget=ae,Ce.preEnd=xe,Ce.type=je||I+(G||""),Ce.interactable=aa,Ce.t0=Ua?m.pointers[m.pointers.length-1].downTime:bl.t0,Ce.x0=m.coords.start.page.x-Ga.x,Ce.y0=m.coords.start.page.y-Ga.y,Ce.clientX0=m.coords.start.client.x-Ga.x,Ce.clientY0=m.coords.start.client.y-Ga.y,Ce.delta=Ua||Qa?{x:0,y:0}:{x:Ce[Ba].x-bl[Ba].x,y:Ce[Ba].y-bl[Ba].y},Ce.dt=m.coords.delta.timeStamp,Ce.duration=Ce.timeStamp-Ce.t0,Ce.velocity=re({},m.coords.velocity[Ba]),Ce.speed=Ka(Ce.velocity.x,Ce.velocity.y),Ce.swipe=Qa||G==="inertiastart"?Ce.getSwipe():null,Ce}return f(p,[{key:"getSwipe",value:function(){var m=this._interaction;if(m.prevEvent.speed<600||this.timeStamp-m.prevEvent.timeStamp>150)return null;var S=180*Math.atan2(m.prevEvent.velocityY,m.prevEvent.velocityX)/Math.PI;S<0&&(S+=360);var I=112.5<=S&&S<247.5,G=202.5<=S&&S<337.5;return{up:G,down:!G&&22.5<=S&&S<157.5,left:I,right:!I&&(292.5<=S||S<67.5),angle:S,speed:m.prevEvent.speed,velocity:{x:m.prevEvent.velocityX,y:m.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),p}(X);Object.defineProperties(gn.prototype,{pageX:{get:function(){return this.page.x},set:function(o){this.page.x=o}},pageY:{get:function(){return this.page.y},set:function(o){this.page.y=o}},clientX:{get:function(){return this.client.x},set:function(o){this.client.x=o}},clientY:{get:function(){return this.client.y},set:function(o){this.client.y=o}},dx:{get:function(){return this.delta.x},set:function(o){this.delta.x=o}},dy:{get:function(){return this.delta.y},set:function(o){this.delta.y=o}},velocityX:{get:function(){return this.velocity.x},set:function(o){this.velocity.x=o}},velocityY:{get:function(){return this.velocity.y},set:function(o){this.velocity.y=o}}});var ln=f(function o(i,p,m,S,I){s(this,o),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=p,this.event=m,this.downTime=S,this.downTarget=I}),rn=function(o){return o.interactable="",o.element="",o.prepared="",o.pointerIsDown="",o.pointerWasMoved="",o._proxy="",o}({}),Sn=function(o){return o.start="",o.move="",o.end="",o.stop="",o.interacting="",o}({}),Tn=0,pn=function(){function o(i){var p=this,m=i.pointerType,S=i.scopeFire;s(this,o),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=ya(function(Ce){this.move(Ce)},"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=Tn++,this._scopeFire=S,this.pointerType=m;var I=this;this._proxy={};var G=function(Ce){Object.defineProperty(p._proxy,Ce,{get:function(){return I[Ce]}})};for(var ae in rn)G(ae);var xe=function(Ce){Object.defineProperty(p._proxy,Ce,{value:function(){return I[Ce].apply(I,arguments)}})};for(var je in Sn)xe(je);this._scopeFire("interactions:new",{interaction:this})}return f(o,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,p,m){var S=this.updatePointer(i,p,m,!0),I=this.pointers[S];this._scopeFire("interactions:down",{pointer:i,event:p,eventTarget:m,pointerIndex:S,pointerInfo:I,type:"down",interaction:this})}},{key:"start",value:function(i,p,m){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!p.options[i.name].enabled)&&(pa(this.prepared,i),this.interactable=p,this.element=m,this.rect=p.getRect(m),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,p,m){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,p,m,!1);var S,I,G=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&&(S=this.coords.cur.client.x-this.coords.start.client.x,I=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ka(S,I)>this.pointerMoveTolerance);var ae,xe,je,Ce=this.getPointerIndex(i),aa={pointer:i,pointerIndex:Ce,pointerInfo:this.pointers[Ce],event:p,type:"move",eventTarget:m,dx:S,dy:I,duplicate:G,interaction:this};G||(ae=this.coords.velocity,xe=this.coords.delta,je=Math.max(xe.timeStamp/1e3,.001),ae.page.x=xe.page.x/je,ae.page.y=xe.page.y/je,ae.client.x=xe.client.x/je,ae.client.y=xe.client.y/je,ae.timeStamp=je),this._scopeFire("interactions:move",aa),G||this.simulation||(this.interacting()&&(aa.type=null,this.move(aa)),this.pointerWasMoved&&Q(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||ye(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,p,m,S){var I=this.getPointerIndex(i);I===-1&&(I=this.updatePointer(i,p,m,!1));var G=/cancel$/i.test(p.type)?"cancel":"up";this._scopeFire("interactions:".concat(G),{pointer:i,pointerIndex:I,pointerInfo:this.pointers[I],event:p,eventTarget:m,type:G,curEventTarget:S,interaction:this}),this.simulation||this.end(p),this.removePointer(i,p)}},{key:"documentBlur",value:function(i){this.end(i),this._scopeFire("interactions:blur",{event:i,type:"blur",interaction:this})}},{key:"end",value:function(i){var p;this._ending=!0,i=i||this._latestPointer.event,this.interacting()&&(p=this._doPhase({event:i,interaction:this,phase:"end"})),this._ending=!1,p===!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 p=ue(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Be(this.pointers,function(m){return m.id===p})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,p,m,S){var I,G,ae,xe=ue(i),je=this.getPointerIndex(i),Ce=this.pointers[je];return S=S!==!1&&(S||/(down|start)$/i.test(p.type)),Ce?Ce.pointer=i:(Ce=new ln(xe,i,p,null,null),je=this.pointers.length,this.pointers.push(Ce)),ma(this.coords.cur,this.pointers.map(function(aa){return aa.pointer}),this._now()),I=this.coords.delta,G=this.coords.prev,ae=this.coords.cur,I.page.x=ae.page.x-G.page.x,I.page.y=ae.page.y-G.page.y,I.client.x=ae.client.x-G.client.x,I.client.y=ae.client.y-G.client.y,I.timeStamp=ae.timeStamp-G.timeStamp,S&&(this.pointerIsDown=!0,Ce.downTime=this.coords.cur.timeStamp,Ce.downTarget=m,H(this.downPointer,i),this.interacting()||(Q(this.coords.start,this.coords.cur),Q(this.coords.prev,this.coords.cur),this.downEvent=p,this.pointerWasMoved=!1)),this._updateLatestPointer(i,p,m),this._scopeFire("interactions:update-pointer",{pointer:i,event:p,eventTarget:m,down:S,pointerInfo:Ce,pointerIndex:je,interaction:this}),je}},{key:"removePointer",value:function(i,p){var m=this.getPointerIndex(i);if(m!==-1){var S=this.pointers[m];this._scopeFire("interactions:remove-pointer",{pointer:i,event:p,eventTarget:null,pointerIndex:m,pointerInfo:S,interaction:this}),this.pointers.splice(m,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,p,m){this._latestPointer.pointer=i,this._latestPointer.event=p,this._latestPointer.eventTarget=m}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,p,m,S){return new gn(this,i,this.prepared.name,p,this.element,m,S)}},{key:"_fireEvent",value:function(i){var p;(p=this.interactable)==null||p.fire(i),(!this.prevEvent||i.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=i)}},{key:"_doPhase",value:function(i){var p=i.event,m=i.phase,S=i.preEnd,I=i.type,G=this.rect;if(G&&m==="move"&&(te(this.edges,G,this.coords.delta[this.interactable.options.deltaSource]),G.width=G.right-G.left,G.height=G.bottom-G.top),this._scopeFire("interactions:before-action-".concat(m),i)===!1)return!1;var ae=i.iEvent=this._createPreparedEvent(p,m,S,I);return this._scopeFire("interactions:action-".concat(m),i),m==="start"&&(this.prevEvent=ae),this._fireEvent(ae),this._scopeFire("interactions:after-action-".concat(m),i),!0}},{key:"_now",value:function(){return Date.now()}}]),o}();function lr(o){Il(o.interaction)}function Il(o){if(!function(p){return!(!p.offset.pending.x&&!p.offset.pending.y)}(o))return!1;var i=o.offset.pending;return sl(o.coords.cur,i),sl(o.coords.delta,i),te(o.edges,o.rect,i),i.x=0,i.y=0,!0}function Ar(o){var i=o.x,p=o.y;this.offset.pending.x+=i,this.offset.pending.y+=p,this.offset.total.x+=i,this.offset.total.y+=p}function sl(o,i){var p=o.page,m=o.client,S=i.x,I=i.y;p.x+=S,p.y+=I,m.x+=S,m.y+=I}Sn.offsetBy="";var cr={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(o){o.Interaction.prototype.offsetBy=Ar},listeners:{"interactions:new":function(o){o.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(o){return function(i){i.pointerIsDown&&(sl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(o.interaction)},"interactions:before-action-start":lr,"interactions:before-action-move":lr,"interactions:before-action-end":function(o){var i=o.interaction;if(Il(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(o){var i=o.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},Vl=cr,_r=function(){function o(i){s(this,o),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 f(o,[{key:"start",value:function(i){var p=this.interaction,m=Gl(p);if(!m||!m.enabled)return!1;var S=p.coords.velocity.client,I=Ka(S.x,S.y),G=this.modification||(this.modification=new Pr(p));if(G.copyFrom(p.modification),this.t0=p._now(),this.allowResume=m.allowResume,this.v0=I,this.currentOffset={x:0,y:0},this.startCoords=p.coords.cur.page,this.modifierArg=G.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-p.coords.cur.timeStamp<50&&I>m.minSpeed&&I>m.endSpeed)this.startInertia();else{if(G.result=G.setAll(this.modifierArg),!G.result.changed)return!1;this.startSmoothEnd()}return p.modification.result.rect=null,p.offsetBy(this.targetOffset),p._doPhase({interaction:p,event:i,phase:"inertiastart"}),p.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),p.modification.result.rect=null,this.active=!0,p.simulation=this,!0}},{key:"startInertia",value:function(){var i=this,p=this.interaction.coords.velocity.client,m=Gl(this.interaction),S=m.resistance,I=-Math.log(m.endSpeed/this.v0)/S;this.targetOffset={x:(p.x-I)/S,y:(p.y-I)/S},this.te=I,this.lambda_v0=S/this.v0,this.one_ve_v0=1-m.endSpeed/this.v0;var G=this.modification,ae=this.modifierArg;ae.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},G.result=G.setAll(ae),G.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+G.result.delta.x,y:this.targetOffset.y+G.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 p=this;this.timeout=ul.request(function(){p.active&&i()})}},{key:"inertiaTick",value:function(){var i,p,m,S,I,G,ae,xe=this,je=this.interaction,Ce=Gl(je).resistance,aa=(je._now()-this.t0)/1e3;if(aa<this.te){var Ba,Ga=1-(Math.exp(-Ce*aa)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,p=0,m=this.targetOffset.x,S=this.targetOffset.y,I=this.modifiedOffset.x,G=this.modifiedOffset.y,Ba={x:Or(ae=Ga,i,m,I),y:Or(ae,p,S,G)}):Ba={x:this.targetOffset.x*Ga,y:this.targetOffset.y*Ga};var Ua={x:Ba.x-this.currentOffset.x,y:Ba.y-this.currentOffset.y};this.currentOffset.x+=Ua.x,this.currentOffset.y+=Ua.y,je.offsetBy(Ua),je.move(),this.onNextFrame(function(){return xe.inertiaTick()})}else je.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,p=this.interaction,m=p._now()-this.t0,S=Gl(p).smoothEndDuration;if(m<S){var I={x:bn(m,0,this.targetOffset.x,S),y:bn(m,0,this.targetOffset.y,S)},G={x:I.x-this.currentOffset.x,y:I.y-this.currentOffset.y};this.currentOffset.x+=G.x,this.currentOffset.y+=G.y,p.offsetBy(G),p.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return i.smoothEndTick()})}else p.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(i){var p=i.pointer,m=i.event,S=i.eventTarget,I=this.interaction;I.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),I.updatePointer(p,m,S,!0),I._doPhase({interaction:I,event:m,phase:"resume"}),Q(I.coords.prev,I.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,ul.cancel(this.timeout)}}]),o}();function Gl(o){var i=o.interactable,p=o.prepared;return i&&i.options&&p.name&&i.options[p.name].inertia}var hr={id:"inertia",before:["modifiers","actions"],install:function(o){var i=o.defaults;o.usePlugin(Vl),o.usePlugin(Dr),o.actions.phases.inertiastart=!0,o.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(o){var i=o.interaction;i.inertia=new _r(i)},"interactions:before-action-end":function(o){var i=o.interaction,p=o.event;return(!i._interacting||i.simulation||!i.inertia.start(p))&&null},"interactions:down":function(o){var i=o.interaction,p=o.eventTarget,m=i.inertia;if(m.active)for(var S=p;_.element(S);){if(S===i.element){m.resume(o);break}S=Ve(S)}},"interactions:stop":function(o){var i=o.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(o){var i=o.interaction.modification;i.stop(o),i.start(o,o.interaction.coords.cur.page),i.applyToInteraction(o)},"interactions:before-action-inertiastart":function(o){return o.interaction.modification.setAndApply(o)},"interactions:action-resume":Er,"interactions:action-inertiastart":Er,"interactions:after-action-inertiastart":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:after-action-resume":function(o){return o.interaction.modification.restoreInteractionCoords(o)}}};function Or(o,i,p,m){var S=1-o;return S*S*i+2*S*o*p+o*o*m}function bn(o,i,p,m){return-p*(o/=m)*(o-2)+i}var Nn=hr;function kn(o,i){for(var p=0;p<i.length;p++){var m=i[p];if(o.immediatePropagationStopped)break;m(o)}}var Un=function(){function o(i){s(this,o),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=re({},i||{})}return f(o,[{key:"fire",value:function(i){var p,m=this.global;(p=this.types[i.type])&&kn(i,p),!i.propagationStopped&&m&&(p=m[i.type])&&kn(i,p)}},{key:"on",value:function(i,p){var m=Ue(i,p);for(i in m)this.types[i]=Z(this.types[i]||[],m[i])}},{key:"off",value:function(i,p){var m=Ue(i,p);for(i in m){var S=this.types[i];if(S&&S.length)for(var I=0,G=m[i];I<G.length;I++){var ae=G[I],xe=S.indexOf(ae);xe!==-1&&S.splice(xe,1)}}}},{key:"getRect",value:function(i){return null}}]),o}(),Ln=function(){function o(i){s(this,o),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,H(this,i)}return f(o,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),o}();function xn(o){return _.object(o)?{capture:!!o.capture,passive:!!o.passive}:{capture:!!o,passive:!1}}function An(o,i){return o===i||(typeof o=="boolean"?!!i.capture===o&&!i.passive:!!o.capture==!!i.capture&&!!o.passive==!!i.passive)}var Rn={id:"events",install:function(o){var i,p=[],m={},S=[],I={add:G,remove:ae,addDelegate:function(Ce,aa,Ba,Ga,Ua){var Qa=xn(Ua);if(!m[Ba]){m[Ba]=[];for(var bl=0;bl<S.length;bl++){var vl=S[bl];G(vl,Ba,xe),G(vl,Ba,je,!0)}}var El=m[Ba],Hl=Xe(El,function(Cl){return Cl.selector===Ce&&Cl.context===aa});Hl||(Hl={selector:Ce,context:aa,listeners:[]},El.push(Hl)),Hl.listeners.push({func:Ga,options:Qa})},removeDelegate:function(Ce,aa,Ba,Ga,Ua){var Qa,bl=xn(Ua),vl=m[Ba],El=!1;if(vl)for(Qa=vl.length-1;Qa>=0;Qa--){var Hl=vl[Qa];if(Hl.selector===Ce&&Hl.context===aa){for(var Cl=Hl.listeners,zl=Cl.length-1;zl>=0;zl--){var Al=Cl[zl];if(Al.func===Ga&&An(Al.options,bl)){Cl.splice(zl,1),Cl.length||(vl.splice(Qa,1),ae(aa,Ba,xe),ae(aa,Ba,je,!0)),El=!0;break}}if(El)break}}},delegateListener:xe,delegateUseCapture:je,delegatedEvents:m,documents:S,targets:p,supportsOptions:!1,supportsPassive:!1};function G(Ce,aa,Ba,Ga){if(Ce.addEventListener){var Ua=xn(Ga),Qa=Xe(p,function(bl){return bl.eventTarget===Ce});Qa||(Qa={eventTarget:Ce,events:{}},p.push(Qa)),Qa.events[aa]||(Qa.events[aa]=[]),Xe(Qa.events[aa],function(bl){return bl.func===Ba&&An(bl.options,Ua)})||(Ce.addEventListener(aa,Ba,I.supportsOptions?Ua:Ua.capture),Qa.events[aa].push({func:Ba,options:Ua}))}}function ae(Ce,aa,Ba,Ga){if(Ce.addEventListener&&Ce.removeEventListener){var Ua=Be(p,function(Hr){return Hr.eventTarget===Ce}),Qa=p[Ua];if(Qa&&Qa.events)if(aa!=="all"){var bl=!1,vl=Qa.events[aa];if(vl){if(Ba==="all"){for(var El=vl.length-1;El>=0;El--){var Hl=vl[El];ae(Ce,aa,Hl.func,Hl.options)}return}for(var Cl=xn(Ga),zl=0;zl<vl.length;zl++){var Al=vl[zl];if(Al.func===Ba&&An(Al.options,Cl)){Ce.removeEventListener(aa,Ba,I.supportsOptions?Cl:Cl.capture),vl.splice(zl,1),vl.length===0&&(delete Qa.events[aa],bl=!0);break}}}bl&&!Object.keys(Qa.events).length&&p.splice(Ua,1)}else for(aa in Qa.events)Qa.events.hasOwnProperty(aa)&&ae(Ce,aa,"all")}}function xe(Ce,aa){for(var Ba=xn(aa),Ga=new Ln(Ce),Ua=m[Ce.type],Qa=ie(Ce)[0],bl=Qa;_.element(bl);){for(var vl=0;vl<Ua.length;vl++){var El=Ua[vl],Hl=El.selector,Cl=El.context;if(ge(bl,Hl)&&pe(Cl,Qa)&&pe(Cl,bl)){var zl=El.listeners;Ga.currentTarget=bl;for(var Al=0;Al<zl.length;Al++){var Hr=zl[Al];An(Hr.options,Ba)&&Hr.func(Ga)}}}bl=Ve(bl)}}function je(Ce){return xe(Ce,!0)}return(i=o.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return I.supportsOptions=!0},get passive(){return I.supportsPassive=!0}}),o.events=I,I}},Qr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(o){for(var i=0,p=Qr.methodOrder;i<p.length;i++){var m=p[i],S=Qr[m](o);if(S)return S}return null},simulationResume:function(o){var i=o.pointerType,p=o.eventType,m=o.eventTarget,S=o.scope;if(!/down|start/i.test(p))return null;for(var I=0,G=S.interactions.list;I<G.length;I++){var ae=G[I],xe=m;if(ae.simulation&&ae.simulation.allowResume&&ae.pointerType===i)for(;xe;){if(xe===ae.element)return ae;xe=Ve(xe)}}return null},mouseOrPen:function(o){var i,p=o.pointerId,m=o.pointerType,S=o.eventType,I=o.scope;if(m!=="mouse"&&m!=="pen")return null;for(var G=0,ae=I.interactions.list;G<ae.length;G++){var xe=ae[G];if(xe.pointerType===m){if(xe.simulation&&!zn(xe,p))continue;if(xe.interacting())return xe;i||(i=xe)}}if(i)return i;for(var je=0,Ce=I.interactions.list;je<Ce.length;je++){var aa=Ce[je];if(!(aa.pointerType!==m||/down/i.test(S)&&aa.simulation))return aa}return null},hasPointer:function(o){for(var i=o.pointerId,p=0,m=o.scope.interactions.list;p<m.length;p++){var S=m[p];if(zn(S,i))return S}return null},idle:function(o){for(var i=o.pointerType,p=0,m=o.scope.interactions.list;p<m.length;p++){var S=m[p];if(S.pointers.length===1){var I=S.interactable;if(I&&(!I.options.gesture||!I.options.gesture.enabled))continue}else if(S.pointers.length>=2)continue;if(!S.interacting()&&i===S.pointerType)return S}return null}};function zn(o,i){return o.pointers.some(function(p){return p.id===i})}var qn=Qr,Lr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Wn(o,i){return function(p){var m=i.interactions.list,S=La(p),I=ie(p),G=I[0],ae=I[1],xe=[];if(/^touch/.test(p.type)){i.prevTouchTime=i.now();for(var je=0,Ce=p.changedTouches;je<Ce.length;je++){var aa=Ce[je],Ba={pointer:aa,pointerId:ue(aa),pointerType:S,eventType:p.type,eventTarget:G,curEventTarget:ae,scope:i},Ga=fn(Ba);xe.push([Ba.pointer,Ba.eventTarget,Ba.curEventTarget,Ga])}}else{var Ua=!1;if(!le.supportsPointerEvent&&/mouse/.test(p.type)){for(var Qa=0;Qa<m.length&&!Ua;Qa++)Ua=m[Qa].pointerType!=="mouse"&&m[Qa].pointerIsDown;Ua=Ua||i.now()-i.prevTouchTime<500||p.timeStamp===0}if(!Ua){var bl={pointer:p,pointerId:ue(p),pointerType:S,eventType:p.type,curEventTarget:ae,eventTarget:G,scope:i},vl=fn(bl);xe.push([bl.pointer,bl.eventTarget,bl.curEventTarget,vl])}}for(var El=0;El<xe.length;El++){var Hl=xe[El],Cl=Hl[0],zl=Hl[1],Al=Hl[2];Hl[3][o](Cl,p,zl,Al)}}}function fn(o){var i=o.pointerType,p=o.scope,m={interaction:qn.search(o),searchDetails:o};return p.fire("interactions:find",m),m.interaction||p.interactions.new({pointerType:i})}function Ti(o,i){var p=o.doc,m=o.scope,S=o.options,I=m.interactions.docEvents,G=m.events,ae=G[i];for(var xe in m.browser.isIOS&&!S.events&&(S.events={passive:!1}),G.delegatedEvents)ae(p,xe,G.delegateListener),ae(p,xe,G.delegateUseCapture,!0);for(var je=S&&S.events,Ce=0;Ce<I.length;Ce++){var aa=I[Ce];ae(p,aa.type,aa.listener,je)}}var Lo={id:"core/interactions",install:function(o){for(var i={},p=0;p<Lr.length;p++){var m=Lr[p];i[m]=Wn(m,o)}var S,I=le.pEventTypes;function G(){for(var ae=0,xe=o.interactions.list;ae<xe.length;ae++){var je=xe[ae];if(je.pointerIsDown&&je.pointerType==="touch"&&!je._interacting)for(var Ce=function(){var Ga=Ba[aa];o.documents.some(function(Ua){return pe(Ua.doc,Ga.downTarget)})||je.removePointer(Ga.pointer,Ga.event)},aa=0,Ba=je.pointers;aa<Ba.length;aa++)Ce()}}(S=V.PointerEvent?[{type:I.down,listener:G},{type:I.down,listener:i.pointerDown},{type:I.move,listener:i.pointerMove},{type:I.up,listener:i.pointerUp},{type:I.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:G},{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(ae){for(var xe=0,je=o.interactions.list;xe<je.length;xe++)je[xe].documentBlur(ae)}}),o.prevTouchTime=0,o.Interaction=function(ae){y(je,ae);var xe=O(je);function je(){return s(this,je),xe.apply(this,arguments)}return f(je,[{key:"pointerMoveTolerance",get:function(){return o.interactions.pointerMoveTolerance},set:function(Ce){o.interactions.pointerMoveTolerance=Ce}},{key:"_now",value:function(){return o.now()}}]),je}(pn),o.interactions={list:[],new:function(ae){ae.scopeFire=function(je,Ce){return o.fire(je,Ce)};var xe=new o.Interaction(ae);return o.interactions.list.push(xe),xe},listeners:i,docEvents:S,pointerMoveTolerance:1},o.usePlugin(ar)},listeners:{"scope:add-document":function(o){return Ti(o,"add")},"scope:remove-document":function(o){return Ti(o,"remove")},"interactable:unset":function(o,i){for(var p=o.interactable,m=i.interactions.list.length-1;m>=0;m--){var S=i.interactions.list[m];S.interactable===p&&(S.stop(),i.fire("interactions:destroy",{interaction:S}),S.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(m,1))}}},onDocSignal:Ti,doOnInteractions:Wn,methodNames:Lr},Ro=Lo,En=function(o){return o[o.On=0]="On",o[o.Off=1]="Off",o}(En||{}),$o=function(){function o(i,p,m,S){s(this,o),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Un,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=p.actions,this.target=i,this._context=p.context||m,this._win=w(Da(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=S,this.set(p)}return f(o,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,p){return _.func(p.onstart)&&this.on("".concat(i,"start"),p.onstart),_.func(p.onmove)&&this.on("".concat(i,"move"),p.onmove),_.func(p.onend)&&this.on("".concat(i,"end"),p.onend),_.func(p.oninertiastart)&&this.on("".concat(i,"inertiastart"),p.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,p,m){var S,I=this,G=(S=this._actions.map[i])==null?void 0:S.filterEventType,ae=function(xe){return(G==null||G(xe))&&Fr(xe,I._actions)};(_.array(p)||_.object(p))&&this._onOff(En.Off,i,p,void 0,ae),(_.array(m)||_.object(m))&&this._onOff(En.On,i,m,void 0,ae)}},{key:"setPerAction",value:function(i,p){var m=this._defaults;for(var S in p){var I=S,G=this.options[i],ae=p[I];I==="listeners"&&this.updatePerActionListeners(i,G.listeners,ae),_.array(ae)?G[I]=q(ae):_.plainObject(ae)?(G[I]=re(G[I]||{},Tr(ae)),_.object(m.perAction[I])&&"enabled"in m.perAction[I]&&(G[I].enabled=ae.enabled!==!1)):_.bool(ae)&&_.object(m.perAction[I])?G[I].enabled=ae:G[I]=ae}}},{key:"getRect",value:function(i){return i=i||(_.element(this.target)?this.target:null),_.string(this.target)&&(i=i||this._context.querySelector(this.target)),Fe(i)}},{key:"rectChecker",value:function(i){var p=this;return _.func(i)?(this.getRect=function(m){var S=re({},i.apply(p,m));return"width"in S||(S.width=S.right-S.left,S.height=S.bottom-S.top),S},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,p){if(Da(p)||_.object(p)){for(var m in this.options[i]=p,this._actions.map)this.options[m][i]=p;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 _.string(i)?Array.from(this._context.querySelectorAll(i)):_.func(i)&&i.getAllElements?i.getAllElements():_.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||pe(this._context,i)}},{key:"testIgnoreAllow",value:function(i,p,m){return!this.testIgnore(i.ignoreFrom,p,m)&&this.testAllow(i.allowFrom,p,m)}},{key:"testAllow",value:function(i,p,m){return!i||!!_.element(m)&&(_.string(i)?U(m,i,p):!!_.element(i)&&pe(i,m))}},{key:"testIgnore",value:function(i,p,m){return!(!i||!_.element(m))&&(_.string(i)?U(m,i,p):!!_.element(i)&&pe(i,m))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,p,m,S,I){_.object(p)&&!_.array(p)&&(S=m,m=null);var G=Ue(p,m,I);for(var ae in G){ae==="wheel"&&(ae=le.wheelEvent);for(var xe=0,je=G[ae];xe<je.length;xe++){var Ce=je[xe];Fr(ae,this._actions)?this.events[i===En.On?"on":"off"](ae,Ce):_.string(this.target)?this._scopeEvents[i===En.On?"addDelegate":"removeDelegate"](this.target,this._context,ae,Ce,S):this._scopeEvents[i===En.On?"add":"remove"](this.target,ae,Ce,S)}}return this}},{key:"on",value:function(i,p,m){return this._onOff(En.On,i,p,m)}},{key:"off",value:function(i,p,m){return this._onOff(En.Off,i,p,m)}},{key:"set",value:function(i){var p=this._defaults;for(var m in _.object(i)||(i={}),this.options=Tr(p.base),this._actions.methodDict){var S=m,I=this._actions.methodDict[S];this.options[S]={},this.setPerAction(S,re(re({},p.perAction),p.actions[S])),this[I](i[S])}for(var G in i)G!=="getRect"?_.func(this[G])&&this[G](i[G]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(_.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var p=this._scopeEvents.delegatedEvents[i],m=p.length-1;m>=0;m--){var S=p[m],I=S.selector,G=S.context,ae=S.listeners;I===this.target&&G===this._context&&p.splice(m,1);for(var xe=ae.length-1;xe>=0;xe--)this._scopeEvents.removeDelegate(this.target,this._context,i,ae[xe][0],ae[xe][1])}else this._scopeEvents.remove(this.target,"all")}}]),o}(),Vo=function(){function o(i){var p=this;s(this,o),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(m){var S=m.interactable,I=S.target,G=_.string(I)?p.selectorMap[I]:I[p.scope.id],ae=Be(G,function(xe){return xe===S});G.splice(ae,1)}})}return f(o,[{key:"new",value:function(i,p){p=re(p||{},{actions:this.scope.actions});var m=new this.scope.Interactable(i,p,this.scope.document,this.scope.events);return this.scope.addDocument(m._doc),this.list.push(m),_.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(m)):(m.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(m)),this.scope.fire("interactable:new",{target:i,options:p,interactable:m,win:this.scope._win}),m}},{key:"getExisting",value:function(i,p){var m=p&&p.context||this.scope.document,S=_.string(i),I=S?this.selectorMap[i]:i[this.scope.id];if(I)return Xe(I,function(G){return G._context===m&&(S||G.inContext(i))})}},{key:"forEachMatch",value:function(i,p){for(var m=0,S=this.list;m<S.length;m++){var I=S[m],G=void 0;if((_.string(I.target)?_.element(i)&&ge(i,I.target):i===I.target)&&I.inContext(i)&&(G=p(I)),G!==void 0)return G}}}]),o}(),Fo=function(){function o(){var i=this;s(this,o),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=le,this.defaults=Tr(ur),this.Eventable=Un,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(m){var S=function I(G,ae){var xe=m.interactables.getExisting(G,ae);return xe||((xe=m.interactables.new(G,ae)).events.global=I.globalEvents),xe};return S.getPointerAverage=Ke,S.getTouchBBox=Na,S.getTouchDistance=Ca,S.getTouchAngle=Ze,S.getElementRect=Fe,S.getElementClientRect=Oe,S.matchesSelector=ge,S.closest=De,S.globalEvents={},S.version="1.10.27",S.scope=m,S.use=function(I,G){return this.scope.usePlugin(I,G),this},S.isSet=function(I,G){return!!this.scope.interactables.get(I,G&&G.context)},S.on=ya(function(I,G,ae){if(_.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),_.array(I)){for(var xe=0,je=I;xe<je.length;xe++){var Ce=je[xe];this.on(Ce,G,ae)}return this}if(_.object(I)){for(var aa in I)this.on(aa,I[aa],G);return this}return Fr(I,this.scope.actions)?this.globalEvents[I]?this.globalEvents[I].push(G):this.globalEvents[I]=[G]:this.scope.events.add(this.scope.document,I,G,{options:ae}),this},"The interact.on() method is being deprecated"),S.off=ya(function(I,G,ae){if(_.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),_.array(I)){for(var xe=0,je=I;xe<je.length;xe++){var Ce=je[xe];this.off(Ce,G,ae)}return this}if(_.object(I)){for(var aa in I)this.off(aa,I[aa],G);return this}var Ba;return Fr(I,this.scope.actions)?I in this.globalEvents&&(Ba=this.globalEvents[I].indexOf(G))!==-1&&this.globalEvents[I].splice(Ba,1):this.scope.events.remove(this.scope.document,I,G,ae),this},"The interact.off() method is being deprecated"),S.debug=function(){return this.scope},S.supportsTouch=function(){return le.supportsTouch},S.supportsPointerEvent=function(){return le.supportsPointerEvent},S.stop=function(){for(var I=0,G=this.scope.interactions.list;I<G.length;I++)G[I].stop();return this},S.pointerMoveTolerance=function(I){return _.number(I)?(this.scope.interactions.pointerMoveTolerance=I,this):this.scope.interactions.pointerMoveTolerance},S.addDocument=function(I,G){this.scope.addDocument(I,G)},S.removeDocument=function(I){this.scope.removeDocument(I)},S}(this),this.InteractEvent=gn,this.Interactable=void 0,this.interactables=new Vo(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(m){return i.removeDocument(m.target)};var p=this;this.Interactable=function(m){y(I,m);var S=O(I);function I(){return s(this,I),S.apply(this,arguments)}return f(I,[{key:"_defaults",get:function(){return p.defaults}},{key:"set",value:function(G){return k(g(I.prototype),"set",this).call(this,G),p.fire("interactable:set",{options:G,interactable:this}),this}},{key:"unset",value:function(){k(g(I.prototype),"unset",this).call(this);var G=p.interactables.list.indexOf(this);G<0||(p.interactables.list.splice(G,1),p.fire("interactable:unset",{interactable:this}))}}]),I}($o)}return f(o,[{key:"addListeners",value:function(i,p){this.listenerMaps.push({id:p,map:i})}},{key:"fire",value:function(i,p){for(var m=0,S=this.listenerMaps;m<S.length;m++){var I=S[m].map[i];if(I&&I(p,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(p,m){return p.isInitialized=!0,_.window(m)&&E(m),V.init(m),le.init(m),ul.init(m),p.window=m,p.document=m.document,p.usePlugin(Ro),p.usePlugin(Rn),p}(this,i)}},{key:"pluginIsInstalled",value:function(i){var p=i.id;return p?!!this._plugins.map[p]:this._plugins.list.indexOf(i)!==-1}},{key:"usePlugin",value:function(i,p){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,p),i.listeners&&i.before){for(var m=0,S=this.listenerMaps.length,I=i.before.reduce(function(ae,xe){return ae[xe]=!0,ae[Ni(xe)]=!0,ae},{});m<S;m++){var G=this.listenerMaps[m].id;if(G&&(I[G]||I[Ni(G)]))break}this.listenerMaps.splice(m,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,p){if(this.getDocIndex(i)!==-1)return!1;var m=w(i);p=p?re({},p):{},this.documents.push({doc:i,options:p}),this.events.documents.push(i),i!==this.document&&this.events.add(m,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:m,scope:this,options:p})}},{key:"removeDocument",value:function(i){var p=this.getDocIndex(i),m=w(i),S=this.documents[p].options;this.events.remove(m,"unload",this.onWindowUnload),this.documents.splice(p,1),this.events.documents.splice(p,1),this.fire("scope:remove-document",{doc:i,window:m,scope:this,options:S})}},{key:"getDocIndex",value:function(i){for(var p=0;p<this.documents.length;p++)if(this.documents[p].doc===i)return p;return-1}},{key:"getDocOptions",value:function(i){var p=this.getDocIndex(i);return p===-1?null:this.documents[p].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),o}();function Ni(o){return o&&o.replace(/\/.*$/,"")}var Ji=new Fo,jr=Ji.interactStatic,Po=typeof globalThis<"u"?globalThis:window;Ji.init(Po);var jo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(o){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(m){var S=m[0],I=m[1];return S in o||I in o}),p=function(m,S){for(var I=o.range,G=o.limits,ae=G===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:G,xe=o.offset,je=xe===void 0?{x:0,y:0}:xe,Ce={range:I,grid:o,x:null,y:null},aa=0;aa<i.length;aa++){var Ba=i[aa],Ga=Ba[0],Ua=Ba[1],Qa=Math.round((m-je.x)/o[Ga]),bl=Math.round((S-je.y)/o[Ua]);Ce[Ga]=Math.max(ae.left,Math.min(ae.right,Qa*o[Ga]+je.x)),Ce[Ua]=Math.max(ae.top,Math.min(ae.bottom,bl*o[Ua]+je.y))}return Ce};return p.grid=o,p.coordFields=i,p}}),Ai={id:"snappers",install:function(o){var i=o.interactStatic;i.snappers=re(i.snappers||{},jo),i.createSnapGrid=i.snappers.grid}},Ho=Ai,zi={start:function(o){var i=o.state,p=o.rect,m=o.edges,S=o.pageCoords,I=i.options,G=I.ratio,ae=I.enabled,xe=i.options,je=xe.equalDelta,Ce=xe.modifiers;G==="preserve"&&(G=p.width/p.height),i.startCoords=re({},S),i.startRect=re({},p),i.ratio=G,i.equalDelta=je;var aa=i.linkedEdges={top:m.top||m.left&&!m.bottom,left:m.left||m.top&&!m.right,bottom:m.bottom||m.right&&!m.top,right:m.right||m.bottom&&!m.left};if(i.xIsPrimaryAxis=!(!m.left&&!m.right),i.equalDelta){var Ba=(aa.left?1:-1)*(aa.top?1:-1);i.edgeSign={x:Ba,y:Ba}}else i.edgeSign={x:aa.left?-1:1,y:aa.top?-1:1};if(ae!==!1&&re(m,aa),Ce!=null&&Ce.length){var Ga=new Pr(o.interaction);Ga.copyFrom(o.interaction.modification),Ga.prepareStates(Ce),i.subModification=Ga,Ga.startAll(n({},o))}},set:function(o){var i=o.state,p=o.rect,m=o.coords,S=i.linkedEdges,I=re({},m),G=i.equalDelta?Xi:Zi;if(re(o.edges,S),G(i,i.xIsPrimaryAxis,m,p),!i.subModification)return null;var ae=re({},p);te(S,ae,{x:m.x-I.x,y:m.y-I.y});var xe=i.subModification.setAll(n(n({},o),{},{rect:ae,edges:S,pageCoords:m,prevCoords:m,prevRect:ae})),je=xe.delta;return xe.changed&&(G(i,Math.abs(je.x)>Math.abs(je.y),xe.coords,xe.rect),re(m,xe.coords)),xe.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Xi(o,i,p){var m=o.startCoords,S=o.edgeSign;i?p.y=m.y+(p.x-m.x)*S.y:p.x=m.x+(p.y-m.y)*S.x}function Zi(o,i,p,m){var S=o.startRect,I=o.startCoords,G=o.ratio,ae=o.edgeSign;if(i){var xe=m.width/G;p.y=I.y+(xe-S.height)*ae.y}else{var je=m.height*G;p.x=I.x+(je-S.width)*ae.x}}var Uo=Sr(zi,"aspectRatio"),Qi=function(){};Qi._defaults={};var si=Qi;function nn(o,i,p){return _.func(o)?se(o,i.interactable,i.element,[p.x,p.y,i]):se(o,i.interactable,i.element)}var Kn={start:function(o){var i=o.rect,p=o.startOffset,m=o.state,S=o.interaction,I=o.pageCoords,G=m.options,ae=G.elementRect,xe=re({left:0,top:0,right:0,bottom:0},G.offset||{});if(i&&ae){var je=nn(G.restriction,S,I);if(je){var Ce=je.right-je.left-i.width,aa=je.bottom-je.top-i.height;Ce<0&&(xe.left+=Ce,xe.right+=Ce),aa<0&&(xe.top+=aa,xe.bottom+=aa)}xe.left+=p.left-i.width*ae.left,xe.top+=p.top-i.height*ae.top,xe.right+=p.right-i.width*(1-ae.right),xe.bottom+=p.bottom-i.height*(1-ae.bottom)}m.offset=xe},set:function(o){var i=o.coords,p=o.interaction,m=o.state,S=m.options,I=m.offset,G=nn(S.restriction,p,i);if(G){var ae=function(xe){return!xe||"left"in xe&&"top"in xe||((xe=re({},xe)).left=xe.x||0,xe.top=xe.y||0,xe.right=xe.right||xe.left+xe.width,xe.bottom=xe.bottom||xe.top+xe.height),xe}(G);i.x=Math.max(Math.min(ae.right-I.right,i.x),ae.left+I.left),i.y=Math.max(Math.min(ae.bottom-I.bottom,i.y),ae.top+I.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Mi=Sr(Kn,"restrict"),eo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ao={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function lo(o,i){for(var p=0,m=["top","left","bottom","right"];p<m.length;p++){var S=m[p];S in o||(o[S]=i[S])}return o}var Gn={noInner:eo,noOuter:ao,start:function(o){var i,p=o.interaction,m=o.startOffset,S=o.state,I=S.options;I&&(i=da(nn(I.offset,p,p.coords.start.page))),i=i||{x:0,y:0},S.offset={top:i.y+m.top,left:i.x+m.left,bottom:i.y-m.bottom,right:i.x-m.right}},set:function(o){var i=o.coords,p=o.edges,m=o.interaction,S=o.state,I=S.offset,G=S.options;if(p){var ae=re({},i),xe=nn(G.inner,m,ae)||{},je=nn(G.outer,m,ae)||{};lo(xe,eo),lo(je,ao),p.top?i.y=Math.min(Math.max(je.top+I.top,ae.y),xe.top+I.top):p.bottom&&(i.y=Math.max(Math.min(je.bottom+I.bottom,ae.y),xe.bottom+I.bottom)),p.left?i.x=Math.min(Math.max(je.left+I.left,ae.x),xe.left+I.left):p.right&&(i.x=Math.max(Math.min(je.right+I.right,ae.x),xe.right+I.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ro=Sr(Gn,"restrictEdges"),Yn=re({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(o){}},Kn.defaults),no=Sr({start:Kn.start,set:Kn.set,defaults:Yn},"restrictRect"),io={width:-1/0,height:-1/0},Jn={width:1/0,height:1/0},qo=Sr({start:function(o){return Gn.start(o)},set:function(o){var i=o.interaction,p=o.state,m=o.rect,S=o.edges,I=p.options;if(S){var G=Ee(nn(I.min,i,o.coords))||io,ae=Ee(nn(I.max,i,o.coords))||Jn;p.options={endOnly:I.endOnly,inner:re({},Gn.noInner),outer:re({},Gn.noOuter)},S.top?(p.options.inner.top=m.bottom-G.height,p.options.outer.top=m.bottom-ae.height):S.bottom&&(p.options.inner.bottom=m.top+G.height,p.options.outer.bottom=m.top+ae.height),S.left?(p.options.inner.left=m.right-G.width,p.options.outer.left=m.right-ae.width):S.right&&(p.options.inner.right=m.left+G.width,p.options.outer.right=m.left+ae.width),Gn.set(o),p.options=I}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ci={start:function(o){var i,p=o.interaction,m=o.interactable,S=o.element,I=o.rect,G=o.state,ae=o.startOffset,xe=G.options,je=xe.offsetWithOrigin?function(Ba){var Ga=Ba.interaction.element,Ua=da(se(Ba.state.options.origin,null,null,[Ga])),Qa=Ua||Ae(Ba.interactable,Ga,Ba.interaction.prepared.name);return Qa}(o):{x:0,y:0};if(xe.offset==="startCoords")i={x:p.coords.start.page.x,y:p.coords.start.page.y};else{var Ce=se(xe.offset,m,S,[p]);(i=da(Ce)||{x:0,y:0}).x+=je.x,i.y+=je.y}var aa=xe.relativePoints;G.offsets=I&&aa&&aa.length?aa.map(function(Ba,Ga){return{index:Ga,relativePoint:Ba,x:ae.left-I.width*Ba.x+i.x,y:ae.top-I.height*Ba.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(o){var i=o.interaction,p=o.coords,m=o.state,S=m.options,I=m.offsets,G=Ae(i.interactable,i.element,i.prepared.name),ae=re({},p),xe=[];S.offsetWithOrigin||(ae.x-=G.x,ae.y-=G.y);for(var je=0,Ce=I;je<Ce.length;je++)for(var aa=Ce[je],Ba=ae.x-aa.x,Ga=ae.y-aa.y,Ua=0,Qa=S.targets.length;Ua<Qa;Ua++){var bl=S.targets[Ua],vl=void 0;(vl=_.func(bl)?bl(Ba,Ga,i._proxy,aa,Ua):bl)&&xe.push({x:(_.number(vl.x)?vl.x:Ba)+aa.x,y:(_.number(vl.y)?vl.y:Ga)+aa.y,range:_.number(vl.range)?vl.range:S.range,source:bl,index:Ua,offset:aa})}for(var El={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Hl=0;Hl<xe.length;Hl++){var Cl=xe[Hl],zl=Cl.range,Al=Cl.x-ae.x,Hr=Cl.y-ae.y,rr=Ka(Al,Hr),Gr=rr<=zl;zl===1/0&&El.inRange&&El.range!==1/0&&(Gr=!1),El.target&&!(Gr?El.inRange&&zl!==1/0?rr/zl<El.distance/El.range:zl===1/0&&El.range!==1/0||rr<El.distance:!El.inRange&&rr<El.distance)||(El.target=Cl,El.distance=rr,El.range=zl,El.inRange=Gr,El.delta.x=Al,El.delta.y=Hr)}return El.inRange&&(p.x=El.target.x,p.y=El.target.y),m.closest=El,El},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Xn=Sr(ci,"snap"),ui={start:function(o){var i=o.state,p=o.edges,m=i.options;if(!p)return null;o.state={options:{targets:null,relativePoints:[{x:p.left?0:1,y:p.top?0:1}],offset:m.offset||"self",origin:{x:0,y:0},range:m.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],ci.start(o),i.offsets=o.state.offsets,o.state=i},set:function(o){var i=o.interaction,p=o.state,m=o.coords,S=p.options,I=p.offsets,G={x:m.x-I[0].x,y:m.y-I[0].y};p.options=re({},S),p.options.targets=[];for(var ae=0,xe=S.targets||[];ae<xe.length;ae++){var je=xe[ae],Ce=void 0;if(Ce=_.func(je)?je(G.x,G.y,i):je){for(var aa=0,Ba=p.targetFields;aa<Ba.length;aa++){var Ga=Ba[aa],Ua=Ga[0],Qa=Ga[1];if(Ua in Ce||Qa in Ce){Ce.x=Ce[Ua],Ce.y=Ce[Qa];break}}p.options.targets.push(Ce)}}var bl=ci.set(o);return p.options=S,bl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Wo=Sr(ui,"snapSize"),Ii={aspectRatio:Uo,restrictEdges:ro,restrict:Mi,restrictRect:no,restrictSize:qo,snapEdges:Sr({start:function(o){var i=o.edges;return i?(o.state.targetFields=o.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],ui.start(o)):null},set:ui.set,defaults:re(Tr(ui.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Xn,snapSize:Wo,spring:si,avoid:si,transform:si,rubberband:si},Ko={id:"modifiers",install:function(o){var i=o.interactStatic;for(var p in o.usePlugin(Dr),o.usePlugin(Ho),i.modifiers=Ii,Ii){var m=Ii[p],S=m._defaults,I=m._methods;S._methods=I,o.defaults.perAction[p]=S}}},Go=Ko,oo=function(o){y(p,o);var i=O(p);function p(m,S,I,G,ae,xe){var je;if(s(this,p),H(D(je=i.call(this,ae)),I),I!==S&&H(D(je),S),je.timeStamp=xe,je.originalEvent=I,je.type=m,je.pointerId=ue(S),je.pointerType=La(S),je.target=G,je.currentTarget=null,m==="tap"){var Ce=ae.getPointerIndex(S);je.dt=je.timeStamp-ae.pointers[Ce].downTime;var aa=je.timeStamp-ae.tapTime;je.double=!!ae.prevTap&&ae.prevTap.type!=="doubletap"&&ae.prevTap.target===je.target&&aa<500}else m==="doubletap"&&(je.dt=S.timeStamp-ae.tapTime,je.double=!0);return je}return f(p,[{key:"_subtractOrigin",value:function(m){var S=m.x,I=m.y;return this.pageX-=S,this.pageY-=I,this.clientX-=S,this.clientY-=I,this}},{key:"_addOrigin",value:function(m){var S=m.x,I=m.y;return this.pageX+=S,this.pageY+=I,this.clientX+=S,this.clientY+=I,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),p}(X),Zn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(o){o.pointerEvents=Zn,o.defaults.actions.pointerEvents=Zn.defaults,re(o.actions.phaselessTypes,Zn.types)},listeners:{"interactions:new":function(o){var i=o.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(o){var i=o.down,p=o.pointerInfo;!i&&p.hold||(p.hold={duration:1/0,timeout:null})},"interactions:move":function(o,i){var p=o.interaction,m=o.pointer,S=o.event,I=o.eventTarget;o.duplicate||p.pointerIsDown&&!p.pointerWasMoved||(p.pointerIsDown&&Li(o),Cn({interaction:p,pointer:m,event:S,eventTarget:I,type:"move"},i))},"interactions:down":function(o,i){(function(p,m){for(var S=p.interaction,I=p.pointer,G=p.event,ae=p.eventTarget,xe=p.pointerIndex,je=S.pointers[xe].hold,Ce=la(ae),aa={interaction:S,pointer:I,event:G,eventTarget:ae,type:"hold",targets:[],path:Ce,node:null},Ba=0;Ba<Ce.length;Ba++){var Ga=Ce[Ba];aa.node=Ga,m.fire("pointerEvents:collect-targets",aa)}if(aa.targets.length){for(var Ua=1/0,Qa=0,bl=aa.targets;Qa<bl.length;Qa++){var vl=bl[Qa].eventable.options.holdDuration;vl<Ua&&(Ua=vl)}je.duration=Ua,je.timeout=setTimeout(function(){Cn({interaction:S,eventTarget:ae,pointer:I,event:G,type:"hold"},m)},Ua)}})(o,i),Cn(o,i)},"interactions:up":function(o,i){Li(o),Cn(o,i),function(p,m){var S=p.interaction,I=p.pointer,G=p.event,ae=p.eventTarget;S.pointerWasMoved||Cn({interaction:S,eventTarget:ae,pointer:I,event:G,type:"tap"},m)}(o,i)},"interactions:cancel":function(o,i){Li(o),Cn(o,i)}},PointerEvent:oo,fire:Cn,collectEventTargets:Oi,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 Cn(o,i){var p=o.interaction,m=o.pointer,S=o.event,I=o.eventTarget,G=o.type,ae=o.targets,xe=ae===void 0?Oi(o,i):ae,je=new oo(G,m,S,I,p,i.now());i.fire("pointerEvents:new",{pointerEvent:je});for(var Ce={interaction:p,pointer:m,event:S,eventTarget:I,targets:xe,type:G,pointerEvent:je},aa=0;aa<xe.length;aa++){var Ba=xe[aa];for(var Ga in Ba.props||{})je[Ga]=Ba.props[Ga];var Ua=Ae(Ba.eventable,Ba.node);if(je._subtractOrigin(Ua),je.eventable=Ba.eventable,je.currentTarget=Ba.node,Ba.eventable.fire(je),je._addOrigin(Ua),je.immediatePropagationStopped||je.propagationStopped&&aa+1<xe.length&&xe[aa+1].node!==je.currentTarget)break}if(i.fire("pointerEvents:fired",Ce),G==="tap"){var Qa=je.double?Cn({interaction:p,pointer:m,event:S,eventTarget:I,type:"doubletap"},i):je;p.prevTap=Qa,p.tapTime=Qa.timeStamp}return je}function Oi(o,i){var p=o.interaction,m=o.pointer,S=o.event,I=o.eventTarget,G=o.type,ae=p.getPointerIndex(m),xe=p.pointers[ae];if(G==="tap"&&(p.pointerWasMoved||!xe||xe.downTarget!==I))return[];for(var je=la(I),Ce={interaction:p,pointer:m,event:S,eventTarget:I,type:G,path:je,targets:[],node:null},aa=0;aa<je.length;aa++){var Ba=je[aa];Ce.node=Ba,i.fire("pointerEvents:collect-targets",Ce)}return G==="hold"&&(Ce.targets=Ce.targets.filter(function(Ga){var Ua,Qa;return Ga.eventable.options.holdDuration===((Ua=p.pointers[ae])==null||(Qa=Ua.hold)==null?void 0:Qa.duration)})),Ce.targets}function Li(o){var i=o.interaction,p=o.pointerIndex,m=i.pointers[p].hold;m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=null)}var Yo=Object.freeze({__proto__:null,default:Zn});function Jo(o){var i=o.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Xo={id:"pointer-events/holdRepeat",install:function(o){o.usePlugin(Zn);var i=o.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=o.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(o,i){return o["pointerEvents:".concat(i)]=Jo,o},{"pointerEvents:new":function(o){var i=o.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(o,i){var p=o.interaction,m=o.pointerEvent,S=o.eventTarget,I=o.targets;if(m.type==="hold"&&I.length){var G=I[0].eventable.options.holdRepeatInterval;G<=0||(p.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:p,eventTarget:S,type:"hold",pointer:m,event:m},i)},G))}}})},di=Xo,Zo={id:"pointer-events/interactableTargets",install:function(o){var i=o.Interactable;i.prototype.pointerEvents=function(m){return re(this.events.options,m),this};var p=i.prototype._backCompatOption;i.prototype._backCompatOption=function(m,S){var I=p.call(this,m,S);return I===this&&(this.events.options[m]=S),I}},listeners:{"pointerEvents:collect-targets":function(o,i){var p=o.targets,m=o.node,S=o.type,I=o.eventTarget;i.interactables.forEachMatch(m,function(G){var ae=G.events,xe=ae.options;ae.types[S]&&ae.types[S].length&&G.testIgnoreAllow(xe,m,I)&&p.push({node:m,eventable:ae,props:{interactable:G}})})},"interactable:new":function(o){var i=o.interactable;i.events.getRect=function(p){return i.getRect(p)}},"interactable:set":function(o,i){var p=o.interactable,m=o.options;re(p.events.options,i.pointerEvents.defaults),re(p.events.options,m.pointerEvents||{})}}},Qo=Zo,et={id:"pointer-events",install:function(o){o.usePlugin(Yo),o.usePlugin(di),o.usePlugin(Qo)}},at=et,to={id:"reflow",install:function(o){var i=o.Interactable;o.actions.phases.reflow=!0,i.prototype.reflow=function(p){return function(m,S,I){for(var G=m.getAllElements(),ae=I.window.Promise,xe=ae?[]:null,je=function(){var aa=G[Ce],Ba=m.getRect(aa);if(!Ba)return 1;var Ga,Ua=Xe(I.interactions.list,function(vl){return vl.interacting()&&vl.interactable===m&&vl.element===aa&&vl.prepared.name===S.name});if(Ua)Ua.move(),xe&&(Ga=Ua._reflowPromise||new ae(function(vl){Ua._reflowResolve=vl}));else{var Qa=Ee(Ba),bl=function(vl){return{coords:vl,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:Qa.x,y:Qa.y},client:{x:Qa.x,y:Qa.y},timeStamp:I.now()});Ga=function(vl,El,Hl,Cl,zl){var Al=vl.interactions.new({pointerType:"reflow"}),Hr={interaction:Al,event:zl,pointer:zl,eventTarget:Hl,phase:"reflow"};Al.interactable=El,Al.element=Hl,Al.prevEvent=zl,Al.updatePointer(zl,zl,Hl,!0),ye(Al.coords.delta),pa(Al.prepared,Cl),Al._doPhase(Hr);var rr=vl.window,Gr=rr.Promise,on=Gr?new Gr(function(wn){Al._reflowResolve=wn}):void 0;return Al._reflowPromise=on,Al.start(Cl,El,Hl),Al._interacting?(Al.move(Hr),Al.end(zl)):(Al.stop(),Al._reflowResolve()),Al.removePointer(zl,zl),on}(I,m,aa,S,bl)}xe&&xe.push(Ga)},Ce=0;Ce<G.length&&!je();Ce++);return xe&&ae.all(xe).then(function(){return m})}(this,p,o)}},listeners:{"interactions:stop":function(o,i){var p=o.interaction;p.pointerType==="reflow"&&(p._reflowResolve&&p._reflowResolve(),function(m,S){m.splice(m.indexOf(S),1)}(i.interactions.list,p))}}},pi=to;if(jr.use(ar),jr.use(Vl),jr.use(at),jr.use(Nn),jr.use(Go),jr.use(fr),jr.use(ol),jr.use(he),jr.use(pi),jr.default=jr,t(a)==="object"&&a)try{a.exports=jr}catch{}return jr.default=jr,jr})}(Pi,Pi.exports)),Pi.exports}var h1=f1();const Ts=A.getDefaultExportFromCjs(h1),Mo=e.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(a,{expose:l,emit:r}){const n=a,t=r,s=e.inject($c),v=e.inject(Vc);if(!s)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const f=e.shallowRef(null),d=e.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 y=!1,g=!1,c=NaN,D=NaN,O=NaN,k=NaN,K=-1,M=-1,R=-1,j=-1,E=n.x,w=n.y,x=n.w,b=n.h;const _=e.ref(),$=e.reactive({i:e.toRef(n,"i"),state:d,wrapper:_,calcXY:se});function F(me){Ue(me)}function J(){sa()}function ce(me){cn(n.isDraggable)&&(d.draggable=me)}function be(me){cn(n.isResizable)&&(d.resizable=me)}function Me(me){cn(n.isBounded)&&(d.bounded=me)}function V(me){d.transformScale=me}function fe(me){d.rowHeight=me}function le(me){d.maxRows=me}function pe(){d.rtl=Ds()==="rtl",sa()}function De(me){d.cols=Math.floor(me)}s.increaseItem($),e.onBeforeMount(()=>{d.rtl=Ds()==="rtl"}),e.onMounted(()=>{s.responsive&&s.lastBreakpoint?d.cols=Uc(s.lastBreakpoint,s.cols):d.cols=s.colNum,d.rowHeight=s.rowHeight,d.containerWidth=s.width!==null?s.width:100,d.margin=s.margin!==void 0?s.margin.map(Number):[10,10],d.maxRows=s.maxRows,cn(n.isDraggable)?d.draggable=s.isDraggable:d.draggable=n.isDraggable,cn(n.isResizable)?d.resizable=s.isResizable:d.resizable=n.isResizable,cn(n.isBounded)?d.bounded=s.isBounded:d.bounded=n.isBounded,d.transformScale=s.transformScale,d.useCssTransforms=s.useCssTransforms,d.useStyleCursor=s.useStyleCursor,e.watchEffect(()=>{E=n.x,w=n.y,b=n.h,x=n.w,Yr(Fe)}),v.on("updateWidth",F),v.on("compact",J),v.on("setDraggable",ce),v.on("setResizable",be),v.on("setBounded",Me),v.on("setTransformScale",V),v.on("setRowHeight",fe),v.on("setMaxRows",le),v.on("directionchange",pe),v.on("setColNum",De)}),e.onBeforeUnmount(()=>{v.off("updateWidth",F),v.off("compact",J),v.off("setDraggable",ce),v.off("setResizable",be),v.off("setBounded",Me),v.off("setTransformScale",V),v.off("setRowHeight",fe),v.off("setMaxRows",le),v.off("directionchange",pe),v.off("setColNum",De),f.value&&(f.value.unset(),f.value=null),s.decreaseItem($)}),l({state:d,wrapper:_});const Ve=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ge=e.computed(()=>d.resizable&&!n.static),N=e.computed(()=>s.isMirrored?!d.rtl:d.rtl),de=e.computed(()=>(d.draggable||d.resizable)&&!n.static),U=n1("item"),Se=e.computed(()=>({[U.b()]:!0,[U.bm("resizable")]:ge.value,[U.bm("static")]:n.static,[U.bm("resizing")]:d.isResizing,[U.bm("dragging")]:d.isDragging,[U.bm("transform")]:d.useCssTransforms,[U.bm("rtl")]:N.value,[U.bm("no-touch")]:Ve&&de.value})),Oe=e.computed(()=>[U.be("resizer"),N.value&&U.bem("resizer","rtl")].filter(Boolean));e.watch(()=>n.isDraggable,me=>{d.draggable=me}),e.watch(()=>n.static,()=>{Yr(H),Yr(ye)}),e.watch(()=>d.draggable,()=>{Yr(H)}),e.watch(()=>n.isResizable,me=>{d.resizable=me}),e.watch(()=>n.isBounded,me=>{d.bounded=me}),e.watch(()=>d.resizable,()=>{Yr(ye)}),e.watch(()=>d.rowHeight,()=>{Yr(Fe),Yr(la)}),e.watch([()=>d.cols,()=>d.containerWidth],()=>{Yr(ye),Yr(Fe),Yr(la)}),e.watch([()=>n.minH,()=>n.maxH,()=>n.minW,()=>n.maxW],()=>{Yr(ye)}),e.watch(N,()=>{Yr(ye),Yr(Fe)}),e.watch([()=>s.margin,()=>s.margin[0],()=>s.margin[1]],()=>{const me=s.margin;!me||me[0]===d.margin[0]&&me[1]===d.margin[1]||(d.margin=me.map(Number),Yr(Fe),Yr(la))});function Fe(){n.x+n.w>d.cols?(E=0,x=n.w>d.cols?d.cols:n.w):(E=n.x,x=n.w);const me=ca(E,w,x,b);d.isDragging&&(me.top=d.dragging.top,N.value?me.right=d.dragging.left:me.left=d.dragging.left),d.isResizing&&(me.width=d.resizing.width,me.height=d.resizing.height);let va;d.useCssTransforms?N.value?va=e1(me.top,me.right,me.width,me.height):va=Q6(me.top,me.left,me.width,me.height):N.value?va=l1(me.top,me.right,me.width,me.height):va=a1(me.top,me.left,me.width,me.height),d.style=va}function la(){const me={};for(const va of["width","height"]){const Qe=d.style[va].match(/^(\d+)px$/);if(!Qe)return;me[va]=Qe[1]}t("container-resized",n.i,n.h,n.w,me.height,me.width)}function Da(me){if(n.static)return;const va=me.type;if(va==="resizestart"&&d.isResizing||va!=="resizestart"&&!d.isResizing)return;const Qe=Es(me);if(cn(Qe))return;const{x:ue,y:ma}=Qe,Te={width:0,height:0};let Ke;switch(va){case"resizestart":{ye(),K=x,M=b,Ke=ca(E,w,x,b),Te.width=Ke.width,Te.height=Ke.height,d.resizing=Te,d.isResizing=!0;break}case"resizemove":{!me.edges.right&&!me.edges.left&&(O=ue),!me.edges.top&&!me.edges.bottom&&(k=ma);const Na=Cs(O,k,ue,ma);N.value?Te.width=d.resizing.width-Na.deltaX/d.transformScale:Te.width=d.resizing.width+Na.deltaX/d.transformScale,Te.height=d.resizing.height+Na.deltaY/d.transformScale,d.resizing=Te;break}case"resizeend":{Ke=ca(E,w,x,b),Te.width=Ke.width,Te.height=Ke.height,d.resizing={width:-1,height:-1},d.isResizing=!1;break}}Ke=Ae(Te.height,Te.width),Ke.w<n.minW&&(Ke.w=n.minW),Ke.w>n.maxW&&(Ke.w=n.maxW),Ke.h<n.minH&&(Ke.h=n.minH),Ke.h>n.maxH&&(Ke.h=n.maxH),Ke.h<1&&(Ke.h=1),Ke.w<1&&(Ke.w=1),O=ue,k=ma,(x!==Ke.w||b!==Ke.h)&&t("resize",n.i,Ke.h,Ke.w,Te.height,Te.width),me.type==="resizeend"&&(K!==x||M!==b)&&t("resized",n.i,Ke.h,Ke.w,Te.height,Te.width),v.emit("resizeEvent",me.type,n.i,E,w,Ke.h,Ke.w)}function re(me){if(n.static||d.isResizing)return;const va=me.type;if(va==="dragstart"&&d.isDragging||va!=="dragstart"&&!d.isDragging)return;const Qe=Es(me);if(cn(Qe))return;const{x:ue,y:ma}=Qe,Te=me.target;if(!Te.offsetParent)return;const Ke={top:0,left:0};switch(va){case"dragstart":{R=E,j=w;const Ca=Te.offsetParent.getBoundingClientRect(),Ze=Te.getBoundingClientRect(),La=Ze.left/d.transformScale,ie=Ca.left/d.transformScale,X=Ze.right/d.transformScale,Z=Ca.right/d.transformScale,q=Ze.top/d.transformScale,Be=Ca.top/d.transformScale;N.value?Ke.left=(X-Z)*-1:Ke.left=La-ie,Ke.top=q-Be,d.dragging=Ke,d.isDragging=!0;break}case"dragmove":{const Ca=Cs(c,D,ue,ma);if(N.value?Ke.left=d.dragging.left-Ca.deltaX/d.transformScale:Ke.left=d.dragging.left+Ca.deltaX/d.transformScale,Ke.top=d.dragging.top+Ca.deltaY/d.transformScale,d.bounded){const Ze=Te.offsetParent.clientHeight-Ee(n.h,d.rowHeight,d.margin[1]);Ke.top=te(Ke.top,0,Ze);const La=da(),ie=d.containerWidth-Ee(n.w,La,d.margin[0]);Ke.left=te(Ke.left,0,ie)}d.dragging=Ke;break}case"dragend":{const Ca=Te.offsetParent.getBoundingClientRect(),Ze=Te.getBoundingClientRect(),La=Ze.left/d.transformScale,ie=Ca.left/d.transformScale,X=Ze.right/d.transformScale,Z=Ca.right/d.transformScale,q=Ze.top/d.transformScale,Be=Ca.top/d.transformScale;N.value?Ke.left=(X-Z)*-1:Ke.left=La-ie,Ke.top=q-Be,d.dragging={top:-1,left:-1},d.isDragging=!1;break}}let Na;N.value,Na=se(Ke.top,Ke.left),c=ue,D=ma,(E!==Na.x||w!==Na.y)&&t("move",n.i,Na.x,Na.y),me.type==="dragend"&&(R!==E||j!==w)&&t("moved",n.i,Na.x,Na.y),v.emit("dragEvent",me.type,n.i,Na.x,Na.y,b,x)}function ca(me,va,Qe,ue){const ma=da();let Te;return N.value?Te={right:Math.round(ma*me+(me+1)*d.margin[0]),top:Math.round(d.rowHeight*va+(va+1)*d.margin[1]),width:Qe===1/0?Qe:Math.round(ma*Qe+Math.max(0,Qe-1)*d.margin[0]),height:ue===1/0?ue:Math.round(d.rowHeight*ue+Math.max(0,ue-1)*d.margin[1])}:Te={left:Math.round(ma*me+(me+1)*d.margin[0]),top:Math.round(d.rowHeight*va+(va+1)*d.margin[1]),width:Qe===1/0?Qe:Math.round(ma*Qe+Math.max(0,Qe-1)*d.margin[0]),height:ue===1/0?ue:Math.round(d.rowHeight*ue+Math.max(0,ue-1)*d.margin[1])},Te}function se(me,va){const Qe=da();let ue=Math.round((va-d.margin[0])/(Qe+d.margin[0])),ma=Math.round((me-d.margin[1])/(d.rowHeight+d.margin[1]));return ue=Math.max(Math.min(ue,d.cols-x),0),ma=Math.max(Math.min(ma,d.maxRows-b),0),{x:ue,y:ma}}function da(){return(d.containerWidth-d.margin[0]*(d.cols+1))/d.cols}function Ee(me,va,Qe){return Number.isFinite(me)?Math.round(va*me+Math.max(0,me-1)*Qe):me}function te(me,va,Qe){return Math.max(Math.min(me,Qe),va)}function Ae(me,va,Qe=!1){const ue=da();let ma=Math.round((va+d.margin[0])/(ue+d.margin[0])),Te=0;return Qe?Te=Math.ceil((me+d.margin[1])/(d.rowHeight+d.margin[1])):Te=Math.round((me+d.margin[1])/(d.rowHeight+d.margin[1])),ma=Math.max(Math.min(ma,d.cols-E),0),Te=Math.max(Math.min(Te,d.maxRows-w),0),{w:ma,h:Te}}function Ue(me,va){d.containerWidth=me}function sa(){Fe()}function Ka(){!f.value&&_.value&&(f.value=Ts(_.value),d.useStyleCursor||f.value.styleCursor(!1))}const L=ws(re);function H(){if(Ka(),!!f.value)if(d.draggable&&!n.static){const me={ignoreFrom:n.dragIgnoreFrom,allowFrom:n.dragAllowFrom,...n.dragOption};f.value.draggable(me),y||(y=!0,f.value.on("dragstart dragmove dragend",va=>{va.type==="dragmove"?L(va):re(va)}))}else f.value.draggable({enabled:!1})}const Q=ws(Da);function ye(){if(Ka(),!!f.value)if(d.resizable&&!n.static){const me=ca(0,0,n.maxW,n.maxH),va=ca(0,0,n.minW,n.minH),Qe={edges:{left:N.value?`.${Oe.value[0]}`:!1,right:N.value?!1:`.${Oe.value[0]}`,bottom:`.${Oe.value[0]}`,top:!1},ignoreFrom:n.resizeIgnoreFrom,restrictSize:{min:{height:va.height*d.transformScale,width:va.width*d.transformScale},max:{height:me.height*d.transformScale,width:me.width*d.transformScale}},...n.resizeOption};n.preserveAspectRatio&&(Qe.modifiers=[Ts.modifiers.aspectRatio({ratio:"preserve"})]),f.value.resizable(Qe),g||(g=!0,f.value.on("resizestart resizemove resizeend",ue=>{ue.type==="resizemove"?Q(ue):Da(ue)}))}else f.value.resizable({enabled:!1})}return(me,va)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:_,class:e.normalizeClass(Se.value),style:e.normalizeStyle(d.style)},[e.renderSlot(me.$slots,"default"),ge.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Oe.value)},null,2)):e.createCommentVNode("",!0)],6))}}),ti=typeof window<"u";var Ns;ti&&(Ns=window==null?void 0:window.navigator)!=null&&Ns.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function As(a){return a!=null}function zs(){}const v1=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(v1)));const m1=ti&&("ontouchstart"in window||g1()>0),y1=m1?"pointerdown":"click";function g1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function b1(a,l,r=window.Event){const{type:n,bubbles:t=!1,cancelable:s=!1,...v}=l;if(!As(n)||n==="")return!1;let f;return As(r)?f=new r(n,{bubbles:t,cancelable:s}):(f=document.createEvent("HTMLEvents"),f.initEvent(n,t,s)),Object.assign(f,v),a.dispatchEvent(f)}const k1="clickoutside",x1=new Set;ti&&document.addEventListener(y1,a=>{const l=a.target,r=a.composedPath&&a.composedPath();x1.forEach(n=>{n!==l&&(r?!r.includes(n):!n.contains(l))&&(!n.__transferElement||n.__transferElement!==l&&!n.__transferElement.contains(l))&&b1(n,{type:k1})})},!0);const w1=[["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 wo;if(ti){for(const a of w1)if(a[1]in document){wo=a;break}}e.computed(()=>!1);const _1=new Set,S1=new WeakMap;if(ti&&wo){const a=wo[2],l=wo[4];document.addEventListener(l,()=>{if(_1.forEach(r=>{r.value=!1}),document[a]){const r=S1.get(document[a]);r&&(r.value=!0)}},!1)}const Wc=new Map;Wc.set("x",0);Wc.set("y",0);var ii=[],E1=function(){return ii.some(function(a){return a.activeTargets.length>0})},C1=function(){return ii.some(function(a){return a.skippedTargets.length>0})},Ms="ResizeObserver loop completed with undelivered notifications.",D1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:Ms}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=Ms),window.dispatchEvent(a)},Yi;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Yi||(Yi={}));var oi=function(a){return Object.freeze(a)},B1=function(){function a(l,r){this.inlineSize=l,this.blockSize=r,oi(this)}return a}(),Kc=function(){function a(l,r,n,t){return this.x=l,this.y=r,this.width=n,this.height=t,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,oi(this)}return a.prototype.toJSON=function(){var l=this,r=l.x,n=l.y,t=l.top,s=l.right,v=l.bottom,f=l.left,d=l.width,y=l.height;return{x:r,y:n,top:t,right:s,bottom:v,left:f,width:d,height:y}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Bt=function(a){return a instanceof SVGElement&&"getBBox"in a},Gc=function(a){if(Bt(a)){var l=a.getBBox(),r=l.width,n=l.height;return!r&&!n}var t=a,s=t.offsetWidth,v=t.offsetHeight;return!(s||v||a.getClientRects().length)},Is=function(a){var l;if(a instanceof Element)return!0;var r=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(r&&a instanceof r.Element)},T1=function(a){switch(a.tagName){case"INPUT":if(a.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Wi=typeof window<"u"?window:{},go=new WeakMap,Os=/auto|scroll/,N1=/^tb|vertical/,A1=/msie|trident/i.test(Wi.navigator&&Wi.navigator.userAgent),Bn=function(a){return parseFloat(a||"0")},Ei=function(a,l,r){return a===void 0&&(a=0),l===void 0&&(l=0),r===void 0&&(r=!1),new B1((r?l:a)||0,(r?a:l)||0)},Ls=oi({devicePixelContentBoxSize:Ei(),borderBoxSize:Ei(),contentBoxSize:Ei(),contentRect:new Kc(0,0,0,0)}),Yc=function(a,l){if(l===void 0&&(l=!1),go.has(a)&&!l)return go.get(a);if(Gc(a))return go.set(a,Ls),Ls;var r=getComputedStyle(a),n=Bt(a)&&a.ownerSVGElement&&a.getBBox(),t=!A1&&r.boxSizing==="border-box",s=N1.test(r.writingMode||""),v=!n&&Os.test(r.overflowY||""),f=!n&&Os.test(r.overflowX||""),d=n?0:Bn(r.paddingTop),y=n?0:Bn(r.paddingRight),g=n?0:Bn(r.paddingBottom),c=n?0:Bn(r.paddingLeft),D=n?0:Bn(r.borderTopWidth),O=n?0:Bn(r.borderRightWidth),k=n?0:Bn(r.borderBottomWidth),K=n?0:Bn(r.borderLeftWidth),M=c+y,R=d+g,j=K+O,E=D+k,w=f?a.offsetHeight-E-a.clientHeight:0,x=v?a.offsetWidth-j-a.clientWidth:0,b=t?M+j:0,_=t?R+E:0,$=n?n.width:Bn(r.width)-b-x,F=n?n.height:Bn(r.height)-_-w,J=$+M+x+j,ce=F+R+w+E,be=oi({devicePixelContentBoxSize:Ei(Math.round($*devicePixelRatio),Math.round(F*devicePixelRatio),s),borderBoxSize:Ei(J,ce,s),contentBoxSize:Ei($,F,s),contentRect:new Kc(c,d,$,F)});return go.set(a,be),be},Jc=function(a,l,r){var n=Yc(a,r),t=n.borderBoxSize,s=n.contentBoxSize,v=n.devicePixelContentBoxSize;switch(l){case Yi.DEVICE_PIXEL_CONTENT_BOX:return v;case Yi.BORDER_BOX:return t;default:return s}},z1=function(){function a(l){var r=Yc(l);this.target=l,this.contentRect=r.contentRect,this.borderBoxSize=oi([r.borderBoxSize]),this.contentBoxSize=oi([r.contentBoxSize]),this.devicePixelContentBoxSize=oi([r.devicePixelContentBoxSize])}return a}(),Xc=function(a){if(Gc(a))return 1/0;for(var l=0,r=a.parentNode;r;)l+=1,r=r.parentNode;return l},M1=function(){var a=1/0,l=[];ii.forEach(function(s){if(s.activeTargets.length!==0){var v=[];s.activeTargets.forEach(function(f){var d=new z1(f.target),y=Xc(f.target);v.push(d),f.lastReportedSize=Jc(f.target,f.observedBox),y<a&&(a=y)}),l.push(function(){s.callback.call(s.observer,v,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var r=0,n=l;r<n.length;r++){var t=n[r];t()}return a},Rs=function(a){ii.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(r){r.isActive()&&(Xc(r.target)>a?l.activeTargets.push(r):l.skippedTargets.push(r))})})},I1=function(){var a=0;for(Rs(a);E1();)a=M1(),Rs(a);return C1()&&D1(),a>0},ut,Zc=[],O1=function(){return Zc.splice(0).forEach(function(a){return a()})},L1=function(a){if(!ut){var l=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return O1()}).observe(r,n),ut=function(){r.textContent="".concat(l?l--:l++)}}Zc.push(a),ut()},R1=function(a){L1(function(){requestAnimationFrame(a)})},_o=0,$1=function(){return!!_o},V1=250,F1={attributes:!0,characterData:!0,childList:!0,subtree:!0},$s=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Vs=function(a){return a===void 0&&(a=0),Date.now()+a},dt=!1,P1=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var r=this;if(l===void 0&&(l=V1),!dt){dt=!0;var n=Vs(l);R1(function(){var t=!1;try{t=I1()}finally{if(dt=!1,l=n-Vs(),!$1())return;t?r.run(1e3):l>0?r.run(l):r.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,r=function(){return l.observer&&l.observer.observe(document.body,F1)};document.body?r():Wi.addEventListener("DOMContentLoaded",r)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),$s.forEach(function(r){return Wi.addEventListener(r,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),$s.forEach(function(r){return Wi.removeEventListener(r,l.listener,!0)}),this.stopped=!0)},a}(),St=new P1,Fs=function(a){!_o&&a>0&&St.start(),_o+=a,!_o&&St.stop()},j1=function(a){return!Bt(a)&&!T1(a)&&getComputedStyle(a).display==="inline"},H1=function(){function a(l,r){this.target=l,this.observedBox=r||Yi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=Jc(this.target,this.observedBox,!0);return j1(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),U1=function(){function a(l,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=r}return a}(),bo=new WeakMap,Ps=function(a,l){for(var r=0;r<a.length;r+=1)if(a[r].target===l)return r;return-1},ko=function(){function a(){}return a.connect=function(l,r){var n=new U1(l,r);bo.set(l,n)},a.observe=function(l,r,n){var t=bo.get(l),s=t.observationTargets.length===0;Ps(t.observationTargets,r)<0&&(s&&ii.push(t),t.observationTargets.push(new H1(r,n&&n.box)),Fs(1),St.schedule())},a.unobserve=function(l,r){var n=bo.get(l),t=Ps(n.observationTargets,r),s=n.observationTargets.length===1;t>=0&&(s&&ii.splice(ii.indexOf(n),1),n.observationTargets.splice(t,1),Fs(-1))},a.disconnect=function(l){var r=this,n=bo.get(l);n.observationTargets.slice().forEach(function(t){return r.unobserve(l,t.target)}),n.activeTargets.splice(0,n.activeTargets.length)},a}(),q1=function(){function a(l){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof l!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ko.connect(this,l)}return a.prototype.observe=function(l,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Is(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.observe(this,l,r)},a.prototype.unobserve=function(l){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Is(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.unobserve(this,l)},a.prototype.disconnect=function(){ko.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Io=new WeakMap;function W1(a){var l;for(let r=0,n=a.length;r<n;++r){const t=a[r],s=Io.get(t.target);if(typeof s=="function"){const{inlineSize:v,blockSize:f}=((l=t.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:d,offsetHeight:y}=t.target;s(Object.assign(t,{offsetWidth:d,offsetHeight:y,width:v??d,height:f??y}))}}}const Qc=new(ti&&window.ResizeObserver||q1)(W1);function js(a,l){Io.set(a,l),Qc.observe(a)}function Hs(a){Io.has(a)&&(Qc.unobserve(a),Io.delete(a))}function K1(a={}){let l=zs;const r=e.watch(()=>e.unref(a.target),t=>{l(),!(!t||typeof a.onResize!="function")&&(js(t,a.onResize),l=()=>{Hs(t),l=zs})},{immediate:!0}),n=()=>{r(),l()};return e.getCurrentScope()&&e.onScopeDispose(n),{observeResize:js,unobserveResize:Hs,unobserve:n}}const G1=e.ref(!1);e.computed(()=>G1.value);const Us="__theme_style__",pt="__theme_observer__",qs=e.reactive(new Map),Ws=new Map;e.watch(qs,()=>{if(!ti)return;Ws.clear();const a=document.head.querySelector(`#${Us}`);a&&document.head.removeChild(a);const l=document.createElement("style");let r=`.${pt} { width: 1px }`,n=1;for(const[t,[s,v]]of qs.entries())r+=` html.${s} .${pt}, .${v} .${pt} { width: ${++n}px }`,Ws.set(n,t);l.textContent=r,l.id=Us,document.head.appendChild(l)});const eu=e.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(a,{expose:l,emit:r}){const n=a,t=r,s=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),v=new Map,f=e.ref(n.layout),d=e.ref(),{observeResize:y,unobserveResize:g}=K1(),c=W6();c.on("resizeEvent",D),c.on("dragEvent",O),e.onBeforeMount(()=>{t("layout-before-mount",f.value)}),e.onMounted(()=>{t("layout-mounted",f.value),e.nextTick(()=>{r1(f.value),s.originalLayout=f.value,e.nextTick(()=>{F(),d.value&&y(d.value,K6(E,16)),wi(f.value,n.verticalCompact),t("layout-updated",f.value),j(),E()})})}),e.onBeforeUnmount(()=>{c.clearAll(),d.value&&g(d.value)});function D(ce,be,Me,V,fe,le){_(ce,be,Me,V,fe,le)}function O(ce,be,Me,V,fe,le){b(ce,be,Me,V,fe,le)}e.watch(()=>s.width,(ce,be)=>{e.nextTick(()=>{c.emit("updateWidth",ce),be===-1&&e.nextTick(()=>{t("layout-ready",f.value)}),j()})}),e.watch(()=>[n.layout,n.layout.length],()=>{f.value=n.layout,R()}),e.watch(()=>n.colNum,ce=>{c.emit("setColNum",ce)}),e.watch(()=>n.rowHeight,ce=>{c.emit("setRowHeight",ce)}),e.watch(()=>n.isDraggable,ce=>{c.emit("setDraggable",ce)}),e.watch(()=>n.isResizable,ce=>{c.emit("setResizable",ce)}),e.watch(()=>n.isBounded,ce=>{c.emit("setBounded",ce)}),e.watch(()=>n.transformScale,ce=>{c.emit("setTransformScale",ce)}),e.watch(()=>n.responsive,ce=>{ce||(t("update:layout",s.originalLayout),c.emit("setColNum",n.colNum)),E()}),e.watch(()=>n.maxRows,ce=>{c.emit("setMaxRows",ce)}),e.watch([()=>n.margin,()=>n.margin[1]],j),e.provide($c,e.reactive({...e.toRefs(n),...e.toRefs(s),increaseItem:k,decreaseItem:K})),e.provide(Vc,c),l({state:s,getItem:M,resizeEvent:_,dragEvent:b,layoutUpdate:R});function k(ce){v.set(ce.i,ce)}function K(ce){v.delete(ce.i)}function M(ce){return v.get(ce)}function R(){if(!cn(f.value)&&!cn(s.originalLayout)){if(f.value.length!==s.originalLayout.length){const ce=J(f.value,s.originalLayout);if(ce.length>0)if(f.value.length>s.originalLayout.length)s.originalLayout=s.originalLayout.concat(ce);else{const be=new Set(ce.map(Me=>Me.i));s.originalLayout=s.originalLayout.filter(Me=>!be.has(Me.i))}s.lastLayoutLength=f.value.length,F()}wi(f.value,n.verticalCompact),c.emit("updateWidth",s.width),j(),t("layout-updated",f.value)}}function j(){s.mergedStyle={height:w()}}function E(){d.value&&(s.width=d.value.offsetWidth),c.emit("resizeEvent")}function w(){if(!n.autoSize)return;const ce=parseFloat(n.margin[1]);return Y6(f.value)*(n.rowHeight+ce)+ce+"px"}let x;function b(ce,be,Me,V,fe,le){let pe=_s(f.value,be);cn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""}),ce==="dragstart"&&!n.verticalCompact&&(x=f.value.reduce((De,{i:Ve,x:ge,y:N})=>({...De,[Ve]:{x:ge,y:N}}),{})),ce==="dragmove"||ce==="dragstart"?(s.placeholder.i=be,s.placeholder.x=pe.x,s.placeholder.y=pe.y,s.placeholder.w=le,s.placeholder.h=fe,e.nextTick(()=>{s.isDragging=!0}),c.emit("updateWidth",s.width)):e.nextTick(()=>{s.isDragging=!1}),f.value=_t(f.value,pe,Me,V,!0,n.preventCollision),n.restoreOnDrag?(pe.static=!0,wi(f.value,n.verticalCompact,x),pe.static=!1):wi(f.value,n.verticalCompact),c.emit("compact"),j(),ce==="dragend"&&(x=void 0,t("layout-updated",f.value))}function _(ce,be,Me,V,fe,le){let pe=_s(f.value,be);cn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""});let De;if(n.preventCollision){const Ve=Pc(f.value,{...pe,w:le,h:fe}).filter(ge=>ge.i!==pe.i);if(De=Ve.length>0,De){let ge=1/0,N=1/0;Ve.forEach(de=>{de.x>pe.x&&(ge=Math.min(ge,de.x)),de.y>pe.y&&(N=Math.min(N,de.y))}),Number.isFinite(ge)&&(pe.w=ge-pe.x),Number.isFinite(N)&&(pe.h=N-pe.y)}}De||(pe.w=le,pe.h=fe),ce==="resizestart"||ce==="resizemove"?(s.placeholder.i=be,s.placeholder.x=Me,s.placeholder.y=V,s.placeholder.w=pe.w,s.placeholder.h=pe.h,e.nextTick(()=>{s.isDragging=!0}),c.emit("updateWidth",s.width)):ce&&e.nextTick(()=>{s.isDragging=!1}),n.responsive&&$(),wi(f.value,n.verticalCompact),c.emit("compact"),j(),ce==="resizeend"&&t("layout-updated",f.value)}function $(){const ce=s1(n.breakpoints,s.width);if(ce===s.lastBreakpoint)return;const be=Uc(ce,n.cols);!cn(s.lastBreakpoint)&&!s.layouts[s.lastBreakpoint]&&(s.layouts[s.lastBreakpoint]=wt(f.value));const Me=c1(s.originalLayout,s.layouts,n.breakpoints,ce,s.lastBreakpoint,be,n.verticalCompact);s.layouts[ce]=Me,s.lastBreakpoint!==ce&&t("breakpoint-changed",ce,Me),f.value=Me,t("update:layout",Me),s.lastBreakpoint=ce,c.emit("setColNum",be)}function F(){s.layouts=Object.assign({},n.responsiveLayouts)}function J(ce,be){const Me=new Set(be.map(pe=>pe.i)),V=new Set(ce.map(pe=>pe.i)),fe=ce.filter(pe=>!Me.has(pe.i)),le=be.filter(pe=>!V.has(pe.i));return fe.concat(le)}return(ce,be)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:d,class:"vgl-layout",style:e.normalizeStyle(s.mergedStyle)},[ce.$slots.default?e.renderSlot(ce.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(f.value,Me=>(e.openBlock(),e.createBlock(Mo,e.mergeProps({key:Me.i,ref_for:!0},Me),{default:e.withCtx(()=>[e.renderSlot(ce.$slots,"item",{item:Me})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Mo,{class:"vgl-item--placeholder",x:s.placeholder.x,y:s.placeholder.y,w:s.placeholder.w,h:s.placeholder.h,i:s.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,s.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.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(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();const Y1={key:0,class:"item-view-group"},J1={key:0,class:"item-view-group"},X1=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const r=A.useModelComp(A.pinia),{isEdit:n}=A.storeToRefs(r),t=Hn(A.pinia),s=l,v=a,f=e.ref(""),d=e.computed(()=>v==null?void 0:v.children),y=e.computed(()=>{var j,E,w,x;return((j=v==null?void 0:v.children)==null?void 0:j.length)>0&&((E=v==null?void 0:v.children)!=null&&E.every(b=>b==null?void 0:b.layout))?(x=(w=v==null?void 0:v.children)==null?void 0:w[0])==null?void 0:x.layout:"vertical"}),g=j=>{f.value=j,s("radioChange",j)},c=e.computed(()=>{var j,E;return((E=(j=v==null?void 0:v.children)==null?void 0:j[0])==null?void 0:E.isGridLayout)||!1}),D=e.ref((v==null?void 0:v.level)+1),O=e.computed(()=>{if(!(v!=null&&v.children)||!Array.isArray(v.children)||v.children.length<2)return!1;const j=v.children.some(w=>(w==null?void 0:w.name)==="测量系统配置表"&&(w==null?void 0:w.comp)==="ParentItem"),E=v.children.some(w=>(w==null?void 0:w.name)==="测量系统传递表"&&(w==null?void 0:w.comp)==="ParentItem");return j&&E}),k=e.computed(()=>{var E,w,x,b,_,$;let j=(E=v==null?void 0:v.children)==null?void 0:E.filter(F=>F==null?void 0:F.choice);if(t.setSelectTab((w=j==null?void 0:j[0])==null?void 0:w.choiceName),(f==null?void 0:f.value)!=="")return(x=v==null?void 0:v.children)==null?void 0:x.filter(F=>!(F!=null&&F.choiceName)||(F==null?void 0:F.choiceName)===(f==null?void 0:f.value));{let F=(_=(b=v==null?void 0:v.children)==null?void 0:b.find(J=>J==null?void 0:J.choice))==null?void 0:_.choiceName;return($=v==null?void 0:v.children)==null?void 0:$.filter(J=>!(J!=null&&J.choiceName)||(J==null?void 0:J.choiceName)===F)}}),K=j=>{const E=(j==null?void 0:j.menuFilter)||[];return Array.isArray(E)&&(E==null?void 0:E.some(w=>{const x=typeof w=="string"?w:JSON.stringify(w);return x==null?void 0:x.includes("HideGroup=Yes")}))};e.watch(()=>v==null?void 0:v.children,()=>{O.value},{deep:!0});const M=j=>{s("rowClick",j)},R=(j,E)=>{s("routeUrl",j,E)};return(j,E)=>c.value?(e.openBlock(),e.createBlock(e.unref(eu),{key:0,layout:d.value,"onUpdate:layout":E[0]||(E[0]=w=>d.value=w),"is-draggable":e.unref(n)==="edit","is-resizable":e.unref(n)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(w,x)=>(e.openBlock(),e.createBlock(e.unref(Mo),{key:w.i,x:w.x,y:w.y,"min-h":w.minH,"max-h":w.maxH,"min-w":w.minW,w:w.w,h:w.h,i:w.i},{default:e.withCtx(()=>{var b,_,$,F,J,ce,be,Me,V,fe,le,pe,De,Ve;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:x===((b=v==null?void 0:v.children)==null?void 0:b.length)-1?"0px":"24px"})},[(($=(_=w==null?void 0:w.component)==null?void 0:_.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((F=w==null?void 0:w.component)!=null&&F.name)?(e.openBlock(),e.createElementBlock("div",Y1,[e.createElementVNode("div",{class:"group-name-wrap",style:e.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"})},e.toDisplayString((J=w==null?void 0:w.component)==null?void 0:J.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)((ce=w==null?void 0:w.component)==null?void 0:ce.comp)),{pageLayout:y.value,config:{showIndex:(be=e.unref(tr)[x])==null?void 0:be.showIndex,allowMove:(Me=e.unref(tr)[x])==null?void 0:Me.allowMove,viewport:(V=e.unref(tr)[x])==null?void 0:V.viewport,status:(fe=e.unref(tr)[x])==null?void 0:fe.status},related:w==null?void 0:w.relatedTables,compName:w==null?void 0:w.component.name,compNames:e.unref(kc),itemData:(le=w==null?void 0:w.component)==null?void 0:le.compData,childItemData:(pe=w==null?void 0:w.component)==null?void 0:pe.itemChildData,key:e.unref(jn),cacheNewData:e.unref(bc),onChange:e.unref(To),index:(w==null?void 0:w.id)??x,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:(De=w==null?void 0:w.component)==null?void 0:De.tableId,allMapContents:e.unref(bt),children:(Ve=w==null?void 0:w.component)==null?void 0:Ve.children,level:D.value,onRowClick:M,onRouteUrl:R,onClickTrigger:e.unref(xc),onClickMainKey:e.unref(wc),onRadioChange:g},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"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(k.value,(w,x)=>{var b,_;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(w==null?void 0:w.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(x)===((b=v==null?void 0:v.children)==null?void 0:b.length)-1?"0px":"24px"})},[((_=w==null?void 0:w.comp)==null?void 0:_.toUpperCase())!=="TABLE"&&w.name?(e.openBlock(),e.createElementBlock("div",J1,[K(w)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"group-name-wrap",style:e.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"})},e.toDisplayString(w.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(w.comp)),{compName:w.name,groupNames:w==null?void 0:w.nameContents,config:{showIndex:w==null?void 0:w.showIndex,allowMove:w==null?void 0:w.allowMove,viewport:w==null?void 0:w.viewport,status:w==null?void 0:w.status},itemData:w==null?void 0:w.compData,related:w==null?void 0:w.relatedTables,childItemData:w==null?void 0:w.itemChildData,key:e.unref(jn),onChange:e.unref(To),index:(w==null?void 0:w.id)??x,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:w==null?void 0:w.tableId,allMapContents:e.unref(bt),children:w==null?void 0:w.children,level:D.value,onRowClick:M,onRouteUrl:R,onRadioChange:g},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),Z1=Zl._export_sfc(X1,[["__scopeId","data-v-bafbdd45"]]),Q1={class:"radio-group-container"},ev=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(),s=Hn(A.pinia),{selectTab:v}=A.storeToRefs(s);e.watch(()=>r==null?void 0:r.itemData,()=>{t.value=v.value},{immediate:!0,deep:!0});const f=d=>{t.value=d,n("radioChange",t.value)};return(d,y)=>(e.openBlock(),e.createElementBlock("div",Q1,[e.createVNode(ll.ssRadio,{modelValue:t.value,"onUpdate:modelValue":y[0]||(y[0]=g=>t.value=g),content:r==null?void 0:r.itemData,onChange:f},null,8,["modelValue","content"])]))}}),av=Zl._export_sfc(ev,[["__scopeId","data-v-177d64c3"]]),au=e.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"}]),lv={TABLE:Cc,FORM:bs,STATICFORM:Dc,TABLEOPERATE:W2,TABLESTYLE:ch,TABLEEXTEND:dh,TABLEINTERACTION:hh,FORMOPERATE:ks,FOLD:Uh,CALCULATOR:Jh,METHODBUTTON:Qh,AVATARUPLOAD:es.ssAvatar,SIGNATURE:es.ssSignature,FORMTOP:bs,STEP:d4,STEPOPERATE:Oh,TIMELINE:y4,TIMELINEOPERATE:Ph,FORMTOPOPERATE:ks,SIGNATUREOPERATE:s4,AVATARUPLOADOPERATE:l4,TABS:k4,TABSOPERATE:i6,CHART:k6,CHARTOPERATE:A6,LAYOUT:I6,LAYOUTOPERATE:H6,PARENTITEM:Z1,RADIO:av};function Bi(a){return lv[a==null?void 0:a.toUpperCase()]||null}exports.De=eu;exports.activeStepInfo=_i;exports.addContents=Ki;exports.addVisibleDialog=Dt;exports.affixItems=x0;exports.allMapContents=bt;exports.analyzeMenu=Qs;exports.cacheNewData=bc;exports.clickMainKey=wc;exports.clickSavePage=k0;exports.clickStep=Sc;exports.clickTrigger=xc;exports.compId=jn;exports.compNames=kc;exports.compShow=Di;exports.existLayouts=T0;exports.fixChangeValue=Et;exports.generateLayouts=ih;exports.getComponent=Bi;exports.getComponents=Gi;exports.getPageConstruct=Wd;exports.getPageData=Kr;exports.getSliceContLength=O0;exports.gridRowHeight=eh;exports.gridRowHeightHmPg=Q2;exports.isStepLayout=Ec;exports.onBack=g0;exports.onButtonChange=E0;exports.onChange=To;exports.onClick=b0;exports.onClickStep=N0;exports.onContentChange=No;exports.onExtendTaskEnd=B0;exports.onOk=C0;exports.onPageBack=z0;exports.onPageChange=Ao;exports.onSelectFixContent=y0;exports.renderShowItems=yc;exports.showItems=tr;exports.sliceTableLength=gc;exports.slotContent=au;exports.ssTable=Cc;exports.st=Mo;exports.stepItems=L0;exports.tabChange=A0;exports.toolBar=D0;exports.useFormComp=Ct;exports.useModelLoader=bf;exports.verifyButton=M0;
|