ss-component-new 1.3.347 → 1.3.348
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/{array-z-nVa-Ht.cjs → array-FcoisUZz.cjs} +1 -1
- package/dist/{array-Dc0UPsX7.js → array-tQgs72UX.js} +2 -2
- package/dist/{index-BxnKd-ol.cjs → index-6OSpT7hv.cjs} +1 -1
- package/dist/{index-CJHajG-Z.cjs → index-BGa33sG1.cjs} +1 -1
- package/dist/{index-wQV7WQqs.cjs → index-B_1Q8mLt.cjs} +1 -1
- package/dist/{index-D9_uWPXi.cjs → index-BjsPZnqT.cjs} +1 -1
- package/dist/{index-BYluVfWF.cjs → index-BktK2g3L.cjs} +1 -1
- package/dist/{index-CSBsbB89.cjs → index-C-8tPwdx.cjs} +1 -1
- package/dist/{index-DH9VAr_q.js → index-C3LcEFEV.js} +1 -1
- package/dist/index-C49WP5XE.cjs +25 -0
- package/dist/{index-CNGWd6r5.js → index-C6uj8qJA.js} +3 -3
- package/dist/{index-CQHICyEP.cjs → index-C9hSFe1b.cjs} +1 -1
- package/dist/{index-AOVJ8y4_.js → index-CJ5ltZK5.js} +2 -2
- package/dist/index-CQbLUdez.cjs +2 -0
- package/dist/{index-WnKTgvLM.js → index-CTOBJJlH.js} +8514 -8510
- package/dist/{index-CuuY8WNN.js → index-CduEGwgu.js} +1 -1
- package/dist/{index-DhOAQpIm.js → index-CiLTRzrU.js} +1 -1
- package/dist/{index-BkiYg6ij.js → index-CvydttkD.js} +4 -4
- package/dist/{index-B5_BX2YN.js → index-DB18f7f2.js} +1 -1
- package/dist/{index-C2vcw4xw.js → index-DIiL0kve.js} +1 -1
- package/dist/index-DNIOl0bw.js +9803 -0
- package/dist/{index-_r2s4_ht.js → index-DZszyNYH.js} +2 -2
- package/dist/{index-CqcLpbt1.cjs → index-D_mCyKO9.cjs} +1 -1
- package/dist/{index-CrkCksf1.js → index-Dc4sh1T8.js} +1 -1
- package/dist/{index-BWEoDx4D.cjs → index-DnCqPfB1.cjs} +1 -1
- package/dist/{index-euqScKcq.js → index-DrHR_0Cv.js} +1 -1
- package/dist/{index-DA-QksrI.cjs → index-LGRyG0hQ.cjs} +1 -1
- package/dist/{index-CPiqzIun.cjs → index-jj0QFPlC.cjs} +1 -1
- package/dist/{main-DUbTQ00H.cjs → main-DRJ7GeCk.cjs} +1 -1
- package/dist/{main-dAcAJd1J.js → main-DX0w-EEu.js} +2 -2
- package/dist/{menuIndex-DwOFonFy.js → menuIndex-BCqWHrXf.js} +64 -60
- package/dist/menuIndex-DxS8zqA8.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-Bj1dOhmi.cjs → threeModel-BR8TZd8q.cjs} +1 -1
- package/dist/{threeModel-4koqokFa.js → threeModel-pY6LY8LT.js} +1 -1
- package/dist/{threeSceneView-DDdtSYsj.js → threeSceneView-BPPt0FAH.js} +3 -3
- package/dist/{threeSceneView-DSVqbu2-.cjs → threeSceneView-Z0ab5QG0.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Bqg9Utvt.cjs → threeSceneViewForCPMPIP-BMpPRugB.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CiS_rB7d.js → threeSceneViewForCPMPIP-BWZDs-9j.js} +1 -1
- package/dist/{threeViewerHost-BLsxQ4Dv.js → threeViewerHost-BImMBIXv.js} +1 -1
- package/dist/{threeViewerHost-DzWy-nz6.cjs → threeViewerHost-CGZGM3XJ.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BT2Sp_f7.cjs +0 -25
- package/dist/index-DYq4TXda.cjs +0 -2
- package/dist/index-i7SKpIqc.js +0 -9787
- package/dist/menuIndex-DtLiYvfJ.cjs +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";var Au=Object.defineProperty;var zu=(l,r,n)=>r in l?Au(l,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[r]=n;var Wr=(l,r,n)=>zu(l,typeof r!="symbol"?r+"":r,n);const a=require("vue"),Ga=require("./request-BC2w2vGr.cjs"),Pn=require("./dayjs.min-Bo5ALhPO.cjs"),L=require("./menu-CYazzvub.cjs"),il=require("./index-D_mCyKO9.cjs"),Jl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),aa=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DZwYWdny.cjs"),wr=require("./index-CUw6nGTo.cjs"),Ci=require("./threeViewerHost-CGZGM3XJ.cjs"),oa=require("./index-6iwwUgL6.cjs"),Mu=require("./index-DsNHJYr-.cjs"),Dr=require("./index-CW4qJdP8.cjs"),rs=require("./index-C9hSFe1b.cjs"),Xs=require("./index-BuUvbJz_.cjs"),jo=require("./index-W8p89C7t.cjs"),dn=require("./index-B6Qf218o.cjs");;/* empty css */const Di=require("./isString-DNBlKLZH.cjs"),ns=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Zs=require("./index-BVaHwt5f.cjs"),Iu=require("./index-BrgX9dZp.cjs"),Rn=require("./MTLLoader-Bi7_rRjI.cjs"),Ou=require("./URDFLoader-DhVDneJn.cjs");var Lu="[object Boolean]";function Qs(l){return l===!0||l===!1||Ga.isObjectLike(l)&&Ga.baseGetTag(l)==Lu}function $u(l){return l===void 0}const Ru=l=>l.match(/\((.*)\)/)[1],Vu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const r=l,n=a.ref(null),o=a.ref(!1),s=a.ref(null);return a.watch(()=>r==null?void 0:r.isVisible,()=>{o.value=r==null?void 0:r.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var c,m;(m=(c=n.value)==null?void 0:c.updatePopper)==null||m.call(c)})},{deep:!0,immediate:!0}),(c,m)=>{const f=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(f,{visible:o.value,"onUpdate:visible":m[0]||(m[0]=h=>o.value=h),trigger:r.trigger,title:r==null?void 0:r.title,placement:r==null?void 0:r.placement,width:r==null?void 0:r.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Fu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const r=l,n=a.computed(()=>{const o=String(r.value??"");return o==="已完成"?"task-status-completed":o==="进行中"?"task-status-running":o==="终止"||o==="暂停"?"task-status-stopped":""});return(o,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",n.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Pu=Jl._export_sfc(Fu,[["__scopeId","data-v-d81f59b4"]]);function ju(l,r,n,o={}){if(!l||!r||!n||n.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:c="rgba(255, 235, 59, 0.3)",strokeWidth:m=2,fillOpacity:f=.2}=o,h=l.getBoundingClientRect(),y=r.getBoundingClientRect(),u=r.naturalWidth,x=r.naturalHeight,D=y.width/u,R=y.height/x,E=Math.min(D,R),W=u*E,I=x*E,U=(h.width-W)/2,j=(h.height-I)/2,C=n.map(([S,k])=>{const g=U+S*W,z=j+k*I;return{x:g,y:z}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(C[0].x,C[0].y);for(let S=1;S<C.length;S++)s.lineTo(C[S].x,C[S].y);s.closePath();const _=c.replace(/[\d.]+\)$/,`${f})`);s.fillStyle=_,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=m,s.stroke()}function _o(l){if(!l)return;const r=l.getContext("2d");r&&r.clearRect(0,0,l.width,l.height)}function os(l,r){if(!l||!r)return null;const n=l[r];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Hu={key:0,class:"ocr-img-preview-root"},Uu={class:"ocr-img-preview-window"},qu={key:0,class:"img-preview-body"},Wu={class:"img-preview-header"},Ku={class:"img-header-left"},Gu={class:"img-name"},Yu={key:0,class:"img-header-right"},Ju={class:"img-index"},Xu={key:0,class:"img-thumb-list"},Zu=["onClick"],Qu={key:1,class:"thumb-placeholder"},ed={class:"thumb-name"},ad={class:"img-preview-container"},ld={key:0,class:"img-placeholder"},rd={key:2,class:"img-placeholder"},nd={key:0},od={key:1},id={key:1,class:"img-placeholder"},td=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:r}){const n=l,o=r,s=a.computed({get:()=>n.visible,set:A=>o("update:visible",A)});let c=!1,m="",f=0,h=0,y=0,u=0,x=0,D=0,R=null;const E=A=>{var re,Te;const q=(Te=(re=A==null?void 0:A.target)==null?void 0:re.closest)==null?void 0:Te.call(re,".ocr-img-preview-window");return q||document.querySelector(".ocr-img-preview-window")},W=A=>{if(!A||A==="none")return{tx:0,ty:0};let q=A.match(/matrix\(([^)]+)\)/);if(q){const re=q[1].split(",").map(Te=>Number(Te.trim()));return{tx:(re==null?void 0:re[4])||0,ty:(re==null?void 0:re[5])||0}}if(q=A.match(/matrix3d\(([^)]+)\)/),q){const re=q[1].split(",").map(Te=>Number(Te.trim()));return{tx:(re==null?void 0:re[12])||0,ty:(re==null?void 0:re[13])||0}}return q=A.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),q?{tx:Number(q[1])||0,ty:Number(q[2])||0}:{tx:0,ty:0}},I=(A,q,re)=>{A.style.transform=`translate(${q}px, ${re}px)`},U=A=>{const q=E(A);if(!q)return;c=!0,R=q,m="move",f=A.clientX,h=A.clientY;const re=window.getComputedStyle(q),{tx:Te,ty:xe}=W(re.transform);x=Te,D=xe,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},j=(A,q)=>{const re=E(A);if(!re)return;c=!0,R=re,m=q,f=A.clientX,h=A.clientY;const Te=re.getBoundingClientRect();y=Te.width,u=Te.height;const xe=window.getComputedStyle(re),{tx:Ye,ty:da}=W(xe.transform);x=Ye,D=da,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},C=A=>{if(!c||!R)return;const q=A.clientX-f,re=A.clientY-h,Te=360,xe=420;let Ye=y,da=u,Ma=x,ne=D;if(m==="move"){Ma=x+q,ne=D+re,I(R,Ma,ne);return}if(m.includes("right")&&(Ye=Math.max(Te,y+q)),m.includes("bottom")&&(da=Math.max(xe,u+re)),m.includes("left")){const Ae=y-q;Ae<Te?(Ye=Te,Ma=x+(y-Te)):(Ye=Ae,Ma=x+q)}if(m.includes("top")){const Ae=u-re;Ae<xe?(da=xe,ne=D+(u-xe)):(da=Ae,ne=D+re)}R.style.width=`${Ye}px`,R.style.height=`${da}px`,I(R,Ma,ne)},_=()=>{c=!1,m="",R=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)},S=a.ref([]),k=a.ref(!1);a.watch(()=>n.images,async A=>{if(!Array.isArray(A)||A.length===0){S.value=[];return}k.value=!0;const q=[];for(const re of A)if(re.url&&!re.url.startsWith("blob:")&&!re.url.startsWith("http"))try{const Te=await aa.downloadFile(re.url),xe=URL.createObjectURL(Te);q.push({...re,blobUrl:xe})}catch(Te){console.error(`Failed to load image for preview: ${re.url}`,Te),q.push({...re,blobUrl:""})}else q.push({...re,blobUrl:re.url});S.value=q,k.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),z=a.ref(null),$=a.ref(null),G=a.computed(()=>S.value[g.value]||null),de=()=>{if(!S.value.length){g.value=0;return}if(n.defaultImageName){const A=S.value.findIndex(q=>(q==null?void 0:q.name)===n.defaultImageName);g.value=A>=0?A:0}else g.value=0},Me=A=>{if(!S.value.length)return;const q=Math.max(0,Math.min(A,S.value.length-1));g.value=q},pe=()=>Me(g.value-1),Z=()=>Me(g.value+1),fe=A=>{if(!A)return;const q=S.value.findIndex(re=>(re==null?void 0:re.name)===A);q>=0&&(g.value=q)},le=()=>{if(!$.value)return;const A=$.value.parentElement;if(!A)return;const q=A.getBoundingClientRect();$.value.width=q.width,$.value.height=q.height},ue=()=>{var Te,xe;if(!$.value||!z.value||!n.focusedFieldName){$.value&&_o($.value);return}const A=(Te=z.value.$el)==null?void 0:Te.querySelector("img");if(!A)return;if(!A.complete||A.naturalWidth===0){A.onload=()=>{a.nextTick(()=>{ue()})};return}const q=((xe=G.value)==null?void 0:xe.name)||"",re=os(n.fieldMeta,n.focusedFieldName);if(!re){_o($.value);return}if(re.imageName!==q){_o($.value);return}le(),ju($.value,A,re.bboxNorm)},Ne=()=>{a.nextTick(()=>{le(),ue()})};a.watch(()=>n.focusedFieldName,()=>{if(!s.value)return;const A=os(n.fieldMeta,n.focusedFieldName);A!=null&&A.imageName&&fe(A.imageName),a.nextTick(()=>{ue()})}),a.watch(()=>{var A;return(A=G.value)==null?void 0:A.name},()=>{s.value&&a.nextTick(()=>{$.value&&_o($.value),ue()})}),a.watch(()=>n.visible,A=>{A?(de(),a.nextTick(()=>{le(),ue()})):$.value&&_o($.value)}),a.watch(()=>n.defaultImageName,()=>{s.value&&de()});let Fe=null;a.onMounted(()=>{var A;typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(()=>{le(),a.nextTick(()=>{ue()})}),(A=$.value)!=null&&A.parentElement&&Fe.observe($.value.parentElement))}),a.onUnmounted(()=>{Fe&&(Fe.disconnect(),Fe=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)});const be=()=>{$.value&&_o($.value),o("update:visible",!1),o("close")};return(A,q)=>{var da,Ma;const re=a.resolveComponent("el-button"),Te=a.resolveComponent("el-image"),xe=a.resolveComponent("Loading"),Ye=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Hu,[q[12]||(q[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Uu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(U,["stop"])},[q[8]||(q[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:be},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:q[0]||(q[0]=a.withModifiers(ne=>j(ne,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:q[1]||(q[1]=a.withModifiers(ne=>j(ne,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:q[2]||(q[2]=a.withModifiers(ne=>j(ne,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:q[3]||(q[3]=a.withModifiers(ne=>j(ne,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:q[4]||(q[4]=a.withModifiers(ne=>j(ne,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:q[5]||(q[5]=a.withModifiers(ne=>j(ne,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:q[6]||(q[6]=a.withModifiers(ne=>j(ne,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:q[7]||(q[7]=a.withModifiers(ne=>j(ne,"bottom-right"),["stop"]))},null,32),G.value?(a.openBlock(),a.createElementBlock("div",qu,[a.createElementVNode("div",Wu,[a.createElementVNode("div",Ku,[a.createElementVNode("span",Gu,a.toDisplayString(G.value.name?G.value.name+(G.value.url&&G.value.url.lastIndexOf(".")!==-1?G.value.url.substring(G.value.url.lastIndexOf(".")):""):""),1)]),S.value.length>1?(a.openBlock(),a.createElementBlock("div",Yu,[a.createVNode(re,{size:"small",disabled:g.value===0,onClick:pe},{default:a.withCtx(()=>q[9]||(q[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Ju,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(S.value.length),1),a.createVNode(re,{size:"small",disabled:g.value===S.value.length-1,onClick:Z},{default:a.withCtx(()=>q[10]||(q[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),S.value.length>1?(a.openBlock(),a.createElementBlock("div",Xu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,(ne,Ae)=>(a.openBlock(),a.createElementBlock("div",{key:(ne.name||"")+"-"+Ae,class:a.normalizeClass(["img-thumb-item",{active:Ae===g.value}]),onClick:Ie=>Me(Ae)},[ne!=null&&ne.blobUrl?(a.openBlock(),a.createBlock(Te,{key:0,src:ne.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ne.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",Qu,"加载失败")),a.createElementVNode("div",ed,a.toDisplayString(ne.name||"-"),1)],10,Zu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",ad,[k.value?(a.openBlock(),a.createElementBlock("div",ld,[a.createVNode(Ye,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(xe)]),_:1}),q[11]||(q[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(da=G.value)!=null&&da.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(Te,{ref_key:"imageRef",ref:z,src:G.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[G.value.blobUrl],onLoad:Ne},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:$,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",rd,[(Ma=G.value)!=null&&Ma.url?(a.openBlock(),a.createElementBlock("span",nd,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",od,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",id,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),sd=Jl._export_sfc(td,[["__scopeId","data-v-48a4ecb1"]]),cd={class:"cert-preview-body"},ud={key:0,class:"pdf-preview-container"},dd={class:"thumbs"},pd=["onClick"],fd={class:"thumb-img"},hd=["src"],vd={key:1,class:"thumb-loading"},md={class:"thumb-title"},yd={class:"viewer"},gd={key:0,class:"viewer-img-wrap"},bd=["src"],kd={key:1,class:"viewer-loading"},xd=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:r}){const n=l,o=r,s=a.ref(""),c=a.ref(""),m=a.computed(()=>(n.versions||[]).find(E=>String(E.versionId)===String(s.value))),f=a.ref({}),h=a.ref(""),y=a.ref("证书附件.pdf"),u=()=>{try{Object.values(f.value||{}).forEach(E=>{E&&URL.revokeObjectURL(E)}),h.value&&URL.revokeObjectURL(h.value)}catch{}f.value={},h.value=""},x=async E=>{if(!E||E.fileType==="pdf")return;const W=Array.isArray(E.images)?E.images:[];for(const I of W){const U=I==null?void 0:I.url;if(!(!U||f.value[U]))try{const j=await L.platformDownloadFile({url:U}),C=URL.createObjectURL(j.data);f.value={...f.value,[U]:C}}catch{}}},D=async E=>{var I;if(!E||E.fileType!=="pdf"){h.value="";return}const W=E.sourceUrl||"";if(!W){h.value="";return}if(h.value){try{URL.revokeObjectURL(h.value)}catch{}h.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:E==null?void 0:E.versionId,certNo:E==null?void 0:E.certNo});const U=await L.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:U==null?void 0:U.status,size:(I=U==null?void 0:U.data)==null?void 0:I.size});const j=URL.createObjectURL(U.data);h.value=j;const C=E.certNo?String(E.certNo):"";y.value=C?`${C}.pdf`:"证书附件.pdf"}catch(U){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:U}),h.value=""}};a.watch(()=>n.visible,async E=>{var I;if(!E){u();return}const W=(I=n.versions)==null?void 0:I[0];s.value=(W==null?void 0:W.versionId)||"",await x(W),await D(W)},{immediate:!0}),a.watch(()=>s.value,async()=>{var W,I;const E=m.value;if(!E){c.value="",h.value="";return}if(E.fileType==="pdf"){c.value="",await D(E);return}h.value="",c.value=((I=(W=E.images)==null?void 0:W[0])==null?void 0:I.url)||"",await x(E)},{immediate:!0});const R=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(E,W)=>{const I=a.resolveComponent("el-empty"),U=a.resolveComponent("el-tab-pane"),j=a.resolveComponent("el-tabs"),C=a.resolveComponent("el-button"),_=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(_,{"model-value":E.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:R},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:R},{default:a.withCtx(()=>W[1]||(W[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[E.versions&&E.versions.length>0?(a.openBlock(),a.createBlock(j,{key:0,modelValue:s.value,"onUpdate:modelValue":W[0]||(W[0]=S=>s.value=S),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.versions,S=>(a.openBlock(),a.createBlock(U,{key:S.versionId,name:S.versionId,label:S.label},{default:a.withCtx(()=>[a.createElementVNode("div",cd,[S.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",ud,[h.value?(a.openBlock(),a.createBlock(il.SsFilePreview,{key:1,fileName:y.value,blobUrl:h.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(I,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",dd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.images||[],k=>(a.openBlock(),a.createElementBlock("div",{key:k.url,class:a.normalizeClass(["thumb",{active:k.url===c.value}]),onClick:g=>c.value=k.url},[a.createElementVNode("div",fd,[f.value[k.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:f.value[k.url]},null,8,hd)):(a.openBlock(),a.createElementBlock("div",vd,"加载中"))]),a.createElementVNode("div",md,a.toDisplayString(k.name),1)],10,pd))),128))]),a.createElementVNode("div",yd,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[f.value[c.value]?(a.openBlock(),a.createElementBlock("div",gd,[a.createElementVNode("img",{class:"viewer-img",src:f.value[c.value]},null,8,bd)])):(a.openBlock(),a.createElementBlock("div",kd,"加载中"))],64)):(a.openBlock(),a.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),wd=Jl._export_sfc(xd,[["__scopeId","data-v-220703c0"]]),_d={class:"ocr-candidate-wrap"},Sd={class:"ocr-candidate-left"},Ed={key:1},Cd={key:0},Dd={key:1},Nd={key:2},Bd={key:3},Td={key:0,class:"ocr-candidate-right"},Ad={class:"ocr-candidate-actions"},zd={key:1},Md={class:"dialog-footer"},Id={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:r}){const n=(g=[])=>{const z=[],$=G=>{(G||[]).forEach(de=>{if(!de)return;const Me=de.children||de.childrens||de.columns;Array.isArray(Me)&&Me.length>0?$(Me):z.push(de)})};return $(g),z},o=l,s=r,c=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowAdd)!==!1}),m=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowReplace)!==!1}),f=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const z=JSON.parse(g);return Array.isArray(z)?z:[]}catch{return[]}return[]},h=g=>{s("preview-file",g)},y=a.ref([]),u=a.ref(0),x=a.ref("");a.watch(()=>o.candidates,g=>{var z,$;y.value=(g||[]).map(G=>({...G,...(G==null?void 0:G.ocrRow)||{},selectedTargetId:(G==null?void 0:G.selectedTargetId)||"",__decision:G==null?void 0:G.__decision})),u.value=0,x.value=(($=(z=y.value)==null?void 0:z[0])==null?void 0:$.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,g=>{var z,$;g&&(u.value=0,x.value=(($=(z=y.value)==null?void 0:z[0])==null?void 0:$.selectedTargetId)||"")});const D=a.computed(()=>{var z;const g=Number(u.value||0);return((z=y.value||[])==null?void 0:z[g])||null}),R=a.computed(()=>(n(o.columns||[])||[]).filter($=>$&&$.prop).filter($=>$.type!=="operate"&&$.label!=="操作"&&$.prop!=="operate")),E=a.computed(()=>R.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),W=g=>{if(!g)return;const z=(y.value||[]).findIndex($=>($==null?void 0:$.idx)===(g==null?void 0:g.idx));z>-1&&(u.value=z,x.value=(g==null?void 0:g.selectedTargetId)||"")},I=g=>{if(!g){x.value="";return}x.value=String((g==null?void 0:g.id)??"")},U=(g,z="")=>{const $=Number(u.value||0),G=y.value||[],de=G[$];de&&(de.__decision=g,de.selectedTargetId=z,x.value=z,y.value=[...G])},j=()=>U("skip",""),C=()=>U("add",""),_=()=>{if(!x.value){Ga.ElMessage.warning("请先选择要替换的目标记录");return}U("replace",x.value)},S=()=>{s("update:visible",!1)},k=()=>{const g=y.value||[];if(g.find($=>($==null?void 0:$.__decision)==="replace"&&!($!=null&&$.selectedTargetId))){Ga.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,z)=>{const $=a.resolveComponent("el-table-column"),G=a.resolveComponent("svg-icon"),de=a.resolveComponent("el-table"),Me=a.resolveComponent("el-button"),pe=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:S},{default:a.withCtx(()=>{var Z,fe;return[a.createElementVNode("div",_d,[a.createElementVNode("div",Sd,[z[0]||(z[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(de,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:a.withCtx(()=>[a.createVNode($,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,le=>(a.openBlock(),a.createBlock($,{key:le.prop,label:le.label,prop:le.prop,"min-width":le.minWidth||160},{default:a.withCtx(({row:ue})=>[le.label==="证书附件"||le.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[f(ue==null?void 0:ue[le.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ne=>h({row:ue,prop:le.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",Ed,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[le.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode($,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:le})=>[a.createTextVNode(a.toDisplayString(((le==null?void 0:le.candidates)||[]).length),1)]),_:1}),a.createVNode($,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:le})=>[(le==null?void 0:le.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",Cd,"替换")):(le==null?void 0:le.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",Dd,"新增")):(le==null?void 0:le.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",Nd,"跳过")):(a.openBlock(),a.createElementBlock("span",Bd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",Td,[z[4]||(z[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",Ad,[a.createVNode(Me,{id:"themeBorderButton",onClick:j},{default:a.withCtx(()=>z[1]||(z[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Me,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>z[2]||(z[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Me,{class:"ok-button",id:"themeButton",onClick:_,disabled:!m.value||!x.value},{default:a.withCtx(()=>z[3]||(z[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((Z=D.value)==null?void 0:Z.candidates)||[]).length===0?(a.openBlock(),a.createBlock(pe,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(de,{data:((fe=D.value)==null?void 0:fe.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode($,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(R.value,le=>(a.openBlock(),a.createBlock($,{key:le.prop,label:le.label,prop:le.prop,"min-width":le.minWidth||160},{default:a.withCtx(({row:ue})=>[le.label==="证书附件"||le.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[f(ue==null?void 0:ue[le.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ne=>h({row:ue,prop:le.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",zd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[le.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",Md,[a.createVNode(Me,{id:"themeBorderButton",onClick:S},{default:a.withCtx(()=>z[5]||(z[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Me,{class:"ok-button",id:"themeButton",onClick:k},{default:a.withCtx(()=>z[6]||(z[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Od=Jl._export_sfc(Id,[["__scopeId","data-v-89e0489c"]]),Ld={class:"ocr-preview-content"},$d={class:"ocr-preview-tip"},Rd={class:"ocr-preview-table"},Vd={style:{display:"flex","align-items":"center",gap:"8px"}},Fd={class:"dialog-footer"},Pd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:r}){const n=l,o=r,s=a.ref([]),c=a.ref([]),m=a.ref([]);a.watch(()=>n.visible,R=>{R&&(s.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),m.value=[...n.ocrSelectedFields])});const f=(R,E)=>{const W=[...m.value];if(E)W.includes(R)||W.push(R);else{const I=W.indexOf(R);I>-1&&W.splice(I,1)}m.value=W,o("update:ocrSelectedFields",W)},h=(R,E,W)=>{o("fieldChange",{rowIndex:R,prop:E,value:W})},y=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},x=R=>typeof R!="number"?"-":`${(R*100).toFixed(1)}%`,D=R=>typeof R!="number"?"#606266":R>=.9?"#67c23a":R>=.7?"#e6a23c":"#f56c6c";return(R,E)=>{const W=a.resolveComponent("el-alert"),I=a.resolveComponent("el-table-column"),U=a.resolveComponent("el-checkbox"),j=a.resolveComponent("el-input"),C=a.resolveComponent("el-table"),_=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Ld,[a.createElementVNode("div",$d,[a.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Rd,[a.createVNode(C,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,S=>(a.openBlock(),a.createBlock(I,{key:S.prop,prop:S.prop,"min-width":S.minWidth||230,"class-name":S.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Vd,[S.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(U,{key:0,"model-value":m.value.includes(S.prop),onChange:k=>f(S.prop,k),onClick:E[0]||(E[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(S.label),1)])]),default:a.withCtx(({row:k,$index:g})=>[S.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:D(k[S.prop]),fontWeight:500})},a.toDisplayString(x(k[S.prop])),5)):(a.openBlock(),a.createBlock(j,{key:1,modelValue:k[S.prop],"onUpdate:modelValue":z=>k[S.prop]=z,size:"small",placeholder:"请输入"+S.label,onChange:z=>h(g,S.prop,z)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Fd,[a.createVNode(_,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>E[1]||(E[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(_,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>E[2]||(E[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},jd=Jl._export_sfc(Pd,[["__scopeId","data-v-df66eb1f"]]),Ni=l=>{var o;let r=l;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let n=(o=aa.analyzeSplitToContent(r,","))==null?void 0:o.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),yn(s)));return n=n==null?void 0:n.join(","),n};function ec(l){return Ga.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function Hd(l){return Ga.axios.get(l,{responseType:"blob"})}let Kl="$R",Ud="http://222.92.178.198:55002/AIRobot",ut=["Form","BarChart","FormText","FormBlock"];const ac=l=>{var n,o;let r=(o=aa.analyzeSplitToContent(l,"@"))==null?void 0:o[((n=aa.analyzeSplitToContent(l,"@"))==null?void 0:n.length)-1];return!!(ut!=null&&ut.some(s=>r==null?void 0:r.includes(s)))},qd=async(l,r,n,o)=>{var c,m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne;let s=l;if(ac(s==null?void 0:s[0])){let Ae=Zd(s),Ie=(c=Ae==null?void 0:Ae.filter)==null?void 0:c.join(","),qe=[];(m=Ae==null?void 0:Ae.hideContents)==null||m.forEach(se=>{if(se){const $e=se;$e&&qe.push(`@Interface(Hide=Yes, prop=${$e})`)}});let Ve=(o==null?void 0:o.menuFilter)??[];return Array.isArray(Ve)||(Ve=Ve?[Ve]:[]),Ve=[...Ve,...qe],{key:"Form",name:Ae==null?void 0:Ae.groupName,value:Ae==null?void 0:Ae.formContents,contents:Array.isArray((f=Ae==null?void 0:Ae.contents)==null?void 0:f[0])&&((y=(h=Ae==null?void 0:Ae.contents)==null?void 0:h[0])!=null&&y.every(se=>Array.isArray(se)))?[(x=(u=Ae==null?void 0:Ae.contents)==null?void 0:u[0])==null?void 0:x[n]]:[Ae==null?void 0:Ae.contents],filter:"("+Ie+")",menuFilter:Ve,groupFilter:Ae==null?void 0:Ae.groupFilters}}else if(((D=s==null?void 0:s[0])==null?void 0:D[0])!=="&"){let Ae=nc(s,o),Ie="";(R=Ae==null?void 0:Ae.tableFilter)!=null&&R.includes(Kl)?Ae.tableFilter=(E=Ae==null?void 0:Ae.tableFilter)==null?void 0:E.replace(Kl,""):Ie=(U=(I=(W=Ae==null?void 0:Ae.tableFilter)==null?void 0:W.replace("(",Kl))==null?void 0:I.split(Kl))==null?void 0:U[0];let qe=[];Ae!=null&&Ae.tableFilter&&((j=aa.analyzeSplitToContent(Ae==null?void 0:Ae.tableFilter,","))==null||j.forEach(se=>{se!=null&&se.includes("@InterfaceHide=Yes")&&qe.push("@InterfaceHide=Yes")}));let Ve=(o==null?void 0:o.menuFilter)??[];return Array.isArray(Ve)||(Ve=Ve?[Ve]:[]),Ve=[...Ve,...qe],{key:"Table",name:Ae==null?void 0:Ae.groupName,tableColumns:Ae==null?void 0:Ae.tableColumns,assistColumn:Ae==null?void 0:Ae.columns,tableContents:r===1?Ae==null?void 0:Ae.tableContents:(_=(C=Ae==null?void 0:Ae.tableContents)==null?void 0:C[n])!=null&&_.every(se=>Array.isArray(se))?(S=Ae==null?void 0:Ae.tableContents)==null?void 0:S[n]:[(k=Ae==null?void 0:Ae.tableContents)==null?void 0:k[n]],filter:Ae==null?void 0:Ae.tableFilter,menuFilter:Ve,quotePage:Ie!==""?(($=(z=(g=Ie==null?void 0:Ie.replace("*",Kl))==null?void 0:g.split(Kl))==null?void 0:z[0])==null?void 0:$.replaceAll(":","/"))??"":void 0,quoteGroup:Ie!==""?((le=(fe=(Z=(pe=(Me=(de=(G=Ie==null?void 0:Ie.replace("*",Kl))==null?void 0:G.split(Kl))==null?void 0:de[1])==null?void 0:Me.replace("{",Kl))==null?void 0:pe.split(Kl))==null?void 0:Z[0])==null?void 0:fe.split(":"))==null?void 0:le.filter(se=>se!==""))??[]:[],relatedQuotes:Ae==null?void 0:Ae.relatedQuotes,fatherSyncContents:Ae==null?void 0:Ae.fatherSyncContents,sonSyncContents:Ae==null?void 0:Ae.sonSyncContents}}else{let Ae=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],Ie=s==null?void 0:s[0];Ie=Ie==null?void 0:Ie.slice(1,Ie==null?void 0:Ie.length),Ie=aa.analyzeSplitToContent(Ie,":"),Ie=Ie==null?void 0:Ie[(Ie==null?void 0:Ie.length)-1];let qe=[];qe.push("1");let Ve=Ie==null?void 0:Ie.replace("(",Kl);Ve=(ue=Ve==null?void 0:Ve.split(Kl))==null?void 0:ue[0],qe.push(Ve);let se=Ie==null?void 0:Ie.replace("(",Kl);if(se=(Ne=se==null?void 0:se.split(Kl))==null?void 0:Ne[1],se=(be=(Fe=se==null?void 0:se.replace(")",Kl))==null?void 0:Fe.split(Kl))==null?void 0:be[0],(q=(A=se==null?void 0:se.replace(",",Kl))==null?void 0:A.split(Kl))==null||q.forEach($e=>{qe.push($e)}),qe.push(""),qe.push(""),(re=qe==null?void 0:qe[2])!=null&&re.includes(".xlsx")||(Te=qe==null?void 0:qe[2])!=null&&Te.includes(".xls"))try{let $e=Ud+"/"+(qe==null?void 0:qe[2]),Ue=await Hd($e),Na=`生成js函数名称为${qe==null?void 0:qe[1]}的函数,规则为:`+(qe==null?void 0:qe[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((Ue==null?void 0:Ue.status)===200){let La=Ue==null?void 0:Ue.data;const V=new FormData;V.append("file",La,qe==null?void 0:qe[2]),V.append("query",Na);let P=await ec(V);P=(da=(Ye=(xe=P==null?void 0:P.data)==null?void 0:xe.data)==null?void 0:Ye.response)==null?void 0:da.replace("generateResult",qe==null?void 0:qe[1]),qe[qe.length-2]=P,qe[qe.length-1]=[{name:(ne=(Ma=qe==null?void 0:qe[2])==null?void 0:Ma.split("."))==null?void 0:ne[0],url:$e}]}}catch{}return qe=[qe],{key:"Method",name:[],tableContents:qe,tableColumns:Ae}}},Wd=(l,r)=>{var o,s,c,m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve;let n=(s=(o=aa.analyzeSplitToContent(l,"="))==null?void 0:o.filter(se=>se!=="="))==null?void 0:s.map(se=>((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));if(ac(n==null?void 0:n[1])){let se=Xd(n),$e=(f=(m=(c=se==null?void 0:se.filter)==null?void 0:c.replace("@",Kl))==null?void 0:m.split(Kl))==null?void 0:f[0],Ue=(u=(y=(h=se==null?void 0:se.filter)==null?void 0:h.replace("(",Kl))==null?void 0:y.split(Kl))==null?void 0:u[1],Na=(R=(D=(x=se==null?void 0:se.filter)==null?void 0:x.replace("(",Kl))==null?void 0:D.split(Kl))==null?void 0:R[0];Na="@"+((E=Na==null?void 0:Na.split("@"))==null?void 0:E[1]),Ue=Ue==null?void 0:Ue.slice(0,(Ue==null?void 0:Ue.length)-1),Ue=(I=(W=aa.analyzeSplitToContent(Ue,","))==null?void 0:W.map(V=>(V=Na+V,V)))==null?void 0:I.join("");let La=$e+"("+Ue+")";return{key:"Form",name:se==null?void 0:se.group,filter:La,formPage:((C=(j=(U=$e==null?void 0:$e.replace("*",Kl))==null?void 0:U.split(Kl))==null?void 0:j[0])==null?void 0:C.replaceAll(":","/"))??"",formGroup:((G=($=(z=(g=(k=(S=(_=$e==null?void 0:$e.replace("*",Kl))==null?void 0:_.split(Kl))==null?void 0:S[1])==null?void 0:k.replace("{",Kl))==null?void 0:g.split(Kl))==null?void 0:z[0])==null?void 0:$.split(":"))==null?void 0:G.filter(V=>V!==""))??[],value:[],menuFilter:r==null?void 0:r.menuFilter}}else{let se=nc(n,r,n==null?void 0:n[1]),$e="";(de=se==null?void 0:se.tableFilter)!=null&&de.includes(Kl)?se.tableFilter=(Me=se==null?void 0:se.tableFilter)==null?void 0:Me.replace(Kl,""):$e=(fe=(Z=(pe=se==null?void 0:se.tableFilter)==null?void 0:pe.replace("(",Kl))==null?void 0:Z.split(Kl))==null?void 0:fe[0];let Ue=(Ne=(ue=(le=se==null?void 0:se.tableFilter)==null?void 0:le.replace("(",Kl))==null?void 0:ue.split(Kl))==null?void 0:Ne[0];Ue=[{menus:(be=(Fe=Ue==null?void 0:Ue.split("*"))==null?void 0:Fe[0])==null?void 0:be.replaceAll(":","/"),groups:((q=(A=Ue==null?void 0:Ue.split("*"))==null?void 0:A[1])==null?void 0:q.split(":"))??[]}];let Na=(xe=(Te=(re=se==null?void 0:se.tableFilter)==null?void 0:re.replace("(",Kl))==null?void 0:Te.split(Kl))==null?void 0:xe[1];(Na==null?void 0:Na[(Na==null?void 0:Na.length)-1])===")"&&(Na=Na==null?void 0:Na.slice(0,(Na==null?void 0:Na.length)-1));let La=[];se!=null&&se.tableFilter&&((Ye=aa.analyzeSplitToContent(se==null?void 0:se.tableFilter,","))==null||Ye.forEach(P=>{P!=null&&P.includes("@InterfaceHide=Yes")&&La.push("@InterfaceHide=Yes")}));let V=(r==null?void 0:r.menuFilter)??[];return Array.isArray(V)||(V=V?[V]:[]),V=[...V,...La],{key:"Table",name:se==null?void 0:se.groupName,filter:se==null?void 0:se.tableFilter,tableColumns:se==null?void 0:se.tableColumns,quotePage:$e!==""?((ne=(Ma=(da=$e==null?void 0:$e.replace("*",Kl))==null?void 0:da.split(Kl))==null?void 0:Ma[0])==null?void 0:ne.replaceAll(":","/"))??"":void 0,quoteGroup:$e!==""?((Ve=(qe=(Ie=(Ae=$e==null?void 0:$e.replace("*",Kl))==null?void 0:Ae.split(Kl))==null?void 0:Ie[1])==null?void 0:qe.split(":"))==null?void 0:Ve.filter(P=>P!==""))??[]:[],menuFilter:V,relatedQuotes:Ue,fatherSyncContents:(se==null?void 0:se.fatherSyncContents)??[],sonSyncContents:(se==null?void 0:se.sonSyncContents)??[]}}},Kd=async(l,r)=>{let n=[],o=r==null?void 0:r.length;return r=r==null?void 0:r.map(async(s,c)=>{let m=[];s=s==null?void 0:s.map(async f=>{var h,y;if(m.push(f),((h=aa.analyzeSplitToContent(l,"="))==null?void 0:h.length)<=2){if(((y=aa.analyzeSplitToContent(l,"="))==null?void 0:y.length)!==0){const u=await qd(aa.analyzeSplitToContent(l,"="),o,c,f);m.push(u)}}else m.push(Wd(l,f))}),await Promise.all(s),n.push(m)}),await Promise.all(r),n};let Fo="/",Gd="$",hn="$R";const lc=l=>{var n,o,s;let r="";if((l==null?void 0:l.length)>1){let c=l==null?void 0:l.filter((m,f)=>f!==0);c=c==null?void 0:c.join(""),c=aa.analyzerSplitToWord(c,")"),(c==null?void 0:c.length)!==1?(c==null?void 0:c[(c==null?void 0:c.length)-1])===")"?c=c==null?void 0:c.join(""):c=(n=c==null?void 0:c.filter((m,f)=>f!==(c==null?void 0:c.length)-1))==null?void 0:n.join(""):c=c==null?void 0:c[0],r="("+c,((s=l==null?void 0:l[0])==null?void 0:s[((o=l==null?void 0:l[0])==null?void 0:o.length)-2])==="@"&&(r="@"+r)}return{filter:r}},rc=(l,r=[])=>{let n=(l==null?void 0:l.map(c=>{var m,f;return(f=c==null?void 0:c.key)==null?void 0:f.slice(1,(m=c==null?void 0:c.key)==null?void 0:m.length)}))??[],o=[];n==null||n.forEach(c=>{var m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me;if(c===""&&(c="算法库:通用算法"),c!=null&&c.includes(Gd)){let pe="",Z=!0,fe=aa.analyzerSplitToWord(c,"(");(fe==null?void 0:fe.length)>1&&(pe="("+((m=aa.analyzerSplitToWord(fe==null?void 0:fe[1],")"))==null?void 0:m[0]),((h=fe==null?void 0:fe[0])==null?void 0:h[((f=fe==null?void 0:fe[0])==null?void 0:f.length)-2])==="@"&&(pe="@"+pe));let le=c;le=le==null?void 0:le.replace(pe,""),pe=yn(pe),pe=(y=aa.analyzeSplitToContent(pe,","))==null?void 0:y.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)),pe!=null&&pe.includes("@ShowHide=Hide")&&(Z=!1);let ue=(u=le==null?void 0:le.replace("$",hn))==null?void 0:u.split(hn),Ne=ue==null?void 0:ue[1],Fe=ue==null?void 0:ue[0];Fe!=null&&Fe.includes("[")&&(Fe=(D=(x=Fe==null?void 0:Fe.replace("[",hn))==null?void 0:x.split(hn))==null?void 0:D[0],Ne=Ne+":["+((W=(E=(R=ue==null?void 0:ue[0])==null?void 0:R.replace("[",hn))==null?void 0:E.split(hn))==null?void 0:W[1])),Fe=(U=(I=Fe==null?void 0:Fe.replaceAll(":","/"))==null?void 0:I.replaceAll("{",""))==null?void 0:U.replaceAll("}",""),(Fe==null?void 0:Fe[(Fe==null?void 0:Fe.length)-1])!=="/"&&(Fe=Fe+"/"),Ne=((j=Fe==null?void 0:Fe.split("/"))==null?void 0:j[0])+":"+Ne;let A="";if(!(Ne!=null&&Ne.includes("[")))A=Ne==null?void 0:Ne.replaceAll(":","/"),o==null||o.push({path:A,isShow:Z,filter:pe,fatherPath:Fe});else{let q=(_=(C=Ne==null?void 0:Ne.replace("[",hn))==null?void 0:C.split(hn))==null?void 0:_[1];q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1),q=(S=aa.analyzeSplitToContent(q,","))==null?void 0:S.map(re=>((re==null?void 0:re[(re==null?void 0:re.length)-1])===","&&(re=re==null?void 0:re.slice(0,(re==null?void 0:re.length)-1)),re)),q==null||q.forEach(re=>{var Te,xe;A=((xe=(Te=Ne==null?void 0:Ne.replace("[",hn))==null?void 0:Te.split(hn))==null?void 0:xe[0])+re,A=A==null?void 0:A.replaceAll(":","/"),o==null||o.push({path:A,isShow:Z,filter:pe,fatherPath:Fe})})}}else{let pe="",Z=!0,fe=aa.analyzerSplitToWord(c,"(");(fe==null?void 0:fe.length)>1&&(pe=(k=lc(fe))==null?void 0:k.filter);let le=c;if(le=le==null?void 0:le.replace(pe,""),(pe==null?void 0:pe[0])==="("){pe=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1);let Ne=[];(g=aa.analyzeSplitToContent(pe,","))==null||g.forEach(Fe=>{(Fe==null?void 0:Fe[(Fe==null?void 0:Fe.length)-1])===","&&(Fe=Fe==null?void 0:Fe.slice(0,(Fe==null?void 0:Fe.length)-1)),(Fe==null?void 0:Fe[0])==="("&&(Fe=Fe==null?void 0:Fe.slice(1,(Fe==null?void 0:Fe.length)-1)),(Fe==null?void 0:Fe[0])!=="@"&&(Fe="@"+Fe),Ne.push(yn(Fe))}),pe=Ne==null?void 0:Ne.join(",")}else pe=yn(pe);pe=(z=aa.analyzeSplitToContent(pe,","))==null?void 0:z.map(Ne=>((Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])===","&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),Ne)),pe!=null&&pe.includes("@ShowHide=Hide")&&(Z=!1),(le==null?void 0:le[(le==null?void 0:le.length)-1])==="}"&&(le=le+":"),le=($=le==null?void 0:le.replaceAll("{",""))==null?void 0:$.replaceAll("}","");let ue="";if(le!=null&&le.includes("[")){let Ne=(G=le==null?void 0:le.replace("[",hn))==null?void 0:G.split(hn),Fe=Ne==null?void 0:Ne[1];Fe=Fe==null?void 0:Fe.slice(0,(Fe==null?void 0:Fe.length)-1),(Me=(de=aa.analyzeSplitToContent(Fe,","))==null?void 0:de.map(be=>((be==null?void 0:be[(be==null?void 0:be.length)-1])===","&&(be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1)),be)))==null||Me.forEach(be=>{ue=(Ne==null?void 0:Ne[0])+be,ue=ue==null?void 0:ue.replaceAll(":","/"),o==null||o.push({path:ue,isShow:Z,filter:pe})})}else ue=le==null?void 0:le.replaceAll(":","/"),o==null||o.push({path:ue,isShow:Z,filter:pe})}});let s=L.cloneDeep(o);return(r==null?void 0:r.length)>0&&(s=r),s=s==null?void 0:s.filter(c=>{var m,f,h,y;return!(c!=null&&c.fatherPath)&&((f=(m=c==null?void 0:c.path)==null?void 0:m.split(Fo))==null?void 0:f.length)>1&&((y=(h=c==null?void 0:c.path)==null?void 0:h.split(Fo))==null?void 0:y[1])===""}),s=s==null?void 0:s.map(c=>{var m;return c.path=(m=c.path)==null?void 0:m.replace(Fo,""),c.path}),(s==null?void 0:s.length)>0&&(o=o==null?void 0:o.map(c=>{var f,h,y,u,x,D,R;let m=s==null?void 0:s.find(E=>{var W;return(W=c==null?void 0:c.path)==null?void 0:W.includes(E)});return!(c!=null&&c.fatherPath)&&m&&!((f=c==null?void 0:c.path)!=null&&f.includes(Fo))&&!(s!=null&&s.find(E=>(c==null?void 0:c.path)===E))&&(c.path=m+Fo+((R=(y=(h=c==null?void 0:c.path)==null?void 0:h.split(m))==null?void 0:y[1])==null?void 0:R.slice(1,(D=(x=(u=c==null?void 0:c.path)==null?void 0:u.split(m))==null?void 0:x[1])==null?void 0:D.length))),c})),o},Yd=(l,r)=>rc([{key:l}],r),Jd=async(l,r)=>{const n=[],o=Yd(l==null?void 0:l.key,r);return o&&(o==null?void 0:o.length)>0&&(o==null||o.forEach(c=>{n.push([{key:"path",value:c==null?void 0:c.path,parentPath:(c==null?void 0:c.parentPath)??"",isShow:c==null?void 0:c.isShow,menuFilter:c==null?void 0:c.filter}])})),await Kd(l==null?void 0:l.value,n)};let bl="$R",Ho="[Any]";const Xd=l=>{var m,f;let r={},o=l==null?void 0:l[0];(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),o=o==null?void 0:o.split(":"),r.group=o;let s=l==null?void 0:l[1],c;return s!=null&&s.includes("{")?c=(f=(m=s==null?void 0:s.replaceAll("{",""))==null?void 0:m.replaceAll("}",""))==null?void 0:f.replaceAll(Ho,""):c=s==null?void 0:s.replaceAll(Ho,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),r.filter=c,r},Zd=l=>{var D,R,E,W,I,U;let r=[],n=[],o=[],s=[],c=[],m=[],f="",h=l==null?void 0:l[0];(h==null?void 0:h[0])==="*"&&(h=h==null?void 0:h.slice(1,h==null?void 0:h.length));let y=aa.analyzeSplitToContent(h,":");(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 _,S,k;(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 C=aa.analyzerSplitToWord(j,"(");if((C==null?void 0:C.length)>1){f=(_=lc(C))==null?void 0:_.filter;let g=j==null?void 0:j.replace(f,"");if(o.push(g),(f==null?void 0:f[0])==="("){f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1);let z=[];(S=aa.analyzeSplitToContent(f,","))==null||S.forEach($=>{($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),($==null?void 0:$[0])==="("&&($=$==null?void 0:$.slice(1,($==null?void 0:$.length)-1)),($==null?void 0:$[0])!=="@"&&($="@"+$),z.push(yn($))}),f=z==null?void 0:z.join(",")}else f=yn(f);f=(k=aa.analyzeSplitToContent(f,","))==null?void 0:k.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)),f!=null&&f.includes("@ShowHide=Hide")&&m.push(g),s=[...s,...f]}else o.push(C==null?void 0:C[0])});let u=(R=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])==="{"))==null?void 0:R[0],x=(E=y==null?void 0:y.filter(j=>(j==null?void 0:j[0])==="["))==null?void 0:E[0];return r=Bo(x??""),r!=null&&r.every(j=>Array.isArray(j))&&(r=[r]),(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)),c=(W=aa.analyzeSplitToContent(u,"@"))==null?void 0:W[1],c="@"+c,u=u==null?void 0:u.replace(c,""),c=yn(c),c=(I=aa.analyzeSplitToContent(c,","))==null?void 0:I.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)),(u==null?void 0:u[0])==="{"&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1)),u=(U=aa.analyzeSplitToContent(u,","))==null?void 0:U.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)),u==null||u.forEach((j,C)=>{var Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La,V,P,ae,he,me,fa;let _=[],S=[],k=!1,g,z=[],$=[],G=[],de="Input",Me=[],pe=[];if(j!=null&&j.includes("==")){g=(Z=j==null?void 0:j.split("=="))==null?void 0:Z[0];let Xe=(fe=j==null?void 0:j.split("=="))==null?void 0:fe[1],ce="";((le=aa.analyzeSplitToContent(Xe,"$"))==null?void 0:le.length)>1&&((ue=aa.analyzeSplitToContent(Xe,"$"))==null?void 0:ue[0])!=="$"?(ce=(Ne=aa.analyzeSplitToContent(Xe,"$"))==null?void 0:Ne[0],ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)):((Fe=aa.analyzeSplitToContent(Xe,"}"))==null?void 0:Fe.length)>1&&(ce=(be=aa.analyzeSplitToContent(Xe,"}"))==null?void 0:be[1]);let Ee=Xe==null?void 0:Xe.replace(ce,"");(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(A=aa.analyzeSplitToContent(ce,","))==null||A.forEach(We=>{var za;(We==null?void 0:We[0])!=="@"&&(We="@"+We),(We==null?void 0:We[(We==null?void 0:We.length)-1])===","&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1));let Oa=yn(We);(za=aa.analyzeSplitToContent(Oa,","))==null||za.forEach(H=>{(H==null?void 0:H[(H==null?void 0:H.length)-1])===","&&(H=H==null?void 0:H.slice(0,(H==null?void 0:H.length)-1)),_.push(H)})}),(Ee==null?void 0:Ee[0])==="$"&&(Ee=Ee==null?void 0:Ee.slice(1,Ee==null?void 0:Ee.length));let ma=(q=Ee==null?void 0:Ee.replace("*",bl))==null?void 0:q.split(bl);z=(re=ma==null?void 0:ma[0])==null?void 0:re.split(":"),$=(xe=(Te=aa.analyzeSplitToContent(ma==null?void 0:ma[1],":"))==null?void 0:Te.filter((We,Oa)=>{var za,H;return Oa!==((H=(za=ma==null?void 0:ma[1])==null?void 0:za.split(":"))==null?void 0:H.length)-1}))==null?void 0:xe.map(We=>((We==null?void 0:We[(We==null?void 0:We.length)-1])===":"&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),We)),G=(da=(Ye=aa.analyzeSplitToContent(ma==null?void 0:ma[1],":"))==null?void 0:Ye.filter((We,Oa)=>{var za,H;return Oa===((H=(za=ma==null?void 0:ma[1])==null?void 0:za.split(":"))==null?void 0:H.length)-1}))==null?void 0:da[0],G=(ne=(Ma=G==null?void 0:G.replaceAll("{",""))==null?void 0:Ma.replaceAll("}",""))==null?void 0:ne.split(":"),de="Select"}else if(((Ae=aa.analyzeSplitToContent(j,"="))==null?void 0:Ae.length)>1)if(de="Select",g=(qe=(Ie=j==null?void 0:j.replace("=",bl))==null?void 0:Ie.split(bl))==null?void 0:qe[0],!(j!=null&&j.includes("If")))Me=(se=(Ve=j==null?void 0:j.replace("=",bl))==null?void 0:Ve.split(bl))==null?void 0:se[1],Me=Me==null?void 0:Me.split("||");else{let Xe=(Ue=($e=j==null?void 0:j.replace("=",bl))==null?void 0:$e.split(bl))==null?void 0:Ue[1];pe=(Na=aa.analyzeSplitToContent(Xe,")"))==null?void 0:Na.filter(ce=>!(ce!=null&&ce.includes("If"))),pe=pe==null?void 0:pe.map(ce=>((ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),ce=ce==null?void 0:ce.split("||"),ce)),S=(La=aa.analyzeSplitToContent(Xe,")"))==null?void 0:La.filter(ce=>ce==null?void 0:ce.includes("If")),S=S==null?void 0:S.map(ce=>((ce==null?void 0:ce[0])==="|"&&(ce=ce==null?void 0:ce.slice(2,ce==null?void 0:ce.length)),(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(ce==null?void 0:ce[0])!=="@"&&(ce="@"+ce),ce))}else if(((V=aa.analyzeSplitToContent(j,"@"))==null?void 0:V.length)>1){g=(P=aa.analyzeSplitToContent(j,"@"))==null?void 0:P[0],(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));let Xe="@"+((ae=aa.analyzeSplitToContent(j,"@"))==null?void 0:ae[1]);Xe=yn(Xe),_=(he=aa.analyzeSplitToContent(Xe,","))==null?void 0:he.map(ce=>((ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===","&&(ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)),ce)),_!=null&&_.find(ce=>ce==null?void 0:ce.includes("@Type"))&&(de=(fa=(me=_==null?void 0:_.find(ce=>ce==null?void 0:ce.includes("@Type")))==null?void 0:me.split("="))==null?void 0:fa[1])}else g=j;_!=null&&_.includes("@ShowHide=Hide")&&(k=!0),n.push({prop:g,label:g,value:"",menuPath:z,groups:$,columns:G,type:de,options:Me,allContents:pe,filters:_,width:u==null?void 0:u.length,isFormColHidden:k,filterContents:S})}),{groupName:o,groupFilters:s,formContents:n,contents:r,filter:c,hideContents:m}},Bo=l=>{var o,s;if(!l||typeof l!="string")return[];let r=[],n=l.slice(1,(l==null?void 0:l.length)-1);if((n==null?void 0:n[0])!=="[")(o=aa.analyzeSplitToContent(n,","))==null||o.forEach(c=>{(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c.slice(0,(c==null?void 0:c.length)-1)),r.push(c??"")});else{let c=[];(s=aa.analyzeSplitToContent(n,","))==null||s.forEach(m=>{(m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),c.push(Bo(m))}),r=c}return r},mt=(l,r)=>{var U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La,V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za,H;let n,o=[],s=[],c=[],m=[],f=[],h=[],y=[],u="Input",x,D="",R="",E="",W=[],I="";if(l!=null&&l.includes("==")||l!=null&&l.includes("=")||l!=null&&l.includes("@")||l!=null&&l.includes("||"))if(n=(U=l==null?void 0:l.split("=="))==null?void 0:U[0],x=(j=l==null?void 0:l.split("=="))==null?void 0:j[0],u="Select",l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((S=(_=(C=l==null?void 0:l.replace("=",bl))==null?void 0:C.split(bl))==null?void 0:_[1])!=null&&S.includes("If")))if(n=aa.analyzeSplitToContent(l,"@"),n=n==null?void 0:n[0],(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=(g=(k=n==null?void 0:n.replace("=",bl))==null?void 0:k.split(bl))==null?void 0:g[0],n!=null&&n.includes("&")&&(n=($=(z=n==null?void 0:n.replace("&",bl))==null?void 0:z.split(bl))==null?void 0:$[0]),x=n,((G=aa.analyzeSplitToContent(l,"@"))==null?void 0:G.length)>1){if(!(l!=null&&l.includes("&"))){let ye=(de=aa.analyzeSplitToContent(l,"@"))==null?void 0:de[1];if((ye==null?void 0:ye[0])!=="@"&&(ye="@"+ye),ye=yn(ye),R=ye,R!=null&&R.includes("@Type")){let oe=aa.analyzeSplitToContent(R,",");oe=oe==null?void 0:oe.map(we=>((we==null?void 0:we[(we==null?void 0:we.length)-1])===","&&(we=we==null?void 0:we.slice(0,(we==null?void 0:we.length)-1)),we)),oe=(Me=oe==null?void 0:oe.filter(we=>we==null?void 0:we.includes("@Type")))==null?void 0:Me[0],u=(pe=oe==null?void 0:oe.split("="))==null?void 0:pe[1]}}}else l!=null&&l.includes("||")?o=(le=(fe=(Z=l==null?void 0:l.split("="))==null?void 0:Z[1])==null?void 0:fe.split("||"))==null?void 0:le.map(ye=>({label:ye==null?void 0:ye.replaceAll("'",""),value:ye==null?void 0:ye.replaceAll("'","")})):(u="Input",D=(Fe=(Ne=(ue=l==null?void 0:l.replace("=",bl))==null?void 0:ue.split(bl))==null?void 0:Ne[1])==null?void 0:Fe.replaceAll("'",""));else if((q=(A=(be=l==null?void 0:l.replace("=",bl))==null?void 0:be.split(bl))==null?void 0:A[1])!=null&&q.includes("||")){n=(re=l==null?void 0:l.split("="))==null?void 0:re[0],x=(Te=l==null?void 0:l.split("="))==null?void 0:Te[0];let ye=(Ye=(xe=l==null?void 0:l.replace("=",bl))==null?void 0:xe.split(bl))==null?void 0:Ye[1];ye=aa.analyzeSplitToContent(ye,")");let oe=ye==null?void 0:ye.filter(Q=>!(Q!=null&&Q.includes("If")));oe==null||oe.forEach(Q=>{(Q==null?void 0:Q[0])==="("&&(Q=Q==null?void 0:Q.slice(1,(Q==null?void 0:Q.length)-1)),s==null||s.push(Q==null?void 0:Q.split("||"))});let we=ye==null?void 0:ye.filter(Q=>Q==null?void 0:Q.includes("If"));we=we==null?void 0:we.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)),c=we}else{let ye=l==null?void 0:l.split("=="),oe=(da=ye==null?void 0:ye.filter(we=>(we==null?void 0:we.includes("$"))&&(we==null?void 0:we[0])!=="{"))==null?void 0:da[0];if(oe&&!(oe!=null&&oe.includes("&"))){let we=(Ma=oe==null?void 0:oe.replace("*",bl))==null?void 0:Ma.split(bl),Q=(we==null?void 0:we[0])===""?r==null?void 0:r.value:we==null?void 0:we[0];(Q==null?void 0:Q[0])==="("&&(Q=(ne=aa.analyzeSplitToContent(Q,")"))==null?void 0:ne[1]),Q=(Ie=(Ae=Q==null?void 0:Q.replaceAll("{",""))==null?void 0:Ae.replaceAll("}",""))==null?void 0:Ie.replaceAll(Ho,""),(Q==null?void 0:Q[0])==="$"&&(Q=(qe=Q==null?void 0:Q.slice(1,Q==null?void 0:Q.length))==null?void 0:qe.replaceAll(":","/")),m=Q==null?void 0:Q.split("/");let Qe=(se=(Ve=we==null?void 0:we[1])==null?void 0:Ve.replace("{",bl))==null?void 0:se.split(bl),ze=Qe==null?void 0:Qe[0];(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)),f=ze==null?void 0:ze.split(":"),h=(La=(Na=(Ue=($e=Qe==null?void 0:Qe[1])==null?void 0:$e.replace("}",bl))==null?void 0:Ue.split(bl))==null?void 0:Na[0])==null?void 0:La.split(":");let ka="";((V=aa.analyzeSplitToContent(oe,")"))==null?void 0:V.length)>1&&(ka=(P=aa.analyzeSplitToContent(oe,")"))==null?void 0:P[0]),ka&&ka!==""&&((ka==null?void 0:ka[0])!=="@"&&(ka="@"+ka),R=Ni(ka))}if(ye!=null&&ye.some(we=>(we==null?void 0:we[0])==="&")){let we=(ae=ye==null?void 0:ye.filter(ze=>(ze==null?void 0:ze[0])==="&"))==null?void 0:ae[0];(we==null?void 0:we[0])==="&"&&(we=we==null?void 0:we.slice(1,we==null?void 0:we.length)),E=(me=(he=we==null?void 0:we.replace("(",bl))==null?void 0:he.split(bl))==null?void 0:me[0];let Q=(fa=aa.analyzeSplitToContent(we,")"))==null?void 0:fa[0];Q=(ce=(Xe=Q==null?void 0:Q.replace("(",bl))==null?void 0:Xe.split(bl))==null?void 0:ce[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)),W=Q==null?void 0:Q.split(",");let Qe=(Ee=aa.analyzeSplitToContent(we,")"))==null?void 0:Ee[1];Qe&&Qe!==""&&(I=Ni(Qe))}else if(!oe&&((ma=ye==null?void 0:ye.filter(we=>(we==null?void 0:we[0])==="{"))==null?void 0:ma.length)>0){let we=ye==null?void 0:ye[(ye==null?void 0:ye.length)-1];we=we==null?void 0:we.slice(1,(we==null?void 0:we.length)-1),we=aa.analyzeSplitToContent(we,","),we=we==null?void 0:we.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)),we=we==null?void 0:we.map(Q=>{var Qe,ze,ka,ca;if(Q=Q==null?void 0:Q.replaceAll("$",""),Q!=null&&Q.includes("{")){let Aa="";Q=Q==null?void 0:Q.replaceAll("{","");let Ia=Q==null?void 0:Q.split("}");Aa=((ze=(Qe=Ia==null?void 0:Ia[0])==null?void 0:Qe.split(":"))==null?void 0:ze[0])+":"+(Ia==null?void 0:Ia[1]),Q=Aa,Q=Q+":"}if(Q!=null&&Q.includes(Ho)){let Aa="",Ia=Q==null?void 0:Q.split(Ho);Aa=((ca=(ka=Ia==null?void 0:Ia[0])==null?void 0:ka.split(":"))==null?void 0:ca[0])+":"+(Ia==null?void 0:Ia[1]),Q=Aa,Q=Q+":"}return Q=Q==null?void 0:Q.replaceAll(":","/"),Q}),y=we}else!((We=ye==null?void 0:ye[1])!=null&&We.includes("$"))&&((Oa=ye==null?void 0:ye[1])==null?void 0:Oa[0])!=="("&&h.push(ye==null?void 0:ye[1])}else n=(za=l==null?void 0:l.split("&"))==null?void 0:za[0],x=(H=l==null?void 0:l.split("&"))==null?void 0:H[0];return{label:n,prop:x,options:o,allContents:s,filterContents:c,menus:m,groups:f,words:h,align:"center",formType:u,filter:R,functionName:E,functionRelatedWords:W,calculatorFilter:I,relatedPages:y,value:D}},Bi=(l,r)=>{var o,s,c,m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z,fe,le;let n=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((m=(c=(s=(o=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:o.replace(":",bl))==null?void 0:s.split(bl))==null?void 0:c[0])!=null&&m.includes(","))){let ue=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),Ne=(f=ue==null?void 0:ue.replace(":",bl))==null?void 0:f.split(bl);if(((h=aa.analyzeSplitToContent(Ne==null?void 0:Ne[1],"="))==null?void 0:h.length)===1){let Fe=Ne==null?void 0:Ne[0],be=[];(x=aa.analyzeSplitToContent((u=Ne==null?void 0:Ne[1])==null?void 0:u.slice(1,((y=Ne==null?void 0:Ne[1])==null?void 0:y.length)-1),","))==null||x.forEach(A=>{var q,re;((q=aa.analyzeSplitToContent(A,"="))==null?void 0:q.length)>1?((A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),be=[...be,...Bi(A,r)]):((A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),be.push((re=Bi(A,r))==null?void 0:re[0]))}),n==null||n.push({label:Fe,prop:Fe,children:be,align:"center"})}else{let Fe=[];if(((D=aa.analyzeSplitToContent(ue,"="))==null?void 0:D.length)>=2){let A=(R=aa.analyzeSplitToContent(ue,"="))==null?void 0:R[1],q=(E=aa.analyzeSplitToContent(A,"/"))==null?void 0:E.map(re=>((re==null?void 0:re[(re==null?void 0:re.length)-1])==="/"&&(re=re==null?void 0:re.slice(0,(re==null?void 0:re.length)-1)),re));Fe=q==null?void 0:q.map(re=>(re=Bo(re),re))}let be=(_=(C=(j=(U=(I=(W=ue==null?void 0:ue.replace("{",bl))==null?void 0:W.split(bl))==null?void 0:I[1])==null?void 0:U.replace("}",bl))==null?void 0:j.split(bl))==null?void 0:C[0])==null?void 0:_.split(",");be==null||be.forEach((A,q)=>{(Fe==null?void 0:Fe.length)>0&&q===0?n==null||n.push({label:A,prop:A,align:"center",formType:"Select",relatedContents:Fe==null?void 0:Fe.map(re=>{let Te={};return be==null||be.forEach((xe,Ye)=>{Te[xe]=re==null?void 0:re[Ye]}),Te}),options:Fe==null?void 0:Fe.map(re=>({label:re==null?void 0:re[0],value:re==null?void 0:re[0]})),mainKey:!0}):n==null||n.push({label:A,prop:A,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((S=aa.analyzeSplitToContent(l,"="))==null?void 0:S.length)===2&&((g=(k=aa.analyzeSplitToContent(l,"="))==null?void 0:k[1])==null?void 0:g[0])==="["){let ue=[];if(((z=aa.analyzeSplitToContent(l,"="))==null?void 0:z.length)>=2){let Fe=($=aa.analyzeSplitToContent(l,"="))==null?void 0:$[1],be=(de=(G=aa.analyzeSplitToContent(Fe,"|"))==null?void 0:G.filter(A=>A!=="|"))==null?void 0:de.map(A=>((A==null?void 0:A[(A==null?void 0:A.length)-1])==="|"&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A));ue=be==null?void 0:be.map(A=>(A=Bo(A),A))}let Ne=(pe=(Me=l==null?void 0:l.replace("}",bl))==null?void 0:Me.split(bl))==null?void 0:pe[0];Ne=(Z=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length))==null?void 0:Z.split(","),Ne==null||Ne.forEach((Fe,be)=>{(ue==null?void 0:ue.length)>0&&be===0?n==null||n.push({label:Fe,prop:Fe,align:"center",formType:"Select",relatedContents:ue==null?void 0:ue.map(A=>{let q={};return Ne==null||Ne.forEach((re,Te)=>{q[re]=A==null?void 0:A[Te]}),q}),options:ue==null?void 0:ue.map(A=>({label:A==null?void 0:A[0],value:A==null?void 0:A[0]})),mainKey:!0}):n==null||n.push({label:Fe,prop:Fe,align:"center"})})}else(fe=aa.analyzeSplitToContent(l,","))==null||fe.forEach(ue=>{var Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La,V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za,H,ye;if((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==null?void 0:ue[0])==="{"){let oe=aa.analyzeSplitToContent(ue,"="),we=oe==null?void 0:oe[(oe==null?void 0:oe.length)-1],Q=[],Qe=[],ze=[],ka="",ca="",Aa=[],Ia=[],ba=(Ne=we==null?void 0:we.replace("*",bl))==null?void 0:Ne.split(bl),ua=(ba==null?void 0:ba[0])===""?r==null?void 0:r.value:ba==null?void 0:ba[0];ua=aa.analyzeSplitToContent(ua,")");let va="";if((ua==null?void 0:ua.length)>1&&((Fe=ua==null?void 0:ua[0])==null?void 0:Fe[0])!=="&"&&(va=ua==null?void 0:ua[0],(va==null?void 0:va[0])!=="@"&&(va="@"+va),ca=va??""),ua=(be=ua==null?void 0:ua.filter(gl=>(gl==null?void 0:gl[0])==="$"))==null?void 0:be[0],((A=aa.analyzeSplitToContent(ua,"}"))==null?void 0:A.length)>1&&((re=(q=aa.analyzeSplitToContent(ua,"}"))==null?void 0:q[1])==null?void 0:re[0])==="("&&(va=(Te=aa.analyzeSplitToContent(ua,"}"))==null?void 0:Te[1],(va==null?void 0:va[0])!=="@"&&(va="@"+va),ca!==""&&(ca=ca+","),ca=ca+va),ua=(xe=aa.analyzeSplitToContent(ua,"}"))==null?void 0:xe[0],(ua==null?void 0:ua[0])==="$"&&(ua=(Ye=ua==null?void 0:ua.replace("{",""))==null?void 0:Ye.replace("}",":"),ua=(da=ua==null?void 0:ua.slice(1,ua==null?void 0:ua.length))==null?void 0:da.replaceAll(":","/")),ua!=null&&ua.includes("$")){let gl=(Ma=ua==null?void 0:ua.split("$"))==null?void 0:Ma[0];gl=(ne=gl==null?void 0:gl.split("/"))==null?void 0:ne[0],ua=gl+"/"+((Ae=ua==null?void 0:ua.split("$"))==null?void 0:Ae[1])+"/"}Q=(ua==null?void 0:ua.split("/"))??[];let Ha=(qe=(Ie=ba==null?void 0:ba[1])==null?void 0:Ie.replace("{",bl))==null?void 0:qe.split(bl);if(($e=(se=(Ve=ba==null?void 0:ba[1])==null?void 0:Ve.split("(@"))==null?void 0:se[0])!=null&&$e.includes("&&")||(La=(Na=(Ue=ba==null?void 0:ba[1])==null?void 0:Ue.split("@"))==null?void 0:Na[0])!=null&&La.includes("&&")){let gl=(V=ba==null?void 0:ba[1])!=null&&V.includes("(@")?(he=(ae=(P=ba==null?void 0:ba[1])==null?void 0:P.split("(@"))==null?void 0:ae[0])==null?void 0:he.split("&&"):(Xe=(fa=(me=ba==null?void 0:ba[1])==null?void 0:me.split("@"))==null?void 0:fa[0])==null?void 0:Xe.split("&&");Aa=gl==null?void 0:gl.map(Ra=>{var jl,Zl;return(Ra==null?void 0:Ra[0])==="*"&&(Ra=Ra==null?void 0:Ra.slice(1,Ra==null?void 0:Ra.length)),Ra=(Zl=(jl=Ra==null?void 0:Ra.replace("{",bl))==null?void 0:jl.split(bl))==null?void 0:Zl[0],(Ra==null?void 0:Ra[(Ra==null?void 0:Ra.length)-1])===":"&&(Ra=Ra==null?void 0:Ra.slice(0,(Ra==null?void 0:Ra.length)-1)),Ra=Ra==null?void 0:Ra.split(":"),Ra});let Ol=[];gl==null||gl.forEach((Ra,jl)=>{var Zl,ja;(Ra==null?void 0:Ra[0])==="*"&&(Ra=Ra==null?void 0:Ra.slice(1,Ra==null?void 0:Ra.length)),Ra=(ja=(Zl=Ra==null?void 0:Ra.replace("{",bl))==null?void 0:Zl.split(bl))==null?void 0:ja[1],(Ra==null?void 0:Ra[(Ra==null?void 0:Ra.length)-1])==="}"&&(Ra=Ra==null?void 0:Ra.slice(0,(Ra==null?void 0:Ra.length)-1)),Ra=Ra==null?void 0:Ra.split(","),Ol.push(jl===0?(Ra==null?void 0:Ra.length)-1:Ra==null?void 0:Ra.length),Ia=[...Ia,...Ra]}),Ol=(ce=aa.prefixSum(Ol))==null?void 0:ce.map(Ra=>Ra==null?void 0:Ra.total),Aa=Aa==null?void 0:Aa.map((Ra,jl)=>({number:Ol==null?void 0:Ol[jl],contents:Ra}))}let pl=Ha==null?void 0:Ha[0];(pl==null?void 0:pl[(pl==null?void 0:pl.length)-1])===":"&&(pl=pl==null?void 0:pl.slice(0,(pl==null?void 0:pl.length)-1)),Qe=(pl==null?void 0:pl.split(":"))??[],ze=((Oa=(We=(ma=(Ee=Ha==null?void 0:Ha[1])==null?void 0:Ee.replace("}",bl))==null?void 0:ma.split(bl))==null?void 0:We[0])==null?void 0:Oa.split(","))??[];let $l=(H=oe==null?void 0:oe[0])==null?void 0:H.slice(1,((za=oe==null?void 0:oe[0])==null?void 0:za.length)-2);ca&&ca!==""&&(ka=Ni(ca)),(ye=$l==null?void 0:$l.split(","))==null||ye.forEach((gl,Ol)=>{var Ra,jl,Zl,ja,ga;((Ra=aa.analyzeSplitToContent(gl,"@"))==null?void 0:Ra.length)>1&&(gl=(jl=aa.analyzeSplitToContent(gl,"@"))==null?void 0:jl[0],(gl==null?void 0:gl[(gl==null?void 0:gl.length)-1])==="@"&&(gl=gl==null?void 0:gl.slice(0,(gl==null?void 0:gl.length)-1))),n.push({label:gl,prop:gl,align:"center",menus:Q,groups:(Aa==null?void 0:Aa.length)===0?Qe:(Zl=Aa==null?void 0:Aa.find(Ca=>(Ca==null?void 0:Ca.number)>=Ol))==null?void 0:Zl.contents,words:(Ia==null?void 0:Ia.length)===0?(ja=ze==null?void 0:ze[Ol])==null?void 0:ja.split(":"):(ga=Ia==null?void 0:Ia[Ol])==null?void 0:ga.split(":"),formType:(Q==null?void 0:Q.length)>0?"Select":"Input",mainKey:Ol===0,filter:ka,isMainPath:(Aa==null?void 0:Aa.findIndex(Ca=>(Ca==null?void 0:Ca.number)>=Ol))===0})})}else n.push({label:ue,prop:ue,align:"center"})});else{let ue=(le=aa.analyzeSplitToContent(l,","))==null?void 0:le.map(Ne=>((Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])===","&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),Ne));ue==null||ue.forEach(Ne=>{n.push(mt(Ne,r))})}return n},Qd=(l,r)=>{var m,f,h,y,u;let n=l;if(!l)return;let o="";((m=aa.analyzeSplitToContent(l,"}"))==null?void 0:m.length)>1&&(n=(f=aa.analyzeSplitToContent(l,"}"))==null?void 0:f[0],o=(h=aa.analyzeSplitToContent(l,"}"))==null?void 0:h[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let s=[],c=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=aa.analyzeSplitToContent(n,","))==null||y.forEach(x=>{var D;(x==null?void 0:x[(x==null?void 0:x.length)-1])===","&&(x=x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1)),(x==null?void 0:x[0])==="{"?(D=Bi(x,r))==null||D.forEach(R=>{s.push(R)}):s.push(mt(x,r))}),s!=null&&s.some(x=>{var D;return(D=x==null?void 0:x.prop)==null?void 0:D.includes("@")})&&(s=s==null?void 0:s.filter(x=>{var D;return!((D=x==null?void 0:x.prop)!=null&&D.includes("@"))})),o!==""&&((o==null?void 0:o[0])=="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),(u=aa.analyzeSplitToContent(o,","))==null||u.forEach(x=>{var D;(x==null?void 0:x[(x==null?void 0:x.length)-1])===","&&(x=x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1)),(x==null?void 0:x[0])==="{"?(D=Bi(x,r))==null||D.forEach(R=>{c.push(R)}):c.push(mt(x,r))})),{columns:s,secondColumns:c}},yn=l=>{var r,n,o,s,c;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition")||l!=null&&l.includes("@If"))return l;{let m=(n=(r=l==null?void 0:l.replace("(",bl))==null?void 0:r.split(bl))==null?void 0:n[1],f=(s=(o=l==null?void 0:l.replace("(",bl))==null?void 0:o.split(bl))==null?void 0:s[0];return m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1),m=(c=aa.analyzeSplitToContent(m,","))==null?void 0:c.map(h=>((h==null?void 0:h[(h==null?void 0:h.length)-1])===","&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),(h==null?void 0:h[0])==="("&&(h=h==null?void 0:h.slice(1,(h==null?void 0:h.length)-1)),f+h)),m=m==null?void 0:m.join(","),l!=null&&l.includes("@Quote")&&(m!=null&&m.includes("@QuoteType")||(m=m===""?m+"@QuoteType=Manual":m+",@QuoteType=Manual"),m!=null&&m.includes("@QuoteSonSync")||(m=m===""?m+"@QuoteSonSync=No":m+",@QuoteSonSync=No"),m!=null&&m.includes("@QuoteFatherSync")||(m=m===""?m+"@QuoteFatherSync=Yes":m+",@QuoteFatherSync=Yes")),m}},is=l=>{let r=l==null?void 0:l.map(n=>{var o,s;return{menus:n==null?void 0:n.menus,content:((o=n==null?void 0:n.menus)==null?void 0:o.join("/"))+bl+((s=n==null?void 0:n.groups)==null?void 0:s.join("/"))}});return r=r==null?void 0:r.filter(n=>{var o;return(n==null?void 0:n.menus)&&((o=n==null?void 0:n.menus)==null?void 0:o.length)>0}),r=r==null?void 0:r.map(n=>n==null?void 0:n.content),r=[...new Set(r)],r=r==null?void 0:r.map(n=>{var o,s;return{menus:(o=n==null?void 0:n.split(bl))==null?void 0:o[0],groups:((s=n==null?void 0:n.split(bl))==null?void 0:s[1])??[]}}),r},ts=l=>{var n;let r=l;return(r==null?void 0:r[0])==="("&&(r==null?void 0:r[1])==="("&&(r=r.slice(1,(r==null?void 0:r.length)-1)),r=(n=aa.analyzeSplitToContent(r,","))==null?void 0:n.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),(o==null?void 0:o[0])!=="@"&&(o="@"+o),o=yn(o),o)),r==null?void 0:r.join(",")},nc=(l,r,n="")=>{var j,C,_,S,k,g,z,$,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La,V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za;let o=[],s=[],c=[],m="",f="",h="",y=[],u=[],x=[],D="";if(((j=l==null?void 0:l[0])==null?void 0:j[0])!=="*"&&((C=l==null?void 0:l[0])==null?void 0:C[0])!=="$"&&!((_=l==null?void 0:l[0])!=null&&_.includes("$")))return;((S=l==null?void 0:l[0])==null?void 0:S[0])!=="*"&&((k=l==null?void 0:l[0])==null?void 0:k[0])!=="$"&&(m=(g=aa.analyzeSplitToContent(l==null?void 0:l[0],")"))==null?void 0:g[0],(m==null?void 0:m[0])!=="@"&&(m="@"+m),m=Ni(m),h=(z=aa.analyzeSplitToContent(l==null?void 0:l[0],")"))==null?void 0:z[1],(h==null?void 0:h[0])==="$"&&(h=h==null?void 0:h.slice(1,h==null?void 0:h.length)),h=h==null?void 0:h.replaceAll(":","/"));let E=aa.analyzeSplitToContent(l==null?void 0:l[0],":");if(o=($=E==null?void 0:E.filter(H=>(H==null?void 0:H[0])!=="{"&&(H==null?void 0:H[0])!=="["))==null?void 0:$.join(""),f=(G=l==null?void 0:l[0])==null?void 0:G.replace(o,""),(o==null?void 0:o[0])==="("&&(o=""),D=(de=E==null?void 0:E.filter(H=>(H==null?void 0:H[0])!=="["))==null?void 0:de.join(""),D=(Me=l==null?void 0:l[0])==null?void 0:Me.replace(D,""),f=f==null?void 0:f.replace(D,""),(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),(o==null?void 0:o[(o==null?void 0:o.length)-1])===":"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),((pe=aa.analyzeSplitToContent(o,"@"))==null?void 0:pe.length)>1&&(m=(Z=aa.analyzeSplitToContent(o,"@"))==null?void 0:Z[1],m="@"+m,o=(fe=aa.analyzeSplitToContent(o,"@"))==null?void 0:fe[0]),(o==null?void 0:o[(o==null?void 0:o.length)-1])==="@"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o=o===""?[]:o==null?void 0:o.split(":"),m=yn(m),(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)),n!==""){let H=(le=aa.analyzeSplitToContent(n,")"))==null?void 0:le[0],ye=(ue=aa.analyzeSplitToContent(n,"@"))==null?void 0:ue[1];h=(Fe=(Ne=aa.analyzeSplitToContent(n,"@"))==null?void 0:Ne[0])==null?void 0:Fe.replace(H,""),(h==null?void 0:h[(h==null?void 0:h.length)-1])==="@"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),H=ts(H),ye=ts(ye);let oe=H??"";if(oe!==""&&(oe=oe+","),oe=oe+ye,(oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===","&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe!==""&&m!==""&&(m=m+","),m=m+oe,(h==null?void 0:h[0])==="$"&&(h=h==null?void 0:h.slice(1,h==null?void 0:h.length)),h=(be=aa.analyzeSplitToContent(h,":"))==null?void 0:be.filter((we,Q)=>{var Qe;return!((we==null?void 0:we[0])==="{"&&Q===((Qe=aa.analyzeSplitToContent(h,":"))==null?void 0:Qe.length)-1)}),h=h==null?void 0:h.join(""),(h==null?void 0:h[(h==null?void 0:h.length)-1])===":"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),m!=null&&m.includes("@Sync")||(m=m===""?m+"@Sync=(Yes,Yes)":m+",@Sync=(Yes,Yes)"),h!=null&&h.includes("$")){let we=(q=(A=h==null?void 0:h.replace("*",bl))==null?void 0:A.split(bl))==null?void 0:q[1],Q=(Te=(re=h==null?void 0:h.replace("*",bl))==null?void 0:re.split(bl))==null?void 0:Te[0];Q=Q==null?void 0:Q.split("$"),Q=((Ye=(xe=Q==null?void 0:Q[0])==null?void 0:xe.split(":"))==null?void 0:Ye[0])+":"+(Q==null?void 0:Q[1])+":",h=Q+"*"+we}else h=(da=h==null?void 0:h.replaceAll("{",""))==null?void 0:da.replaceAll("}","")}m!==""&&m&&(m="("+m+")"),m=h+m,((Ma=aa.analyzeSplitToContent(f,"}"))==null?void 0:Ma.length)>1&&(f=(ne=aa.analyzeSplitToContent(f,"}"))==null?void 0:ne.filter(H=>(H==null?void 0:H[0])!=="@"),f=f==null?void 0:f.join(""));let W=Qd(f,r);c=f===""?[]:(W==null?void 0:W.columns)??[],x=oa.getColumnChild(c);let I=oa.getColumnChild(c);c!=null&&c.some(H=>{var ye;return Array.isArray(H==null?void 0:H.children)&&((ye=H==null?void 0:H.children)==null?void 0:ye.length)>0})&&(c=[c]),s=D?Bo(D):[],!(s!=null&&s.every(H=>Array.isArray(H)))&&(s==null?void 0:s.length)>0&&(s=[s]),(s==null?void 0:s.length)>0&&(Array.isArray(s==null?void 0:s[0])&&((Ae=s==null?void 0:s[0])!=null&&Ae.every(H=>Array.isArray(H)))?s=s==null?void 0:s.map((H,ye)=>(H=H.map((oe,we)=>(oe.unshift("{}"),oe.unshift((we+1).toString()),oe)),H)):s=s==null?void 0:s.map((H,ye)=>(H.unshift("{}"),H.unshift((ye+1).toString()),H))),W!=null&&W.secondColumns&&((Ie=W==null?void 0:W.secondColumns)==null?void 0:Ie.length)>0&&((s==null?void 0:s.length)>0?s=s==null?void 0:s.map((H,ye)=>{var oe,we;return Array.isArray(H==null?void 0:H[0])?H=H==null?void 0:H.map((Q,Qe)=>{var ze,ka;return Q.unshift((ka=(ze=W==null?void 0:W.secondColumns)==null?void 0:ze[Qe])==null?void 0:ka.prop),Q}):H.unshift((we=(oe=W==null?void 0:W.secondColumns)==null?void 0:oe[ye])==null?void 0:we.prop),H}):s=(qe=W==null?void 0:W.secondColumns)==null?void 0:qe.map((H,ye)=>(H=[H==null?void 0:H.label],H.push(ye),H)),c.unshift({label:"",prop:"disabled",sortable:!1})),x=x==null?void 0:x.map(H=>{var ye,oe;return{menus:H==null?void 0:H.menus,content:((ye=H==null?void 0:H.menus)==null?void 0:ye.join("/"))+bl+((oe=H==null?void 0:H.groups)==null?void 0:oe.join("/"))}});let U=[];if(((se=(Ve=m==null?void 0:m.replace("(",bl))==null?void 0:Ve.split(bl))==null?void 0:se[0])!==""&&(U=(Ue=($e=m==null?void 0:m.replace("(",bl))==null?void 0:$e.split(bl))==null?void 0:Ue[0],U=[U],U=U==null?void 0:U.map(H=>{var oe,we,Q;let ye=H==null?void 0:H.split("*");return{menus:(oe=ye==null?void 0:ye[0])==null?void 0:oe.split(":"),content:((we=ye==null?void 0:ye[0])==null?void 0:we.replaceAll(":","/"))+bl+((Q=ye==null?void 0:ye[1])==null?void 0:Q.replaceAll(":","/"))}}),x=[...x,...U]),x=x==null?void 0:x.filter(H=>{var ye;return(H==null?void 0:H.menus)&&((ye=H==null?void 0:H.menus)==null?void 0:ye.length)>0}),x=x==null?void 0:x.map(H=>H==null?void 0:H.content),x=[...new Set(x)],x=x==null?void 0:x.map(H=>{var ye,oe;return{menus:(ye=H==null?void 0:H.split(bl))==null?void 0:ye[0],groups:((oe=H==null?void 0:H.split(bl))==null?void 0:oe[1])??[]}}),y=I==null?void 0:I.filter(H=>{var ye;return(H==null?void 0:H.filter)&&((ye=H==null?void 0:H.filter)==null?void 0:ye.includes("@Sync"))}),(y==null?void 0:y.length)>0&&(y=y==null?void 0:y.filter(H=>{var ye,oe,we,Q;return(Q=(we=(oe=(ye=aa.analyzeSplitToContent(H,","))==null?void 0:ye.find(Qe=>Qe==null?void 0:Qe.includes("@Sync")))==null?void 0:oe.split(","))==null?void 0:we[0])==null?void 0:Q.includes("Yes")}),y=is(y)),u=I==null?void 0:I.filter(H=>{var ye;return(H==null?void 0:H.filter)&&((ye=H==null?void 0:H.filter)==null?void 0:ye.includes("@Sync"))}),(u==null?void 0:u.length)>0&&(u=u==null?void 0:u.filter(H=>{var ye,oe,we,Q;return(Q=(we=(oe=(ye=aa.analyzeSplitToContent(H,","))==null?void 0:ye.find(Qe=>Qe==null?void 0:Qe.includes("@Sync")))==null?void 0:oe.split(","))==null?void 0:we[1])==null?void 0:Q.includes("Yes")}),u=is(u)),m!==""&&(m!=null&&m.includes("@Sync"))&&(m==null?void 0:m[0])!=="("){let H=(Na=m==null?void 0:m.replace("(",bl))==null?void 0:Na.split(bl),ye=H==null?void 0:H[1];if(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1),ye=aa.analyzeSplitToContent(ye,","),(P=(V=(La=ye==null?void 0:ye.find(oe=>oe==null?void 0:oe.includes("@Sync")))==null?void 0:La.split(","))==null?void 0:V[0])!=null&&P.includes("Yes")){let oe=H==null?void 0:H[0];oe=[{menus:(he=(ae=oe==null?void 0:oe.split("*"))==null?void 0:ae[0])==null?void 0:he.replaceAll(":","/"),groups:((fa=(me=oe==null?void 0:oe.split("*"))==null?void 0:me[1])==null?void 0:fa.split(":"))??[]}],y=[...y,...oe]}if((Ee=(ce=(Xe=ye==null?void 0:ye.find(oe=>oe==null?void 0:oe.includes("@Sync")))==null?void 0:Xe.split(","))==null?void 0:ce[1])!=null&&Ee.includes("Yes")){let oe=H==null?void 0:H[0];oe=[{menus:(We=(ma=oe==null?void 0:oe.split("*"))==null?void 0:ma[0])==null?void 0:We.replaceAll(":","/"),groups:((za=(Oa=oe==null?void 0:oe.split("*"))==null?void 0:Oa[1])==null?void 0:za.split(":"))??[]}],y=[...y,...oe]}}return{groupName:o,tableColumns:c,tableFilter:m,tableContents:s,columns:(W==null?void 0:W.secondColumns)??[],relatedQuotes:x,fatherSyncContents:y,sonSyncContents:u}},oc=(l,r)=>(l=l==null?void 0:l.map((n,o)=>{var s,c,m,f;if(Array.isArray(n))n=n==null?void 0:n.map(h=>{var y,u,x,D;return h!=null&&h.isMainPath||(((y=h==null?void 0:h.children)==null?void 0:y.length)>0?h.children=oc(h.children,r):((u=h==null?void 0:h.menus)==null?void 0:u.length)>0&&!((x=n==null?void 0:n[0])!=null&&x.isMainPath)&&(h.menus=(D=h.menus)==null?void 0:D.map((R,E)=>{var W,I;return((W=h.menus)==null?void 0:W.length)-1===E&&R===""&&(r==null?void 0:r.parentContent)+"/"!==((I=h.menus)==null?void 0:I.join("/"))&&(R=r==null?void 0:r.value),h}),h.bindMenus=h.menus)),h});else{if(o===0&&((s=n.menus)==null?void 0:s.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((c=n.menus)==null?void 0:c.length)>0&&!((m=l==null?void 0:l[0])!=null&&m.isMainPath)&&(n.menus=(f=n.menus)==null?void 0:f.map((h,y)=>{var u,x;return((u=n.menus)==null?void 0:u.length)-1===y&&h===""&&(r==null?void 0:r.parentContent)+"/"!==((x=n.menus)==null?void 0:x.join("/"))&&(h=r==null?void 0:r.value),h}),n.bindMenus=n.menus)}return n}),l),ep=(l,r)=>(l=l==null?void 0:l.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=oc(n.contents,r)),n)),l),yt=(l,r)=>{let n=l;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(o=>(o=yt(o,r),o)):n=n==null?void 0:n.map(o=>{var s,c;return o!=null&&o.children&&((s=o==null?void 0:o.children)==null?void 0:s.length)>0?o.children=yt(o==null?void 0:o.children,r):o!=null&&o.words&&((c=o==null?void 0:o.words)==null?void 0:c.length)>0&&(r!=null&&r.find(m=>{var f,h,y,u;return((u=(f=o==null?void 0:o.prop)==null?void 0:f.split("."))==null?void 0:u[((y=(h=o==null?void 0:o.prop)==null?void 0:h.split("."))==null?void 0:y.length)-1])===m}))&&(o.mainKey=!0),o}),n};let dr="$R";const ap=L.useUnit(L.pinia),{selectTitle:vn}=L.storeToRefs(ap),mn=[{key:"@MaxRow",value:"onNumSlice",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:"@TopButton",value:"onButtonContents",order:1},{key:"@ColumnButton",value:"onPamButtonContents",order:1},{key:"@RowButton",value:"onRowButtonContents",order:1},{key:"@BottomButton",value:"onBottomButtonContents",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 to=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(to||{});const lp=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;return r.push({key:"backGround",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},rp=l=>{const r=tc(l==null?void 0:l.filter);return r?sc(l==null?void 0:l.contents,{position:r}):l==null?void 0:l.contents},np=l=>{const r=tc(l==null?void 0:l.filter);return r?sc(l==null?void 0:l.contents,{size:r}):l==null?void 0:l.contents},op=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;const n=Number(l==null?void 0:l.filter);return r.push({key:"textSize",contents:Number.isNaN(n)?l==null?void 0:l.filter:n}),r}return l==null?void 0:l.contents},ip=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;return r.push({key:"textRGBA",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},tp=l=>{var n;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(o=>{var s;return(o==null?void 0:o.key)==="tableContents"&&(o.contents=(s=o.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),o})},sp=async l=>{var r,n,o,s,c,m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z;if((l==null?void 0:l.filter)==="Random")return(r=l==null?void 0:l.contents)==null?void 0:r.map(le=>((le==null?void 0:le.key)==="tableContents"&&(le.contents=aa.shuffle(le.contents)),le));if((l==null?void 0:l.filter)==="Auto"){let fe=(o=(n=l==null?void 0:l.contents)==null?void 0:n.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:o.contents;Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]),fe=oa.getColumnChild(fe);let le=fe==null?void 0:fe.filter(Te=>(Te==null?void 0:Te.filter)&&(Te==null?void 0:Te.filter)!==""),ue=new Map,Ne=[];le==null||le.forEach(Te=>{var xe,Ye;ue.get((xe=Te==null?void 0:Te.menus)==null?void 0:xe.join("/"))||(ue.set((Ye=Te==null?void 0:Te.menus)==null?void 0:Ye.join("/"),Te),Ne.push(Te))});let Fe=(c=(s=vn==null?void 0:vn.value)==null?void 0:s.find(Te=>(Te==null?void 0:Te.condition)==="child"))==null?void 0:c.value,be=Ne==null?void 0:Ne.map(Te=>{var xe,Ye,da;return Te=(xe=Te==null?void 0:Te.menus)==null?void 0:xe.join("/"),(Te==null?void 0:Te[(Te==null?void 0:Te.length)-1])==="/"&&((da=(Ye=vn==null?void 0:vn.value)==null?void 0:Ye.find(Ma=>(Ma==null?void 0:Ma.condition)==="child"))==null?void 0:da.parentContent)+"/"!==Te?Te=Te+Fe:(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}),A=Ne==null?void 0:Ne.map(Te=>Te==null?void 0:Te.groups),q=be==null?void 0:be.map(async Te=>{let xe=await Kr(Te,!1);return{path:Te,contents:xe}});q=await Promise.all(q);let re=q==null?void 0:q.map((Te,xe)=>{var da,Ma,ne,Ae,Ie,qe,Ve;let Ye=(da=Te==null?void 0:Te.contents)==null?void 0:da.filter(se=>{var $e,Ue;return(se==null?void 0:se.name)===((Ue=A==null?void 0:A[xe])==null?void 0:Ue[(($e=A==null?void 0:A[xe])==null?void 0:$e.length)-1])});return Ye=(Ae=(ne=(Ma=Ye==null?void 0:Ye[0])==null?void 0:Ma.compData)==null?void 0:ne.find(se=>(se==null?void 0:se.key)==="tableContents"))==null?void 0:Ae.contents,(Te==null?void 0:Te.path)===((qe=(Ie=vn==null?void 0:vn.value)==null?void 0:Ie.find(se=>(se==null?void 0:se.condition)==="child"))==null?void 0:qe.parentContent)&&(Ye=((Ve=Ye==null?void 0:Ye.map(se=>{for(let $e in se)if(se[$e]===Fe)return se}))==null?void 0:Ve.filter(se=>se))??[]),Ye??[]});if(re=re==null?void 0:re.map(Te=>(Te=Te==null?void 0:Te.map(xe=>{var da;let Ye={};for(let Ma in xe)if(le!=null&&le.find(ne=>{var Ae,Ie;return((Ie=(Ae=ne==null?void 0:ne.words)==null?void 0:Ae[0])==null?void 0:Ie.replaceAll("'",""))===Ma})){let ne=(da=le==null?void 0:le.find(Ae=>{var Ie,qe;return((qe=(Ie=Ae==null?void 0:Ae.words)==null?void 0:Ie[0])==null?void 0:qe.replaceAll("'",""))===Ma}))==null?void 0:da.prop;Ye[ne]=xe==null?void 0:xe[Ma]}return Ye}),Te)),re=aa.cartesianProduct(re),Array.isArray(re==null?void 0:re[0])&&(re=re==null?void 0:re[0]),(re==null?void 0:re.length)>0&&((x=(f=(m=le==null?void 0:le[0])==null?void 0:m.menus)==null?void 0:f.join("/"))==null?void 0:x[((u=(y=(h=le==null?void 0:le[0])==null?void 0:h.menus)==null?void 0:y.join("/"))==null?void 0:u.length)-1])==="/")return(D=l==null?void 0:l.contents)==null?void 0:D.map(xe=>{var Ye;return(xe==null?void 0:xe.key)==="tableContents"&&(re==null?void 0:re.length)>0&&(xe.contents=((Ye=xe.contents)==null?void 0:Ye.length)>0?xe.contents:re),xe})}if((l==null?void 0:l.filter)==="Manual"){let fe=[],le=[],ue=(E=(R=l==null?void 0:l.contents)==null?void 0:R.find(A=>(A==null?void 0:A.key)==="filter"))==null?void 0:E.contents;(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===")"?ue=(I=(W=ue==null?void 0:ue.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[0]:ue="",ue!==""&&(fe=((j=(U=ue==null?void 0:ue.split("*"))==null?void 0:U[0])==null?void 0:j.split(":"))??[],le=((g=(k=(S=(_=(C=ue==null?void 0:ue.split("*"))==null?void 0:C[1])==null?void 0:_.replace("{",dr))==null?void 0:S.split(dr))==null?void 0:k[0])==null?void 0:g.split(":"))??[]);let Ne=($=(z=l==null?void 0:l.contents)==null?void 0:z.find(A=>(A==null?void 0:A.key)==="filter"))==null?void 0:$.contents;Ne=(de=(G=Ne==null?void 0:Ne.replace("(",dr))==null?void 0:G.split(dr))==null?void 0:de[1],Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1);let Fe=(Me=l==null?void 0:l.contents)==null?void 0:Me.map(A=>{var q,re,Te,xe,Ye,da,Ma,ne,Ae;return(A==null?void 0:A.key)==="header"&&((q=A==null?void 0:A.contents)!=null&&q.every(Ie=>(Ie==null?void 0:Ie.mainKey)!==!0)&&Array.isArray(A==null?void 0:A.contents)&&!Array.isArray((re=A==null?void 0:A.contents)==null?void 0:re[0])?A.contents=(Te=A==null?void 0:A.contents)==null?void 0:Te.map((Ie,qe)=>{var Ve,se,$e;return Ie!=null&&Ie.isMainPath||(qe===0?(Ie.mainKey=!0,Ie.formType="Select",Ie.bindMenus=fe,Ie.groups=((Ve=Ie.groups)==null?void 0:Ve.length)===0?le:Ie.groups,Ie.words=((se=Ie.words)==null?void 0:se.length)===0?[Ie==null?void 0:Ie.prop]:Ie.words,Ie.filter=Ne,(!(Ie!=null&&Ie.menus)||(($e=Ie==null?void 0:Ie.menus)==null?void 0:$e.length)===0)&&(Ie.menus=fe)):(Ie.mainKey=!1,Ie.bindMenus=fe)),Ie}):Array.isArray((xe=A==null?void 0:A.contents)==null?void 0:xe[0])&&((Ma=(da=(Ye=A==null?void 0:A.contents)==null?void 0:Ye[0])==null?void 0:da.filter(()=>(fe==null?void 0:fe.length)>0))==null?void 0:Ma.length)>0&&(A.contents[0]=(Ae=(ne=A==null?void 0:A.contents)==null?void 0:ne[0])==null?void 0:Ae.map((Ie,qe)=>{var Ve,se,$e;return Ie!=null&&Ie.isMainPath||(qe===0?(Ie.mainKey=!0,Ie.formType="Select",Ie.bindMenus=fe,Ie.groups=((Ve=Ie.groups)==null?void 0:Ve.length)===0?le:Ie.groups,Ie.words=((se=Ie.words)==null?void 0:se.length)===0?[Ie==null?void 0:Ie.prop]:Ie.words,Ie.filter=Ne,(!(Ie!=null&&Ie.menus)||Array.isArray(Ie==null?void 0:Ie.menus)&&(($e=Ie==null?void 0:Ie.menus)==null?void 0:$e.length)===0)&&(fe==null?void 0:fe.length)>0&&(Ie.menus=fe)):(Ie.mainKey=!1,Ie.bindMenus=fe)),Ie}))),A}),be=(pe=Fe==null?void 0:Fe.find(A=>(A==null?void 0:A.key)==="header"))==null?void 0:pe.contents;if(Array.isArray(be==null?void 0:be[0])&&(be=be==null?void 0:be[0]),be=oa.getColumnChild(be),be!=null&&be.some(A=>{var q,re;return((re=A==null?void 0:A.menus)==null?void 0:re[((q=A==null?void 0:A.menus)==null?void 0:q.length)-1])===""})){let A=(Z=vn==null?void 0:vn.value)==null?void 0:Z.find(q=>(q==null?void 0:q.condition)==="child");Fe=ep(Fe,A)}return Fe}return l==null?void 0:l.contents},cp=async l=>{if((l==null?void 0:l.filter)==="Ordin"){let r=l==null?void 0:l.contents;return r.push({key:"enableWrap",contents:1}),r}if((l==null?void 0:l.filter)==="Block"){let r=l==null?void 0:l.contents;return r.push({key:"enableWrap",contents:2}),r}if((l==null?void 0:l.filter)==="Text"){let r=l==null?void 0:l.contents;return r.push({key:"enableWrap",contents:3}),r}return l==null?void 0:l.contents},up=l=>{var o,s,c,m;let r=l==null?void 0:l.filter;if(r!=null&&r.includes("*")&&(r="({"+((s=(o=r==null?void 0:r.replace("{",dr))==null?void 0:o.split(dr))==null?void 0:s[1])),r=(c=r==null?void 0:r.replaceAll("{",""))==null?void 0:c.replaceAll("}",""),(r==null?void 0:r[0])!=="("&&(r="("+r+")"),r.slice(1,(r==null?void 0:r.length)-1)==="undefined")return l==null?void 0:l.contents;let n=oa.calculatorAndToOr(r);if((n==null?void 0:n.length)>0){let f=[];return n==null||n.forEach(y=>{let u={};for(let x in y){let D=x;D!=null&&D.includes("[")||(u[D]=y[x])}f.push(u)}),(m=l==null?void 0:l.contents)==null?void 0:m.map(y=>{var x,D,R;let u=(D=(x=l==null?void 0:l.contents)==null?void 0:x.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:D.contents;if(u=(R=oa.getEqualChild(u))==null?void 0:R.filter(E=>(E==null?void 0:E.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let W=oa.tableToForm(y==null?void 0:y.contents,u);f==null||f.forEach(I=>{var U,j;for(let C in I)!((U=W==null?void 0:W[0])!=null&&U.find(_=>{var S;return(_==null?void 0:_.key)===C||((S=_==null?void 0:_.key)==null?void 0:S.includes(C))}))&&!(W!=null&&W.find(_=>{var S;return(_==null?void 0:_.key)===C||((S=_==null?void 0:_.key)==null?void 0:S.includes(C))}))||(((j=I[C])==null?void 0:j[0])!=="!"?W=W==null?void 0:W.filter(_=>{var S,k;return((S=_==null?void 0:_.find(g=>{var z;return(g==null?void 0:g.key)===C||((z=g==null?void 0:g.key)==null?void 0:z.includes(C))}))==null?void 0:S.value)===I[C]||Array.isArray(I==null?void 0:I[C])&&((k=I==null?void 0:I[C])==null?void 0:k.find(g=>{var z;return((z=_==null?void 0:_.find($=>{var G;return($==null?void 0:$.key)===C||((G=$==null?void 0:$.key)==null?void 0:G.includes(C))}))==null?void 0:z.value)===g}))}):W=W==null?void 0:W.filter(_=>{var S;return((S=_==null?void 0:_.find(k=>{var g;return(k==null?void 0:k.key)===C||((g=k==null?void 0:k.key)==null?void 0:g.includes(C))}))==null?void 0:S.value)!==I[C]}))}),(W==null?void 0:W.length)===0?y.contents=[]:y.contents=W==null?void 0:W.map(I=>{let U={};return I==null||I.forEach(j=>{U[j==null?void 0:j.key]=j==null?void 0:j.value}),U})}return y})}return l==null?void 0:l.contents},dp=l=>l==null?void 0:l.contents,pp=l=>l==null?void 0:l.contents,fp=l=>{var r,n,o,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let c=(o=(n=l==null?void 0:l.filter)==null?void 0:n.slice(1,((r=l==null?void 0:l.filter)==null?void 0:r.length)-1))==null?void 0:o.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(f=>((f==null?void 0:f.key)==="header"&&(f.contents=yt(f.contents,c)),f))}return l==null?void 0:l.contents},hp=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(c=r==null?void 0:r.split(","))==null?void 0:c.map(m=>({label:m,prop:m}))),s}):l==null?void 0:l.contents},vp=l=>l==null?void 0:l.contents,mp=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(c=r==null?void 0:r.split(","))==null?void 0:c.map(m=>({label:m,prop:m}))),s}):l==null?void 0:l.contents},yp=l=>{var n;let r=(l==null?void 0:l.filter)??"";if((r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""){let o=l==null?void 0:l.contents,s=(n=r==null?void 0:r.split(","))==null?void 0:n.map(c=>({label:c,prop:c}));return o.push({key:"bottomButton",contents:s}),o}return l==null?void 0:l.contents},gp=l=>{var r,n,o,s;if(((r=l==null?void 0:l.filter)==null?void 0:r[0])!=="["){const c=parseInt(l==null?void 0:l.filter);return!c||Number.isNaN(c)?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(f=>{var h;return(f==null?void 0:f.key)==="formContent"&&(f.contents=(h=f.contents)==null?void 0:h.map(y=>(y.width=c,y))),f})}if(((o=l==null?void 0:l.filter)==null?void 0:o[0])==="["){let c=Bo(l==null?void 0:l.filter),m=Array.isArray(c)?c.map(h=>parseInt(h)).filter(h=>!!h&&!Number.isNaN(h)):[];return m.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(h=>{if((h==null?void 0:h.key)==="formContent"){const y=h.contents??[];h.contents=y.map((u,x)=>{const D=x+1;let R=0,E=0;for(let I=0;I<m.length;I++){if(E+=m[I],D<=E){R=I;break}I===m.length-1&&(R=m.length-1)}const W=m[R]||m[m.length-1]||1;return u.width=W,u})}return h}):l==null?void 0:l.contents}return l==null?void 0:l.contents},bp=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.filter;return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c,m,f;return(s==null?void 0:s.key)==="header"&&(Array.isArray((c=s==null?void 0:s.contents)==null?void 0:c[0])?s.contents[0]=(f=s.contents[0])==null?void 0:f.map(h=>(n!=null&&n.find(y=>y===(h==null?void 0:h.prop))&&(h.fixed="left"),h)):s.contents=(m=s.contents)==null?void 0:m.map(h=>(n!=null&&n.find(y=>y===(h==null?void 0:h.prop))&&(h.fixed="left"),h))),s})}return l==null?void 0:l.contents},kp=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.filter;(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(",");const o=c=>(n!=null&&n.find(m=>m===(c==null?void 0:c.prop))&&(c.required=!0),c!=null&&c.children&&Array.isArray(c.children)&&(c.children=c.children.map(m=>o(m))),c);return(r=l==null?void 0:l.contents)==null?void 0:r.map(c=>{var m,f,h;return(c==null?void 0:c.key)==="header"&&(Array.isArray((m=c==null?void 0:c.contents)==null?void 0:m[0])?c.contents[0]=(h=c.contents[0])==null?void 0:h.map(y=>o(y)):c.contents=(f=c.contents)==null?void 0:f.map(y=>o(y))),c})}return l==null?void 0:l.contents},xp=async l=>{var o,s,c,m,f,h,y,u,x,D,R,E,W,I,U,j,C;const r=L.useUnit(L.pinia),{chooseTitle:n}=L.storeToRefs(r);if((l==null?void 0:l.filter)==="true"){let _=await Kr(((s=(o=n==null?void 0:n.value)==null?void 0:o[0])==null?void 0:s.parentContent)??((m=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:m.relatedContent),!1),S=(h=(f=n==null?void 0:n.value)==null?void 0:f[0])==null?void 0:h.value;(u=(y=_==null?void 0:_[0])==null?void 0:y.compData)!=null&&u.find($=>($==null?void 0:$.key)==="header")?_=(x=_==null?void 0:_[0])==null?void 0:x.compData:_=(R=(D=_==null?void 0:_.filter($=>{var G;return(G=$==null?void 0:$.compData)==null?void 0:G.find(de=>(de==null?void 0:de.key)==="header")}))==null?void 0:D[0])==null?void 0:R.compData;let k=(E=_==null?void 0:_.find($=>($==null?void 0:$.key)==="header"))==null?void 0:E.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((W=k==null?void 0:k.find($=>$==null?void 0:$.isMainKey))==null?void 0:W.prop)??((I=k==null?void 0:k[0])==null?void 0:I.prop);let g=(j=(U=_==null?void 0:_.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:U.contents)==null?void 0:j.find($=>($==null?void 0:$[k])===S);return(C=l==null?void 0:l.contents)==null?void 0:C.map($=>{var G;return($==null?void 0:$.key)==="formContent"&&($.contents=(G=$.contents)==null?void 0:G.map(de=>(de.value=g==null?void 0:g[de==null?void 0:de.prop],de))),$})}return l==null?void 0:l.contents},wp=l=>{var r,n,o,s,c;if((r=l==null?void 0:l.extra)!=null&&r.row){let m=l==null?void 0:l.filter;if(m!=null&&m.includes("*")&&(m="({"+((o=(n=m==null?void 0:m.replace("{",dr))==null?void 0:n.split(dr))==null?void 0:o[1])),m=(s=m==null?void 0:m.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(m==null?void 0:m[0])!=="("&&(m="("+m+")"),m.slice(1,(m==null?void 0:m.length)-1)==="undefined")return l==null?void 0:l.contents;let f=oa.calculatorAndToOr(m),h=f==null?void 0:f[0],y=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let x in h)(h==null?void 0:h[x])===(y==null?void 0:y[x])?u.push(!0):u.push(!1);return u!=null&&u.every(x=>x===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},_p=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"tab",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Sp=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"choice",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Ep=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"fixType",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Cp=l=>{var r;if(l!=null&&l.filter){let n=l==null?void 0:l.contents,o=l==null?void 0:l.filter;return(o==null?void 0:o[0])==="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=(r=aa.analyzeSplitToContent(o,","))==null?void 0:r.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),s)),n.push({key:"stepName",contents:o}),n}return l==null?void 0:l.contents},Dp=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"step",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},ic={onNumSlice:tp,onRandomContents:sp,onConditionContents:up,onFatherPaceContents:dp,onPaceContents:pp,onMainTagContents:fp,onButtonContents:hp,onPamButtonContents:vp,onRowButtonContents:mp,onRelated:xp,onRowNum:gp,onFixRow:bp,onReqItem:kp,onBottomButtonContents:yp,onConditionContent:wp,onTabs:_p,onSinChoice:Sp,onTextSize:op,onTextRGBA:ip,onPosition:rp,onSize:np,onShowType:Ep,onStepName:Cp,onStep:Dp,onInterfaceTypeContents:cp,onBackGround:lp},Np=async(l,r)=>{var c,m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g;let n="";if(((c=l==null?void 0:l.find(z=>(z==null?void 0:z.key)==="filter"))==null?void 0:c.contents)!==""&&(n=(m=l==null?void 0:l.find(z=>(z==null?void 0:z.key)==="filter"))==null?void 0:m.contents),n===""||!n)return l;(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n=(h=(f=n==null?void 0:n.replace("(",dr))==null?void 0:f.split(dr))==null?void 0:h[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let o=(y=aa.analyzeSplitToContent(n,","))==null?void 0:y.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!=null&&z.includes("(")||(z=z==null?void 0:z.replaceAll(":","=")),z)),s=l;for(let z in o){let $,G="";(u=o==null?void 0:o[z])!=null&&u.includes("(")?($=(R=(D=(x=o==null?void 0:o[z])==null?void 0:x.replace("(",dr))==null?void 0:D.split(dr))==null?void 0:R[0],G="("+((I=(W=(E=o==null?void 0:o[z])==null?void 0:E.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[1])):($=(C=(j=(U=o==null?void 0:o[z])==null?void 0:U.replace("=",dr))==null?void 0:j.split(dr))==null?void 0:C[0],G=(k=(S=(_=o==null?void 0:o[z])==null?void 0:_.replace("=",dr))==null?void 0:S.split(dr))==null?void 0:k[1]);let de=(g=mn==null?void 0:mn.find(Me=>(Me==null?void 0:Me.key)===$))==null?void 0:g.value;if(de){const Me=ic[de];s=await Me({contents:s,filter:G})}}return s},Nt=async(l,r)=>{var m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$;let n="";if(((m=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:m.contents)!==""&&(n=(f=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:f.contents),n===""||!n)return l;(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[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n==null?void 0:n[0])==="@"||(n=(y=(h=n==null?void 0:n.replace("(",dr))==null?void 0:h.split(dr))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let o=(u=aa.analyzeSplitToContent(n,","))==null?void 0:u.map(G=>((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)),G!=null&&G.includes("(")||(G=G==null?void 0:G.replaceAll(":","=")),G)),s=l,c=new Map;o==null||o.forEach(G=>{var Me,pe,Z;let de=(Me=G==null?void 0:G.split("="))==null?void 0:Me[0];if(de==="@MainPam"&&c.get(de)){let fe=c.get(de);fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1);let le=(Z=(pe=G==null?void 0:G.replace("{",dr))==null?void 0:pe.split(dr))==null?void 0:Z[1];le=fe+","+le,c.set(de,le)}else c.set(de,G)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((G,de)=>{var Me,pe;return((Me=mn==null?void 0:mn.find(Z=>de==null?void 0:de.includes(Z==null?void 0:Z.key)))==null?void 0:Me.order)-((pe=mn==null?void 0:mn.find(Z=>G==null?void 0:G.includes(Z==null?void 0:Z.key)))==null?void 0:pe.order)});for(let G in o){let de,Me="";(x=o==null?void 0:o[G])!=null&&x.includes("(")&&((D=o==null?void 0:o[G])!=null&&D.includes("@If"))?(de=(W=(E=(R=o==null?void 0:o[G])==null?void 0:R.replace("(",dr))==null?void 0:E.split(dr))==null?void 0:W[0],Me="("+((j=(U=(I=o==null?void 0:o[G])==null?void 0:I.replace("(",dr))==null?void 0:U.split(dr))==null?void 0:j[1])):(de=(S=(_=(C=o==null?void 0:o[G])==null?void 0:C.replace("=",dr))==null?void 0:_.split(dr))==null?void 0:S[0],Me=(z=(g=(k=o==null?void 0:o[G])==null?void 0:k.replace("=",dr))==null?void 0:g.split(dr))==null?void 0:z[1]);let pe=($=mn==null?void 0:mn.find(Z=>(Z==null?void 0:Z.key)===de))==null?void 0:$.value;if(pe){const Z=ic[pe];s=await Z({contents:s,filter:Me,extra:r})}}return s},tc=l=>{if(l==null)return null;const r=String(l).trim();if(!r.startsWith("[")||!r.endsWith("]"))return null;const n=r.slice(1,-1).split(",").map(o=>Number(o.trim()));return n.length<2||n.some(o=>Number.isNaN(o))?null:[n[0],n[1]]},sc=(l,r)=>{var W,I,U,j,C;const n=Array.isArray(l)?l:[],o=n.find(_=>(_==null?void 0:_.key)==="formContent"),s=Array.isArray(o==null?void 0:o.contents)?o.contents:[],c=((W=n.find(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"))==null?void 0:W.contents)??{},m=(s==null?void 0:s[0])??{};let f=((I=r==null?void 0:r.position)==null?void 0:I[0])??(c==null?void 0:c._positionStartRow)??(m==null?void 0:m._positionStartRow),h=((U=r==null?void 0:r.position)==null?void 0:U[1])??(c==null?void 0:c._positionRowSpan)??(m==null?void 0:m._positionRowSpan);(!f||Number.isNaN(f)||f<1)&&(f=1),(!h||Number.isNaN(h)||h<1)&&(h=1);let y=((j=r==null?void 0:r.size)==null?void 0:j[0])??(c==null?void 0:c._sizeStart)??(m==null?void 0:m._sizeStart),u=((C=r==null?void 0:r.size)==null?void 0:C[1])??(c==null?void 0:c._sizeEnd)??(m==null?void 0:m._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(u===void 0||Number.isNaN(u))&&(u=1),y=Math.max(0,Math.min(1,y)),u=Math.max(0,Math.min(1,u)),u<=y&&(y=0,u=1);const x=u-y,D=Math.max(1,Math.round(1/x));let R=n.map(_=>{if((_==null?void 0:_.key)!=="formContent")return _;const S=Array.isArray(_==null?void 0:_.contents)?_.contents:[];return{..._,contents:S.map(k=>({...k,width:D,_positionStartRow:f,_positionRowSpan:h,_sizeStart:y,_sizeEnd:u}))}});const E={_positionStartRow:f,_positionRowSpan:h,_sizeStart:y,_sizeEnd:u};return R.some(_=>(_==null?void 0:_.key)==="_gridLayoutMeta")?R=R.map(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"?{..._,contents:E}:_):R.push({key:"_gridLayoutMeta",contents:E}),R};let hi="$R";const Bp=L.useUnit(L.pinia),{selectTitle:Tp}=L.storeToRefs(Bp);let Ap=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],zp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Mp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Ip=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ss=async(l,r,n=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La,V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za,H,ye,oe,we,Q,Qe,ze,ka,ca,Aa,Ia,ba,ua,va,Ha,pl,$l,gl,Ol,Ra,jl,Zl;let m=(E=(R=(D=(x=c==null?void 0:c.contents)==null?void 0:x.find(ja=>{var ga;return(ga=ja==null?void 0:ja.key)==null?void 0:ga.includes("struct")}))==null?void 0:D.value)==null?void 0:R[0])==null?void 0:E.类型,f=Object.values(c==null?void 0:c.name);f=f==null?void 0:f.reverse();let h=(W=c==null?void 0:c.contents)==null?void 0:W.map(ja=>ja==null?void 0:ja.key),y={comp:m,isShow:c==null?void 0:c.is_show,name:f==null?void 0:f[0],id:c==null?void 0:c.object_id,order_no:c==null?void 0:c.order_no,relatedTables:h,menuFilter:(I=c==null?void 0:c.filter)==null?void 0:I.menuFilter,status:c==null?void 0:c.status,fatherSyncContents:(U=c==null?void 0:c.filter)==null?void 0:U.fatherSyncs,relatedQuotes:(j=c==null?void 0:c.filter)==null?void 0:j.quotes,sonSyncContents:(C=c==null?void 0:c.filter)==null?void 0:C.sonSyncs,nameContents:(_=L.cloneDeep(f))==null?void 0:_.reverse()};for(let ja in f)parseInt(ja)>=1&&(y[`name${parseInt(ja)-1}`]=f[ja]);let u=Array.isArray((S=c==null?void 0:c.filter)==null?void 0:S.menuFilter)?(k=c==null?void 0:c.filter)==null?void 0:k.menuFilter:[];if(((g=u==null?void 0:u.filter(ja=>ja==null?void 0:ja.includes("@Filter")))==null?void 0:g.length)>0){let ja=u==null?void 0:u.filter(Oe=>Oe==null?void 0:Oe.includes("@Filter"));ja=ja==null?void 0:ja[0],ja=($=(z=ja==null?void 0:ja.replace("(",hi))==null?void 0:z.split(hi))==null?void 0:$[1],ja=ja==null?void 0:ja.slice(0,(ja==null?void 0:ja.length)-1),ja!=null&&ja.includes("*")&&(ja=(de=(G=ja==null?void 0:ja.replace("{",hi))==null?void 0:G.split(hi))==null?void 0:de[1],ja=ja==null?void 0:ja.replace("}","")),ja=oa.calculatorAndToOr(ja);let ga=(r==null?void 0:r.originPath)??"";(ga==null?void 0:ga[(ga==null?void 0:ga.length)-1])==="/"&&(ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1));let Ca=await Kr(ga,!1),Ua=(Me=Ca==null?void 0:Ca.filter(Oe=>(Oe==null?void 0:Oe.comp)==="Table"))==null?void 0:Me[0];Ua=(Z=(pe=Ua==null?void 0:Ua.compData)==null?void 0:pe.find(Oe=>(Oe==null?void 0:Oe.key)==="tableContents"))==null?void 0:Z.contents;let al=(le=(fe=Tp.value)==null?void 0:fe.find(Oe=>(Oe==null?void 0:Oe.condition)==="child"))==null?void 0:le.value;Ua=(ue=Ua==null?void 0:Ua.map(Oe=>{for(let ra in Oe)if((Oe==null?void 0:Oe[ra])===al)return Oe}))==null?void 0:ue.filter(Oe=>Oe),Ua=Ua==null?void 0:Ua[0],ja=ja==null?void 0:ja[0];let Za=[];for(let Oe in ja){let ra="";Ga.isObject(Ua)&&(ra=(Fe=(Ne=Object.keys(Ua))==null?void 0:Ne.filter(_e=>_e==null?void 0:_e.includes("."+Oe)))==null?void 0:Fe[0]),ra!==""&&(Ua!=null&&Ua[ra])&&(ja==null?void 0:ja[Oe])===(Ua==null?void 0:Ua[ra])||Ua!=null&&Ua[Oe]&&(ja==null?void 0:ja[Oe])===(Ua==null?void 0:Ua[Oe])?Za.push(!0):Za.push(!1)}if(Za!=null&&Za.some(Oe=>Oe===!1)&&((A=r==null?void 0:r.originPath)==null?void 0:A[((be=r==null?void 0:r.originPath)==null?void 0:be.length)-1])!=="/")return}if(m==="Table"||m==="Method"){let ja=((q=c==null?void 0:c.contents)==null?void 0:q.find(Ge=>{var X;return(X=Ge==null?void 0:Ge.key)==null?void 0:X.includes("content")}))||[],ga=[];y.comp="Table",ja.value=(re=ja==null?void 0:ja.value)==null?void 0:re.sort((Ge,X)=>parseInt(Ge==null?void 0:Ge.id)-parseInt(X==null?void 0:X.id)),ja.value=(Te=ja==null?void 0:ja.value)==null?void 0:Te.map(Ge=>{let X={};for(let la in Ge)JSON.stringify(Ge==null?void 0:Ge[la])==="{}"?X[la]="":X[la]=Ge==null?void 0:Ge[la];return X}),ga.push({key:"tableContents",contents:ja==null?void 0:ja.value});let Ca=(ne=(Ma=(da=(Ye=(xe=c==null?void 0:c.contents)==null?void 0:xe.find(Ge=>{var X;return(X=Ge==null?void 0:Ge.key)==null?void 0:X.includes("struct")}))==null?void 0:Ye.value)==null?void 0:da[0])==null?void 0:Ma.结构)==null?void 0:ne.contents;Array.isArray(Ca==null?void 0:Ca[0])?Ca[0]=(Ae=Ca==null?void 0:Ca[0])==null?void 0:Ae.filter(Ge=>(Ge==null?void 0:Ge.prop)!=="sort"&&(Ge==null?void 0:Ge.prop)!=="relatedId"):Ca=Ca==null?void 0:Ca.filter(Ge=>(Ge==null?void 0:Ge.prop)!=="sort"&&(Ge==null?void 0:Ge.prop)!=="relatedId"),ga.push({key:"header",contents:Ca}),ga.push({key:"filter",contents:($e=(se=(Ve=(qe=(Ie=c==null?void 0:c.contents)==null?void 0:Ie.find(Ge=>{var X;return(X=Ge==null?void 0:Ge.key)==null?void 0:X.includes("struct")}))==null?void 0:qe.value)==null?void 0:Ve[0])==null?void 0:se.引用)==null?void 0:$e.contents});let Ua=Ap,al=L.cloneDeep(zp);m==="Method"&&al.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Ca==null?void 0:Ca[0])&&((Ue=Ca==null?void 0:Ca[0])==null?void 0:Ue.prop)==="disabled"&&(Ua=Mp,al=Ip);const Za=["推力","真空","压力","温度","流量"],Oe=y.name;Oe&&Za.includes(Oe)&&(Ua=[...Ua],Ua.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ra=[];if(!Array.isArray(Ca==null?void 0:Ca[0])&&(Ca!=null&&Ca.some(Ge=>{var X;return(Ge==null?void 0:Ge.calculatorFilter)&&((X=Ge==null?void 0:Ge.calculatorFilter)==null?void 0:X.includes("Manual"))}))){let Ge=(Na=Ca==null?void 0:Ca.map(X=>X==null?void 0:X.calculatorFilter))==null?void 0:Na.filter(X=>X&&(X==null?void 0:X.includes("Manual")));Ge==null||Ge.forEach(X=>{var Ze;let la=aa.analyzeSplitToContent(X,",");if(la=la==null?void 0:la.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)),la!=null&&la.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(la!=null&&la.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=la==null?void 0:la.find(xl=>xl==null?void 0:xl.includes("@FunctionButton"));Le=(Ze=Le==null?void 0:Le.split("="))==null?void 0:Ze[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],ra.push(Le)}}),ra=[...new Set(ra)],ra=ra==null?void 0:ra.map(X=>({label:X,prop:X,type:"methodButton"}))}else if(Array.isArray(Ca==null?void 0:Ca[0])&&((La=oa.getColumnChild(Ca==null?void 0:Ca[0]))!=null&&La.some(Ge=>{var X;return(Ge==null?void 0:Ge.calculatorFilter)&&((X=Ge==null?void 0:Ge.calculatorFilter)==null?void 0:X.includes("Manual"))}))){let Ge=(P=(V=oa.getColumnChild(Ca==null?void 0:Ca[0]))==null?void 0:V.map(X=>X==null?void 0:X.calculatorFilter))==null?void 0:P.filter(X=>X&&(X==null?void 0:X.includes("Manual")));Ge==null||Ge.forEach(X=>{var Ze;let la=aa.analyzeSplitToContent(X,",");if(la=la==null?void 0:la.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)),la!=null&&la.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(la!=null&&la.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=la==null?void 0:la.find(xl=>xl==null?void 0:xl.includes("@FunctionButton"));Le=(Ze=Le==null?void 0:Le.split("="))==null?void 0:Ze[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],ra.push(Le)}}),ra=[...new Set(ra)],ra=ra==null?void 0:ra.map(X=>({label:X,prop:X,type:"methodButton"}))}ga.push({key:"extraButton",contents:Ua}),ga.push({key:"rowButton",contents:[...al,...ra]}),y.compData=await Nt(ga,r),(ae=y.compData)!=null&&ae.find(Ge=>(Ge==null?void 0:Ge.key)==="tab")&&(y.tab=(me=(he=y.compData)==null?void 0:he.find(Ge=>(Ge==null?void 0:Ge.key)==="tab"))==null?void 0:me.contents),(fa=y.compData)!=null&&fa.find(Ge=>(Ge==null?void 0:Ge.key)==="step")&&(y.step=(ce=(Xe=y.compData)==null?void 0:Xe.find(Ge=>(Ge==null?void 0:Ge.key)==="step"))==null?void 0:ce.contents),(Ee=y.compData)!=null&&Ee.find(Ge=>(Ge==null?void 0:Ge.key)==="choice")&&(y.choice=(We=(ma=y.compData)==null?void 0:ma.find(Ge=>(Ge==null?void 0:Ge.key)==="choice"))==null?void 0:We.contents);let _e="",Ba=(Oa=y==null?void 0:y.compData)==null?void 0:Oa.filter(Ge=>(Ge==null?void 0:Ge.key)==="fixType");(Ba==null?void 0:Ba.length)>0&&n&&(_e=(za=Ba==null?void 0:Ba[0])==null?void 0:za.contents,y.comp=_e)}else if(m==="Form"){let ja=[],ga=(oe=(ye=(H=c==null?void 0:c.contents)==null?void 0:H.find(Oe=>{var ra;return(ra=Oe==null?void 0:Oe.key)==null?void 0:ra.includes("content")}))==null?void 0:ye.value)==null?void 0:oe[0],Ca=[],Ua=Array.isArray((we=c==null?void 0:c.filter)==null?void 0:we.menuFilter)?(Q=c==null?void 0:c.filter)==null?void 0:Q.menuFilter:[];Ua==null||Ua.forEach(Oe=>{if(Oe!=null&&Oe.includes("@Param(Hide=Yes, prop=")||Oe!=null&&Oe.includes("@Interface(Hide=Yes, prop=")){const ra=Oe==null?void 0:Oe.match(/prop=([^,)]+)/);ra!=null&&ra[1]&&Ca.push(ra==null?void 0:ra[1])}});let al=(Aa=(ca=(ka=(ze=(Qe=c==null?void 0:c.contents)==null?void 0:Qe.find(Oe=>{var ra;return(ra=Oe==null?void 0:Oe.key)==null?void 0:ra.includes("struct")}))==null?void 0:ze.value)==null?void 0:ka[0])==null?void 0:ca.结构)==null?void 0:Aa.contents,Za=(Ia=al==null?void 0:al.map(Oe=>(Oe.value=ga==null?void 0:ga[Oe==null?void 0:Oe.prop],Oe)))==null?void 0:Ia.filter(Oe=>(Oe==null?void 0:Oe.prop)!=="sort"&&(Oe==null?void 0:Oe.prop)!=="relatedId");Za=Za==null?void 0:Za.map(Oe=>(Ca!=null&&Ca.includes(Oe==null?void 0:Oe.prop)&&(Oe.isHideInForm=!0),Oe)),ja.push({key:"filter",contents:(pl=(Ha=(va=(ua=(ba=c==null?void 0:c.contents)==null?void 0:ba.find(Oe=>{var ra;return(ra=Oe==null?void 0:Oe.key)==null?void 0:ra.includes("struct")}))==null?void 0:ua.value)==null?void 0:va[0])==null?void 0:Ha.引用)==null?void 0:pl.contents}),ja.push({key:"formContent",contents:Za}),ja.push({key:"paramHideProps",contents:Ca}),y.compData=await Np(ja),($l=y.compData)!=null&&$l.find(Oe=>(Oe==null?void 0:Oe.key)==="tab")&&(y.tab=(Ol=(gl=y.compData)==null?void 0:gl.find(Oe=>(Oe==null?void 0:Oe.key)==="tab"))==null?void 0:Ol.contents),(Ra=y.compData)!=null&&Ra.find(Oe=>(Oe==null?void 0:Oe.key)==="step")&&(y.step=(Zl=(jl=y.compData)==null?void 0:jl.find(Oe=>(Oe==null?void 0:Oe.key)==="step"))==null?void 0:Zl.contents)}return y});return o=await Promise.all(s),o},Op=L.useLoginState(L.pinia),{loginUserInfo:So}=L.storeToRefs(Op),gt=async(l,r,n="Manual",o=[])=>{var h;let s=l,c;Array.isArray(r==null?void 0:r[0])?c=oa.getColumnChild(r==null?void 0:r[0]):c=r;let m=(h=c==null?void 0:c.filter(y=>{var u;return(y==null?void 0:y.calculatorFilter)&&((u=y==null?void 0:y.calculatorFilter)==null?void 0:u.includes(n))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:h.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=s==null?void 0:s.map(async y=>(y=await Pp(y,m,c,n,s,o),y));return f=await Promise.all(f),f},Lp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c;return Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=oa.getValueToObjectValue(r,oa.getColumnContents(s))),n==null||n.forEach(m=>{var f;if(r!=null&&r[m]){let h=r==null?void 0:r[m];c=c?h?aa.isEqual(h.toString(),c.toString()):void 0:h}else{let h=(f=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===m))==null?void 0:f.prop,y=(r==null?void 0:r[h])??0;c=c?y?aa.isEqual(y.toString(),c.toString()):void 0:y}}),r[o]=c===void 0?void 0:c?1:0,r},kr=l=>{const[r,n,o]=L.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(r??0)*3600+(n??0)*60+(o??0)},Xn=l=>{const r=c=>c.toString().padStart(2,"0"),n=Math.floor(l/3600),o=Math.floor(l%3600/60),s=l%60;return`${r(n)}:${r(o)}:${parseInt(r(s))}`},$p=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,f=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=oa.getValueToObjectValue(r,oa.getColumnContents(s))),n==null||n.forEach(h=>{var y,u,x,D,R,E,W,I,U;if(r!=null&&r[h]){if(c==="Row")if(!((u=((y=r==null?void 0:r[h])==null?void 0:y.toString())??"")!=null&&u.includes(":"))&&!((x=f==null?void 0:f.toString())!=null&&x.includes(":"))){let j=+(r==null?void 0:r[h]);f=f+j}else f=kr(f.toString())+kr((D=r==null?void 0:r[h])==null?void 0:D.toString()),f=Xn(f)}else if(c==="Row"){let j=(R=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===h))==null?void 0:R.prop;if(!((W=Number.isNaN(r==null?void 0:r[j])?"":(E=r==null?void 0:r[j])==null?void 0:E.toString())!=null&&W.includes(":"))&&!((I=f==null?void 0:f.toString())!=null&&I.includes(":"))){let C=+((r==null?void 0:r[j])??0);f=f+C}else f=kr(f==null?void 0:f.toString())+kr((U=(r==null?void 0:r[j])??0)==null?void 0:U.toString()),f=Xn(f)}}),c==="Column"){let h=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var D;return(x==null?void 0:x[y])??(x==null?void 0:x[(D=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:D.prop])});h=[...h,...u]}),f=h.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let D=0;return Number.isNaN(u)||(D=+u),x+D},0)}return r[o]=f,r},Rp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,f=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=oa.getValueToObjectValue(r,oa.getColumnContents(s))),n==null||n.forEach(h=>{var y,u,x,D,R,E,W;if(r!=null&&r[h]){if(c==="Row")if(!((u=(y=r==null?void 0:r[h])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=f==null?void 0:f.toString())!=null&&x.includes(":"))){let I=+(r==null?void 0:r[h]);f=f===0?f+I:f-I}else f=f===0?kr(f.toString())+kr(r==null?void 0:r[h].toString()):kr(f.toString())-kr(r==null?void 0:r[h].toString()),f=Xn(f)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(U=>(U==null?void 0:U.label)===h))==null?void 0:D.prop;if(!((E=Number.isNaN(r==null?void 0:r[I])?"":(R=r==null?void 0:r[I])==null?void 0:R.toString())!=null&&E.includes(":"))&&!((W=f==null?void 0:f.toString())!=null&&W.includes(":"))){let U=+((r==null?void 0:r[I])??0);f=f===0?f+U:f-U}else f=f===0?kr(f.toString())+kr(((r==null?void 0:r[I])??0).toString()):kr(f.toString())-kr(((r==null?void 0:r[I])??0).toString()),f=Xn(f)}}),c==="Column"){let h=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var D;return(x==null?void 0:x[y])??(x==null?void 0:x[(D=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:D.prop])});h=[...h,...u]}),f=h.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let D=0;return Number.isNaN(u)||(D=+u),x-D},0)}return r[o]=f,r},Vp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,f=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=oa.getValueToObjectValue(r,oa.getColumnContents(s))),n==null||n.forEach(h=>{var y,u,x,D,R,E,W;if(r!=null&&r[h]){if(c==="Row")if(!((u=(y=r==null?void 0:r[h])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=f==null?void 0:f.toString())!=null&&x.includes(":"))){let I=+(r==null?void 0:r[h]);f=f===0?f+I:f*I}else f=f===0?kr(f.toString())+kr(r==null?void 0:r[h].toString()):kr(f.toString())*kr(r==null?void 0:r[h].toString()),f=Xn(f)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(U=>(U==null?void 0:U.label)===h))==null?void 0:D.prop;if(!(r!=null&&r[I]))f=void 0;else if(!((E=Number.isNaN(r==null?void 0:r[I])?"":(R=r==null?void 0:r[I])==null?void 0:R.toString())!=null&&E.includes(":"))&&!((W=f==null?void 0:f.toString())!=null&&W.includes(":"))){let U=+((r==null?void 0:r[I])??0);f=f===0?f+U:f*U}else f=f===0?kr(f.toString())+kr(((r==null?void 0:r[I])??0).toString()):kr(f.toString())*kr(((r==null?void 0:r[I])??0).toString()),f=Xn(f)}}),c==="Column"){let h=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var D;return(x==null?void 0:x[y])??(x==null?void 0:x[(D=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:D.prop])});h=[...h,...u]}),f=h.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let D=0;return Number.isNaN(u)||(D=+u),x*D},0)}return r[o]=f,r},Fp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,f=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=oa.getValueToObjectValue(r,oa.getColumnContents(s))),n==null||n.forEach(h=>{var y,u,x,D,R,E,W;if(r!=null&&r[h]){if(c==="Row")if(!((u=(y=r==null?void 0:r[h])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=f==null?void 0:f.toString())!=null&&x.includes(":"))){let I=+(r==null?void 0:r[h]);f=f===0?f+I:f/I}else f=f===0?kr(f.toString())+kr(r==null?void 0:r[h].toString()):kr(f.toString())/kr(r==null?void 0:r[h].toString()),f=Xn(f)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(U=>(U==null?void 0:U.label)===h))==null?void 0:D.prop;if(!((E=Number.isNaN(r==null?void 0:r[I])?"":(R=r==null?void 0:r[I])==null?void 0:R.toString())!=null&&E.includes(":"))&&!((W=f==null?void 0:f.toString())!=null&&W.includes(":"))){let U=+((r==null?void 0:r[I])??0);f=f===0?f+U:f/U}else f=f===0?kr(f.toString())+kr(((r==null?void 0:r[I])??0).toString()):kr(f.toString())/kr(((r==null?void 0:r[I])??0).toString()),f=Xn(f)}}),c==="Column"){let h=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var D;return(x==null?void 0:x[y])??(x==null?void 0:x[(D=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:D.prop])});h=[...h,...u]}),f=h.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let D=0;return Number.isNaN(u)||(D=+u),x/D},0)}return r[o]=f.toFixed(2),r},vi={Sum:$p,Substract:Rp,Multiple:Vp,Divide:Fp,Compare:Lp},Pp=async(l,r,n,o="Auto",s,c=[])=>{var u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z;let m=l,f=[],h=await L.getPageDataApi({platId:parseInt((u=So==null?void 0:So.value)==null?void 0:u.plat_id),pageName:"menu"});h=(R=(D=(x=h==null?void 0:h.data)==null?void 0:x.result)==null?void 0:D.filter(fe=>(fe==null?void 0:fe.property_name)===""))==null?void 0:R[0];let y=[];if(h!=null&&h.object_name){h=h==null?void 0:h.object_name;let fe=await L.getPageDataApi({platId:parseInt((E=So==null?void 0:So.value)==null?void 0:E.plat_id),pageName:h});fe=(C=(j=(U=(I=(W=fe==null?void 0:fe.data)==null?void 0:W.result)==null?void 0:I[0])==null?void 0:U.contents)==null?void 0:j.find(le=>{var ue;return(ue=le==null?void 0:le.key)==null?void 0:ue.includes("content")}))==null?void 0:C.value,f=(_=fe==null?void 0:fe.map(le=>({functionName:le==null?void 0:le.函数名称,functionContent:le==null?void 0:le.输出值})))==null?void 0:_.filter(le=>(le==null?void 0:le.functionContent)!==""),f==null||f.forEach(le=>{y.push(le.functionName),vi[le.functionName]=new Function("return "+le.functionContent)()})}if((r==null?void 0:r.length)===0)return m;for(let fe in r){let le=(S=r==null?void 0:r[fe])==null?void 0:S.functionName;const ue=vi==null?void 0:vi[le];let Ne=(k=r==null?void 0:r[fe])==null?void 0:k.methods;if(Ne=aa.analyzeSplitToContent(Ne,","),console.log(Ne),(g=Ne==null?void 0:Ne.find(Fe=>Fe==null?void 0:Fe.includes("@FunctionType")))!=null&&g.includes(o)||(Ne==null?void 0:Ne.length)===0){let Fe=((G=($=(z=Ne==null?void 0:Ne.find(be=>be==null?void 0:be.includes("@FunctionExtent")))==null?void 0:z.replace(":","="))==null?void 0:$.split("="))==null?void 0:G[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(be=>be===le)){let be="";try{let q=(de=r==null?void 0:r[fe])==null?void 0:de.functionRelatedWords,re=(c==null?void 0:c.length)>0?c==null?void 0:c.map(xe=>{var Ye;return xe==null?void 0:xe[(Ye=r==null?void 0:r[fe])==null?void 0:Ye.prop]}):["0"];re=re==null?void 0:re.map(xe=>xe==null?void 0:xe.slice((xe==null?void 0:xe.length)-5,xe==null?void 0:xe.length)),re=re==null?void 0:re.map(xe=>aa.isNumber(parseInt(xe))&&parseInt(xe)?parseInt(xe):0);let Te=Math.max(...re);q=q==null?void 0:q.map(xe=>{if(xe!=null&&xe.includes("'"))return xe==null?void 0:xe.replaceAll("'","");if(xe!=null&&xe.includes("@"))return Te+1;{let Ye=Object.keys(m);return xe=(m==null?void 0:m[xe])??(m==null?void 0:m[Ye==null?void 0:Ye.find(da=>da==null?void 0:da.includes("."+xe))]),xe}}),be=ue(...q)}catch(q){Ga.ElMessage.warning("关联数据出现错误,"+q.message)}let A=(Me=r==null?void 0:r[fe])==null?void 0:Me.prop;m[A]=be}else m=ue({contents:m,valueString:(pe=r==null?void 0:r[fe])==null?void 0:pe.functionRelatedWords,prop:(Z=r==null?void 0:r[fe])==null?void 0:Z.prop,headers:n,typeString:Fe,allContents:s})}}return m},jp=L.useLoginState(L.pinia),{loginUserInfo:Zr}=L.storeToRefs(jp),Hp=L.useMenuState(L.pinia),{activeMenuPath:cs,currentMenuPath:mi}=L.storeToRefs(Hp),cc=L.useUnit(L.pinia);let us="$R";const{selectTitle:Do}=L.storeToRefs(cc),uc=async(l,r)=>{var m,f,h,y,u,x,D,R,E,W,I,U,j;let n=cs.value,o="",s=((m=Do==null?void 0:Do.value)==null?void 0:m.find(C=>(C==null?void 0:C.condition)==="child"&&!(C!=null&&C.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(n=r?n:(f=l==null?void 0:l[0])==null?void 0:f.object_name,o=(h=l==null?void 0:l[0])==null?void 0:h.father_name);let c=[];if(o!==""){let C=o;(C==null?void 0:C[(C==null?void 0:C.length)-1])==="/"&&(C=C==null?void 0:C.slice(0,(C==null?void 0:C.length)-1));let _=await Kr(C,!1);_=(y=_==null?void 0:_[0])==null?void 0:y.compData;let S=(u=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:u.contents;S=((x=S==null?void 0:S.find(g=>g==null?void 0:g.isMainKey))==null?void 0:x.prop)??((D=S==null?void 0:S[0])==null?void 0:D.prop);let k=(E=(R=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:E.map(g=>({label:g==null?void 0:g[S],value:g==null?void 0:g[S]}));c=(W=o==null?void 0:o.split("/"))==null?void 0:W.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:k,parentContent:(o==null?void 0:o[(o==null?void 0:o.length)-1])==="/"?o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1):o,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(n!==""){let C=(I=n==null?void 0:n.split("/"))==null?void 0:I.map(_=>(_={condition:"normal",value:_.trim(),isShow:!0},_));((U=C==null?void 0:C[0])==null?void 0:U.value)===((j=c==null?void 0:c[0])==null?void 0:j.value)&&(C=C==null?void 0:C.filter((_,S)=>S!==0)),c=[...c??[],...C??[]]}o===""&&s&&((s==null?void 0:s.parentContent)!==cs.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),cc.setSelectTitle(c)},Up=async l=>{var c,m,f,h,y,u,x,D,R;let r=await L.getPageDataApi({platId:parseInt((c=Zr==null?void 0:Zr.value)==null?void 0:c.plat_id),pageName:"menu"}),n=(m=r==null?void 0:r.data)==null?void 0:m.result,o=(u=(y=(h=(f=l==null?void 0:l.filter(E=>(E==null?void 0:E.comp)==="Table"))==null?void 0:f[0])==null?void 0:h.compData)==null?void 0:y.find(E=>(E==null?void 0:E.key)==="filter"))==null?void 0:u.contents;o=(R=(D=(x=o==null?void 0:o.replace("(",us))==null?void 0:x.split(us))==null?void 0:D[0])==null?void 0:R.replaceAll(":","/");let s=n==null?void 0:n.filter(E=>{var W;return(E==null?void 0:E.object_name)===mi.value+"/"||((W=mi.value)==null?void 0:W.includes(o))&&o+"/"===(E==null?void 0:E.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(E=>{var W;return(E==null?void 0:E.comp)==="Table"&&(E.compData=(W=E==null?void 0:E.compData)==null?void 0:W.map(I=>{var U,j,C;return(I==null?void 0:I.key)==="header"&&(Array.isArray((U=I.contents)==null?void 0:U[0])?I.contents[0]=(C=I.contents[0])==null?void 0:C.map((_,S)=>{var k;return S===0&&(_.isExistChild=!0,(k=mi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_}):I.contents=(j=I.contents)==null?void 0:j.map((_,S)=>{var k;return S===0&&(_.isExistChild=!0,(k=mi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_})),I})),E})),l},Kr=async(l,r,n={})=>{var m,f,h,y,u,x,D,R,E,W,I,U;let o=await L.getPageDataApi({platId:parseInt((m=Zr==null?void 0:Zr.value)==null?void 0:m.plat_id),pageName:l}),s=(f=o==null?void 0:o.data)==null?void 0:f.result;if((s==null?void 0:s.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==l){let j=await L.getPageDataApi({platId:parseInt((h=Zr==null?void 0:Zr.value)==null?void 0:h.plat_id),pageName:n==null?void 0:n.originPath});if(((u=(y=j==null?void 0:j.data)==null?void 0:y.result)==null?void 0:u.length)>0){let C=await ss((x=j==null?void 0:j.data)==null?void 0:x.result,n,!1);C=C==null?void 0:C.map(async k=>{var $,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La;let g=[],z=($=Object.keys(k))==null?void 0:$.filter(V=>(V==null?void 0:V.includes("name"))&&V!=="nameContents");for(let V in k)z!=null&&z.find(P=>P===V)&&g.push(k==null?void 0:k[V]);if(g=g.reverse(),(k==null?void 0:k.comp)==="Table"){let V=(Me=(de=(G=k==null?void 0:k.compData)==null?void 0:G.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:de.contents)==null?void 0:Me.map(ae=>{let he={};for(let me in ae)me!=="id"&&me!=="create_time"&&me!=="update_time"&&me!=="sort"&&me!=="create_user_id"&&me!=="update_user_id"&&me!=="department_id"&&me!=="relatedId"&&(he[me]=ae==null?void 0:ae[me]);return ae=Object.values(he),ae}),P=(Z=(pe=k==null?void 0:k.compData)==null?void 0:pe.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:Z.contents;if(Array.isArray(P==null?void 0:P[0])?(P[0].push({label:"排序",prop:"sort"}),P[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(fe=P[0])!=null&&fe.find(ae=>(ae==null?void 0:ae.prop)==="disabled")&&(P[0]=(le=P[0])==null?void 0:le.filter(ae=>(ae==null?void 0:ae.prop)!=="disabled"),P[0].unshift({label:"",prop:"disabled",sortable:!1}))):(P||(P=[]),P.push({label:"排序",prop:"sort"}),P.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),P!=null&&P.find(ae=>(ae==null?void 0:ae.prop)==="disabled")&&(P=P==null?void 0:P.filter(ae=>(ae==null?void 0:ae.prop)!=="disabled"),P.unshift({label:"",prop:"disabled",sortable:!1}))),P!=null&&P.some(ae=>{var he;return(ae==null?void 0:ae.calculatorFilter)&&((he=ae==null?void 0:ae.calculatorFilter)==null?void 0:he.includes("Auto"))})&&(V=await gt(V,P,"Auto"),V=V==null?void 0:V.map(ae=>Object.values(ae))),k!=null&&k.fatherSyncContents){Array.isArray((ue=k==null?void 0:k.fatherSyncContents)==null?void 0:ue[0])&&(k.fatherSyncContents=(Ne=k==null?void 0:k.fatherSyncContents)==null?void 0:Ne[0]);let ae=(Fe=Do.value)==null?void 0:Fe.find(he=>(he==null?void 0:he.condition)==="child");k.fatherSyncContents=(be=k==null?void 0:k.fatherSyncContents)==null?void 0:be.map(he=>{var me,fa,Xe,ce,Ee,ma;return((fa=he==null?void 0:he.menus)==null?void 0:fa[((me=he==null?void 0:he.menus)==null?void 0:me.length)-1])==="/"&&(ae==null?void 0:ae.parentContent)+"/"!==(he==null?void 0:he.menus)?he.menus=(he==null?void 0:he.menus)+(ae==null?void 0:ae.value):((ce=he==null?void 0:he.menus)==null?void 0:ce[((Xe=he==null?void 0:he.menus)==null?void 0:Xe.length)-1])==="/"&&(ae==null?void 0:ae.parentContent)+"/"===(he==null?void 0:he.menus)&&(he.menus=(ma=he.menus)==null?void 0:ma.slice(0,((Ee=he.menus)==null?void 0:Ee.length)-1)),he})}if(k!=null&&k.sonSyncContents){Array.isArray((A=k==null?void 0:k.sonSyncContents)==null?void 0:A[0])&&(k.sonSyncContents=(q=k==null?void 0:k.sonSyncContents)==null?void 0:q[0]);let ae=(re=Do.value)==null?void 0:re.find(he=>(he==null?void 0:he.condition)==="child");k.sonSyncContents=(Te=k==null?void 0:k.sonSyncContents)==null?void 0:Te.map(he=>{var me,fa,Xe,ce,Ee,ma;return((fa=he==null?void 0:he.menus)==null?void 0:fa[((me=he==null?void 0:he.menus)==null?void 0:me.length)-1])==="/"&&(ae==null?void 0:ae.parentContent)+"/"!==(he==null?void 0:he.menus)?he.menus=(he==null?void 0:he.menus)+(ae==null?void 0:ae.value):((ce=he==null?void 0:he.menus)==null?void 0:ce[((Xe=he==null?void 0:he.menus)==null?void 0:Xe.length)-1])==="/"&&(ae==null?void 0:ae.parentContent)+"/"===(he==null?void 0:he.menus)&&(he.menus=(ma=he.menus)==null?void 0:ma.slice(0,((Ee=he.menus)==null?void 0:Ee.length)-1)),he})}if(k!=null&&k.relatedQuotes){Array.isArray((xe=k==null?void 0:k.relatedQuotes)==null?void 0:xe[0])&&(k.relatedQuotes=(Ye=k==null?void 0:k.relatedQuotes)==null?void 0:Ye[0]);let ae=(da=Do.value)==null?void 0:da.find(he=>(he==null?void 0:he.condition)==="child");k.relatedQuotes=(Ma=k==null?void 0:k.relatedQuotes)==null?void 0:Ma.map(he=>{var me,fa,Xe,ce,Ee,ma;return((fa=he==null?void 0:he.menus)==null?void 0:fa[((me=he==null?void 0:he.menus)==null?void 0:me.length)-1])==="/"&&(ae==null?void 0:ae.parentContent)+"/"!==(he==null?void 0:he.menus)?he.menus=(he==null?void 0:he.menus)+(ae==null?void 0:ae.value):((ce=he==null?void 0:he.menus)==null?void 0:ce[((Xe=he==null?void 0:he.menus)==null?void 0:Xe.length)-1])==="/"&&(ae==null?void 0:ae.parentContent)+"/"===(he==null?void 0:he.menus)&&(he.menus=(ma=he.menus)==null?void 0:ma.slice(0,((Ee=he.menus)==null?void 0:Ee.length)-1)),he})}k={filter:(Ae=(ne=k==null?void 0:k.compData)==null?void 0:ne.find(ae=>(ae==null?void 0:ae.key)==="filter"))==null?void 0:Ae.contents,key:k==null?void 0:k.comp,name:g,tableColumns:P,tableContents:V,menuFilter:k==null?void 0:k.menuFilter,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}else{let V=(Ve=(qe=(Ie=k==null?void 0:k.compData)==null?void 0:Ie.find(ae=>(ae==null?void 0:ae.key)==="formContent"))==null?void 0:qe.contents)==null?void 0:Ve.map(ae=>(ae==null?void 0:ae.value)??"");V=[V];let P=(Ue=($e=(se=k==null?void 0:k.compData)==null?void 0:se.find(ae=>(ae==null?void 0:ae.key)==="formContent"))==null?void 0:$e.contents)==null?void 0:Ue.map(ae=>(ae.value="",ae));k={contents:V,filter:(La=(Na=k==null?void 0:k.compData)==null?void 0:Na.find(ae=>(ae==null?void 0:ae.key)==="filter"))==null?void 0:La.contents,key:k==null?void 0:k.comp,name:g,value:P,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}return k.isShow=!1,k}),C=await Promise.all(C);let _=[{key:"menuPath",contents:[{path:l,fatherPath:(E=(R=(D=j==null?void 0:j.data)==null?void 0:D.result)==null?void 0:R[0])==null?void 0:E.father_name,isShow:!1}]},{key:l,contents:C}];await L.createPlatFormDataApi({platId:parseInt((W=Zr==null?void 0:Zr.value)==null?void 0:W.plat_id),changeData:_});let S=await L.getPageDataApi({platId:parseInt((I=Zr==null?void 0:Zr.value)==null?void 0:I.plat_id),pageName:l});s=(U=S==null?void 0:S.data)==null?void 0:U.result}}r&&await uc(s,!!(n!=null&&n.originPath));let c=await ss(s,n);return r&&(c=await Up(c)),c==null?void 0:c.filter(j=>j)},ds=async l=>{var o,s,c,m,f,h,y,u,x,D,R;let r=(o=l==null?void 0:l.menus)==null?void 0:o.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+(l==null?void 0:l.endChildMenu)),(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+((c=(s=l.value)==null?void 0:s.split(" "))==null?void 0:c[0]));let n=await Kr(r,!1);if(n=(m=n==null?void 0:n.filter(E=>{var W,I;return(E==null?void 0:E.name)===((I=l==null?void 0:l.groups)==null?void 0:I[((W=l==null?void 0:l.groups)==null?void 0:W.length)-1])}))==null?void 0:m[0],(h=(f=n==null?void 0:n.compData)==null?void 0:f.find(E=>(E==null?void 0:E.key)==="tableContents"))!=null&&h.contents){n=(u=(y=n==null?void 0:n.compData)==null?void 0:y.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:u.contents;let E=((x=l==null?void 0:l.words)==null?void 0:x[0])??(l==null?void 0:l.prop);return n=n==null?void 0:n.filter(W=>{var I,U,j,C;return(W==null?void 0:W[l!=null&&l.endChildMenu?E:(I=l==null?void 0:l.words)==null?void 0:I[0]])===(l!=null&&l.relatedWords&&((U=l==null?void 0:l.relatedWords)==null?void 0:U.length)>0?(C=(j=l.value)==null?void 0:j.split(" "))==null?void 0:C[0]:l.value)}),n==null?void 0:n[0]}else{let E=(R=(D=n==null?void 0:n.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:R.contents,W={};return E==null||E.forEach(I=>{W[I.prop]=I.value}),W}},qp={key:0,class:"extra-button-content"},Wp={class:"table-operator-wrap"},Kp={key:0,class:"extra-button-filter"},Gp={key:1,class:"extra-header"},Yp=["onClick"],Jp={class:"table-op-text"},Xp={class:"table-op-text"},Zp={class:"drop-menu",style:{width:"120px"}},Qp=["onClick"],ef={key:0},af={key:1},lf=["onClick"],rf={class:"table-op-text"},nf={key:1,class:"extra-button-content tabs-button-wrapper"},of={class:"table-operator-wrap"},tf={class:"extra-button-filter"},sf={key:0,class:"extra-header"},cf={class:"table-op-action"},uf={class:"table-op-text"},df={class:"drop-menu",style:{width:"120px"}},pf={key:0},ff={key:1},hf=["onClick"],vf={class:"table-op-text"},mf={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:r}){const n=r,o=l,s=()=>{const g=(o==null?void 0:o.menuFilter)||[];return Array.isArray(g)&&(g==null?void 0:g.some(z=>{const $=typeof z=="string"?z:JSON.stringify(z);return $==null?void 0:$.includes("@InterfaceHide=Yes")}))},c=a.ref(""),m=a.ref(!1),f=a.ref([]),h=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),y=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function u(g,z){return g.map($=>{const G={...$};return z.forEach(de=>{delete G[de]}),G})}function x(g){if(!g||g.t!=="n")return(g==null?void 0:g.v)??"";const z=g.v;if(g.z){const $=String(g.z).toLowerCase(),G=["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 pe of G)if($.includes(pe))return D(z);const de=/[ymdhms]/.test($),Me=/^[0#\.\,\s]+$/.test($.replace(/[\\\/\-:]/g,""));if(de&&!Me)return D(z)}if(z>=1&&z<=73050){if(z<5e3)return z;if(z>=5e3&&z<4e4){const $=Math.floor((z-25569)/365.25)+1970;return $>=1970&&$<=2e3&&g.z&&/[ymd]/.test(String(g.z).toLowerCase())?D(z):z}if(z>=4e4)return D(z)}return z}function D(g){if(typeof g!="number")return g;try{const z=new Date((g-25569)*86400*1e3);if(isNaN(z.getTime()))return g;const $=z.getFullYear(),G=String(z.getMonth()+1).padStart(2,"0"),de=String(z.getDate()).padStart(2,"0");return`${$}-${G}-${de}`}catch{return g}}const R=g=>{const z=g.raw;if(!z)return;const $=new FileReader;$.onload=G=>{try{const de=new Uint8Array(G.target.result),Me=oa.readSync(de,{type:"array"}),pe=Me.SheetNames[0],Z=Me.Sheets[pe],le=oa.utils.decode_range(Z["!ref"]).e.c+1,ue=new Array(le).fill(""),Ne=[];for(const re in Z){if(re[0]==="!")continue;const{r:Te,c:xe}=oa.utils.decode_cell(re),Ye=Z[re];let da=x(Ye);if((da==null||da==="")&&(da=""),Te===0)ue[xe]=da;else{if(!Ne[Te-1]){Ne[Te-1]={};for(let Ma=0;Ma<le;Ma++)Ne[Te-1][`col_${Ma}`]=""}Ne[Te-1][`col_${xe}`]=da}}for(let re=0;re<le;re++)ue[re]===void 0&&(ue[re]="");const Fe=[];for(let re=0;re<ue.length;re++)(!ue[re]||ue[re].toString().trim()==="")&&Fe.push(re);let be,A;(Fe==null?void 0:Fe.length)>0?(Ga.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),be=ue.filter((re,Te)=>!Fe.includes(Te)),A=u(Ne,Fe==null?void 0:Fe.map(re=>`col_${re}`))):(be=ue,A=Ne);const q=Ne==null?void 0:Ne[0];if(!(q!=null&&q.hasOwnProperty("col_0")))return Ga.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",be,A)}catch(de){throw Ga.ElMessage.error(de.message),new Error(de.message)}},$.readAsArrayBuffer(z)},E=g=>{var $;const z=($=f.value)==null?void 0:$.reduce((G,de,Me)=>(Me===0?G[de.label]=g:G[de.label]=de==null?void 0:de.value,G),{});n("filter",z,g,!0)},W=(g,z={})=>{n("buttonClick",g,"",z)},I=g=>{var z,$;f.value=($=(z=oa.getColumnChild(L.cloneDeep(g)))==null?void 0:z.filter(G=>(G==null?void 0:G.label)!==""&&(G==null?void 0:G.label)!=="操作"))==null?void 0:$.map(G=>({label:(G==null?void 0:G.label)??"",value:"",name:(G==null?void 0:G.prop)??"",isFormColHidden:G==null?void 0:G.isTableColHidden,width:2,prop:(G==null?void 0:G.prop)??""}))},U=a.ref(!1),j=g=>{var z;if((g==null?void 0:g.buttonName)==="确认"&&(n("filter",g==null?void 0:g.content),U.value=(g==null?void 0:g.content)&&Object.values(g==null?void 0:g.content).length>0),(g==null?void 0:g.buttonName)==="清空"){const $=L.cloneDeep(g==null?void 0:g.content);for(const G in $)$[G]="";f.value=(z=f.value)==null?void 0:z.map(G=>({...G,value:""})),n("filter",$),U.value=!1}m.value=!1},C=()=>{m.value=!m.value},_=()=>{var z,$;f.value=(z=f.value)==null?void 0:z.map(G=>({...G,value:""}));const g=($=f.value)==null?void 0:$.reduce((G,de)=>(G[de.label]=de.value,G),{});n("filter",g)},S=a.ref(null);let k;return k=g=>{var de;if(!m.value)return;const z=(de=S==null?void 0:S.value)==null?void 0:de.$el,$=z==null?void 0:z.contains(g.target);let G=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Me=>{Me.contains(g.target)&&(G=!0)}),!$&&!G&&(m.value=!1)},a.onMounted(()=>{document.addEventListener("click",k),I(o.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",k)}),a.watch(()=>o.columns,()=>{I(o.columns)},{deep:!0,immediate:!0}),(g,z)=>{var Z,fe,le,ue,Ne,Fe,be,A;const $=a.resolveComponent("el-icon"),G=a.resolveComponent("svg-icon"),de=a.resolveComponent("el-input"),Me=a.resolveComponent("el-upload"),pe=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",qp,[s()?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(o==null?void 0:o.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((o==null?void 0:o.level)-1)*12+"px",fontWeight:600-((o==null?void 0:o.level)-1)*100>=400?600-((o==null?void 0:o.level)-1)*100:400,fontSize:17-(o==null?void 0:o.level)>=14?17-(o==null?void 0:o.level)+"px":"14px"})},a.toDisplayString(l.compName),7)),a.createElementVNode("div",Wp,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",Kp,[a.createVNode(Vu,{trigger:"contextmenu",ref_key:"popOverRef",ref:S,title:"",width:800,placement:"bottom-start",isVisible:m.value,"onUpdate:isVisible":z[4]||(z[4]=q=>m.value=q)},{reference:a.withCtx(()=>{var q,re,Te,xe;return[a.createVNode(de,{modelValue:c.value,"onUpdate:modelValue":z[0]||(z[0]=Ye=>c.value=Ye),style:{"min-width":"80px"},placeholder:U.value?(Te=(re=(q=l.filterValues)==null?void 0:q.filter(Ye=>Ye))==null?void 0:re.slice(0,3))==null?void 0:Te.join("/"):"搜索","prefix-icon":a.unref(Ga.search_default),clearable:"",onInput:E,disabled:((xe=f.value)==null?void 0:xe.length)===0},{suffix:a.withCtx(()=>{var Ye,da;return[!c.value&&((da=(Ye=l.filterValues)==null?void 0:Ye.filter(Ma=>Ma))!=null&&da.join("/"))?(a.openBlock(),a.createBlock($,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(G,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:z[1]||(z[1]=a.withModifiers(()=>{},["stop"])),onKeyup:z[2]||(z[2]=a.withModifiers(()=>{},["stop"])),onKeypress:z[3]||(z[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:f.value,buttonValue:h.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:h.value,isStartJustify:!1,onOnButtonClick:j},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((Z=l.buttons)==null?void 0:Z.length)>0?(a.openBlock(),a.createElementBlock("div",Gp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((fe=l.buttons)==null?void 0:fe.filter(q=>l.isDevMode||(q==null?void 0:q.label)!=="修改模板"),(q,re)=>{var Te;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:re},[(q==null?void 0:q.type)==="upload"?(a.openBlock(),a.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":R,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var xe;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ye=>W(q==null?void 0:q.label)},[a.createVNode(G,{class:"table-op-icon",name:(xe=y==null?void 0:y.find(Ye=>(Ye==null?void 0:Ye.label)===(q==null?void 0:q.label)))==null?void 0:xe.icon},null,8,["name"]),a.createElementVNode("span",Jp,a.toDisplayString(q==null?void 0:q.label),1)],10,Yp)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(q==null?void 0:q.type)==="popover"?(a.openBlock(),a.createBlock(il._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var xe;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(G,{class:"table-op-icon",name:(xe=y==null?void 0:y.find(Ye=>(Ye==null?void 0:Ye.label)===(q==null?void 0:q.label)))==null?void 0:xe.icon},null,8,["name"]),a.createElementVNode("span",Xp,a.toDisplayString(q==null?void 0:q.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Zp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q==null?void 0:q.contents,xe=>{var Ye,da;return a.openBlock(),a.createElementBlock("div",{key:xe==null?void 0:xe.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:Ma=>!l.lockingPage&&W(xe==null?void 0:xe.label)},[a.createTextVNode(a.toDisplayString(xe==null?void 0:xe.label),1),(Ye=xe==null?void 0:xe.label)!=null&&Ye.includes("选中")?(a.openBlock(),a.createElementBlock("span",ef,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(da=xe==null?void 0:xe.label)!=null&&da.includes("全部")?(a.openBlock(),a.createElementBlock("span",af,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Qp)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(q!=null&&q.type)||(q==null?void 0:q.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:xe=>!l.lockingPage&&W(q==null?void 0:q.label,q)},[a.createVNode(G,{class:"table-op-icon",name:(Te=y==null?void 0:y.find(xe=>(xe==null?void 0:xe.label)===(q==null?void 0:q.label)))==null?void 0:Te.icon},null,8,["name"]),a.createElementVNode("span",rf,a.toDisplayString(q==null?void 0:q.label),1)],10,lf)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",nf,[a.createElementVNode("div",of,[a.createElementVNode("div",tf,[a.createVNode(de,{modelValue:c.value,"onUpdate:modelValue":z[5]||(z[5]=q=>c.value=q),style:{"min-width":"80px"},placeholder:U.value?(Ne=(ue=(le=l.filterValues)==null?void 0:le.filter(q=>q))==null?void 0:ue.slice(0,3))==null?void 0:Ne.join("/"):"搜索","prefix-icon":a.unref(Ga.search_default),clearable:"",onInput:E,disabled:((Fe=f.value)==null?void 0:Fe.length)===0},{suffix:a.withCtx(()=>{var q,re;return[!c.value&&((re=(q=l.filterValues)==null?void 0:q.filter(Te=>Te))!=null&&re.join("/"))?(a.openBlock(),a.createBlock($,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(G,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((be=l.buttons)==null?void 0:be.length)>0?(a.openBlock(),a.createElementBlock("div",sf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((A=l.buttons)==null?void 0:A.filter(q=>l.isDevMode||(q==null?void 0:q.label)!=="修改模板"),(q,re)=>{var Te;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:re},[(q==null?void 0:q.type)==="upload"?(a.openBlock(),a.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":R,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var xe;return[a.createElementVNode("div",cf,[a.createVNode(G,{class:"table-op-icon",name:(xe=y==null?void 0:y.find(Ye=>(Ye==null?void 0:Ye.label)===(q==null?void 0:q.label)))==null?void 0:xe.icon},null,8,["name"]),a.createElementVNode("span",uf,a.toDisplayString(q==null?void 0:q.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(q==null?void 0:q.type)==="popover"?(a.openBlock(),a.createBlock(il._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(q==null?void 0:q.type)==="popover"?(a.openBlock(),a.createBlock(pe,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var xe;return[a.createVNode(G,{class:"table-op-icon",name:(xe=y==null?void 0:y.find(Ye=>(Ye==null?void 0:Ye.label)===(q==null?void 0:q.label)))==null?void 0:xe.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(q==null?void 0:q.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",df,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q==null?void 0:q.contents,xe=>(a.openBlock(),a.createBlock(pe,{key:xe==null?void 0:xe.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ye=>W(xe==null?void 0:xe.label)},{default:a.withCtx(()=>{var Ye,da;return[a.createTextVNode(a.toDisplayString(xe==null?void 0:xe.label),1),(Ye=xe==null?void 0:xe.label)!=null&&Ye.includes("选中")?(a.openBlock(),a.createElementBlock("span",pf,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(da=xe==null?void 0:xe.label)!=null&&da.includes("全部")?(a.openBlock(),a.createElementBlock("span",ff,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(q!=null&&q.type)||(q==null?void 0:q.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:xe=>!l.lockingPage&&W(q==null?void 0:q.label,q)},[a.createVNode(G,{class:"table-op-icon",name:(Te=y==null?void 0:y.find(xe=>(xe==null?void 0:xe.label)===(q==null?void 0:q.label)))==null?void 0:Te.icon},null,8,["name"]),a.createElementVNode("span",vf,a.toDisplayString(q==null?void 0:q.label),1)],10,hf)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},yf=Jl._export_sfc(mf,[["__scopeId","data-v-a6997ec1"]]),gf={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(r,n)=>{const o=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,c=>{var m;return a.openBlock(),a.createBlock(o,{key:c==null?void 0:c.prop,label:c==null?void 0:c.label,prop:c==null?void 0:c.prop,fixed:(c==null?void 0:c.prop)==="operate"?"right":c==null?void 0:c.fixed,align:(c==null?void 0:c.align)??"left","show-overflow-tooltip":(c==null?void 0:c.showOverflowTooltip)??!0,width:c==null?void 0:c.width,"min-width":(c==null?void 0:c.minWidth)||((c==null?void 0:c.prop)==="operate"?80:(((m=c==null?void 0:c.label)==null?void 0:m.length)*2||4)*27)},{default:a.withCtx(f=>[a.renderSlot(r.$slots,"content",{row:f.row,column:f.column,$index:f.$index,scope:f}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(h,y)=>(a.openBlock(),a.createBlock(il._sfc_main$2,{key:y,column:h,tableData:l.tableData},a.createSlots({_:2},[a.renderList(r.$slots,(u,x)=>({name:x,fn:a.withCtx(({row:D,slotData:R,item:E,column:W})=>[a.renderSlot(r.$slots,x,a.mergeProps({ref_for:!0},R??D,{item:E??h,slotData:R??D,row:D,column:W,columnProp:h}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class bf extends aa.Loader{constructor(r){super(r),this.littleEndian=!0}load(r,n,o,s){const c=this,m=new aa.FileLoader(c.manager);m.setPath(c.path),m.setResponseType("arraybuffer"),m.setRequestHeader(c.requestHeader),m.setWithCredentials(c.withCredentials),m.load(r,function(f){try{n(c.parse(f))}catch(h){s?s(h):console.error(h),c.manager.itemError(r)}},o,s)}_getDataView(r,n,o,s){switch(o){case"F":return s===8?r.getFloat64(n,this.littleEndian):r.getFloat32(n,this.littleEndian);case"I":return s===1?r.getInt8(n):s===2?r.getInt16(n,this.littleEndian):r.getInt32(n,this.littleEndian);case"U":return s===1?r.getUint8(n):s===2?r.getUint16(n,this.littleEndian):r.getUint32(n,this.littleEndian)}}parse(r){function n(R,E){const W=R.length,I=new Uint8Array(E);let U=0,j=0,C,_,S;do if(C=R[U++],C<32){if(C++,j+C>E)throw new Error("Output buffer is not large enough");if(U+C>W)throw new Error("Invalid compressed data");do I[j++]=R[U++];while(--C)}else{if(_=C>>5,S=j-((C&31)<<8)-1,U>=W)throw new Error("Invalid compressed data");if(_===7&&(_+=R[U++],U>=W))throw new Error("Invalid compressed data");if(S-=R[U++],j+_+2>E)throw new Error("Output buffer is not large enough");if(S<0)throw new Error("Invalid compressed data");if(S>=j)throw new Error("Invalid compressed data");do I[j++]=I[S++];while(--_+2)}while(U<W);return I}function o(R){const E={},W=new Uint8Array(R);let I="",U="",j=0,C=!1;const _=W.length;for(;j<_&&C===!1;){const z=String.fromCharCode(W[j++]);z===`
|
|
2
|
+
`||z==="\r"?(U.trim().toLowerCase().startsWith("data")&&(C=!0),U=""):U+=z,I+=z}const S=I.search(/[\r\n]DATA\s(\S*)\s/i),k=/[\r\n]DATA\s(\S*)\s/i.exec(I.slice(S-1));if(E.data=k[1],E.headerLen=k[0].length+S,E.str=I.slice(0,E.headerLen),E.str=E.str.replace(/#.*/gi,""),E.version=/^VERSION (.*)/im.exec(E.str),E.fields=/^FIELDS (.*)/im.exec(E.str),E.size=/^SIZE (.*)/im.exec(E.str),E.type=/^TYPE (.*)/im.exec(E.str),E.count=/^COUNT (.*)/im.exec(E.str),E.width=/^WIDTH (.*)/im.exec(E.str),E.height=/^HEIGHT (.*)/im.exec(E.str),E.viewpoint=/^VIEWPOINT (.*)/im.exec(E.str),E.points=/^POINTS (.*)/im.exec(E.str),E.version!==null&&(E.version=parseFloat(E.version[1])),E.fields=E.fields!==null?E.fields[1].split(" "):[],E.type!==null&&(E.type=E.type[1].split(" ")),E.width!==null&&(E.width=parseInt(E.width[1])),E.height!==null&&(E.height=parseInt(E.height[1])),E.viewpoint!==null&&(E.viewpoint=E.viewpoint[1]),E.points!==null&&(E.points=parseInt(E.points[1],10)),E.points===null&&(E.points=E.width*E.height),E.size!==null&&(E.size=E.size[1].split(" ").map(function(z){return parseInt(z,10)})),E.count!==null)E.count=E.count[1].split(" ").map(function(z){return parseInt(z,10)});else{E.count=[];for(let z=0,$=E.fields.length;z<$;z++)E.count.push(1)}E.offset={};let g=0;for(let z=0,$=E.fields.length;z<$;z++)E.data==="ascii"?E.offset[E.fields[z]]=z:(E.offset[E.fields[z]]=g,g+=E.size[z]*E.count[z]);return E.rowSize=g,E}const s=o(r),c=[],m=[],f=[],h=[],y=[],u=new aa.Color;if(s.data==="ascii"){const R=s.offset,I=new TextDecoder().decode(r).slice(s.headerLen).split(`
|
|
3
|
+
`);for(let U=0,j=I.length;U<j;U++){if(I[U]==="")continue;const C=I[U].split(" ");if(R.x!==void 0&&(c.push(parseFloat(C[R.x])),c.push(parseFloat(C[R.y])),c.push(parseFloat(C[R.z]))),R.rgb!==void 0){const _=s.fields.findIndex(de=>de==="rgb"),S=s.type[_],k=parseFloat(C[R.rgb]);let g=k;if(S==="F"){const de=new Float32Array(1);de[0]=k,g=new Int32Array(de.buffer)[0]}const z=(g>>16&255)/255,$=(g>>8&255)/255,G=(g>>0&255)/255;u.setRGB(z,$,G,aa.SRGBColorSpace),f.push(u.r,u.g,u.b)}R.normal_x!==void 0&&(m.push(parseFloat(C[R.normal_x])),m.push(parseFloat(C[R.normal_y])),m.push(parseFloat(C[R.normal_z]))),R.intensity!==void 0&&h.push(parseFloat(C[R.intensity])),R.label!==void 0&&y.push(parseInt(C[R.label]))}}if(s.data==="binary_compressed"){const R=new Uint32Array(r.slice(s.headerLen,s.headerLen+8)),E=R[0],W=R[1],I=n(new Uint8Array(r,s.headerLen+8,E),W),U=new DataView(I.buffer),j=s.offset;for(let C=0;C<s.points;C++){if(j.x!==void 0){const _=s.fields.indexOf("x"),S=s.fields.indexOf("y"),k=s.fields.indexOf("z");c.push(this._getDataView(U,s.points*j.x+s.size[_]*C,s.type[_],s.size[_])),c.push(this._getDataView(U,s.points*j.y+s.size[S]*C,s.type[S],s.size[S])),c.push(this._getDataView(U,s.points*j.z+s.size[k]*C,s.type[k],s.size[k]))}if(j.rgb!==void 0){const _=s.fields.indexOf("rgb"),S=U.getUint8(s.points*j.rgb+s.size[_]*C+2)/255,k=U.getUint8(s.points*j.rgb+s.size[_]*C+1)/255,g=U.getUint8(s.points*j.rgb+s.size[_]*C+0)/255;u.setRGB(S,k,g,aa.SRGBColorSpace),f.push(u.r,u.g,u.b)}if(j.normal_x!==void 0){const _=s.fields.indexOf("normal_x"),S=s.fields.indexOf("normal_y"),k=s.fields.indexOf("normal_z");m.push(this._getDataView(U,s.points*j.normal_x+s.size[_]*C,s.type[_],s.size[_])),m.push(this._getDataView(U,s.points*j.normal_y+s.size[S]*C,s.type[S],s.size[S])),m.push(this._getDataView(U,s.points*j.normal_z+s.size[k]*C,s.type[k],s.size[k]))}if(j.intensity!==void 0){const _=s.fields.indexOf("intensity");h.push(this._getDataView(U,s.points*j.intensity+s.size[_]*C,s.type[_],s.size[_]))}if(j.label!==void 0){const _=s.fields.indexOf("label");y.push(U.getInt32(s.points*j.label+s.size[_]*C,this.littleEndian))}}}if(s.data==="binary"){const R=new DataView(r,s.headerLen),E=s.offset;for(let W=0,I=0;W<s.points;W++,I+=s.rowSize){if(E.x!==void 0){const U=s.fields.indexOf("x"),j=s.fields.indexOf("y"),C=s.fields.indexOf("z");c.push(this._getDataView(R,I+E.x,s.type[U],s.size[U])),c.push(this._getDataView(R,I+E.y,s.type[j],s.size[j])),c.push(this._getDataView(R,I+E.z,s.type[C],s.size[C]))}if(E.rgb!==void 0){const U=R.getUint8(I+E.rgb+2)/255,j=R.getUint8(I+E.rgb+1)/255,C=R.getUint8(I+E.rgb+0)/255;u.setRGB(U,j,C,aa.SRGBColorSpace),f.push(u.r,u.g,u.b)}if(E.normal_x!==void 0){const U=s.fields.indexOf("normal_x"),j=s.fields.indexOf("normal_y"),C=s.fields.indexOf("normal_z");m.push(this._getDataView(R,I+E.normal_x,s.type[U],s.size[U])),m.push(this._getDataView(R,I+E.normal_y,s.type[j],s.size[j])),m.push(this._getDataView(R,I+E.normal_z,s.type[C],s.size[C]))}if(E.intensity!==void 0){const U=s.fields.indexOf("intensity");h.push(this._getDataView(R,I+E.intensity,s.type[U],s.size[U]))}E.label!==void 0&&y.push(R.getInt32(I+E.label,this.littleEndian))}}const x=new aa.BufferGeometry;c.length>0&&x.setAttribute("position",new aa.Float32BufferAttribute(c,3)),m.length>0&&x.setAttribute("normal",new aa.Float32BufferAttribute(m,3)),f.length>0&&x.setAttribute("color",new aa.Float32BufferAttribute(f,3)),h.length>0&&x.setAttribute("intensity",new aa.Float32BufferAttribute(h,1)),y.length>0&&x.setAttribute("label",new aa.Int32BufferAttribute(y,1)),x.computeBoundingSphere();const D=new aa.PointsMaterial({size:.005});return f.length>0&&(D.vertexColors=!0),new aa.Points(x,D)}}const kf=L.useModelComp(L.pinia),{systemPath:ps}=L.storeToRefs(kf),yi=a.ref(),fs=new WeakMap;function xf(l,r,n,o,s){const c=async D=>{try{const R=await L.platformDownloadFile({url:D});if(R.status!==200)throw new Error(`下载失败: ${R.status}`);return R.data}catch(R){throw console.error("addModelFromUrl失败:",R),R}},m=D=>new Promise((R,E)=>{const W=new FileReader;W.onload=I=>{try{const U=I.target.result,C=new Rn.MTLLoader().parse(U);C.preload(),R(C)}catch(U){E(U)}},W.onerror=()=>{E(new Error("MTL文件读取失败"))},W.readAsText(D)}),f=async D=>{const R={materials:{},create:function(E){return this.materials[E]?this.materials[E]:(console.warn(`Material '${E}' not found, using default material`),new aa.MeshPhongMaterial({color:8947848,side:aa.DoubleSide}))},getAsArray:function(){const E=[];for(const W in this.materials)E.push(this.materials[W]);return E},preload:function(){for(const E in this.materials)this.materials[E].map&&(this.materials[E].map.needsUpdate=!0)}};for(const E of D){const W=await m(E);Object.assign(R.materials,W.materials)}return R.preload(),R},h=async(D,R=[])=>new Promise((E,W)=>{const I=new FileReader;I.onload=async U=>{try{const j=U.target.result;let C=null;R&&R.length>0&&(R.length===1?C=await m(R[0]):C=await f(R));const _=new Rn.OBJLoader;C&&_.setMaterials(C);const S=_.parse(j);C||S.traverse(k=>{k.isMesh&&(k.material=new aa.MeshPhongMaterial({color:8947848,side:aa.DoubleSide}))}),E(S)}catch(j){W(j)}},I.onerror=()=>{W(new Error("OBJ文件读取失败"))},I.readAsText(D)}),y=async D=>{var R;try{n.value=!0;const{scene:E}=l();if(!E)throw new Error("Scene not initialized");s();const W=[];for(let I=0;I<D.length;I++){const U=D[I];o.value=`正在加载模型 ${I+1}/${D.length}...`;const j=await c(U.objUrl),C=((R=U.objUrl)==null?void 0:R.split("/").pop())||`model_${I}.obj`,_=new File([j],C,{type:j.type});let S=[];if(U.mtlUrls){const g=Array.isArray(U.mtlUrls)?U.mtlUrls:[U.mtlUrls];for(let z=0;z<g.length;z++){const $=g[z],G=await c($),de=($==null?void 0:$.split("/").pop())||`material_${I}_${z}.mtl`,Me=new File([G],de,{type:G.type});S.push(Me)}}const k=await h(_,S);E.add(k),r.value.push(k),W.push(k)}return n.value=!1,W}catch(E){throw console.error("加载模型失败:",E),n.value=!1,E}},u=async(D,R,E=[],W=[])=>{let I;const U=D.toLowerCase();switch(U){case".txt":case".cpt":case".obj":const j=await R.text();if(U===".txt"||U===".cpt"){const ne=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ie=[...j.matchAll(ne)].map(se=>({x:parseFloat(se[1]),y:parseFloat(se[2]),z:parseFloat(se[3])})),qe=new aa.BufferGeometry,Ve=Ie.flatMap(se=>[se.x,se.y,se.z]);if(qe.setAttribute("position",new aa.Float32BufferAttribute(Ve,3)),U===".txt"){const se=new aa.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});I=new aa.Points(qe,se)}else if(U===".cpt"){const se=new aa.LineBasicMaterial({color:"#5B5C99",linewidth:100});I=new aa.Line(qe,se)}}else if(U===".obj"){const ne=new Rn.OBJLoader;if(E&&E.length>0){const Ae=new Rn.MTLLoader;for(const Ie of E){const qe=await Ie.text(),Ve=Ae.parse(qe);Ve.preload(),ne.setMaterials(Ve);break}}I=ne.parse(j),(!E||E.length===0)&&I.traverse(Ae=>{Ae.isMesh&&(Ae.material=new aa.MeshPhongMaterial({color:"#B3B3D4"})),Ae instanceof aa.Mesh&&(Ae.material.side=aa.DoubleSide)})}break;case".stl":const C=await R.arrayBuffer(),S=new Rn.STLLoader().parse(C),k=new aa.MeshPhongMaterial({color:"#B3B3D4",side:aa.DoubleSide});I=new aa.Mesh(S,k);break;case".nc":const g=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],z={"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)"},$=new aa.Group,G=g.map(ne=>new Promise((Ae,Ie)=>{new Rn.STLLoader().load(ps.value===""?`/model/${ne}`:`${ps.value}\\${ne}`,Ve=>{const se=new aa.MeshPhongMaterial({color:z[ne]||"#B3B3D4",side:aa.DoubleSide}),$e=new aa.Mesh(Ve,se);Ae($e)},void 0,Ie)}));try{(await Promise.all(G)).forEach(Ae=>$.add(Ae)),I=$}catch(ne){throw console.error("加载NC文件对应的STL文件失败:",ne),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const de=new bf,Me=new aa.Group;try{const ne=await Ga.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),Ae=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"}),Ie=await Ga.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),qe=new Blob([Ie.data],{type:"application/octet-stream;charset=UTF-8"}),Ve=await new Promise(($e,Ue)=>{const Na=URL.createObjectURL(Ae);de.load(Na,La=>{const V=new Float32Array(La.geometry.attributes.position.count*3);for(let P=0;P<La.geometry.attributes.position.count;P++)V[P*3]=1,V[P*3+1]=0,V[P*3+2]=0;La.geometry.setAttribute("color",new aa.BufferAttribute(V,3)),La.material.vertexColors=!0,La.scale.set(.3,.3,.3),URL.revokeObjectURL(Na),$e(La)},void 0,Ue)}),se=await new Promise(($e,Ue)=>{const Na=URL.createObjectURL(qe);de.load(Na,La=>{const V=new Float32Array(La.geometry.attributes.position.count*3);for(let P=0;P<La.geometry.attributes.position.count;P++)V[P*3]=0,V[P*3+1]=1,V[P*3+2]=0;La.geometry.setAttribute("color",new aa.BufferAttribute(V,3)),La.material.vertexColors=!0,La.scale.set(.3,.3,.3),URL.revokeObjectURL(Na),$e(La)},void 0,Ue)});Me.add(Ve),Me.add(se),I=Me}catch(ne){throw console.error("PCD文件加载失败:",ne),new Error("无法加载PCD文件")}break;case".urdf":const pe=URL.createObjectURL(R),Z=new Ou.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},ue=new WeakMap,Ne=new WeakMap,Fe=new WeakMap,be=async ne=>{if(ue.has(ne))return console.log(`从缓存加载: ${ne}`),ue.get(ne);try{const Ae=await Ga.axios.get(`${fe}/${ne}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ie=new Blob([Ae.data],{type:"application/octet-stream;charset=UTF-8"});return le.enableCache&&ue.set(ne,Ie),Ie}catch(Ae){throw console.error(`加载文件失败: ${ne}`,Ae),new Error(`无法加载文件: ${ne}`)}},A=(ne="default")=>{if(Ne.has(ne))return Ne.get(ne);const Ae=new aa.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:aa.FrontSide});return Ne.set(ne,Ae),Ae},q=ne=>{try{ne.isBufferGeometry&&ne.mergeVertices&&ne.mergeVertices(),ne.computeVertexNormals&&ne.computeVertexNormals(),ne.computeBoundingSphere&&ne.computeBoundingSphere(),ne.deleteAttribute&&ne.deleteAttribute("uv2")}catch(Ae){console.warn("几何体优化失败,使用原始几何体:",Ae)}return ne},re=async(ne,Ae,Ie)=>{const qe=`stl_${Ae}`;if(Fe.has(qe)){const Ue=Fe.get(qe);return new aa.Mesh(Ue,A())}const Ve=await ne.arrayBuffer();let $e=new Rn.STLLoader(Ie).parse(Ve);return $e=q($e),Fe.set(qe,$e),new aa.Mesh($e,A())},Te=async(ne,Ae,Ie)=>{const qe=`obj_${Ae}`;if(ue.has(qe))return ue.get(qe).clone();const Ve=await ne.text(),se=new Rn.OBJLoader(Ie),$e=Ae.replace(".obj",".mtl");try{const La=await(await be($e)).text(),P=new Rn.MTLLoader(Ie).parse(La);P.preload(),se.setMaterials(P)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${$e}`)}const Ue=se.parse(Ve);return Ue.traverse(Na=>{Na.isMesh&&(Na.geometry=q(Na.geometry),Na.castShadow=!0,Na.receiveShadow=!0,Na.renderOrder=1)}),ue.set(qe,Ue),Ue},xe=(ne,Ae)=>{const Ie=new aa.LOD;if(Ie.addLevel(ne,0),ne.geometry){const qe=ne.geometry.clone(),Ve=new aa.Mesh(qe,ne.material);Ie.addLevel(Ve,50)}return Ie};let Ye=0,da=0;const Ma=[];Z.loadMeshCb=async(ne,Ae,Ie,qe,Ve)=>{const se=ne.split("/").pop(),$e=Ie||(()=>{});Ye++;const Ue=new Promise(async(Na,La)=>{try{const V=await be(se);if(!V||V.size===0)throw new Error(`文件为空: ${se}`);const P=se.split(".").pop().toLowerCase();let ae;switch(P){case"stl":ae=await re(V,se,Ae);break;case"obj":ae=await Te(V,se,Ae);break;default:throw new Error(`不支持的文件格式: ${P}`)}le.enableLOD&&ae.isMesh&&(ae=xe(ae,se)),$e(ae),da++,qe&&qe({loaded:da,total:Ye,progress:da/Ye}),Na(ae)}catch(V){console.error(`mesh文件加载失败: ${se}`,V);const P=new aa.Group;$e(P),Na(P);const ae=new aa.BoxGeometry(.1,.1,.1),he=new aa.MeshStandardMaterial({color:16711680,wireframe:!0});return new aa.Mesh(ae,he)}});Ma.push(Ue)};try{if(!pe){yi.value=void 0;break}if(I=await Z.loadAsync(pe),console.log(`URDF文件加载完成,等待${Ye}个mesh文件加载...`),Ma.length>0)try{await Promise.allSettled(Ma),console.log(`所有mesh文件处理完成,成功加载: ${da}/${Ye}`)}catch(Ie){console.warn("部分mesh文件加载失败,但继续显示模型",Ie)}I.traverse(Ie=>{Ie.isMesh&&(Ie.castShadow=!0,Ie.receiveShadow=!0,Ie.renderOrder=1,Ie.material&&(Ie.material.needsUpdate=!0))}),console.time("计算包围盒");const ne=new aa.Box3;ne.expandByObject(I);const Ae=`urdf_${Date.now()}`;I.userData.boundingBox=ne.clone(),I.userData.modelId=Ae,fs.set(Ae,{box:ne.clone(),center:ne.getCenter(new aa.Vector3),size:ne.getSize(new aa.Vector3),maxSize:Math.max(...ne.getSize(new aa.Vector3).toArray())}),yi.value=I,console.log("URDF模型加载完成并优化")}catch(ne){console.error("URDF加载失败:",ne),yi.value=void 0}finally{pe&&URL.revokeObjectURL(pe)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return I};return{addModelsFromUrls:y,loadModelByDefaultPath:async D=>{console.log(D);try{n.value=!0,o.value="正在加载模型...";const{scene:R}=l();if(!R)throw new Error("Scene not initialized");s(),await new Promise(W=>setTimeout(W,100));const E=[];for(let W=0;W<D.length;W++){const I=D[W],U=await u(I.suffix,I.blob,I.mtlBlobs||[],I.meshFiles||[]);U&&(R.add(U),r.value.push(U),E.push(U))}return n.value=!1,o.value="",E}catch(R){throw console.error("加载模型失败:",R),n.value=!1,o.value="",R}},urdfModel:yi,modelBoundingBoxes:fs}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var r=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var o,s,c,m,f,h=function(x,D){D.parentNode.insertBefore(x,D)};if(r&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(x){console&&console.log(x)}}o=function(){var x,D=document.createElement("div");D.innerHTML=l._iconfont_svg_string_4827314,(D=D.getElementsByTagName("svg")[0])&&(D.setAttribute("aria-hidden","true"),D.style.position="absolute",D.style.width=0,D.style.height=0,D.style.overflow="hidden",D=D,(x=document.body).firstChild?h(D,x.firstChild):x.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),o()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(c=o,m=l.document,f=!1,u(),m.onreadystatechange=function(){m.readyState=="complete"&&(m.onreadystatechange=null,y())})}function y(){f||(f=!0,c())}function u(){try{m.documentElement.doScroll("left")}catch{return void setTimeout(u,50)}y()}})(window);const wf=["onClick"],_f=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:r}){const n=l,o=r,s=a.ref(null),c=a.ref(null),m=S=>{if(Array.isArray(S)&&S.length>=3){const[k,g,z,$]=S;return $!==void 0?`rgba(${k}, ${g}, ${z}, ${$})`:`rgb(${k}, ${g}, ${z})`}if(typeof S=="string"){const k=S.trim();if(k.startsWith("[")&&k.endsWith("]")){const g=k.slice(1,-1).split(",").map(z=>Number(z.trim()));if(g.length>=3&&g.every(z=>!Number.isNaN(z))){const[z,$,G,de]=g;return de!==void 0?`rgba(${z}, ${$}, ${G}, ${de})`:`rgb(${z}, ${$}, ${G})`}}return k}},f=a.computed(()=>{const S=Number(n==null?void 0:n.textSize),k=m(n==null?void 0:n.textColor),g={},z={};return!Number.isNaN(S)&&S&&(g.fontSize=`${S}px`,z.fontSize=`${S}px`),k&&(g.color=k,z.color=k),{label:g,value:z}}),h=a.ref(""),y=a.ref(""),u=a.ref(!1),x=async S=>{if(S){y.value&&(URL.revokeObjectURL(y.value),y.value="");try{const k=await L.platformDownloadFile({url:S}),g=new Blob([k==null?void 0:k.data],{type:(k==null?void 0:k.headers["content-type"])||"image/*"});y.value=URL.createObjectURL(g)}catch{y.value=""}}};a.watch(()=>n==null?void 0:n.backGroundImage,S=>{S&&(h.value=S)},{immediate:!0}),a.watch(h,S=>{x(S)},{immediate:!0});const D=()=>{var S;(S=c.value)==null||S.click()},R=async S=>{var z,$,G;const k=S.target,g=(z=k==null?void 0:k.files)==null?void 0:z[0];if(!g){k.value="";return}u.value=!0;try{const de=new FormData;de.append("file",g);const Me=await L.platformUploadFile(de),pe=(G=($=Me==null?void 0:Me.data)==null?void 0:$.result)==null?void 0:G.url;pe?(h.value=pe,o("update:backGroundImage",pe),x(pe),Ga.ElMessage.success("背景图片上传成功")):Ga.ElMessage.error("背景图片上传失败")}catch{Ga.ElMessage.error("背景图片上传失败")}finally{u.value=!1,k.value=""}},E=a.computed(()=>y.value?{backgroundImage:`url(${y.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),W=S=>il.getComponent(S),I=S=>{if(!S)return;const k=S.querySelector("input, textarea, .el-input__inner");k&&typeof k.focus=="function"&&k.focus()},U=(S,k,g)=>{n.disabled||S.field&&(s.value=k,a.nextTick(()=>{I(g.currentTarget)}))},j=()=>{s.value=null},C=S=>{var g;const k=((g=S==null?void 0:S.field)==null?void 0:g.value)??(S==null?void 0:S.value);return k==null||k===""?"-":k},_=S=>{const k=S!=null&&S.width&&S.width>0?S.width:1,z=`calc((100% - ${(k-1)*16}px) / ${k})`;return{flex:`0 0 ${z}`,maxWidth:z,minWidth:"140px",boxSizing:"border-box"}};return(S,k)=>(a.openBlock(),a.createElementBlock("div",{class:"statistics-cards-container",style:a.normalizeStyle(E.value),onClick:k[2]||(k[2]=g=>(n==null?void 0:n.backGround)==="Yes"&&D())},[(n==null?void 0:n.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:k[0]||(k[0]=a.withModifiers(g=>D(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:R},null,544),k[3]||(k[3]=a.createElementVNode("img",{src:il._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.items,(g,z)=>{var $,G,de,Me,pe,Z,fe,le;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:z,style:a.normalizeStyle(_(g)),onClick:k[1]||(k[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(f.value.label)},a.toDisplayString(g==null?void 0:g.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(f.value.value),onClick:ue=>U(g,z,ue)},[s.value===z&&g.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(W((($=g.field)==null?void 0:$.type)??"Input")),{key:0,modelValue:g.field.value,"onUpdate:modelValue":ue=>g.field.value=ue,isEdit:!0,disabled:(G=g.field)==null?void 0:G.disabled,content:((de=g.field)==null?void 0:de.contents)??[],optionUrl:g.field,originalValue:(Me=g.field)==null?void 0:Me.value,config:(pe=g.field)==null?void 0:pe.config,configModel:((Z=g.field)==null?void 0:Z.prop)??((fe=g.field)==null?void 0:fe.name),selectedTagList:((le=g.field)==null?void 0:le.selectValue)??[],onBlur:j,onBlurChange:j},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C(g)),1)],64))],12,wf)],4)}),128))],4))}}),Sf=Jl._export_sfc(_f,[["__scopeId","data-v-babf8f2a"]]),dc=L.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),Ef={class:"calculator-content"},Cf={class:"calculator-child"},Df={class:"calculator-child"},Nf=a.defineComponent({__name:"calculator",setup(l){const r=a.ref(),n=a.ref();return a.onMounted(()=>{r.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(o,s)=>(a.openBlock(),a.createElementBlock("div",Ef,[a.createElementVNode("div",Cf,[a.createVNode(il.ssForm,{rowContents:r.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",Df,[a.createVNode(il.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Bf=Jl._export_sfc(Nf,[["__scopeId","data-v-73db0fe7"]]),bt=(l,r)=>{let n=l,o=r;return Array.isArray(n)&&(n=n==null?void 0:n.map((s,c)=>{if(Array.isArray(s)){let m={};return s=s==null?void 0:s.forEach((f,h)=>{var y;(y=o==null?void 0:o[h])!=null&&y.prop?m[o[h].prop]=f:Array.isArray(f)&&(m.children=bt(f,o))}),Object.assign(m,{id:c})}else return s})),n},pc=(l,r,n)=>{let o=l,s=r;return o=o==null?void 0:o.map((c,m)=>{var f,h;return!Array.isArray(c)||!((f=s==null?void 0:s[m])!=null&&f.label)&&!n||(c.unshift(((h=s==null?void 0:s[m])==null?void 0:h.label)??""),c.some(y=>Array.isArray(y))&&(c=c==null?void 0:c.map(y=>{var u;return Array.isArray(y)&&(y=pc(y,(u=s==null?void 0:s[m])==null?void 0:u.children,n)),y}))),c}),o},Tf=(l,r,n)=>{if(r==="")return l==null?void 0:l.filter(o=>(o==null?void 0:o.id)!==n);{const o=r.split("-");return Af(l,o,n)}},Af=(l,r,n)=>{let o=l,s=r;return(s==null?void 0:s.length)===0?o=o==null?void 0:o.filter(c=>c.id!==n):o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=fc(c,s,n)),c)),o},fc=(l,r,n)=>{var c,m;let o=l,s=r;return(s==null?void 0:s.length)===0?o.children=(c=o.children)==null?void 0:c.filter(f=>f.id!==n):o.children=(m=o.children)==null?void 0:m.map(f=>(f.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),f=fc(f,s,n)),f)),o},zf=(l,r,n)=>{if(r==="")return n;{const o=r.split("-");return Mf(l,o,n)}},Mf=(l,r,n)=>{let o=l,s=r;return(s==null?void 0:s.length)===0?o=n:o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=hc(c,s,n)),c)),o},hc=(l,r,n)=>{var c;let o=l,s=r;return(s==null?void 0:s.length)===0?o.children=n:o.children=(c=o.children)==null?void 0:c.map(m=>(m.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),m=hc(m,s,n)),m)),o};class If{constructor(r={}){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=r.url??"ws://127.0.0.1:22225",this.heartbeatInterval=r.heartbeatInterval??3e3}init(r,n,o){var m;(m=this.canvas)!=null&&m.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=n,s.height=o;const c=s.getContext("2d");if(!c)throw new Error("无法获取 CanvasRenderingContext2D");r.appendChild(s),this.canvas=s,this.ctx=c}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((r,n)=>{const o=new WebSocket(this.url);o.binaryType="arraybuffer",o.onopen=()=>{this.socket=o,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),r()},o.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),n(s)},o.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},o.onmessage=s=>{this.handleMessage(s)}})}destroy(){var r;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,(r=this.canvas)!=null&&r.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(r=0){this.sendBytes(new Uint8Array([119,136,81,r]))}chooseResolution(r){if(!Array.isArray(r)||r.length===0)return null;const n=r.find(s=>s.width===2592&&s.height===1944);return n||[...r].sort((s,c)=>c.width*c.height-s.width*s.height)[0]||null}openCamera(r=0,n=1280,o=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=r,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=n>>8&255,s[9]=n&255,s[10]=o>>8&255,s[11]=o&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(r){var n;(n=this.onLog)==null||n.call(this,r)}sendBytes(r){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(r.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(r){var s,c,m,f,h,y;const n=new Uint8Array(r.data);if(n.length<=0)return;if(n[0]===17&&n[1]===17&&n[2]===17){this.log("heart socket!!!!");return}if(n[0]!==85||n[1]!==102)return;const o=n[2];if(o===80){const u=n[3],x=n.length-4,D=new Uint8Array(x);for(let W=0;W<x;W++)D[W]=n[4+W];const E=decodeURIComponent(this.byteToString(D)).split("|");(s=this.onDevCount)==null||s.call(this,u,E);return}if(o===81){const u=n[3]||0,x=[];for(let D=0;D<u;D++){const R=(n[4+D*4+0]||0)*256+(n[4+D*4+1]||0),E=(n[4+D*4+2]||0)*256+(n[4+D*4+3]||0);x.push({width:R,height:E,text:`${R}*${E}`})}(c=this.onResolution)==null||c.call(this,u,x);return}if(o===1){n[3]===1&&((m=this.onCameraStatus)==null||m.call(this,"opened")),n[3]===3&&((f=this.onCameraStatus)==null||f.call(this,"closed"));return}if(o===16){if(n[3]===1){const x=n[4]*256+n[5],D=n[6]*65536+n[7]*256+n[8];let R="";if(x>0){const I=new Uint8Array(x);for(let U=0;U<x;U++)I[U]=n[9+U];R=decodeURIComponent(this.byteToString(I))}const E=new Uint8Array(D);for(let I=0;I<D;I++)E[I]=n[9+x+I];const W=this.uint8ArrayToString(E);(h=this.onPhoto)==null||h.call(this,{flag:0,imgPath:R,base64:W})}n[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(o===204){if(!this.canvas||!this.ctx)return;const u=n[3]*256+n[4],x=n[5]*256+n[6];this.pMainShowStartX=n[7]*256+n[8],this.pMainShowStartY=n[9]*256+n[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const D=this.ctx.createImageData(u,x);let R=11;for(let E=0;E<D.data.length;E+=4)D.data[E+0]=n[R],D.data[E+1]=n[R+1],D.data[E+2]=n[R+2],D.data[E+3]=255,R+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(r){let n="";for(let o=0;o<r.length;o++)n+=String.fromCharCode(r[o]);return n}byteToString(r){let n="";for(let o=0;o<r.length;o++)n+=String.fromCharCode(r[o]);return n}}const Of={style:{display:"flex",gap:"16px",height:"100%"}},Lf={key:0,style:{color:"var(--el-text-color-secondary)"}},$f={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},Rf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Vf={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"}},Ff={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Pf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},jf=["src","onClick"],Hf=["onClick"],Uf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},qf={class:"dialog-footer"},Wf=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:r}){const n=l,o=r,s=a.ref(null),c=a.ref(!1),m=a.ref([]),f=a.ref(""),h=a.ref(!1),y=a.ref([]),u=new If({url:"ws://127.0.0.1:22225"});function x($,G){var le;const de=$.split(","),Me=((le=de[0].match(/:(.*?);/))==null?void 0:le[1])??"image/jpeg",pe=atob(de[1]);let Z=pe.length;const fe=new Uint8Array(Z);for(;Z--;)fe[Z]=pe.charCodeAt(Z);return new File([fe],G,{type:Me})}function D(){u.onLog=$=>{console.log("[GPY]",$)},u.onDevCount=($,G)=>{if(f.value+=`设备数量=${$},设备=${G.join(",")}
|
|
4
|
+
`,$>0){f.value+=`检测到设备,正在获取分辨率...
|
|
5
|
+
`;try{u.getResolution(0)}catch(de){f.value+=`获取分辨率失败:${(de==null?void 0:de.message)??de}
|
|
6
|
+
`}}else f.value+=`未检测到高拍仪设备!
|
|
7
|
+
`},u.onResolution=($,G)=>{if($<=0||!Array.isArray(G)||G.length===0){f.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
|
|
8
|
+
`;try{u.openCamera(0,1280,720)}catch(Me){f.value+=`打开摄像头失败:${(Me==null?void 0:Me.message)??Me}
|
|
9
|
+
`}return}const de=u.chooseResolution(G);if(!de){f.value+=`分辨率选择失败,回退使用 1280*720 打开...
|
|
10
|
+
`;try{u.openCamera(0,1280,720)}catch(Me){f.value+=`打开摄像头失败:${(Me==null?void 0:Me.message)??Me}
|
|
11
|
+
`}return}f.value+=`获取分辨率 ${de.text}成功,打开摄像头...
|
|
12
|
+
`;try{u.closeCamera(),setTimeout(()=>{try{u.openCamera(0,de.width,de.height)}catch(Me){f.value+=`打开摄像头失败:${(Me==null?void 0:Me.message)??Me}
|
|
13
|
+
`}},100)}catch{try{u.openCamera(0,de.width,de.height)}catch(Me){f.value+=`打开摄像头失败:${(Me==null?void 0:Me.message)??Me}
|
|
14
|
+
`}}},u.onCameraStatus=$=>{$==="opened"?(c.value=!0,f.value+=`摄像头已打开
|
|
15
|
+
`):(c.value=!1,f.value+=`摄像头已关闭
|
|
16
|
+
`)},u.onPhoto=$=>{if($.flag===0&&$.base64){const G=`data:image/jpeg;base64,${$.base64}`,de=x(G,`gpy-capture-${Date.now()}.jpg`);m.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:G,file:de}),f.value+=`拍照完成,已接收图片(当前 ${m.value.length} 张)
|
|
17
|
+
`}else f.value+=`拍照失败 flag=${$.flag}
|
|
18
|
+
`}}const R=async()=>{if(await a.nextTick(),!s.value)return;E(),D();const $=s.value.getBoundingClientRect();u.init(s.value,Math.floor($.width),Math.floor($.height)),f.value+=`正在连接设备服务...
|
|
19
|
+
`,await u.connect(),f.value+=`正在获取设备数量...
|
|
20
|
+
`,u.getDevCount()},E=()=>{try{u.destroy()}catch($){console.error($)}c.value=!1,m.value=[],f.value="",h.value=!1,y.value=[]};a.watch(()=>n.visible,$=>{$?R():E()});const W=()=>{try{u.bestSize()}catch($){console.error($)}},I=()=>{try{u.rotateLeft()}catch($){console.error($)}},U=()=>{try{u.rotateRight()}catch($){console.error($)}},j=()=>{try{u.focus()}catch($){console.error($)}},C=()=>{f.value+=`正在拍照...
|
|
21
|
+
`;try{u.photo()}catch($){f.value+=`拍照调用失败:${($==null?void 0:$.message)??$}
|
|
22
|
+
`}},_=()=>{m.value.length>0?o("confirm",m.value.map($=>$.file)):o("confirm",[])},S=$=>{$<0||$>=m.value.length||(m.value.splice($,1),f.value+=`已删除一张图片(剩余 ${m.value.length} 张)
|
|
23
|
+
`)},k=$=>{if(!$)return;const G=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:G,blobUrl:$}],h.value=!0},g=()=>{h.value=!1},z=()=>{E(),o("cancel")};return($,G)=>{const de=a.resolveComponent("el-input"),Me=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(wr.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:z,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",Of,[a.createElementVNode("div",{ref_key:"cameraBox",ref:s,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[c.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Lf,"初始化摄像头..."))],512),a.createElementVNode("div",$f,[a.createElementVNode("div",Rf,[G[0]||(G[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",Vf,[m.value.length===0?(a.openBlock(),a.createElementBlock("div",Ff,"暂无图片")):(a.openBlock(),a.createElementBlock("div",Pf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(pe,Z)=>(a.openBlock(),a.createElementBlock("div",{key:pe.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:pe.url,onClick:fe=>k(pe.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,jf),a.createElementVNode("div",{onClick:fe=>S(Z),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,Hf)]))),128))]))],512)]),a.createElementVNode("div",Uf,[G[1]||(G[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(de,{type:"textarea",value:f.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",qf,[a.createVNode(Me,{onClick:W,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[2]||(G[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Me,{onClick:I,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[3]||(G[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Me,{onClick:U,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[4]||(G[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Me,{onClick:j,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[5]||(G[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Me,{onClick:C,disabled:!c.value,id:"themeButton"},{default:a.withCtx(()=>G[6]||(G[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),G[9]||(G[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(Me,{onClick:_,disabled:m.value.length===0,id:"themeButton"},{default:a.withCtx(()=>G[7]||(G[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Me,{onClick:z,id:"themeBorderButton"},{default:a.withCtx(()=>G[8]||(G[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),h.value?(a.openBlock(),a.createBlock(il.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),Kf=Jl._export_sfc(Wf,[["__scopeId","data-v-24a2050a"]]),hs=L.useMenuState(L.pinia),Gf=async l=>{var c,m,f,h,y,u;let r=l==null?void 0:l.导入文件,n=l==null?void 0:l.函数参数,o=(c=r==null?void 0:r[0])==null?void 0:c.url,s="";if(!(o!=null&&o.includes("http"))||!(o!=null&&o.includes("https"))){hs.setContentLoading(!0);const x=await L.platformDownloadFile({url:o});let D=x==null?void 0:x.data;const R=new FormData;R.append("file",D,((m=r==null?void 0:r[0])==null?void 0:m.name)+"."+((f=o==null?void 0:o.split("."))==null?void 0:f[1])),R.append("query",n);let E=await ec(R);E=(u=(y=(h=E==null?void 0:E.data)==null?void 0:h.data)==null?void 0:y.response)==null?void 0:u.replace("generateResult",l==null?void 0:l.函数名称),s=E,hs.setContentLoading(!1)}return s},Bt=L.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),Yf=L.useLoginState(L.pinia),{extraUrl:so}=L.storeToRefs(Yf);let vc=so.value===""||!so.value?"http://139.196.154.85:20015":so.value;a.watch(()=>so.value,()=>{vc=so.value===""||!so.value?"http://139.196.154.85:20015":so.value},{deep:!0,immediate:!0});const Ti={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},vs={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:vc+"/api/public/paddleOCR"};class Jf{constructor(r){Wr(this,"config");this.config={...vs,...r}}updateConfig(r){this.config={...this.config,...r}}getConfig(){return{...this.config}}validateFileSize(r){const n=this.config.maxSize*1024*1024;return r.size<=n}validateFileType(r){return r.type.startsWith("image/")||r.type==="application/pdf"}getAuthorizationToken(){const r=Ga.Local.get(Ga.accessTokenKey);return r?`Bearer ${r}`:""}buildOCRRequest(r,n){return{title:n,form:{OCR图片文件:r}}}async recognize(r,n){const o=this.getAuthorizationToken(),s=this.buildOCRRequest(r,n),c=this.config.apiUrl||vs.apiUrl||"";return(await Ga.axios.post(c,s,{headers:{"Content-Type":"application/json",Authorization:o}})).data}getFieldAliases(r){return Ti[r]?Ti[r]:[r]}extractTableHeaders(r){const n=[],o=new Set,s=m=>{const f=m==null?void 0:m.label;return!(!f||f==="操作"||f===this.config.columnName||(m==null?void 0:m.type)==="operate"||(m==null?void 0:m.prop)==="operate")},c=m=>{(m||[]).forEach(f=>{if(!f)return;const h=(f==null?void 0:f.children)||(f==null?void 0:f.child)||(f==null?void 0:f.columns);if(Array.isArray(h)&&h.length>0){c(h);return}if(s(f)){const y=f.label;if(!o.has(y)){o.add(y);const u=this.getFieldAliases(y);n.push(u)}}})};return c(r||[]),n}}function mc(l){return new Jf(l)}mc();const kt=async(l,r)=>{var m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k;let n=(f=(m=L.cloneDeep(l))==null?void 0:m.optionUrl)==null?void 0:f.menuSelect,o=[];n==null||n.forEach(g=>{});let s="",c=await oa.menuToParent(n);if(c==null||c.forEach(g=>{var z,$,G,de;(g==null?void 0:g.name)===(((de=(G=($=(z=L.cloneDeep(l))==null?void 0:z.optionUrl)==null?void 0:$.groupSelect)==null?void 0:G[0])==null?void 0:de.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),r){s=r;const g=await Dr.getInsofDataApi({id:s}),z=(x=(u=(y=(h=g==null?void 0:g.data)==null?void 0:h.result)==null?void 0:y[0])==null?void 0:u.key)==null?void 0:x.pageKey;c=await oa.getItemData(z,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;r?g=(D=c==null?void 0:c.find(G=>(G==null?void 0:G.id)===r))==null?void 0:D.compData:g=(R=c==null?void 0:c.find(G=>{var de,Me,pe,Z;return(G==null?void 0:G.name)===(((Me=(de=l==null?void 0:l.groupSelect)==null?void 0:de.split(":"))==null?void 0:Me[0])||((Z=(pe=l==null?void 0:l.optionUrl)==null?void 0:pe.groupSelect)==null?void 0:Z[0]))}))==null?void 0:R.compData;let z=(W=(E=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:E.contents)==null?void 0:W.map(G=>G==null?void 0:G.label);(U=(I=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:I.contents)!=null&&U.every(G=>Array.isArray(G))&&(z=(_=oa.getColumnChild((C=(j=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:j.contents)==null?void 0:C[0]))==null?void 0:_.map(G=>G==null?void 0:G.prop));let $=(k=(S=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:S.contents)==null?void 0:k.map(G=>{if(Array.isArray(G))G=G==null?void 0:G.filter(de=>!(de!=null&&de.id));else{let de={};for(let Me in G)Me!=="id"&&(de[Me]=G==null?void 0:G[Me]);G=de}return G});$==null||$.forEach(G=>{Array.isArray(G)?o.push(oa.getValueToObjectValue(G,z)):o.push(G)})}return o},Xf=L.useMenuState(L.pinia),{activeMenuPath:rv}=L.storeToRefs(Xf),Zf=L.useUnit(L.pinia),{chooseTitle:nv}=L.storeToRefs(Zf),Qf="col-operate",yc=l=>`${Qf}-${l}`,e0=(l,r)=>{const n=new Map;l.forEach(s=>{const{prop:c}=s;n.set(c,s)});const o=s=>{Array.isArray(s)&&s.forEach(c=>{const{prop:m}=c||{},f=n.get(m);a0(f,c),Array.isArray(c==null?void 0:c.children)&&c.children.length>0&&o(c.children)})};return o(r),r},a0=(l,r)=>(l&&(r.sortable=l==null?void 0:l.sortable,r.filterable=l==null?void 0:l.filterable,r.showSummary=l==null?void 0:l.showSummary,r.operable=l==null?void 0:l.operable,r.fixed=l==null?void 0:l.fixed),r),l0=(l,r)=>{const{sortable:n=!1,filterable:o=!1,showSummary:s=!1,operable:c=!1,fixed:m=!1}=r||{};return{prop:l,sortable:n,filterable:o,showSummary:s,operable:c,fixed:m}},r0=async l=>{var c,m;if(!l)return;const r=yc(l),n=await Dr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r}}),o=(c=n==null?void 0:n.data)==null?void 0:c.code,s=(m=n==null?void 0:n.data)==null?void 0:m.result;if(o==200)return s==null?void 0:s[0]},n0=async l=>{if(l)return[]},o0=async(l,r)=>{if(!l||!r)return;const n=yc(l);return await Dr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:r}})},i0=async(l,r)=>!l||!r?void 0:await Dr.updateInsofDataApi({id:l,value:{columns:r}}),ms=async(l,r)=>{const n=sessionStorage.getItem("systemKey");if(!l||!r||!n)return;const o=await r0(l);return o?await i0(o==null?void 0:o.id,r):await o0(l,r)};var _i={exports:{}},t0=_i.exports,ys;function s0(){return ys||(ys=1,function(l,r){(function(n,o){o()})(t0,function(){function n(y,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function o(y,u,x){var D=new XMLHttpRequest;D.open("GET",y),D.responseType="blob",D.onload=function(){h(D.response,u,x)},D.onerror=function(){console.error("could not download file")},D.send()}function s(y){var u=new XMLHttpRequest;u.open("HEAD",y,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function c(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(u)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Pn.commonjsGlobal=="object"&&Pn.commonjsGlobal.global===Pn.commonjsGlobal?Pn.commonjsGlobal:void 0,f=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(y,u,x){var D=m.URL||m.webkitURL,R=document.createElement("a");u=u||y.name||"download",R.download=u,R.rel="noopener",typeof y=="string"?(R.href=y,R.origin===location.origin?c(R):s(R.href)?o(y,u,x):c(R,R.target="_blank")):(R.href=D.createObjectURL(y),setTimeout(function(){D.revokeObjectURL(R.href)},4e4),setTimeout(function(){c(R)},0))}:"msSaveOrOpenBlob"in navigator?function(y,u,x){if(u=u||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(n(y,x),u);else if(s(y))o(y,u,x);else{var D=document.createElement("a");D.href=y,D.target="_blank",setTimeout(function(){c(D)})}}:function(y,u,x,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof y=="string")return o(y,u,x);var R=y.type==="application/octet-stream",E=/constructor/i.test(m.HTMLElement)||m.safari,W=/CriOS\/[\d]+/.test(navigator.userAgent);if((W||R&&E||f)&&typeof FileReader<"u"){var I=new FileReader;I.onloadend=function(){var C=I.result;C=W?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=C:location=C,D=null},I.readAsDataURL(y)}else{var U=m.URL||m.webkitURL,j=U.createObjectURL(y);D?D.location=j:location.href=j,D=null,setTimeout(function(){U.revokeObjectURL(j)},4e4)}});m.saveAs=h.saveAs=h,l.exports=h})}(_i)),_i.exports}s0();const Qn=L.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(l){this.itemData=l},setCurStructureCompIds(l){this.curStructureCompIds=l},setRefreshCurStructure(l){this.isRefreshCurStructure=l},setOriginalData(l){this.originalData=l},setExtraContents(l){this.extraContents=l},setNodeDev(l){this.nodeDev=l},setIsEdit(l){this.isEdit=l},setSelectTab(l){this.selectTab=l}}}),c0=L.useLoginState(L.pinia),{loginUserInfo:dt}=L.storeToRefs(c0),u0=async l=>{var o,s,c;let r=await L.getAllTables({platId:parseInt((o=dt==null?void 0:dt.value)==null?void 0:o.plat_id),tableNames:[l]});return r=(c=(s=r==null?void 0:r.data)==null?void 0:s.result)==null?void 0:c[0],await uc(r,!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:r}]}]},d0=L.useLoginState(),{loginUserInfo:fl}=L.storeToRefs(d0);let gi="$R";const Er=L.useModelComp(L.pinia),gc=a.ref(!1),{itemData:p0,itemGridData:io,curStructureCompIds:gs,isSubmitCurStructure:f0,routeToChildPath:h0,pageMapState:xt,itemExtendData:bi,refreshTable:bs}=L.storeToRefs(Er),Ri=Qn(L.pinia),Ar=L.useMenuState(L.pinia),nr=a.shallowRef([]),{asideMenus:v0,activeTopMenuPath:m0,activeMenuPath:ml,platform:ov,buttonTriggerType:y0,currentMenuPath:Qr}=L.storeToRefs(Ar),pn=L.useUnit(L.pinia),{selectTitle:Jn,chooseTitle:Ai}=L.storeToRefs(pn);a.ref();const To=a.ref(!0),Zn=a.ref(0),wt=a.ref([]);a.ref(!1);const Tt=a.ref(!1),Ko=a.ref(),bc=a.ref(),kc=a.ref(),g0=()=>{Er.setItemGridData([]),Er.setIsEdit("edit"),Er.setSubmitCurStructure(ml.value!=="/平台管理/菜单管理")},b0=()=>{Er.setIsEdit("view"),Er.setRefreshCurStructure(!0)},k0=async l=>{var s;let r=Jn.value,n=r==null?void 0:r.findIndex(c=>(c==null?void 0:c.value)===(l==null?void 0:l.value)),o=r==null?void 0:r.filter((c,m)=>m<=n);pn.setSelectTitle(il.safeClone(o)),o=(s=o==null?void 0:o.map(c=>c==null?void 0:c.value))==null?void 0:s.join("/"),Ar.setActiveMenuPath(null),Ar.setActiveMenuPath(o)},pt=async(l,r,n,o="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let c,m;r==="create"?(c={dataList:l==null?void 0:l.map(h=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n!=null&&n.startsWith("/")?n==null?void 0:n.substring(1):n,type:"structure",structureBelong:o,parentTable:"",version:1},value:{pageData:{...h,compData:(y=h==null?void 0:h.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},m=Dr.batchAddInsofDataApi):r==="update"?(c={dataList:l==null?void 0:l.map(h=>{var y;return{id:h==null?void 0:h.id,value:{pageData:{...h,compData:(y=h==null?void 0:h.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},m=Dr.batchUpdateInsofDataApi):r==="delete"&&(c={ids:l},m=Dr.batchDeleteInsofDataApi);const f=await m(c);if(((s=f==null?void 0:f.data)==null?void 0:s.code)===200)return f.data.result;throw Ga.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Ga.ElMessage.error("保存响应失败")}},ks=async(l,r,n,o)=>{var s,c,m,f,h,y,u,x,D,R,E;try{const W=(c=(s=l==null?void 0:l.results)==null?void 0:s.filter(S=>!(S!=null&&S.id)||typeof(S==null?void 0:S.id)=="string"))==null?void 0:c.map(S=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:r,relatedInfo:n},value:{tableData:S}})),I=(f=(m=l==null?void 0:l.results)==null?void 0:m.filter(S=>(S==null?void 0:S.id)&&typeof(S==null?void 0:S.id)=="number"))==null?void 0:f.map(S=>({id:S==null?void 0:S.id,value:{tableData:S}})),U=JSON.parse(JSON.stringify(l)),j=(h=U==null?void 0:U.results)==null?void 0:h.map(S=>S.id);let C;n?C=(x=(u=(y=xt.value)==null?void 0:y[ml.value])==null?void 0:u.filter(S=>{var k,g,z;return((k=S==null?void 0:S.key)==null?void 0:k.type)===r&&((z=(g=S==null?void 0:S.key)==null?void 0:g.relatedInfo)==null?void 0:z.target)===o}))==null?void 0:x.map(S=>S==null?void 0:S.id):C=(E=(R=(D=xt.value)==null?void 0:D[ml.value])==null?void 0:R.filter(S=>{var k;return((k=S==null?void 0:S.key)==null?void 0:k.type)===r}))==null?void 0:E.map(S=>S==null?void 0:S.id);const _=C==null?void 0:C.filter(S=>!(j!=null&&j.includes(S))&&typeof S=="number");(W==null?void 0:W.length)>0&&await Dr.batchAddInsofDataApi({dataList:W}),(I==null?void 0:I.length)>0&&await Dr.batchUpdateInsofDataApi({dataList:I}),(_==null?void 0:_.length)>0&&await Dr.batchDeleteInsofDataApi({ids:_})}catch(W){throw new Error(W)}},x0=async l=>{var y,u,x,D,R,E,W,I,U,j;Ar.setContentLoading(!0);const r=JSON.parse(JSON.stringify(p0.value));if(!f0.value)return Ar.setCacheStructures({key:y0.value,data:r}),Ga.ElMessage.success("已暂存");const n=r==null?void 0:r.map(C=>C.id),o=n.filter(C=>{var _;return!((_=gs.value)!=null&&_.includes(C))}),s=(y=gs.value)==null?void 0:y.filter(C=>!n.includes(C)),c=[...o,...s].filter(C=>typeof C!==null&&typeof C<"u"),m=r==null?void 0:r.filter(C=>!C.id),f=r==null?void 0:r.filter(C=>C.id);let h=[];if(c&&(c==null?void 0:c.length)>0&&h.push(pt(c,"delete",l)),m&&(m==null?void 0:m.length)>0&&h.push(pt(m,"create",l)),f&&(f==null?void 0:f.length)>0&&h.push(pt(f,"update",l)),io.value&&((u=io.value)!=null&&u.isDelete&&((D=(x=io.value)==null?void 0:x.results)==null?void 0:D.length)>0&&((E=(R=io.value)==null?void 0:R.results)!=null&&E.every(C=>typeof C=="number"))?await Dr.batchDeleteInsofDataApi({ids:(W=io.value)==null?void 0:W.results}):(console.log("itemGridData.value",io.value),h.push(await ks(io.value,"gridLayout")))),bi.value)for(const C in bi.value)h.push(await ks((I=bi.value)==null?void 0:I[C],"extend",{target:C,compId:(j=(U=bi.value)==null?void 0:U[C])==null?void 0:j.compId},C));await Promise.all(h).then(()=>{Ga.ElMessage.success("保存成功"),Er.setRefreshCurStructure(!0)}).catch(C=>{Ga.ElMessage.success(C)}),Ar.setContentLoading(!1)},Go=l=>Ao(l),w0=a.computed(()=>{var l;return(l=nr.value)==null?void 0:l.filter(r=>(r==null?void 0:r.affix)&&(r==null?void 0:r.affix)!=="default")}),xc=a.computed(()=>{var l;return(l=nr.value)==null?void 0:l.filter(r=>!(r!=null&&r.affix&&(r==null?void 0:r.affix)!=="default"))}),wc=a.ref(0),_c=a.ref(null),_0="ocr_committed_temp_ids_v1",S0=(l,r)=>`${_0}:${String(l??"")}:${String(r??"")}`,E0=(l,r,n)=>{try{const o=S0(l,r),s=sessionStorage.getItem(o),c=s?JSON.parse(s):[],m=Array.isArray(c)?c:[],f=Array.from(new Set([...m,...n||[]].map(h=>String(h)))).slice(-200);sessionStorage.setItem(o,JSON.stringify(f))}catch{}},zi=async(l,r="data",n)=>{var s,c,m,f,h,y,u,x,D,R,E,W,I,U,j,C,_,S,k,g,z,$,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La,V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za,H,ye,oe,we,Q,Qe,ze,ka,ca,Aa,Ia,ba,ua,va,Ha,pl,$l,gl,Ol,Ra,jl,Zl,ja;let o=((m=(c=(s=Jn.value)==null?void 0:s.filter(ga=>(ga==null?void 0:ga.condition)==="child"))==null?void 0:c[0])==null?void 0:m.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let ga=(f=l==null?void 0:l.fixContent)==null?void 0:f.map(_e=>{let Ba={};for(let Ge in _e)Array.isArray(_e==null?void 0:_e[Ge])?Ba[Ge]=JSON.stringify(_e==null?void 0:_e[Ge]):Ba[Ge]=_e==null?void 0:_e[Ge];return Ba}),Ca=await L.quoteApi({platId:parseInt((h=fl==null?void 0:fl.value)==null?void 0:h.plat_id),type:"fatherSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});Ca=(y=Ca==null?void 0:Ca.data)==null?void 0:y.result,Ca=Ca==null?void 0:Ca.filter(_e=>{var Ba,Ge;return!((_e==null?void 0:_e.fatherPath)!==""&&((Ge=(Ba=_e==null?void 0:_e.quote)==null?void 0:Ba[0])==null?void 0:Ge.menus)===(ml==null?void 0:ml.value))});let Ua=Ca==null?void 0:Ca.map(_e=>{var la,Ze;let Ba={},Ge=ga==null?void 0:ga[0],X;return Array.isArray((la=_e==null?void 0:_e.struct)==null?void 0:la[0])?X=oa.getColumnChild((Ze=_e==null?void 0:_e.struct)==null?void 0:Ze[0]):X=_e==null?void 0:_e.struct,X=X==null?void 0:X.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),X==null||X.forEach(Le=>{var xl,ll;Ba[Le.prop]=((xl=Le==null?void 0:Le.words)!=null&&xl[0]?(Ge==null?void 0:Ge[(ll=Le==null?void 0:Le.words)==null?void 0:ll[0]])??(Ge==null?void 0:Ge[Le==null?void 0:Le.prop]):Ge==null?void 0:Ge[Le==null?void 0:Le.prop])??""}),Ba.id="1",Ba.relatedId=`[${Ba.id}]`,delete Ba.sort,{tableName:"content_"+(_e==null?void 0:_e.id),tableContents:[Ba]}}),al=[{tableName:(u=l==null?void 0:l.relatedContents)==null?void 0:u.find(_e=>_e==null?void 0:_e.includes("content")),tableContents:ga}];al=[...al,...Ua];let Za=await L.quoteApi({platId:parseInt((x=fl==null?void 0:fl.value)==null?void 0:x.plat_id),type:"sonSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});Za=(R=(D=Za==null?void 0:Za.data)==null?void 0:D.result)==null?void 0:R.filter(_e=>!(al!=null&&al.find(Ba=>(Ba==null?void 0:Ba.tableName)==="content_"+(_e==null?void 0:_e.id)))),Za=Za==null?void 0:Za.filter(_e=>{var Ba,Ge;return!((_e==null?void 0:_e.fatherPath)!==""&&((Ge=(Ba=_e==null?void 0:_e.quote)==null?void 0:Ba[0])==null?void 0:Ge.menus)===(ml==null?void 0:ml.value))});let Oe=Za==null?void 0:Za.map(_e=>{var la,Ze,Le,xl,ll,hl,Va;let Ba={},Ge=ga==null?void 0:ga[0],X;return Array.isArray((la=_e==null?void 0:_e.struct)==null?void 0:la[0])?X=oa.getColumnChild((Ze=_e==null?void 0:_e.struct)==null?void 0:Ze[0]):X=_e==null?void 0:_e.struct,X=X==null?void 0:X.filter(Wa=>(Wa==null?void 0:Wa.prop)!=="relatedId"),((xl=(Le=X==null?void 0:X[0])==null?void 0:Le.words)!=null&&xl[0]?Ge!=null&&Ge[(hl=(ll=X==null?void 0:X[0])==null?void 0:ll.words)==null?void 0:hl[0]]:Ge!=null&&Ge[(Va=X==null?void 0:X[0])==null?void 0:Va.prop])?(X==null||X.forEach(Wa=>{var _a,ge;Ba[Wa.prop]=((_a=Wa==null?void 0:Wa.words)!=null&&_a[0]?(Ge==null?void 0:Ge[(ge=Wa==null?void 0:Wa.words)==null?void 0:ge[0]])??(Ge==null?void 0:Ge[Wa==null?void 0:Wa.prop]):Ge==null?void 0:Ge[Wa==null?void 0:Wa.prop])??""}),Ba.id="1",Ba.relatedId=`[${Ba.id}]`,delete Ba.sort):Ba=void 0,{tableName:"content_"+(_e==null?void 0:_e.id),tableContents:[Ba]}});Oe=Oe==null?void 0:Oe.filter(_e=>{var Ba;return!((Ba=_e==null?void 0:_e.tableContents)!=null&&Ba.every(Ge=>Ge===void 0))}),al=[...al,...Oe],await L.pageBatchAddApi({platId:parseInt((E=fl==null?void 0:fl.value)==null?void 0:E.plat_id),changeContents:al});let ra=[];al==null||al.forEach(_e=>{var Ba;(Ba=_e==null?void 0:_e.tableContents)==null||Ba.forEach(Ge=>{ra.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:_e==null?void 0:_e.tableName,request_type:"add"})})}),await L.pageBatchAddApi({platId:parseInt((W=fl==null?void 0:fl.value)==null?void 0:W.plat_id),changeContents:[{tableName:"log",tableContents:ra}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const ga=((l==null?void 0:l.ocrRows)||[]).map(Za=>Za==null?void 0:Za.id).filter(Za=>Za!=null),Ca=((l==null?void 0:l.ocrRows)||[]).map(Za=>{const Oe={...Za};return delete Oe._isOCRRow,delete Oe._ocrTableId,Object.keys(Oe).forEach(ra=>{/(^|\.)证书附件$/.test(ra)&&Array.isArray(Oe[ra])&&(Oe[ra]=JSON.stringify(Oe[ra].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)))}),Oe});let Ua=[{tableName:(I=l==null?void 0:l.relatedContents)==null?void 0:I.find(Za=>Za==null?void 0:Za.includes("content")),tableContents:Ca}];await L.pageBatchAddApi({platId:parseInt((U=fl==null?void 0:fl.value)==null?void 0:U.plat_id),changeContents:Ua});let al=[];Ua==null||Ua.forEach(Za=>{var Oe;(Oe=Za==null?void 0:Za.tableContents)==null||Oe.forEach(ra=>{al.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ra),request_result:"{}",is_delete:!1,request_table:Za==null?void 0:Za.tableName,request_type:"ocrBatchAdd"})})}),await L.pageBatchAddApi({platId:parseInt((j=fl==null?void 0:fl.value)==null?void 0:j.plat_id),changeContents:[{tableName:"log",tableContents:al}]}),E0(l==null?void 0:l.parentTableId,l==null?void 0:l.index,ga)}if((l==null?void 0:l.buttonName)==="编辑"){const Ca=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(X=>{const la={...X};return delete la._isOCRRow,delete la._ocrTableId,delete la._isTemp,delete la.tableEditType,delete la.index,la});let Ua=Ca==null?void 0:Ca.map(X=>{let la={};for(let Ze in X)Array.isArray(X==null?void 0:X[Ze])?la[Ze]=JSON.stringify(X==null?void 0:X[Ze]):la[Ze]=X==null?void 0:X[Ze];return la}),al=await L.quoteApi({platId:parseInt((C=fl==null?void 0:fl.value)==null?void 0:C.plat_id),type:"fatherSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});al=(_=al==null?void 0:al.data)==null?void 0:_.result,al=al==null?void 0:al.filter(X=>{var la,Ze;return!((X==null?void 0:X.fatherPath)!==""&&((Ze=(la=X==null?void 0:X.quote)==null?void 0:la[0])==null?void 0:Ze.menus)===(ml==null?void 0:ml.value))});let Za=(S=Ua==null?void 0:Ua[0])==null?void 0:S.id,Oe=[{tableName:(k=l==null?void 0:l.relatedContents)==null?void 0:k.find(X=>X==null?void 0:X.includes("content")),tableContents:Ua}],ra=(g=al==null?void 0:al.map(X=>{var Ze,Le,xl,ll,hl;let la=(Ze=X==null?void 0:X.contents)==null?void 0:Ze.filter(Va=>{var Wa,_a;return JSON.stringify(Va==null?void 0:Va.relatedId)!=="{}"&&(Va==null?void 0:Va.relatedId)!==""&&(Va!=null&&Va.relatedId)?(Wa=Va==null?void 0:Va.relatedId)==null?void 0:Wa.includes(parseInt(Za)):(Va==null?void 0:Va.sort)===((_a=Ua==null?void 0:Ua[0])==null?void 0:_a.sort)});if((la==null?void 0:la.length)>0){let Va=Ua==null?void 0:Ua[0];Va={...Va,id:(Le=la==null?void 0:la[0])==null?void 0:Le.id};let Wa={},_a=Va,ge;return Array.isArray((xl=X==null?void 0:X.struct)==null?void 0:xl[0])?ge=oa.getColumnChild((ll=X==null?void 0:X.struct)==null?void 0:ll[0]):ge=X==null?void 0:X.struct,ge=ge==null?void 0:ge.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ge==null||ge.forEach(xa=>{var wl,Rl;Wa[xa.prop]=((wl=xa==null?void 0:xa.words)!=null&&wl[0]?(_a==null?void 0:_a[(Rl=xa==null?void 0:xa.words)==null?void 0:Rl[0]])??(_a==null?void 0:_a[xa==null?void 0:xa.prop]):_a==null?void 0:_a[xa==null?void 0:xa.prop])??""}),Wa.id=(hl=la==null?void 0:la[0])==null?void 0:hl.id,delete Wa.sort,delete Wa.relatedId,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[Wa]}}else return}))==null?void 0:g.filter(X=>X);Oe=[...Oe,...ra];let _e=await L.quoteApi({platId:parseInt((z=fl==null?void 0:fl.value)==null?void 0:z.plat_id),type:"sonSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});_e=(G=($=_e==null?void 0:_e.data)==null?void 0:$.result)==null?void 0:G.filter(X=>!(Oe!=null&&Oe.find(la=>(la==null?void 0:la.tableName)==="content_"+(X==null?void 0:X.id)))),_e=_e==null?void 0:_e.filter(X=>{var la,Ze;return!((X==null?void 0:X.fatherPath)!==""&&((Ze=(la=X==null?void 0:X.quote)==null?void 0:la[0])==null?void 0:Ze.menus)===(ml==null?void 0:ml.value))});let Ba=(de=_e==null?void 0:_e.map(X=>{var Ze,Le,xl,ll,hl;let la=(Ze=X==null?void 0:X.contents)==null?void 0:Ze.filter(Va=>{var Wa,_a,ge;return JSON.stringify(Va==null?void 0:Va.relatedId)!=="{}"&&(Va==null?void 0:Va.relatedId)!==""&&(Va!=null&&Va.relatedId)?(Wa=Va==null?void 0:Va.relatedId)==null?void 0:Wa.includes(parseInt(Za)):(Va==null?void 0:Va.sort)===((_a=Ua==null?void 0:Ua[0])==null?void 0:_a.sort)||(Va==null?void 0:Va.sort)===(parseInt(((ge=Ua==null?void 0:Ua[0])==null?void 0:ge.sort)??"0")+1).toString()});if((la==null?void 0:la.length)>0){let Va=Ua==null?void 0:Ua[0];Va={...Va,id:(Le=la==null?void 0:la[0])==null?void 0:Le.id};let Wa={},_a=Va,ge;return Array.isArray((xl=X==null?void 0:X.struct)==null?void 0:xl[0])?ge=oa.getColumnChild((ll=X==null?void 0:X.struct)==null?void 0:ll[0]):ge=X==null?void 0:X.struct,ge=ge==null?void 0:ge.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ge==null||ge.forEach(xa=>{var wl,Rl,Fl,or;((wl=xa==null?void 0:xa.words)!=null&&wl[0]?(_a==null?void 0:_a[(Rl=xa==null?void 0:xa.words)==null?void 0:Rl[0]])??(_a==null?void 0:_a[xa==null?void 0:xa.prop]):_a!=null&&_a[xa==null?void 0:xa.prop])&&(Wa[xa.prop]=((Fl=xa==null?void 0:xa.words)!=null&&Fl[0]?(_a==null?void 0:_a[(or=xa==null?void 0:xa.words)==null?void 0:or[0]])??(_a==null?void 0:_a[xa==null?void 0:xa.prop]):_a==null?void 0:_a[xa==null?void 0:xa.prop])??"")}),Wa.id=(hl=la==null?void 0:la[0])==null?void 0:hl.id,delete Wa.sort,delete Wa.relatedId,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[Wa]}}else return}))==null?void 0:de.filter(X=>X);Oe=[...Oe,...Ba],await L.pageBatchUpdateApi({platId:parseInt((Me=fl==null?void 0:fl.value)==null?void 0:Me.plat_id),changeContents:Oe});let Ge=[];Oe==null||Oe.forEach(X=>{var la;(la=X==null?void 0:X.tableContents)==null||la.forEach(Ze=>{Ge.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ze),request_result:"{}",is_delete:!1,request_table:X==null?void 0:X.tableName,request_type:"update"})})}),await L.pageBatchAddApi({platId:parseInt((pe=fl==null?void 0:fl.value)==null?void 0:pe.plat_id),changeContents:[{tableName:"log",tableContents:Ge}]})}if((l==null?void 0:l.buttonName)==="删除"){let ga=[{tableName:(Z=l==null?void 0:l.relatedContents)==null?void 0:Z.find(_e=>_e==null?void 0:_e.includes("content")),tableContents:l==null?void 0:l.fixContent}],Ca=await L.quoteApi({platId:parseInt((fe=fl==null?void 0:fl.value)==null?void 0:fe.plat_id),type:"fatherSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});Ca=(le=Ca==null?void 0:Ca.data)==null?void 0:le.result,Ca=Ca==null?void 0:Ca.filter(_e=>{var Ba,Ge;return!((_e==null?void 0:_e.fatherPath)!==""&&((Ge=(Ba=_e==null?void 0:_e.quote)==null?void 0:Ba[0])==null?void 0:Ge.menus)===(ml==null?void 0:ml.value))});let Ua=(Ne=(ue=l==null?void 0:l.fixContent)==null?void 0:ue[0])==null?void 0:Ne.id,al=(Fe=Ca==null?void 0:Ca.map(_e=>{var Ge,X,la,Ze,Le,xl;let Ba=(Ge=_e==null?void 0:_e.contents)==null?void 0:Ge.filter(ll=>{var hl,Va,Wa;return JSON.stringify(ll==null?void 0:ll.relatedId)!=="{}"&&(ll==null?void 0:ll.relatedId)!==""&&(ll!=null&&ll.relatedId)?(hl=ll==null?void 0:ll.relatedId)==null?void 0:hl.includes(parseInt(Ua)):(ll==null?void 0:ll.sort)===((Wa=(Va=l==null?void 0:l.fixContent)==null?void 0:Va[0])==null?void 0:Wa.sort)});if((Ba==null?void 0:Ba.length)>0){let ll=(X=l==null?void 0:l.fixContent)==null?void 0:X[0];ll={...ll,id:(la=Ba==null?void 0:Ba[0])==null?void 0:la.id};let hl={},Va=ll,Wa;return Array.isArray((Ze=_e==null?void 0:_e.struct)==null?void 0:Ze[0])?Wa=oa.getColumnChild((Le=_e==null?void 0:_e.struct)==null?void 0:Le[0]):Wa=_e==null?void 0:_e.struct,Wa=Wa==null?void 0:Wa.filter(_a=>(_a==null?void 0:_a.prop)!=="relatedId"),Wa==null||Wa.forEach(_a=>{var ge,xa;hl[_a.prop]=((ge=_a==null?void 0:_a.words)!=null&&ge[0]?(Va==null?void 0:Va[(xa=_a==null?void 0:_a.words)==null?void 0:xa[0]])??(Va==null?void 0:Va[_a==null?void 0:_a.prop]):Va==null?void 0:Va[_a==null?void 0:_a.prop])??""}),hl.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete hl.sort,delete hl.relatedId,{tableName:"content_"+(_e==null?void 0:_e.id),tableContents:[hl]}}else return}))==null?void 0:Fe.filter(_e=>_e);ga=[...ga,...al];let Za=await L.quoteApi({platId:parseInt((be=fl==null?void 0:fl.value)==null?void 0:be.plat_id),type:"sonSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});Za=(q=(A=Za==null?void 0:Za.data)==null?void 0:A.result)==null?void 0:q.filter(_e=>!(ga!=null&&ga.find(Ba=>(Ba==null?void 0:Ba.tableName)==="content_"+(_e==null?void 0:_e.id)))),Za=Za==null?void 0:Za.filter(_e=>{var Ba,Ge;return!((_e==null?void 0:_e.fatherPath)!==""&&((Ge=(Ba=_e==null?void 0:_e.quote)==null?void 0:Ba[0])==null?void 0:Ge.menus)===(ml==null?void 0:ml.value))});let Oe=(re=Za==null?void 0:Za.map(_e=>{var Ge,X,la,Ze,Le,xl;let Ba=(Ge=_e==null?void 0:_e.contents)==null?void 0:Ge.filter(ll=>{var hl,Va,Wa;return JSON.stringify(ll==null?void 0:ll.relatedId)!=="{}"&&(ll==null?void 0:ll.relatedId)!==""&&(ll!=null&&ll.relatedId)?(hl=ll==null?void 0:ll.relatedId)==null?void 0:hl.includes(parseInt(Ua)):(ll==null?void 0:ll.sort)===((Wa=(Va=l==null?void 0:l.fixContent)==null?void 0:Va[0])==null?void 0:Wa.sort)});if((Ba==null?void 0:Ba.length)>0){let ll=(X=l==null?void 0:l.fixContent)==null?void 0:X[0];ll={...ll,id:(la=Ba==null?void 0:Ba[0])==null?void 0:la.id};let hl={},Va=ll,Wa;return Array.isArray((Ze=_e==null?void 0:_e.struct)==null?void 0:Ze[0])?Wa=oa.getColumnChild((Le=_e==null?void 0:_e.struct)==null?void 0:Le[0]):Wa=_e==null?void 0:_e.struct,Wa=Wa==null?void 0:Wa.filter(_a=>(_a==null?void 0:_a.prop)!=="relatedId"),Wa==null||Wa.forEach(_a=>{var ge,xa;hl[_a.prop]=((ge=_a==null?void 0:_a.words)!=null&&ge[0]?(Va==null?void 0:Va[(xa=_a==null?void 0:_a.words)==null?void 0:xa[0]])??(Va==null?void 0:Va[_a==null?void 0:_a.prop]):Va==null?void 0:Va[_a==null?void 0:_a.prop])??""}),hl.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete hl.sort,delete hl.relatedId,{tableName:"content_"+(_e==null?void 0:_e.id),tableContents:[hl]}}else return}))==null?void 0:re.filter(_e=>_e);ga=[...ga,...Oe],await L.pageBatchDeleteApi({platId:parseInt((Te=fl==null?void 0:fl.value)==null?void 0:Te.plat_id),changeContents:ga});let ra=[];ga==null||ga.forEach(_e=>{var Ba;(Ba=_e==null?void 0:_e.tableContents)==null||Ba.forEach(Ge=>{ra.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:_e==null?void 0:_e.tableName,request_type:"delete"})})}),await L.pageBatchAddApi({platId:parseInt((xe=fl==null?void 0:fl.value)==null?void 0:xe.plat_id),changeContents:[{tableName:"log",tableContents:ra}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let ga=await L.getPageDataApi({platId:parseInt((Ye=fl==null?void 0:fl.value)==null?void 0:Ye.plat_id),pageName:"menu"});if(ga=(da=ga==null?void 0:ga.data)==null?void 0:da.result,ga!=null&&ga.find(Ca=>(Ca==null?void 0:Ca.father_name)===ml.value+"/")){kc.value=l,bc.value=ga==null?void 0:ga.filter(al=>(al==null?void 0:al.father_name)===ml.value+"/");let Ca=(ne=(Ma=l==null?void 0:l.columns)==null?void 0:Ma.find(al=>al==null?void 0:al.mainKey))==null?void 0:ne.prop,Ua=(Ie=(Ae=l==null?void 0:l.fixContent)==null?void 0:Ae[0])==null?void 0:Ie[Ca];Tt.value=!0,Ko.value=[{prop:Ca,label:Ca,name:Ca,value:Ua}]}else{let Ca=(qe=l==null?void 0:l.fixContent)==null?void 0:qe.map(Za=>{let Oe={};for(let ra in Za)Array.isArray(Za==null?void 0:Za[ra])?Oe[ra]=JSON.stringify(Za==null?void 0:Za[ra]):Oe[ra]=Za==null?void 0:Za[ra];return Oe.relatedId="",Oe}),Ua=[{tableName:(Ve=l==null?void 0:l.relatedContents)==null?void 0:Ve.find(Za=>Za==null?void 0:Za.includes("content")),tableContents:Ca}];await L.pageBatchAddApi({platId:parseInt((se=fl==null?void 0:fl.value)==null?void 0:se.plat_id),changeContents:Ua});let al=[];Ua==null||Ua.forEach(Za=>{var Oe;(Oe=Za==null?void 0:Za.tableContents)==null||Oe.forEach(ra=>{al.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ra),request_result:"{}",is_delete:!1,request_table:Za==null?void 0:Za.tableName,request_type:"copyAdd"})})}),await L.pageBatchAddApi({platId:parseInt(($e=fl==null?void 0:fl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:"log",tableContents:al}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let ga=((La=(Na=(Ue=l==null?void 0:l.columns)==null?void 0:Ue.map(X=>X==null?void 0:X.filter))==null?void 0:Na.filter(X=>X!==""))==null?void 0:La[0])??"";ga=aa.analyzeSplitToContent(ga,","),ga=(ga==null?void 0:ga.find(X=>X==null?void 0:X.includes("@Filter")))??"";let Ca=(V=l==null?void 0:l.fixContent)==null?void 0:V.map(X=>{let la={};for(let Ze in X)Array.isArray(X==null?void 0:X[Ze])?la[Ze]=JSON.stringify(X==null?void 0:X[Ze]):la[Ze]=X==null?void 0:X[Ze];return la}),Ua=await L.quoteApi({platId:parseInt((P=fl==null?void 0:fl.value)==null?void 0:P.plat_id),type:"fatherSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});Ua=(ae=Ua==null?void 0:Ua.data)==null?void 0:ae.result,Ua=Ua==null?void 0:Ua.filter(X=>{var la,Ze;return!((X==null?void 0:X.fatherPath)!==""&&((Ze=(la=X==null?void 0:X.quote)==null?void 0:la[0])==null?void 0:Ze.menus)===(ml==null?void 0:ml.value))});let al=(me=(he=l==null?void 0:l.columns)==null?void 0:he[0])==null?void 0:me.prop,Za=(fa=Ca==null?void 0:Ca[0])==null?void 0:fa[al],Oe=[{tableName:(Xe=l==null?void 0:l.relatedContents)==null?void 0:Xe.find(X=>X==null?void 0:X.includes("content")),tableContents:Ca}],ra=(ce=Ua==null?void 0:Ua.map(X=>{var Ze,Le,xl,ll,hl;let la=(Ze=X==null?void 0:X.contents)==null?void 0:Ze.filter(Va=>{var Wa;return(Wa=Object.values(Va))==null?void 0:Wa.find(_a=>_a===Za)});if((la==null?void 0:la.length)>0){let Va=Ca==null?void 0:Ca[0];Va={...Va,id:(Le=la==null?void 0:la[0])==null?void 0:Le.id};let Wa={},_a=Va,ge;return Array.isArray((xl=X==null?void 0:X.struct)==null?void 0:xl[0])?ge=oa.getColumnChild((ll=X==null?void 0:X.struct)==null?void 0:ll[0]):ge=X==null?void 0:X.struct,ge=ge==null?void 0:ge.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ge==null||ge.forEach(xa=>{var wl,Rl;Wa[xa.prop]=((wl=xa==null?void 0:xa.words)!=null&&wl[0]?(_a==null?void 0:_a[(Rl=xa==null?void 0:xa.words)==null?void 0:Rl[0]])??(_a==null?void 0:_a[xa==null?void 0:xa.prop]):_a==null?void 0:_a[xa==null?void 0:xa.prop])??""}),Wa.id=(hl=la==null?void 0:la[0])==null?void 0:hl.id,delete Wa.sort,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[Wa]}}else return}))==null?void 0:ce.filter(X=>X);Oe=[...Oe,...ra];let _e=await L.quoteApi({platId:parseInt((Ee=fl==null?void 0:fl.value)==null?void 0:Ee.plat_id),type:"sonSyncs",related:[{menus:o!==""?ml.value+"/"+o:ml.value,groups:l==null?void 0:l.name}]});if(_e=(We=(ma=_e==null?void 0:_e.data)==null?void 0:ma.result)==null?void 0:We.filter(X=>!(Oe!=null&&Oe.find(la=>(la==null?void 0:la.tableName)==="content_"+(X==null?void 0:X.id)))),_e=_e==null?void 0:_e.filter(X=>{var la,Ze;return!((X==null?void 0:X.fatherPath)!==""&&((Ze=(la=X==null?void 0:X.quote)==null?void 0:la[0])==null?void 0:Ze.menus)===(ml==null?void 0:ml.value))}),ga&&ga!==""){(ga==null?void 0:ga[(ga==null?void 0:ga.length)-1])===","&&(ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1)),ga=(za=(Oa=ga==null?void 0:ga.replace("(",gi))==null?void 0:Oa.split(gi))==null?void 0:za[1],ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1),(ga==null?void 0:ga[0])==="*"&&(ga="{"+((ye=(H=ga==null?void 0:ga.replace("{",gi))==null?void 0:H.split(gi))==null?void 0:ye[1])),ga=(oe=ga==null?void 0:ga.replaceAll("{",""))==null?void 0:oe.replaceAll("}","");let X=oa.calculatorAndToOr(ga);X=X==null?void 0:X[0];let la;if((we=Object.values(X))!=null&&we.some(Ze=>(Ze==null?void 0:Ze[0])==="*")){let Ze=(Qe=(Q=Jn.value)==null?void 0:Q.find(Le=>(Le==null?void 0:Le.condition)==="child"))!=null&&Qe.value?(Qr==null?void 0:Qr.value)+"/"+((ka=(ze=Jn.value)==null?void 0:ze.find(Le=>(Le==null?void 0:Le.condition)==="child"))==null?void 0:ka.value):Qr==null?void 0:Qr.value;la=await Kr(Ze,!1)}for(let Ze in X)if(((ca=X==null?void 0:X[Ze])==null?void 0:ca[0])==="*"){let Le=(ua=(ba=(Ia=X[Ze])==null?void 0:Ia.slice(1,(Aa=X[Ze])==null?void 0:Aa.length))==null?void 0:ba.split(":"))==null?void 0:ua[0],xl=(Ha=(va=X[Ze])==null?void 0:va.split(":"))==null?void 0:Ha[1],ll=(pl=la==null?void 0:la.filter(hl=>(hl==null?void 0:hl.name)===Le))==null?void 0:pl[0];ll=(gl=($l=ll==null?void 0:ll.compData)==null?void 0:$l.find(hl=>(hl==null?void 0:hl.key)==="tableContents"))==null?void 0:gl.contents,ll=(Ol=ll==null?void 0:ll[0])==null?void 0:Ol[xl],X[Ze]=ll}ga=((Ra=Object.values(X))==null?void 0:Ra[0])??""}let Ba=(jl=_e==null?void 0:_e.map(X=>{var Ze,Le,xl,ll,hl;let la=(Ze=X==null?void 0:X.contents)==null?void 0:Ze.filter(Va=>{var Wa;return(Wa=Object.values(Va))==null?void 0:Wa.find(_a=>_a===(ga===""?Za:ga))});if((la==null?void 0:la.length)>0){let Va=Ca==null?void 0:Ca[0];Va={...Va,id:(Le=la==null?void 0:la[0])==null?void 0:Le.id};let Wa={},_a=Va,ge;return Array.isArray((xl=X==null?void 0:X.struct)==null?void 0:xl[0])?ge=oa.getColumnChild((ll=X==null?void 0:X.struct)==null?void 0:ll[0]):ge=X==null?void 0:X.struct,ge=ge==null?void 0:ge.filter(xa=>(xa==null?void 0:xa.prop)!=="relatedId"),ge==null||ge.forEach(xa=>{var Rl,Fl,or,gr;let wl=(Rl=l==null?void 0:l.columns)==null?void 0:Rl.find(Cl=>{var sr,Tr,Ml;return((Tr=(sr=Cl==null?void 0:Cl.words)==null?void 0:sr[0])==null?void 0:Tr.replaceAll("'",""))===(xa==null?void 0:xa.prop)&&((Ml=Cl==null?void 0:Cl.functionRelatedWords)==null?void 0:Ml.length)>0});wl=(Fl=wl==null?void 0:wl.prop)==null?void 0:Fl.replaceAll("'",""),Wa[xa.prop]=((or=xa==null?void 0:xa.words)!=null&&or[0]?(_a==null?void 0:_a[(gr=xa==null?void 0:xa.words)==null?void 0:gr[0]])??(_a==null?void 0:_a[xa==null?void 0:xa.prop])??(_a==null?void 0:_a[wl]):(_a==null?void 0:_a[xa==null?void 0:xa.prop])??(_a==null?void 0:_a[wl]))??void 0}),Wa.id=(hl=la==null?void 0:la[0])==null?void 0:hl.id,delete Wa.sort,{tableName:"content_"+(X==null?void 0:X.id),tableContents:[Wa]}}else return}))==null?void 0:jl.filter(X=>X);Oe=[...Oe,...Ba],await L.pageBatchUpdateApi({platId:parseInt((Zl=fl==null?void 0:fl.value)==null?void 0:Zl.plat_id),changeContents:Oe});let Ge=[];Oe==null||Oe.forEach(X=>{var la;(la=X==null?void 0:X.tableContents)==null||la.forEach(Ze=>{Ge.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ze),request_result:"{}",is_delete:!1,request_table:X==null?void 0:X.tableName,request_type:"method"})})}),await L.pageBatchAddApi({platId:parseInt((ja=fl==null?void 0:fl.value)==null?void 0:ja.plat_id),changeContents:[{tableName:"log",tableContents:Ge}]})}Er.setRefreshCurStructure(!0),await St(l)},_t=async(l,r,n)=>{var s;let o=l==null?void 0:l.find(c=>(c==null?void 0:c.id)===r);if(o){let c=(s=o.compData)==null?void 0:s.map(m=>{var f;if((m==null?void 0:m.key)==="tableContents"){let h={...m,contents:n};return h.contents=(f=(h==null?void 0:h.contents)??[])==null?void 0:f.map(y=>{let u={};for(let x in y)JSON.stringify(y==null?void 0:y[x])==="{}"?u[x]="":u[x]=y==null?void 0:y[x];return u}),h}return m});return o.compData=await Nt(c,{}),l=l==null?void 0:l.map(m=>((m==null?void 0:m.id)===(o==null?void 0:o.id)&&(m=o),m)),l}else{let c=l==null?void 0:l.filter(f=>{var h;return(f==null?void 0:f.children)&&((h=f==null?void 0:f.children)==null?void 0:h.length)>0||(f==null?void 0:f.comp)==="Tabs"}),m=c==null?void 0:c.map(async f=>{var h;return f!=null&&f.children&&((h=f==null?void 0:f.children)==null?void 0:h.length)>0?f.children=await _t(f==null?void 0:f.children,r,n):f.compData=await _t(f==null?void 0:f.compData,r,n),f});return c=await Promise.all(m),c}},St=async l=>{var c,m,f,h,y,u,x;let r=(c=l==null?void 0:l.relatedContents)==null?void 0:c.filter(D=>D==null?void 0:D.includes("content_")),n=await L.getAllTables({platId:parseInt((m=fl==null?void 0:fl.value)==null?void 0:m.plat_id),tableNames:r??[]});if(n=(h=(f=n==null?void 0:n.data)==null?void 0:f.result)==null?void 0:h[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(D=>{D==null||delete D.source_table;const R={};for(let E in D){const W=D==null?void 0:D[E],I=W&&Object.prototype.toString.call(W)==="[object Object]"&&Object.keys(W).length===0,U=Array.isArray(W)&&W.length===0;W==null||W==="{}"||I||U?R[E]="":R[E]=W}return R});let o=(u=(y=r==null?void 0:r[0])==null?void 0:y.split("_"))==null?void 0:u[1],s=await _t(nr.value,o,n);nr.value=(x=nr.value)==null?void 0:x.map(D=>{var R,E;return(R=s==null?void 0:s[0])!=null&&R.tabInform&&((E=s==null?void 0:s[0])==null?void 0:E.tabInform)===(D==null?void 0:D.tabInform)?D=s==null?void 0:s[0]:(D!=null&&D.name?(D==null?void 0:D.name)===(s==null?void 0:s.name):(D==null?void 0:D.id)===(s==null?void 0:s.id))&&(D=s),D})},C0=l=>{let r=Ko.value;Ko.value=r==null?void 0:r.map(n=>(n.value=l==null?void 0:l[n==null?void 0:n.prop],n))},D0=async()=>{var D,R,E,W,I,U,j,C,_,S;let l=kc.value,r=bc.value,n=(R=(D=l==null?void 0:l.columns)==null?void 0:D.find(k=>k==null?void 0:k.mainKey))==null?void 0:R.prop,o=(W=(E=Ko.value)==null?void 0:E[0])==null?void 0:W.value,s=(I=l==null?void 0:l.fixContent)==null?void 0:I.map(k=>{var z;let g={};for(let $ in k)Array.isArray(k==null?void 0:k[$])?g[$]=JSON.stringify(k==null?void 0:k[$]):g[$]=k==null?void 0:k[$];return(z=l==null?void 0:l.columns)==null||z.forEach($=>{($==null?void 0:$.formType)==="Upload"&&(g==null?void 0:g[$==null?void 0:$.prop])===""&&(g[$==null?void 0:$.prop]="{}")}),g[n]=o,g}),c=[{tableName:(U=l==null?void 0:l.relatedContents)==null?void 0:U.find(k=>k==null?void 0:k.includes("content")),tableContents:s}];await L.pageBatchAddApi({platId:parseInt((j=fl==null?void 0:fl.value)==null?void 0:j.plat_id),changeContents:c}),r=r==null?void 0:r.filter(k=>{var g,z,$;return($=k==null?void 0:k.object_name)==null?void 0:$.includes((z=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:z[n])});let m=[],f=new Map;r==null||r.forEach(k=>{m.push(`content_${k==null?void 0:k.object_id}`),m.push(`struct_${k==null?void 0:k.object_id}`),f.set(k==null?void 0:k.object_id,k)});let h=await L.getAllTables({platId:parseInt((C=fl==null?void 0:fl.value)==null?void 0:C.plat_id),tableNames:m??[]});h=(_=h==null?void 0:h.data)==null?void 0:_.result;let y=[],u=[];h=aa.chunk(h,2),h==null||h.forEach(k=>{var $,G,de,Me,pe,Z,fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma,ne;let g=f.get((Me=(de=(G=($=k==null?void 0:k[1])==null?void 0:$[0])==null?void 0:G.source_table)==null?void 0:de.split("_"))==null?void 0:Me[1]),z=(fe=(Z=(pe=g==null?void 0:g.object_name)==null?void 0:pe.split("/"))==null?void 0:Z.filter((Ae,Ie)=>{var qe,Ve;return((Ve=(qe=g==null?void 0:g.object_name)==null?void 0:qe.split("/"))==null?void 0:Ve.length)-1!==Ie}))==null?void 0:fe.join("/");if(z=z+"/"+o,u!=null&&u.find(Ae=>(Ae==null?void 0:Ae.path)===z)||u.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:z}),((ue=(le=k==null?void 0:k[1])==null?void 0:le[0])==null?void 0:ue.类型)==="Table"){let Ae=((be=(Fe=(Ne=k==null?void 0:k[1])==null?void 0:Ne[0])==null?void 0:Fe.结构)==null?void 0:be.contents)??[],Ie=il.safeClone(Ae);Array.isArray(Ie==null?void 0:Ie[0])&&(Ie=oa.getColumnChild(Ie==null?void 0:Ie[0]));let qe=[];if(((A=k==null?void 0:k[0])==null?void 0:A.length)>0&&(qe=(q=k==null?void 0:k[0])==null?void 0:q.map(Ve=>Ie==null?void 0:Ie.map($e=>($e=(Ve==null?void 0:Ve[$e==null?void 0:$e.prop])??"",$e)))),y!=null&&y.find(Ve=>(Ve==null?void 0:Ve.key)===z)){let Ve=(re=y==null?void 0:y.find($e=>($e==null?void 0:$e.key)===z))==null?void 0:re.contents;Ve.push({isShow:g==null?void 0:g.is_show,filter:((Ye=(xe=(Te=k==null?void 0:k[1])==null?void 0:Te[0])==null?void 0:xe.引用)==null?void 0:Ye.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:Ae,tableContents:qe});let se=y==null?void 0:y.findIndex($e=>($e==null?void 0:$e.key)===z);y[se].contents=Ve}else y.push({key:z,contents:[{isShow:g==null?void 0:g.is_show,filter:((ne=(Ma=(da=k==null?void 0:k[1])==null?void 0:da[0])==null?void 0:Ma.引用)==null?void 0:ne.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:Ae,tableContents:qe}]})}});let x=[];x.push({key:"menuPath",contents:u}),x=[...x,...y],await L.createPlatFormDataApi({platId:parseInt((S=fl==null?void 0:fl.value)==null?void 0:S.plat_id),changeData:x}),Tt.value=!1,Er.setRefreshTable(!0)},Mi=async(l,r)=>{},Ii=async l=>{nr.value=await oa.getDeepDiffItems(l),Er.setItemData(nr.value),Er.setOriginalData(nr.value)};a.ref();const N0=a.ref(null),B0=()=>{var l,r;console.log("倒计时结束时"),dn.ElMessageBox.alert(`超时未提交,【${(r=(l=ml.value)==null?void 0:l.split("/"))==null?void 0:r[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},Sc=a.ref([]),T0=a.computed(()=>{var l,r;return(r=(l=xt.value)==null?void 0:l[ml.value])==null?void 0:r.filter(n=>{var o;return((o=n==null?void 0:n.key)==null?void 0:o.type)==="gridLayout"})});a.watch(()=>[m0.value],()=>{pn.setSelectTitle([]),pn.setChooseTitle([])},{deep:!0});a.watch(()=>Ai.value,async(l,r)=>{var o,s,c,m,f,h;if(JSON.stringify(l)===JSON.stringify(r))return;let n=(o=Ai.value)==null?void 0:o.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Qr.value);if((n==null?void 0:n.length)>0){Ar.setContentLoading(!0);let y=((s=n==null?void 0:n[0])==null?void 0:s.relatedContent)??(ml==null?void 0:ml.value),u=y+"/"+((c=n==null?void 0:n[0])==null?void 0:c.value),x=!!((m=n==null?void 0:n[0])!=null&&m.parentContent),D=await Kr(u,x,{originPath:y});D=(f=D==null?void 0:D.filter(W=>W))==null?void 0:f.map(W=>(W.isShow=!0,W)),console.log(D,"loadingContents");let R=await oa.getDeepDiffItems(D),E=R==null?void 0:R.filter(W=>W==null?void 0:W.choice);Ri.setSelectTab((h=E==null?void 0:E[0])==null?void 0:h.choiceName),R=R==null?void 0:R.filter(W=>{var I;return!(W!=null&&W.choiceName)||(W==null?void 0:W.choiceName)===((I=E==null?void 0:E[0])==null?void 0:I.choiceName)}),nr.value=R,Ar.setContentLoading(!1)}});const A0=(l,r)=>{setTimeout(async()=>{var f,h,y;let n=(f=Ai.value)==null?void 0:f.filter(u=>(u==null?void 0:u.condition)==="child"&&(u==null?void 0:u.value)!==""&&(u==null?void 0:u.parentContent)!==Qr.value),o=ml==null?void 0:ml.value,s=ml==null?void 0:ml.value;(n==null?void 0:n.length)>0&&(s=((h=n==null?void 0:n[0])==null?void 0:h.relatedContent)??(ml==null?void 0:ml.value),o=s+"/"+((y=n==null?void 0:n[0])==null?void 0:y.value));let c=await Kr(o,!1,{originPath:s});c=c==null?void 0:c.map(u=>(u.isShow=!0,u));let m=await oa.getDeepDiffItems(c);nr.value=m==null?void 0:m.filter(u=>!(u!=null&&u.step)||(u==null?void 0:u.step)===(l==null?void 0:l.title))},10)},z0=l=>{setTimeout(async()=>{var m,f,h;let r=(m=Ai.value)==null?void 0:m.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Qr.value),n=ml==null?void 0:ml.value,o=ml==null?void 0:ml.value;(r==null?void 0:r.length)>0&&(o=((f=r==null?void 0:r[0])==null?void 0:f.relatedContent)??(ml==null?void 0:ml.value),n=o+"/"+((h=r==null?void 0:r[0])==null?void 0:h.value));let s=await Kr(n,!1,{originPath:o});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),Ri.setSelectTab(l);let c=await oa.getDeepDiffItems(s);nr.value=c==null?void 0:c.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>v0.value,l=>{l!=null&&l.length||(nr.value=[])},{immediate:!0});a.watch(()=>[ml.value],async l=>{var c,m,f,h;if(!ml.value)return;if(ml.value==="/"){nr.value=[];return}Ar.setCurrentMenuPath(ml.value),Er.setLockingPage(""),nr.value=[];let r=a.getCurrentInstance();(c=r==null?void 0:r.scope)==null||c.stop(),r=null,To.value=!1,Ar.setContentLoading(!0),gc.value=!0;let n=l==null?void 0:l[0],o=n,s=(m=Jn.value)==null?void 0:m.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==ml.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(n=n+"/"+((f=s==null?void 0:s[0])==null?void 0:f.value)),n==="系统管理/日志管理")nr.value=await u0("log");else{let y=await Kr(n,!0,{originPath:o});y=y==null?void 0:y.map(D=>(D.isShow=!0,D));let u=await oa.getDeepDiffItems(y),x=u==null?void 0:u.filter(D=>D==null?void 0:D.choice);Ri.setSelectTab((h=x==null?void 0:x[0])==null?void 0:h.choiceName),nr.value=u==null?void 0:u.filter(D=>{var R;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((R=x==null?void 0:x[0])==null?void 0:R.choiceName)})}Ar.setContentLoading(!1),Er.setExtraContents([]),pn.setSelectIndex(""),pn.setSelectMenu(""),Er.setItemData(nr.value),Er.setOriginalData(nr.value),Er.setRefreshTable(!1),a.nextTick(()=>{Zn.value=Zn.value++,To.value=!0})},{immediate:!0});a.watch(()=>[bs.value],async()=>{var l,r,n,o;if(bs.value){nr.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,To.value=!1,Ar.setContentLoading(!0),gc.value=!0;let c=Qr==null?void 0:Qr.value,m=c,f=(r=Jn.value)==null?void 0:r.filter(x=>(x==null?void 0:x.condition)==="child"&&(x==null?void 0:x.value)!==""&&(x==null?void 0:x.parentContent)!==(Qr==null?void 0:Qr.value));(f==null?void 0:f.length)>0&&(c=c+"/"+((n=f==null?void 0:f[0])==null?void 0:n.value));let h=await Kr(c,!0,{originPath:m});h=h==null?void 0:h.map(x=>(x.isShow=!0,x));let y=await oa.getDeepDiffItems(h),u=y==null?void 0:y.filter(x=>x==null?void 0:x.choice);if(Ri.setSelectTab((o=u==null?void 0:u[0])==null?void 0:o.choiceName),nr.value=y==null?void 0:y.filter(x=>{var D;return!(x!=null&&x.choiceName)||(x==null?void 0:x.choiceName)===((D=u==null?void 0:u[0])==null?void 0:D.choiceName)}),Ar.setContentLoading(!1),Er.setExtraContents([]),pn.setSelectIndex(""),pn.setSelectMenu(""),Er.setItemData(nr.value),Er.setOriginalData(nr.value),Er.setRefreshTable(!1),(f==null?void 0:f.length)>0){let x=[...Jn.value,...f];pn.setSelectTitle(x)}a.nextTick(()=>{Zn.value=Zn.value++,To.value=!0})}},{immediate:!0,deep:!0});const M0=async()=>{Ar.setLinkMenuInfo(null),Ar.setActiveMenuPath(h0.value),nr.value=null,Er.setRouteToChildPath(""),Ar.setChildMenu("")},I0=l=>new RegExp("button","i").test(l),O0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),Ec=l=>{if(O0(l)){const r=l==null?void 0:l.split("^");(r==null?void 0:r.length)>0&&(r!=null&&r[0])&&Ar.setLinkMenuInfo({path:r==null?void 0:r[0],data:r==null?void 0:r[1]})}},Cc=async(l,r,n)=>{var D,R,E,W,I,U,j,C,_,S,k,g;let o="",s="";for(let z in r)(r==null?void 0:r[z])===l&&(s=z);n==null||n.forEach(z=>{(z==null?void 0:z.prop)===s&&(o=z==null?void 0:z.fatherPath)});let c=o===""?ml.value:o;o!==""&&Ar.setCurrentMenuPath(c),Ar.setCurrentMenuPath(c+"/"+l),Ar.setContentLoading(!0),await Kr(c+"/"+l,!0,{originPath:c+"/",row:r});let m=await Kr(c,!1),f=(D=m==null?void 0:m.filter(z=>(z==null?void 0:z.comp)==="Table"))==null?void 0:D[0],h=((I=(W=(E=(R=f==null?void 0:f.compData)==null?void 0:R.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:E.contents)==null?void 0:W[0])==null?void 0:I.prop)??((S=(_=(C=(j=(U=f==null?void 0:f.compData)==null?void 0:U.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:j.contents)==null?void 0:C[0])==null?void 0:_[0])==null?void 0:S.prop),y=(g=(k=f==null?void 0:f.compData)==null?void 0:k.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:g.contents;y=y==null?void 0:y.map(z=>({label:z==null?void 0:z[h],value:z==null?void 0:z[h]}));let u=Jn.value,x={value:l,condition:"child",options:y,relatedContent:c,isShow:!0};u.push(x),pn.setSelectTitle(u),pn.setChooseTitle([x]),Ar.setContentLoading(!1),Er.setExtraContents([]),pn.setSelectIndex(""),pn.setSelectMenu(""),Er.setItemData(nr.value),Er.setOriginalData(nr.value)},L0=l=>{wc.value=l},Co=a.reactive({index:0,comp:null}),$0=a.computed(()=>{var l;return(l=nr.value)==null?void 0:l.map((r,n)=>({id:r.id,name:r.name,status:R0(r,n)}))}),Dc=(l,r)=>{var h,y,u,x,D;const n=r?l:l-2,o=(h=nr.value)==null?void 0:h[n],s=(u=(y=o==null?void 0:o.compData)==null?void 0:y.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:u.contents,c=s==null?void 0:s.findIndex(R=>(R==null?void 0:R.isMainKey)&&(R==null?void 0:R.label)!=="操作"),m=c===-1?0:c,f=(D=(x=o==null?void 0:o.compData)==null?void 0:x.find(R=>(R==null?void 0:R.key)==="tableContents"))==null?void 0:D.contents;return{valid:f==null?void 0:f.every(R=>R==null?void 0:R[m+1]),length:(f==null?void 0:f.length)||0}},R0=(l,r)=>{var o;let n="process";if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){const{valid:s,length:c}=Dc(r,!0);Co.index===r?n="process":c===0?n="wait":n=s?"success":"error"}return n},Nc=l=>{var n,o,s,c,m;const r=l+1;if(r>1&&((s=(o=(n=nr.value)==null?void 0:n[l])==null?void 0:o.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:f}=Dc(r);f?(Co.index=r,Co.comp=(c=nr.value)==null?void 0:c[l]):Ga.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Co.index=r,Co.comp=(m=nr.value)==null?void 0:m[l]},Bc=a.computed(()=>{var l,r;return(r=(l=xc.value)==null?void 0:l[0])==null?void 0:r.isStepLayout});a.watch(()=>Bc.value,l=>{l&&Nc(0)},{immediate:!0});const V0={class:"table-content"},F0={class:"menu-config-wrap"},P0=["onClick"],j0={key:0,class:"viewport-wrap"},H0=["onClick"],U0={title:"选择显示列信息"},q0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},W0=["title"],K0={class:"col-operate-wrap"},G0={key:0,class:"col-operate-radio-wrapper"},Y0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},J0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},X0={class:"pop-view"},Z0={class:"pop-wrapper"},Q0={class:"file-list-pop"},e3=["title","onClick"],a3=["onClick"],l3=["onClick"],r3={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},n3={class:"form-content"},o3={key:0,class:"dialog-footer"},i3={class:"dialog-footer"},t3={class:"ocr-dialog-content"},s3={class:"ocr-steps"},c3={key:0,class:"ocr-action-buttons"},u3={key:1,class:"ocr-preview-area"},d3={class:"ocr-file-grid"},p3={class:"file-thumbnail"},f3=["src"],h3={key:1,class:"thumbnail-placeholder"},v3={class:"progress-svg",viewBox:"0 0 36 36"},m3=["stroke","stroke-width","stroke-dasharray"],y3={key:0,class:"progress-icon"},g3={key:1,class:"progress-icon"},b3=["onClick"],k3={class:"file-name"},x3={key:0,class:"ocr-recognize-button"},w3={key:2,class:"ocr-progress-section"},_3={key:3,class:"ocr-confirm-area"},S3={class:"ocr-preview-tip"},E3={class:"ocr-preview-table"},C3={style:{display:"flex","align-items":"center",gap:"8px"}},D3={key:0},N3={key:4,class:"ocr-success-area"},B3={key:0,class:"ocr-dialog-footer"},T3={class:"form-content"},A3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},z3={style:{display:"flex"}},xs="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(l,{emit:r}){var jt;const n=a.ref([]),o=Bt(L.pinia),s=a.ref(null),c=a.ref(new Set),m=a.ref(new Map),f=a.ref(new Map),h=new Map,y=a.ref(new Map),u=l,x=a.ref((u==null?void 0:u.allowSelect)??!0),D=a.ref(((jt=u==null?void 0:u.config)==null?void 0:jt.showIndex)??!0),R=a.ref(),E=a.ref(!0),W=a.ref(!1),I=a.ref([]),U={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},j=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),C=oa.useOriginalState(L.pinia);let _="$R";const{originalPath:S}=L.storeToRefs(C),k=S.value,g=a.computed(()=>{var v;const d=(v=oa.getAllLeafNodes(pe.value)||[])==null?void 0:v.filter(B=>(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate");return d.length>0?d.every(B=>!!(B!=null&&B.sortable)):!1});a.computed(()=>{var v;return(v=pe.value)==null?void 0:v.every(B=>B==null?void 0:B.filterable)}),a.computed(()=>{var v;return(v=pe.value)==null?void 0:v.every(B=>B==null?void 0:B.operable)});const z=a.ref(!0),$=a.ref([]),G=a.reactive({column:{},status:!1,text:"合计"}),de=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Me=r,pe=a.ref([]),Z=a.ref([]),fe=a.ref([]),le=a.reactive({prop:"",order:null}),ue=a.ref([]),Ne=a.ref(!1),Fe=a.ref(!1),be=a.ref(null),{isUseBackdrop:A,initTrackFileType:q,getFileExtension:re,setData:Te,getFileInfo:xe,getFilesInfo:Ye}=Ci.useThreeSystem(),da=a.ref([]),Ma=a.ref(!1),ne=a.ref(),Ae=L.useMenuState(),{importLoading:Ie,activeMenuPath:qe,contentLoading:Ve,linkMenuInfo:se}=L.storeToRefs(Ae),$e=oa.useTableComp(L.pinia),Ue=L.useModelComp(L.pinia),Na=Qn(L.pinia),{extraContents:La,cacheUpdatingData:V,tableViewContents:P,tableLoading:ae,pageMapState:he,lockingPage:me}=L.storeToRefs(Ue),{selectTab:fa}=L.storeToRefs(Na),{compType:Xe,hasEditable:ce}=Xs.useRole(),Ee=a.ref([]),ma=a.ref([]),We=a.ref(new Map);a.ref(!1);const Oa=a.ref("");a.ref();const za=a.ref(!0),H=a.ref(0),ye=a.ref(!0),oe=a.ref(""),we=a.ref(!1),Q=a.ref(null);a.ref([]);const Qe=a.ref({label:"查看三维模型"}),ze=a.ref(!1),ka=a.ref(),ca=a.ref([]),Aa=a.ref([]),Ia=a.ref(!1),ba=a.ref([]),ua=a.ref([]),va=a.ref([]),Ha=a.ref([]),pl=a.ref([]),$l=()=>{try{const d=localStorage.getItem(xs),v=d?JSON.parse(d):[];pl.value=Array.isArray(v)?v:[]}catch{pl.value=[]}},gl=()=>{try{localStorage.setItem(xs,JSON.stringify(pl.value||[]))}catch{}},Ol=d=>{var ie,te,K;if(!d)return;const v=d.url||((ie=d==null?void 0:d.uploadResult)==null?void 0:ie.url)||"",B=d.name||((te=d==null?void 0:d.uploadResult)==null?void 0:te.name)||((K=d==null?void 0:d.uploadResult)==null?void 0:K.fileName)||"";if(!v&&!B)return;const M={name:B,url:v,ts:Date.now()},F=String(M.name||"").trim().toLowerCase(),N=(pl.value||[]).findIndex(Ce=>String((Ce==null?void 0:Ce.name)||"").trim().toLowerCase()===F);N>-1&&pl.value.splice(N,1),pl.value.unshift(M),pl.value.length>20&&(pl.value=pl.value.slice(0,20)),gl()};$l();const Ra=(d,v)=>`${M3}:${String(d??"")}:${String(v??"")}`,jl=(d,v)=>{try{const B=sessionStorage.getItem(Ra(d,v)),M=B?JSON.parse(B):[];return Array.isArray(M)?M:[]}catch{return[]}},Zl=(d,v,B)=>{try{sessionStorage.setItem(Ra(d,v),JSON.stringify(Array.isArray(B)?B:[]))}catch{}},ja=(d,v,B)=>{if(!v)return;const M=jl(d,v),F=[B,...M||[]].filter(Boolean).slice(0,1);return Zl(d,v,F),F},ga=(d,v,B)=>{if(!v||!B)return;const M=Ra(d,v),F=Ra(d,B);try{const N=sessionStorage.getItem(M);if(!N)return;const ie=(()=>{try{const Ce=JSON.parse(N);return Array.isArray(Ce)?Ce:[]}catch{return[]}})(),te=jl(d,B),K=[...ie,...te||[]].filter(Boolean).sort((Ce,Be)=>Number((Be==null?void 0:Be.ts)||0)-Number((Ce==null?void 0:Ce.ts)||0)).slice(0,1);sessionStorage.setItem(F,JSON.stringify(K)),sessionStorage.removeItem(M)}catch{}},Ca=a.ref(!1),Ua=a.ref(!1),al=a.ref([]),Za=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const Oe=a.ref(!1),ra=a.ref([]),_e=a.ref(1),Ba=a.ref(new Map),Ge=a.ref(new Map),X=a.ref(0),la=a.ref(!1),Ze=a.ref([]),Le=a.ref([]),xl=d=>{var v;try{const B=(v=oa.getAllLeafNodes(pe.value)||[])==null?void 0:v.filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate");return(B==null?void 0:B.find(M=>(M==null?void 0:M.prop)===d||(M==null?void 0:M.label)===d))||null}catch{return null}},ll=d=>{const v=xl(d),B=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"Input";return il.getComponent(B)||il.getComponent("Input")},hl=a.ref([]),Va=a.ref(null),Wa=a.ref([]),_a=a.ref(null),ge=a.ref(""),xa=a.ref(!1),wl=a.ref([]),Rl=a.ref(""),Fl=a.ref(!1),or=a.ref([]),gr=a.ref([]),Cl=a.ref([]),sr=a.ref(null),Tr=a.ref([]),Ml=a.ref("");a.computed(()=>{var d;try{const v=(d=oa.getAllLeafNodes(pe.value)||[])==null?void 0:d.filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate"),B=new Map;return v==null||v.forEach(M=>{M!=null&&M.label&&(M!=null&&M.prop)&&B.set(M.label,M.prop)}),B.get("编号")||""}catch{return""}});const rr=a.computed(()=>{var d;try{const v=(d=oa.getAllLeafNodes(pe.value)||[])==null?void 0:d.filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate"),B=new Map;return v==null||v.forEach(M=>{M!=null&&M.label&&(M!=null&&M.prop)&&B.set(M.label,M.prop)}),B.get("名称")||""}catch{return""}}),en=a.computed(()=>{var d;try{const v=(d=oa.getAllLeafNodes(pe.value)||[])==null?void 0:d.filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate"),B=new Map;return v==null||v.forEach(M=>{M!=null&&M.label&&(M!=null&&M.prop)&&B.set(M.label,M.prop)}),B.get("制造厂")||""}catch{return""}}),Or=()=>{Fl.value=!1,or.value=[],gr.value=[],Cl.value=[],sr.value=null,Tr.value=[],Ml.value=""},zr=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Cr=(d,v)=>{const B=(d==null?void 0:d.ocrRow)||{};for(const F of Object.keys(B))F==="id"||F==="_isOCRRow"||F==="_ocrTableId"||zr(B[F])&&(v[F]=B[F]);const M=ma.value.find(F=>F.id===v.id);if(M)for(const F of Object.keys(B))F==="id"||F==="_isOCRRow"||F==="_ocrTableId"||zr(B[F])&&(M[F]=B[F]);We.value&&We.value.set(v.id,v),ja(u==null?void 0:u.index,v.id,d==null?void 0:d.versionItem),gr.value=[...gr.value||[],JSON.parse(JSON.stringify(v))]},Mr=async(d,v=null)=>{var B,M,F,N,ie,te,K;try{const Ce=(B=oa.getAllLeafNodes(pe.value)||[])==null?void 0:B.filter(ha=>(ha==null?void 0:ha.type)!=="operate"&&(ha==null?void 0:ha.label)!=="操作"&&(ha==null?void 0:ha.prop)!=="operate"),Be=new Map;Ce==null||Ce.forEach(ha=>{ha!=null&&ha.label&&(ha!=null&&ha.prop)&&Be.set(ha.label,ha.prop)});const He=Be.get("系统编号")||Be.get("编号");if(!He){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const je=v||sr.value;if((Array.isArray(je==null?void 0:je.result)?je.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let ha=0;ha<d.length;ha++){const $a=d[ha],qa=$a[He];if(!qa){console.warn(`第 ${ha+1} 条匹配行缺少系统编号,跳过`);continue}const ta=`设备管理/试验设备/${qa}`,Qa=await L.getPageDataApi({platId:parseInt((M=Ll.value)==null?void 0:M.plat_id),pageName:ta});if(!((F=Qa==null?void 0:Qa.data)!=null&&F.result)||!Array.isArray(Qa.data.result)){console.warn(`未找到详情页数据: ${ta}`);continue}const ya=Qa.data.result.find(na=>(na==null?void 0:na.property_name)==="校检记录");if(!ya){console.warn(`详情页 ${ta} 中未找到校检记录表`);continue}const Pa=(N=ya.contents)==null?void 0:N.find(na=>(na==null?void 0:na.key)&&na.key.startsWith("content_"));if(!Pa||!Pa.key){console.warn("校检记录表中未找到 content item");continue}const ve=Pa.key,Sa=Array.isArray(Pa.value)?Pa.value:[];if(Sa.length>=5){const Se=[...Sa].sort((ia,Da)=>{const tl=Number((ia==null?void 0:ia.create_time)||0),Ya=Number((Da==null?void 0:Da.create_time)||0);return tl-Ya})[0];Se!=null&&Se.id&&await L.pageBatchDeleteApi({platId:parseInt((ie=Ll.value)==null?void 0:ie.plat_id),changeContents:[{tableName:ve,tableContents:[{id:Se.id}]}]})}const sa=(te=Ce==null?void 0:Ce.find(na=>(na==null?void 0:na.label)==="证书附件"))==null?void 0:te.prop,wa=String(Date.now()),Ea={id:wa},T=Sa[0]||{},J=new Date().toISOString().split("T")[0];if(Object.keys(T||{}).forEach(na=>{if(na!=="id"){if(na==="证书附件"){Ea[na]="";return}if(na==="校检日期"||na==="检校日期"){Ea[na]=$a[na]||$a.校检日期||$a.检校日期||J;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(na)){Ea[na]=$a[na]??"";return}Ea[na]=$a[na]??""}}),sa&&$a[sa]){const na=$a[sa];if(Array.isArray(na)&&na.length>0)Ea.证书附件=JSON.stringify(na.map(Se=>({url:(Se==null?void 0:Se.url)||"",name:(Se==null?void 0:Se.name)||(Se==null?void 0:Se.fileName)||"",fileName:(Se==null?void 0:Se.fileName)||(Se==null?void 0:Se.name)||""})).filter(Se=>Se.url||Se.name));else if(typeof na=="string")try{const Se=JSON.parse(na);Ea.证书附件=na}catch{Ea.证书附件=JSON.stringify([{url:na,name:na,fileName:na}])}}console.log(ve,"tableName","inspectionRecordRow",Ea),await L.pageBatchAddApi({platId:parseInt((K=Ll.value)==null?void 0:K.plat_id),changeContents:[{tableName:ve,tableContents:[Ea]}]});const Re=ya==null?void 0:ya.object_id;if(Re&&wa){const na=sa&&$a[sa]?$a[sa]:null;let Se=[],ia="",Da=!1;if(Array.isArray(na)&&na.length>0){Se=na.map(dl=>({name:(dl==null?void 0:dl.name)||(dl==null?void 0:dl.fileName)||"",url:(dl==null?void 0:dl.url)||""})).filter(dl=>dl.url||dl.name);const Ya=na[0];ia=(Ya==null?void 0:Ya.url)||"";const ul=(Ya==null?void 0:Ya.name)||(Ya==null?void 0:Ya.fileName)||"";Da=String(ul).toLowerCase().endsWith(".pdf")||String(ia).toLowerCase().endsWith(".pdf")}else if(typeof na=="string")try{const Ya=JSON.parse(na);Array.isArray(Ya)?(Se=Ya.map(ul=>({name:(ul==null?void 0:ul.name)||(ul==null?void 0:ul.fileName)||"",url:(ul==null?void 0:ul.url)||""})).filter(ul=>ul.url||ul.name),Se.length>0&&(ia=Se[0].url||"",Da=String(Se[0].name).toLowerCase().endsWith(".pdf")||String(ia).toLowerCase().endsWith(".pdf"))):(ia=na,Da=String(na).toLowerCase().endsWith(".pdf"))}catch{ia=na,Da=String(na).toLowerCase().endsWith(".pdf")}const tl={ts:Date.now(),versionId:String(Date.now())+"_"+String(ha),label:new Date().toLocaleString(),certType:$a.证书类型||"",certNo:$a.证书编号||"",fileType:Da?"pdf":"image",sourceUrl:Da?ia:"",images:Se};ja(Re,wa,tl)}}}catch(Ce){console.error("向校检记录表插入OCR识别结果失败:",Ce),Ga.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Ir=d=>{const v=Array.isArray(d)?d:or.value||[];if(v.length===0){Or();return}if(v.find(N=>(N==null?void 0:N.__decision)==="replace"&&!(N!=null&&N.selectedTargetId))){Ga.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}v.forEach(N=>{var te;const ie=N==null?void 0:N.__decision;if(!(!ie||ie==="skip")){if(ie==="add"){ja(u==null?void 0:u.index,(te=N==null?void 0:N.ocrRow)==null?void 0:te.id,N==null?void 0:N.versionItem),Cl.value=[...Cl.value||[],N.ocrRow];return}if(ie==="replace"){const K=N==null?void 0:N.selectedTargetId,Ce=(Ee.value||[]).find(Be=>String(Be==null?void 0:Be.id)===String(K));if(!Ce)return;Cr(N,Ce)}}}),(gr.value||[]).length>0&&(Ee.value=[...Ee.value||[]]),(Cl.value||[]).length>0&&(Ee.value=[...Ee.value||[],...Cl.value||[]],ma.value=[...ma.value||[],...Cl.value||[]],(Cl.value||[]).forEach(N=>{var ie,te;return(te=(ie=We.value)==null?void 0:ie.set)==null?void 0:te.call(ie,N.id,N)})),Yr.value=Ee.value;const M=gr.value||[],F=Cl.value||[];if(M.length>0&&(Me("change",{buttonName:"编辑",singleContent:M,content:Ee.value,relatedContents:u==null?void 0:u.related,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,columns:pe.value,name:u==null?void 0:u.compName}),Mr(M)),F.length>0){const N=sr.value;Me("change",{buttonName:"OCR批量新增",content:Ee.value,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,column:pe.value,ocrRows:F,relatedContents:u==null?void 0:u.related,uploadedFiles:(Array.isArray(N==null?void 0:N.result)?N.result:[]).map(ie=>(Array.isArray(ie==null?void 0:ie.图片信息)?ie.图片信息:[]).map(te=>({url:(te==null?void 0:te.url)||"",name:(te==null?void 0:te.name)||"",fileName:(te==null?void 0:te.name)||""})).filter(te=>te.url)),ocrResult:N,matchedCount:(M||[]).length,newCount:(F||[]).length})}Ga.ElMessage.success("已提交候选处理结果"),Or()},Nr=mc(),Fr=a.computed(()=>Nr.getConfig()),Lr=a.ref(),cr=a.ref(),xn=dc(L.pinia),Yr=a.ref(),nn=a.ref(0),zn=L.useUnit(L.pinia),{selectIndex:wn,selectMenu:gn,selectTitle:mr}=L.storeToRefs(zn),{selectString:Hl}=L.storeToRefs(xn),pr=L.useLoginState(L.pinia),{loginUserInfo:Ll}=L.storeToRefs(pr),Wl=a.ref(720),Al=a.ref(!1),yr=a.ref(!1),ir=a.ref([]),Pl=a.ref(),Vr=a.ref(!0),Pr=a.ref(!0);a.ref([]);const _n=a.inject("contentRef");a.provide("contentRef",_n),a.provide("getSuggestListForCell",Su),a.provide("getSuggestLoadingForCell",(d,v)=>{const B=`${d==null?void 0:d.id}:${(v==null?void 0:v.prop)||(v==null?void 0:v.property)}`;return y.value.get(B)||!1}),a.watch(()=>{var d;return(d=Ee.value)==null?void 0:d.length},d=>{de.total=d}),a.watch(()=>P.value,async()=>{var v,B,M,F,N,ie,te,K,Ce,Be,He,je,Je,ha,$a,qa,ta;if(((v=P.value)==null?void 0:v.length)===0||!((B=u==null?void 0:u.itemData)!=null&&B.find(Qa=>(Qa==null?void 0:Qa.key)==="columnPath"))||!((M=u==null?void 0:u.itemData)!=null&&M.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn")))return;let d=(Ce=(K=(te=(ie=(N=(F=u==null?void 0:u.itemData)==null?void 0:F.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn"))==null?void 0:N.contents)==null?void 0:ie.split("["))==null?void 0:te[1])==null?void 0:K.split("]"))==null?void 0:Ce[0];((Je=(je=(He=(Be=u==null?void 0:u.itemData)==null?void 0:Be.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn"))==null?void 0:He.contents)==null?void 0:je.split("["))==null?void 0:Je[0])+(($a=(ha=P.value)==null?void 0:ha.find(Qa=>(Qa==null?void 0:Qa.key)===d))==null?void 0:$a.value),(ta=(qa=u==null?void 0:u.itemData)==null?void 0:qa.find(Qa=>(Qa==null?void 0:Qa.key)==="pageGroup"))==null||ta.contents,Pt(compData,u.allMapContents)},{deep:!0});const on=d=>{var B,M,F,N,ie;const v=(M=(B=pe.value)==null?void 0:B.filter(te=>te==null?void 0:te.mainKey))==null?void 0:M.map(te=>te==null?void 0:te.prop);if(v.length===0){const te=(F=pe.value)==null?void 0:F.map(K=>K==null?void 0:K.prop);return(N=te==null?void 0:te.map(K=>d==null?void 0:d[K]))==null?void 0:N.join("|")}return(ie=v==null?void 0:v.map(te=>d==null?void 0:d[te]))==null?void 0:ie.join("|")},eo=d=>{var te,K,Ce,Be,He;const v=(K=(te=pe.value)==null?void 0:te.filter(je=>je==null?void 0:je.required))==null?void 0:K.map(je=>je==null?void 0:je.prop),B=[];if(d==null||d.forEach(je=>{v==null||v.forEach(Je=>{const ha=je[Je];(ha==null||ha==="")&&(B.includes(Je)||B.push(Je))})}),B.length>0)return Ga.ElMessage.warning(`请填写必填项:${B.join("、")}`);const M=new Map,F=new Map;(Ce=Ee.value)==null||Ce.forEach(je=>{const Je=on(je);M.set(Je,je)}),d==null||d.forEach(je=>{const Je=on(je);F.set(Je,je)});const N=d==null?void 0:d.filter(je=>M.has(on(je))),ie=(Be=Ee.value)==null?void 0:Be.filter(je=>F.has(on(je)));return(N==null?void 0:N.length)>0&&(i.columns=(He=pe.value)==null?void 0:He.filter(je=>(je==null?void 0:je.label)!=="操作"),i.existRows=ie,i.tableData=N,i.show=!0),d==null?void 0:d.filter(je=>{const Je=on(je);return!M.has(Je)})},Mn=a.ref(""),ao=a.ref(null),Sn=async()=>{var d,v,B,M,F,N;try{const ie=await L.quoteApi({related:[{menus:qe.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=Ll.value)==null?void 0:d.plat_id)});if(((v=ie==null?void 0:ie.data)==null?void 0:v.code)===200){ao.value=(B=ie==null?void 0:ie.data)==null?void 0:B.result;const te=(M=pe.value)==null?void 0:M.map(Be=>(Be==null?void 0:Be.prop)||(Be==null?void 0:Be.label)),K=In(te,(F=ie==null?void 0:ie.data)==null?void 0:F.result),Ce=K==null?void 0:K.flatMap(Be=>Be==null?void 0:Be.quote);(Ce==null?void 0:Ce.length)>0&&(Mn.value=(N=Ce==null?void 0:Ce.map(Be=>Be==null?void 0:Be.menus))==null?void 0:N.join("、"))}}catch(ie){throw new Error(ie)}};function In(d,v){var B;return(B=v.filter(M=>M.struct&&Array.isArray(M.struct)?M.struct.some(F=>F.words&&Array.isArray(F.words)?F.words.some(N=>d.includes(N)):!1):!1))==null?void 0:B.map(M=>{const F={...M};return F.struct&&Array.isArray(F.struct)&&(F.struct=F.struct.filter(N=>N.words&&Array.isArray(N.words)?N.words.some(ie=>d.includes(ie)):!1)),F})}const Hn=async(d,v)=>{var B,M,F,N,ie,te,K,Ce,Be,He;try{ao.value||await Sn();const je=v==null?void 0:v.map(Pa=>{const ve=Object.keys(Pa),Sa={};return ve.forEach((sa,wa)=>{Sa[d[wa]]=Pa[sa]}),Sa}),Je=eo(je);if(!Je||(Je==null?void 0:Je.length)===0)return;const ha=[];let $a=(Ee.value||[]).slice();(Je||[]).forEach(Pa=>{const ve={...Pa};try{ve.sort=Ln(0,$a)}catch{}ha.push(ve),$a.unshift(ve)});let qa=await L.quoteApi({platId:parseInt((B=Ll==null?void 0:Ll.value)==null?void 0:B.plat_id),type:"fatherSyncs",related:[{menus:qe.value,groups:""},{menus:qe.value,groups:u==null?void 0:u.compName}]});qa=(M=qa==null?void 0:qa.data)==null?void 0:M.result;let ta=qa==null?void 0:qa.map(Pa=>({tableName:"content_"+(Pa==null?void 0:Pa.id),tableContents:ha==null?void 0:ha.map((ve,Sa)=>({id:Sa,...ve}))})),Qa=[{tableName:(F=u==null?void 0:u.related)==null?void 0:F.find(Pa=>Pa==null?void 0:Pa.includes("content")),tableContents:ha==null?void 0:ha.map((Pa,ve)=>({id:ve,...Pa}))}];Qa=[...Qa,...ta];const ya=await L.pageBatchAddApi({platId:parseInt((N=Ll.value)==null?void 0:N.plat_id),changeContents:Qa});if(((ie=ya==null?void 0:ya.data)==null?void 0:ie.code)===200){const Pa={buttonName:"新增",columns:pe.value,fixContent:ha==null?void 0:ha.map((Sa,sa)=>({id:sa,...Sa})),relatedContents:u==null?void 0:u.related};await St(Pa),((te=i==null?void 0:i.existRows)==null?void 0:te.length)>0?Ga.ElMessage.success("部分数据导入成功"):Ga.ElMessage.success("数据导入成功");let ve=[];Qa==null||Qa.forEach(Sa=>{var sa;(sa=Sa==null?void 0:Sa.tableContents)==null||sa.forEach(wa=>{ve.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(wa),request_result:"{}",is_delete:!1,request_table:Sa==null?void 0:Sa.tableName,request_type:"export"})})}),await L.pageBatchAddApi({platId:parseInt((K=Ll==null?void 0:Ll.value)==null?void 0:K.plat_id),changeContents:[{tableName:"log",tableContents:ve}]})}else{let Pa=[];Qa==null||Qa.forEach(ve=>{var Sa;(Sa=ve==null?void 0:ve.tableContents)==null||Sa.forEach(sa=>{Pa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(sa),request_result:"{}",is_delete:!1,request_table:ve==null?void 0:ve.tableName,request_type:"error"})})}),await L.pageBatchAddApi({platId:parseInt((Ce=Ll==null?void 0:Ll.value)==null?void 0:Ce.plat_id),changeContents:[{tableName:"log",tableContents:Pa}]}),Ga.ElMessage.error("数据导入响应失败")}}catch(je){throw Ga.ElMessage.error("数据导入处理失败"),await L.pageBatchAddApi({platId:parseInt((Be=Ll==null?void 0:Ll.value)==null?void 0:Be.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(je),is_delete:!1,request_table:(He=u==null?void 0:u.related)==null?void 0:He.find(Je=>Je==null?void 0:Je.includes("content")),request_type:"error"}]}]}),new Error(je)}},an=async d=>{var N,ie,te,K,Ce,Be,He;let v=fe.value;v!=null&&v.find(je=>(d==null?void 0:d.key)===(je==null?void 0:je.key))&&(v=v==null?void 0:v.filter(je=>(d==null?void 0:d.key)!==(je==null?void 0:je.key))),v.push({key:d==null?void 0:d.key,value:[(ie=d==null?void 0:d.value)==null?void 0:ie[((N=d==null?void 0:d.value)==null?void 0:N.length)-1]]});let B=Ha.value;B=B==null?void 0:B.map(je=>{var Je,ha;return(je==null?void 0:je.type)==="Select"&&(d==null?void 0:d.key)===(je==null?void 0:je.prop)&&Array.isArray(je.value)&&(Je=je.value)!=null&&Je.every($a=>typeof $a=="string")&&(je.selectValue=(ha=v==null?void 0:v.find($a=>($a==null?void 0:$a.key)===(je==null?void 0:je.prop)))==null?void 0:ha.value),je});let M=(K=(te=B==null?void 0:B.find(je=>(je==null?void 0:je.prop)===(d==null?void 0:d.key)))==null?void 0:te.optionUrl)==null?void 0:K.menuId,F=B==null?void 0:B.find(je=>(je==null?void 0:je.prop)===(d==null?void 0:d.key));if(M){let je=await kt(F==null?void 0:F.optionUrl,M),Je,ha=$.value,$a=(He=(Be=(Ce=Ha.value)==null?void 0:Ce.find(qa=>{var ta;return(ta=F==null?void 0:F.optionUrl)==null?void 0:ta.menuId}))==null?void 0:Be.selectValue)==null?void 0:He[0];if(je==null||je.forEach(qa=>{var ta,Qa,ya,Pa,ve,Sa,sa,wa,Ea,T;if(M){let J=(Qa=(ta=Ha.value)==null?void 0:ta.find(na=>{var Se,ia;return((Se=F==null?void 0:F.optionUrl)==null?void 0:Se.menuId)===((ia=na==null?void 0:na.optionUrl)==null?void 0:ia.menuId)}))==null?void 0:Qa.prop,Re=(Pa=(ya=B==null?void 0:B.find(na=>(na==null?void 0:na.prop)===J))==null?void 0:ya.selectValue)==null?void 0:Pa[0];J!=null&&J.includes("·")&&(J=(ve=J==null?void 0:J.split("·"))==null?void 0:ve[0],Re=(Ea=(wa=(sa=d==null?void 0:d.value)==null?void 0:sa[((Sa=d==null?void 0:d.value)==null?void 0:Sa.length)-1])==null?void 0:wa.split(" "))==null?void 0:Ea[0]),ha!=null&&ha.find(na=>(na==null?void 0:na.value)===$a)?Je=(T=ha==null?void 0:ha.find(na=>(na==null?void 0:na.value)===$a))==null?void 0:T.objectValue:qa[J]===Re&&(Je=qa)}}),Je){let qa=B;qa=qa==null?void 0:qa.map(ta=>{var Qa,ya,Pa,ve,Sa,sa;return M&&(Je!=null&&Je[ta==null?void 0:ta.prop])&&oe.value==="新增"&&(ta==null?void 0:ta.prop)!==(F==null?void 0:F.prop)?ta.value=(Je==null?void 0:Je[ta==null?void 0:ta.prop])||(Je==null?void 0:Je[(ve=(Pa=(ya=(Qa=ta==null?void 0:ta.optionUrl)==null?void 0:Qa.groupSelect)==null?void 0:ya[1])==null?void 0:Pa.replaceAll("[",""))==null?void 0:ve.replaceAll("]","")]):ta.value=(sa=(Sa=Ha.value)==null?void 0:Sa.find(wa=>(wa==null?void 0:wa.prop)===(ta==null?void 0:ta.prop)))==null?void 0:sa.value,ta}),Ha.value=qa}}fe.value=v},On=async(d,v)=>{var B,M,F,N,ie;if((B=d==null?void 0:d.toString())!=null&&B.includes(".txt")||(M=d==null?void 0:d.toString())!=null&&M.includes(".cpt")||(F=d==null?void 0:d.toString())!=null&&F.includes(".cyd")){const te=await Ga.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),K=new Blob([te.data],{type:"application/octet-stream;charset=UTF-8"});let Ce=URL.createObjectURL(K);ne.value=[{name:(ie=d==null?void 0:d.split("/"))==null?void 0:ie[((N=d==null?void 0:d.split("/"))==null?void 0:N.length)-1],blobUrl:Ce}],Ma.value=!0}else Array.isArray(v)&&(v==null?void 0:v.length)>0&&Me("routeUrl",{isEdit:!1,routerUrl:v})};a.onBeforeUnmount(()=>{Pr.value=!1;let d=nn.value;nn.value=d+1});const En=a.reactive({prop:"",order:null}),Gr=a.computed(()=>{const d=(Ee.value??[]).slice(),v=En.prop||le.prop,B=En.order||le.order;if(!v||!B)return d;const M=B==="ascending",F=ie=>{if(v)return ie&&Object.prototype.hasOwnProperty.call(ie,v)?ie[v]:v.includes(".")?v.split(".").reduce((te,K)=>te==null?te:te[K],ie):ie==null?void 0:ie[v]},N=ie=>{if(ie==null)return{ok:!1,value:NaN};if(typeof ie=="number")return{ok:Number.isFinite(ie),value:ie};const te=String(ie).trim();if(te==="")return{ok:!1,value:NaN};const K=te.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(K))return{ok:!1,value:NaN};const Ce=Number(K);return{ok:Number.isFinite(Ce),value:Ce}};return d.sort((ie,te)=>{const K=F(ie),Ce=F(te);if(K==null&&Ce==null)return 0;if(K==null)return M?-1:1;if(Ce==null)return M?1:-1;const Be=N(K),He=N(Ce);if(Be.ok&&He.ok)return M?Be.value-He.value:He.value-Be.value;const je=ve=>{if(ve==null)return{ok:!1,value:NaN};const Sa=String(ve).trim();if(Sa==="")return{ok:!1,value:NaN};const sa=Sa.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!sa)return{ok:!1,value:NaN};const wa=sa[1]?-1:1,Ea=Number(sa[2]),T=Number(sa[3]),J=Number(sa[4]);return[Ea,T,J].some(Re=>Number.isNaN(Re))?{ok:!1,value:NaN}:T>=60||J>=60?{ok:!1,value:NaN}:{ok:!0,value:wa*(Ea*3600+T*60+J)}},Je=je(K),ha=je(Ce);if(Je.ok&&ha.ok)return M?Je.value-ha.value:ha.value-Je.value;const $a=new Date(K).getTime(),qa=new Date(Ce).getTime(),ta=!Number.isNaN($a),Qa=!Number.isNaN(qa);if(ta&&Qa)return M?$a-qa:qa-$a;const ya=String(K),Pa=String(Ce);return M?ya.localeCompare(Pa):Pa.localeCompare(ya)})}),Un=a.computed(()=>{var B;const d=(de.currentPage-1)*de.pageSize,v=d+de.pageSize;return Me("getSliceContLength",de),(B=Gr.value)==null?void 0:B.slice(d,v)}),bn=d=>{de.currentPage=d,Me("getSliceContLength",de)},zo=d=>{var M;de.pageSize=d;const v=((M=Ee.value)==null?void 0:M.length)??0,B=d>0?Math.ceil(v/d):1;de.currentPage>B&&(de.currentPage=B||1,Ga.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Me("getSliceContLength",de)},Vi=({prop:d,order:v})=>{En.prop=d,En.order=v,de.currentPage=1};function Fi(d){const v=[];function B(M,F=""){M.forEach(N=>{N.children&&N.children.length>0?B(N.children,N.prop):v.push(N.prop)})}return B(d),v}const Cn=(d,v)=>{var te,K,Ce,Be;let B=(K=(te=pe.value)==null?void 0:te.map(He=>He==null?void 0:He.prop))==null?void 0:K.filter(He=>He!=="operate");((Ce=pe.value)==null?void 0:Ce.some(He=>{var je;return((je=He==null?void 0:He.children)==null?void 0:je.length)>0}))&&(B=Fi((Be=pe.value)==null?void 0:Be.filter(He=>(He==null?void 0:He.prop)!=="operate")));let F;if(F=(d==null?void 0:d.length)===(B==null?void 0:B.length)?d:d.slice(0,B==null?void 0:B.length),!(F==null?void 0:F.every(He=>B==null?void 0:B.find(je=>He===je))))return Ga.ElMessage.error("导入的数据表头不匹配");Hn(F,v)},Pi=(d,v)=>{var F;const B=d==null?void 0:d.filter(N=>N!=="序号"),M=v==null?void 0:v.map(N=>{const ie=Object.entries(N);return ie.shift(),Object.fromEntries(ie)});Ue.setRefreshCurStructure(!1),((F=pe.value)==null?void 0:F.length)===0||Cn(B,M)},ji=(d,v,B,M)=>{const F=[],N=[],ie=Ce=>Object.keys(Ce).length;for(const Ce in d)if(d[Ce]!==void 0){const Be=d[Ce],He=[];for(const[je,Je]of Object.entries(Be))He.push(Je),N.length<ie(Be)&&N.push(je);F.push(He)}F.unshift(N);const te=oa.utils.aoa_to_sheet(F),K=oa.utils.book_new();oa.utils.book_append_sheet(K,te,M),oa.writeFileSync(K,`${v}.xlsx`),ir.value=[]},Jo=async(d,v,B,M=!1,F)=>{try{Ue.setRefreshCurStructure(!1)}catch(N){Ga.ElMessage.error(N)}},Xo=async(d,v)=>{await Jo()},Zo=async(d,v)=>{await Jo("columnType",v,d,!1)},jr=async({newRow:d,targetIndex:v})=>{var F;if(!ce(u.config,{type:Xe.TABLE}))return;const M=(de.currentPage-1)*de.pageSize+(v??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Ln(M,Ee.value||[]))}catch{}Ee.value.splice(M,0,d),await a.nextTick(),m.value.has(d.id)||m.value.set(d.id,L.cloneDeep(d)),Ee.value=(F=Ee.value)==null?void 0:F.map(N=>({...N,tableEditType:(N==null?void 0:N.id)===d.id?"edit":(N==null?void 0:N.tableEditType)??"text"})),c.value.add(d.id),Al.value=!0},Hi=(d,v,B,M=[])=>(!Array.isArray(v)||v.length===0||v.forEach(F=>{const N=F==null?void 0:F.prop;if(!N)return;let ie=d==null?void 0:d[N];if(ie==null||String(ie).trim()==="")return;ie=String(ie);const te=new Set([...(Array.isArray(B)?B:[]).filter(Be=>(Be==null?void 0:Be.id)!==(d==null?void 0:d.id)).map(Be=>Be==null?void 0:Be[N]).filter(Be=>Be!=null).map(Be=>String(Be)),...(Array.isArray(M)?M:[]).map(Be=>Be==null?void 0:Be[N]).filter(Be=>Be!=null).map(Be=>String(Be))]);if(!te.has(ie))return;let K=1,Ce="";for(;Ce=`${ie}(${K})`,!!te.has(Ce);)K++;d[N]=Ce}),d),Mo=async()=>{var F,N,ie,te,K,Ce,Be,He;const d=Array.from(c.value||[]);if(d.length===0)return;const v=(N=oa.getColumnChild((F=L.cloneDeep(pe.value))==null?void 0:F.filter(je=>(je==null?void 0:je.label)!=="操作")))==null?void 0:N.filter(je=>(je==null?void 0:je.required)===!0);if((v==null?void 0:v.length)>0)for(let je=0;je<d.length;je++){const Je=d[je],ha=(ie=Ee.value)==null?void 0:ie.find($a=>($a==null?void 0:$a.id)===Je);if(ha)for(let $a=0;$a<v.length;$a++){const qa=v[$a],ta=qa==null?void 0:qa.prop,Qa=(qa==null?void 0:qa.label)??ta,ya=ha==null?void 0:ha[ta];if(ya===""||ya===null||ya===void 0||Array.isArray(ya)&&ya.length===0){Ga.ElMessage.error(`${Qa}不能为空`);return}}}const B=[],M=[];if(d.forEach(je=>{var Qa;const Je=(Qa=Ee.value)==null?void 0:Qa.find(ya=>(ya==null?void 0:ya.id)===je);if(!Je)return;if(Je!=null&&Je._isTemp){const Pa=(oa.getAllLeafNodes(pe.value)||[]).filter(T=>(T==null?void 0:T.mainKey)===!0||(T==null?void 0:T.isMainKey)===!0),ve=Ee.value.findIndex(T=>(T==null?void 0:T.id)===je),Sa=ve>=0?ve+1:Ee.value.length+1;Hi(Je,Pa,Ee.value,B);const sa={id:Sa.toString()};(Je==null?void 0:Je.sort)!==void 0&&(Je==null?void 0:Je.sort)!==null&&String(Je.sort).trim()!==""?sa.sort=String(Je.sort):sa.sort=Ln(ve>=0?ve:Ee.value.length-1,Ee.value||[]),(oa.getAllLeafNodes(pe.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 J=T==null?void 0:T.prop;if(J){const Re=Je[J];Re!==void 0?sa[J]=Re??"":sa[J]=""}}),B.push(sa);return}const $a=(oa.getAllLeafNodes(pe.value)||[]).filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),qa=new Set($a.map(ya=>ya==null?void 0:ya.prop).filter(Boolean)),ta={};for(const ya of qa)Object.prototype.hasOwnProperty.call(Je,ya)&&(ta[ya]=Je[ya]);M.push({id:Je.id,value:{tableData:ta}})}),Ue.setTableLoading(u==null?void 0:u.index),M.length>0){const je=M.map(ha=>{const $a={id:ha.id,...ha.value.tableData};return delete $a._isOCRRow,delete $a._ocrTableId,delete $a._isTemp,delete $a.tableEditType,delete $a.index,$a}),Je=[{tableName:(te=u==null?void 0:u.related)==null?void 0:te.find(ha=>ha==null?void 0:ha.includes("content")),tableContents:je}];try{await L.pageBatchUpdateApi({platId:parseInt((K=Ll.value)==null?void 0:K.plat_id),changeContents:Je})}catch(ha){Ga.ElMessage.error(((Be=(Ce=ha==null?void 0:ha.response)==null?void 0:Ce.data)==null?void 0:Be.message)||(ha==null?void 0:ha.message)||"保存失败"),Ue.setTableLoading(!1);return}}if(B.length>0){const je={fixContent:B,buttonName:"新增",relatedContents:u==null?void 0:u.related,name:u==null?void 0:u.compName,columns:pe.value};Me("change",je)}Ga.ElMessage.success("保存成功"),c.value.clear(),m.value.clear(),Ee.value=(He=Ee.value)==null?void 0:He.map(je=>({...je,tableEditType:"text"})),Al.value=!1,Ue.setRefreshCurStructure(!0)},Ui=()=>{var v;const d=Array.from(c.value||[]);if(d.length===0){Al.value=!1;return}d.forEach(B=>{var N,ie;const M=m.value.get(B),F=(N=Ee.value)==null?void 0:N.find(te=>(te==null?void 0:te.id)===B);if(F!=null&&F._isTemp){Ee.value=Ee.value.filter(te=>(te==null?void 0:te.id)!==F.id);return}if(M){const te=(ie=Ee.value)==null?void 0:ie.findIndex(K=>(K==null?void 0:K.id)===B);te!==-1&&(Ee.value[te]={...Ee.value[te],...M})}}),c.value.clear(),m.value.clear(),Ee.value=(v=Ee.value)==null?void 0:v.map(B=>({...B,tableEditType:"text"})),Al.value=!1},Io=a.ref(!1),Qo=async d=>{var F,N,ie,te;if(!Al.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const v=d==null?void 0:d.target;if(((N=(F=v==null?void 0:v.tagName)==null?void 0:F.toLowerCase)==null?void 0:N.call(F))==="textarea")return;const M=document.getElementById("excel-table");M&&!M.contains(v)||((ie=v==null?void 0:v.blur)==null||ie.call(v),(te=d.preventDefault)==null||te.call(d),await a.nextTick(),await ei())},ei=async()=>{if(V.value){Al.value=!1;return}if(!Io.value){Io.value=!0;try{Array.from(c.value||[]).length>0?await Mo():Al.value=!1}finally{Promise.resolve().then(()=>{Io.value=!1})}}},qi=d=>{ir.value=d},Wi=(d,v)=>{Pl.value===v?Vr.value=!1:Vr.value=!0,Pl.value=v==null?void 0:v.changeProp},ai=d=>{if(!d)return;const{item:v,value:B}=d,M=Ha.value.find(F=>F.prop==v.prop);M&&M.contents.push({label:B,value:B})},Dn=a.computed(()=>{var B,M,F;const d=(B=pe.value)==null?void 0:B.some(N=>N==null?void 0:N.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(F=(M=pe.value)==null?void 0:M.filter(N=>(N==null?void 0:N.label)!=="操作"))==null?void 0:F.map(N=>({...N,filterable:!!(N!=null&&N.filterable),showSummary:!!(N!=null&&N.showSummary),operable:!!(N!=null&&N.operable),fixed:N==null?void 0:N.fixed}))}),Nn=async(d,v,B)=>{const M=L.cloneDeep(pe.value);await a.nextTick();const F=M==null?void 0:M.map(ie=>(B==null?void 0:B.label)===(ie==null?void 0:ie.label)?{...ie,[v]:d}:ie),N=qn(F);await ms(u.index,N),pe.value=F,Z.value=N},qn=d=>{var F;const v=d||[];return((F=oa.getAllLeafNodes(v)||[])==null?void 0:F.filter(N=>(N==null?void 0:N.prop)&&(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate")).map(N=>{const{prop:ie}=N;return l0(ie,N)})},Ki=async d=>{let v=await n0(u.index);v||(v=qn(d)),Z.value=v},li=async(d,v)=>{const B=L.cloneDeep(pe.value),M=ie=>Array.isArray(ie)?ie.map(te=>{const K=Array.isArray(te==null?void 0:te.children)&&te.children.length>0,Ce={...te};return(Ce==null?void 0:Ce.prop)==="operate"||(Ce==null?void 0:Ce.label)==="操作"||(Ce==null?void 0:Ce.type)==="operate"?(Ce.sortable=!1,Ce.filterable=!1,Ce.operable=!1):Ce.sortable=K?!1:!!d,K&&(Ce.children=M(Ce.children)),Ce}):ie,F=M(B),N=qn(F);await ms(u.index,N),pe.value=F,Z.value=N,await a.nextTick(),nn.value=nn.value+1},ri=()=>{we.value=!1},ni=d=>{Me("clickTrigger",d)},Wn=async d=>{var N,ie,te,K,Ce,Be,He,je,Je,ha,$a,qa,ta,Qa,ya;const v=d==null?void 0:d.row,B=d==null?void 0:d.rowData,M=d==null?void 0:d.suffix;if((N=v==null?void 0:v.toString())!=null&&N.includes(".urdf")||d!=null&&d.isUrdf||M!=null&&M.includes(".urdf")){if(v.includes(",")){Ga.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(A(v)){const ve={files:[xe(v)],data:{}};Te(ve);return}ba.value=[{url:v,extension:re(v)}],Fe.value=!0,be.value={data:L.cloneDeep(B)},Ne.value=!0;return}let F=[];if((ie=v==null?void 0:v.toString())!=null&&ie.includes(".stl")||(te=v==null?void 0:v.toString())!=null&&te.includes(".STL")||(K=v==null?void 0:v.toString())!=null&&K.includes(".obj")||(Ce=v==null?void 0:v.toString())!=null&&Ce.includes(".mtl")){const Pa=(Be=v==null?void 0:v.toString())==null?void 0:Be.split(","),ve=Ye(Pa),Sa=ve==null?void 0:ve[0];if(A(Sa==null?void 0:Sa.extension)){Te({files:ve,data:{}});return}ba.value=ve,Fe.value=!1,Ne.value=!0;return}if((He=v==null?void 0:v.toString())!=null&&He.includes(".stl")||(je=v==null?void 0:v.toString())!=null&&je.includes(".STL")||(Je=v==null?void 0:v.toString())!=null&&Je.includes(".obj")||(ha=v==null?void 0:v.toString())!=null&&ha.includes(".mtl")||M!=null&&M.includes(".stl")||M!=null&&M.includes(".STL")||M!=null&&M.includes(".obj")||M!=null&&M.includes(".mtl")){let Pa,ve=[],Sa={};if(Array.isArray(v)?Pa=v:Pa=v==null?void 0:v.split(","),Pa==null||Pa.forEach(sa=>{sa.includes(".mtl")?ve.push(sa):Sa.blob=Sa.blob?Sa.blob+","+sa:sa}),(ve==null?void 0:ve.length)>0&&(Sa.mtlBlobs=ve),M&&(Sa.suffix=M),(qa=($a=Object.values(Sa))==null?void 0:$a[0])!=null&&qa.includes("http:"))F.push(Sa);else{const sa=new Blob([Sa.blob],{type:"application/octet-stream;charset=UTF-8"});let wa=URL.createObjectURL(sa),Ea="";(ta=v==null?void 0:v.split("/"))==null||ta.forEach((T,J)=>{var Re;J===((Re=v==null?void 0:v.split("/"))==null?void 0:Re.length)-1&&(Ea=T)}),(Qa=Sa.blob)!=null&&Qa.includes(".stl")&&(Ea=(Ea==null?void 0:Ea.replaceAll(">",""))+".urdf"),ne.value=[{name:Ea,blobUrl:wa}],Ma.value=!0}}else{const Pa=await Ga.axios.get(v,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ve=new Blob([Pa.data],{type:"application/octet-stream;charset=UTF-8"});let Sa=URL.createObjectURL(ve),sa="";if((ya=v==null?void 0:v.split("/"))==null||ya.forEach((wa,Ea)=>{var T;Ea===((T=v==null?void 0:v.split("/"))==null?void 0:T.length)-1&&(sa=wa)}),A(sa)){const wa=q(sa),Ea=xe(v);Te({files:[Ea],data:{trackFileType:wa}});return}ne.value=[{name:sa,blobUrl:Sa}],Ma.value=!0}(F==null?void 0:F.length)>0&&o.setBlobUrls(F)},lo=d=>{var M,F,N,ie;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const v=(ie=(M=d==null?void 0:d.url)==null?void 0:M.split("."))==null?void 0:ie[((N=(F=d==null?void 0:d.url)==null?void 0:F.split("."))==null?void 0:N.length)-1];return(d==null?void 0:d.name)+"."+v},oi=d=>{if(!d)return"未知文件";try{const M=lo(d);if(typeof M=="string"&&M.includes("."))return M}catch{}const v=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",B=(d==null?void 0:d.suffix)||"";return v.includes(".")?v:`${v}${B}`},ii=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const v=d.match(/^(\d+)\_(\d+)$/);if(!v)return d;const B=Number(v[1]),M=Number(v[2]);return!Number.isFinite(B)||!Number.isFinite(M)?d:String(B*1e3+M)},ro=d=>{if(d==null)return null;const v=String(d).trim();if(!v)return null;const B=Number(v);return Number.isFinite(B)?B:null},Gi=d=>{if(d==null)return null;const v=String(d).trim();if(!v)return null;if(/^\d+$/.test(v)){const F=Number(v);return Number.isFinite(F)?v.length<=10?F*1e3:F:null}const B=v.includes("T")?v:v.replace(" ","T"),M=Date.parse(B);return Number.isFinite(M)?M:null},ti=(d,v=[])=>{const B=Array.isArray(d)?d.slice():[];if(B.length<=1)return B;const M=new Map((v||[]).map((ie,te)=>[String(ie),te])),F=B.some(ie=>ro(ie==null?void 0:ie.sort)!==null),N=B.map((ie,te)=>({r:ie,idx:te,id:String((ie==null?void 0:ie.id)??""),sortVal:ro(ie==null?void 0:ie.sort),createTimeMs:Gi(ie==null?void 0:ie.create_time),prevIdx:M.has(String(ie==null?void 0:ie.id))?M.get(String(ie==null?void 0:ie.id)):Number.POSITIVE_INFINITY}));return N.sort((ie,te)=>{if(F){const Be=ie.sortVal,He=te.sortVal;if(Be===null&&He!==null)return 1;if(Be!==null&&He===null)return-1;if(Be!==null&&He!==null&&Be!==He)return Be-He}const K=ie.createTimeMs,Ce=te.createTimeMs;return K!==null&&Ce!==null&&K!==Ce?Ce-K:K!==null&&Ce===null?-1:K===null&&Ce!==null?1:ie.prevIdx!==te.prevIdx?ie.prevIdx-te.prevIdx:ie.idx-te.idx}),N.map(ie=>ie.r)},Ln=(d,v=[])=>{const B=v==null?void 0:v[d-1],M=v==null?void 0:v[d],F=ro(B==null?void 0:B.sort),N=ro(M==null?void 0:M.sort);let ie=null;F!==null&&N!==null&&N>F?ie=(F+N)/2:F!==null?ie=F+1:N!==null?ie=Math.max(N-1,0):ie=(d??0)+1;const te=Number(ie.toFixed(6));return String(Number.isFinite(te)?te:ie)},Yi=async d=>{let v=null,B=null;if(d!=null&&d.id){const F=jo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const N=await L.platformDownloadFile(d);v=URL.createObjectURL(N.data),B=oi(d)}finally{F.close()}}else if(d!=null&&d.downloadUrl){const F=await ho(),N=jo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ie=await Ga.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:F,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{N.close()}),te=new Blob([ie.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(te),B=d==null?void 0:d.name}else{const F=await L.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(v=URL.createObjectURL(F.data),B=lo(d)):v=d==null?void 0:d.url}if(A(v)){const F={row:`${v}`,suffix:re(B)};Wn(F);return}const M={name:B,blobUrl:v};ne.value=[M],Ma.value=!0},fo=async d=>{let v=null,B=null;if(d!=null&&d.id){const N=await L.platformDownloadFile(d);v=URL.createObjectURL(N.data),B=oi(d)}else if(d!=null&&d.downloadUrl){const N=await ho(),ie=await Ga.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:N,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),te=new Blob([ie.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(te),B=d==null?void 0:d.name}else{const N=await L.platformDownloadFile({url:d==null?void 0:d.url});v=URL.createObjectURL(N.data),B=lo(d)}const M={name:B,blobUrl:v},F=document.createElement("a");F.href=M.blobUrl,F.download=M.name,F.style.display="none",document.body.appendChild(F),F.click(),setTimeout(()=>{document.body.removeChild(F)},100)},Ji=(d,v)=>{var M;if(Object.values(v).length===0)return;let B=d;return Object.values(v).find(F=>{var N,ie,te;return((N=F==null?void 0:F.toString())==null?void 0:N.includes(".txt"))||((ie=F==null?void 0:F.toString())==null?void 0:ie.includes(".cpt"))||((te=F==null?void 0:F.toString())==null?void 0:te.includes(".obj"))})?B=[...d,Qe.value]:(M=u==null?void 0:u.config)!=null&&M.allowMove&&(B=[...d,{label:"迁移"}]),B},Oo=()=>{W.value=!0},Xi=a.ref([]),Zi=async(d,v,B=!1)=>{var ie,te,K,Ce;if(!d)return;if(B){Ee.value=[...We.value.values()].filter(Be=>Object.values(Be).some(He=>typeof He=="string"?He==null?void 0:He.toLowerCase().includes(v==null?void 0:v.toLowerCase()):!1));return}let M={};for(let Be in d)(d==null?void 0:d[Be])!==""&&(M[Be]=d==null?void 0:d[Be]);if(JSON.stringify(M)==="{}"){Ee.value=Array.from(((ie=We.value)==null?void 0:ie.values())??[]);return}let F=(te=u==null?void 0:u.related)==null?void 0:te.find(Be=>Be==null?void 0:Be.includes("content_")),N=await L.getFillFind({platId:parseInt((K=Ll==null?void 0:Ll.value)==null?void 0:K.plat_id),tableName:F,params:M});N=(Ce=N==null?void 0:N.data)==null?void 0:Ce.result,Ee.value=N,Ue.setTableLoading(!1)},si=async d=>{var B,M;if(!ce(u.config,{type:Xe.TABLE})||!d)return;((B=Array.from(c.value))==null?void 0:B.length)>0&&await Mo();const v=d==null?void 0:d.id;v!=null&&(c.value.clear(),m.value.clear(),m.value.has(v)||m.value.set(v,L.cloneDeep(d)),Ee.value=(M=Ee.value)==null?void 0:M.map(F=>({...F,tableEditType:(F==null?void 0:F.id)===v?"edit":"text"})),c.value.add(v),Al.value=!0)},Kn=async(d,v,B,M)=>{M!=null&&M.isExistChild&&Me("clickMainKey",d,B,pe.value)},Bn=()=>{Ma.value=!1},ci=d=>{Me("rowClick",d)};a.watch(()=>u.changedContent,()=>{var B,M;if(!u.changedContent)return;let d=(B=Ee.value)==null?void 0:B.map(F=>{var N;return F.id===((N=u.changedContent)==null?void 0:N.id)&&(F={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete F.newId),F});const v=(M=u.itemData)==null?void 0:M.map(F=>((F==null?void 0:F.key)==="tableContents"&&(F.contents=d),F));Ee.value=d,Me("contentChange",{contents:v,index:u.index}),Me("change",{content:d,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Lo=()=>{},Qi=async()=>{const d=qe.value,v=sessionStorage.getItem("systemKey"),B=await oa.getItemData(d,v,""),M=(B==null?void 0:B.find(te=>(te==null?void 0:te.name)==="方法明细"))||(B==null?void 0:B[0]),F=(M==null?void 0:M.compData)||[],N=F==null?void 0:F.find(te=>{const K=te==null?void 0:te.key;return K==="formContent"||K==="tableContents"});return N==null?void 0:N.contents},ho=async()=>{const v=Ga.Local.get("access-token");return v?`Bearer ${v}`:""},et=async(d,{token:v,inputData:B}={})=>await Ga.axios.post(d,B,{headers:{Authorization:v}}).catch(F=>(Ae.setImportLoading(!1),Promise.reject(F))),at=d=>{var M;let v={};const B=[];return v.form={},(M=L.cloneDeep(d))==null||M.forEach((F,N)=>{var ie,te,K,Ce,Be,He,je,Je,ha,$a,qa,ta,Qa,ya;if((F==null?void 0:F.comp)==="Table"){(te=(ie=F==null?void 0:F.compData)==null?void 0:ie.find(sa=>(sa==null?void 0:sa.key)==="header"))==null||te.contents;let Pa=(Be=(Ce=(K=F==null?void 0:F.compData)==null?void 0:K.find(sa=>(sa==null?void 0:sa.key)==="tableContents"))==null?void 0:Ce.contents)==null?void 0:Be.map(sa=>sa.slice(1));($a=(ha=(Je=(je=(He=F==null?void 0:F.compData)==null?void 0:He.find(sa=>(sa==null?void 0:sa.key)==="header"))==null?void 0:je.contents)==null?void 0:Je[0])==null?void 0:ha[0])==null||$a.label;let ve=(ta=(qa=F==null?void 0:F.compData)==null?void 0:qa.find(sa=>(sa==null?void 0:sa.key)==="header"))==null?void 0:ta.contents,Sa=[];Pa==null||Pa.forEach(sa=>{let wa=[];sa==null||sa.forEach((Ea,T)=>{var Re;let J={};((Re=ve[T])==null?void 0:Re.label)!=="操作"&&(J[ve[T].label]=Ea,wa.push(J))}),Sa.push(wa)}),v[F.name]=Sa}else{const Pa=(ya=(Qa=F.compData)==null?void 0:Qa.find(ve=>(ve==null?void 0:ve.key)==="formContent"))==null?void 0:ya.contents;Pa==null||Pa.forEach(ve=>{var Sa,sa;if(ve.prop!==""){let wa=ve==null?void 0:ve.value;Array.isArray(wa)?wa=((Sa=wa==null?void 0:wa[0])==null?void 0:Sa.oldUrl)||"http://222.92.178.198:62001/"+((sa=wa==null?void 0:wa[0])==null?void 0:sa.url):wa=wa.toString(),ve={key:(ve==null?void 0:ve.prop)??(ve==null?void 0:ve.label),value:wa},B.push(ve)}})}}),v.form=oa.getFormContents(B),v},lt=d=>{const v=[],B=M=>{M&&typeof M=="object"&&!Array.isArray(M)?Object.values(M).forEach(B):v.push(M)};return B(d),v},rt=async(d,v,B)=>{var ve,Sa,sa,wa,Ea,T,J,Re,na,Se,ia,Da,tl,Ya,ul,dl,Vl;Ae.setImportLoading(!0),Ue.setFreshContent(!1);let M=await Qi().catch(Ka=>(Ae.setImportLoading(!1),Promise.reject(Ka)));M=M==null?void 0:M.filter(Ka=>{var vl;return((vl=Ka==null?void 0:Ka.find(Fa=>Fa==null?void 0:Fa.id))==null?void 0:vl.id)===(v==null?void 0:v.id)});let F=oa.getEqualChild([(ve=pe.value)==null?void 0:ve.filter(Ka=>(Ka==null?void 0:Ka.label)!=="操作")]);const N=(sa=(Sa=oa.tableToForm(M,F))==null?void 0:Sa[0])==null?void 0:sa.find(Ka=>{const vl=Ka==null?void 0:Ka.key;return vl==="Interface"||vl==="方法体"}),ie=N==null?void 0:N.value;if(!ie){console.log("未搜索到isMain, 缺少算法执行接口"),Ae.setImportLoading(!1);return}const te=pe.value?oa.getEqualChild([pe.value]):[],K=te.find(Ka=>{const vl=Ka==null?void 0:Ka.prop;return vl==="Input1"||vl==="输入数据.输入1"||vl==="样本输入数据"}),Ce=K==null?void 0:K.prop;let Be=v==null?void 0:v[Ce];const He=await ho().catch(Ka=>(Ae.setImportLoading(!1),Promise.reject(Ka)));let je=!0,Je="";(wa=pe.value)==null||wa.forEach(Ka=>{(Ka==null?void 0:Ka.prop)===Ce&&(je=!!(Ka!=null&&Ka.childPath),Je=Ka==null?void 0:Ka.childPath)});let ha="";if(je){let Ka=(T=(Ea=pe.value)==null?void 0:Ea.find(cl=>(cl==null?void 0:cl.isMainKey)===!0))==null?void 0:T.prop;ha=v==null?void 0:v[Ka];let vl=Je==null?void 0:Je.split(k),Fa=[];vl==null||vl.forEach((cl,_l)=>{(vl==null?void 0:vl.length)-1===_l&&Fa.push(ha),Fa.push(cl)}),Fa=Fa==null?void 0:Fa[0];let sl=await oa.getItemData(Fa,sessionStorage.getItem("systemKey"),""),Xa=sl==null?void 0:sl.filter(cl=>(cl==null?void 0:cl.name)===Ce);Xa=Xa==null?void 0:Xa.map(cl=>{var _l;return cl.compData=(_l=cl==null?void 0:cl.compData)==null?void 0:_l.map(Nl=>{var xr;return(Nl==null?void 0:Nl.key)==="tableContents"&&(Nl.contents=(xr=Nl==null?void 0:Nl.contents)==null?void 0:xr.filter(Il=>(Il==null?void 0:Il[1])===(v==null?void 0:v[Ce]))),Nl}),cl}),(!Xa||(Xa==null?void 0:Xa.length)===0)&&(Xa=sl,Xa=Xa==null?void 0:Xa.map(cl=>{var _l;return cl.compData=(_l=cl==null?void 0:cl.compData)==null?void 0:_l.map(Nl=>{var xr;return(Nl==null?void 0:Nl.key)==="tableContents"&&(Nl.contents=(xr=Nl==null?void 0:Nl.contents)==null?void 0:xr.filter(Il=>{var yl,Tl;return(Il==null?void 0:Il[1])===(v==null?void 0:v[(Tl=(yl=pe==null?void 0:pe.value)==null?void 0:yl[0])==null?void 0:Tl.prop])})),Nl}),cl})),Be=at(Xa)}const $a=await et(ie,{token:He,inputData:Be}).catch(Ka=>(Ae.setImportLoading(!1),Promise.reject(Ka))),qa=(J=$a==null?void 0:$a.data)==null?void 0:J.data,ta=te.find(Ka=>(Ka==null?void 0:Ka.prop)==="Output1"),Qa=ta==null?void 0:ta.prop;let ya=[],Pa=[];if(qa&&((Re=Object.values(qa))==null?void 0:Re.length)>0){let Ka=[];const vl=new FormData,Fa=(na=lt(qa))==null?void 0:na.map(async Xa=>{var cl,_l;if(!Array.isArray(Xa)&&(Xa!=null&&Xa.includes("http"))){let Nl=await Ga.axios.get(Xa,{responseType:"blob"}),xr=(_l=Xa==null?void 0:Xa.split("/"))==null?void 0:_l[((cl=Xa==null?void 0:Xa.split("/"))==null?void 0:cl.length)-1];vl.append("files",Nl.data,xr)}else Ka.push(Xa)});if(await Promise.all(Fa),!oa.isFormDataEmpty(vl)){let Xa=await Mu.uploadAmountApi(vl),cl=(ia=(Se=Xa==null?void 0:Xa.data)==null?void 0:Se.result)==null?void 0:ia.map(_l=>{var Nl,xr,Il,yl,Tl,Yl;return{name:(Yl=(Tl=(yl=(Nl=_l==null?void 0:_l.url)==null?void 0:Nl.split("/"))==null?void 0:yl[((Il=(xr=_l==null?void 0:_l.url)==null?void 0:xr.split("/"))==null?void 0:Il.length)-1])==null?void 0:Tl.split("."))==null?void 0:Yl[0],url:_l==null?void 0:_l.url}});Ka=[...Ka,...cl]}let sl={};for(let Xa in v)Xa!=="id"&&(sl[Xa]=v[Xa]);sl[Qa]=Ka,Pa.push({id:v==null?void 0:v.id,value:{tableData:sl}})}if((Pa==null?void 0:Pa.length)>0){const Ka=Pa.map(Fa=>{const sl={id:Fa.id,...Fa.value.tableData};return delete sl._isOCRRow,delete sl._ocrTableId,delete sl._isTemp,delete sl.tableEditType,delete sl.index,sl}),vl=[{tableName:(Da=u==null?void 0:u.related)==null?void 0:Da.find(Fa=>Fa==null?void 0:Fa.includes("content")),tableContents:Ka}];await L.pageBatchUpdateApi({platId:parseInt((tl=Ll.value)==null?void 0:tl.plat_id),changeContents:vl})}if((ya==null?void 0:ya.length)>0)try{await L.pageBatchAddApi({platId:parseInt((Ya=Ll.value)==null?void 0:Ya.plat_id),changeContents:[{tableName:(ul=u==null?void 0:u.related)==null?void 0:ul.find(Ka=>Ka==null?void 0:Ka.includes("content")),tableContents:ya.map(Ka=>{var Fa,sl,Xa;const vl={id:((Fa=Ka==null?void 0:Ka.key)==null?void 0:Fa.id)??((sl=Ka==null?void 0:Ka.key)==null?void 0:sl.rowId)??(Ka==null?void 0:Ka.id),...((Xa=Ka==null?void 0:Ka.value)==null?void 0:Xa.tableData)||{}};return delete vl._isOCRRow,delete vl._ocrTableId,delete vl._isTemp,delete vl.tableEditType,delete vl.index,Object.keys(vl).forEach(cl=>{cl==="证书附件"&&Array.isArray(vl[cl])&&(vl[cl]=JSON.stringify(vl[cl]))}),vl})}]})}catch(Ka){Ga.ElMessage.error(((Vl=(dl=Ka==null?void 0:Ka.response)==null?void 0:dl.data)==null?void 0:Vl.message)||(Ka==null?void 0:Ka.message)||"保存失败"),Ue.setTableLoading(!1);return}Vo(!0),Ae.setImportLoading(!1),Ue.setFreshContent(!0)},ui=(d,v)=>(d=d==null?void 0:d.map(B=>{var M,F;return B!=null&&B.children&&((M=B.children)!=null&&M.find(N=>N.id===(v==null?void 0:v.id))?B.children=(F=B.children)==null?void 0:F.filter(N=>(N==null?void 0:N.id)!==(v==null?void 0:v.id)):B.children=ui(B.children,v)),B}),d),vo=a.ref(!1),nt=()=>{vo.value=!0},ot=async d=>{var B,M,F,N;vo.value=!1;const v=Array.isArray(d)?d:d?[d]:[];if(v.length!==0)for(const ie of v){const te={name:ie.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(ie),raw:ie,uid:Date.now()+Math.random()};al.value.push(te),El(te,"uploading"),zl(te,0);try{const K=new FormData;K.append("file",ie,te.name);const Ce=await L.platformUploadFile(K);te.uploadResult=((B=Ce==null?void 0:Ce.data)==null?void 0:B.result)||{name:te.name,url:"",fileName:te.name},Ol({name:((M=te.uploadResult)==null?void 0:M.name)||te.name,url:((F=te.uploadResult)==null?void 0:F.url)||"",id:(N=te.uploadResult)==null?void 0:N.id}),El(te,"uploaded"),zl(te,100)}catch(K){console.error("文件上传失败:",K),Ga.ElMessage.error(`文件 ${te.name} 上传失败,请重试`),El(te,"pending"),zl(te,0);const Ce=al.value.findIndex(Be=>Be.uid===te.uid);Ce>-1&&al.value.splice(Ce,1)}}},t=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,v,B)=>{v===(u==null?void 0:u.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)"}]}),i=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),p=()=>{i.show=!1},b=async d=>{var v,B,M,F,N,ie,te,K;try{if(d==="cancel"&&(i.show=!1),d==="replace"&&((v=i==null?void 0:i.existRows)==null?void 0:v.length)>0){await L.pageBatchDeleteApi({platId:parseInt((B=Ll.value)==null?void 0:B.plat_id),changeContents:[{tableName:((M=u==null?void 0:u.related)==null?void 0:M.find(Be=>Be==null?void 0:Be.includes("content_")))||((F=u==null?void 0:u.related)==null?void 0:F.find(Be=>Be==null?void 0:Be.includes("content"))),tableContents:i==null?void 0:i.existRows}]});const Ce=await L.pageBatchAddApi({platId:parseInt((N=Ll.value)==null?void 0:N.plat_id),changeContents:[{tableName:(ie=u==null?void 0:u.related)==null?void 0:ie.find(Be=>Be==null?void 0:Be.includes("content")),tableContents:(()=>{const Be=(Ee.value||[]).filter(ha=>!((i==null?void 0:i.existRows)||[]).some($a=>String($a==null?void 0:$a.id)===String(ha==null?void 0:ha.id))),He=(i==null?void 0:i.tableData)||[],je=[];let Je=Be.slice();return He.forEach(ha=>{const $a={...ha};try{$a.sort=Ln(0,Je)}catch{}je.push($a),Je.unshift($a)}),je.map((ha,$a)=>({id:$a,...ha}))})()}]});((te=Ce==null?void 0:Ce.data)==null?void 0:te.code)===200&&(await St({buttonName:"新增",columns:pe.value,fixContent:(K=i==null?void 0:i.tableData)==null?void 0:K.map((Be,He)=>({id:He,...Be})),relatedContents:u==null?void 0:u.related}),Ga.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{i.show=!1,i.columns=[],i.tableData=[],i.existRows=[]}},w=()=>{t.show=!1},O=d=>{var v,B;if((d==null?void 0:d.buttonName)==="取消")return t.show=!1;t.to=d==null?void 0:d.content,!(!(u!=null&&u.index)||!((v=t.to)!=null&&v.groupName))&&(u==null?void 0:u.index)!==((B=t.to)==null?void 0:B.groupName)&&(Me("change",{buttonName:"迁移",value:{from:t.from,to:t.to,data:t.selectRow}}),t.show=!1)},Y=async d=>{var v,B,M,F;if(d){if(!Nr.validateFileSize(d.raw)){Ga.ElMessage.warning(`文件大小不能超过 ${Fr.value.maxSize}MB`);const N=al.value.findIndex(ie=>ie.uid===d.uid);N>-1&&al.value.splice(N,1),ee();return}if(!Nr.validateFileType(d.raw)){Ga.ElMessage.warning("请上传图片文件");const N=al.value.findIndex(ie=>ie.uid===d.uid);N>-1&&al.value.splice(N,1),ee();return}El(d,"uploading"),zl(d,0);try{const N=new FormData;N.append("file",d.raw,d.name);const ie=await L.platformUploadFile(N);d.uploadResult=((v=ie==null?void 0:ie.data)==null?void 0:v.result)||{name:d.name,url:"",fileName:d.name},Ol({name:((B=d.uploadResult)==null?void 0:B.name)||d.name,url:((M=d.uploadResult)==null?void 0:M.url)||"",id:(F=d.uploadResult)==null?void 0:F.id}),El(d,"uploaded"),zl(d,100)}catch(N){console.error("文件上传失败:",N),Ga.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),El(d,"pending"),zl(d,0);const ie=al.value.findIndex(te=>te.uid===d.uid);ie>-1&&al.value.splice(ie,1)}finally{ee()}}},ee=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},ke=async()=>{var B,M;if(sessionStorage.setItem("ocr_root_table_id",String((u==null?void 0:u.index)??"")),al.value.length===0){Ga.ElMessage.warning("请先选择要上传的图片");return}if(al.value.filter(F=>{const N=ol(F);return N!=="uploaded"&&N!=="completed"&&N!=="failed"}).length>0){Ga.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}Ua.value=!0,X.value=0;let v=null;try{al.value.forEach(ta=>{El(ta,"processing")});const F=Math.floor(Math.random()*10)+90;v=setInterval(()=>{X.value<F?X.value+=1:clearInterval(v)},50);const N=al.value.map(ta=>{var Qa,ya,Pa;return{name:((Qa=ta.uploadResult)==null?void 0:Qa.name)||ta.name,url:((ya=ta.uploadResult)==null?void 0:ya.url)||"",fileName:((Pa=ta.uploadResult)==null?void 0:Pa.fileName)||ta.name}}),ie=Nr.extractTableHeaders(pe.value),te=N.map(ta=>({name:(ta==null?void 0:ta.fileName)||(ta==null?void 0:ta.name),url:(ta==null?void 0:ta.url)||""})),K=await Nr.recognize(te,ie);if(console.log(K,"ocrResult"),clearInterval(v),v=null,(K==null?void 0:K.code)===500||(K==null?void 0:K.type)==="error"||!(K!=null&&K.result)){X.value=0,al.value.forEach(ta=>{El(ta,"failed"),zl(ta,0)}),Ga.ElMessage.error((K==null?void 0:K.message)||"OCR识别失败,请重试"),Ua.value=!1;return}X.value=F;const Ce=Array.isArray(K==null?void 0:K.result)?K.result:[];if(Ce.length===0){X.value=0,al.value.forEach(ta=>{El(ta,"failed"),zl(ta,0)}),Ga.ElMessage.warning("OCR识别未返回有效数据"),Ua.value=!1;return}const Be=new Set,He=[];Ce.forEach((ta,Qa)=>{const ya=ta!=null&&ta.数据&&typeof(ta==null?void 0:ta.数据)=="object"?ta.数据:{},Pa=Array.isArray(ta==null?void 0:ta.图片信息)?ta.图片信息:[],ve=new Map;Pa.forEach(sa=>{sa!=null&&sa.name&&ve.set(sa.name,sa.url||"")});const Sa={_index:Qa,_certType:(ta==null?void 0:ta.证书类型)||"",_certNo:(ta==null?void 0:ta.证书编号)||"",_ocrImages:Pa,__ocrFieldMeta:{}};Object.entries(ya).forEach(([sa,wa])=>{let Ea="",T=0,J=[],Re="";wa&&typeof wa=="object"&&!Array.isArray(wa)?(Ea=(wa==null?void 0:wa.value)??"",T=(wa==null?void 0:wa.score)??0,J=Array.isArray(wa==null?void 0:wa.bboxNorm)?wa==null?void 0:wa.bboxNorm:[],Re=(wa==null?void 0:wa.imageName)||""):Array.isArray(wa)&&wa.length>=2?(Ea=wa[0]??"",T=wa[1]??0):(Ea=wa??"",T=0),Sa[sa]=Ea,Sa[`${sa}_accuracy`]=T,Be.add(sa),Sa.__ocrFieldMeta[sa]={value:Ea,score:T,bboxNorm:J,imageName:Re,imageUrl:Re&&ve.get(Re)||"",images:Pa}}),He.push(Sa)});const je=[],Je=new Set;He.forEach(ta=>{ta&&Be.forEach(Qa=>{const ya=ta[`${Qa}_accuracy`];(typeof ya=="number"?ya>0:ya!=null&&String(ya).trim()!==""&&String(ya)!=="0")&&Je.add(Qa)})}),Be.forEach(ta=>{je.push({prop:ta,label:ta,editable:!0,minWidth:230}),Je.has(ta)&&je.push({prop:`${ta}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),al.value.forEach(ta=>{El(ta,"completed")}),X.value=100,Le.value=je,Ze.value=He,hl.value=N,Va.value=K;const ha=["出厂编号","设备名称","制造厂"],$a=je.filter(ta=>ta&&!ta.isAccuracy&&typeof ta.prop=="string").map(ta=>ta.prop),qa=["出厂编号","设备名称","制造厂"];Wa.value=$a.filter(ta=>qa.includes(ta)),console.log("[OCR] 默认勾选字段 props:",Wa.value),_e.value=2,Ua.value=!1,la.value=!1}catch(F){console.error("OCR处理失败:",F),v&&(clearInterval(v),v=null),Ga.ElMessage.error(((M=(B=F==null?void 0:F.response)==null?void 0:B.data)==null?void 0:M.message)||"OCR识别失败,请重试"),Ua.value=!1,X.value=0,al.value.forEach(N=>{El(N,"pending"),zl(N,0)})}},Pe=d=>{if(d==null)return"";let v=String(d);return v=v.replace(/\s+/g," ").trim(),v=v.replace(/[!-~]/g,B=>String.fromCharCode(B.charCodeAt(0)-65248)),v=v.replace(/ /g," "),v=v.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),v},De=()=>{var ta,Qa;const d=hl.value,v=Va.value,B=Ze.value;if(!B||B.length===0){Ga.ElMessage.warning("暂无数据可添加");return}const M=(ta=oa.getAllLeafNodes(pe.value)||[])==null?void 0:ta.filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),F=new Map,N=new Map,ie=(Qa=M==null?void 0:M.find(ya=>(ya==null?void 0:ya.label)==="证书附件"))==null?void 0:Qa.prop;M==null||M.forEach(ya=>{ya!=null&&ya.label&&(ya!=null&&ya.prop)&&(F.set(ya.label,ya.prop),N.set(ya.prop,ya.label))});const te=Date.now(),K=ya=>String(te*1e3+ya),Ce=[],Be=[],He=ya=>{const Pa=Ti&&Ti[ya]||[ya];for(const ve of Pa){const Sa=F.get(ve);if(Sa)return Sa}return""},je=He("出厂编号"),Je=He("设备名称"),ha=He("制造厂"),$a=[],qa=ya=>{var Ea,T;if(!ie)return[];const Pa=(Array.isArray(d)?d[ya]:null)||null,ve=(Pa==null?void 0:Pa.url)||"",Sa=(Pa==null?void 0:Pa.fileName)||(Pa==null?void 0:Pa.name)||"";return(String(Sa).toLowerCase().endsWith(".pdf")||String(ve).toLowerCase().endsWith(".pdf"))&&ve?[{url:ve,name:Sa,fileName:Sa}]:(Array.isArray((T=(Ea=v==null?void 0:v.result)==null?void 0:Ea[ya])==null?void 0:T.图片信息)?v.result[ya].图片信息:[]).map(J=>({url:(J==null?void 0:J.url)||"",name:(J==null?void 0:J.name)||"",fileName:(J==null?void 0:J.name)||""})).filter(J=>J.url)};if(B.forEach((ya,Pa)=>{var tl;const ve={id:K(Pa),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[Ya,ul]of F.entries())Object.prototype.hasOwnProperty.call(ya,Ya)&&(ve[ul]=ya[Ya]);ie&&(ve[ie]=qa(Pa));const Sa=(Array.isArray(v==null?void 0:v.result)?v.result[Pa]:null)||null,sa=(Array.isArray(d)?d[Pa]:null)||null,wa=(sa==null?void 0:sa.url)||"",Ea=(sa==null?void 0:sa.fileName)||(sa==null?void 0:sa.name)||"",T=String(Ea).toLowerCase().endsWith(".pdf")||String(wa).toLowerCase().endsWith(".pdf"),J={ts:Date.now(),versionId:String(Date.now())+"_"+String(Pa),label:new Date().toLocaleString(),certType:(Sa==null?void 0:Sa.证书类型)||"",certNo:(Sa==null?void 0:Sa.证书编号)||"",fileType:T?"pdf":"image",sourceUrl:T?wa:"",images:Array.isArray(Sa==null?void 0:Sa.图片信息)?Sa.图片信息.map(Ya=>({name:(Ya==null?void 0:Ya.name)||"",url:(Ya==null?void 0:Ya.url)||""})).filter(Ya=>Ya.url):[]},Re=Ya=>Pe(Ya?ve==null?void 0:ve[Ya]:""),na=Re(je),Se=Re(Je),ia=Re(ha);if(!!(je&&Je&&ha&&na&&Se&&ia)){const Ya=(Ee.value||[]).find(ul=>{const dl=Pe(je?ul==null?void 0:ul[je]:""),Vl=Pe(Je?ul==null?void 0:ul[Je]:""),Ka=Pe(ha?ul==null?void 0:ul[ha]:"");return dl&&Vl&&Ka&&dl===na&&Vl===Se&&Ka===ia});if(Ya){$a.push({idx:Pa,ocrRow:ve,versionItem:J,ocrNo:na,candidates:[Ya],selectedTargetId:String((Ya==null?void 0:Ya.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(na&&je){const Ya=(Ee.value||[]).filter(ul=>{const dl=Pe(je?ul==null?void 0:ul[je]:"");return dl&&dl===na});if(Ya.length>0){$a.push({idx:Pa,ocrRow:ve,versionItem:J,ocrNo:na,candidates:Ya,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ve.sort===void 0||ve.sort===null||String(ve.sort).trim()===""){const Ya=(Ee.value||[]).map(dl=>ro(dl==null?void 0:dl.sort)).filter(dl=>dl!==null),ul=Ya.length>0?Math.max(...Ya):((tl=Ee.value)==null?void 0:tl.length)??0;ve.sort=String(Number((ul+1).toFixed(6)))}}catch{}ja(u==null?void 0:u.index,ve.id,J),$a.push({idx:Pa,ocrRow:ve,versionItem:J,ocrNo:na,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),($a||[]).length>0){or.value=($a||[]).map(ya=>({...ya,selectedTargetId:(ya==null?void 0:ya.selectedTargetId)||""})),Fl.value=!0,gr.value=Be,Cl.value=Ce,sr.value=v,Tr.value=d,Ml.value=ie||"";return}},ea=(d,v,B)=>{Ze.value[d]&&(Ze.value[d][v]=B)},Ta=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,rl=d=>{if(d==null||d===0)return"#909399";const v=Number(d);return v>=.9?"#67c23a":v>=.7?"#e6a23c":"#f56c6c"},Ja=d=>{var B,M,F,N;if(_a.value===d){_a.value=null,xa.value=!1,ge.value="";return}_a.value=d,ge.value="";const v=(B=Ze.value)==null?void 0:B[d];if(v&&Array.isArray(v._ocrImages)&&v._ocrImages.length>0){wl.value=v._ocrImages.map(K=>({name:(K==null?void 0:K.name)||"",url:(K==null?void 0:K.url)||""})).filter(K=>K.name||K.url);const ie=v.__ocrFieldMeta||{},te=(M=Object.values(ie))==null?void 0:M.find(K=>K==null?void 0:K.imageName);Rl.value=(te==null?void 0:te.imageName)||((N=(F=wl.value)==null?void 0:F[0])==null?void 0:N.name)||"",xa.value=wl.value.length>0}else wl.value=[],xa.value=!1,Rl.value=""},nl=()=>{Ca.value=!1,al.value=[],Za.value=null,_e.value=1,Ba.value.clear(),Ge.value.clear(),X.value=0,xa.value=!1},kl=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",ol=d=>{const v=d.uid||d.name;return Ba.value.get(v)||"pending"},Dl=d=>{const v=d.uid||d.name;return Ge.value.get(v)||0},zl=(d,v)=>{const B=d.uid||d.name;Ge.value.set(B,Math.min(100,Math.max(0,v)))},Xl=d=>{const v=ol(d),B=100.53;if(v==="completed"||v==="uploaded")return`${B} ${B}`;if(v==="failed")return`${B} ${B}`;if(v==="uploading"){const M=Dl(d);return`${B*(M/100)} ${B}`}else if(v==="processing")return`${B*.5} ${B}`;return`0 ${B}`},El=(d,v)=>{const B=d.uid||d.name;Ba.value.set(B,v),(v==="completed"||v==="uploaded")&&zl(d,100)},Ul=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const v=document.createElement("input");v.type="file",v.multiple=!0,v.accept="image/*,application/pdf",v.style.display="none",v.onchange=async B=>{const M=Array.from(B.target.files||[]);for(const F of M){const N={name:F.name,raw:F,uid:Date.now()+Math.random()};al.value.push(N),await Y(N)}B.target.value="",document.body.removeChild(v)},document.body.appendChild(v),v.click()}})},Hr=()=>{_e.value>1&&_e.value--},_r=()=>{_e.value===1?al.value.length>0&&!Ua.value&&ke():_e.value===2&&(De(),_e.value=3)},Jr=async d=>{await fn(d==null?void 0:d.row)},tn=async({row:d,prop:v})=>{!d||!v||await fn(d,v)},fn=async(d,v)=>{var F,N;const B=d==null?void 0:d.id;if(!B){Ga.ElMessage.warning("暂无可预览数据");return}let M=jl(u==null?void 0:u.index,B);if(!M||M.length===0){const ie=sessionStorage.getItem("ocr_root_table_id"),te=ie!==null?Number(ie):null;if(te!=null&&te!==""&&!Number.isNaN(te)){const K=jl(te,B);Array.isArray(K)&&K.length>0&&(Zl(u==null?void 0:u.index,B,K),M=K)}}if(!M||M.length===0){const ie=(F=oa.getAllLeafNodes(pe.value)||[])==null?void 0:F.filter(K=>(K==null?void 0:K.type)!=="operate"&&(K==null?void 0:K.label)!=="操作"&&(K==null?void 0:K.prop)!=="operate"),te=v||((N=ie==null?void 0:ie.find(K=>(K==null?void 0:K.label)==="证书附件"))==null?void 0:N.prop);if(te&&d[te]){const K=d[te];let Ce=[],Be="",He=!1;if(typeof K=="string")try{const je=JSON.parse(K);Array.isArray(je)&&(Ce=je.map(Je=>({name:(Je==null?void 0:Je.name)||(Je==null?void 0:Je.fileName)||"",url:(Je==null?void 0:Je.url)||""})).filter(Je=>Je.url||Je.name),Ce.length>0&&(Be=Ce[0].url||"",He=String(Ce[0].name).toLowerCase().endsWith(".pdf")||String(Be).toLowerCase().endsWith(".pdf")))}catch{Be=K,He=String(K).toLowerCase().endsWith(".pdf"),Ce=[{name:K,url:K}]}else Array.isArray(K)&&(Ce=K.map(je=>({name:(je==null?void 0:je.name)||(je==null?void 0:je.fileName)||"",url:(je==null?void 0:je.url)||""})).filter(je=>je.url||je.name),Ce.length>0&&(Be=Ce[0].url||"",He=String(Ce[0].name).toLowerCase().endsWith(".pdf")||String(Be).toLowerCase().endsWith(".pdf")));if(Ce.length>0||Be){const je={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:He?"pdf":"image",sourceUrl:He?Be:"",images:Ce};M=[je],ja(u==null?void 0:u.index,B,je)}}}if(!M||M.length===0){Ga.ElMessage.warning("暂无可预览数据");return}ra.value=M,Oe.value=!0},mo=d=>{al.value=al.value.filter((v,B)=>B!==d)},$n=async(d,v,B)=>{var M,F,N,ie,te,K,Ce,Be,He,je,Je,ha,$a,qa,ta,Qa,ya,Pa,ve,Sa,sa;if(ce(u.config,{type:Xe.TABLE,tableOperate:d})){if(Oa.value="",Ia.value=!0,za.value=!0,Me("onButtonClick",d,v),$.value=[],d==="删除")dn.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var wa,Ea,T,J;(wa=Ee.value)!=null&&wa.find(Re=>(Re==null?void 0:Re.id)===(v==null?void 0:v.id))?Ee.value=(Ea=L.cloneDeep(Ee.value))==null?void 0:Ea.filter(Re=>(Re==null?void 0:Re.id)!==(v==null?void 0:v.id)):Ee.value=ui(L.cloneDeep(Ee.value),v);try{v!=null&&v.id&&((J=(T=We.value)==null?void 0:T.has)!=null&&J.call(T,v==null?void 0:v.id))&&We.value.delete(v.id)}catch{}Tf(Yr.value,gn.value,v==null?void 0:v.id),Ue.setTableLoading(u==null?void 0:u.index),Me("change",{content:Ee.value,fixContent:[v],index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.groupNames,buttonName:d,columns:pe.value,relatedContents:u==null?void 0:u.related}),console.log(v,"item")});else if(d==="批量删除"){if(((M=ir.value)==null?void 0:M.length)===0)return Ga.ElMessage.warning("请先勾选操作的数据");dn.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var T,J,Re,na,Se;const wa=(T=ir.value)==null?void 0:T.map(ia=>ia.id);Ee.value=(J=L.cloneDeep(Ee.value))==null?void 0:J.filter(ia=>!(wa!=null&&wa.includes(ia.id))),Ue.setTableLoading(u==null?void 0:u.index),Me("change",{content:Ee.value,fixContent:ir.value,index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.compName,buttonName:d,relatedContents:u==null?void 0:u.related,columns:pe.value});const Ea=(wa||[]).filter(Boolean);if(Ea.length>0&&Ea.every(ia=>ia!=null&&ia!=="")){const ia=(ir.value||[]).map(Da=>{const tl={...Da};return delete tl._isOCRRow,delete tl._ocrTableId,delete tl._isTemp,delete tl.tableEditType,delete tl.index,tl});await L.pageBatchDeleteApi({platId:parseInt((Re=Ll.value)==null?void 0:Re.plat_id),changeContents:[{tableName:((na=u==null?void 0:u.related)==null?void 0:na.find(Da=>Da==null?void 0:Da.includes("content_")))||((Se=u==null?void 0:u.related)==null?void 0:Se.find(Da=>Da==null?void 0:Da.includes("content"))),tableContents:ia}]})}})}else if(d==="复制新增"){oe.value="复制新增",L.cloneDeep(v);const wa=(F=pe.value)==null?void 0:F.find(Ea=>Ea==null?void 0:Ea.isMainKey);wa||((N=pe.value)==null||N[0]),cr.value=v,Vo(!0)}else if(d==="新增")oe.value="新增",$o(""),we.value=!0;else if(d==="编辑")oe.value="编辑",$o(v),we.value=!0;else if(d==="查看")oe.value="查看",$o(v),Ia.value=!1,za.value=!1,we.value=!0;else if(d==="查看三维模型"){const wa={};for(let T in v)T!=="id"&&(wa[T]=v[T]);let Ea=(ie=Object.values(wa))==null?void 0:ie[1];$e.setTableShowThree(Ea)}else if(d==="切换视图")gu();else if(((te=B==null?void 0:B.extra)==null?void 0:te.type)==="modelExample")oe.value=d,ze.value=!0;else if(d==="新建"){let wa=he.value,Ea=[];for(let Se in wa)Se!=null&&Se.includes(`loading${((K=Ll.value)==null?void 0:K.account)||((Ce=Ll.value)==null?void 0:Ce.账号)}`)&&(Ea=[...Ea,...Se]);let T=[];for(let Se in wa)Se!=null&&Se.includes(`updateLoading${((Be=Ll.value)==null?void 0:Be.account)||((He=Ll.value)==null?void 0:He.账号)}`)&&(T=[...T,...Se]);let J=Ea==null?void 0:Ea.map(Se=>Se==null?void 0:Se.id);const Re=T==null?void 0:T.map(Se=>Se==null?void 0:Se.id);J=[...L.cloneDeep(J),...Re],(J==null?void 0:J.length)>0&&(J!=null&&J.every(Se=>Se!==null&&Se))&&await Dr.batchDeleteInsofDataApi({ids:J});const na=(je=va.value)==null?void 0:je.find(Se=>(Se==null?void 0:Se.label)==="新建");await cu(!1,na)}else if(d==="修改模板"){let wa=L.cloneDeep(qe).value;Ue.setRouteToChildPath(wa),Ae.setActiveMenuPath(wa+k)}else if(d==="执行")rt(d,v);else if(d==="导出paraform"){const wa=jo.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Ea=["推力","真空","压力","温度","流量"],T=yl=>{var Tl,Yl,Bl;return yl?typeof(yl==null?void 0:yl.value)=="string"?yl.value:((Bl=(Yl=(Tl=yl==null?void 0:yl._custom)==null?void 0:Tl.value)==null?void 0:Yl.value)==null?void 0:Bl.value)||"":""},J=Array.isArray(mr.value)?mr.value:[],Re=T(J.find(yl=>(yl==null?void 0:yl.condition)==="child")),na=String(Re||"").slice(0,8),Se=yl=>{if(yl==null)return"";const Tl=String(yl).trim();if(!Tl)return"";if(/^\d{8}$/.test(Tl))return Tl;const Yl=Tl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Yl){const Gl=Yl[1],er=Yl[2].padStart(2,"0"),ql=Yl[3].padStart(2,"0");return`${Gl}${er}${ql}`}const Bl=Tl.replace(/\D/g,"");return Bl.length>=8?Bl.slice(0,8):""},ia=async yl=>{var Tl,Yl;if(!yl)return"";try{const Bl=await Kr("试验任务/任务管理",!1),Gl=(hr,tr=[])=>{if(!Array.isArray(hr))return tr;for(const ur of hr)(ur==null?void 0:ur.comp)==="Table"&&(ur!=null&&ur.name)&&tr.push(ur),Array.isArray(ur==null?void 0:ur.children)&&Gl(ur.children,tr),Array.isArray(ur==null?void 0:ur.tab)&&Gl(ur.tab,tr),Array.isArray(ur==null?void 0:ur.choice)&&Gl(ur.choice,tr);return tr},ql=Gl(Bl||[]).find(hr=>(hr==null?void 0:hr.name)==="任务列表"),fr=((Yl=(Tl=ql==null?void 0:ql.compData)==null?void 0:Tl.find(hr=>(hr==null?void 0:hr.key)==="tableContents"))==null?void 0:Yl.contents)||[];if(!Array.isArray(fr)||fr.length===0)return"";const qr=fr.find(hr=>String((hr==null?void 0:hr["试验代号(名称)"])||"").slice(0,8)===yl);return Se(qr==null?void 0:qr.计划试验时间)}catch(Bl){return console.warn("获取任务列表计划试验时间失败:",Bl),""}},Da=(qe.value||"").replace(/\/+$/,""),tl=Re?`${Da}/${Re}`:Da,Ya=await Kr(tl||qe.value,!1),ul=String(fa.value||"").trim(),dl=yl=>String(yl||"").trim(),Vl=(yl,Tl=[],Yl="")=>{if(!Array.isArray(yl))return Tl;for(const Bl of yl){const Gl=dl((Bl==null?void 0:Bl.choiceName)||(Bl==null?void 0:Bl.name0)||Yl);(Bl==null?void 0:Bl.comp)==="Table"&&(Bl==null?void 0:Bl.name)&&Ea.includes(Bl.name)&&(!ul||Gl===ul)&&Tl.push(Bl),Array.isArray(Bl==null?void 0:Bl.children)&&Vl(Bl.children,Tl,Gl),Array.isArray(Bl==null?void 0:Bl.tab)&&Vl(Bl.tab,Tl,Gl),Array.isArray(Bl==null?void 0:Bl.choice)&&Vl(Bl.choice,Tl,Gl)}return Tl},Ka=Vl(Ya||[]),vl=new Map;for(const yl of Ka)yl!=null&&yl.name&&!vl.has(yl.name)&&vl.set(yl.name,yl);const Fa=Ea.map(yl=>vl.get(yl)).filter(Boolean);if(!Fa||Fa.length===0)return Ga.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const sl=yl=>{const Tl=new Map,Yl=(Bl,Gl=[])=>{if(Array.isArray(Bl))for(const er of Bl){const ql=((er==null?void 0:er.label)??"").toString().trim(),fr=ql?[...Gl,ql]:[...Gl];if(Array.isArray(er==null?void 0:er.children)&&er.children.length>0)Yl(er.children,fr);else{const hr=((er==null?void 0:er.prop)??"").toString();if(!hr)continue;const tr=ql||hr,ur=(fr.length>0?[...Gl,tr]:[tr]).join(".");Tl.set(hr,ur)}}};return Yl(yl,[]),Tl},Xa=(yl,Tl)=>{const Yl=sl(yl||[]),Gl=(oa.getAllLeafNodes(yl||[])||[]).filter(ql=>(ql==null?void 0:ql.prop)&&(ql==null?void 0:ql.type)!=="operate"&&(ql==null?void 0:ql.label)!=="操作"&&(ql==null?void 0:ql.prop)!=="operate"),er=Array.isArray(Tl)?Tl:[];return er.length===0?[]:er.map(ql=>{const fr={};return Gl.forEach(qr=>{const hr=String(qr.prop),tr=Yl.get(hr)||String(qr.label||qr.prop);fr[tr]=(ql==null?void 0:ql[hr])??""}),fr})},cl=Fa.map(yl=>{var er,ql;const Tl=(yl==null?void 0:yl.compData)||[];let Yl=(er=Tl==null?void 0:Tl.find(fr=>(fr==null?void 0:fr.key)==="header"))==null?void 0:er.contents;Array.isArray(Yl==null?void 0:Yl[0])&&(Yl=Yl[0]);const Bl=((ql=Tl==null?void 0:Tl.find(fr=>(fr==null?void 0:fr.key)==="tableContents"))==null?void 0:ql.contents)||[];if(!Array.isArray(Yl)||Yl.length===0||!Array.isArray(Bl)||Bl.length===0)return null;const Gl=Xa(Yl||[],Bl||[]);return!Array.isArray(Gl)||Gl.length===0?null:{类型:yl==null?void 0:yl.name,数据:Gl}}).filter(Boolean);if(!cl||cl.length===0)return Ga.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const _l=await ia(na),Nl={试验代号:na,试验日期:_l,ParaForm:cl},xr=await ho().catch(()=>""),Il=await L.exportParaformApi(Nl,xr);if(((Je=Il==null?void 0:Il.data)==null?void 0:Je.code)===200&&(($a=(ha=Il==null?void 0:Il.data)==null?void 0:ha.result)!=null&&$a.Excel文件)){const yl=Il.data.result.Excel文件,Tl=await L.platformDownloadFile({url:yl}),Yl=new Blob([Tl.data],{type:"application/vnd.ms-excel"}),Bl=URL.createObjectURL(Yl),Gl=Pn.dayjs().format("YYYYMMDD"),ql=`${(na||"UNKNOWN").trim()||"UNKNOWN"}_${Gl}_paraform.xls`,fr=document.createElement("a");fr.href=Bl,fr.download=ql,fr.style.display="none",document.body.appendChild(fr),fr.click(),setTimeout(()=>{document.body.removeChild(fr),URL.revokeObjectURL(Bl)},100);const qr=Array.isArray((ta=(qa=Il==null?void 0:Il.data)==null?void 0:qa.result)==null?void 0:ta.warnings)?Il.data.result.warnings:[];if(qr.length>0){const hr=qr.map((tr,ur)=>`${ur+1}. ${(tr==null?void 0:tr.field)||"未知字段"}:${(tr==null?void 0:tr.message)||""}`).join(`
|
|
24
|
+
`);Ga.ElMessage.warning({message:`导出成功,但存在以下提示:
|
|
25
|
+
${hr}`,duration:5e3,showClose:!0})}else Ga.ElMessage.success("导出成功")}else Ga.ElMessage.error(((Qa=Il==null?void 0:Il.data)==null?void 0:Qa.message)||"导出失败")}catch(Ea){console.error("导出paraform失败:",Ea),Ga.ElMessage.error("导出失败:"+((Ea==null?void 0:Ea.message)||"未知错误"))}finally{wa.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((ya=ir.value)==null?void 0:ya.length)===0)return Ga.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Pa=Ee.value)==null?void 0:Pa.length)===0)return Ga.ElMessage.warning("暂无数据导出");let wa=["序号",...(Sa=(ve=pe.value)==null?void 0:ve.map(Re=>Re==null?void 0:Re.prop))==null?void 0:Sa.filter(Re=>Re!=="操作")],Ea=d==="导出全部"?Ee.value:ir.value;const T=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Ea=Ea==null?void 0:Ea.map(Re=>Object.fromEntries(Object.entries(Re).filter(([na])=>!T.includes(na)))),wa=["序号",...wa],Ea=Ea==null?void 0:Ea.map((Re,na)=>({序号:na+1,...Re}));let J=(u==null?void 0:u.compName)||"表格信息";ji(Ea,J,wa,J)}else if(d==="OCR识别")Ca.value=!0,al.value=[],_e.value=1,Ba.value.clear(),Ge.value.clear(),X.value=0;else if(d==="迁移")t.selectRow=v,t.show=!0;else if(d==="生成方法"){let wa=await Gf(v),Ea;v!==""?Ea=[v]:Ea=L.cloneDeep(Ee.value),Ea=Ea==null?void 0:Ea.map(J=>(J.输出值=wa,J));const T={fixContent:Ea,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:pe.value,name:u==null?void 0:u.groupNames};Me("change",T)}else if(((sa=B==null?void 0:B.extra)==null?void 0:sa.type)==="methodButton"){let wa;v!==""?wa=[v]:wa=L.cloneDeep(Ee.value);const T={fixContent:await gt(wa,pe==null?void 0:pe.value,"Manual",Ee.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:pe.value,name:u==null?void 0:u.groupNames};Me("change",T)}}},tu=async(d,v)=>{var B,M,F,N,ie,te,K,Ce,Be,He,je,Je,ha,$a,qa,ta,Qa,ya,Pa,ve;try{let Sa,sa;const wa=(B=he.value[qe.value+k])==null?void 0:B.filter(Da=>{var tl;return((tl=Da==null?void 0:Da.key)==null?void 0:tl.type)==="structureMethod"}),Ea=(M=he.value[qe.value+k])==null?void 0:M.filter(Da=>{var tl;return((tl=Da==null?void 0:Da.key)==null?void 0:tl.type)==="structure"}),T=wa==null?void 0:wa.find(Da=>{var tl,Ya;return((Ya=(tl=Da==null?void 0:Da.value)==null?void 0:tl.pageData)==null?void 0:Ya.method)==="保存"});if(!T)return;const J=(te=(ie=he.value[(N=(F=T==null?void 0:T.value)==null?void 0:F.pageData)==null?void 0:N.path])==null?void 0:ie.filter(Da=>{var tl;return((tl=Da==null?void 0:Da.key)==null?void 0:tl.type)==="data"}))==null?void 0:te.find(Da=>{var tl,Ya,ul,dl;return((Ya=(tl=Da==null?void 0:Da.value)==null?void 0:tl.tableData)==null?void 0:Ya.算法名称)===((dl=(ul=T==null?void 0:T.value)==null?void 0:ul.pageData)==null?void 0:dl.method)});if(!J)return;const Re={buttonName:(Ce=(K=T==null?void 0:T.value)==null?void 0:K.pageData)==null?void 0:Ce.method,api:(He=(Be=J==null?void 0:J.value)==null?void 0:Be.tableData)==null?void 0:He.算法体,content:Ea==null?void 0:Ea.map(Da=>{var tl;return(tl=Da==null?void 0:Da.value)==null?void 0:tl.pageData}),extraContent:[],extraValues:(Je=(je=T==null?void 0:T.value)==null?void 0:je.pageData)==null?void 0:Je.data,methodName:($a=(ha=T==null?void 0:T.value)==null?void 0:ha.pageData)==null?void 0:$a.path};if(!d)return;const na={...d,compData:(qa=d==null?void 0:d.compData)==null?void 0:qa.map(Da=>{var tl;return(Da==null?void 0:Da.key)==="formContent"?{...Da,contents:(tl=Da==null?void 0:Da.contents)==null?void 0:tl.map(Ya=>(Ya==null?void 0:Ya.prop)===v?{...Ya,value:""}:Ya)}:Da})},Se={key:{pageKey:qe.value+k,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:na}},ia=await Ga.axios.post(Re.api,Se,{headers:{"Content-Type":"application/json"}});return((ta=ia==null?void 0:ia.data)==null?void 0:ta.code)===200&&(Sa=(ya=(Qa=ia==null?void 0:ia.data)==null?void 0:Qa.result)==null?void 0:ya.latestReportCode,sa=(ve=(Pa=ia==null?void 0:ia.data)==null?void 0:Pa.result)==null?void 0:ve.status),{newMainKeyValue:Sa,newStatus:sa}}catch(Sa){throw Ga.ElMessage.error(Sa),new Error(Sa)}},Mt=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const su=async(d,v,B)=>{var K,Ce;let M=d==null?void 0:d[v==null?void 0:v.prop],F=1,N,ie;const te=L.cloneDeep(qe).value+k+M;if(te){Mt.value="",N=(K=he.value[te])==null?void 0:K.filter(je=>{var Je;return((Je=je==null?void 0:je.key)==null?void 0:Je.type)==="structure"});const Be=N==null?void 0:N.find(je=>{var Je,ha,$a;return(($a=(ha=(Je=je==null?void 0:je.value)==null?void 0:Je.pageData)==null?void 0:ha.comp)==null?void 0:$a.toUpperCase())==="FORM"});ie={...(Ce=Be==null?void 0:Be.value)==null?void 0:Ce.pageData,id:Be==null?void 0:Be.id};const He=await tu(ie,v==null?void 0:v.prop);if(Mt.value=He==null?void 0:He.newStatus,He!=null&&He.newMainKeyValue)return He==null?void 0:He.newMainKeyValue}if(Ee.value.some(Be=>(Be==null?void 0:Be[v==null?void 0:v.prop])===M)){const Be=M;for(;Ee.value.some(He=>(He==null?void 0:He[v==null?void 0:v.prop])===`${Be}(${F})`);)F++;M=`${Be}(${F})`}return M},cu=async(d,v,B)=>{var N,ie,te,K;let M,F;if(await su(B==null?void 0:B.data,B==null?void 0:B.firstCol),M=L.cloneDeep(qe).value+k,F=L.cloneDeep(M)+`loading${((N=Ll.value)==null?void 0:N.account)||((ie=Ll.value)==null?void 0:ie.账号)}`,v){const Ce=(K=(te=he.value[F])==null?void 0:te.filter(Be=>{var He;return((He=Be==null?void 0:Be.key)==null?void 0:He.parentTable)===""}))==null?void 0:K.map(Be=>{var He;return{id:Be==null?void 0:Be.id,...(He=Be==null?void 0:Be.value)==null?void 0:He.pageData}});(Ce==null?void 0:Ce.length)>0||await oa.loadingConstruct(M,F,null,null,null),Ue.setRouteToChildPath(L.cloneDeep(qe).value),Ae.setActiveMenuPath(F)}else Ue.setRouteToChildPath(L.cloneDeep(qe).value),Ae.setActiveMenuPath(F)},uu=()=>{Ne.value=!1,ba.value=[],Fe.value=!1},$o=d=>{var N,ie,te,K,Ce,Be,He,je,Je,ha,$a,qa,ta,Qa,ya,Pa,ve,Sa,sa,wa,Ea;const v=[];ue.value=L.cloneDeep(pe.value),(ie=oa.getColumnChild((N=L.cloneDeep(pe.value))==null?void 0:N.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||ie.forEach((T,J)=>{var Re,na,Se;T!=null&&T.formType&&((Re=T==null?void 0:T.formType)==null?void 0:Re.toUpperCase())==="SELECT"||T!=null&&T.menuId?v.push({label:(na=T==null?void 0:T.prop)!=null&&na.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",name:(T==null?void 0:T.prop)??"t"+J,prop:T==null?void 0:T.prop,type:"Select",value:(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??J,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,relatedValueId:T==null?void 0:T.relatedValueId,disabled:T==null?void 0:T.disabled,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,allSelectionContents:(T==null?void 0:T.allSelectionContents)??[],filterContent:T==null?void 0:T.filterContent,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter}):v.push({label:(Se=T==null?void 0:T.prop)!=null&&Se.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"+J,type:!(T!=null&&T.formType)||(T==null?void 0:T.formType)===""?"Input":T==null?void 0:T.formType,value:(T==null?void 0:T.formType)==="Upload"?(d==null?void 0:d[T==null?void 0:T.prop])??"{}":(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??J,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter})}),d===""||!d||(Oa.value=(d==null?void 0:d.id)??"");let B=oa.getColumnChild((te=L.cloneDeep(pe.value))==null?void 0:te.filter(T=>(T==null?void 0:T.label)!=="操作"));ca.value&&((K=ca.value)==null?void 0:K.length)>0&&(ca.value=(Ce=L.cloneDeep(ca).value)==null?void 0:Ce.map(T=>{var Re;let J=(T==null?void 0:T.prop)||((Re=B==null?void 0:B.find(na=>(na==null?void 0:na.label)===(T==null?void 0:T.label)))==null?void 0:Re.prop);return J&&(T.value=d[J]),T})),Ha.value=ca.value&&((Be=ca.value)==null?void 0:Be.length)>0?oa.getTableFormToForm(ca.value):v,Ha.value=((He=Ha.value)==null?void 0:He.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??Ha.value;let M=[],F=((ha=(Je=(je=u.itemData)==null?void 0:je.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Je[0])==null?void 0:ha.contents)??"";if(F=aa.analyzeSplitToContent(F,","),(F==null?void 0:F.length)>0&&(M=F.flat()),(M==null?void 0:M.length)>0){let T=M==null?void 0:M.filter(ia=>ia==null?void 0:ia.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 ia=(qa=($a=T==null?void 0:T.replace("=",_))==null?void 0:$a.split(_))==null?void 0:qa[1];((ta=ia==null?void 0:ia.trim())==null?void 0:ta.toUpperCase())==="MANUAL"&&(u==null||u.index,Ha.value=(Qa=Ha.value)==null?void 0:Qa.map((Da,tl)=>Da))}let J=(ya=Ha.value)==null?void 0:ya.filter(ia=>ia==null?void 0:ia.mainKey),Re;J==null||J.forEach(ia=>{var tl;if(Re!==void 0)return;let Da=ia==null?void 0:ia.menus;((tl=J==null?void 0:J.filter(Ya=>Ya==null?void 0:Ya.mainKey))==null?void 0:tl.length)>1&&(Re=Da,ia==null||ia.groups)});let na=[],Se=new Map;if(J==null||J.forEach(ia=>{var Da,tl,Ya,ul,dl,Vl,Ka,vl,Fa,sl,Xa,cl,_l;if((Da=ia==null?void 0:ia.prop)!=null&&Da.includes(".")){let Nl=[];Se.get(((Ya=(tl=ia==null?void 0:ia.prop)==null?void 0:tl.split("."))==null?void 0:Ya[0])+(ia!=null&&ia.isMainPath?0:1)+((ul=ia==null?void 0:ia.groups)==null?void 0:ul[0]))&&(Nl=Se.get(((Vl=(dl=ia==null?void 0:ia.prop)==null?void 0:dl.split("."))==null?void 0:Vl[0])+(ia!=null&&ia.isMainPath?0:1)+((Ka=ia==null?void 0:ia.groups)==null?void 0:Ka[0]))),Nl.push(ia),Se.set(((Fa=(vl=ia==null?void 0:ia.prop)==null?void 0:vl.split("."))==null?void 0:Fa[0])+(ia!=null&&ia.isMainPath?0:1)+((sl=ia==null?void 0:ia.groups)==null?void 0:sl[0]),Nl)}else{let Nl=[];Se.get("normal"+(ia!=null&&ia.isMainPath?0:1)+((Xa=ia==null?void 0:ia.groups)==null?void 0:Xa[0]))&&(Nl=Se.get("normal"+(ia!=null&&ia.isMainPath?0:1)+((cl=ia==null?void 0:ia.groups)==null?void 0:cl[0]))),Nl.push(ia),Se.set("normal"+(ia!=null&&ia.isMainPath?0:1)+((_l=ia==null?void 0:ia.groups)==null?void 0:_l[0]),Nl)}}),na=Array.from(Se.values()),(na==null?void 0:na.length)>0)for(let ia in na){let Da=na==null?void 0:na[ia];if((Da==null?void 0:Da.length)!==1){if((Da==null?void 0:Da.length)>1){let tl=Da==null?void 0:Da.map(sl=>sl==null?void 0:sl.prop),Ya=Da==null?void 0:Da.map(sl=>sl==null?void 0:sl.label),ul=Da==null?void 0:Da.map(sl=>sl==null?void 0:sl.value),dl=(Pa=L.cloneDeep(Da))==null?void 0:Pa[0],Vl=(ve=Ha.value)==null?void 0:ve.findIndex(sl=>(sl==null?void 0:sl.prop)===(dl==null?void 0:dl.prop)),Ka=(Sa=Ha.value)==null?void 0:Sa.slice(0,Vl),vl=(wa=Ha.value)==null?void 0:wa.slice(Vl,(sa=Ha.value)==null?void 0:sa.length);dl.label=Ya==null?void 0:Ya.join("·"),dl.value=ul==null?void 0:ul.join(" "),dl.value.trim()===""&&(dl.value=""),dl.prop=tl==null?void 0:tl.join("·");let Fa=Da==null?void 0:Da.map(sl=>{var Xa;return(Xa=sl==null?void 0:sl.words)==null?void 0:Xa.join(".")});dl.relatedWords=Fa,dl.usingType="parent",vl.unshift(dl),Ha.value=[...Ka,...vl],Ha.value=(Ea=Ha.value)==null?void 0:Ea.map(sl=>(tl!=null&&tl.find(Xa=>Xa===(sl==null?void 0:sl.prop))&&(sl.isFormColHidden=!0,sl.relatedWords=Fa),sl))}}}}},du=()=>{var v;const d=(v=s.value)==null?void 0:v.$el;d&&aa.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:B=>{var ie;const{oldIndex:M,newIndex:F}=B;if(M===F)return;const N=Dn.value.splice(M,1)[0];Dn.value.splice(F,0,N),pe.value=(ie=pe.value)==null?void 0:ie.slice().sort((te,K)=>{if(te.label==="操作")return 1;if(K.label==="操作")return-1;const Ce=Dn.value.findIndex(He=>He.label===te.label),Be=Dn.value.findIndex(He=>He.label===K.label);return Ce-Be})}})};a.onMounted(()=>{ka.value=window.innerWidth-240*2,window.addEventListener("keydown",Qo)});const pu=()=>{a.nextTick(()=>{du()})},it=(d,v)=>{var M;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let B;return d.children=(M=d.children)==null?void 0:M.map(F=>{var N,ie;if((F==null?void 0:F.id)===Oa.value){let te={};for(let K in F){let Ce=(N=v==null?void 0:v.find(Be=>(Be==null?void 0:Be.prop)===K))==null?void 0:N.label;Ce?te[K]=(ie=cr.value)==null?void 0:ie[Ce]:te[K]=F[K]??""}F=Object.assign(te,cr.value),B=F}else{let te=it(F,v);F=te==null?void 0:te.contents,B=te==null?void 0:te.currentSelectContents}return F}),{contents:d,currentSelectContents:B}},It=(d,v)=>{let B,M;return d!=null&&d.find(F=>(F==null?void 0:F.id)===Oa.value)?B=d==null?void 0:d.map(F=>{var N,ie,te;if((F==null?void 0:F.id)===Oa.value){let K={};for(let Be in F){let He=(N=v==null?void 0:v.find(je=>(je==null?void 0:je.prop)===Be))==null?void 0:N.label;He?K[Be]=((ie=cr.value)==null?void 0:ie[He])??"":K[Be]=F[Be]??""}let Ce=cr.value;for(let Be in K)(te=cr.value)!=null&&te[Be]||(Ce[Be]=(K==null?void 0:K[Be])??"");F=Ce,M=F}return F}):B=d==null?void 0:d.map(F=>{var N,ie,te,K;if((F==null?void 0:F.id)===Oa.value){let Ce={};for(let Be in F){let He=(N=v==null?void 0:v.find(je=>(je==null?void 0:je.prop)===Be))==null?void 0:N.label;He?Ce[Be]=(ie=cr.value)==null?void 0:ie[He]:Ce[Be]=F[Be]??""}F=Object.assign(Ce,cr.value),M=F}else F=(te=it(F,v))==null?void 0:te.contents,M=(K=it(F,v))==null?void 0:K.currentSelectContents;return F}),{newContents:B,currentSelectContents:M}},Ot=(d,v,B)=>{var M,F;return d[v==null?void 0:v.prop]=B,typeof d.id=="number"&&(d.id=(M=d.id)==null?void 0:M.toString()),d.children&&((F=d.children)==null?void 0:F.length)>0&&(d.children=d.children.map(Ot)),d},Lt=d=>{var B;const v=[];return v.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((B=d.children)==null||B.forEach(M=>{v.push(...Lt(M))})),(v==null?void 0:v.length)>0?v==null?void 0:v.map(M=>{const F={...M};return delete F.children,F}):[]},di=["Pacific6000数据采集装置.通道号","通道号"],Ro=d=>{if(!d)return"";const v=di.map(B=>d==null?void 0:d[B]).find(B=>B!=null&&String(B).trim()!=="");return v==null?"":String(v).trim()},tt=async(d,v=void 0)=>{if(!d)return!1;try{const B=Je=>{var ha,$a,qa;return Je?typeof(Je==null?void 0:Je.value)=="string"?Je.value:((qa=($a=(ha=Je==null?void 0:Je._custom)==null?void 0:ha.value)==null?void 0:$a.value)==null?void 0:qa.value)||"":""},M=Array.isArray(mr.value)?mr.value:[],F=B(M.find(Je=>(Je==null?void 0:Je.condition)==="child")),N=(qe.value||"").replace(/\/+$/,""),ie=F?`${N}/${F}`:N,te=await Kr(ie||qe.value,!1),K=String(fa.value||"").trim(),Ce=Je=>String(Je||"").trim(),Be=(Je,ha=[],$a="")=>{if(!Array.isArray(Je))return ha;for(const qa of Je){const ta=Ce((qa==null?void 0:qa.choiceName)||(qa==null?void 0:qa.name0)||$a);(qa==null?void 0:qa.comp)==="Table"&&(!K||ta===K)&&ha.push(qa),Array.isArray(qa==null?void 0:qa.children)&&Be(qa.children,ha,ta),Array.isArray(qa==null?void 0:qa.tab)&&Be(qa.tab,ha,ta),Array.isArray(qa==null?void 0:qa.choice)&&Be(qa.choice,ha,ta)}return ha},He=Be(te||[]),je=String((u==null?void 0:u.compName)||"");return He.some(Je=>{var $a,qa;const ha=((qa=($a=Je==null?void 0:Je.compData)==null?void 0:$a.find(ta=>(ta==null?void 0:ta.key)==="tableContents"))==null?void 0:qa.contents)||[];return!Array.isArray(ha)||ha.length===0?!1:ha.some(ta=>{if(String((Je==null?void 0:Je.name)||"")===je&&(ta==null?void 0:ta.id)===v)return!1;const ya=Ro(ta);return!!ya&&ya===d})})}catch{return(Ee.value||[]).some(M=>{if((M==null?void 0:M.id)===v)return!1;const F=Ro(M);return!!F&&F===d})}},Vo=async(d=!0,v,B)=>{var Ce,Be,He,je,Je,ha,$a,qa,ta,Qa,ya,Pa,ve,Sa,sa,wa,Ea,T,J,Re,na,Se,ia,Da,tl,Ya,ul,dl,Vl,Ka,vl;if(cr.value){const Fa=(Be=oa.getColumnChild((Ce=L.cloneDeep(pe.value))==null?void 0:Ce.filter(Xa=>(Xa==null?void 0:Xa.label)!=="操作")))==null?void 0:Be.filter(Xa=>(Xa==null?void 0:Xa.required)===!0);for(let Xa=0;Xa<((Fa==null?void 0:Fa.length)??0);Xa++){const cl=Fa[Xa],_l=cl==null?void 0:cl.prop,Nl=(cl==null?void 0:cl.label)??_l,xr=(He=cr.value)==null?void 0:He[_l];if(xr===""||xr===null||xr===void 0||Array.isArray(xr)&&xr.length===0){Ga.ElMessage.error(`${Nl}不能为空`);return}}const sl=Ro(cr.value);if(sl&&await tt(sl,Oa.value||void 0)){Ga.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let M=oa.getColumnChild((je=L.cloneDeep(pe.value))==null?void 0:je.filter(Fa=>(Fa==null?void 0:Fa.label)!=="操作")),F,N=L.cloneDeep(Ee.value);if(!cr.value){we.value=!1;return}if(Oa.value===""){H.value++;let Fa;Fa={id:H.value.toString()};try{Fa.sort=Ln(0,Ee.value||[])}catch{}Fa!=null&&Fa.children&&(Fa={...Fa,children:(Je=Fa.children)==null?void 0:Je.map(Xa=>Ot(Xa,v,B))});const sl=Object.assign(cr.value,Fa);N.unshift(sl),F=sl}else N=(ha=It(N,M))==null?void 0:ha.newContents,F=($a=It(N,M))==null?void 0:$a.currentSelectContents;const ie=(qa=u.itemData)==null?void 0:qa.filter(Fa=>(Fa==null?void 0:Fa.key)==="childTree")[0];if(((ta=ie==null?void 0:ie.contents)==null?void 0:ta.length)>0){oe.value="编辑";const Fa=[];N==null||N.forEach((cl,_l)=>{var xr;let Nl={};if(Array.isArray(cl)){let Il=[];cl==null||cl.filter(yl=>!(yl!=null&&yl.id)).forEach((yl,Tl)=>{var Yl,Bl,Gl,er,ql,fr,qr;if((Bl=(Yl=Lr.value)==null?void 0:Yl[Tl])!=null&&Bl.prop&&!Array.isArray(yl)){let hr={};hr[Lr.value[Tl].column]=yl,La!=null&&La.value&&((Gl=La==null?void 0:La.value)==null?void 0:Gl.length)>0&&((er=La==null?void 0:La.value)!=null&&er.find(tr=>JSON.stringify(tr==null?void 0:tr[0])===JSON.stringify(hr)))&&(Il=(ql=La==null?void 0:La.value)==null?void 0:ql.find(tr=>JSON.stringify(tr==null?void 0:tr[0])===JSON.stringify(hr))),Il&&Il.length>0?Nl[Lr.value[Tl].prop]=Il!=null&&Il.find(tr=>{var ur;return((ur=Object.keys(tr))==null?void 0:ur[0])===Lr.value[Tl].column})?(fr=Il==null?void 0:Il.find(tr=>{var ur;return((ur=Object.keys(tr))==null?void 0:ur[0])===Lr.value[Tl].column}))==null?void 0:fr[Lr.value[Tl].column]:yl:Nl[Lr.value[Tl].prop]=yl}else Array.isArray(yl)&&((qr=Lr.value[Tl])!=null&&qr.prop?Nl[Lr.value[Tl].prop]=yl:Nl.children=bt(yl,Lr.value))})}else Nl=cl;if(Array.isArray(cl)&&cl.some(Il=>Il==null?void 0:Il.id)){const Il=(xr=cl==null?void 0:cl.find(yl=>yl.id))==null?void 0:xr.id;Fa.push(Object.assign(Nl,{id:ii(Il)}))}else Nl.id?Fa.push(Nl):Fa.push(Object.assign(Nl,{id:_l.toString()}))});const sl=(Ee.value||[]).map(cl=>String(cl==null?void 0:cl.id)),Xa=ti(Fa,sl);Ee.value=Ft(Xa,ie,pe.value)}Rt(Ee.value),Yr.value=Ee.value;const te=zf(Yr.value,gn.value,N);let K=[];if(V.value?(K=(Qa=L.cloneDeep(V).value.singleContent)==null?void 0:Qa.filter(Fa=>(Fa==null?void 0:Fa.id)!==(F==null?void 0:F.id)),K.push(F)):K=[F],Al.value){const Fa={content:te,singleContent:((ya=ie==null?void 0:ie.contents)==null?void 0:ya.length)>0?K==null?void 0:K.flatMap(Lt):K,index:u==null?void 0:u.index,buttonName:"编辑",column:pe.value,parentTableId:u==null?void 0:u.parentTableId};Ue.setCacheUpdatingData(Fa)}if((Pa=pe.value)==null||Pa.forEach(Fa=>{(Fa==null?void 0:Fa.formType)==="Upload"&&(F[Fa.prop]=F[Fa.prop]===""?"{}":typeof F[Fa.prop]!="string"?JSON.stringify(F[Fa.prop]):F[Fa.prop])}),d){(wa=(sa=(Sa=(ve=u.itemData)==null?void 0:ve.find(Xa=>(Xa==null?void 0:Xa.key)==="filterAllType"))==null?void 0:Sa.value)==null?void 0:sa.find(Xa=>(Xa==null?void 0:Xa.value)==="onConditionContents"))==null||wa.content;let Fa=(Ea=u.itemData)==null?void 0:Ea.filter(Xa=>(Xa==null?void 0:Xa.key)==="filterAllType");Fa=Array.from(new Map(Fa.filter(Boolean).map((Xa,cl)=>[Xa.value,{...Xa,_idx:cl}])).values()).sort((Xa,cl)=>Xa._idx-cl._idx).map(({_idx:Xa,...cl})=>cl),Fa=(T=Fa==null?void 0:Fa[(Fa==null?void 0:Fa.length)-1])==null?void 0:T.value;const sl={fixContent:[F],buttonName:oe.value,relatedContents:u==null?void 0:u.related,columns:pe.value,name:u==null?void 0:u.groupNames};Ue.setTableLoading(u==null?void 0:u.index),we.value=!1,cr.value=void 0,Me("change",sl)}if((na=(Re=(J=Ha.value)==null?void 0:J[0])==null?void 0:Re.optionUrl)!=null&&na.menuId){we.value=!1;let Fa=(Se=u.itemData)==null?void 0:Se.filter(sl=>(sl==null?void 0:sl.key)==="filterAllType");if((Fa==null?void 0:Fa.length)>0){let sl=Fa==null?void 0:Fa.map(_l=>_l==null?void 0:_l.value),Xa=(tl=(Da=(ia=sl.flat().find(_l=>{var Nl;return(Nl=_l==null?void 0:_l.content)==null?void 0:Nl.includes("@Num")}))==null?void 0:ia.content)==null?void 0:Da.split(":"))==null?void 0:tl[1];((dl=(ul=(Ya=sl.flat().find(_l=>{var Nl;return(Nl=_l==null?void 0:_l.content)==null?void 0:Nl.includes("@Type:")}))==null?void 0:Ya.content)==null?void 0:ul.split(":"))==null?void 0:dl[1])!=="Manual"&&(Xa=parseInt(Xa),Ee.value=(vl=Ee.value)==null?void 0:vl.slice(((Vl=Ee.value)==null?void 0:Vl.length)-Xa,(Ka=Ee.value)==null?void 0:Ka.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",Qo),pe.value=[],Ee.value=[],ue.value=[],da.value=[],ca.value=[],Aa.value=[],ba.value=[],ua.value=[],Ha.value=[],ir.value=[],s.value=null,Mn.value=""});const pi=async(d,v,B)=>{var Je,ha,$a,qa,ta,Qa,ya,Pa,ve,Sa,sa,wa,Ea;Pl.value=(B==null?void 0:B.prop)??(B==null?void 0:B.property);const M=L.cloneDeep(u.itemData),F=((Je=M==null?void 0:M.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Je.contents)??[];let N=F==null?void 0:F.find((T,J)=>{var Re,na,Se;return(T==null?void 0:T.prop)===Pl.value||(T==null?void 0:T.label)===Pl.value||(J==null?void 0:J.toString())===((Se=(na=(Re=Pl.value)==null?void 0:Re.split("a"))==null?void 0:na[1])==null?void 0:Se.toString())});const ie=oa.getColumnChild((ha=L.cloneDeep(pe.value))==null?void 0:ha.filter(T=>(T==null?void 0:T.label)!=="操作"));if(N||(N=ie==null?void 0:ie.find(T=>(T==null?void 0:T.prop)===Pl.value||(T==null?void 0:T.label)===Pl.value)),N&&!(($a=N==null?void 0:N.menus)!=null&&$a.length)&&!((qa=N==null?void 0:N.groups)!=null&&qa.length)&&!((ta=N==null?void 0:N.words)!=null&&ta.length)){const T=(Qa=Ha.value)==null?void 0:Qa.find(J=>(J==null?void 0:J.prop)===Pl.value);T&&(N={...N,menus:(T==null?void 0:T.menus)??(N==null?void 0:N.menus),groups:(T==null?void 0:T.groups)??(N==null?void 0:N.groups),words:(T==null?void 0:T.words)??(N==null?void 0:N.words),bindMenus:(T==null?void 0:T.bindMenus)??(N==null?void 0:N.bindMenus),isMainPath:(T==null?void 0:T.isMainPath)??(N==null?void 0:N.isMainPath),relatedContents:(T==null?void 0:T.relatedContents)??(N==null?void 0:N.relatedContents),endChildMenu:(T==null?void 0:T.endChildMenu)??(N==null?void 0:N.endChildMenu)})}if(N&&((ya=Ha==null?void 0:Ha.value)==null||ya.forEach(T=>{var J,Re,na,Se,ia;(T==null?void 0:T.prop)===(N==null?void 0:N.prop)&&(T!=null&&T.endChildMenu)&&((J=N==null?void 0:N.prop)!=null&&J.includes(".")&&((na=(Re=N==null?void 0:N.prop)==null?void 0:Re.split("."))==null?void 0:na[0])!==((ia=(Se=T==null?void 0:T.prop)==null?void 0:Se.split("."))==null?void 0:ia[0])?N.endChildMenu=T==null?void 0:T.value:N.endChildMenu=T==null?void 0:T.endChildMenu)})),!N)return;const te=Pl.value,K=(Pa=Ee.value)==null?void 0:Pa.findIndex(T=>(T==null?void 0:T.id)===(v==null?void 0:v.id));K!==-1&&te&&(Ee.value[K]={...Ee.value[K],[te]:d});const Ce=T=>{Array.isArray(T)&&T.forEach(J=>{Array.isArray(J==null?void 0:J.allSelectionContents)&&J.allSelectionContents.length>0&&(J.contactValue=Ee.value[K]??v),Array.isArray(J==null?void 0:J.children)&&J.children.length>0&&Ce(J.children)})};Ce(pe.value),N.value=d,N.endChildMenu=N.endChildMenu||"";let Be=N!=null&&N.isMainPath&&(N!=null&&N.mainKey)?N==null?void 0:N.value:"";const He=T=>{Array.isArray(T)&&T.forEach(J=>{var na,Se;if(((J==null?void 0:J.type)==="Select"||(J==null?void 0:J.formType)&&J.formType.toUpperCase()==="SELECT"||(J==null?void 0:J.columnType)&&J.columnType.toUpperCase()==="SELECT")&&Array.isArray(J==null?void 0:J.menus)&&J.menus.length>0&&J.menus[J.menus.length-1]===""&&(N!=null&&N.isMainPath)&&(N!=null&&N.mainKey)){const ia=(na=J==null?void 0:J.prop)!=null&&na.includes(".")?J.prop.split(".")[0]:null,Da=(Se=N==null?void 0:N.prop)!=null&&Se.includes(".")?N.prop.split(".")[0]:null;(!ia||!Da||ia===Da)&&(J.endChildMenu=Be)}Array.isArray(J==null?void 0:J.children)&&J.children.length>0&&He(J.children)})};if(He(pe.value),!!(N!=null&&N.mainKey)&&Array.isArray(N==null?void 0:N.menus)&&(N==null?void 0:N.menus.length)>0&&(N!=null&&N.value)&&(N==null?void 0:N.value)!==""){let T=N!=null&&N.relatedContents&&((ve=N==null?void 0:N.relatedContents)==null?void 0:ve.length)>0?(Sa=N==null?void 0:N.relatedContents)==null?void 0:Sa.find(J=>{var Re,na,Se,ia;return(J==null?void 0:J[(ia=(Re=N==null?void 0:N.prop)==null?void 0:Re.split("."))==null?void 0:ia[((Se=(na=N==null?void 0:N.prop)==null?void 0:na.split("."))==null?void 0:Se.length)-1]])===(N==null?void 0:N.value)}):await ds(N);if(T){const J={...v};ie==null||ie.forEach(Re=>{var na,Se,ia,Da,tl,Ya,ul,dl,Vl,Ka,vl,Fa,sl,Xa,cl,_l;(Re==null?void 0:Re.prop)!==(N==null?void 0:N.prop)&&(N!=null&&N.relatedContents&&((na=N==null?void 0:N.relatedContents)==null?void 0:na.length)>0?(Se=Re==null?void 0:Re.prop)!=null&&Se.includes(".")&&((Da=(ia=Re==null?void 0:Re.prop)==null?void 0:ia.split("."))==null?void 0:Da[0])===((Ya=(tl=N==null?void 0:N.prop)==null?void 0:tl.split("."))==null?void 0:Ya[0])?J[Re.prop]=T[(Ka=(ul=Re==null?void 0:Re.prop)==null?void 0:ul.split("."))==null?void 0:Ka[((Vl=(dl=Re==null?void 0:Re.prop)==null?void 0:dl.split("."))==null?void 0:Vl.length)-1]]??J[Re.prop]:J[Re.prop]=(T==null?void 0:T[Re.prop])??J[Re.prop]:aa.same((N==null?void 0:N.menus)??[],(Re==null?void 0:Re.menus)??[])&&aa.same((N==null?void 0:N.groups)??[],(Re==null?void 0:Re.groups)??[])&&!aa.same((N==null?void 0:N.words)??[],(Re==null?void 0:Re.words)??[])?(vl=Re==null?void 0:Re.prop)!=null&&vl.includes(".")&&((sl=(Fa=Re==null?void 0:Re.prop)==null?void 0:Fa.split("."))==null?void 0:sl[0])!==((cl=(Xa=N==null?void 0:N.prop)==null?void 0:Xa.split("."))==null?void 0:cl[0])||(J[Re.prop]=(T==null?void 0:T[(_l=Re==null?void 0:Re.words)==null?void 0:_l.join(".")])??(T==null?void 0:T[Re.prop])??J[Re.prop]):(!(Re!=null&&Re.isMainPath)&&aa.same((N==null?void 0:N.bindMenus)??[],(Re==null?void 0:Re.bindMenus)??[]),J[Re.prop]=(T==null?void 0:T[Re.prop])??J[Re.prop]))}),Ee.value=(sa=L.cloneDeep(Ee.value))==null?void 0:sa.map(Re=>(Re==null?void 0:Re.id)===(v==null?void 0:v.id)?{...J,id:Re==null?void 0:Re.id}:Re)}}if((wa=N==null?void 0:N.optionUrl)!=null&&wa.menuSelect){let T="";ie==null||ie.forEach(na=>{var Se,ia,Da,tl,Ya;T===""&&((Da=(ia=(Se=na==null?void 0:na.optionUrl)==null?void 0:Se.groupSelect)==null?void 0:ia[1])!=null&&Da.includes("["))&&(T=(Ya=(tl=na==null?void 0:na.optionUrl)==null?void 0:tl.groupSelect)==null?void 0:Ya[1])});let J=await kt(N),Re;if(J==null||J.forEach(na=>{var Se,ia,Da,tl,Ya,ul,dl,Vl,Ka,vl;T===((ia=(Se=N==null?void 0:N.optionUrl)==null?void 0:Se.groupSelect)==null?void 0:ia[1])&&((Ya=(tl=(Da=N==null?void 0:N.optionUrl)==null?void 0:Da.groupSelect)==null?void 0:tl[1])!=null&&Ya.includes("["))&&((vl=L.cloneDeep(na))==null?void 0:vl[(Ka=(Vl=(dl=(ul=N==null?void 0:N.optionUrl)==null?void 0:ul.groupSelect)==null?void 0:dl[1])==null?void 0:Vl.replaceAll("[",""))==null?void 0:Ka.replaceAll("]","")])===(N==null?void 0:N.value)&&(Re=na)}),Re){const na={...v};ie==null||ie.forEach(Se=>{var ia,Da,tl,Ya,ul,dl,Vl,Ka,vl,Fa,sl;(Re!=null&&Re[Se==null?void 0:Se.label]||Re!=null&&Re[(Ya=(tl=(Da=(ia=Se==null?void 0:Se.optionUrl)==null?void 0:ia.groupSelect)==null?void 0:Da[1])==null?void 0:tl.replaceAll("[",""))==null?void 0:Ya.replaceAll("]","")])&&((Vl=(dl=(ul=Se==null?void 0:Se.optionUrl)==null?void 0:ul.groupSelect)==null?void 0:dl[1])!=null&&Vl.includes("["))&&(na[Se.prop]=(Re==null?void 0:Re[Se==null?void 0:Se.label])||(Re==null?void 0:Re[(sl=(Fa=(vl=(Ka=Se==null?void 0:Se.optionUrl)==null?void 0:Ka.groupSelect)==null?void 0:vl[1])==null?void 0:Fa.replaceAll("[",""))==null?void 0:sl.replaceAll("]","")]))}),Ee.value=(Ea=L.cloneDeep(Ee.value))==null?void 0:Ea.map(Se=>(Se==null?void 0:Se.id)===(v==null?void 0:v.id)?{...na,id:Se==null?void 0:Se.id}:Se)}}},fu=async d=>{var Je,ha,$a,qa,ta,Qa,ya,Pa,ve,Sa,sa,wa,Ea,T;if(!d)return;const v=L.cloneDeep(cr.value||{});cr.value=d;const B=Ro(v),M=Ro(cr.value);if(M&&M!==B&&await tt(M,Oa.value||void 0)){Ga.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),di.forEach(Re=>{if(Object.prototype.hasOwnProperty.call(cr.value||{},Re)||Object.prototype.hasOwnProperty.call(v||{},Re)){const na=(v==null?void 0:v[Re])??"";cr.value[Re]=na,d[Re]=na}}),Ha.value=(Ha.value||[]).map(Re=>{if(!(Re!=null&&Re.prop)||!di.includes(Re.prop))return Re;const na=(v==null?void 0:v[Re.prop])??"";return{...Re,value:na,selectValue:na===""?[]:[na]}});return}let F=L.cloneDeep(u.itemData);F==null||F.map(J=>{var Re,na,Se,ia;return(J==null?void 0:J.key)==="header"&&(Array.isArray((Re=J.contents)==null?void 0:Re[0])?J.contents=(Se=oa.getColumnChild((na=J.contents)==null?void 0:na[0]))==null?void 0:Se.map((Da,tl)=>{var Ya,ul,dl,Vl,Ka,vl;return((dl=(ul=(Ya=Ha.value)==null?void 0:Ya.find(Fa=>(Fa==null?void 0:Fa.prop)===(Da==null?void 0:Da.prop)))==null?void 0:ul.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((Vl=Object.values(d))==null?void 0:Vl[tl])?Da.value=[(Ka=Object.values(d))==null?void 0:Ka[tl]]:Da.value=(vl=Object.values(d))==null?void 0:vl[tl],Da}):J.contents=(ia=J.contents)==null?void 0:ia.map((Da,tl)=>{var Ya,ul,dl,Vl,Ka,vl;return((dl=(ul=(Ya=Ha.value)==null?void 0:Ya.find(Fa=>(Fa==null?void 0:Fa.prop)===(Da==null?void 0:Da.prop)))==null?void 0:ul.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((Vl=Object.values(d))==null?void 0:Vl[tl])?Da.value=[(Ka=Object.values(d))==null?void 0:Ka[tl]]:Da.value=(vl=Object.values(d))==null?void 0:vl[tl],Da})),J});let N=Ha.value,ie=(Je=F==null?void 0:F.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:Je.contents;if(Pl.value||(N=N==null?void 0:N.map(J=>{var Re;return J.value=J.value??((Re=ie==null?void 0:ie.find((na,Se)=>(na==null?void 0:na.prop)===(J==null?void 0:J.name)))==null?void 0:Re.value),J})),!Vr.value)return;let te=L.cloneDeep(Pl.value);(ha=Pl.value)!=null&&ha.includes("·")&&(Pl.value=(qa=($a=Pl.value)==null?void 0:$a.split("·"))==null?void 0:qa[0]);let K=(Qa=(ta=F==null?void 0:F.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:ta.contents)==null?void 0:Qa.find((J,Re)=>(J==null?void 0:J.prop)===Pl.value);(ya=Ha==null?void 0:Ha.value)==null||ya.forEach(J=>{var Re,na,Se,ia,Da,tl,Ya,ul,dl;(J==null?void 0:J.prop)===(K==null?void 0:K.prop)&&(J!=null&&J.endChildMenu)&&((Re=K==null?void 0:K.prop)!=null&&Re.includes(".")&&((Se=(na=K==null?void 0:K.prop)==null?void 0:na.split("."))==null?void 0:Se[0])!==((Da=(ia=J==null?void 0:J.prop)==null?void 0:ia.split("."))==null?void 0:Da[0])?K.endChildMenu=(Ya=(tl=J==null?void 0:J.value)==null?void 0:tl.split(" "))==null?void 0:Ya[0]:K.endChildMenu=(dl=(ul=J==null?void 0:J.endChildMenu)==null?void 0:ul.split(" "))==null?void 0:dl[0])});let Ce=K!=null&&K.isMainPath&&(K!=null&&K.mainKey)?K==null?void 0:K.value:"",Be=N,He=fe.value;if(He!=null&&He.find(J=>(K==null?void 0:K.prop)===(J==null?void 0:J.key))&&(He=He==null?void 0:He.filter(J=>(K==null?void 0:K.prop)!==(J==null?void 0:J.key))),He!=null&&He.find(J=>te===(J==null?void 0:J.key))&&(He=He==null?void 0:He.filter(J=>te!==(J==null?void 0:J.key))),(K==null?void 0:K.formType)==="Select"&&(Be=Be==null?void 0:Be.map(J=>{var Re,na,Se,ia,Da,tl,Ya,ul,dl,Vl,Ka,vl,Fa,sl,Xa,cl;return(J==null?void 0:J.type)==="Select"&&(((Re=J==null?void 0:J.allSelectionContents)==null?void 0:Re.length)>0&&(J.contactValue=d),((K==null?void 0:K.prop)===(J==null?void 0:J.prop)||te===(J==null?void 0:J.prop))&&K&&(Array.isArray(K.value)&&((na=K.value)==null?void 0:na.length)>0&&((Se=K.value)!=null&&Se.every(_l=>typeof _l=="string"))?(He.push({key:J==null?void 0:J.prop,value:[(Da=K.value)==null?void 0:Da[((ia=K.value)==null?void 0:ia.length)-1]]}),J.selectValue=(tl=He==null?void 0:He.find(_l=>(_l==null?void 0:_l.key)===(J==null?void 0:J.prop)))==null?void 0:tl.value):Array.isArray(K.value)&&((Ya=K.value)==null?void 0:Ya.length)===0?(He=[],J.selectValue=[],d[J==null?void 0:J.prop]=""):Array.isArray(J.value)&&He.push({key:J==null?void 0:J.prop,value:[(ul=J.value)==null?void 0:ul[(J==null?void 0:J.length)-1]]})),((Vl=J==null?void 0:J.menus)==null?void 0:Vl[((dl=J==null?void 0:J.menus)==null?void 0:dl.length)-1])===""&&(K!=null&&K.isMainPath)&&(K!=null&&K.mainKey)&&((Ka=J==null?void 0:J.prop)!=null&&Ka.includes(".")&&((Fa=(vl=J==null?void 0:J.prop)==null?void 0:vl.split("."))==null?void 0:Fa[0])!==((Xa=(sl=K==null?void 0:K.prop)==null?void 0:sl.split("."))==null?void 0:Xa[0])||(J.endChildMenu=(cl=Ce==null?void 0:Ce.split(" "))==null?void 0:cl[0]))),J.value=(d==null?void 0:d[J==null?void 0:J.prop])??(J==null?void 0:J.value),J})),fe.value=He,Be!=null&&Be.some(J=>(J==null?void 0:J.functionName)&&(J==null?void 0:J.functionName)!=="")){let J=await gt([d],pe==null?void 0:pe.value,"Auto",Ee.value),Re=[];(Pa=Be==null?void 0:Be.filter(Se=>(Se==null?void 0:Se.functionName)&&(Se==null?void 0:Se.functionName)!==""))==null||Pa.forEach(Se=>{var ia;((ia=Se==null?void 0:Se.functionRelatedWords)==null?void 0:ia.length)>0&&(Re=[...Re,...Se==null?void 0:Se.functionRelatedWords])}),Re=Re==null?void 0:Re.filter(Se=>(Se==null?void 0:Se[0])!=="@");let na=[];for(let Se in J==null?void 0:J[0])Re!=null&&Re.find(ia=>Se===ia||(Se==null?void 0:Se.includes("."+ia)))&&na.push(((ve=J==null?void 0:J[0])==null?void 0:ve[Se])!=="");(J==null?void 0:J.length)>0&&na.every(Se=>Se)&&(Be=Be==null?void 0:Be.map(Se=>{var ia;return Se.value=((ia=J==null?void 0:J[0])==null?void 0:ia[Se==null?void 0:Se.prop])??Se.value,Se})),cr.value=J==null?void 0:J[0]}if(Ha.value=Be,K=Object.assign({},K??{},{relatedWords:(sa=(Sa=Ha==null?void 0:Ha.value)==null?void 0:Sa.find(J=>(J==null?void 0:J.prop)===(K==null?void 0:K.prop)))==null?void 0:sa.relatedWords}),(K==null?void 0:K.mainKey)&&(K!=null&&K.value)&&(K==null?void 0:K.value)!==""){let J=K!=null&&K.relatedContents&&((wa=K==null?void 0:K.relatedContents)==null?void 0:wa.length)>0?(Ea=K==null?void 0:K.relatedContents)==null?void 0:Ea.find(Re=>{var na,Se,ia,Da;return(Re==null?void 0:Re[(Da=(na=K==null?void 0:K.prop)==null?void 0:na.split("."))==null?void 0:Da[((ia=(Se=K==null?void 0:K.prop)==null?void 0:Se.split("."))==null?void 0:ia.length)-1]])===(K==null?void 0:K.value)}):await ds(K);if(J&&JSON.stringify(J)!=="{}"){let Re=Be;Re=Re==null?void 0:Re.map(Se=>{var ia,Da,tl,Ya,ul,dl,Vl,Ka,vl,Fa,sl,Xa,cl,_l,Nl,xr,Il,yl,Tl,Yl,Bl;if((K==null?void 0:K.prop)===(Se==null?void 0:Se.prop))Se.value=(J==null?void 0:J[(ia=Se==null?void 0:Se.words)==null?void 0:ia.join(".")])??(J==null?void 0:J[Se==null?void 0:Se.prop])??J[(ul=(Da=Se==null?void 0:Se.prop)==null?void 0:Da.split("."))==null?void 0:ul[((Ya=(tl=Se==null?void 0:Se.prop)==null?void 0:tl.split("."))==null?void 0:Ya.length)-1]];else if(K!=null&&K.relatedContents&&((dl=K==null?void 0:K.relatedContents)==null?void 0:dl.length)>0)Se.value=(Vl=Se==null?void 0:Se.prop)!=null&&Vl.includes(".")&&((vl=(Ka=Se==null?void 0:Se.prop)==null?void 0:Ka.split("."))==null?void 0:vl[0])===((sl=(Fa=K==null?void 0:K.prop)==null?void 0:Fa.split("."))==null?void 0:sl[0])?J[(Nl=(Xa=Se==null?void 0:Se.prop)==null?void 0:Xa.split("."))==null?void 0:Nl[((_l=(cl=Se==null?void 0:Se.prop)==null?void 0:cl.split("."))==null?void 0:_l.length)-1]]:(J==null?void 0:J[Se==null?void 0:Se.prop])??(Se==null?void 0:Se.value);else if(aa.same((K==null?void 0:K.menus)??[],(Se==null?void 0:Se.menus)??[])&&aa.same((K==null?void 0:K.groups)??[],(Se==null?void 0:Se.groups)??[])&&!aa.same((K==null?void 0:K.words)??[],(Se==null?void 0:Se.words)??[]))if((xr=Se==null?void 0:Se.prop)!=null&&xr.includes(".")&&((yl=(Il=Se==null?void 0:Se.prop)==null?void 0:Il.split("."))==null?void 0:yl[0])!==((Yl=(Tl=K==null?void 0:K.prop)==null?void 0:Tl.split("."))==null?void 0:Yl[0])){let Gl=Object.keys(J);Gl=Gl==null?void 0:Gl.find(er=>{var ql;return er==null?void 0:er.includes("."+((ql=Se==null?void 0:Se.words)==null?void 0:ql.join(".")))}),Se.value=(J==null?void 0:J[Gl])??(J==null?void 0:J[Se==null?void 0:Se.prop])??Se.value}else{let Gl=Object.keys(J);Gl=Gl==null?void 0:Gl.find(er=>{var ql;return er==null?void 0:er.includes("."+((ql=Se==null?void 0:Se.words)==null?void 0:ql.join(".")))}),Se.value=(J==null?void 0:J[(Bl=Se==null?void 0:Se.words)==null?void 0:Bl.join(".")])??(J==null?void 0:J[Gl])??(J==null?void 0:J[Se==null?void 0:Se.prop])??Se.value}else!(Se!=null&&Se.isMainPath)&&aa.same((K==null?void 0:K.bindMenus)??[],(Se==null?void 0:Se.bindMenus)??[]),Se.value=(J==null?void 0:J[Se==null?void 0:Se.prop])??Se.value;return Se}),Ha.value=Re;let na={};(T=Ha.value)==null||T.forEach(Se=>{na[Se.prop]=Se==null?void 0:Se.value}),cr.value=na}}Vr.value=!0,W.value=!1},hu=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",vu=d=>{var N,ie;const v=(ie=(N=ca.value)==null?void 0:N.find(te=>(te==null?void 0:te.label)===(d==null?void 0:d.label)))==null?void 0:ie.multiple,B=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ee.value.forEach(te=>{const K=te==null?void 0:te[B];v&&Di.isString(K)&&(te[B]=[K]),!v&&!Di.isString(K)&&(te[B]="")})},$t=(d,v)=>{var B;return v==null||v.forEach(M=>{d[M==null?void 0:M.prop]=M==null?void 0:M.value}),d.children&&((B=d.children)==null?void 0:B.length)>0&&(d.children=d.children.map(M=>$t(M,v))),d},st=d=>{var B,M,F,N,ie,te;$o("");const v=(B=Ha.value)==null?void 0:B.reduce((K,Ce)=>(K[Ce.name]=Ce.value,K),{});if(((M=Object.keys(v))==null?void 0:M.length)>0){cr.value=v,Oa.value="",H.value=(F=Ee.value)==null?void 0:F.length,ua.value=(N=va.value)==null?void 0:N.filter(Ce=>(Ce==null?void 0:Ce.label)!=="新增");const K=(te=(ie=ue.value)==null?void 0:ie.filter(Ce=>(Ce==null?void 0:Ce.label)!=="操作"))==null?void 0:te.map(Ce=>{var He,je,Je;const Be=(je=(He=ca.value)==null?void 0:He.find(ha=>(ha==null?void 0:ha.label)===(Ce==null?void 0:Ce.label)))==null?void 0:je.multiple;return vu(Ce),{...Ce,contents:(Ce==null?void 0:Ce.options)??[],optionUrl:Ce!=null&&Ce.formMenuSelect&&((Je=Ce==null?void 0:Ce.formMenuSelect)==null?void 0:Je.length)>0?{groupSelect:Ce==null?void 0:Ce.groupSelect,menuSelect:Ce==null?void 0:Ce.formMenuSelect,selectRelateType:"",type:Ce==null?void 0:Ce.formType,multiple:Be}:null}});pe.value=K==null?void 0:K.map(Ce=>$t(Ce,[{prop:"type",value:"edit"},{prop:"columnType",value:hu(Ce==null?void 0:Ce.formType)||(Ce==null?void 0:Ce.columnType)}])),d==="createClick"&&(oe.value="新增",Vo(!0))}},yo={START:"开始时间",END:"结束时间",HOURS:"工时"},mu=(d,v)=>Number(Pn.dayjs(v).diff(Pn.dayjs(d),"day",!0).toFixed(1)),Rt=d=>{var N;const v=u.itemData,B=(N=v==null?void 0:v.find(ie=>(ie==null?void 0:ie.key)==="header"))==null?void 0:N.contents,M=new Map;return B==null||B.forEach((ie,te)=>{const{label:K}=ie;M.set(K,te)}),!M.has(yo.START)||!M.has(yo.END)||!M.has(yo.HOURS)?d:d==null?void 0:d.map(ie=>{const te=ie==null?void 0:ie[yo.START],K=ie==null?void 0:ie[yo.END],Ce=mu(te,K);return te&&K&&(ie[yo.HOURS]=`${Ce}天`),ie})},Vt=(d,v,B=0)=>{if(B>((v==null?void 0:v.length)??""))return d;const M=v==null?void 0:v[B],F=new Map;for(const ie of d){const te=ie[M];F.has(te)||F.set(te,[]),F.get(te)&&F.get(te).push(ie)}const N=[];for(const[ie,te]of F){const[K,...Ce]=te,Be={...K};B+1===((v==null?void 0:v.length)??"")?Be.children=te==null?void 0:te.map(He=>(He.level=L.cloneDeep(B)+1,He)).filter((He,je)=>je!==0):Ce.length>0&&(Be.children=Vt(Ce,v,B+1)),Be.level=B,N.push(Be)}return N},Ft=(d,v,B)=>{var F;if(!(v!=null&&v.contents)||((F=v==null?void 0:v.contents)==null?void 0:F.length)===0)return d;let M=[];return M=Vt(d,v==null?void 0:v.contents,0),M},Pt=async(d,v)=>{var qa,ta,Qa,ya,Pa,ve,Sa,sa,wa,Ea,T,J,Re,na,Se,ia,Da,tl,Ya,ul,dl,Vl,Ka,vl,Fa,sl,Xa,cl,_l,Nl,xr,Il,yl,Tl,Yl,Bl,Gl,er,ql,fr,qr,hr,tr,ur,Ht,Ut,qt;const B=d==null?void 0:d.filter(pa=>(pa==null?void 0:pa.key)==="header");d==null||d.filter(pa=>(pa==null?void 0:pa.key)==="tableIndexColumn")[0];const M=d==null?void 0:d.filter(pa=>(pa==null?void 0:pa.key)==="childTree")[0];let F=!0;if((Qa=(ta=(qa=d==null?void 0:d.find(pa=>(pa==null?void 0:pa.key)==="filterAllType"))==null?void 0:qa.value)==null?void 0:ta.find(pa=>(pa==null?void 0:pa.value)==="onPamButtonContents"))!=null&&Qa.content){let pa=(ve=(Pa=(ya=d==null?void 0:d.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:ya.value)==null?void 0:Pa.find(Sl=>(Sl==null?void 0:Sl.value)==="onPamButtonContents"))==null?void 0:ve.content;pa=(Sa=pa==null?void 0:pa.split(":"))==null?void 0:Sa[1],pa=(sa=pa.slice(1,(pa==null?void 0:pa.length)-1))==null?void 0:sa.split(","),F=!!(pa!=null&&pa.find(Sl=>Sl==="操作"))}const N=d==null?void 0:d.find(pa=>(pa==null?void 0:pa.key)==="page"),ie=d==null?void 0:d.find(pa=>(pa==null?void 0:pa.key)==="rowButton"),te=d==null?void 0:d.find(pa=>(pa==null?void 0:pa.key)==="extraButton"),K=d==null?void 0:d.filter(pa=>(pa==null?void 0:pa.key)==="tableContents"),Ce=d==null?void 0:d.filter(pa=>(pa==null?void 0:pa.key)==="bottomButton"),Be=d==null?void 0:d.filter(pa=>(pa==null?void 0:pa.key)==="tableIndex");ca.value=(Ea=(wa=d==null?void 0:d.filter(pa=>(pa==null?void 0:pa.key)==="tableToForm"))==null?void 0:wa[0])==null?void 0:Ea.contents,ye.value=(N==null?void 0:N.contents)??!0;let He=[];Hl.value===""?He=B==null?void 0:B[0]:He=(B==null?void 0:B.find(pa=>(pa==null?void 0:pa.selectLabel)==="("+Hl.value+")"))??(B==null?void 0:B.find(pa=>!(pa!=null&&pa.selectLabel)));let je=[];Hl.value===""?je=Be==null?void 0:Be[0]:je=(Be==null?void 0:Be.find(pa=>(pa==null?void 0:pa.selectLabel)==="("+Hl.value+")"))??(Be==null?void 0:Be.find(pa=>!(pa!=null&&pa.selectLabel)));let Je=[],ha=[];if(((T=He==null?void 0:He.contents)==null?void 0:T.length)>0){let pa=[],Sl=He==null?void 0:He.contents;if(Array.isArray(Sl==null?void 0:Sl[0])&&((J=Sl==null?void 0:Sl[0])!=null&&J.every(el=>!(el!=null&&el.children)))&&(Sl=Sl==null?void 0:Sl[0]),Sl.some(el=>Array.isArray(el)&&(el==null?void 0:el.find(Ke=>Ke.children))))pa=(Re=oa.getGradeColumns(Sl,F))==null?void 0:Re[0],pa!=null&&pa.find(el=>(el==null?void 0:el.label)==="操作")||pa.push({label:"操作",prop:"operate",type:"operate"});else{let el=Sl.some(Ke=>Array.isArray(Ke))?Sl==null?void 0:Sl[0]:Sl;el!=null&&el.find(Ke=>(Ke==null?void 0:Ke.label)==="操作")||el.push({label:"操作",prop:"operate",type:"operate"}),el==null||el.forEach((Ke,Ql)=>{var $r,Br,Rr,Sr,oo,ko,xo,br,kn,Gn,wo,rn,Yn,Yt,Jt,Xt,Zt,Qt,es,as;if((Br=($r=qe.value)==null?void 0:$r.split("/"))==null||Br.forEach(ar=>{var vr,Tn,ls;ar!==""&&((ls=(Tn=(vr=ar==null?void 0:ar.split(k+"updateLoading"))==null?void 0:vr[0])==null?void 0:Tn.split(k+"loading"))==null||ls[0])}),Ke!=null&&Ke.methodContent){let ar=(oo=(Sr=(Rr=Ke==null?void 0:Ke.methodContent)==null?void 0:Rr.replace("@","%%#"))==null?void 0:Sr.split("%%#"))==null?void 0:oo[1];if(ar=ar==null?void 0:ar.slice(0,(ar==null?void 0:ar.length)-1),ar=oa.contentTransArrayToAllNoExtra(ar??"",","),(ko=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("@Button")))!=null&&ko.includes("Prop")&&((xo=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("Type")))!=null&&xo.includes("Manual"))){let vr=(kn=(br=ar==null?void 0:ar.find(Tn=>Tn==null?void 0:Tn.includes("@Button")))==null?void 0:br.split(":"))==null?void 0:kn[1];vr=((rn=(wo=(Gn=vr==null?void 0:vr.replaceAll("[",""))==null?void 0:Gn.replaceAll("]",""))==null?void 0:wo.split(","))==null?void 0:rn[1])??"算法执行",Je.push(vr)}else if((Yn=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("@Button")))!=null&&Yn.includes("Row")&&((Yt=ar==null?void 0:ar.find(vr=>vr==null?void 0:vr.includes("Type")))!=null&&Yt.includes("Manual"))){let vr=(Xt=(Jt=ar==null?void 0:ar.find(Tn=>Tn==null?void 0:Tn.includes("@Button")))==null?void 0:Jt.split(":"))==null?void 0:Xt[1];vr=((es=(Qt=(Zt=vr==null?void 0:vr.replaceAll("[",""))==null?void 0:Zt.replaceAll("]",""))==null?void 0:Qt.split(","))==null?void 0:es[1])??"算法执行",ha.push(vr)}}(as=ca.value)==null||as.find(ar=>(ar==null?void 0:ar.prop)===(Ke==null?void 0:Ke.prop)),pa.push({label:(Ke==null?void 0:Ke.label)==="操作"?F?"操作":"":(Ke==null?void 0:Ke.label)??"",prop:(Ke==null?void 0:Ke.label)==="操作"?"operate":(Ke==null?void 0:Ke.prop)??"a"+Ql,width:Ke!=null&&Ke.width?parseInt(Ke.width):"",fixed:(Ke==null?void 0:Ke.fixed)??void 0,sortable:(Ke==null?void 0:Ke.sortable)??!1,filterable:(Ke==null?void 0:Ke.filterable)??!1,operable:(Ke==null?void 0:Ke.operable)??!1,showSummary:(Ke==null?void 0:Ke.showSummary)??!1,align:(Ke==null?void 0:Ke.align)??"left",showOverflowTooltip:(Ke==null?void 0:Ke.showOverflowTooltip)??!0,isNotDrag:(Ke==null?void 0:Ke.isNotDrag)??!1,isEditCol:(Ke==null?void 0:Ke.isEditCol)??!1,isOperate:(Ke==null?void 0:Ke.isOperate)??!1,id:(Ke==null?void 0:Ke.id)??Ql,type:(Ke==null?void 0:Ke.label)==="操作"?"operate":void 0,formType:(Ke==null?void 0:Ke.formType)??(Ke!=null&&Ke.groupSelect?"Select":""),disabled:Ke==null?void 0:Ke.disabled,options:(Ke==null?void 0:Ke.options)??[],value:(Ke==null?void 0:Ke.value)??"",isExistChild:(Ke==null?void 0:Ke.isExistChild)??!1,mainKey:(Ke==null?void 0:Ke.mainKey)??Ql===0,allSelectionContents:(Ke==null?void 0:Ke.allContents)??[],filterContent:Ke==null?void 0:Ke.filterContents,menus:Ke==null?void 0:Ke.menus,groups:Ke==null?void 0:Ke.groups,words:Ke==null?void 0:Ke.words,filter:Ke==null?void 0:Ke.filter,bindMenus:Ke==null?void 0:Ke.bindMenus,fatherPath:Ke==null?void 0:Ke.fatherPath,isMainPath:Ke==null?void 0:Ke.isMainPath,required:(Ke==null?void 0:Ke.required)??!1,relatedContents:Ke==null?void 0:Ke.relatedContents,functionName:Ke==null?void 0:Ke.functionName,functionRelatedWords:Ke==null?void 0:Ke.functionRelatedWords,calculatorFilter:Ke==null?void 0:Ke.calculatorFilter,relatedPages:Ke==null?void 0:Ke.relatedPages,multiple:(Ke==null?void 0:Ke.multiple)??!1})})}I.value=(na=Ce==null?void 0:Ce[0])==null?void 0:na.contents;const sn=oa.getNewColumnChild(pa),Wt=el=>Array.isArray(el)?el.map(Ke=>(Array.isArray(Ke==null?void 0:Ke.children)&&Ke.children.length>0?(Ke.sortable=!1,Wt(Ke.children)):(Ke==null?void 0:Ke.prop)==="operate"||(Ke==null?void 0:Ke.label)==="操作"||(Ke==null?void 0:Ke.type)==="operate"||(Ke.sortable=!1),Ke)):el;Wt(sn),await Ki(sn),e0(Z.value,sn),pe.value=sn,da.value=sn,n.value=(Se=pe.value)==null?void 0:Se.map(el=>el==null?void 0:el.label);let cn=(Da=(ia=oa.getAllLeafNodes(pe.value))==null?void 0:ia.filter(el=>(el==null?void 0:el.type)!=="operate"))==null?void 0:Da.map((el,Ke)=>({prop:(el==null?void 0:el.prop)??"a"+Ke,column:el.label}));Lr.value=cn;let ln=[];Hl.value===""?ln=K==null?void 0:K[0]:ln=(K==null?void 0:K.find(el=>(el==null?void 0:el.selectLabel)==="("+Hl.value+")"))??(K==null?void 0:K.find(el=>!(el!=null&&el.selectLabel)));let no=Array.isArray((tl=ln==null?void 0:ln.contents)==null?void 0:tl[0])&&((Ya=ln==null?void 0:ln.contents)!=null&&Ya[0].every(el=>Array.isArray(el)))?(ul=ln==null?void 0:ln.contents)==null?void 0:ul[0]:ln==null?void 0:ln.contents;je!=null&&je.contents&&((dl=je==null?void 0:je.contents)==null?void 0:dl.length)!==0&&(no=(Vl=L.cloneDeep(no))==null?void 0:Vl.map((el,Ke)=>{if(!Array.isArray(el)){let Ql={};for(let $r in el)$r!=="id"&&$r!=="index"&&(Ql[$r]=el[$r]);el=Object.values(Ql)}return el}));const Bu=!!((Ka=pe.value)!=null&&Ka.find(el=>el.prop==="index"));no=pc(no,je==null?void 0:je.contents,Bu);const go=[];no==null||no.forEach((el,Ke)=>{var $r;let Ql={};if(Array.isArray(el)){let Br=[];el==null||el.filter(Rr=>!(Rr!=null&&Rr.id)).forEach((Rr,Sr)=>{var oo,ko,xo,br,kn,Gn;if((oo=cn==null?void 0:cn[Sr])!=null&&oo.prop&&!Array.isArray(Rr)){let wo={};wo[cn[Sr].column]=Rr,La!=null&&La.value&&((ko=La==null?void 0:La.value)==null?void 0:ko.length)>0&&((xo=La==null?void 0:La.value)!=null&&xo.find(rn=>JSON.stringify(rn==null?void 0:rn[0])===JSON.stringify(wo)))&&(Br=(br=La==null?void 0:La.value)==null?void 0:br.find(rn=>JSON.stringify(rn==null?void 0:rn[0])===JSON.stringify(wo))),Br&&Br.length>0?Ql[cn[Sr].prop]=Br!=null&&Br.find(rn=>{var Yn;return((Yn=Object.keys(rn))==null?void 0:Yn[0])===cn[Sr].column})?(kn=Br==null?void 0:Br.find(rn=>{var Yn;return((Yn=Object.keys(rn))==null?void 0:Yn[0])===cn[Sr].column}))==null?void 0:kn[cn[Sr].column]:Rr:Ql[cn[Sr].prop]=Rr}else Array.isArray(Rr)&&((Gn=cn[Sr])!=null&&Gn.prop?Ql[cn[Sr].prop]=Rr:Ql.children=bt(Rr,cn))})}else Ql=el;if(Array.isArray(el)&&el.some(Br=>Br==null?void 0:Br.id)){const Br=($r=el==null?void 0:el.find(Rr=>Rr.id))==null?void 0:$r.id;go.push(Object.assign(Ql,{id:ii(Br)}))}else Ql.id?go.push(Ql):go.push(Object.assign(Ql,{id:Ke.toString()}))});try{const el=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ke=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Ql=el==null?void 0:el.tableId,$r=el==null?void 0:el.compIndex;if(Ql&&Array.isArray(Ke)&&Ke.length>0&&String(Ql)===String(u==null?void 0:u.parentTableId)&&String($r)===String(u==null?void 0:u.index)){const Br=new Set(go.map(Sr=>String(Sr==null?void 0:Sr.id))),Rr=Ke.filter(Sr=>!Br.has(String(Sr)));if(Rr.length>0){const Sr=el==null?void 0:el.pageKey,oo=Sr!=null&&Sr.startsWith("/")?Sr.substring(1):Sr;((v==null?void 0:v[Sr])||(v==null?void 0:v[oo])||[]).filter(br=>{var kn,Gn;return((kn=br==null?void 0:br.key)==null?void 0:kn.type)==="data"&&String((Gn=br==null?void 0:br.key)==null?void 0:Gn.tableId)===String(Ql)&&Rr.includes(br==null?void 0:br.id)}).forEach(br=>{var kn;Br.has(String(br==null?void 0:br.id))||(go.push({id:br==null?void 0:br.id,...((kn=br==null?void 0:br.value)==null?void 0:kn.tableData)||{}}),Br.add(String(br==null?void 0:br.id)))})}}}catch{}let bo=null;try{const el=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,Ke=JSON.parse(sessionStorage.getItem(el)||"null");Array.isArray(Ke)&&Ke.length>0&&(bo=new Set(Ke.map(Ql=>String(Ql))))}catch{}const Kt=Array.from(((vl=We.value)==null?void 0:vl.values())||[]).filter(el=>!(!(el!=null&&el._isOCRRow&&(el==null?void 0:el._ocrTableId)===(u==null?void 0:u.index))||bo&&bo.has(String(el==null?void 0:el.id)))),Tu=(Ee.value||[]).map(el=>String(el==null?void 0:el.id)),Gt=ti(go,Tu);if(Ee.value=Ft(Gt,M,pe.value),ma.value=Gt,(Fa=ma.value)==null||Fa.forEach(el=>{var Ke;(Ke=We.value)==null||Ke.set(el.id,el)}),bo&&bo.size>0)try{const el=new Set(Array.from(bo.values()));Ee.value=(Ee.value||[]).filter(Ke=>!el.has(String(Ke==null?void 0:Ke.id))),ma.value=(ma.value||[]).filter(Ke=>!el.has(String(Ke==null?void 0:Ke.id))),el.forEach(Ke=>{var Ql,$r;try{($r=(Ql=We.value)==null?void 0:Ql.delete)==null||$r.call(Ql,Ke)}catch{}})}catch{}const fi=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ct=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(fi&&Array.isArray(ct)&&ct.length>0&&String(fi==null?void 0:fi.compIndex)===String(u==null?void 0:u.index)){const el=new Set((ma.value||[]).map(Ke=>String(Ke==null?void 0:Ke.id)));ct.filter(Ke=>!el.has(String(Ke)))}if(Kt.length>0){const el=new Set((Ee.value||[]).map(Ql=>Ql==null?void 0:Ql.id)),Ke=Kt.filter(Ql=>!el.has(Ql.id));Ke.length>0&&(Ee.value=[...Ee.value||[],...Ke],ma.value=[...ma.value||[],...Ke],Ke.forEach(Ql=>{var $r;return($r=We.value)==null?void 0:$r.set(Ql.id,Ql)}))}}else pe.value=[],ue.value=[],Ee.value=[],ma.value=[],We.value=new Map;if(ha=[...new Set(ha)],ha=ha==null?void 0:ha.map(pa=>({label:pa,type:"methodButton"})),((sl=ie==null?void 0:ie.contents)==null?void 0:sl.length)>0?Aa.value=ie==null?void 0:ie.contents:Aa.value=[],Aa.value=[...Aa.value,...ha],Je=[...new Set(Je)],Je=Je==null?void 0:Je.map(pa=>({label:pa,type:"methodButton"})),((Xa=te==null?void 0:te.contents)==null?void 0:Xa.length)>0)if((Nl=(_l=(cl=d==null?void 0:d.find(pa=>(pa==null?void 0:pa.key)==="filterAllType"))==null?void 0:cl.value)==null?void 0:_l.find(pa=>(pa==null?void 0:pa.value)==="onButtonContents"))!=null&&Nl.content){let pa=(yl=(Il=(xr=d==null?void 0:d.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:xr.value)==null?void 0:Il.find(Sl=>(Sl==null?void 0:Sl.value)==="onButtonContents"))==null?void 0:yl.content;if(pa=(Tl=pa==null?void 0:pa.split(":"))==null?void 0:Tl[1],pa=(Yl=pa.slice(1,(pa==null?void 0:pa.length)-1))==null?void 0:Yl.split(","),ua.value=(Bl=te==null?void 0:te.contents)==null?void 0:Bl.filter(Sl=>pa==null?void 0:pa.find(sn=>sn===(Sl==null?void 0:Sl.label))),va.value=(Gl=te==null?void 0:te.contents)==null?void 0:Gl.filter(Sl=>pa==null?void 0:pa.find(sn=>sn===(Sl==null?void 0:Sl.label))),(er=te==null?void 0:te.contents)!=null&&er.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别")&&!((ql=ua.value)!=null&&ql.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别"))){const Sl=(fr=te==null?void 0:te.contents)==null?void 0:fr.find(sn=>(sn==null?void 0:sn.label)==="OCR识别");ua.value=[...ua.value,Sl],va.value=[...va.value,Sl]}E.value=!!(pa!=null&&pa.find(Sl=>Sl==="搜索")),z.value=!!(pa!=null&&pa.find(Sl=>Sl==="块状显示"))}else ua.value=te==null?void 0:te.contents,va.value=te==null?void 0:te.contents;else ua.value=[],va.value=[];ua.value=[...ua.value,...Je],va.value=[...va.value,...Je],typeof qe.value=="string"&&qe.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?((qr=ua.value)!=null&&qr.some(pa=>(pa==null?void 0:pa.label)==="OCR识别")||(ua.value=[...ua.value||[],{label:"OCR识别"}]),(hr=va.value)!=null&&hr.some(pa=>(pa==null?void 0:pa.label)==="OCR识别")||(va.value=[...va.value||[],{label:"OCR识别"}])):(ua.value=(ua.value||[]).filter(pa=>(pa==null?void 0:pa.label)!=="OCR识别"),va.value=(va.value||[]).filter(pa=>(pa==null?void 0:pa.label)!=="OCR识别")),(tr=ua.value)!=null&&tr.some(pa=>(pa==null?void 0:pa.label)==="切换视图")||(ua.value=[...ua.value||[],{label:"切换视图"}]),(ur=va.value)!=null&&ur.some(pa=>(pa==null?void 0:pa.label)==="切换视图")||(va.value=[...va.value||[],{label:"切换视图"}]),H.value=((Ht=Ee==null?void 0:Ee.value)==null?void 0:Ht.length)??0,Rt(Ee.value),Yr.value=Ee.value,Al.value&&(pe.value=(qt=(Ut=ue.value)==null?void 0:Ut.filter(pa=>(pa==null?void 0:pa.label)!=="操作"))==null?void 0:qt.map(pa=>{var Sl;return{...pa,type:"edit",optionUrl:pa!=null&&pa.formMenuSelect&&((Sl=pa==null?void 0:pa.formMenuSelect)==null?void 0:Sl.length)>0?{groupSelect:pa==null?void 0:pa.groupSelect,menuSelect:pa==null?void 0:pa.formMenuSelect,selectRelateType:"",type:pa==null?void 0:pa.formType}:null}}),st())};a.watch(()=>[u.itemData,Hl.value,wn.value,gn.value,La==null?void 0:La.value],async()=>{var d,v,B,M,F,N;if((d=u==null?void 0:u.itemData)!=null&&d.find(ie=>(ie==null?void 0:ie.key)==="columnPath")&&!((v=P.value)!=null&&v.find(ie=>{var te,K;return(ie==null?void 0:ie.key)===((K=(te=u==null?void 0:u.itemData)==null?void 0:te.find(Ce=>(Ce==null?void 0:Ce.key)==="columnPath"))==null?void 0:K.contents)}))){let ie=P.value,te={key:(M=(B=u==null?void 0:u.itemData)==null?void 0:B.find(K=>(K==null?void 0:K.key)==="columnPath"))==null?void 0:M.contents,value:(N=(F=u==null?void 0:u.itemData)==null?void 0:F.find(K=>(K==null?void 0:K.key)==="columnUsingPath"))==null?void 0:N.contents};ie!=null&&ie.find(K=>(K==null?void 0:K.key)===(te==null?void 0:te.key))?ie=ie==null?void 0:ie.map(K=>((K==null?void 0:K.key)===(te==null?void 0:te.key)&&(K.value=te.value),K)):ie.push(te),Ue.setTableViewContents(ie)}await Pt(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&($o(d==null?void 0:d.form),oe.value=d==null?void 0:d.dialogTitle,Ia.value=!0,we.value=!0)},{immediate:!0,deep:!0});const yu=()=>{var d;(d=R.value)!=null&&d.includes("read")&&(Al.value=!Al.value)},gu=()=>{yr.value=!yr.value};a.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var v;R.value=d,(d==null?void 0:d.length)===0?Al.value=!1:(d!=null&&d.includes("read")||(Al.value=!0),d!=null&&d.includes("edit")||(Al.value=!1)),D.value=((v=u==null?void 0:u.config)==null?void 0:v.showIndex)||Al.value},{immediate:!0}),a.watch(()=>Al.value,d=>{var v;d?(st("viewChange"),Ue.setCacheUpdatingData(null)):(ua.value=va.value,pe.value=da.value,V.value&&(Ue.setTableLoading(u==null?void 0:u.index),Me("change",V.value))),D.value=d||((v=u==null?void 0:u.config)==null?void 0:v.showIndex),ir.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=Un.value)==null?void 0:d.length},d=>{d===0&&(de.currentPage=1)}),a.watch(()=>u==null?void 0:u.compNames,d=>{t.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),a.ref(!1);const bu=(d,v)=>{var B;st("createClick"),v===de.pageSize&&(de.currentPage=Math.ceil(((B=Ee.value)==null?void 0:B.length)/de.pageSize))},ku=async(d,v,B)=>{var F,N,ie,te,K;const M=(v==null?void 0:v.property)??(v==null?void 0:v.prop);if(M&&di.includes(M)&&B!==void 0&&B!==null&&String(B).trim()!==""){const Ce=String(B).trim();if(await tt(Ce,d==null?void 0:d.id)){Ga.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const He=(F=Ee.value)==null?void 0:F.findIndex(Je=>(Je==null?void 0:Je.id)===(d==null?void 0:d.id)),je=He!==-1?(ie=(N=Ee.value)==null?void 0:N[He])==null?void 0:ie[M]:void 0;M&&(d[M]=je??"");return}}if(Al.value){const Ce=d==null?void 0:d.id;Ce!=null&&(m.value.has(Ce)||m.value.set(Ce,L.cloneDeep(d)),c.value.add(Ce));const Be=(te=Ee.value)==null?void 0:te.findIndex(He=>(He==null?void 0:He.id)===(d==null?void 0:d.id));Be!==-1&&M&&(Ee.value[Be]={...Ee.value[Be],[M]:B}),pi(B,d,v);return}pi(B,d,v),cr.value=L.cloneDeep(d),Oa.value=d==null?void 0:d.id,H.value=(K=Ee.value)==null?void 0:K.length,oe.value=d!=null&&d._isTemp?"新增":"编辑",Vo(!1)},xu=async()=>{var d,v;try{const B=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(M=>{if(typeof M=="string"&&M.includes("content_")){const F=M.split("_")[1];F&&(B.push(`content_${F}`),B.push(`struct_${F}`))}})),B.length===0&&(u!=null&&u.itemData)){const M=(v=(d=u.itemData)==null?void 0:d.find(F=>(F==null?void 0:F.key)==="contentTableId"))==null?void 0:v.contents;M&&(B.push(`content_${M}`),B.push(`struct_${M}`))}return B}catch(B){return console.error("获取 tableNames 失败:",B),[]}},wu=async(d,v,B)=>{var N,ie;if(!B||typeof B!="string"||B.trim()===""){const te=(v==null?void 0:v.property)??(v==null?void 0:v.prop),K=`${d==null?void 0:d.id}:${te}`;f.value.delete(K),y.value.set(K,!1);return}const M=(v==null?void 0:v.property)??(v==null?void 0:v.prop),F=`${d==null?void 0:d.id}:${M}`;y.value.set(F,!0);try{const te=await xu();if(te.length===0){console.warn("未找到同名表,跳过全局搜索"),f.value.delete(F),y.value.set(F,!1);return}const K=parseInt((N=Ll.value)==null?void 0:N.plat_id);if(!K){console.warn("platId 无效,跳过全局搜索"),f.value.delete(F),y.value.set(F,!1);return}const Ce=await L.getAllTables({platId:K,tableNames:te??[]}),Be=((ie=Ce==null?void 0:Ce.data)==null?void 0:ie.result)||[],He=[],je=[];for(let Je=0;Je<Be.length;Je+=2)Je+1<Be.length&&je.push([Be[Je],Be[Je+1]]);je.forEach(([Je,ha])=>{var Pa;if(!Array.isArray(Je)||Je.length===0||!Array.isArray(ha)||ha.length===0)return;const $a=ha[0];let qa=((Pa=$a==null?void 0:$a.结构)==null?void 0:Pa.contents)??[];if(!Array.isArray(qa)||qa.length===0)return;let ta=L.cloneDeep(qa);if(Array.isArray(ta==null?void 0:ta[0])&&(ta=oa.getColumnChild(ta[0])),!Array.isArray(ta)||ta.length===0||!ta.some(ve=>(ve==null?void 0:ve.prop)===M))return;[...Je].sort((ve,Sa)=>{const sa=Number((ve==null?void 0:ve.update_time)??0);return Number((Sa==null?void 0:Sa.update_time)??0)-sa}).slice(0,20).forEach(ve=>{const Sa=ve[M];if(Sa!=null){const sa=String(Sa);sa.toLowerCase().includes(B.toLowerCase())&&He.findIndex(Ea=>{var T;return ve.id&&((T=Ea.rowData)==null?void 0:T.id)===ve.id?!0:Ea.label===sa})===-1&&He.push({label:sa,rowData:L.cloneDeep(ve),sourceTable:($a==null?void 0:$a.source_table)||""})}})}),f.value.set(F,He)}catch(te){console.error("全局搜索建议失败:",te),f.value.delete(F)}finally{y.value.set(F,!1)}},_u=(d,v,B)=>{if(!Al.value)return;const M=(v==null?void 0:v.property)??(v==null?void 0:v.prop),F=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"";if(F&&F.toUpperCase()!=="INPUT"&&F!=="")return;const N=`${d==null?void 0:d.id}:${M}`;if(h.has(N)&&clearTimeout(h.get(N)),!B||B.trim()===""){f.value.delete(N),y.value.set(N,!1);return}const ie=setTimeout(()=>{wu(d,{prop:M,property:M},B),h.delete(N)},300);h.set(N,ie)};function Su(d,v){const B=`${d==null?void 0:d.id}:${(v==null?void 0:v.property)??(v==null?void 0:v.prop)}`;return f.value.get(B)||[]}const Eu=(d,v,B)=>{var Be;if(!B||!B.rowData)return;const M=B.rowData,F=d==null?void 0:d.id,N=(v==null?void 0:v.property)??(v==null?void 0:v.prop),te=(oa.getAllLeafNodes(pe.value)||[]).filter(He=>(He==null?void 0:He.type)!=="operate"&&(He==null?void 0:He.label)!=="操作"&&(He==null?void 0:He.prop)!=="operate");te.forEach(He=>{const je=He==null?void 0:He.prop;je&&M[je]!==void 0&&(d[je]=M[je])});const K=(Be=Ee.value)==null?void 0:Be.findIndex(He=>(He==null?void 0:He.id)===F);K!==-1&&te.forEach(He=>{const je=He==null?void 0:He.prop;je&&M[je]!==void 0&&(Ee.value[K][je]=M[je])}),F!=null&&(m.value.has(F)||m.value.set(F,L.cloneDeep(d)),c.value.add(F));const Ce=`${F}:${N}`;f.value.delete(Ce),y.value.set(Ce,!1),pi(d[N],d,v)},Ur=d=>{var K,Ce,Be,He,je,Je,ha,$a,qa,ta,Qa;const{row:v,column:B,item:M,slotData:F}=d;let N=v!=null&&v[B==null?void 0:B.prop]||(v==null?void 0:v[B==null?void 0:B.prop])===0?((Ce=(K=v==null?void 0:v[B==null?void 0:B.prop])==null?void 0:K[0])==null?void 0:Ce.contents)??((v==null?void 0:v[B==null?void 0:B.prop])===0?"0":v==null?void 0:v[B==null?void 0:B.prop]):((He=(Be=v==null?void 0:v[M==null?void 0:M.prop])==null?void 0:Be[0])==null?void 0:He.contents)??(v==null?void 0:v[M==null?void 0:M.prop])??((Je=(je=F==null?void 0:F[M==null?void 0:M.prop])==null?void 0:je[0])==null?void 0:Je.contents)??(F==null?void 0:F[M==null?void 0:M.prop])??((qa=($a=v==null?void 0:v[(ha=M==null?void 0:M.child)==null?void 0:ha.prop])==null?void 0:$a[0])==null?void 0:qa.contents)??(v==null?void 0:v[(ta=M==null?void 0:M.child)==null?void 0:ta.prop]),te=Array.isArray(N)&&!(N!=null&&N.every(ya=>typeof ya=="string"||typeof ya=="number"))?"查看":N;if(te=Array.isArray(te)?te.join(","):te,(B==null?void 0:B.formType)==="Date")if(!te||te===""||te===null||te===void 0)te="";else{const ya=Pn.dayjs(te,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);te=ya.isValid()?ya.format("YYYYMMDD"):te??""}return Array.isArray(B==null?void 0:B.relatedPages)&&((Qa=B==null?void 0:B.relatedPages)==null?void 0:Qa.length)>0&&(te="详情页"),te},Cu=d=>{var Ce,Be,He,je,Je,ha,$a,qa,ta,Qa;const{row:v,column:B,item:M,slotData:F}=d;let N=v!=null&&v[B==null?void 0:B.prop]?((Be=(Ce=v==null?void 0:v[B==null?void 0:B.prop])==null?void 0:Ce[0])==null?void 0:Be.contents)??(v==null?void 0:v[B==null?void 0:B.prop]):((je=(He=v==null?void 0:v[M==null?void 0:M.prop])==null?void 0:He[0])==null?void 0:je.contents)??(v==null?void 0:v[M==null?void 0:M.prop])??((ha=(Je=F==null?void 0:F[M==null?void 0:M.prop])==null?void 0:Je[0])==null?void 0:ha.contents)??(F==null?void 0:F[M==null?void 0:M.prop])??((ta=(qa=v==null?void 0:v[($a=M==null?void 0:M.child)==null?void 0:$a.prop])==null?void 0:qa[0])==null?void 0:ta.contents)??(v==null?void 0:v[(Qa=M==null?void 0:M.child)==null?void 0:Qa.prop]);const te=Array.isArray(N)&&!(N!=null&&N.every(ya=>typeof ya=="string"||typeof ya=="number")),K=Array.isArray(N)&&(N==null?void 0:N.find(ya=>ya==null?void 0:ya.url));return te&&K},Du=d=>{var F,N;if(!(d!=null&&d.column))return!1;const v=qe.value==="试验任务/任务管理",B=(u==null?void 0:u.compName)==="任务列表",M=((F=d==null?void 0:d.column)==null?void 0:F.label)==="任务状态"||((N=d==null?void 0:d.column)==null?void 0:N.prop)==="任务状态";return v&&B&&M},Nu=(d,v)=>d.find(B=>Object.values(B).some(M=>M===v));return a.watch(()=>se.value,async d=>{if(d){Ae.setContentLoading(!0),await a.nextTick();const v=Nu(Ee.value,d==null?void 0:d.data);if(!v)return Ae.setContentLoading(!1);await Kn(d==null?void 0:d.data,null,v,{data:d==null?void 0:d.data}),Ae.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.cacheNewData,d=>{var v;d&&(Array.isArray(d)?d.forEach(B=>{var M,F,N,ie,te;if(换,String(B==null?void 0:B.compId)===String(u==null?void 0:u.index)&&(B!=null&&B.resId)&&((M=B==null?void 0:B.data)!=null&&M.id)){const K=(F=B==null?void 0:B.data)==null?void 0:F.id,Ce=B==null?void 0:B.resId;if(Ee.value=(N=Ee.value)==null?void 0:N.map(Be=>{if((Be==null?void 0:Be.id)===K){const He={...Be,id:Ce};return delete He._isOCRRow,delete He._ocrTableId,He}return Be}),(te=(ie=We.value)==null?void 0:ie.has)!=null&&te.call(ie,K)){const He={...We.value.get(K)||{},id:Ce};delete He._isOCRRow,delete He._ocrTableId,We.value.delete(K),We.value.set(Ce,He)}ga(u==null?void 0:u.index,K,Ce)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(Ee.value=(v=Ee.value)==null?void 0:v.map(B=>{var M;if((B==null?void 0:B.id)===((M=d==null?void 0:d.data)==null?void 0:M.id)){const F={...B,id:d==null?void 0:d.resId};return delete F._isOCRRow,delete F._ocrTableId,F}return B})))},{immediate:!0,deep:!0}),(d,v)=>{var ta,Qa,ya,Pa;const B=a.resolveComponent("svg-icon"),M=a.resolveComponent("el-popover"),F=a.resolveComponent("el-switch"),N=a.resolveComponent("el-checkbox"),ie=a.resolveComponent("el-radio"),te=a.resolveComponent("el-radio-group"),K=a.resolveComponent("el-checkbox-group"),Ce=a.resolveComponent("el-button"),Be=a.resolveComponent("el-icon"),He=a.resolveComponent("el-progress"),je=a.resolveComponent("el-alert"),Je=a.resolveComponent("el-table-column"),ha=a.resolveComponent("el-table"),$a=a.resolveComponent("el-upload"),qa=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",V0,[Pr.value?(a.openBlock(),a.createBlock(il.ssTable,{id:"excel-table",pageObj:de,showIndex:D.value,isTree:(ta=l.compItem)==null?void 0:ta.isTree,summaryInfo:G,columns:pe.value,defaultSort:le,isCardViewport:yr.value,checkedColumns:n.value,key:nn.value+pe.value,tableData:Un.value,isEditViewport:Al.value,isShowPagination:ye.value,isShowEdit:!1,isShowDelete:!1,allowSelect:x.value,onDbClickRow:si,extraButton:ua.value,rowButton:Aa.value,cacheExtraButtons:va.value,isClearSelection:((Qa=ir.value)==null?void 0:Qa.length)===0,onDoCurrentChange:bn,onDoSizeChange:zo,onSortChange:Vi,onContentClick:Kn,onRowClick:ci,onSelectChange:qi,onCellChange:ku,onCellInput:_u,onSelectSuggest:Eu,onChange:pi,onPreview:Wn,onSubmitEditingTable:ei,onHandleColEditChange:Xo,onHandleColTypeChange:Zo,onClickButton:$n,onAddNewRow:jr,bottomButton:I.value},a.createSlots({headerButton:a.withCtx(ve=>{var Sa,sa,wa,Ea;return[l.showHeader?(a.openBlock(),a.createBlock(yf,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(me)===a.unref(qe),filterValues:Xi.value,selectNums:(Sa=ir.value)==null?void 0:Sa.length,dataNums:(sa=Ee.value)==null?void 0:sa.length,compName:l.compName,isDevMode:l.isDevMode,buttons:ve.buttons,menuFilter:(Ea=(wa=l.compItem)==null?void 0:wa.component)==null?void 0:Ea.menuFilter,onButtonClick:v[1]||(v[1]=(T,J,Re)=>$n(T,J,{extra:Re})),columns:pe.value,onFilter:Zi,onGetImportData:Pi,level:l.level,filterShow:E.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var ve,Sa,sa,wa;return[((ve=Ee.value)==null?void 0:ve.length)>0&&l.allowOperate&&z.value?(a.openBlock(),a.createElementBlock("div",j0,[(Sa=R.value)!=null&&Sa.includes("read")&&((sa=R.value)!=null&&sa.includes("edit"))&&((wa=Aa.value)!=null&&wa.some(Ea=>(Ea==null?void 0:Ea.label)==="编辑"))&&!yr.value&&a.unref(me)!==a.unref(qe)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:yu},[a.createVNode(B,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:ve,index:Sa})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:sa=>bu(ve,Sa)},[a.createVNode(B,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,H0)]),operateCol:a.withCtx(()=>[a.createVNode(M,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:pu},{reference:a.withCtx(()=>[a.createElementVNode("span",U0,[a.createVNode(B,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",q0,[v[20]||(v[20]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(F,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:v[2]||(v[2]=ve=>li(ve))},null,8,["model-value"]),v[21]||(v[21]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(K,{modelValue:n.value,"onUpdate:modelValue":v[3]||(v[3]=ve=>n.value=ve),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Dn.value,ve=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ve.label},[a.createVNode(N,{value:ve.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:ve.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(ve.label),9,W0)]),_:2},1032,["value"]),a.createVNode(M,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(B,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Sa;return[a.createElementVNode("div",K0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Sa=Object.keys(ve))==null?void 0:Sa.filter(sa=>{var wa;return(wa=j.value)==null?void 0:wa.find(Ea=>(Ea==null?void 0:Ea.value)===sa)}),sa=>{var wa,Ea;return a.openBlock(),a.createElementBlock("div",{key:sa},[U[sa]=="radio"?(a.openBlock(),a.createElementBlock("div",G0,[v[19]||(v[19]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(te,{"model-value":ve==null?void 0:ve[sa],onChange:T=>Nn(T,sa,ve)},{default:a.withCtx(()=>{var T,J;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((J=(T=j.value)==null?void 0:T.find(Re=>(Re==null?void 0:Re.value)===sa))==null?void 0:J.options,Re=>(a.openBlock(),a.createBlock(ie,{key:Re==null?void 0:Re.value,label:Re==null?void 0:Re.value,value:Re==null?void 0:Re.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Re==null?void 0:Re.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),U[sa]=="switch"?(a.openBlock(),a.createBlock(F,{key:1,"model-value":ve==null?void 0:ve[sa],"active-text":(Ea=(wa=j.value)==null?void 0:wa.find(T=>(T==null?void 0:T.value)===sa))==null?void 0:Ea.label,onChange:T=>Nn(T,sa,ve)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",Y0,[a.createVNode(B,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(ve=>{var Sa,sa,wa,Ea,T,J,Re,na,Se,ia,Da,tl,Ya,ul,dl,Vl,Ka,vl,Fa,sl;return[((Sa=ve==null?void 0:ve.column)==null?void 0:Sa.label)==="证书附件"||((sa=ve==null?void 0:ve.column)==null?void 0:sa.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",J0,[a.createVNode(B,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Xa=>Jr(ve),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Cu(ve)?(a.openBlock(),a.createBlock(M,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",X0,a.toDisplayString(Ur(ve)),1)]),default:a.withCtx(()=>{var Xa,cl;return[a.createElementVNode("div",Z0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((cl=ve==null?void 0:ve.row)==null?void 0:cl[(Xa=ve==null?void 0:ve.column)==null?void 0:Xa.prop],_l=>(a.openBlock(),a.createElementBlock("div",Q0,[a.createElementVNode("div",{class:"prop-url",title:lo(_l),onClick:Nl=>Yi(_l)},a.toDisplayString(lo(_l)),9,e3),a.createElementVNode("div",{class:"prop-download",onClick:Nl=>fo(_l)}," 下载 ",8,a3)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[Du(ve)?(a.openBlock(),a.createBlock(Pu,{key:0,value:Ur(ve)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Ur(ve))&&((Ea=(wa=Ur(ve))==null?void 0:wa.toString())!=null&&Ea.includes(".txt")||(J=(T=Ur(ve))==null?void 0:T.toString())!=null&&J.includes(".cpt")||(na=(Re=Ur(ve))==null?void 0:Re.toString())!=null&&na.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Ur(ve))&&((ia=(Se=Ur(ve))==null?void 0:Se.toString())!=null&&ia.includes(".txt")||(tl=(Da=Ur(ve))==null?void 0:Da.toString())!=null&&tl.includes(".cpt")||(ul=(Ya=Ur(ve))==null?void 0:Ya.toString())!=null&&ul.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Ur(ve))&&((Vl=(dl=Ur(ve))==null?void 0:dl.toString())!=null&&Vl.includes(".txt")||(vl=(Ka=Ur(ve))==null?void 0:Ka.toString())!=null&&vl.includes(".cpt")||(sl=(Fa=Ur(ve))==null?void 0:Fa.toString())!=null&&sl.includes(".cyd"))?"pointer":"",marginLeft:(ve==null?void 0:ve.colIndex)===0?`${((ve==null?void 0:ve.level)??0)*20}px`:0}),onClick:Xa=>{var cl;return On(Ur(ve),((cl=ve==null?void 0:ve.column)==null?void 0:cl.relatedPages)??[])}},a.toDisplayString(Ur(ve)===0?"0":Ur(ve)),13,l3))],64))]}),_:2},[((ya=Aa.value)==null?void 0:ya.length)>0?{name:"actions",fn:a.withCtx(({item:ve,fIndex:Sa})=>[a.createVNode(M,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(B,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:v[0]||(v[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",F0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Ji(Aa.value,ve),(sa,wa)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:wa,onClick:a.withModifiers(Ea=>$n(sa==null?void 0:sa.label,ve,{extra:sa}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:sa==null?void 0:sa.textColor}),class:"extra-button-label"},a.toDisplayString(sa==null?void 0:sa.label),5)],8,P0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):a.createCommentVNode("",!0),Al.value?(a.openBlock(),a.createElementBlock("div",r3,[a.createVNode(Ce,{id:"themeBorderButton",onClick:Ui},{default:a.withCtx(()=>v[22]||(v[22]=[a.createTextVNode("取消")])),_:1,__:[22]}),a.createVNode(Ce,{class:"ok-button",id:"themeButton",onClick:Mo},{default:a.withCtx(()=>v[23]||(v[23]=[a.createTextVNode("保存")])),_:1,__:[23]})])):a.createCommentVNode("",!0),a.createVNode(wr.ssDialog,{title:oe.value,visible:we.value,width:Wl.value,onBeforeDestroy:ri,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",n3,[a.createVNode(il.ssForm,{ref_key:"formRef",ref:Q,rowContents:Ha.value,showOperator:!1,onChange:fu,isEnableWrap:!1,onFixChangeValue:Oo,onClickTrigger:ni,isEdit:za.value,onBlurChange:Wi,onCreate:ai,onTagChange:an},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[Ia.value?(a.openBlock(),a.createElementBlock("div",o3,[a.createVNode(Ce,{onClick:v[4]||(v[4]=ve=>we.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>v[24]||(v[24]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[24]}),a.createVNode(Ce,{class:"ok-button",onClick:v[5]||(v[5]=ve=>Vo(!0)),id:"themeButton"},{default:a.withCtx(()=>v[25]||(v[25]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[25]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(wr.ssDialog,{title:oe.value,visible:ze.value,width:ka.value,onBeforeDestroy:v[7]||(v[7]=ve=>ze.value=!1)},{default:a.withCtx(()=>[a.createVNode(Bf)]),footer:a.withCtx(()=>[a.createElementVNode("div",i3,[a.createVNode(Ce,{onClick:v[6]||(v[6]=ve=>ze.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>v[26]||(v[26]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[26]}),a.createVNode(Ce,{class:"ok-button",onClick:Lo,id:"themeButton"},{default:a.withCtx(()=>v[27]||(v[27]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),Ma.value?(a.openBlock(),a.createBlock(il.ssFilePreview,{key:2,fileDataList:ne.value,onDestroy:Bn},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ne.value?(a.openBlock(),a.createBlock(wr.ssDialog,{key:3,visible:Ne.value,onBeforeDestroy:uu,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(Ci.ThreeViewerHost,{files:ba.value,threeData:be.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(wr.ssDialog,{title:"OCR扫描录入",visible:Ca.value,"close-on-click-modal":!1,onBeforeDestroy:nl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[v[38]||(v[38]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",t3,[a.createElementVNode("div",s3,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:_e.value===1}])},v[28]||(v[28]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),v[31]||(v[31]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:_e.value===2}])},v[29]||(v[29]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),v[32]||(v[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:_e.value===3}])},v[30]||(v[30]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),_e.value===1?(a.openBlock(),a.createElementBlock("div",c3,[a.createVNode(Ce,{onClick:nt,class:"ocr-action-btn",disabled:Ua.value,size:"default"},{default:a.withCtx(()=>v[33]||(v[33]=[a.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),a.createVNode(Ce,{onClick:Ul,class:"ocr-action-btn",disabled:Ua.value,size:"default"},{default:a.withCtx(()=>v[34]||(v[34]=[a.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):a.createCommentVNode("",!0),_e.value===1?(a.openBlock(),a.createElementBlock("div",u3,[a.createElementVNode("div",d3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(al.value,(ve,Sa)=>{var sa;return a.openBlock(),a.createElementBlock("div",{key:Sa,class:"ocr-file-item"},[a.createElementVNode("div",p3,[ve.raw&&((sa=ve.raw.type)!=null&&sa.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:kl(ve),alt:"预览",class:"thumbnail-image"},null,8,f3)):(a.openBlock(),a.createElementBlock("div",h3,[a.createVNode(Be,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:ol(ve)==="uploading",processing:ol(ve)==="processing",completed:ol(ve)==="completed"||ol(ve)==="uploaded",failed:ol(ve)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",v3,[v[35]||(v[35]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:ol(ve)==="completed"||ol(ve)==="uploaded",uploading:ol(ve)==="uploading",processing:ol(ve)==="processing",failed:ol(ve)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:ol(ve)==="failed"?"#f56c6c":ol(ve)==="completed"||ol(ve)==="uploaded"?"#67c23a":"#409eff","stroke-width":ol(ve)==="completed"||ol(ve)==="uploaded"||ol(ve)==="failed"?3:2,"stroke-dasharray":Xl(ve),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,m3)])),ol(ve)==="completed"||ol(ve)==="uploaded"?(a.openBlock(),a.createElementBlock("div",y3,[a.createVNode(Be,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.check_default))]),_:1})])):a.createCommentVNode("",!0),ol(ve)==="failed"?(a.openBlock(),a.createElementBlock("div",g3,[a.createVNode(Be,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:wa=>mo(Sa)},[a.createVNode(Be,null,{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.close_default))]),_:1})],8,b3)]),a.createElementVNode("div",k3,a.toDisplayString(ve.name||"文件名123"),1)])}),128))]),al.value.length>0?(a.openBlock(),a.createElementBlock("div",x3,[a.createVNode(Ce,{onClick:ke,class:"ocr-start-recognize-btn",disabled:Ua.value||al.value.length===0,size:"default"},{default:a.withCtx(()=>v[36]||(v[36]=[a.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),_e.value===1?(a.openBlock(),a.createElementBlock("div",w3,[a.createVNode(He,{percentage:X.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),_e.value===2?(a.openBlock(),a.createElementBlock("div",_3,[a.createElementVNode("div",S3,[a.createVNode(je,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",E3,[a.createVNode(ha,{data:Ze.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(Je,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Le.value,ve=>(a.openBlock(),a.createBlock(Je,{key:ve.prop,prop:ve.prop,"min-width":ve.minWidth||230,"class-name":ve.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",C3,[a.createElementVNode("span",null,a.toDisplayString(ve.label),1)])]),default:a.withCtx(({row:Sa,$index:sa})=>{var wa,Ea,T;return[ve.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:rl(Sa[ve.prop]),fontWeight:500})},a.toDisplayString(Ta(Sa[ve.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[_a.value!==sa?(a.openBlock(),a.createElementBlock("span",D3,a.toDisplayString(Sa[ve.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ll(ve.prop)),{key:1,modelValue:Sa[ve.prop],"onUpdate:modelValue":J=>Sa[ve.prop]=J,size:"small",placeholder:"请输入"+ve.label,content:((wa=xl(ve.prop))==null?void 0:wa.contents)??((Ea=xl(ve.prop))==null?void 0:Ea.options)??[],optionUrl:(T=xl(ve.prop))==null?void 0:T.optionUrl,onChange:J=>ea(sa,ve.prop,J),onFocus:J=>ge.value=ve.prop,onBlur:v[8]||(v[8]=J=>ge.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(Je,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:ve})=>[_a.value===ve?(a.openBlock(),a.createBlock(Be,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(Sa=>Ja(ve),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(B,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(Sa=>Ja(ve),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),_e.value===3?(a.openBlock(),a.createElementBlock("div",N3,[a.createVNode(Be,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ga.check_default))]),_:1}),v[37]||(v[37]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode($a,{ref:"ocrUploadRef","file-list":al.value,"onUpdate:fileList":v[9]||(v[9]=ve=>al.value=ve),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":Y,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[_e.value!==3?(a.openBlock(),a.createElementBlock("div",B3,[a.createVNode(Ce,{onClick:Hr,class:"ocr-start-recognize-btn",disabled:_e.value===1||Ua.value},{default:a.withCtx(()=>v[39]||(v[39]=[a.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),a.createVNode(Ce,{onClick:_r,class:"ocr-start-recognize-btn",disabled:Ua.value},{default:a.withCtx(()=>v[40]||(v[40]=[a.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(Kf,{visible:vo.value,onConfirm:ot,onCancel:v[10]||(v[10]=ve=>vo.value=!1)},null,8,["visible"]),a.createVNode(wd,{visible:Oe.value,"onUpdate:visible":v[11]||(v[11]=ve=>Oe.value=ve),versions:ra.value},null,8,["visible","versions"]),a.createVNode(sd,{visible:xa.value,"onUpdate:visible":v[12]||(v[12]=ve=>xa.value=ve),images:wl.value,"default-image-name":Rl.value,"field-meta":_a.value!==null?((Pa=Ze.value[_a.value])==null?void 0:Pa.__ocrFieldMeta)||{}:{},"focused-field-name":ge.value,onClose:v[13]||(v[13]=ve=>xa.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(Od,{visible:Fl.value,"onUpdate:visible":v[14]||(v[14]=ve=>Fl.value=ve),candidates:or.value,"name-prop":rr.value,"mfr-prop":en.value,columns:pe.value,onSubmit:Ir,onPreviewFile:tn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(jd,{visible:la.value,"onUpdate:visible":v[15]||(v[15]=ve=>la.value=ve),ocrPreviewData:Ze.value,"onUpdate:ocrPreviewData":v[16]||(v[16]=ve=>Ze.value=ve),ocrSelectedFields:Wa.value,"onUpdate:ocrSelectedFields":v[17]||(v[17]=ve=>Wa.value=ve),ocrPreviewColumns:Le.value,onConfirm:De,onFieldChange:v[18]||(v[18]=({rowIndex:ve,prop:Sa,value:sa})=>ea(ve,Sa,sa))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(wr.ssDialog,{title:t.title,visible:t.show,width:t.width,onBeforeDestroy:w},{default:a.withCtx(()=>[a.createElementVNode("div",T3,[a.createVNode(il.ssForm,{rowContents:t==null?void 0:t.contents,formRules:t==null?void 0:t.formRules,showOperator:!1,buttonValue:t.buttonValue,isEdit:za.value,isStartJustify:!1,onOnButtonClick:O},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(wr.ssDialog,{title:i.title,visible:i.show,width:i.width,alignCenter:!0,onBeforeDestroy:p},{header:a.withCtx(()=>[a.createVNode(qa,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>v[41]||(v[41]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[41]})]),footer:a.withCtx(()=>[a.createElementVNode("div",A3,[a.createVNode(qa,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(Mn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",z3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i==null?void 0:i.buttonValue,ve=>(a.openBlock(),a.createBlock(Ce,{key:ve==null?void 0:ve.label,style:a.normalizeStyle({background:ve==null?void 0:ve.background,color:ve==null?void 0:ve.color}),onClick:Sa=>b(ve==null?void 0:ve.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(ve==null?void 0:ve.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(gf,{columns:i==null?void 0:i.columns,tableData:i==null?void 0:i.tableData},{content:a.withCtx(({row:ve,item:Sa,slotData:sa,scope:wa,column:Ea,columnProp:T,$index:J})=>[a.createTextVNode(a.toDisplayString((ve==null?void 0:ve[(Ea==null?void 0:Ea.prop)||(Ea==null?void 0:Ea.label)])||(sa==null?void 0:sa[Ea==null?void 0:Ea.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},Tc=Jl._export_sfc(I3,[["__scopeId","data-v-25a8b813"]]),O3={key:1,class:"static-form-body"},L3=["onClick"],$3={key:1},R3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:r}){const n=l,o=r,s=k=>{switch(k){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},c=a.computed(()=>{var $;const k=($=n.itemData)==null?void 0:$.find(G=>(G==null?void 0:G.key)==="formContent"),g=(k==null?void 0:k.contents)||[];return(n.fields&&n.fields.length>0?n.fields:g).filter(G=>(G==null?void 0:G.label)||(G==null?void 0:G.isHideInForm)).map(G=>{let de=G==null?void 0:G.value;Array.isArray(de)&&(de=de.map(fe=>fe==null?"":typeof fe=="object"?fe.label??fe.value??fe.name??JSON.stringify(fe):String(fe)).filter(Boolean).join(",")),de!=null&&typeof de=="object"&&(de=de.label??de.value??de.name??JSON.stringify(de));const Me=G.isHideInForm?"":G.label??"",pe=de==null||de===""?"-":String(de),Z=Me==="使用状态";return{label:Me,value:pe,isStatus:Z,tagType:Z?s(pe):"",width:G.width??1,field:G}})}),m=a.ref(null),f=a.ref(null),h=k=>{if(Array.isArray(k)&&k.length>=3){const[g,z,$,G]=k;return G!==void 0?`rgba(${g}, ${z}, ${$}, ${G})`:`rgb(${g}, ${z}, ${$})`}if(typeof k=="string"){const g=k.trim();if(g.startsWith("[")&&g.endsWith("]")){const z=g.slice(1,-1).split(",").map($=>Number($.trim()));if(z.length>=3&&z.every($=>!Number.isNaN($))){const[$,G,de,Me]=z;return Me!==void 0?`rgba(${$}, ${G}, ${de}, ${Me})`:`rgb(${$}, ${G}, ${de})`}}return g}},y=a.computed(()=>{const k=Number(n==null?void 0:n.textSize),g=h(n==null?void 0:n.textColor),z={},$={},G={},de={};return!Number.isNaN(k)&&k&&(z.fontSize=`${k}px`,$.fontSize=`${k+1}px`,G.fontSize=`${k}px`,de.fontSize=`${k}px`),g&&($.color=g,G.color=g,de.color=g),{item:z,label:$,value:G,empty:de}}),u=a.ref(""),x=a.ref(""),D=a.ref(!1),R=async k=>{if(k){x.value&&(URL.revokeObjectURL(x.value),x.value="");try{const g=await L.platformDownloadFile({url:k}),z=new Blob([g==null?void 0:g.data],{type:(g==null?void 0:g.headers["content-type"])||"image/*"});x.value=URL.createObjectURL(z)}catch{x.value=""}}};a.watch(()=>n==null?void 0:n.backGroundImage,k=>{k&&(u.value=k)},{immediate:!0}),a.watch(u,k=>{R(k)},{immediate:!0});const E=()=>{var k;(k=f.value)==null||k.click()},W=async k=>{var $,G,de;const g=k.target,z=($=g==null?void 0:g.files)==null?void 0:$[0];if(!z){g.value="";return}D.value=!0;try{const Me=new FormData;Me.append("file",z);const pe=await L.platformUploadFile(Me),Z=(de=(G=pe==null?void 0:pe.data)==null?void 0:G.result)==null?void 0:de.url;Z?(u.value=Z,o("update:backGroundImage",Z),R(Z),Ga.ElMessage.success("背景图片上传成功")):Ga.ElMessage.error("背景图片上传失败")}catch{Ga.ElMessage.error("背景图片上传失败")}finally{D.value=!1,g.value=""}},I=a.computed(()=>x.value?{backgroundImage:`url(${x.value})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),U=k=>il.getComponent(k),j=k=>{if(!k)return;const g=k.querySelector("input, textarea, .el-input__inner");g&&typeof g.focus=="function"&&g.focus()},C=(k,g,z)=>{n.disabled||(m.value=g,a.nextTick(()=>{j(z.currentTarget)}))},_=()=>{m.value=null},S=k=>{const g=k!=null&&k.width&&k.width>0?k.width:1,$=`calc((100% - ${(g-1)*48}px) / ${g})`;return{flex:`0 0 ${$}`,maxWidth:$,minWidth:"0",boxSizing:"border-box"}};return(k,g)=>{const z=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",{class:"static-form-card",style:a.normalizeStyle(I.value),onClick:g[2]||(g[2]=$=>(n==null?void 0:n.backGround)==="Yes"&&E())},[(n==null?void 0:n.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:g[0]||(g[0]=a.withModifiers($=>E(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:f,type:"file",accept:"image/*",style:{display:"none"},onChange:W},null,544),g[3]||(g[3]=a.createElementVNode("img",{src:il._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),c.value.length?(a.openBlock(),a.createElementBlock("div",O3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,($,G)=>{var de,Me,pe,Z,fe,le,ue,Ne;return a.openBlock(),a.createElementBlock("div",{key:G,class:"static-form-item",style:a.normalizeStyle({...S($),...y.value.item}),onClick:g[1]||(g[1]=a.withModifiers(()=>{},["stop"]))},[$.label?(a.openBlock(),a.createElementBlock("div",{key:0,class:"static-form-label",style:a.normalizeStyle(y.value.label)},a.toDisplayString($.label)+": ",5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(y.value.value),onClick:Fe=>C($,G,Fe)},[m.value===G&&$.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(U(((de=$.field)==null?void 0:de.type)??"Input")),{key:0,modelValue:$.field.value,"onUpdate:modelValue":Fe=>$.field.value=Fe,isEdit:!0,disabled:(Me=$.field)==null?void 0:Me.disabled,content:((pe=$.field)==null?void 0:pe.contents)??[],optionUrl:$.field,originalValue:(Z=$.field)==null?void 0:Z.value,config:(fe=$.field)==null?void 0:fe.config,configModel:((le=$.field)==null?void 0:le.prop)??((ue=$.field)==null?void 0:ue.name),selectedTagList:((Ne=$.field)==null?void 0:Ne.selectValue)??[],onBlur:_,onBlurChange:_},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[$.isStatus?(a.openBlock(),a.createBlock(z,{key:0,type:$.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString($.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",$3,a.toDisplayString($.value??"-"),1))],64))],12,L3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:2,class:"static-form-empty",style:a.normalizeStyle(y.value.empty)}," 暂无数据 ",4))],4)}}}),Ac=Jl._export_sfc(R3,[["__scopeId","data-v-195b0dcc"]]),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(l,{emit:r}){const n=()=>{m.value=!1,f.value=!1,h.value=[]},o=l;a.computed(()=>{var oe;const H=(oe=xe.value)==null?void 0:oe.split("/");return(H==null?void 0:H.some(we=>(we==null?void 0:we.includes("updateLoading"))||(we==null?void 0:we.includes("loading"))))?!1:Ne.value==="view"});const s=r,c=a.ref([]),m=a.ref(!1),f=a.ref(!1),h=a.ref([]),{getFileExtension:y}=Ci.useThreeSystem(),u=a.ref(),x=a.ref(!1),D=a.ref(!1),R=L.useUnit(L.pinia),{chooseTitle:E}=L.storeToRefs(R),W=a.ref([]),I=a.ref(),U=a.ref(!1),j=a.ref([]),C=dc(L.pinia),_=Bt(L.pinia),S=a.ref(!1),k=a.ref(),g=a.ref(),z=a.ref(),$=a.ref(),G=a.ref(),de=L.useLoginState(L.pinia),{loginUserInfo:Me}=L.storeToRefs(de),pe=a.ref(),Z=a.ref(!0),fe=L.useModelComp(L.pinia),{tableViewContents:le,itemData:ue,isEdit:Ne,routeToChildPath:Fe,lockingPage:be}=L.storeToRefs(fe),A=a.ref(null),q=a.ref(!1),re=a.ref(!1),Te=L.useMenuState(),{activeMenuPath:xe}=L.storeToRefs(Te),Ye=oa.useOriginalState(L.pinia),{originalPath:da}=L.storeToRefs(Ye),{compType:Ma,hasEditable:ne}=Xs.useRole(),Ae=()=>!ne(o.config,{type:Ma.FORM});a.computed(()=>xe.value==="设备管理/试验设备"&&o.compName==="设备概要");const Ie=a.ref([]),qe=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Ve=async H=>{re.value=H,await P("disabled",null,H,!0)},se=async H=>{await P("operable",null,H,!0)};a.watch(()=>xe.value,async()=>{c.value=[],h.value=[]},{deep:!0,immediate:!0});const $e=()=>{a.nextTick(()=>{V()})},Ue=H=>{var ye;c.value=(ye=c.value)==null?void 0:ye.map(oe=>({...oe,isFormColHidden:!(H!=null&&H.includes(oe.label))}))};a.onUnmounted(()=>{A.value=null});const Na=H=>{s("clickTrigger",H)},La=async H=>{var ye,oe,we,Q,Qe,ze;if(H===""){let ka="";(ye=c.value)==null||ye.forEach(ba=>{ba!=null&&ba.isMain&&(ka=ba==null?void 0:ba.value)});let ca=await oa.getItemData(Fe.value,sessionStorage.getItem("systemKey"),"");ka=((ze=(Qe=(Q=(we=(oe=ca==null?void 0:ca[0])==null?void 0:oe.compData)==null?void 0:we.find(ba=>(ba==null?void 0:ba.key)==="mainRouters"))==null?void 0:Q.contents)==null?void 0:Qe[0])==null?void 0:ze.routerContent)+da.value+ka;let Ia=await oa.getItemData(ka,sessionStorage.getItem("systemKey"),"");U.value=!0,j.value=Ia==null?void 0:Ia.filter(ba=>(ba==null?void 0:ba.comp)!=="methodButton"),s("routeUrl",j.value)}},V=()=>{var ye;const H=(ye=A.value)==null?void 0:ye.$el;H&&aa.Sortable.create(H,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:oe=>{const{oldIndex:we,newIndex:Q}=oe;if(we===Q)return;const Qe=c.value.splice(we,1)[0];c.value.splice(Q,0,Qe)}})},P=async(H,ye,oe,we=!1)=>{try{fe.setRefreshCurStructure(!1)}catch{Ga.ElMessage.error("编辑处理失败")}},ae=async(H,ye)=>{await P()},he=async(H,ye)=>{H&&await P()},me=async(H,ye,oe)=>{await P(ye,oe,H,!1)},fa=(H,ye)=>{pe.value===ye?Z.value=!1:Z.value=!0,pe.value=ye==null?void 0:ye.changeProp},Xe=H=>{$.value=H;const ye=o.itemData,oe=ye==null?void 0:ye.find(we=>(we==null?void 0:we.key)==="backGroundImage");oe?oe.contents=H:ye==null||ye.push({key:"backGroundImage",contents:H}),s("change",{key:"backGroundImage",contents:H})},ce=async H=>{var oe,we,Q,Qe,ze,ka,ca,Aa,Ia,ba,ua,va,Ha,pl,$l;let ye=[];if((oe=H==null?void 0:H.toString())!=null&&oe.includes(".urdf")){if(H.includes(",")){Ga.ElMessage.error("当前版本仅允许单个urdf预览!");return}h.value=[{url:H,extension:y(H)}],f.value=!0,m.value=!0;return}if((we=H==null?void 0:H.toString())!=null&&we.includes(".stl")||(Q=H==null?void 0:H.toString())!=null&&Q.includes(".STL")||(Qe=H==null?void 0:H.toString())!=null&&Qe.includes(".obj")||(ze=H==null?void 0:H.toString())!=null&&ze.includes(".mtl")){const Ol=((ka=H==null?void 0:H.toString())==null?void 0:ka.split(",")).map(Ra=>({url:Ra,extension:y(Ra)}));h.value=Ol,f.value=!1,m.value=!0;return}if((ca=H==null?void 0:H.toString())!=null&&ca.includes(".stl")||(Aa=H==null?void 0:H.toString())!=null&&Aa.includes(".STL")||(Ia=H==null?void 0:H.toString())!=null&&Ia.includes(".obj")||(ba=H==null?void 0:H.toString())!=null&&ba.includes(".mtl")){let gl,Ol=[],Ra={};if(Array.isArray(H)?gl=H:gl=H==null?void 0:H.split(","),gl==null||gl.forEach(jl=>{jl.includes(".mtl")?Ol.push(jl):Ra.blob=Ra.blob?Ra.blob+","+jl:jl}),(Ol==null?void 0:Ol.length)>0&&(Ra.mtlBlobs=Ol),(va=(ua=Object.values(Ra))==null?void 0:ua[0])!=null&&va.includes("http:"))ye.push(Ra);else{const jl=new Blob([Ra.blob],{type:"application/octet-stream;charset=UTF-8"});let Zl=URL.createObjectURL(jl),ja="";(Ha=H==null?void 0:H.split("/"))==null||Ha.forEach((ga,Ca)=>{var Ua;Ca===((Ua=H==null?void 0:H.split("/"))==null?void 0:Ua.length)-1&&(ja=ga)}),(pl=Ra.blob)!=null&&pl.includes(".stl")&&(ja=(ja==null?void 0:ja.replaceAll(">",""))+".urdf"),I.value=[{name:ja,blobUrl:Zl}],D.value=!0}}else{const gl=jo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Ol=await Ga.axios.get(H,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{gl.close()}),Ra=new Blob([Ol.data],{type:"application/octet-stream;charset=UTF-8"});let jl=URL.createObjectURL(Ra),Zl="";($l=H==null?void 0:H.split("/"))==null||$l.forEach((ja,ga)=>{var Ca;ga===((Ca=H==null?void 0:H.split("/"))==null?void 0:Ca.length)-1&&(Zl=ja)}),I.value=[{name:Zl,blobUrl:jl}],D.value=!0}(ye==null?void 0:ye.length)>0&&_.setBlobUrls(ye)},Ee=()=>{D.value=!1},ma=H=>{var Qe,ze,ka,ca;const ye=(ze=(Qe=il.safeClone(o.itemData))==null?void 0:Qe.find(Aa=>(Aa==null?void 0:Aa.key)==="formContent"))==null?void 0:ze.contents,oe=il.safeClone(H.content);let we={};oe&&((ka=Object.values(oe))==null?void 0:ka.length)>0&&((ca=Object.values(oe))==null||ca.forEach((Aa,Ia)=>{we[ye[Ia].key]=Aa}));const Q={content:we,index:o==null?void 0:o.index,buttonName:H==null?void 0:H.buttonName};s("change",Q)};a.computed(()=>"http://222.92.178.198:62001");const We=async H=>{var ua,va,Ha,pl,$l,gl,Ol,Ra,jl,Zl,ja,ga,Ca,Ua,al,Za;if(!H)return;(va=(ua=o==null?void 0:o.itemData)==null?void 0:ua.find(Oe=>(Oe==null?void 0:Oe.key)==="parentFormPath"))==null||va.contents;let ye=le.value;(ye==null?void 0:ye.length)>0&&(ye=ye==null?void 0:ye.map(Oe=>{var _e,Ba,Ge,X;let ra=(_e=Oe==null?void 0:Oe.key)==null?void 0:_e.split("/");return(o==null?void 0:o.compName)===(ra==null?void 0:ra[0])&&(Ba=c.value)!=null&&Ba.find(la=>(la==null?void 0:la.prop)===(ra==null?void 0:ra[1]))&&(Oe.value=(X=(Ge=c.value)==null?void 0:Ge.find(la=>(la==null?void 0:la.prop)===(ra==null?void 0:ra[1])))==null?void 0:X.value),Oe}),fe.setTableViewContents(ye));const oe=il.safeClone(o.itemData);let we=oe==null?void 0:oe.map(Oe=>{var ra;return(Oe==null?void 0:Oe.key)==="formContent"&&((ra=Oe.contents)==null||ra.map((_e,Ba)=>{var Ge,X,la,Ze,Le,xl,ll,hl,Va,Wa,_a,ge,xa,wl,Rl,Fl,or,gr,Cl,sr,Tr;return _e.type=(X=(Ge=c.value)==null?void 0:Ge.find(Ml=>(Ml==null?void 0:Ml.prop)===(_e==null?void 0:_e.prop)))==null?void 0:X.type,_e.options=_e!=null&&_e.options?_e.options:((Le=(Ze=(la=_e==null?void 0:_e.key)==null?void 0:la.split("$"))==null?void 0:Ze[1])==null?void 0:Le.length)>0?(Va=(hl=Ru((ll=(xl=_e==null?void 0:_e.key)==null?void 0:xl.split("$"))==null?void 0:ll[1]))==null?void 0:hl.split(","))==null?void 0:Va.map(Ml=>({label:Ml,value:Ml})):[],(Wa=_e==null?void 0:_e.key)!=null&&Wa.includes("$")&&(_e.key=(ge=(_a=_e==null?void 0:_e.key)==null?void 0:_a.split("$"))==null?void 0:ge[0]),_e.signature=(wl=(xa=c.value)==null?void 0:xa.find(Ml=>(Ml==null?void 0:Ml.prop)===(_e==null?void 0:_e.prop)))==null?void 0:wl.signature,_e.isLoginUser=(Fl=(Rl=c.value)==null?void 0:Rl.find(Ml=>(Ml==null?void 0:Ml.prop)===(_e==null?void 0:_e.prop)))==null?void 0:Fl.isLoginUser,_e.value=(or=Object.values(H))==null?void 0:or[Ba],_e.isFormColHidden=(Cl=(gr=c.value)==null?void 0:gr.find(Ml=>(Ml==null?void 0:Ml.prop)===(_e==null?void 0:_e.prop)))==null?void 0:Cl.isFormColHidden,_e.isHideInForm=(Tr=(sr=c.value)==null?void 0:sr.find(Ml=>(Ml==null?void 0:Ml.prop)===(_e==null?void 0:_e.prop)))==null?void 0:Tr.isHideInForm,_e})),Oe}),Q=c.value,Qe=(pl=(Ha=il.safeClone(we))==null?void 0:Ha.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:pl.contents;if(Q=Q==null?void 0:Q.map(Oe=>{var ra,_e;return(Oe==null?void 0:Oe.type)==="Select"&&((ra=Oe==null?void 0:Oe.allSelectionContents)==null?void 0:ra.length)>0&&(Oe.contactValue=H),Oe.value=(_e=Qe==null?void 0:Qe.find((Ba,Ge)=>((Ba==null?void 0:Ba.id)??Ge)===(Oe==null?void 0:Oe.id)))==null?void 0:_e.value,Oe}),!Z.value){s("contentChange",{contents:we,index:o.index});return}let ze="",ka=(Ol=(gl=($l=il.safeClone(we))==null?void 0:$l.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:gl.contents)==null?void 0:Ol.find((Oe,ra)=>{var _e,Ba,Ge;return(Oe==null?void 0:Oe.label)===pe.value||ra.toString()===((Ge=(Ba=(_e=pe.value)==null?void 0:_e.split("t"))==null?void 0:Ba[1])==null?void 0:Ge.toString())}),ca=(Ra=ka==null?void 0:ka.optionUrl)==null?void 0:Ra.menuSelect,Aa=!0;if((ja=(Zl=(jl=il.safeClone(we))==null?void 0:jl.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:Zl.contents)==null||ja.forEach(Oe=>{var ra,_e,Ba,Ge,X,la;Aa&&((Ba=(_e=(ra=Oe==null?void 0:Oe.optionUrl)==null?void 0:ra.groupSelect)==null?void 0:_e[1])!=null&&Ba.includes("["))&&(ze=(X=(Ge=Oe==null?void 0:Oe.optionUrl)==null?void 0:Ge.groupSelect)==null?void 0:X[1],JSON.stringify(ca)===JSON.stringify((la=Oe==null?void 0:Oe.optionUrl)==null?void 0:la.menuSelect)&&(Aa=!1))}),(ga=ka==null?void 0:ka.optionUrl)!=null&&ga.menuSelect&&Z.value){let Oe=await kt(ka),ra,_e=(Ca=ka==null?void 0:ka.optionUrl)==null?void 0:Ca.menuSelect;if(Oe==null||Oe.forEach(Ba=>{var Ge,X,la,Ze,Le,xl,ll,hl,Va,Wa;ze===((X=(Ge=ka==null?void 0:ka.optionUrl)==null?void 0:Ge.groupSelect)==null?void 0:X[1])&&((Le=(Ze=(la=ka==null?void 0:ka.optionUrl)==null?void 0:la.groupSelect)==null?void 0:Ze[1])!=null&&Le.includes("["))&&((Wa=il.safeClone(Ba))==null?void 0:Wa[(Va=(hl=(ll=(xl=ka==null?void 0:ka.optionUrl)==null?void 0:xl.groupSelect)==null?void 0:ll[1])==null?void 0:hl.replaceAll("[",""))==null?void 0:Va.replaceAll("]","")])===(ka==null?void 0:ka.value)&&(ra=Ba)}),ra){let Ba=il.safeClone(Q);Ba=Ba==null?void 0:Ba.map(X=>{var la,Ze,Le,xl,ll,hl,Va,Wa,_a,ge,xa;return(ra!=null&&ra[X==null?void 0:X.label]||ra!=null&&ra[(xl=(Le=(Ze=(la=X==null?void 0:X.optionUrl)==null?void 0:la.groupSelect)==null?void 0:Ze[1])==null?void 0:Le.replaceAll("[",""))==null?void 0:xl.replaceAll("]","")])&&((Va=(hl=(ll=X==null?void 0:X.optionUrl)==null?void 0:ll.groupSelect)==null?void 0:hl[1])!=null&&Va.includes("["))&&_e!=null&&_e.every(wl=>{var Rl,Fl;return(Fl=(Rl=X==null?void 0:X.optionUrl)==null?void 0:Rl.menuSelect)==null?void 0:Fl.includes(wl)})&&(X.value=(ra==null?void 0:ra[X==null?void 0:X.label])||(ra==null?void 0:ra[(xa=(ge=(_a=(Wa=X==null?void 0:X.optionUrl)==null?void 0:Wa.groupSelect)==null?void 0:_a[1])==null?void 0:ge.replaceAll("[",""))==null?void 0:xa.replaceAll("]","")]),Array.isArray(X.value)&&X.value.every(wl=>(wl==null?void 0:wl.url)&&(wl==null?void 0:wl.name))&&(X.type="Upload")),X}),Ba=Ba==null?void 0:Ba.map(X=>{var la,Ze,Le;return(la=X==null?void 0:X.optionUrl)!=null&&la.oldMenuSelect&&(X.optionUrl.menuSelect=(Le=(Ze=il.safeClone(X))==null?void 0:Ze.optionUrl)==null?void 0:Le.oldMenuSelect),X}),c.value=il.safeClone(Ba);let Ge=il.safeClone(Ba);Ge=Ge==null?void 0:Ge.map(X=>{var la,Ze,Le,xl,ll,hl;return(Ze=(la=X==null?void 0:X.optionUrl)==null?void 0:la.menuSelect)!=null&&Ze.some(Va=>Va==null?void 0:Va.includes("["))&&(X.optionUrl.oldMenuSelect=(xl=(Le=il.safeClone(X))==null?void 0:Le.optionUrl)==null?void 0:xl.menuSelect,X.optionUrl.menuSelect=(hl=(ll=X==null?void 0:X.optionUrl)==null?void 0:ll.menuSelect)==null?void 0:hl.map(Va=>{var Wa,_a,ge,xa;if(Va!=null&&Va.includes("[")){let wl=(_a=(Wa=Va==null?void 0:Va.replaceAll("[","").replaceAll("]",""))==null?void 0:Wa.split(":"))==null?void 0:_a[1];Va=(xa=(ge=il.safeClone(Ba))==null?void 0:ge.find(Rl=>(Rl==null?void 0:Rl.label)===wl))==null?void 0:xa.value}return Va})),X}),c.value=Ge}else c.value=Q;we=we==null?void 0:we.map(Ba=>{var Ge;return(Ba==null?void 0:Ba.key)==="formContent"&&(Ba.contents=(Ge=Ba.contents)==null?void 0:Ge.map(X=>{var la,Ze,Le,xl;return X.value=((Ze=(la=c.value)==null?void 0:la.find(ll=>(ll==null?void 0:ll.label)===(X==null?void 0:X.key)))==null?void 0:Ze.value)??(X==null?void 0:X.value),X.type=((xl=(Le=c.value)==null?void 0:Le.find(ll=>(ll==null?void 0:ll.prop)===(X==null?void 0:X.key)))==null?void 0:xl.type)??(X==null?void 0:X.type),X})),Ba})}Z.value=!1,s("contentChange",{contents:we,index:o.index});let Ia=[],ba=[];if((al=il.safeClone((Ua=we==null?void 0:we.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:Ua.contents))==null||al.forEach(Oe=>{var ra;Array.isArray(Oe==null?void 0:Oe.value)&&((ra=Oe==null?void 0:Oe.value)!=null&&ra.find(_e=>{var Ba;return(Ba=_e==null?void 0:_e.url)==null?void 0:Ba.includes(".obj")}))&&(ba=Oe==null?void 0:Oe.value)}),(ba==null?void 0:ba.length)>0){const Oe=(Za=il.safeClone(ba))==null?void 0:Za.filter(ra=>{var _e;return(_e=ra==null?void 0:ra.url)==null?void 0:_e.includes(".obj")});Oe==null||Oe.forEach(ra=>{var Ba,Ge,X,la;const _e=(Ba=ba==null?void 0:ba.filter(Ze=>{var Le;return(Ze==null?void 0:Ze.name)===(ra==null?void 0:ra.name)&&((Le=Ze==null?void 0:Ze.url)==null?void 0:Le.includes(".mtl"))}))==null?void 0:Ba.map(Ze=>Ze==null?void 0:Ze.url);Ia.push({objUrl:ra==null?void 0:ra.url,mtlUrls:((Ge=ba==null?void 0:ba.filter(Ze=>{var Le;return(Ze==null?void 0:Ze.name)===(ra==null?void 0:ra.name)&&((Le=Ze==null?void 0:Ze.url)==null?void 0:Le.includes(".mtl"))}))==null?void 0:Ge.length)===1?(la=(X=ba==null?void 0:ba.filter(Ze=>{var Le;return(Ze==null?void 0:Ze.name)===(ra==null?void 0:ra.name)&&((Le=Ze==null?void 0:Ze.url)==null?void 0:Le.includes(".mtl"))}))==null?void 0:X[0])==null?void 0:la.url:_e})}),_.setObjUrl(Ia)}},Oa=(H,ye,oe)=>{let we="";const Q=ye==null?void 0:ye.map(Qe=>{var ze;return(ze=Qe==null?void 0:Qe.value)==null?void 0:ze.pageData});return Q==null||Q.forEach(Qe=>{var ze;(Qe==null?void 0:Qe.name)===(H==null?void 0:H[0])&&((ze=Qe==null?void 0:Qe.compData)==null||ze.forEach(ka=>{var ca;(ka==null?void 0:ka.key)==="formContent"&&((ca=ka==null?void 0:ka.contents)==null||ca.forEach(Aa=>{var Ia;(Aa==null?void 0:Aa.prop)===(H==null?void 0:H[1])&&(we=(Aa==null?void 0:Aa.value)===""?oa.judgeContents((Ia=il.safeClone(Aa))==null?void 0:Ia.optionUrl,oe):Aa==null?void 0:Aa.value)}))}))}),we},za=(H,ye,oe,we)=>{var ka,ca;let Q="",Qe="";(ka=il.safeClone(ye))==null||ka.forEach((Aa,Ia)=>{Aa!=null&&Aa.includes("[")?Qe=Qe+da.value+H[Ia]:Qe=Qe===""?Qe+Aa:Qe+"/"+Aa});let ze=(ca=we[Qe])==null?void 0:ca.map(Aa=>{var Ia;return(Ia=Aa==null?void 0:Aa.value)==null?void 0:Ia.pageData});return ze==null||ze.forEach(Aa=>{var Ia;(Aa==null?void 0:Aa.name)===(oe==null?void 0:oe[0])&&((Ia=Aa==null?void 0:Aa.compData)==null||Ia.forEach(ba=>{var ua;(ba==null?void 0:ba.key)==="formContent"&&((ua=ba==null?void 0:ba.contents)==null||ua.forEach(va=>{(va==null?void 0:va.prop)===(oe==null?void 0:oe[1])&&(Q=va==null?void 0:va.value)}))}))}),Q};return a.watch(()=>o.itemData,async()=>{var ua,va,Ha,pl,$l,gl,Ol,Ra,jl,Zl,ja,ga,Ca,Ua,al,Za,Oe,ra,_e,Ba,Ge,X,la;const H=(ua=o.itemData)==null?void 0:ua.find(Ze=>(Ze==null?void 0:Ze.key)==="formContent"),ye=(va=il.safeClone(o.itemData))==null?void 0:va.find(Ze=>(Ze==null?void 0:Ze.key)==="formButton"),oe=(Ha=il.safeClone(o.itemData))==null?void 0:Ha.find(Ze=>(Ze==null?void 0:Ze.key)==="formFlex"),we=(pl=il.safeClone(o.itemData))==null?void 0:pl.find(Ze=>(Ze==null?void 0:Ze.key)==="formWrap"),Q=($l=il.safeClone(o.itemData))==null?void 0:$l.find(Ze=>(Ze==null?void 0:Ze.key)==="enableWrap"),Qe=(gl=il.safeClone(o.itemData))==null?void 0:gl.find(Ze=>(Ze==null?void 0:Ze.key)==="textSize"),ze=(Ol=il.safeClone(o.itemData))==null?void 0:Ol.find(Ze=>(Ze==null?void 0:Ze.key)==="textRGBA"),ka=(Ra=il.safeClone(o.itemData))==null?void 0:Ra.find(Ze=>(Ze==null?void 0:Ze.key)==="backGround"),ca=(jl=il.safeClone(o.itemData))==null?void 0:jl.find(Ze=>(Ze==null?void 0:Ze.key)==="backGroundImage");(we==null?void 0:we.contents)==="纵向"?x.value=!1:x.value=!0;const Aa=Number(Qe==null?void 0:Qe.contents);k.value=Number.isNaN(Aa)?void 0:Aa,g.value=ze==null?void 0:ze.contents,z.value=ka==null?void 0:ka.contents,$.value=ca==null?void 0:ca.contents;const Ia=Q==null?void 0:Q.contents;if(Ia===void 0?S.value=to.BLOCK:typeof Ia=="boolean"?S.value=Ia?to.ORDINARY:to.BLOCK:S.value=Ia,G.value=typeof(oe==null?void 0:oe.contents)!="boolean"?!(!(oe!=null&&oe.contents)===""||((Zl=oe==null?void 0:oe.contents)==null?void 0:Zl.toUpperCase())==="VERTICAL"):oe==null?void 0:oe.contents,((ja=H==null?void 0:H.contents)==null?void 0:ja.length)>0&&Array.isArray(H==null?void 0:H.contents)){let Ze=o.allMapContents;const Le=(Ca=(ga=il.safeClone(H))==null?void 0:ga.contents)==null?void 0:Ca.map((ge,xa)=>{var Cr,Mr,Ir,Nr,Fr,Lr,cr,xn,Yr,nn,zn,wn,gn;let wl=(ge==null?void 0:ge.label)??(ge==null?void 0:ge.key)??"";ge==null||ge.type;let Rl=(ge==null?void 0:ge.options)??[];if((Cr=ge==null?void 0:ge.key)!=null&&Cr.includes("$")&&(wl=(Mr=il.safeClone(ge==null?void 0:ge.key).split("$"))==null?void 0:Mr[0],((Nr=(Ir=il.safeClone(ge==null?void 0:ge.key).split("$"))==null?void 0:Ir[1])==null?void 0:Nr.length)>0)){const[mr,Hl]=(Lr=(Fr=il.safeClone(ge==null?void 0:ge.key).split("$"))==null?void 0:Fr[1])==null?void 0:Lr.split(/[()]/);(cr=oa.FormType.find(pr=>(pr==null?void 0:pr.key)===mr))==null||cr.value,((xn=Hl==null?void 0:Hl.split(","))==null?void 0:xn.length)>0&&(Rl=(Yr=Hl==null?void 0:Hl.split(","))==null?void 0:Yr.map(pr=>({label:pr,value:pr})))}let Fl=ge==null?void 0:ge.options;((nn=ge==null?void 0:ge.optionUrl)==null?void 0:nn.selectRelateType)==="自定义绑定"&&(Fl=(wn=(zn=ge==null?void 0:ge.optionUrl)==null?void 0:zn.defaultSelect)==null?void 0:wn.map(mr=>({label:mr,value:mr})));let or=(ge==null?void 0:ge.menuPath)??[],gr=(ge==null?void 0:ge.groups)??[],Cl=(ge==null?void 0:ge.columns)??[],sr=!1,Tr=(ge==null?void 0:ge.isFormColHidden)??!1,Ml="",rr=ge!=null&&ge.value?ge.value:(Fl==null?void 0:Fl.length)>0?(gn=Fl==null?void 0:Fl[0])==null?void 0:gn.value:(ge==null?void 0:ge.value)??"",en=!1,Or="Input";return((Fl==null?void 0:Fl.length)>0||(or==null?void 0:or.length)>0)&&(Or="Select"),(Array.isArray(Ml)&&(Ml!=null&&Ml.every(mr=>(mr==null?void 0:mr.name)&&(mr==null?void 0:mr.url)))||Array.isArray(rr)&&(rr!=null&&rr.every(mr=>(mr==null?void 0:mr.name)&&(mr==null?void 0:mr.url))))&&(Or="upload"),ge!=null&&ge.isMainUrl&&(Or="Url"),{label:wl??"",name:wl??"t"+xa,prop:wl??il.safeClone(ge==null?void 0:ge.key),type:(ge==null?void 0:ge.type)??Or,value:(ge==null?void 0:ge.type)==="Date"&&rr===""?new Date:rr,id:(ge==null?void 0:ge.id)??xa,contents:(Fl==null?void 0:Fl.length)>0?Fl:Rl??[],width:(ge==null?void 0:ge.width)??1,isLoginUser:sr,config:ge==null?void 0:ge.config,optionUrl:(ge==null?void 0:ge.optionUrl)??ge,isFormColHidden:Tr,isHideInForm:(ge==null?void 0:ge.isHideInForm)??!1,signature:en,isMain:ge==null?void 0:ge.isMain,required:(ge==null?void 0:ge.required)??!1,isMainUrl:ge==null?void 0:ge.isMainUrl,operable:(ge==null?void 0:ge.operable)??!1,disabled:(ge==null?void 0:ge.disabled)??!1,isSync:ge==null?void 0:ge.isSync,menus:or,groups:gr,words:Cl,allSelectionContents:ge==null?void 0:ge.allContents,filterContent:ge==null?void 0:ge.filterContents}}),xl=Le==null?void 0:Le.map(ge=>ge==null?void 0:ge.value);let ll="";xl==null||xl.forEach(ge=>{ge!==""&&ge!==void 0&&(ll=ll===""?ge:ll+"/"+ge)}),C.setSelectArray(xl),C.setSelectString(ll);let hl=(Ua=il.safeClone(Le))==null?void 0:Ua.map(ge=>(ge!=null&&ge.value&&oa.IsJson(ge==null?void 0:ge.value)&&Array.isArray(JSON.parse(ge==null?void 0:ge.value))&&(ge.value=JSON.parse(ge.value)),ge)),Va={};hl==null||hl.forEach(ge=>{Va[ge.label]=ge==null?void 0:ge.value}),hl=hl==null?void 0:hl.map(ge=>{var xa,wl,Rl,Fl,or,gr,Cl,sr,Tr;if((ge==null?void 0:ge.type)==="Select"&&((xa=ge==null?void 0:ge.allSelectionContents)==null?void 0:xa.length)>0&&(ge.contactValue=Va),(Rl=(wl=ge==null?void 0:ge.optionUrl)==null?void 0:wl.menuSelect)!=null&&Rl.some(Ml=>Ml==null?void 0:Ml.includes("["))){let Ml="";ge.optionUrl.oldMenuSelect=(or=(Fl=il.safeClone(ge))==null?void 0:Fl.optionUrl)==null?void 0:or.menuSelect,ge.optionUrl.menuSelect=(Cl=(gr=ge==null?void 0:ge.optionUrl)==null?void 0:gr.menuSelect)==null?void 0:Cl.map(rr=>{var en,Or,zr,Cr,Mr,Ir;if(rr!=null&&rr.includes("[")){let Nr=(Or=(en=rr==null?void 0:rr.replaceAll("[","").replaceAll("]",""))==null?void 0:en.split(":"))==null?void 0:Or[1];Ml=Oa((zr=rr==null?void 0:rr.replaceAll("[","").replaceAll("]",""))==null?void 0:zr.split(":"),Ze==null?void 0:Ze[xe.value],Ze),rr=((Mr=(Cr=il.safeClone(hl))==null?void 0:Cr.find(Fr=>(Fr==null?void 0:Fr.label)===Nr))==null?void 0:Mr.value)||Oa((Ir=rr==null?void 0:rr.replaceAll("[","").replaceAll("]",""))==null?void 0:Ir.split(":"),Ze==null?void 0:Ze[xe.value],Ze)}return rr}),Ml!==""&&ge.value===""&&(ge.value=za(ge.optionUrl.menuSelect,ge.optionUrl.oldMenuSelect,(sr=ge==null?void 0:ge.optionUrl)==null?void 0:sr.groupSelect,Ze),Array.isArray(ge.value)&&((Tr=ge.value)!=null&&Tr.every(rr=>rr==null?void 0:rr.url))&&(ge.type="UPLOAD"))}return ge}),c.value=hl,re.value=((al=c.value)==null?void 0:al.every(ge=>ge==null?void 0:ge.disabled))||be.value===xe.value,q.value=(Za=c.value)==null?void 0:Za.every(ge=>ge==null?void 0:ge.operable),Ie.value=(Oe=c.value)==null?void 0:Oe.map(ge=>ge==null?void 0:ge.label);let Wa=[],_a=[];if((ra=il.safeClone(c.value))==null||ra.forEach(ge=>{var xa;Array.isArray(ge==null?void 0:ge.value)&&((xa=ge==null?void 0:ge.value)!=null&&xa.find(wl=>{var Rl;return(Rl=wl==null?void 0:wl.url)==null?void 0:Rl.includes(".obj")}))&&(_a=ge==null?void 0:ge.value)}),(_a==null?void 0:_a.length)>0){const ge=(_e=il.safeClone(_a))==null?void 0:_e.filter(xa=>{var wl;return(wl=xa==null?void 0:xa.url)==null?void 0:wl.includes(".obj")});ge==null||ge.forEach(xa=>{var Rl,Fl,or,gr;const wl=(Rl=_a==null?void 0:_a.filter(Cl=>{var sr;return(Cl==null?void 0:Cl.name)===(xa==null?void 0:xa.name)&&((sr=Cl==null?void 0:Cl.url)==null?void 0:sr.includes(".mtl"))}))==null?void 0:Rl.map(Cl=>Cl==null?void 0:Cl.url);Wa.push({objUrl:xa==null?void 0:xa.url,mtlUrls:((Fl=_a==null?void 0:_a.filter(Cl=>{var sr;return(Cl==null?void 0:Cl.name)===(xa==null?void 0:xa.name)&&((sr=Cl==null?void 0:Cl.url)==null?void 0:sr.includes(".mtl"))}))==null?void 0:Fl.length)===1?(gr=(or=_a==null?void 0:_a.filter(Cl=>{var sr;return(Cl==null?void 0:Cl.name)===(xa==null?void 0:xa.name)&&((sr=Cl==null?void 0:Cl.url)==null?void 0:sr.includes(".mtl"))}))==null?void 0:or[0])==null?void 0:gr.url:wl})}),_.setObjUrl(Wa)}(Ba=il.safeClone(c.value))==null||Ba.forEach(ge=>{var xa,wl,Rl,Fl,or,gr,Cl,sr,Tr,Ml,rr,en,Or;if((wl=(xa=ge==null?void 0:ge.value)==null?void 0:xa.toString())!=null&&wl.includes(".stl")||(Fl=(Rl=ge==null?void 0:ge.value)==null?void 0:Rl.toString())!=null&&Fl.includes(".STL")||(gr=(or=ge==null?void 0:ge.value)==null?void 0:or.toString())!=null&&gr.includes(".obj")||(sr=(Cl=ge==null?void 0:ge.value)==null?void 0:Cl.toString())!=null&&sr.includes(".mtl")||(Ml=(Tr=ge==null?void 0:ge.value)==null?void 0:Tr.toString())!=null&&Ml.includes(".urdf")){let zr={},Cr=[],Mr;Array.isArray(ge==null?void 0:ge.value)?Mr=ge==null?void 0:ge.value:Mr=(rr=ge==null?void 0:ge.value)==null?void 0:rr.split(","),Mr==null||Mr.forEach(Ir=>{Ir.includes(".mtl")?Cr.push(Ir):zr.blob=zr.blob==="undefined"?Ir:zr.blob+","+Ir}),(Cr==null?void 0:Cr.length)>0&&(zr.mtlBlobs=Cr),(Or=(en=Object.values(zr))==null?void 0:en[0])!=null&&Or.includes("http:")}})}else c.value=[];let ba=le.value;if((ba==null?void 0:ba.length)>0&&(ba=ba==null?void 0:ba.map(Ze=>{var xl,ll,hl,Va;let Le=(xl=Ze==null?void 0:Ze.key)==null?void 0:xl.split("/");return(o==null?void 0:o.compName)===(Le==null?void 0:Le[0])&&(ll=c.value)!=null&&ll.find(Wa=>(Wa==null?void 0:Wa.prop)===(Le==null?void 0:Le[1]))&&(Ze.value=(Va=(hl=c.value)==null?void 0:hl.find(Wa=>(Wa==null?void 0:Wa.prop)===(Le==null?void 0:Le[1])))==null?void 0:Va.value),Ze}),fe.setTableViewContents(ba)),o!=null&&o.formRules)u.value=o==null?void 0:o.formRules;else{let Ze={};(Ge=il.safeClone(c).value)==null||Ge.forEach(Le=>{((Le==null?void 0:Le.isMain)===!0||(Le==null?void 0:Le.required)===!0)&&(Ze[(Le==null?void 0:Le.prop)??(Le==null?void 0:Le.name)]=[{required:!0,message:`${(Le==null?void 0:Le.label)||(Le==null?void 0:Le.prop)||(Le==null?void 0:Le.name)}不能为空`}])}),u.value=Ze}if(((X=ye==null?void 0:ye.contents)==null?void 0:X.length)>0){const Ze=[];(la=ye==null?void 0:ye.contents)==null||la.forEach((Le,xl)=>{(Le==null?void 0:Le.label)!==""&&Ze.push({label:(Le==null?void 0:Le.label)??"",id:(Le==null?void 0:Le.id)??xl,type:(Le==null?void 0:Le.type)??"",background:Le==null?void 0:Le.background})}),W.value=Ze}else W.value=[]},{deep:!0,immediate:!0}),a.watch(()=>be.value,H=>{re.value=H===xe.value},{immediate:!0}),(H,ye)=>{var ka;const oe=a.resolveComponent("svg-icon"),we=a.resolveComponent("el-switch"),Q=a.resolveComponent("el-checkbox"),Qe=a.resolveComponent("el-popover"),ze=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",V3,[S.value===a.unref(to).TEXT?(a.openBlock(),a.createBlock(Ac,{key:0,itemData:l.itemData,compName:l.compName,fields:c.value,textSize:k.value,textColor:g.value,backGround:z.value,backGroundImage:$.value,disabled:re.value||Ae(),"onUpdate:backGroundImage":Xe},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):S.value===a.unref(to).BLOCK?(a.openBlock(),a.createBlock(Sf,{key:1,items:(ka=c.value)==null?void 0:ka.map(ca=>({label:ca!=null&&ca.isHideInForm?"":ca==null?void 0:ca.label,value:ca==null?void 0:ca.value,width:(ca==null?void 0:ca.width)??1,field:ca})),textSize:k.value,textColor:g.value,backGround:z.value,backGroundImage:$.value,disabled:re.value||Ae(),"onUpdate:backGroundImage":Xe},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":S.value===a.unref(to).ORDINARY})},[a.createVNode(il.ssForm,{rowContents:c.value,formRules:u.value,buttonValue:W.value,isRowFlex:!1,isEnableWrap:!0,textSize:k.value,textColor:g.value,backGround:z.value,backGroundImage:$.value,onOnButtonClick:ma,onChange:We,formDisabled:re.value||Ae(),formLabelsOperable:q.value,isButtonRow:x.value,onPreview:ce,onBlurChange:fa,onHandleColEditChange:ae,onHandleColTypeChange:he,onRouteUrl:La,onClickTrigger:Na,"onUpdate:backGroundImage":Xe},{operateCol:a.withCtx(({renderColumns:ca,formDisabled:Aa,formLabelsOperable:Ia})=>[a.createVNode(Qe,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:$e},{reference:a.withCtx(()=>[a.createElementVNode("span",F3,[a.createVNode(oe,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",P3,[ye[1]||(ye[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(we,{"model-value":Aa,"active-text":"禁用","inactive-text":"",onChange:Ve,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(we,{"model-value":Ia,"active-text":"编辑所有标签","inactive-text":"",onChange:se},null,8,["model-value"]),ye[2]||(ye[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(ze,{modelValue:Ie.value,"onUpdate:modelValue":ye[0]||(ye[0]=ba=>Ie.value=ba),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:A,onChange:Ue},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ca,ba=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ba.label},[a.createVNode(Q,{value:ba.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(ba.label),1)]),_:2},1032,["value"]),a.createVNode(Qe,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(oe,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var ua;return[a.createElementVNode("div",j3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ua=Object.keys(ba))==null?void 0:ua.filter(va=>{var Ha;return(Ha=qe.value)==null?void 0:Ha.find(pl=>(pl==null?void 0:pl.value)===va)}),va=>{var Ha,pl;return a.openBlock(),a.createElementBlock("div",{key:va},[a.createVNode(il._sfc_main$1,{value:ba==null?void 0:ba[va],"active-text":(pl=(Ha=qe.value)==null?void 0:Ha.find($l=>($l==null?void 0:$l.value)===va))==null?void 0:pl.label,inactiveText:"",onChange:$l=>me($l,va,ba)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",H3,[a.createVNode(oe,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow"])],2)),D.value?(a.openBlock(),a.createBlock(il.ssFilePreview,{key:3,fileDataList:I.value,onDestroy:Ee},null,8,["fileDataList"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(wr.ssDialog,{key:4,visible:m.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(Ci.ThreeViewerHost,{files:h.value,onGetAnimationData:H.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},ws=Jl._export_sfc(U3,[["__scopeId","data-v-752d82ac"]]),Oi=a.ref(0),zc=l=>{var r;return!l||(l==null?void 0:l.length)===0?[]:(r=L.cloneDeep(l))==null?void 0:r.map(o=>(Oi.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Oi.value,children:zc(o==null?void 0:o.children)},o))},q3=l=>{var n;return(n=L.cloneDeep(l))==null?void 0:n.map(o=>(Oi.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Oi.value,children:zc(o==null?void 0:o.children)},o))},Mc=(l,r)=>{var n;return l!=null&&l.find(o=>(o==null?void 0:o.id)===r)?(n=L.cloneDeep(l))==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==r):(l=l==null?void 0:l.map(o=>(o.children=Mc(o==null?void 0:o.children,r),o)),l)},Ic=(l,r)=>{var n;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(r==null?void 0:r.id))?(n=L.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s=r),s)):(l=l==null?void 0:l.map(o=>(o.children=Ic(o==null?void 0:o.children,r),o)),l)},Oc=(l,r)=>{var n;return l!=null&&l.find(o=>{var s;return(o==null?void 0:o.id)===((s=r==null?void 0:r.contents)==null?void 0:s.id)})?(n=L.cloneDeep(l))==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.id)===((c=r==null?void 0:r.contents)==null?void 0:c.id)&&(s=r==null?void 0:r.contents),s}):(l=l==null?void 0:l.map(o=>(o.children=Oc(o==null?void 0:o.children,r),o)),l)},Lc=(l,r)=>{var n;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(r==null?void 0:r.id))?(n=L.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(r.contents)),s)):(l=l==null?void 0:l.map(o=>(o.children=Lc(o==null?void 0:o.children,r),o)),l)},lr=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],W3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],K3=[{label:"新增",value:"add"}],Vn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:K3},{key:"background",label:"按钮背景色",type:"Color"}],Fn=[{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(l,{emit:r}){const n=l,o=r,s=a.ref(!1),c=a.ref(""),m=oa.useTableComp(L.pinia),{tableIndex:f}=L.storeToRefs(m);a.ref(0);const h=a.ref(""),y=a.ref([]),u=a.ref([]),x=C=>{var S;s.value=!0;let _=[];lr==null||lr.forEach(k=>{let g=L.cloneDeep(f.value)+1;m.setTableIndex(g),_.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:C[k.key],id:f.value,contents:k==null?void 0:k.options})}),C!=null&&C.children&&((S=C==null?void 0:C.children)==null?void 0:S.length)>0&&_.push({children:C==null?void 0:C.children,isFormColHidden:!0}),h.value=C==null?void 0:C.id,y.value=_,u.value=_},D=C=>{o("fixChange",L.cloneDeep(C))},R=C=>{o("deleteChange",L.cloneDeep(C))},E=C=>{s.value=!0;let _=[];lr==null||lr.forEach(S=>{let k=L.cloneDeep(f.value)+1;m.setTableIndex(k),_.push({label:S==null?void 0:S.label,name:S==null?void 0:S.label,type:S.type,value:"",id:f.value,contents:S==null?void 0:S.options})}),c.value=C==null?void 0:C.id,y.value=_,u.value=_},W=C=>{let _=L.cloneDeep(u.value);_=_==null?void 0:_.map(S=>(S.children||(S.value=C==null?void 0:C[S.name]),S)),u.value=_},I=()=>{var _,S;y.value=u.value;let C={};if(h.value!=="")C.id=h.value,(_=y.value)==null||_.forEach(k=>{const g=lr==null?void 0:lr.find(z=>(z==null?void 0:z.label)===(k==null?void 0:k.label));g?C[g.key]=k.value:k!=null&&k.children&&k.children.length>0&&(C.children=k.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"fix"});else{let k=L.cloneDeep(f.value)+1;m.setTableIndex(k),C.id="id"+f.value,(S=y.value)==null||S.forEach(g=>{const z=lr==null?void 0:lr.find($=>($==null?void 0:$.label)===(g==null?void 0:g.label));z?C[z.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"add"})}h.value="",y.value=[],u.value=[]},U=()=>{s.value=!1,h.value="",c.value="",y.value=[],u.value=[]},j=C=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(C,_)=>{const S=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",G3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(k,g)=>(a.openBlock(),a.createElementBlock("div",Y3,[a.createElementVNode("div",J3,[a.createElementVNode("div",X3,a.toDisplayString(k.label),1),a.createElementVNode("div",Z3,[a.createVNode(S,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:z=>E(k)},null,8,["onClick"]),a.createVNode(S,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:z=>x(k)},null,8,["onClick"]),a.createVNode(S,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:z=>j(k)},null,8,["onClick"])])]),k!=null&&k.children&&k.children.length>0?(a.openBlock(),a.createElementBlock("div",Q3,[a.createVNode($c,{tableChildContents:k==null?void 0:k.children,onDeleteChange:R,onFixChange:D},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:U,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",e2,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:W},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:U,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:I},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},l2=Jl._export_sfc(a2,[["__scopeId","data-v-e0fef72d"]]),r2={class:"table-header-child"},n2={class:"table-header-child-main"},o2={class:"table-header-child-content"},i2={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(l,{emit:r}){const n=l,o=r,s=a.ref(!1),c=a.ref(""),m=oa.useTableComp(L.pinia),{tableIndex:f}=L.storeToRefs(m),h=a.ref(""),y=a.ref([]),u=a.ref([]),x=C=>{o("fixChange",L.cloneDeep(C))},D=C=>{var S;s.value=!0;let _=[];lr==null||lr.forEach(k=>{let g=L.cloneDeep(f.value)+1;m.setTableIndex(g),_.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:C[k.key],id:f.value,contents:k==null?void 0:k.options})}),C!=null&&C.children&&((S=C==null?void 0:C.children)==null?void 0:S.length)>0&&_.push({children:C==null?void 0:C.children,isFormColHidden:!0}),h.value=C==null?void 0:C.id,y.value=_,u.value=_},R=C=>{s.value=!0;let _=[];lr==null||lr.forEach(S=>{let k=L.cloneDeep(f.value)+1;m.setTableIndex(k),_.push({label:S==null?void 0:S.label,name:S==null?void 0:S.label,type:S.type,value:"",id:f.value,contents:S==null?void 0:S.options})}),c.value=C==null?void 0:C.id,y.value=_,u.value=_},E=C=>{let _=L.cloneDeep(u.value);_=_==null?void 0:_.map(S=>(S.children||(S.value=C==null?void 0:C[S.name]),S)),u.value=_},W=()=>{var _,S;y.value=u.value;let C={};if(h.value!=="")C.id=h.value,(_=y.value)==null||_.forEach(k=>{const g=lr==null?void 0:lr.find(z=>(z==null?void 0:z.label)===(k==null?void 0:k.label));g?C[g.key]=k.value:k!=null&&k.children&&k.children.length>0&&(C.children=k.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"fix"});else{let k=L.cloneDeep(f.value)+1;m.setTableIndex(k),C.id="idChild"+f.value,(S=y.value)==null||S.forEach(g=>{const z=lr==null?void 0:lr.find($=>($==null?void 0:$.label)===(g==null?void 0:g.label));z?C[z.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"add"})}h.value="",y.value=[],u.value=[]},I=()=>{s.value=!1,h.value="",c.value="",y.value=[],u.value=[]},U=C=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},j=C=>{o("deleteChange",C)};return(C,_)=>{const S=a.resolveComponent("svg-icon"),k=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",r2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(g,z)=>(a.openBlock(),a.createElementBlock("div",n2,[a.createElementVNode("div",o2,[a.createElementVNode("div",i2,a.toDisplayString(g.label),1),a.createElementVNode("div",t2,[a.createVNode(S,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>R(g)},null,8,["onClick"]),a.createVNode(S,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>D(g)},null,8,["onClick"]),a.createVNode(S,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>U(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",s2,[a.createVNode(l2,{tableChildContents:g==null?void 0:g.children,onDeleteChange:j,onFixChange:x},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:I,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",c2,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:E},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",u2,[a.createVNode(k,{onClick:I,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>_[0]||(_[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(k,{class:"ok-button button",onClick:W,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},$c=Jl._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"},N2={class:"fix-content-label"},B2={class:"fix-button"},T2={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"}},$2={class:"form-content"},R2={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(l,{emit:r}){const n=l,o=r,s=a.ref([]),c=a.ref(!1),m=a.ref(!1),f=a.ref([]),h=a.ref(!1),y=a.ref([]),u=a.ref(!1),x=a.ref([]),D=a.ref(""),R=a.ref(""),E=a.ref([]),W=a.ref([]),I=a.ref([]),U=a.ref([]),j=a.ref(!1),C=a.ref([]),_=a.ref([]),S=a.ref(0),k=a.ref([]),g=a.ref([]),z=a.ref([]),$=()=>{j.value=!0;let V=[];Vn==null||Vn.forEach(P=>{S.value++,V.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:(P==null?void 0:P.key)==="background"?"var(--ssComponent-primary-color)":"",id:S.value,contents:P==null?void 0:P.options})}),C.value=V,_.value=V},G=()=>{var P,ae,he;m.value=!0;let V=[];(he=(ae=(P=oa.FormContent)==null?void 0:P.find(me=>(me==null?void 0:me.key)==="Input"))==null?void 0:ae.value)==null||he.forEach(me=>{S.value++,V.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:S.value,contents:me==null?void 0:me.options})}),k.value=V,g.value=V},de=V=>{V||(k.value=g.value)},Me=async V=>{var P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za;if((V==null?void 0:V.类型)!==((ae=(P=g.value)==null?void 0:P.find(H=>(H==null?void 0:H.label)==="类型"))==null?void 0:ae.value)){let H=[],ye=await((fa=(me=(he=oa.FormContent)==null?void 0:he.find(oe=>(oe==null?void 0:oe.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:me.value)==null?void 0:fa.value)?await((We=(ma=(Ee=oa.FormContent)==null?void 0:Ee.find(oe=>(oe==null?void 0:oe.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:ma.value)==null?void 0:We.value):(ce=(Xe=oa.FormContent)==null?void 0:Xe.find(oe=>(oe==null?void 0:oe.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:ce.value;if(ye==null||ye.forEach(oe=>{S.value++,H.push({label:oe==null?void 0:oe.label,name:(oe==null?void 0:oe.name)||(oe==null?void 0:oe.label),type:oe.type,value:oe!=null&&oe.属性名?(V==null?void 0:V.prop)||(V==null?void 0:V.name)||(V==null?void 0:V.label):(V==null?void 0:V[oe.label])??"",id:S.value,contents:oe==null?void 0:oe.options,prop:(oe==null?void 0:oe.prop)||(oe==null?void 0:oe.name)||(oe==null?void 0:oe.label)})}),V!=null&&V.菜单选项&&((Oa=V==null?void 0:V.菜单选项)==null?void 0:Oa.length)>0){const oe=await oa.menuToContentType(V==null?void 0:V.菜单选项);H=H==null?void 0:H.map(we=>((we==null?void 0:we.name)==="组信息选项"&&(we.contents=oe),we))}g.value=await oa.selectToBase(L.cloneDeep(H)),k.value=await oa.selectToBase(L.cloneDeep(H))}else{let H=L.cloneDeep(k.value);if(H=H==null?void 0:H.map(ye=>(ye.value=V==null?void 0:V[ye.name],ye)),V!=null&&V.菜单选项&&((za=V==null?void 0:V.菜单选项)==null?void 0:za.length)>0){const ye=await oa.menuToContentType(V==null?void 0:V.菜单选项);H=H==null?void 0:H.map(oe=>((oe==null?void 0:oe.name)==="组信息选项"&&(oe.contents=ye),oe))}H=oa.formToOptionsContents(H),g.value=await oa.selectToBase(L.cloneDeep(H))}},pe=async V=>{await Me(V),k.value=g.value},Z=(V,P)=>{if((P==null?void 0:P.type)=="Select"&&(V==null?void 0:V.key)==="selectRelateType"){const ae=P==null?void 0:P.optionUrl;return(ae==null?void 0:ae.selectRelateType)||P[V.key]}if((P==null?void 0:P.type)=="Select"&&(V==null?void 0:V.key)==="menuSelect"){const ae=P==null?void 0:P.optionUrl;return(ae==null?void 0:ae.menuSelect)||P[V.key]}if((P==null?void 0:P.type)=="Select"&&(V==null?void 0:V.key)==="groupSelect"){const ae=P==null?void 0:P.optionUrl;return(ae==null?void 0:ae.groupSelect)||P[V.key]}if((P==null?void 0:P.type)=="Select"&&(V==null?void 0:V.key)==="originalContent")return(P==null?void 0:P.value)||P[V.key];if((P==null?void 0:P.type)=="Select"&&(V==null?void 0:V.key)==="multiple"){const ae=P[V.key];return Qs(ae)?ae:V.default}return(V==null?void 0:V.label)==="类型"&&P[V.key]===""?"Input":(V==null?void 0:V.key)==="isFormColHidden"&&!P[V.key]?!1:P[V.key]},fe=async V=>{var he,me,fa,Xe,ce,Ee,ma,We,Oa;m.value=!0;let P=[];const ae=await((fa=(me=(he=oa.FormContent)==null?void 0:he.find(za=>(za==null?void 0:za.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:me.value)==null?void 0:fa.value)?await((We=(ma=(Ee=oa.FormContent)==null?void 0:Ee.find(za=>(za==null?void 0:za.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:ma.value)==null?void 0:We.value):(ce=(Xe=oa.FormContent)==null?void 0:Xe.find(za=>(za==null?void 0:za.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:ce.value;if(ae==null||ae.forEach(za=>{S.value++,P.push({label:za==null?void 0:za.label,name:(za==null?void 0:za.name)||(za==null?void 0:za.label),type:za.type,value:(za==null?void 0:za.label)==="属性名"?(V==null?void 0:V.prop)||(V==null?void 0:V.name)||(V==null?void 0:V.label):Z(za,V),id:S.value,contents:za==null?void 0:za.options})}),V!=null&&V.menuSelect&&((Oa=V==null?void 0:V.menuSelect)==null?void 0:Oa.length)>0){const za=await oa.menuToContentType(V==null?void 0:V.menuSelect);P=P==null?void 0:P.map(H=>((H==null?void 0:H.name)==="组信息选项"&&(H.contents=za),H))}D.value=V==null?void 0:V.id,k.value=await oa.selectToBase(oa.formToOptionsContents(P)),g.value=await oa.selectToBase(oa.formToOptionsContents(P))},le=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,ae;z.value=(P=L.cloneDeep(z.value))==null?void 0:P.filter(he=>(he==null?void 0:he.id)!==(V==null?void 0:V.id)),o("change",(ae=L.cloneDeep(n.originalItemContents))==null?void 0:ae.map(he=>((he==null?void 0:he.key)==="tableToForm"&&(he.contents=z.value),he))),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ue=()=>{m.value=!1,k.value=[],D.value=""},Ne=async()=>{var he,me,fa,Xe,ce,Ee,ma,We,Oa,za;k.value=g.value;let V={};D.value!==""?V.id=D.value:(S.value++,V.id="id"+S.value);let P=await((fa=(me=(he=oa.FormContent)==null?void 0:he.find(H=>{var ye,oe;return(H==null?void 0:H.key)===(((oe=(ye=k.value)==null?void 0:ye.find(we=>(we==null?void 0:we.label)==="类型"))==null?void 0:oe.value)??"label")}))==null?void 0:me.value)==null?void 0:fa.value)??((ce=(Xe=oa.FormContent)==null?void 0:Xe.find(H=>{var ye,oe;return(H==null?void 0:H.key)===(((oe=(ye=k.value)==null?void 0:ye.find(we=>(we==null?void 0:we.label)==="类型"))==null?void 0:oe.value)??"label")}))==null?void 0:ce.value);if((Ee=k.value)==null||Ee.forEach(H=>{const ye=P==null?void 0:P.find(oe=>(oe==null?void 0:oe.label)===(H==null?void 0:H.label));ye&&(V[ye.key]=H.value)}),V.name=V.label,(ma=z.value)!=null&&ma.find(H=>H.id===V.id))z.value=(We=z.value)==null?void 0:We.map(H=>(H.id===V.id&&(H=V),H));else{let H=L.cloneDeep(z.value);z.value||(z.value=[]),H.push(V),z.value=H}z.value=z.value.map(({id:H,...ye})=>ye),m.value=!1,D.value="";let ae=L.cloneDeep(n.originalItemContents);(Oa=L.cloneDeep(n.originalItemContents))!=null&&Oa.find(H=>(H==null?void 0:H.key)==="tableToForm")?ae=(za=L.cloneDeep(n.originalItemContents))==null?void 0:za.map(H=>((H==null?void 0:H.key)==="tableToForm"&&(H.contents=z.value),H)):ae.push({key:"tableToForm",contents:z.value}),o("change",ae)},Fe=V=>{j.value=!0;let P=[];Vn==null||Vn.forEach(ae=>{S.value++,P.push({label:ae==null?void 0:ae.label,name:ae==null?void 0:ae.label,type:ae.type,value:V[ae.key],id:S.value,contents:ae==null?void 0:ae.options})}),D.value=V==null?void 0:V.id,C.value=P,_.value=P};a.watch(()=>u.value,()=>{var P,ae;let V=L.cloneDeep(n.originalItemContents);(P=L.cloneDeep(n.originalItemContents))!=null&&P.find(he=>(he==null?void 0:he.key)==="page")?V=(ae=L.cloneDeep(n.originalItemContents))==null?void 0:ae.map(he=>((he==null?void 0:he.key)==="page"&&(he.contents=u.value),he)):V.push({key:"page",contents:u.value}),o("change",V)},{deep:!0});const be=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,ae;W.value=(P=L.cloneDeep(W.value))==null?void 0:P.filter(he=>(he==null?void 0:he.id)!==(V==null?void 0:V.id)),o("change",(ae=L.cloneDeep(n.originalItemContents))==null?void 0:ae.map(he=>((he==null?void 0:he.key)==="extraButton"&&(he.contents=W.value),he))),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},A=()=>{var ae,he,me,fa,Xe;C.value=_.value;let V={};if(D.value!==""?V.id=D.value:(S.value++,V.id="id"+S.value),(ae=C.value)==null||ae.forEach(ce=>{const Ee=Vn==null?void 0:Vn.find(ma=>(ma==null?void 0:ma.label)===(ce==null?void 0:ce.label));Ee?V[Ee.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(V.children=ce.children)}),(he=W.value)!=null&&he.find(ce=>ce.id===V.id))W.value=(me=W.value)==null?void 0:me.map(ce=>(ce.id===V.id&&(ce=V),ce));else{let ce=L.cloneDeep(W.value)??[];ce.push(V),W.value=ce}j.value=!1,D.value="";let P=L.cloneDeep(n.originalItemContents);(fa=L.cloneDeep(n.originalItemContents))!=null&&fa.find(ce=>(ce==null?void 0:ce.key)==="extraButton")?P=(Xe=L.cloneDeep(n.originalItemContents))==null?void 0:Xe.map(ce=>((ce==null?void 0:ce.key)==="extraButton"&&(ce.contents=W.value),ce)):P.push({key:"extraButton",contents:W.value}),o("change",P)},q=V=>{let P=L.cloneDeep(_.value);P=P==null?void 0:P.map(ae=>(ae.children||(ae.value=V==null?void 0:V[ae.name]),ae)),_.value=P},re=()=>{j.value=!1,C.value=[],D.value=""},Te=V=>{h.value=!0;let P=[];Fn==null||Fn.forEach(ae=>{S.value++,P.push({label:ae==null?void 0:ae.label,name:ae==null?void 0:ae.label,type:ae.type,value:V[ae.key],id:S.value,contents:ae==null?void 0:ae.options})}),D.value=V==null?void 0:V.id,I.value=P,U.value=P},xe=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,ae;E.value=(P=L.cloneDeep(E.value))==null?void 0:P.filter(he=>(he==null?void 0:he.id)!==(V==null?void 0:V.id)),o("change",(ae=L.cloneDeep(n.originalItemContents))==null?void 0:ae.map(he=>((he==null?void 0:he.key)==="rowButton"&&(he.contents=E.value),he))),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Ye=()=>{c.value=!0;let V=[];lr==null||lr.forEach(P=>{S.value++,V.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:S.value,contents:P==null?void 0:P.options})}),y.value=V,x.value=V},da=()=>{h.value=!0;let V=[];Fn==null||Fn.forEach(P=>{S.value++,V.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:S.value,contents:P==null?void 0:P.options})}),I.value=V,U.value=V},Ma=V=>{let P=L.cloneDeep(U.value);P=P==null?void 0:P.map(ae=>(ae.children||(ae.value=V==null?void 0:V[ae.name]),ae)),U.value=P},ne=()=>{var ae,he,me,fa,Xe;I.value=U.value;let V={};if(D.value!==""?V.id=D.value:(S.value++,V.id="id"+S.value),(ae=I.value)==null||ae.forEach(ce=>{const Ee=Fn==null?void 0:Fn.find(ma=>(ma==null?void 0:ma.label)===(ce==null?void 0:ce.label));Ee?V[Ee.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(V.children=ce.children)}),(he=E.value)!=null&&he.find(ce=>ce.id===V.id))E.value=(me=E.value)==null?void 0:me.map(ce=>(ce.id===V.id&&(ce=V),ce));else{let ce=L.cloneDeep(E.value);ce.push(V),E.value=ce}h.value=!1,D.value="";let P=L.cloneDeep(n.originalItemContents);(fa=L.cloneDeep(n.originalItemContents))!=null&&fa.find(ce=>(ce==null?void 0:ce.key)==="rowButton")?P=(Xe=L.cloneDeep(n.originalItemContents))==null?void 0:Xe.map(ce=>((ce==null?void 0:ce.key)==="rowButton"&&(ce.contents=E.value),ce)):P.push({key:"rowButton",contents:E.value}),o("change",P)},Ae=()=>{h.value=!1,D.value="",U.value=[],I.value=[]},Ie=V=>{c.value=!0;let P=[];lr==null||lr.forEach(ae=>{S.value++,P.push({label:ae==null?void 0:ae.label,name:ae==null?void 0:ae.label,type:ae.type,value:"",id:S.value,contents:ae==null?void 0:ae.options})}),y.value=P,R.value=V==null?void 0:V.id,x.value=P},qe=V=>{var P;f.value=Mc(L.cloneDeep(f.value),V==null?void 0:V.id),o("change",(P=L.cloneDeep(n.originalItemContents))==null?void 0:P.map(ae=>{var he;return(ae==null?void 0:ae.key)==="header"&&(ae.contents=(he=f.value)!=null&&he.some(me=>me==null?void 0:me.children)?[f.value]:f.value),ae}))},Ve=V=>{var ae,he,me;V.type==="fix"?V.id!==""?f.value=Oc(f.value,V):f.value=Ic(f.value,V==null?void 0:V.contents):f.value=Lc(f.value,V),f.value=(ae=f.value)!=null&&ae.some(fa=>fa==null?void 0:fa.children)?[f.value]:f.value,D.value="";let P=L.cloneDeep(n.originalItemContents);(he=L.cloneDeep(n.originalItemContents))!=null&&he.find(fa=>(fa==null?void 0:fa.key)==="header")?P=(me=L.cloneDeep(n.originalItemContents))==null?void 0:me.map(fa=>((fa==null?void 0:fa.key)==="header"&&(fa.contents=f.value),fa)):P.push({key:"header",contents:f.value}),o("change",P)},se=V=>{var ae;c.value=!0;let P=[];lr==null||lr.forEach(he=>{S.value++,P.push({label:he==null?void 0:he.label,name:he==null?void 0:he.label,type:he.type,value:V[he.key],id:S.value,contents:he==null?void 0:he.options})}),V!=null&&V.children&&((ae=V==null?void 0:V.children)==null?void 0:ae.length)>0&&P.push({children:V==null?void 0:V.children,isFormColHidden:!0}),D.value=V==null?void 0:V.id,R.value="",y.value=P,x.value=P},$e=V=>{let P=L.cloneDeep(x.value);P=P==null?void 0:P.map(ae=>(ae.children||(ae.value=V==null?void 0:V[ae.name]),ae)),x.value=P},Ue=()=>{c.value=!1,D.value="",R.value="",x.value=[]},Na=()=>{var ae,he,me,fa,Xe,ce;y.value=x.value;let V={};if(D.value!==""?V.id=D.value:(S.value++,V.id="id"+S.value),(ae=y.value)==null||ae.forEach(Ee=>{const ma=lr==null?void 0:lr.find(We=>(We==null?void 0:We.label)===(Ee==null?void 0:Ee.label));ma?V[ma.key]=Ee.value:Ee!=null&&Ee.children&&Ee.children.length>0&&(V.children=Ee.children)}),(he=f.value)!=null&&he.find(Ee=>Ee.id===V.id))f.value=(me=f.value)==null?void 0:me.map(Ee=>(Ee.id===V.id&&(Ee=V),Ee));else{let Ee=L.cloneDeep(f.value)??[];R.value===""?Ee.push(V):Ee=Ee==null?void 0:Ee.map(ma=>(ma.id===R.value&&(ma.children||(ma.children=[]),ma.children.push(V)),ma)),f.value=Ee}f.value=(fa=f.value)!=null&&fa.some(Ee=>Ee==null?void 0:Ee.children)?[f.value]:f.value,c.value=!1,D.value="",R.value="";let P=L.cloneDeep(n.originalItemContents);(Xe=L.cloneDeep(n.originalItemContents))!=null&&Xe.find(Ee=>(Ee==null?void 0:Ee.key)==="header")?P=(ce=L.cloneDeep(n.originalItemContents))==null?void 0:ce.map(Ee=>((Ee==null?void 0:Ee.key)==="header"&&(Ee.contents=f.value),Ee)):P.push({key:"header",contents:f.value}),o("change",P)},La=V=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,ae;f.value=(P=L.cloneDeep(f.value))==null?void 0:P.filter(he=>(he==null?void 0:he.id)!==(V==null?void 0:V.id)),o("change",(ae=L.cloneDeep(n.originalItemContents))==null?void 0:ae.map(he=>{var me;return(he==null?void 0:he.key)==="header"&&(he.contents=(me=f.value)!=null&&me.some(fa=>fa==null?void 0:fa.children)?[f.value]:f.value),he})),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>n.originalItemContents,()=>{var V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za,H,ye,oe,we,Q,Qe;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(s.value=L.cloneDeep(n.originalItemContents),f.value=(P=(V=s.value)==null?void 0:V.find(ze=>(ze==null?void 0:ze.key)==="header"))==null?void 0:P.contents,E.value=(he=(ae=s.value)==null?void 0:ae.find(ze=>(ze==null?void 0:ze.key)==="rowButton"))==null?void 0:he.contents,W.value=(fa=(me=s.value)==null?void 0:me.find(ze=>(ze==null?void 0:ze.key)==="extraButton"))==null?void 0:fa.contents,u.value=(ce=(Xe=s.value)==null?void 0:Xe.find(ze=>(ze==null?void 0:ze.key)==="page"))!=null&&ce.contents?!!((ma=(Ee=s.value)==null?void 0:Ee.find(ze=>(ze==null?void 0:ze.key)==="page"))!=null&&ma.contents):!1,z.value=(Oa=(We=s.value)==null?void 0:We.find(ze=>(ze==null?void 0:ze.key)==="tableToForm"))==null?void 0:Oa.contents,f.value=(za=f.value)==null?void 0:za.map((ze,ka)=>(Array.isArray(ze)?ze=q3(ze):ze={label:(ze==null?void 0:ze.label)??"",prop:(ze==null?void 0:ze.label)==="操作"?"operate":ze==null?void 0:ze.prop,width:ze!=null&&ze.width?parseInt(ze.width):"",fixed:(ze==null?void 0:ze.fixed)??void 0,sortable:(ze==null?void 0:ze.sortable)??!1,align:(ze==null?void 0:ze.align)??"left",showOverflowTooltip:(ze==null?void 0:ze.showOverflowTooltip)??!0,isNotDrag:(ze==null?void 0:ze.isNotDrag)??!1,isEditCol:(ze==null?void 0:ze.isEditCol)??!1,isOperate:(ze==null?void 0:ze.isOperate)??!1,id:(ze==null?void 0:ze.id)??ka,formMenuSelect:(ze==null?void 0:ze.formMenuSelect)??void 0,groupSelect:(ze==null?void 0:ze.groupSelect)??void 0},ze)),f.value=(H=f.value)!=null&&H.every(ze=>Array.isArray(ze))?(ye=f.value)==null?void 0:ye[0]:f.value,E.value=(oe=E.value)==null?void 0:oe.map((ze,ka)=>ze={label:(ze==null?void 0:ze.label)??"",type:(ze==null?void 0:ze.type)??"",textColor:(ze==null?void 0:ze.textColor)??"#000000",id:(ze==null?void 0:ze.id)??ka}),W.value=(we=W.value)==null?void 0:we.map((ze,ka)=>ze={label:(ze==null?void 0:ze.label)??"",type:(ze==null?void 0:ze.type)??"",background:(ze==null?void 0:ze.background)??"var(--ssComponent-primary-color)",id:(ze==null?void 0:ze.id)??ka}),z.value)z.value=(Qe=z.value)==null?void 0:Qe.map(ze=>{S.value++;let ka=ze;return ka.id=S.value,ka});else{let ze=[];const ka=(Q=oa.getColumnChild(L.cloneDeep(f.value)))==null?void 0:Q.filter(ca=>(ca==null?void 0:ca.prop)!=="operate");ka==null||ka.forEach(ca=>{var Aa;S.value++,ze.push({label:ca==null?void 0:ca.label,name:(ca==null?void 0:ca.prop)||(ca==null?void 0:ca.label),type:ca!=null&&ca.groupSelect?"Select":"Input",value:"",id:S.value,contents:ca==null?void 0:ca.options,menuSelect:ca==null?void 0:ca.formMenuSelect,groupSelect:(Aa=ca==null?void 0:ca.groupSelect)==null?void 0:Aa.split(":"),selectRelateType:"关联绑定列"})}),z.value=ze}},{deep:!0,immediate:!0}),(V,P)=>{const ae=a.resolveComponent("svg-icon"),he=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",p2,[a.createElementVNode("div",f2,[a.createElementVNode("div",h2,[P[2]||(P[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(he,{class:"icon-content",onClick:Ye,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[1]||(P[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",v2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,(me,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",m2,[a.createElementVNode("div",y2,a.toDisplayString(me==null?void 0:me.label),1),a.createElementVNode("div",g2,[a.createVNode(ae,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Xe=>Ie(me)},null,8,["onClick"]),a.createVNode(ae,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Xe=>se(me)},null,8,["onClick"]),a.createVNode(ae,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Xe=>La(me)},null,8,["onClick"])])]),me!=null&&me.children&&me.children.length>0?(a.openBlock(),a.createElementBlock("div",b2,[a.createVNode($c,{tableChildContents:me==null?void 0:me.children,onDeleteChange:qe,onFixChange:Ve},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",k2,[P[4]||(P[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(he,{class:"icon-content",id:"themeButton",onClick:da},{icon:a.withCtx(()=>[a.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[3]||(P[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",x2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,(me,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",w2,[a.createElementVNode("div",_2,a.toDisplayString(me==null?void 0:me.label),1),a.createElementVNode("div",S2,[a.createVNode(ae,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Xe=>Te(me)},null,8,["onClick"]),a.createVNode(ae,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Xe=>xe(me)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",E2,[P[6]||(P[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(he,{class:"icon-content",id:"themeButton",onClick:$},{icon:a.withCtx(()=>[a.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[5]||(P[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",C2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(W.value,(me,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",D2,[a.createElementVNode("div",N2,a.toDisplayString(me==null?void 0:me.label),1),a.createElementVNode("div",B2,[a.createVNode(ae,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Xe=>Fe(me)},null,8,["onClick"]),a.createVNode(ae,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Xe=>be(me)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",T2,[P[8]||(P[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(he,{class:"icon-content",id:"themeButton",onClick:G},{icon:a.withCtx(()=>[a.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[7]||(P[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",A2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(z.value,(me,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",z2,[a.createElementVNode("div",M2,a.toDisplayString(me==null?void 0:me.label),1),a.createElementVNode("div",I2,[a.createVNode(ae,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:Xe=>fe(me)},null,8,["onClick"]),a.createVNode(ae,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:Xe=>le(me)},null,8,["onClick"])])])]))),128))]),P[10]||(P[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",O2,[a.createElementVNode("div",L2,[P[9]||(P[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(il._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":P[0]||(P[0]=me=>u.value=me)},null,8,["modelValue"])])])]),a.createVNode(wr.ssDialog,{visible:c.value,onBeforeDestroy:Ue,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",$2,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:$e},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",R2,[a.createVNode(he,{onClick:Ue,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[11]||(P[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(he,{class:"ok-button button",onClick:Na,id:"themeButton"},{default:a.withCtx(()=>P[12]||(P[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:h.value,onBeforeDestroy:Ae,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",V2,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:Ma},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",F2,[a.createVNode(he,{onClick:Ae,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[13]||(P[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(he,{class:"ok-button button",onClick:ne,id:"themeButton"},{default:a.withCtx(()=>P[14]||(P[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:j.value,onBeforeDestroy:re,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",P2,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:q},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",j2,[a.createVNode(he,{onClick:re,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[15]||(P[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(he,{class:"ok-button button",onClick:A,id:"themeButton"},{default:a.withCtx(()=>P[16]||(P[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:m.value,onBeforeDestroy:ue,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",H2,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:Me,onChangeVisible:de,onBlurChange:pe},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",U2,[a.createVNode(he,{onClick:ue,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[17]||(P[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(he,{class:"ok-button button",onClick:Ne,id:"themeButton"},{default:a.withCtx(()=>P[18]||(P[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},W2=Jl._export_sfc(q2,[["__scopeId","data-v-7a6b87b5"]]),K2=L.useModelComp(L.pinia),{pageMapState:G2}=L.storeToRefs(K2),Y2=L.useMenuState(L.pinia),{activeMenuPath:J2}=L.storeToRefs(Y2),X2=a.ref(24),Z2=a.ref(6),Q2=a.ref(10),eh=a.ref(70),ah=a.ref(.18),lh=a.ref(45),rh=(l,r,n,o)=>{var s,c,m,f,h,y,u,x,D,R,E,W,I,U,j,C;return{x:((c=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:c.x)||r%2*12,y:((f=(m=l==null?void 0:l.value)==null?void 0:m.tableData)==null?void 0:f.y)||r,w:((y=(h=l==null?void 0:l.value)==null?void 0:h.tableData)==null?void 0:y.w)||X2.value,h:((x=(u=l==null?void 0:l.value)==null?void 0:u.tableData)==null?void 0:x.h)||n,minW:((R=(D=l==null?void 0:l.value)==null?void 0:D.tableData)==null?void 0:R.minW)||Z2.value,minH:((W=(E=l==null?void 0:l.value)==null?void 0:E.tableData)==null?void 0:W.minH)||ah.value,maxH:((U=(I=l==null?void 0:l.value)==null?void 0:I.tableData)==null?void 0:U.maxH)||lh.value,i:((C=(j=l==null?void 0:l.value)==null?void 0:j.tableData)==null?void 0:C.i)||r,id:(l==null?void 0:l.id)||r+"",component:o}},nh=(l,r)=>{var o,s,c,m,f,h,y,u;let n=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){if(((m=(c=(s=l==null?void 0:l.compData)==null?void 0:s.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:c.contents)==null?void 0:m.length)===0)return 2}else((f=l==null?void 0:l.comp)==null?void 0:f.toUpperCase())==="FORM"&&(n=((u=(y=(h=l==null?void 0:l.compData)==null?void 0:h.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:y.contents)==null?void 0:u.length)/5);return n*2},Rc=(l,r,n)=>{var m,f;const o=(f=(m=G2.value)==null?void 0:m[J2.value])==null?void 0:f.filter(h=>{var y;return((y=h==null?void 0:h.key)==null?void 0:y.type)==="gridLayout"}),s=o==null?void 0:o.find(h=>{var y,u,x;return((x=(u=(y=h==null?void 0:h.value)==null?void 0:y.tableData)==null?void 0:u.component)==null?void 0:x.id)===l.id}),c=nh(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((h,y)=>Rc(h,y))),{...rh(s,r,c,l)}},oh=(l,r)=>{if((l==null?void 0:l.length)===0)return[];const n=L.cloneDeep(l);return Array.isArray(l)?n==null?void 0:n.map((o,s)=>Rc(o,s)):[]},ih=l=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),th=(l,r)=>l==null?void 0:l.map(n=>{for(const o in r)if(o===(n==null?void 0:n.prop))return{...n,value:r[o]};return n}),sh=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:r}){const n=l,o=r,s=a.ref([]);a.watch(()=>n.compType,f=>{var u;const h=ih(n==null?void 0:n.optionItems),y=f?(u=h[f==null?void 0:f.toUpperCase()])==null?void 0:u[n==null?void 0:n.target]:[];s.value=y==null?void 0:y.map(x=>{for(const[D,R]of Object.entries((n==null?void 0:n.comp)||{}))if((x==null?void 0:x.prop)===D)return{...x,value:R};return x})},{immediate:!0});const c=f=>il.getComponent(f),m=f=>{var h,y;(f==null?void 0:f.prop)==="layout"&&(f==null?void 0:f.value)==="horizontal"?s.value=(h=s.value)==null?void 0:h.map(u=>{var x;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(x=u==null?void 0:u.options)==null?void 0:x.map(D=>({...D,disabled:!0}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!0}:u}):s.value=(y=s.value)==null?void 0:y.map(u=>{var x;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(x=u==null?void 0:u.options)==null?void 0:x.map(D=>({...D,disabled:!1}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!1}:u}),o("change",{target:n==null?void 0:n.target,styleConfigs:s.value,prop:f==null?void 0:f.prop})};return(f,h)=>{const y=a.resolveComponent("el-col"),u=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,x=>(a.openBlock(),a.createBlock(u,{class:"style-row",key:x==null?void 0:x.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(x==null?void 0:x.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(x.type)),{modelValue:x.value,"onUpdate:modelValue":D=>x.value=D,content:x==null?void 0:x.options,optionUrl:x==null?void 0:x.optionUrl,disabled:x==null?void 0:x.disabled,activeText:x==null?void 0:x.activeText,inactiveText:x==null?void 0:x.inactiveText,onChange:D=>m(x)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),ch=Jl._export_sfc(sh,[["__scopeId","data-v-6c233914"]]),uh=a.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(l,{emit:r}){const n=l,o=r,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],c=a.ref([]),m=U=>U==null?void 0:U.reduce((j,C)=>(j[C==null?void 0:C.prop]=C==null?void 0:C.rule,j),{}),f=a.computed(()=>({formRules:m(c.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),h=a.ref([]),y=a.ref(""),u=(U,j,C)=>{var k;let _=[];(n==null?void 0:n.activeTabName)==="任务配置"?(_=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:U},{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:"暂停"}]}],c.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(n==null?void 0:n.activeTabName)==="任务关联"&&(_=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(k=n==null?void 0:n.relatedData)==null?void 0:k.map(g=>({label:g==null?void 0:g.任务名称,value:g==null?void 0:g.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],c.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let S;return C&&(C==null?void 0:C.length)>0?S=[..._,...x(U,j,C)]:S=_,S},x=(U,j,C)=>{const _=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return C?_==null?void 0:_.filter(S=>C==null?void 0:C.includes(S==null?void 0:S.prop)):_},D=(U,j)=>{var g,z,$,G,de,Me,pe,Z,fe;const C=((de=(G=($=(z=(g=n==null?void 0:n.comp)==null?void 0:g.compData)==null?void 0:z.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:$.contents)==null?void 0:G.filter(le=>(le==null?void 0:le.label)!=="操作"))==null?void 0:de.map(le=>({value:le==null?void 0:le.prop,label:le.label})))||[],_=/button/i,S=((fe=(Z=(pe=(Me=n==null?void 0:n.comp)==null?void 0:Me.compData)==null?void 0:pe.filter(le=>_.test(le==null?void 0:le.key)))==null?void 0:Z.flatMap(le=>le==null?void 0:le.contents))==null?void 0:fe.map(le=>({value:le==null?void 0:le.label,label:le.label})))||[],k=u(C,S,U);h.value=j?th(k,j):k,U&&(U==null?void 0:U.length)>0&&c.value.push(...U==null?void 0:U.map(le=>({prop:le,rule:s})))};a.onMounted(()=>{D(null,n==null?void 0:n.extendItem)});const R=U=>{const j=U==null?void 0:U[y.value];if(y.value==="执行任务"){if(!(j!=null&&j.join("/")))return;const C=j==null?void 0:j.join("/");D(C==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:C==="进度设置/进度条"?["进度关键词"]:null,U)}},E=U=>{o("change",{target:n==null?void 0:n.target,extendConfigs:U})},W=(U,j)=>{y.value=j==null?void 0:j.changeProp,R(U)},I=U=>{o("onButtonClick",U)};return(U,j)=>(a.openBlock(),a.createBlock(il.ssForm,{rowContents:h.value,key:h.value,isStartJustify:!1,isEnableWrap:!1,formRules:f.value.formRules,buttonValue:f.value.buttonValue,onChange:E,onBlurChange:W,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue"]))}}),dh=Jl._export_sfc(uh,[["__scopeId","data-v-7c660c1f"]]),ph={};function fh(l,r){return null}const hh=Jl._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"},Nh={class:"form-content"},Bh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,o=r,s=a.ref(!1),c=a.ref([]),m=a.ref([]),f=a.ref(!1),h=a.ref([]),y=a.ref([]),u=a.ref(""),x=a.ref(!1),D=a.ref(0),R=a.ref([]),E=a.ref([]),W=(Z,fe)=>{if((fe==null?void 0:fe.type)=="Select"&&(Z==null?void 0:Z.key)==="selectRelateType"){const le=fe==null?void 0:fe.optionUrl;return(le==null?void 0:le.selectRelateType)||fe[Z.key]}if((fe==null?void 0:fe.type)=="Select"&&(Z==null?void 0:Z.key)==="menuSelect"){const le=fe==null?void 0:fe.optionUrl;return(le==null?void 0:le.menuSelect)||fe[Z.key]}if((fe==null?void 0:fe.type)=="Select"&&(Z==null?void 0:Z.key)==="groupSelect"){const le=fe==null?void 0:fe.optionUrl;return(le==null?void 0:le.groupSelect)||fe[Z.key]}if((fe==null?void 0:fe.type)=="Select"&&(Z==null?void 0:Z.key)==="originalContent")return(fe==null?void 0:fe.value)||fe[Z.key];if((fe==null?void 0:fe.type)=="Select"&&(Z==null?void 0:Z.key)==="multiple"){const le=fe[Z.key];return Qs(le)?le:Z.default}return(Z==null?void 0:Z.label)==="类型"&&fe[Z.key]===""?"Input":(Z==null?void 0:Z.key)==="isFormColHidden"&&!fe[Z.key]?!1:fe[Z.key]},I=async Z=>{var ue,Ne,Fe,be,A,q;s.value=!0;let fe=[];const le=await((Fe=(Ne=(ue=oa.FormContent)==null?void 0:ue.find(re=>(re==null?void 0:re.key)===((Z==null?void 0:Z.type)===""?"Input":Z==null?void 0:Z.type)))==null?void 0:Ne.value)==null?void 0:Fe.value)??((A=(be=oa.FormContent)==null?void 0:be.find(re=>(re==null?void 0:re.key)===((Z==null?void 0:Z.type)===""?"Input":Z==null?void 0:Z.type)))==null?void 0:A.value);if(le==null||le.forEach(re=>{D.value++,fe.push({label:re==null?void 0:re.label,name:re==null?void 0:re.label,type:re.type,prop:re==null?void 0:re.prop,value:W(re,Z),id:D.value,contents:re==null?void 0:re.options,width:(Z==null?void 0:Z.width)??1})}),Z!=null&&Z.menuSelect&&((q=Z==null?void 0:Z.menuSelect)==null?void 0:q.length)>0){const re=await oa.menuToContentType(Z==null?void 0:Z.menuSelect);fe=fe==null?void 0:fe.map(Te=>((Te==null?void 0:Te.name)==="组信息选项"&&(Te.contents=re),Te))}u.value=Z==null?void 0:Z.id,c.value=await oa.selectToBase(oa.formToOptionsContents(fe)),m.value=await oa.selectToBase(oa.formToOptionsContents(fe))},U=Z=>{var le;f.value=!0;let fe=[];(le=oa.FormButton)==null||le.forEach(ue=>{D.value++,fe.push({label:ue==null?void 0:ue.label,name:ue==null?void 0:ue.label,type:ue.type,value:(ue==null?void 0:ue.label)==="类型"&&Z[ue.key]===""?"normal":Z[ue.key],id:D.value,contents:ue==null?void 0:ue.options})}),R.value=fe,E.value=fe,u.value=Z==null?void 0:Z.id};a.watch(()=>x.value,()=>{var fe,le;let Z=L.cloneDeep(n.originalItemContents);(fe=L.cloneDeep(n.originalItemContents))!=null&&fe.find(ue=>(ue==null?void 0:ue.key)==="enableWrap")?Z=(le=L.cloneDeep(n.originalItemContents))==null?void 0:le.map(ue=>((ue==null?void 0:ue.key)==="enableWrap"&&(ue.contents=!x.value),ue)):Z.push({key:"enableWrap",contents:!x.value}),o("change",Z)},{deep:!0});const j=()=>{var le,ue,Ne,Fe,be;R.value=E.value;let Z={};if(u.value!==""?Z.id=u.value:(D.value++,Z.id="id"+D.value),(le=R.value)==null||le.forEach(A=>{var re;const q=(re=oa.FormButton)==null?void 0:re.find(Te=>(Te==null?void 0:Te.label)===(A==null?void 0:A.label));q&&(Z[q.key]=A.value)}),(ue=h.value)!=null&&ue.find(A=>A.id===Z.id))h.value=(Ne=h.value)==null?void 0:Ne.map(A=>(A.id===Z.id&&(A=Z),A));else{let A=L.cloneDeep(h.value);h.value||(h.value=[]),A.push(Z),h.value=A}f.value=!1,u.value="";let fe=L.cloneDeep(n.originalItemContents);(Fe=L.cloneDeep(n.originalItemContents))!=null&&Fe.find(A=>(A==null?void 0:A.key)==="formButton")?fe=(be=L.cloneDeep(n.originalItemContents))==null?void 0:be.map(A=>((A==null?void 0:A.key)==="formButton"&&(A.contents=h.value),A)):fe.push({key:"formButton",contents:h.value}),o("change",fe)},C=Z=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,le;y.value=(fe=L.cloneDeep(y.value))==null?void 0:fe.filter(ue=>(ue==null?void 0:ue.id)!==(Z==null?void 0:Z.id)),o("change",(le=L.cloneDeep(n.originalItemContents))==null?void 0:le.map(ue=>((ue==null?void 0:ue.key)==="formContent"&&(ue.contents=y.value),ue))),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=Z=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,le;h.value=(fe=L.cloneDeep(h.value))==null?void 0:fe.filter(ue=>(ue==null?void 0:ue.id)!==(Z==null?void 0:Z.id)),o("change",(le=L.cloneDeep(n.originalItemContents))==null?void 0:le.map(ue=>((ue==null?void 0:ue.key)==="formButton"&&(ue.contents=h.value),ue))),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},S=()=>{var fe;f.value=!0;let Z=[];(fe=oa.FormButton)==null||fe.forEach(le=>{D.value++,Z.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})}),R.value=Z,E.value=Z},k=()=>{var fe,le,ue;s.value=!0;let Z=[];(ue=(le=(fe=oa.FormContent)==null?void 0:fe.find(Ne=>(Ne==null?void 0:Ne.key)==="Input"))==null?void 0:le.value)==null||ue.forEach(Ne=>{D.value++,Z.push({label:Ne==null?void 0:Ne.label,name:Ne==null?void 0:Ne.label,type:Ne.type,value:(Ne==null?void 0:Ne.label)==="类型"?"Input":"",id:D.value,contents:Ne==null?void 0:Ne.options})}),c.value=Z,m.value=Z},g=Z=>{let fe=L.cloneDeep(E.value);fe=fe==null?void 0:fe.map(le=>(le.value=Z==null?void 0:Z[le.name],le)),E.value=fe},z=Z=>{const fe=Z.find(Ne=>(Ne==null?void 0:Ne.name)==="类型");if((fe==null?void 0:fe.value)!="Select")return;const le=Z.find(Ne=>(Ne==null?void 0:Ne.name)==="多选"),ue=Z.find(Ne=>(Ne==null?void 0:Ne.name)==="初始值");le!=null&&le.value&&Di.isString(ue.value)&&(ue.value=[ue.value]),!(le!=null&&le.value)&&!Di.isString(ue.value)&&(ue.value="")},$=async Z=>{var fe,le,ue,Ne,Fe,be,A,q,re,Te,xe,Ye;if((Z==null?void 0:Z.类型)!==((le=(fe=m.value)==null?void 0:fe.find(da=>(da==null?void 0:da.label)==="类型"))==null?void 0:le.value)){let da=[];const Ma=await((Fe=(Ne=(ue=oa.FormContent)==null?void 0:ue.find(ne=>(ne==null?void 0:ne.key)===((Z==null?void 0:Z.类型)===""?"Input":Z==null?void 0:Z.类型)))==null?void 0:Ne.value)==null?void 0:Fe.value)?await((Te=(re=(q=oa.FormContent)==null?void 0:q.find(ne=>(ne==null?void 0:ne.key)===((Z==null?void 0:Z.类型)===""?"Input":Z==null?void 0:Z.类型)))==null?void 0:re.value)==null?void 0:Te.value):(A=(be=oa.FormContent)==null?void 0:be.find(ne=>(ne==null?void 0:ne.key)===((Z==null?void 0:Z.类型)===""?"Input":Z==null?void 0:Z.类型)))==null?void 0:A.value;if(Ma==null||Ma.forEach(ne=>{var Ie,qe;D.value++;const Ae=$u(ne==null?void 0:ne.default)?(Z==null?void 0:Z[ne.label])??ne.value??"":ne==null?void 0:ne.default;da.push({label:ne==null?void 0:ne.label,name:ne==null?void 0:ne.label,type:ne.type,value:Ae,prop:ne==null?void 0:ne.prop,id:D.value,contents:ne==null?void 0:ne.options,width:((qe=(Ie=m.value)==null?void 0:Ie[0])==null?void 0:qe.width)??1})}),Z!=null&&Z.菜单选项&&((xe=Z==null?void 0:Z.菜单选项)==null?void 0:xe.length)>0){const ne=await oa.menuToContentType(Z==null?void 0:Z.菜单选项);da=da==null?void 0:da.map(Ae=>((Ae==null?void 0:Ae.name)==="组信息选项"&&(Ae.contents=ne),Ae))}z(da),m.value=await oa.selectToBase(L.cloneDeep(da)),c.value=await oa.selectToBase(L.cloneDeep(da))}else{let da=L.cloneDeep(m.value);if(da=da==null?void 0:da.map(Ma=>(Ma.value=Z==null?void 0:Z[Ma.name],Ma)),Z!=null&&Z.菜单选项&&((Ye=Z==null?void 0:Z.菜单选项)==null?void 0:Ye.length)>0){const Ma=await oa.menuToContentType(Z==null?void 0:Z.菜单选项);da=da==null?void 0:da.map(ne=>((ne==null?void 0:ne.name)==="组信息选项"&&(ne.contents=Ma),ne))}da=oa.formToOptionsContents(da),z(da),m.value=await oa.selectToBase(L.cloneDeep(da))}},G=Z=>{Z||(c.value=m.value)},de=async Z=>{await $(Z),c.value=m.value},Me=aa.debounce(async()=>{var ue,Ne,Fe,be,A,q,re,Te,xe,Ye,da,Ma;c.value=m.value;let Z={};Z.width=((Ne=(ue=c.value)==null?void 0:ue[0])==null?void 0:Ne.width)??1,u.value!==""?Z.id=u.value:(D.value++,Z.id="id"+D.value);let fe=await((A=(be=(Fe=oa.FormContent)==null?void 0:Fe.find(ne=>{var Ae,Ie;return(ne==null?void 0:ne.key)===(((Ie=(Ae=c.value)==null?void 0:Ae.find(qe=>(qe==null?void 0:qe.label)==="类型"))==null?void 0:Ie.value)??"label")}))==null?void 0:be.value)==null?void 0:A.value)??((re=(q=oa.FormContent)==null?void 0:q.find(ne=>{var Ae,Ie;return(ne==null?void 0:ne.key)===(((Ie=(Ae=c.value)==null?void 0:Ae.find(qe=>(qe==null?void 0:qe.label)==="类型"))==null?void 0:Ie.value)??"label")}))==null?void 0:re.value);if((Te=c.value)==null||Te.forEach(ne=>{const Ae=fe==null?void 0:fe.find(Ie=>(Ie==null?void 0:Ie.label)===(ne==null?void 0:ne.label));Ae&&(Z[Ae.key]=ne.value)}),Z.width=Z.width?Z.width:1,Z.key=Z==null?void 0:Z.label,Z.isFormColHidden=Z==null?void 0:Z.isFormColHidden,(xe=y.value)!=null&&xe.find(ne=>ne.id===Z.id))y.value=(Ye=y.value)==null?void 0:Ye.map(ne=>(ne.id===Z.id&&(ne=Z),ne));else{let ne=L.cloneDeep(y.value);ne.push(Z),y.value=ne}y.value=y.value.map(({id:ne,...Ae})=>Ae),s.value=!1,u.value="";let le=L.cloneDeep(n.originalItemContents);(da=L.cloneDeep(n.originalItemContents))!=null&&da.find(ne=>(ne==null?void 0:ne.key)==="formContent")?le=(Ma=L.cloneDeep(n.originalItemContents))==null?void 0:Ma.map(ne=>((ne==null?void 0:ne.key)==="formContent"&&(ne.contents=y.value),ne)):le.push({key:"formContent",contents:y.value}),o("change",le)},300),pe=()=>{s.value=!1,f.value=!1,u.value="",m.value=[],E.value=[]};return a.watch(()=>n.originalItemContents,()=>{var fe,le,ue,Ne,Fe,be;if(!n.originalItemContents||n.originalItemContents.length===0)return;const Z=L.cloneDeep(n.originalItemContents);y.value=((fe=Z==null?void 0:Z.find(A=>(A==null?void 0:A.key)==="formContent"))==null?void 0:fe.contents)??[],h.value=((le=Z==null?void 0:Z.find(A=>(A==null?void 0:A.key)==="formButton"))==null?void 0:le.contents)??[],x.value=(ue=Z==null?void 0:Z.find(A=>(A==null?void 0:A.key)==="enableWrap"))!=null&&ue.contents?!((Ne=Z==null?void 0:Z.find(A=>(A==null?void 0:A.key)==="enableWrap"))!=null&&Ne.contents):!0,y.value=(Fe=L.cloneDeep(y.value))==null?void 0:Fe.map((A,q)=>{var Te;let re=A;return re.id=(A==null?void 0:A.id)??q,A!=null&&A.label||(A.label=(A==null?void 0:A.key)??(A==null?void 0:A.label)??""),A!=null&&A.type||(A.type=(A==null?void 0:A.type)??""),A.contents=((Te=A==null?void 0:A.options)==null?void 0:Te.length)===0?(A==null?void 0:A.contents)??"":A==null?void 0:A.options,re}),y.value=oa.formToOptionsContents(y.value),h.value=(be=h.value)==null?void 0:be.map((A,q)=>A={label:(A==null?void 0:A.label)??"",type:(A==null?void 0:A.type)??"",background:(A==null?void 0:A.background)??"var(--ssComponent-primary-color)",id:q})},{deep:!0,immediate:!0}),(Z,fe)=>{const le=a.resolveComponent("svg-icon"),ue=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",vh,[a.createElementVNode("div",mh,[a.createElementVNode("div",yh,[fe[2]||(fe[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:k},{icon:a.withCtx(()=>[a.createVNode(le,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[fe[1]||(fe[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",gh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ne,Fe)=>(a.openBlock(),a.createElementBlock("div",{key:Fe},[a.createElementVNode("div",bh,[a.createElementVNode("div",null,a.toDisplayString(Ne.label),1),a.createElementVNode("div",kh,[a.createVNode(le,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:be=>I(Ne)},null,8,["onClick"]),a.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:be=>C(Ne)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",xh,[fe[4]||(fe[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:S},{icon:a.withCtx(()=>[a.createVNode(le,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[fe[3]||(fe[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",wh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(Ne,Fe)=>(a.openBlock(),a.createElementBlock("div",{key:Fe},[a.createElementVNode("div",_h,[a.createElementVNode("div",null,a.toDisplayString(Ne.label),1),a.createElementVNode("div",Sh,[a.createVNode(le,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:be=>U(Ne)},null,8,["onClick"]),a.createVNode(le,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:be=>_(Ne)},null,8,["onClick"])])])]))),128))]),fe[6]||(fe[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",Eh,[fe[5]||(fe[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(il._sfc_main$1,{modelValue:x.value,"onUpdate:modelValue":fe[0]||(fe[0]=Ne=>x.value=Ne)},null,8,["modelValue"])])]),a.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:pe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",Ch,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:$,onChangeVisible:G,onBlurChange:de},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Dh,[a.createVNode(ue,{onClick:pe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>fe[7]||(fe[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(ue,{class:"ok-button button",onClick:a.unref(Me),id:"themeButton"},{default:a.withCtx(()=>fe[8]||(fe[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(wr.ssDialog,{visible:f.value,onBeforeDestroy:pe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",Nh,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:R.value,key:R.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:pe,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:j},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},_s=Jl._export_sfc(Bh,[["__scopeId","data-v-20850524"]]),Th={class:"step-module content"},Ah={class:"module-data"},zh={class:"step-module layout"},Mh={class:"form-content"},Ih=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,o=r,s=a.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),c=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),m=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=a.reactive({visible:!1,width:"40%",title:"步骤条"}),h=a.ref("create"),y=a.ref({}),u=a.ref([]),x=I=>{var U;y.value=I,o("change",(U=E())==null?void 0:U.compData)},D=(I,U)=>{var j,C;switch(I){case"create":(j=c.value)==null||j.forEach(_=>{_.value=""}),h.value="create",f.visible=!0;break;case"update":(C=c.value)==null||C.forEach(_=>{_.value=U[_==null?void 0:_.prop]}),h.value="update",f.visible=!0;break;case"delete":u.value.splice(U,1),h.value="delete";break}},R=I=>{var U,j,C;if((I==null?void 0:I.buttonName)==="确认"){const _=L.cloneDeep(I==null?void 0:I.content);switch(Object.keys(_).forEach(S=>{_[S]===""&&delete _[S]}),h.value){case"create":u.value.push({..._,index:((U=u.value)==null?void 0:U.length)+1});break;case"update":u.value=(j=u.value)==null?void 0:j.map(S=>S.index===(_==null?void 0:_.index)?{...S,title:_==null?void 0:_.title,description:_==null?void 0:_.description}:S);break}o("change",(C=E())==null?void 0:C.compData),f.visible=!1}else f.visible=!1},E=()=>({comp:"Step",compData:[{key:"stepList",contents:u.value},{key:"stepConfig",contents:y.value}]}),W=()=>{f.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,I=>{var U,j;I&&(y.value=((U=I==null?void 0:I.find(C=>C.key==="stepConfig"))==null?void 0:U.contents)??{},u.value=((j=I==null?void 0:I.find(C=>C.key==="stepList"))==null?void 0:j.contents)??[])},{immediate:!0}),(I,U)=>{const j=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",Th,[U[2]||(U[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:U[0]||(U[0]=_=>D("create"))},{icon:a.withCtx(()=>[a.createVNode(j,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[U[1]||(U[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",Ah,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(_,S)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:S},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.title),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>D("update",{..._,index:S+1})},{default:a.withCtx(()=>U[3]||(U[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>D("delete",S)},{default:a.withCtx(()=>U[4]||(U[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",zh,[U[5]||(U[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(il.ssForm,{rowContents:s.value,onChange:x},null,8,["rowContents"])])]),a.createVNode(wr.ssDialog,{visible:f.visible,title:f.title,onBeforeDestroy:W,width:f.width},{default:a.withCtx(()=>[a.createElementVNode("div",Mh,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Oh=Jl._export_sfc(Ih,[["__scopeId","data-v-7dbd17f2"]]),Lh={class:"step-module content"},$h={class:"module-data"},Rh={class:"step-module layout"},Vh={class:"form-content"},Fh=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,o=r,s=a.ref("create"),c=a.ref({}),m=a.ref([]),f=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),h=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),u=a.reactive({visible:!1,width:"40%",title:"时间线"}),x=I=>{var U;c.value=I,o("change",(U=E())==null?void 0:U.compData)},D=(I,U)=>{var j,C;switch(I){case"create":(j=h.value)==null||j.forEach(_=>{_.value=""}),s.value="create",u.visible=!0;break;case"update":(C=h.value)==null||C.forEach(_=>{_.value=U[_==null?void 0:_.prop]}),s.value="update",u.visible=!0;break;case"delete":m.value.splice(U,1),s.value="delete";break}},R=I=>{var U,j,C,_;if((I==null?void 0:I.buttonName)==="确认"){const S=L.cloneDeep(I==null?void 0:I.content);switch(Object.keys(S).forEach(k=>{S[k]===""&&delete S[k]}),s.value){case"create":(j=m.value)==null||j.push({...S,index:((U=m.value)==null?void 0:U.length)+1});break;case"update":m.value=(C=m.value)==null?void 0:C.map(k=>k.index===(S==null?void 0:S.index)?{...k,content:S==null?void 0:S.content,timestamp:S==null?void 0:S.timestamp}:k);break}o("change",(_=E())==null?void 0:_.compData),u.visible=!1}else u.visible=!1},E=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:m.value},{key:"timeLineConfig",contents:c.value}]}),W=()=>{u.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,I=>{var U,j;I&&(c.value=((U=I==null?void 0:I.find(C=>C.key==="timeLineConfig"))==null?void 0:U.contents)??{},m.value=((j=I==null?void 0:I.find(C=>C.key==="timeLineList"))==null?void 0:j.contents)??[])},{immediate:!0}),(I,U)=>{const j=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",Lh,[U[2]||(U[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:U[0]||(U[0]=_=>D("create"))},{icon:a.withCtx(()=>[a.createVNode(j,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[U[1]||(U[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",$h,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(_,S)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:S},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.content),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>D("update",{..._,index:S+1})},{default:a.withCtx(()=>U[3]||(U[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>D("delete",S)},{default:a.withCtx(()=>U[4]||(U[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",Rh,[U[5]||(U[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(il.ssForm,{rowContents:f.value,onChange:x},null,8,["rowContents"])])]),a.createVNode(wr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:W,width:u.width},{default:a.withCtx(()=>[a.createElementVNode("div",Vh,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Ph=Jl._export_sfc(Fh,[["__scopeId","data-v-39ffc861"]]),jh={};function Hh(l,r){return a.openBlock(),a.createElementBlock("div")}const Uh=Jl._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(l,{emit:r}){const n=l,o=a.ref(0),s=a.ref(),c=a.ref(),m=r,f=a.ref(!1),h=a.ref({}),y=a.ref({}),u=a.ref();a.watch(()=>[n.itemData],()=>{var _;const C=L.cloneDeep(n.itemData);s.value=(_=L.cloneDeep(C))==null?void 0:_.map(S=>{var k;if(S.key==="extra"){let g=[];(k=S.value)==null||k.forEach(z=>{var $;g.push(($=Object.values(z))==null?void 0:$[0])}),S.value=g}return S})},{deep:!0,immediate:!0});const x=(C,_,S,k)=>{var z;let g={};((z=C==null?void 0:C[0])==null?void 0:z.contents)==="详情"&&(f.value=!0,g[_]=C,c.value=C==null?void 0:C.filter($=>($==null?void 0:$.key)!=="tableContentName"),h.value=g,y.value=S,u.value=k.id)},D=C=>{var $,G,de,Me;const _=(G=($=Object.values(L.cloneDeep(h.value)))==null?void 0:$[0])==null?void 0:G.filter(pe=>(pe==null?void 0:pe.key)==="tableContentName"),S=(Me=(de=Object.values(L.cloneDeep(h.value)))==null?void 0:de[0])==null?void 0:Me.filter(pe=>(pe==null?void 0:pe.key)!=="tableContentName"),k=S==null?void 0:S.map((pe,Z)=>{var fe;return Z===C.index&&(pe==null?void 0:pe.comp)==="Table"&&(pe.compData=(fe=pe.compData)==null?void 0:fe.map(le=>{var ue,Ne;return(le==null?void 0:le.key)==="tableContents"&&(le.contents=(Ne=(ue=C.content)==null?void 0:ue.map(Fe=>{let be={};for(let A in Fe)A!=="id"&&(be[A]=Fe[A]);return be}))==null?void 0:Ne.map(Fe=>Object.values(Fe))),le})),pe});k.unshift(_==null?void 0:_[0]);let g=L.cloneDeep(h.value),z={};for(let pe in g)z[pe]=k;h.value=z},R=()=>{f.value=!1,h.value={},y.value={},u.value=void 0,o.value++},E=C=>{var $,G,de,Me;const _=(G=($=Object.values(L.cloneDeep(h.value)))==null?void 0:$[0])==null?void 0:G.filter(pe=>(pe==null?void 0:pe.key)==="tableContentName"),S=(Me=(de=Object.values(L.cloneDeep(h.value)))==null?void 0:de[0])==null?void 0:Me.filter(pe=>(pe==null?void 0:pe.key)!=="tableContentName"),k=S==null?void 0:S.map((pe,Z)=>(Z===C.index&&(pe.compData=C.contents),pe));k.unshift(_==null?void 0:_[0]);let g=L.cloneDeep(h.value),z={};for(let pe in g)z[pe]=k;h.value=z},W=()=>{var _,S;let C={};for(let k in y.value)k===((_=Object.keys(h.value))==null?void 0:_[0])?C[k]=(S=Object.values(h.value))==null?void 0:S[0]:C[k]=y.value[k];m("change",{buttonName:"编辑",index:u.value,singleContent:C},"methodData"),f.value=!1,h.value={},y.value={},u.value=void 0},I=()=>{f.value=!1,h.value={},y.value={},u.value=void 0},U=C=>{m("change",C,"methodData")},j=C=>Ao(C);return(C,_)=>{const S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",qh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(k,g)=>(a.openBlock(),a.createElementBlock("div",{key:o.value},[(k==null?void 0:k.key)==="extra"?(a.openBlock(),a.createElementBlock("div",Wh)):(a.openBlock(),a.createElementBlock("div",Kh,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(j(k.comp)),{itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,key:g,index:(k==null?void 0:k.id)??g,onContentClick:x,onChange:U},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(wr.ssDialog,{visible:f.value,onBeforeDestroy:I},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(k,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(j(k.comp)),{itemData:k==null?void 0:k.compData,onChange:D,childItemData:k==null?void 0:k.itemChildData,key:g,onContentChange:E,index:(k==null?void 0:k.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",Gh,[a.createVNode(S,{class:"cancel-button footer-button",onClick:R,id:"themeBorderButton"},{default:a.withCtx(()=>_[0]||(_[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(S,{class:"confirm-button footer-button",onClick:W,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Jh=Jl._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(l){const r=a.ref([]),n=oa.useOriginalState(L.pinia),{originalPath:o}=L.storeToRefs(n),s=l,c=a.ref(!1),m=a.ref(),f=oa.useTableComp(L.pinia),{multipleTableConst:h}=L.storeToRefs(f),y=L.useModelComp(L.pinia),u=a.ref(!1),x=L.useMenuState(L.pinia),D=L.useLoginState(L.pinia),{itemData:R,isEdit:E,routeToChildPath:W,tableViewContents:I,lockingPage:U,payloadTypes:j}=L.storeToRefs(y),{activeMenuPath:C,platform:_,childMenu:S}=L.storeToRefs(x),{loginUserInfo:k}=L.storeToRefs(D),g=a.ref(!1),z=async()=>{var be,A;(be=r.value)!=null&&be.find(q=>(q==null?void 0:q.buttonName)==="保存")&&await le((A=r.value)==null?void 0:A.find(q=>(q==null?void 0:q.buttonName)==="保存")),await oa.onSaveBack()};a.watch(()=>R.value,async()=>{E.value==="view"&&!g.value&&await Fe(L.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const $=()=>{c.value=!1,m.value=void 0},G=be=>be.map(A=>{const q={};for(const re in A){const Te=A[re];if(re.includes(h.value)){const xe=re.split(h.value);let Ye=q;xe.forEach((da,Ma)=>{Ma===xe.length-1?Ye[da]=Te:(Ye[da]||(Ye[da]={}),Ye=Ye[da])})}else q[re]=Te}return q}),de=async(be,A,q=[])=>{var Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La;let re=(Te=L.cloneDeep(A))==null?void 0:Te.filter(V=>(V==null?void 0:V.comp)!=="methodButton");if(be!=null&&be.includes("[")){let V=(ne=(Ma=(da=(Ye=(xe=L.cloneDeep(be))==null?void 0:xe.split("["))==null?void 0:Ye[1])==null?void 0:da.split("]"))==null?void 0:Ma[0])==null?void 0:ne.split(":"),P="";if(V!=null&&V[0]){let ae=(Ae=re==null?void 0:re.find(he=>(he==null?void 0:he.name)===(V==null?void 0:V[0])))==null?void 0:Ae.compData;if(!ae){let he=(Ie=be==null?void 0:be.split("["))==null?void 0:Ie[0],me=await oa.getItemData(he,sessionStorage.getItem("systemKey"),"",!1,"","",q);ae=(qe=me==null?void 0:me.find(fa=>(fa==null?void 0:fa.name)===(V==null?void 0:V[0])))==null?void 0:qe.compData}ae==null||ae.forEach(he=>{var me,fa,Xe,ce,Ee,ma;if((he==null?void 0:he.key)==="formContent")(me=he==null?void 0:he.contents)==null||me.forEach(We=>{var Oa;(We==null?void 0:We.key)===(V==null?void 0:V[1])&&(Array.isArray(We==null?void 0:We.value)?P=We==null?void 0:We.value:P=(Oa=We==null?void 0:We.value)==null?void 0:Oa.toString())});else if((he==null?void 0:he.key)==="tableContents"){let We=[],Oa=(fa=ae==null?void 0:ae.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:fa.contents,za=(V==null?void 0:V[1])??"";if(Oa!=null&&Oa.every(H=>Array.isArray(H))){let H=oa.getColumnChild((Ee=Oa==null?void 0:Oa[0])==null?void 0:Ee.filter(ye=>(ye==null?void 0:ye.label)!=="操作"));(ma=he.contents)==null||ma.forEach(ye=>{let oe={};ye=ye==null?void 0:ye.filter(we=>!(we!=null&&we.id)),H==null||H.forEach((we,Q)=>{let Qe=ye[Q];typeof ye[Q]=="number"&&(Qe=ye[Q].toString()),(za===""||za===we.prop)&&(oe[we.prop]=Qe)}),We.push(oe)}),We=G(We)}else{let H=(Xe=Oa==null?void 0:Oa.map(ye=>ye==null?void 0:ye.label))==null?void 0:Xe.filter(ye=>ye!=="操作");(ce=he.contents)==null||ce.forEach(ye=>{let oe={};ye=ye==null?void 0:ye.filter(we=>!(we!=null&&we.id)),H==null||H.forEach((we,Q)=>{let Qe=ye[Q];typeof ye[Q]=="number"&&(Qe=ye[Q].toString()),(za===""||za===we)&&(oe[we]=Qe)}),We.push(oe)})}P=We}})}return P}else if(be!=null&&be.includes("/")){let V={};return(Ve=L.cloneDeep(re))==null||Ve.forEach((P,ae)=>{var he,me,fa,Xe,ce,Ee,ma,We,Oa,za,H,ye,oe,we,Q,Qe,ze,ka,ca;if((P==null?void 0:P.comp)==="Table"){let Aa=Array.isArray((fa=(me=(he=P==null?void 0:P.compData)==null?void 0:he.find(va=>(va==null?void 0:va.key)==="header"))==null?void 0:me.contents)==null?void 0:fa[0])?(ma=(Ee=(ce=(Xe=P==null?void 0:P.compData)==null?void 0:Xe.find(va=>(va==null?void 0:va.key)==="header"))==null?void 0:ce.contents)==null?void 0:Ee[0])==null?void 0:ma.some(va=>va==null?void 0:va.children):[],Ia=(za=(Oa=(We=P==null?void 0:P.compData)==null?void 0:We.find(va=>(va==null?void 0:va.key)==="tableContents"))==null?void 0:Oa.contents)==null?void 0:za.map(va=>(va!=null&&va.find(Ha=>Ha==null?void 0:Ha.id)&&(va=va.slice(1)),va)),ba=(Q=(we=(oe=(ye=(H=P==null?void 0:P.compData)==null?void 0:H.find(va=>(va==null?void 0:va.key)==="header"))==null?void 0:ye.contents)==null?void 0:oe[0])==null?void 0:we[0])==null?void 0:Q.label,ua=(ze=(Qe=P==null?void 0:P.compData)==null?void 0:Qe.find(va=>(va==null?void 0:va.key)==="header"))==null?void 0:ze.contents;if(Aa)(Aa==null?void 0:Aa.length)===0?V[P.name]=V!=null&&V[P.name]?V[P.name]:oa.tableToForm(Ia,ua):V[ba]=oa.tableToForm(Ia,ua);else{const va=[];ua=ua.slice(1,ua.length-1),ua==null||ua.forEach((Ha,pl)=>{Ia==null||Ia.forEach($l=>{va.push({key:Ha.label+$l[0],value:$l[pl+1]})})}),V["form"+ae]=va}}else{const Aa=(ca=(ka=P.compData)==null?void 0:ka.find(ba=>(ba==null?void 0:ba.key)==="formContent"))==null?void 0:ca.contents;V!=null&&V.form||(V.form=[]);const Ia=[];Aa==null||Aa.forEach(ba=>{ba.key!==""&&(ba={key:(ba==null?void 0:ba.key)??(ba==null?void 0:ba.label),value:ba==null?void 0:ba.value},Ia.push(ba))}),V.form=[...Ia,...L.cloneDeep(V==null?void 0:V.form)]}}),V}else{if(be==="createInsofDataApi"){let V=(se=L.cloneDeep(A))==null?void 0:se[0];return V={comp:($e=L.cloneDeep(V))==null?void 0:$e.comp,compData:(Ue=L.cloneDeep(V))==null?void 0:Ue.compData,name:(Na=L.cloneDeep(V))==null?void 0:Na.name,isShow:(La=L.cloneDeep(V))==null?void 0:La.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:C.value},value:{pageData:V}}}return be}},Me=async(be,A,q)=>{var xe,Ye,da;let re=await oa.getItemData(A,sessionStorage.getItem("systemKey"),""),Te=re==null?void 0:re.find(Ma=>(Ma==null?void 0:Ma.name)===(q==null?void 0:q[0]));if(Te){if((Te==null?void 0:Te.comp)==="Table"){let Ma={};for(let $e in L.cloneDeep(be))L.cloneDeep(be)[$e]!=="loginUser"?Ma[$e]=L.cloneDeep(be)[$e]:Ma[$e]=((xe=k.value)==null?void 0:xe.account)||((Ye=k.value)==null?void 0:Ye.账号);let ne=[],Ae=Ma;Array.isArray(be)||(Ae=[Ma]),Ae==null||Ae.forEach($e=>{ne.push({[$e[q[1]]]:$e})});let Ie=[],qe=ne==null?void 0:ne.map($e=>{var Ue;return(Ue=Object.keys($e))==null?void 0:Ue[0]});re==null||re.forEach($e=>{var Ue;($e==null?void 0:$e.name)===(q==null?void 0:q[0])&&((Ue=$e==null?void 0:$e.compData)==null||Ue.forEach(Na=>{var La;(Na==null?void 0:Na.key)==="tableContents"&&((La=Na==null?void 0:Na.contents)==null||La.forEach(V=>{V!=null&&V.some(P=>qe.includes(P))&&Ie.push({[V.find(P=>P.id).id]:V.find(P=>qe.includes(P))})}))}))});let Ve=Ie==null?void 0:Ie.map($e=>{var Ue;return(Ue=Object.keys($e))==null?void 0:Ue[0]}),se=[];if(Ve==null||Ve.forEach($e=>{var La;let Ue=(La=Ie==null?void 0:Ie.find(V=>{var P;return((P=Object.keys(V))==null?void 0:P[0].toString())===$e.toString()}))==null?void 0:La[$e],Na=ne==null?void 0:ne.find(V=>{var P;return((P=Object.keys(V))==null?void 0:P[0])===Ue});se.push({id:parseInt($e),value:{tableData:Na[Ue]}})}),(se==null?void 0:se.length)>0)return se}else if((Te==null?void 0:Te.comp)==="Form"){let Ma=L.cloneDeep(Te);Ma.compData=(da=Ma.compData)==null?void 0:da.map(Ie=>{var qe;return(Ie==null?void 0:Ie.key)==="formContent"&&(Ie.contents=(qe=Ie.contents)==null?void 0:qe.map(Ve=>((Ve==null?void 0:Ve.key)===(q==null?void 0:q[1])&&(Ve.value=(be==null?void 0:be[Ve==null?void 0:Ve.prop])||be),Ve))),Ie});let ne={};for(let Ie in Ma)Ie!=="id"&&(ne[Ie]=Ma[Ie]);let Ae=[];if(Ae.push({id:Te==null?void 0:Te.id,keyType:q==null?void 0:q[1],value:{pageData:ne}}),(Ae==null?void 0:Ae.length)>0)return Ae}}},pe=async(be,A,q)=>{var xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se;let re=await oa.getItemData(A,sessionStorage.getItem("systemKey"),""),Te=re==null?void 0:re.find($e=>($e==null?void 0:$e.name)===(q==null?void 0:q[0]));if(Te){if((Te==null?void 0:Te.comp)==="Table"){let $e={};for(let Ue in L.cloneDeep(be))L.cloneDeep(be)[Ue]!=="loginUser"?$e[Ue]=L.cloneDeep(be)[Ue]:$e[Ue]=((xe=k.value)==null?void 0:xe.account)||((Ye=k.value)==null?void 0:Ye.账号);await Dr.createInsofDataApi({key:{type:"data",pageKey:A,tableId:Te==null?void 0:Te.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:$e}})}else if((Te==null?void 0:Te.comp)==="Form"){let $e=L.cloneDeep(Te),Ue=Object.keys(be),Na="";(Ma=(da=L.cloneDeep($e))==null?void 0:da.compData)==null||Ma.forEach(me=>{var fa,Xe;(me==null?void 0:me.key)==="formContent"&&((Xe=(fa=L.cloneDeep(me))==null?void 0:fa.contents)==null||Xe.forEach(ce=>{var Ee;Ue.includes(ce==null?void 0:ce.key)&&(ce==null?void 0:ce.value)===((Ee=k.value)==null?void 0:Ee.姓名)&&(Na=ce==null?void 0:ce.key)}))});let La=[];(ne=Object.values(be[Na]))==null||ne.forEach(me=>{me!=null&&me.includes("(")&&La.push(me)}),La=[...new Set(La)];const V=La==null?void 0:La.map(async me=>{var ma,We,Oa,za,H,ye,oe,we,Q,Qe,ze,ka;let fa="";(ye=(H=(za=(Oa=(We=(ma=L.cloneDeep(me))==null?void 0:ma.split("("))==null?void 0:We[1])==null?void 0:Oa.split(")"))==null?void 0:za[0])==null?void 0:H.split(":"))==null||ye.forEach(ca=>{fa=fa===""?fa+ca.replaceAll("'",""):fa+"/"+ca.replaceAll("'","")});let Xe=[];(ka=(ze=(Qe=(Q=(we=(oe=L.cloneDeep(me))==null?void 0:oe.split("<"))==null?void 0:we[1])==null?void 0:Q.split(">"))==null?void 0:Qe[0])==null?void 0:ze.split(":"))==null||ka.forEach(ca=>{Xe.push(ca.replaceAll("'",""))});const ce=await oa.getItemData(fa,sessionStorage.getItem("systemKey"),"");let Ee="";return ce==null||ce.forEach(ca=>{var Aa;ca.name===(Xe==null?void 0:Xe[0])&&((Aa=ca==null?void 0:ca.compData)==null||Aa.forEach(Ia=>{var ba;(Ia==null?void 0:Ia.key)==="formContent"&&((ba=Ia.contents)==null||ba.forEach(ua=>{(ua==null?void 0:ua.key)===(Xe==null?void 0:Xe[1])&&(Ee=ua==null?void 0:ua.value)}))}))}),{[me]:Ee}}),P=await Promise.all(V);$e.compData=(Ie=(Ae=L.cloneDeep($e))==null?void 0:Ae.compData)==null?void 0:Ie.map(me=>{var fa,Xe;return(me==null?void 0:me.key)==="formContent"&&(me.contents=(Xe=(fa=L.cloneDeep(me))==null?void 0:fa.contents)==null?void 0:Xe.map(ce=>{var Ee,ma,We,Oa;return(Ee=be[Na])!=null&&Ee[ce==null?void 0:ce.key]&&(be[Na][ce==null?void 0:ce.key].includes("(")?ce.value=(ma=P==null?void 0:P.find(za=>{var H;return((H=Object.keys(za))==null?void 0:H[0])===be[Na][ce==null?void 0:ce.key]}))==null?void 0:ma[be[Na][ce==null?void 0:ce.key]]:ce.value=(Oa=(We=L.cloneDeep(be))==null?void 0:We[Na])==null?void 0:Oa[ce==null?void 0:ce.key]),ce})),me});const ae=await Dr.getInsofDataApi({key:{type:"structure",pageKey:A,systemKey:sessionStorage.getItem("systemKey")}});let he="";((qe=ae==null?void 0:ae.data)==null?void 0:qe.type)==="success"&&((se=(Ve=ae==null?void 0:ae.data)==null?void 0:Ve.result)==null||se.forEach(me=>{var fa,Xe;((Xe=(fa=me==null?void 0:me.value)==null?void 0:fa.pageData)==null?void 0:Xe.name)===(q==null?void 0:q[0])&&(he=me.id)}),await Dr.updateInsofDataApi({id:he,value:{pageData:$e}}))}}},Z=(be,A="",q={})=>{for(const[re,Te]of Object.entries(be)){const xe=A?`${A}.${re}`:re;Te!==null&&typeof Te=="object"&&!Array.isArray(Te)&&Object.prototype.toString.call(Te)!=="[object Date]"?Z(Te,xe,q):q[xe]=Te}return q},fe=async(be,A,q,re)=>{var Ye,da,Ma,ne,Ae,Ie,qe,Ve,se,$e,Ue,Na,La,V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa;let Te=await oa.getItemData(A,sessionStorage.getItem("systemKey"),""),xe=Te==null?void 0:Te.find(za=>(za==null?void 0:za.name)===(q==null?void 0:q[0]));if(xe){if(!(q!=null&&q[1])&&(xe==null?void 0:xe.comp)==="Table"){let za={},H=[],ye=(da=(Ye=xe==null?void 0:xe.compData)==null?void 0:Ye.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:da.contents;ye!=null&&ye.every(Q=>Array.isArray(Q))?H=(ne=oa.getColumnChild((Ma=ye==null?void 0:ye[0])==null?void 0:Ma.filter(Q=>(Q==null?void 0:Q.label)!=="操作")))==null?void 0:ne.map(Q=>Q==null?void 0:Q.prop):H=ye==null?void 0:ye.map(Q=>Q==null?void 0:Q.label);for(let Q in L.cloneDeep(be))if(L.cloneDeep(be)[Q]!=="loginUser"){let Qe=Z(L.cloneDeep(be)[Q]),ze={};for(let ka in Qe)if(H!=null&&H.find(ca=>ca===ka))ze[ka]=Qe[ka];else if(H!=null&&H.find(ca=>(ca==null?void 0:ca.toUpperCase())===(ka==null?void 0:ka.toUpperCase()))){let ca=H==null?void 0:H.find(Aa=>(Aa==null?void 0:Aa.toUpperCase())===(ka==null?void 0:ka.toUpperCase()));ze[ca]=Qe[ka]}za[Q]=ze}else za[Q]=((Ae=k.value)==null?void 0:Ae.account)||((Ie=k.value)==null?void 0:Ie.账号);let oe=await Dr.getInsofDataApi({keyLikes:{tableId:xe==null?void 0:xe.id}});if(((Ve=(qe=oe==null?void 0:oe.data)==null?void 0:qe.result)==null?void 0:Ve.length)>0){let Q=($e=(se=oe==null?void 0:oe.data)==null?void 0:se.result)==null?void 0:$e.map(Qe=>Qe==null?void 0:Qe.id);(Q==null?void 0:Q.length)>0&&await Dr.batchDeleteInsofDataApi({ids:Q})}let we=[];if((Ue=xe==null?void 0:xe.compData)!=null&&Ue.find(Q=>(Q==null?void 0:Q.key)==="pageColumn")&&((V=(La=(Na=xe==null?void 0:xe.compData)==null?void 0:Na.find(Q=>(Q==null?void 0:Q.key)==="pageColumn"))==null?void 0:La.contents)!=null&&V.includes("["))){const Q=await Dr.getInsofDataApi({id:xe==null?void 0:xe.tableId});let Qe=((me=(he=(ae=(P=Q==null?void 0:Q.data)==null?void 0:P.result)==null?void 0:ae[0])==null?void 0:he.key)==null?void 0:me.pageKey)??"";(fa=Object.values(za))==null||fa.forEach(ze=>{we.push({key:{type:"data",pageKey:Qe,tableId:xe==null?void 0:xe.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ze}})})}else(Xe=Object.values(za))==null||Xe.forEach(Q=>{we.push({key:{type:"data",pageKey:A,tableId:xe==null?void 0:xe.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Q}})});(we==null?void 0:we.length)>0&&await Dr.batchAddInsofDataApi({dataList:we})}else if(!(q!=null&&q[1])&&(xe==null?void 0:xe.comp)==="Form"){let za=L.cloneDeep(xe);za.compData=(Ee=(ce=L.cloneDeep(za))==null?void 0:ce.compData)==null?void 0:Ee.map(oe=>{var we,Q;return(oe==null?void 0:oe.key)==="formContent"&&(oe.contents=(Q=(we=L.cloneDeep(oe))==null?void 0:we.contents)==null?void 0:Q.map(Qe=>{var ze,ka;return(ze=L.cloneDeep(be))!=null&&ze[Qe==null?void 0:Qe.key]&&(Qe.value=(ka=L.cloneDeep(be))==null?void 0:ka[Qe==null?void 0:Qe.key]),Qe})),oe});const H=await Dr.getInsofDataApi({key:{type:"structure",pageKey:A,systemKey:sessionStorage.getItem("systemKey")}});let ye="";((ma=H==null?void 0:H.data)==null?void 0:ma.type)==="success"&&((Oa=(We=H==null?void 0:H.data)==null?void 0:We.result)==null||Oa.forEach(oe=>{var we,Q;((Q=(we=oe==null?void 0:oe.value)==null?void 0:we.pageData)==null?void 0:Q.name)===(q==null?void 0:q[0])&&(ye=oe.id)}),await Dr.updateInsofDataApi({id:ye,value:{pageData:za}}))}}},le=async be=>{var A,q,re,Te,xe,Ye,da,Ma,ne,Ae,Ie,qe,Ve,se;x.setImportLoading(!0);try{if(be.api){let $e=new WeakMap,Ue=await oa.getItemData((S==null?void 0:S.value)===""?C.value:S==null?void 0:S.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e),Na="";if(Ue=Ue==null?void 0:Ue.map(Xe=>{var ce,Ee,ma,We,Oa,za,H,ye,oe,we,Q,Qe;if((Xe==null?void 0:Xe.comp)==="Form")Xe.compData=(ce=Xe.compData)==null?void 0:ce.map(ze=>{var ka;return(ze==null?void 0:ze.key)==="formContent"&&(ze.contents=(ka=ze.contents)==null?void 0:ka.map(ca=>{var Aa;if((ca==null?void 0:ca.value)===""&&(ca==null?void 0:ca.type)==="Select"){let Ia=oa.judgeContents((Aa=L.cloneDeep(ca))==null?void 0:Aa.optionUrl,$e);ca.value=ca.value||Ia}return ca})),ze});else if((Xe==null?void 0:Xe.comp)==="Table"&&(Ee=Xe.compData)!=null&&Ee.find(ze=>(ze==null?void 0:ze.key)==="pageColumn")){let ze=(We=(ma=Xe.compData)==null?void 0:ma.find(Ia=>(Ia==null?void 0:Ia.key)==="pageColumn"))==null?void 0:We.contents,ka=((za=(Oa=Xe.compData)==null?void 0:Oa.find(Ia=>(Ia==null?void 0:Ia.key)==="pageGroup"))==null?void 0:za.contents)??"",ca=(oe=(ye=(H=ze==null?void 0:ze.split("["))==null?void 0:H[1])==null?void 0:ye.split("]"))==null?void 0:oe[0];Na=((we=ze==null?void 0:ze.split("["))==null?void 0:we[0])+((Qe=(Q=I.value)==null?void 0:Q.find(Ia=>(Ia==null?void 0:Ia.key)===ca))==null?void 0:Qe.value)}return Xe}),!(Na===""||Na==="")){const Xe=await oa.getItemData(Na,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Ue=Ue==null?void 0:Ue.map(ce=>{var Ee,ma,We,Oa,za,H,ye,oe,we,Q,Qe,ze,ka;if((ce==null?void 0:ce.comp)==="Table"&&(Ee=ce.compData)!=null&&Ee.find(ca=>(ca==null?void 0:ca.key)==="pageColumn")){let ca=(We=(ma=ce.compData)==null?void 0:ma.find(va=>(va==null?void 0:va.key)==="pageColumn"))==null?void 0:We.contents,Aa=((za=(Oa=ce.compData)==null?void 0:Oa.find(va=>(va==null?void 0:va.key)==="pageGroup"))==null?void 0:za.contents)??"",Ia=(oe=(ye=(H=ca==null?void 0:ca.split("["))==null?void 0:H[1])==null?void 0:ye.split("]"))==null?void 0:oe[0],ba=((we=ca==null?void 0:ca.split("["))==null?void 0:we[0])+((Qe=(Q=I.value)==null?void 0:Q.find(va=>(va==null?void 0:va.key)===Ia))==null?void 0:Qe.value),ua=(ze=Xe==null?void 0:Xe.find(va=>(va==null?void 0:va.name)===(Aa===""?s==null?void 0:s.compName:Aa)))==null?void 0:ze.compData;ce.compData=(ka=ce.compData)==null?void 0:ka.map(va=>{var Ha;return(va==null?void 0:va.key)==="tableContents"&&(va.contents=(Ha=ua==null?void 0:ua.find(pl=>(pl==null?void 0:pl.key)==="tableContents"))==null?void 0:Ha.contents),va})}return ce})}let La={};if(((q=(A=be==null?void 0:be.extraValues)==null?void 0:A.input)==null?void 0:q.length)>0){const Xe=(Te=(re=be==null?void 0:be.extraValues)==null?void 0:re.input)==null?void 0:Te.map(async ce=>{var Ee;ue!=null&&ue.find(ma=>ma===ce)?La=await de(ce,Ue):La[Object.keys(ce)[0]]=await de((Ee=Object.values(ce))==null?void 0:Ee[0],Ue,$e)});await Promise.all(Xe)}else La=await de("/",Ue);let V=!1;(Ye=(xe=be==null?void 0:be.extraValues)==null?void 0:xe.output)==null||Ye.forEach(Xe=>{var ce,Ee;(Ee=(ce=Object.values(Xe))==null?void 0:ce[0])!=null&&Ee.includes(".doc")&&(V=!0)});let P;if(V){const Xe=jo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});P=await Ga.axios.post(be.api,La,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Xe.close()})}else P=await Ga.axios.post(be.api,La,{headers:{"Content-Type":"application/json"}});let ae=(Ae=(ne=(Ma=(da=L.cloneDeep(be))==null?void 0:da.extraValues)==null?void 0:Ma.output)==null?void 0:ne.map(Xe=>{var ce,Ee,ma,We,Oa,za,H,ye,oe,we,Q,Qe,ze,ka,ca,Aa;if(!((Ee=(ce=Object.values(Xe))==null?void 0:ce[0])!=null&&Ee.includes(".doc"))){let Ia=(we=(oe=(ye=(We=L.cloneDeep((ma=Object.values(Xe))==null?void 0:ma[0]))==null?void 0:We.split("["))==null?void 0:ye[((H=(za=L.cloneDeep((Oa=Object.values(Xe))==null?void 0:Oa[0]))==null?void 0:za.split("["))==null?void 0:H.length)-1])==null?void 0:oe.split("]"))==null?void 0:we[0],ba=Ia==null?void 0:Ia.split(":"),ua=(ze=L.cloneDeep((Q=Object.values(Xe))==null?void 0:Q[0]))==null?void 0:ze.substring(0,L.cloneDeep((Qe=Object.values(Xe))==null?void 0:Qe[0]).lastIndexOf("["));if(ua=(ca=L.cloneDeep(ua))==null?void 0:ca.slice(0,((ka=L.cloneDeep(ua))==null?void 0:ka.length)-1),ua!=null&&ua.includes("[")){let va="";if((Aa=oa.contentTransArrayToAll(ua,"/"))==null||Aa.forEach(Ha=>{var pl,$l,gl,Ol,Ra,jl,Zl;if(!(Ha!=null&&Ha.includes("[")))va=va===""?va+Ha.replaceAll("/",""):va+"/"+Ha.replaceAll("/","");else{let ja=L.cloneDeep(Ha).slice(1,((pl=L.cloneDeep(Ha))==null?void 0:pl.length)-1),ga=(jl=(Ra=(Ol=(gl=($l=L.cloneDeep(ja))==null?void 0:$l.split("["))==null?void 0:gl[1])==null?void 0:Ol.split("]"))==null?void 0:Ra[0])==null?void 0:jl.split(":"),Ca="",Ua=(Zl=Ue==null?void 0:Ue.find(al=>(al==null?void 0:al.name)===(ga==null?void 0:ga[0])))==null?void 0:Zl.compData;Ua==null||Ua.forEach(al=>{var Za;(al==null?void 0:al.key)==="formContent"&&((Za=al==null?void 0:al.contents)==null||Za.forEach(Oe=>{(Oe==null?void 0:Oe.key)===(ga==null?void 0:ga[1])&&(Ca=Oe==null?void 0:Oe.value)}))}),va=va===""?va+Ca.replaceAll("/",""):va+"/"+Ca.replaceAll("/","")}}),ua=va,ua[(ua==null?void 0:ua.length)-1]!=="/")return ua}}}))==null?void 0:Ae.filter(Xe=>Xe);ae=[...new Set(L.cloneDeep(ae))];let he=ae==null?void 0:ae.map(async Xe=>{let ce=await oa.getItemData(Xe,sessionStorage.getItem("systemKey"),"",!1,"","",$e);if((ce==null?void 0:ce.length)===0)return await oa.getParentContents(Xe)});await Promise.all(he);let me=[],fa=(Ve=(qe=(Ie=L.cloneDeep(be))==null?void 0:Ie.extraValues)==null?void 0:qe.output)==null?void 0:Ve.map(async Xe=>{var ye,oe,we,Q,Qe,ze,ka,ca,Aa,Ia,ba,ua,va,Ha,pl,$l,gl,Ol,Ra,jl,Zl,ja,ga,Ca,Ua,al,Za,Oe,ra,_e,Ba,Ge,X,la,Ze,Le,xl,ll,hl,Va,Wa,_a,ge,xa,wl,Rl,Fl,or,gr,Cl,sr,Tr,Ml,rr,en,Or,zr,Cr,Mr,Ir,Nr,Fr,Lr,cr,xn,Yr,nn,zn,wn,gn;if((oe=(ye=Object.values(Xe))==null?void 0:ye[0])!=null&&oe.includes(".doc")){var ce=new Blob([P.data],{type:"application/octet-stream;charset=UTF-8"}),Ee=P.headers["content-disposition"],ma=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),We=ma.exec(Ee),Oa=We==null?void 0:We[1],za=document.createElement("a"),H=window.URL.createObjectURL(ce);m.value=[{name:Oa,blobUrl:H}],c.value=!0}else{let mr=(Ia=(Aa=(ca=(Q=L.cloneDeep((we=Object.values(Xe))==null?void 0:we[0]))==null?void 0:Q.split("["))==null?void 0:ca[((ka=(ze=L.cloneDeep((Qe=Object.values(Xe))==null?void 0:Qe[0]))==null?void 0:ze.split("["))==null?void 0:ka.length)-1])==null?void 0:Aa.split("]"))==null?void 0:Ia[0],Hl=mr==null?void 0:mr.split(":"),pr=(va=L.cloneDeep((ba=Object.values(Xe))==null?void 0:ba[0]))==null?void 0:va.substring(0,L.cloneDeep((ua=Object.values(Xe))==null?void 0:ua[0]).lastIndexOf("["));if(pr!=null&&pr.includes("[")?pr=(pl=L.cloneDeep(pr))==null?void 0:pl.slice(0,((Ha=L.cloneDeep(pr))==null?void 0:Ha.length)-1):pr===""&&(pr=C.value),pr=pr.replaceAll("<","[").replaceAll(">","]"),pr!=null&&pr.includes("[")){let Wl="";($l=oa.contentTransArrayToAll(pr,"/"))==null||$l.forEach((Al,yr)=>{var ir,Pl,Vr,Pr,_n,on,eo,Mn,ao,Sn,In;if(!(Al!=null&&Al.includes("[")))Wl=Wl===""?Wl+Al.replaceAll("/",""):Wl+"/"+Al.replaceAll("/","");else{let Hn="",an="";(ir=L.cloneDeep(Al))!=null&&ir.includes("]")?(Hn=L.cloneDeep(Al).slice(1,((Pl=L.cloneDeep(Al))==null?void 0:Pl.length)-1),an=(eo=(on=(_n=(Pr=(Vr=L.cloneDeep(Hn))==null?void 0:Vr.split("["))==null?void 0:Pr[1])==null?void 0:_n.split("]"))==null?void 0:on[0])==null?void 0:eo.split(":")):(Hn=L.cloneDeep(Al).slice(1,(Mn=L.cloneDeep(Al))==null?void 0:Mn.length),an=(ao=L.cloneDeep(Hn))==null?void 0:ao.split("/"));let On="",En=(Sn=Ue==null?void 0:Ue.find(Gr=>(Gr==null?void 0:Gr.name)===(an==null?void 0:an[0])))==null?void 0:Sn.compData;En==null||En.forEach(Gr=>{var Un;(Gr==null?void 0:Gr.key)==="formContent"&&((Un=Gr==null?void 0:Gr.contents)==null||Un.forEach(bn=>{(bn==null?void 0:bn.key)===(an==null?void 0:an[1])&&(On=bn==null?void 0:bn.value)}))}),((In=oa.contentTransArrayToAll(pr,"/"))==null?void 0:In.length)-1!==yr?Wl=Wl===""?Wl+On.replaceAll("/",""):Wl+"/"+On.replaceAll("/",""):Wl=Wl+o.value+On.replaceAll("/","")}}),(gl=C.value)!=null&&gl.includes(Wl)?pr=C.value:pr=Wl}let Ll=L.cloneDeep((Ol=Object.keys(Xe))==null?void 0:Ol[0]);if(((Ra=P==null?void 0:P.data)==null?void 0:Ra.statusCode)===200||((jl=P==null?void 0:P.data)==null?void 0:jl.code)===200){if(((ja=(Zl=P==null?void 0:P.data)==null?void 0:Zl.data)!=null&&ja[Ll]||(Ca=(ga=P==null?void 0:P.data)==null?void 0:ga.result)!=null&&Ca[Ll])&&(Hl==null?void 0:Hl.length)===1)return await fe(((al=(Ua=P==null?void 0:P.data)==null?void 0:Ua.data)==null?void 0:al[Ll])||((Oe=(Za=P==null?void 0:P.data)==null?void 0:Za.result)==null?void 0:Oe[Ll]),L.cloneDeep(pr),Hl,Na);if((_e=(ra=P==null?void 0:P.data)==null?void 0:ra.data)!=null&&_e[Ll]||(Ge=(Ba=P==null?void 0:P.data)==null?void 0:Ba.result)!=null&&Ge[Ll]){let Wl=await Me(((la=(X=P==null?void 0:P.data)==null?void 0:X.data)==null?void 0:la[Ll])||((Le=(Ze=P==null?void 0:P.data)==null?void 0:Ze.result)==null?void 0:Le[Ll]),L.cloneDeep(pr),Hl);return Wl&&(me=[...me,...Wl]),Wl}else{if(!((xl=P==null?void 0:P.data)!=null&&xl.data)){let Wl=await oa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Wl=Wl==null?void 0:Wl.map(yr=>{var ir;return(yr==null?void 0:yr.name)===(Hl==null?void 0:Hl[0])&&(yr.compData=(ir=yr.compData)==null?void 0:ir.map(Pl=>{var Vr;return(Pl==null?void 0:Pl.key)==="formContent"&&(Pl.contents=(Vr=Pl.contents)==null?void 0:Vr.map(Pr=>{var _n,on;return(Pr==null?void 0:Pr.key)===(Hl==null?void 0:Hl[1])&&(Pr.value=(on=(_n=P==null?void 0:P.data)==null?void 0:_n.result)==null?void 0:on[Ll==null?void 0:Ll.replaceAll(":","")]),Pr})),Pl})),yr});let Al=[];(ll=Wl==null?void 0:Wl.filter(yr=>(yr==null?void 0:yr.comp)==="Form"))==null||ll.forEach(async yr=>{let ir={};for(let Pl in yr)Pl!=="id"&&(ir[Pl]=yr[Pl]);Al.push({id:yr==null?void 0:yr.id,value:{pageData:ir}})}),(Al==null?void 0:Al.length)>0&&await Dr.batchUpdateInsofDataApi({dataList:Al});return}if((Hl==null?void 0:Hl.length)===1){const Wl=(Wa=(Va=(hl=P==null?void 0:P.data)==null?void 0:hl.data)==null?void 0:Va.path)==null?void 0:Wa.path;let Al="";(Rl=(wl=(xa=(ge=(_a=Wl==null?void 0:Wl.split("("))==null?void 0:_a[1])==null?void 0:ge.split(")"))==null?void 0:xa[0])==null?void 0:wl.split(":"))==null||Rl.forEach(Pl=>{var Vr,Pr;Al=Al===""?Al+((Vr=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:Vr.trim()):Al+"/"+((Pr=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:Pr.trim())});let yr=[(sr=(Cl=(gr=(or=(Fl=Wl==null?void 0:Wl.split("<"))==null?void 0:Fl[1])==null?void 0:or.split(">"))==null?void 0:gr[0])==null?void 0:Cl.replaceAll("'",""))==null?void 0:sr.trim()],ir;return(rr=(Ml=(Tr=P==null?void 0:P.data)==null?void 0:Tr.data)==null?void 0:Ml.data)!=null&&rr[Hl==null?void 0:Hl[0]]?ir=await fe((zr=(Or=(en=P==null?void 0:P.data)==null?void 0:en.data)==null?void 0:Or.data)==null?void 0:zr[Hl==null?void 0:Hl[0]],Al,Hl,Na):ir=await pe((Mr=(Cr=P==null?void 0:P.data)==null?void 0:Cr.data)==null?void 0:Mr.data,Al,yr,$e),ir}else{const Wl=(Fr=(Nr=(Ir=P==null?void 0:P.data)==null?void 0:Ir.data)==null?void 0:Nr.path)==null?void 0:Fr.path;let Al="";return(nn=(Yr=(xn=(cr=(Lr=Wl==null?void 0:Wl.split("("))==null?void 0:Lr[1])==null?void 0:cr.split(")"))==null?void 0:xn[0])==null?void 0:Yr.split(":"))==null||nn.forEach(ir=>{var Pl,Vr;Al=Al===""?Al+((Pl=ir==null?void 0:ir.replaceAll("'",""))==null?void 0:Pl.trim()):Al+"/"+((Vr=ir==null?void 0:ir.replaceAll("'",""))==null?void 0:Vr.trim())}),await Me((gn=(wn=(zn=P==null?void 0:P.data)==null?void 0:zn.data)==null?void 0:wn.data)==null?void 0:gn[Hl==null?void 0:Hl[0]],Al,Hl)}}}}});if(await Promise.all(fa),(me==null?void 0:me.length)>0){let Xe=[];me==null||me.forEach(ma=>{Xe!=null&&Xe.find(We=>{var Oa,za,H,ye;return((za=(Oa=We==null?void 0:We.value)==null?void 0:Oa.pageData)==null?void 0:za.name)===((ye=(H=ma==null?void 0:ma.value)==null?void 0:H.pageData)==null?void 0:ye.name)})||Xe.push(ma)});let ce=[];Xe==null||Xe.forEach(ma=>{var za,H,ye,oe;let We=L.cloneDeep(ma);We.value.pageData.compData=(za=We.value.pageData.compData)==null?void 0:za.map(we=>{var Q;return(we==null?void 0:we.key)==="formContent"&&(we.contents=(Q=we.contents)==null?void 0:Q.map(Qe=>{var ka,ca,Aa,Ia;let ze=(ka=L.cloneDeep(me))==null?void 0:ka.find(ba=>(ba==null?void 0:ba.keyType)===(Qe==null?void 0:Qe.key));if(ze){let ba=(Ia=(Aa=(ca=ze.value.pageData.compData)==null?void 0:ca.find(ua=>(ua==null?void 0:ua.key)==="formContent"))==null?void 0:Aa.contents)==null?void 0:Ia.find(ua=>(ua==null?void 0:ua.key)===(Qe==null?void 0:Qe.key));Qe.value=ba==null?void 0:ba.value}return Qe})),we}),ce.push({id:We==null?void 0:We.id,value:We==null?void 0:We.value});let Oa=[];(oe=(ye=(H=We==null?void 0:We.value)==null?void 0:H.pageData)==null?void 0:ye.compData)==null||oe.forEach(we=>{var Q;(we==null?void 0:we.key)==="formContent"&&((Q=we==null?void 0:we.contents)==null||Q.forEach(Qe=>{var ze,ka,ca,Aa,Ia,ba;if((ka=(ze=Qe==null?void 0:Qe.optionUrl)==null?void 0:ze.menuSelect)!=null&&ka.find(ua=>ua==null?void 0:ua.includes("[")))if(Oa!=null&&Oa.find(ua=>{var va,Ha,pl;return((va=ua==null?void 0:ua.key)==null?void 0:va.join(","))===((pl=(Ha=Qe==null?void 0:Qe.optionUrl)==null?void 0:Ha.menuSelect)==null?void 0:pl.join(","))})){let ua=(ca=Oa==null?void 0:Oa.find(va=>{var Ha,pl,$l;return((Ha=va==null?void 0:va.key)==null?void 0:Ha.join(","))===(($l=(pl=Qe==null?void 0:Qe.optionUrl)==null?void 0:pl.menuSelect)==null?void 0:$l.join(","))}))==null?void 0:ca.value;ua.push({key:Qe==null?void 0:Qe.prop,groups:(Aa=Qe==null?void 0:Qe.optionUrl)==null?void 0:Aa.groupSelect,value:Qe==null?void 0:Qe.value}),Oa=Oa==null?void 0:Oa.map(va=>{var Ha,pl,$l;return((Ha=va==null?void 0:va.key)==null?void 0:Ha.join(","))===(($l=(pl=Qe==null?void 0:Qe.optionUrl)==null?void 0:pl.menuSelect)==null?void 0:$l.join(","))&&(va.value=ua),va})}else Oa.push({key:(Ia=Qe==null?void 0:Qe.optionUrl)==null?void 0:Ia.menuSelect,value:[{key:Qe==null?void 0:Qe.prop,groups:(ba=Qe==null?void 0:Qe.optionUrl)==null?void 0:ba.groupSelect,value:Qe==null?void 0:Qe.value}]})}))}),(Oa==null?void 0:Oa.length)>0&&(Oa=Oa==null?void 0:Oa.map(we=>{var Qe;let Q="";return(Qe=we==null?void 0:we.key)==null||Qe.forEach(ze=>{var ka;if(!(ze!=null&&ze.includes("[")))Q=Q===""?Q+ze:Q+"/"+ze;else{let ca="",Aa=(ka=ze==null?void 0:ze.replaceAll("[","").replaceAll("]",""))==null?void 0:ka.split(":");Ue==null||Ue.forEach(Ia=>{var ba;(Ia==null?void 0:Ia.name)===(Aa==null?void 0:Aa[0])&&((ba=Ia==null?void 0:Ia.compData)==null||ba.forEach(ua=>{var va;(ua==null?void 0:ua.key)==="formContent"&&((va=ua==null?void 0:ua.contents)==null||va.forEach(Ha=>{(Ha==null?void 0:Ha.prop)===(Aa==null?void 0:Aa[1])&&(ca=Ha==null?void 0:Ha.value)}))}))}),Q=Q+o.value+ca}}),we.key=Q,we})),Oa==null||Oa.forEach(we=>{var ka,ca,Aa;let Q=(ka=$e[we.key])==null?void 0:ka.find(Ia=>{var ba,ua,va,Ha,pl,$l,gl;return((ua=(ba=Ia==null?void 0:Ia.value)==null?void 0:ba.pageData)==null?void 0:ua.name)===((pl=(Ha=(va=we==null?void 0:we.value)==null?void 0:va[0])==null?void 0:Ha.groups)==null?void 0:pl[0])&&((gl=($l=Ia==null?void 0:Ia.value)==null?void 0:$l.pageData)==null?void 0:gl.name)!==void 0}),Qe=Q==null?void 0:Q.id,ze=(ca=Q==null?void 0:Q.value)==null?void 0:ca.pageData;ze.compData=(Aa=ze.compData)==null?void 0:Aa.map(Ia=>{var ba;return(Ia==null?void 0:Ia.key)==="formContent"&&(Ia.contents=(ba=Ia.contents)==null?void 0:ba.map(ua=>{var Ha;let va=(Ha=we.value)==null?void 0:Ha.find(pl=>(pl==null?void 0:pl.key)===(ua==null?void 0:ua.prop));return va&&(ua.value=va.value),ua})),Ia}),ce.push({id:Qe,value:{pageData:ze}})})});let Ee=(se=L.cloneDeep(me))==null?void 0:se[0];(ce==null?void 0:ce.length)>0&&await Dr.batchUpdateInsofDataApi({dataList:ce})}y.setFreshContent(!0)}x.setImportLoading(!1)}catch{Ga.ElMessage.error("方法执行错误,请查看方法!"),x.setImportLoading(!1)}g.value=!0},ue=["createInsofDataApi"],Ne=aa.debounce(async be=>{le(be)},100),Fe=async be=>{var Ye,da,Ma;const A=L.cloneDeep(be);let q,re=new WeakMap;be!=null&&be[0].path&&(q=await(A==null?void 0:A.map(async(ne,Ae)=>{var La,V,P,ae,he,me,fa,Xe,ce,Ee,ma,We,Oa,za,H,ye;const qe=(La=re[ne==null?void 0:ne.path])==null?void 0:La.filter(oe=>{var we;return((we=oe==null?void 0:oe.key)==null?void 0:we.type)==="data"});let Ve="";const se=await oa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,re);qe==null||qe.forEach(oe=>{var we,Q,Qe,ze,ka;((Q=(we=oe==null?void 0:oe.value)==null?void 0:we.tableData)==null?void 0:Q.算法名称)===((Qe=A==null?void 0:A[Ae])==null?void 0:Qe.method)&&(Ve=(ka=(ze=oe==null?void 0:oe.value)==null?void 0:ze.tableData)==null?void 0:ka.算法体)});const $e=await oa.getItemData(ne==null?void 0:ne.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,re);let Ue="",Na=(he=(ae=(P=(V=$e==null?void 0:$e[0])==null?void 0:V.compData)==null?void 0:P.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:ae.contents)==null?void 0:he.findIndex(oe=>(oe==null?void 0:oe.prop)==="算法体");return(fa=(me=$e==null?void 0:$e[0])==null?void 0:me.compData)==null||fa.forEach(oe=>{var we;(oe==null?void 0:oe.key)==="tableContents"&&((we=oe==null?void 0:oe.contents)==null||we.forEach(Q=>{Q!=null&&Q.find(Qe=>Qe===(ne==null?void 0:ne.method))&&(Ue=Q[Na])}))}),{buttonName:((Xe=A==null?void 0:A[Ae])==null?void 0:Xe.method)||((ma=(Ee=(ce=qe==null?void 0:qe[0])==null?void 0:ce.value)==null?void 0:Ee.tableData)==null?void 0:ma.算法名称),api:(Ve===""?(za=(Oa=(We=qe==null?void 0:qe[0])==null?void 0:We.value)==null?void 0:Oa.tableData)==null?void 0:za.算法体:Ve)||Ue,content:se==null?void 0:se.filter(oe=>oe.comp!=="methodButton"),extraContent:(H=L.cloneDeep(ne.value))==null?void 0:H.slice(1),methodName:(ne==null?void 0:ne.path)??"",extraValues:(ye=A==null?void 0:A[Ae])==null?void 0:ye.data}})));const Te=A==null?void 0:A.map(async ne=>{var $e,Ue,Na,La,V,P;const Ae=($e=resAll.data.result)==null?void 0:$e.filter(ae=>{var he,me,fa;return((he=ae==null?void 0:ae.key)==null?void 0:he.parentTable)===""&&((me=ae==null?void 0:ae.key)==null?void 0:me.type)==="method"&&((fa=ae==null?void 0:ae.key)==null?void 0:fa.methodName)===ae.method}),Ie=Ae==null?void 0:Ae[0],qe=(Ue=resAll.data.result)==null?void 0:Ue.filter(ae=>{var he,me;return((he=ae==null?void 0:ae.key)==null?void 0:he.type)==="methodData"&&((me=ae==null?void 0:ae.key)==null?void 0:me.tableId)===(Ie==null?void 0:Ie.id)}),Ve=await oa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,re),se=qe==null?void 0:qe[0];return{buttonName:(Na=Ie==null?void 0:Ie.key)==null?void 0:Na.methodKey,api:(V=(La=se==null?void 0:se.value)==null?void 0:La.tableData)==null?void 0:V[0],content:Ve==null?void 0:Ve.filter(ae=>ae.comp!=="methodButton"),extraContent:(P=L.cloneDeep(ne.value))==null?void 0:P.slice(1),methodName:(ne==null?void 0:ne.method)??""}}),xe=(Ye=be==null?void 0:be[0])!=null&&Ye.path&&((da=be==null?void 0:be[0])==null?void 0:da.path)!==""?await Promise.all(q):await Promise.all(Te);r.value=xe==null?void 0:xe.filter(ne=>ne==null?void 0:ne.extraContent),(Ma=r.value)==null||Ma.forEach(ne=>{var Ae;ne.api===""&&((Ae=ne.content)==null||Ae.forEach(Ie=>{var qe;Ie.comp=="Table"&&y.setExtraContents(oa.methodTableToContent(Ie.compData,(qe=ne.extraContent)==null?void 0:qe[0]))}))})};return a.watch(()=>s.itemData,async()=>{E.value=="view"&&!g.value&&await Fe(L.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(be,A)=>{var q,re,Te;return a.unref(E)!=="edit"?(a.openBlock(),a.createElementBlock("div",Xh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((q=r.value)==null?void 0:q.filter(xe=>(xe==null?void 0:xe.buttonName)!=="保存"),xe=>{var Ye;return a.openBlock(),a.createElementBlock("div",null,[xe.api!==""?(a.openBlock(),a.createBlock(a.unref(ns._sfc_main),{key:0,disabled:a.unref(U)===a.unref(C)&&!((Ye=xe==null?void 0:xe.buttonName)!=null&&Ye.includes("预览")),class:"calculator-content",modelValue:xe.buttonName,onClickTrigger:da=>a.unref(Ne)(xe),loading:u.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(W)!==""&&((Te=a.unref(C))==null?void 0:Te[((re=a.unref(C))==null?void 0:re.length)-1])!==a.unref(o)?(a.openBlock(),a.createBlock(a.unref(ns._sfc_main),{key:0,class:"calculator-content",onClickTrigger:z,modelValue:"保存"})):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createBlock(il.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:$},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},Qh=Jl._export_sfc(Zh,[["__scopeId","data-v-063aa9af"]]),e4={};function a4(l,r){return" 567 "}const l4=Jl._export_sfc(e4,[["render",a4]]),r4={class:"module content"},n4={class:"module data"},o4={class:"module layout"},i4={class:"form-content"},t4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,o=r,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),c=a.ref("create"),m=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),f=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),h=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),u=a.ref([]),x=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:u.value},{key:"signConfig",contents:y.value}]}),D=I=>{var U;y.value=L.cloneDeep(I),o("change",(U=x())==null?void 0:U.compData)},R=I=>{var U,j;if((I==null?void 0:I.buttonName)==="确认"){const C=L.cloneDeep(I==null?void 0:I.content);switch(c.value){case"create":u.value.push({...C,index:((U=u.value)==null?void 0:U.length)+1});break}o("change",(j=x())==null?void 0:j.compData),s.visible=!1}else s.visible=!1},E=(I,U)=>{var j,C;switch(I){case"create":(j=h.value)==null||j.forEach(_=>{_.value=""}),c.value="create",s.visible=!0;break;case"update":(C=h.value)==null||C.forEach(_=>{_.value=U[_==null?void 0:_.prop]}),c.value="update",s.visible=!0;break;case"delete":u.value.splice(U,1),c.value="delete";break}},W=()=>{s.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,I=>{var U,j;I&&(y.value=((U=I==null?void 0:I.find(C=>C.key==="signConfig"))==null?void 0:U.contents)??{},u.value=((j=I==null?void 0:I.find(C=>C.key==="signTypeList"))==null?void 0:j.contents)??[])},{immediate:!0}),(I,U)=>{const j=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",r4,[U[2]||(U[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:U[0]||(U[0]=_=>E("create"))},{icon:a.withCtx(()=>[a.createVNode(j,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[U[1]||(U[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",n4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(_,S)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:S},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.label),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>E("update",{..._,index:S+1})},{default:a.withCtx(()=>U[3]||(U[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>E("delete",S)},{default:a.withCtx(()=>U[4]||(U[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",o4,[a.createVNode(il.ssForm,{rowContents:f.value,onChange:D},null,8,["rowContents"])])]),a.createVNode(wr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:W,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",i4,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),s4=Jl._export_sfc(t4,[["__scopeId","data-v-487e0536"]]),c4=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:r}){const n=l,o=r,s=a.ref(0),c=a.computed(()=>{var x,D;return(x=n==null?void 0:n.stepConfig)!=null&&x.allowTrigger?s.value:(D=n==null?void 0:n.stepConfig)==null?void 0:D.active}),m=(x,D)=>{s.value=D-1,o("clickStep",x,D)};a.onMounted(()=>{var x;o("clickStep",(x=n==null?void 0:n.stepList)==null?void 0:x[0],0)});const f=x=>il.getComponent(x),h=()=>{var D;const x=(D=n==null?void 0:n.stepList)==null?void 0:D.find((R,E)=>E+1===c.value);return console.log("findStep",x),x?x==null?void 0:x.children:[]},y=x=>{o("clickTrigger",x)},u=x=>{o("changeTrigger",x)};return(x,D)=>{var W,I,U,j,C;const R=a.resolveComponent("el-step"),E=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(E,{direction:(W=l.stepConfig)==null?void 0:W.direction,active:c.value,"finish-status":"success",simple:(I=l.stepConfig)==null?void 0:I.simple,"align-center":((U=l.stepConfig)==null?void 0:U.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,(_,S)=>(a.openBlock(),a.createBlock(R,{key:S,class:"step-item",onClick:k=>m(_,S+1)},{title:a.withCtx(()=>[a.renderSlot(x.$slots,"title",{title:_==null?void 0:_.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(x.$slots,"description",{descriptions:_==null?void 0:_.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(j=l.stepConfig)!=null&&j.allowTrigger&&((C=l.stepConfig)!=null&&C.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(h(),(_,S)=>(a.openBlock(),a.createElementBlock("div",{key:S,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f(_==null?void 0:_.type)),{modelValue:_.value,"onUpdate:modelValue":k=>_.value=k,onClickTrigger:y,onChangeTrigger:u,content:_==null?void 0:_.content},a.createSlots({_:2},[a.renderList(x.$slots,(k,g)=>({name:g,fn:a.withCtx(z=>[a.renderSlot(x.$slots,g,a.mergeProps({ref_for:!0},z||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),u4=Jl._export_sfc(c4,[["__scopeId","data-v-fdbd6832"]]),d4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:r}){const n=l,o=r,s=a.ref({}),c=a.ref([]),m=(f,h)=>{o("clickStep",f,h)};return a.watch(()=>n==null?void 0:n.itemData,f=>{var x,D,R,E;s.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let h=((x=f==null?void 0:f.find(W=>(W==null?void 0:W.key)==="stepName"))==null?void 0:x.contents)??[],y=[];(R=(D=f==null?void 0:f.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:D.contents)==null||R.forEach(W=>{y.push({label:W==null?void 0:W.label,prop:W==null?void 0:W.prop,name:W==null?void 0:W.prop,type:"text",disabled:!0})});let u=((E=f==null?void 0:f.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:E.contents)??[];h=h==null?void 0:h.map((W,I)=>{let U=y==null?void 0:y.map(j=>{var C;return{...j,value:(C=u==null?void 0:u[I])==null?void 0:C[j==null?void 0:j.prop]}});return{title:W,description:U}}),c.value=h},{immediate:!0,deep:!0}),(f,h)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(u4,{stepConfig:s.value,stepList:c.value,onClickStep:m},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:u})=>[a.createTextVNode(a.toDisplayString(u),1)]),description:a.withCtx(({descriptions:u})=>[a.createVNode(il.ssForm,{ref:"formRef",rowContents:u,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),p4=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(r,n)=>{const o=a.resolveComponent("el-timeline-item"),s=a.resolveComponent("el-timeline");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.activities,(c,m)=>(a.openBlock(),a.createBlock(o,{key:m,timestamp:c.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"content",{content:c==null?void 0:c.content,timestamp:c==null?void 0:c.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),f4=Jl._export_sfc(p4,[["__scopeId","data-v-4172a886"]]),h4={class:"line-content"},v4={class:"line-time"},m4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const r=l,n=a.ref({}),o=a.ref([]);return a.watch(()=>r==null?void 0:r.itemData,s=>{var c,m;o.value=(c=s==null?void 0:s.find(f=>(f==null?void 0:f.key)==="timeLineList"))==null?void 0:c.contents,n.value=(m=s==null?void 0:s.find(f=>(f==null?void 0:f.key)==="timeLineConfig"))==null?void 0:m.contents},{immediate:!0}),(s,c)=>(a.openBlock(),a.createBlock(f4,{activities:o.value,timeLineConfig:n.value},{content:a.withCtx(({content:m,timestamp:f})=>[a.createElementVNode("span",h4,a.toDisplayString(m),1),a.createElementVNode("span",v4,a.toDisplayString(f),1)]),_:1},8,["activities","timeLineConfig"]))}}),y4=Jl._export_sfc(m4,[["__scopeId","data-v-b4d9deed"]]),g4={class:"tabs-content"},b4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(l,{emit:r}){const n=l,o=r,s=a.ref();a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const c=D=>{o("change",D)},m=(D,R)=>{o("contentChange",D,R)},f=D=>{o("pageChange",D)},h=D=>{o("rowClick",D)},y=(D,R)=>{o("routeUrl",D,R)},u=D=>{o("clickTrigger",D)},x=(D,R)=>{o("clickMainKey",D,R)};return(D,R)=>{var E,W;return a.openBlock(),a.createElementBlock("div",g4,[(E=s.value)!=null&&E.length?(a.openBlock(),a.createBlock(il.ssTab,{tabsContents:s.value,key:(W=s.value)==null?void 0:W.length},{pane:a.withCtx(({tab:I,index:U})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Go)(I==null?void 0:I.comp)),{related:I==null?void 0:I.relatedTables,compNames:n==null?void 0:n.compNames,compName:I==null?void 0:I.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:l.isDevMode,itemData:I==null?void 0:I.compData,childItemData:I==null?void 0:I.itemChildData,onChange:c,index:(I==null?void 0:I.id)??U,config:{showIndex:I==null?void 0:I.showIndex,allowMove:I==null?void 0:I.allowMove,viewport:I==null?void 0:I.viewport},onContentChange:m,onPageChange:f,onRowClick:h,onRouteUrl:y,parentTableId:I==null?void 0:I.tableId,allMapContents:l.allMapContents,children:I==null?void 0:I.children,level:1,onClickTrigger:u,onClickMainKey:x},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),k4=Jl._export_sfc(b4,[["__scopeId","data-v-ded4e0d9"]]),x4={class:"type-select"},w4=["onClick"],_4={class:"list-icon"},S4={__name:"modelSelect",setup(l){const r=Qn(L.pinia),{itemData:n}=L.storeToRefs(r),o=s=>{const c=L.cloneDeep(n.value);c.push({comp:s.comp,name:s.name,compData:[]}),r.setItemData(c)};return(s,c)=>{const m=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",x4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(iu),(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:h},[a.createElementVNode("div",{class:"list-content",onClick:y=>o(f)},[a.createElementVNode("div",_4,[a.createVNode(m,{name:f.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(f.name),1)],8,w4)]))),128))])}}},E4=Jl._export_sfc(S4,[["__scopeId","data-v-91799bf8"]]),C4={class:"fill-content"},D4={class:"operate-content"},N4={class:"collapse-title-content"},B4={class:"collapse-title-item"},T4={key:1},A4=["onClick"],z4={class:"icon-content"},M4={key:0,class:"edit-content"},I4=["onClick"],O4={class:"comp-child"},L4={__name:"modelFill",setup(l){const r=Qn(L.pinia),{itemData:n,originalData:o}=L.storeToRefs(r),s=a.ref([]);a.ref([]);const c=a.ref([]),m=a.ref([]),f=R=>{var W;let E=(W=L.cloneDeep(m.value))==null?void 0:W.map((I,U)=>(R===U&&(I.content=!0),I));m.value=E},h=R=>{var W;let E=(W=L.cloneDeep(m.value))==null?void 0:W.map((I,U)=>(R===U&&(I.content=!1),I));m.value=E,s.value=L.cloneDeep(n.value)},y=(R,E)=>{var j;let W=(j=L.cloneDeep(m.value))==null?void 0:j.map((C,_)=>(R===_&&(C.content=!1),C));m.value=W;const I=L.cloneDeep(n.value),U=I==null?void 0:I.filter((C,_)=>(_===R&&(C.name=E),C));r.setOriginalData(U),r.setItemData(U)};a.watch(()=>n.value,()=>{var R,E,W;!n.value||((R=n.value)==null?void 0:R.length)===0?s.value=[]:s.value=(E=L.cloneDeep(n.value))==null?void 0:E.filter(I=>(I==null?void 0:I.comp)!=="methodButton"),c.value=s.value,m.value=(W=L.cloneDeep(c.value))==null?void 0:W.map((I,U)=>({id:U,content:!1}))},{deep:!0,immediate:!0});const u=R=>Ao(R),x=(R,E,W)=>{var U,j;if(!R)return;let I=L.cloneDeep(n.value);I=(U=I==null?void 0:I.map((C,_)=>(_===W&&(C.compData=R),C)))==null?void 0:U.filter(C=>(C==null?void 0:C.comp)!=="methodButton"),m.value=(j=L.cloneDeep(I))==null?void 0:j.map((C,_)=>({id:_,content:!1})),r.setOriginalData(I),r.setItemData(I)},D=R=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const E=L.cloneDeep(n.value),W=E==null?void 0:E.filter((I,U)=>U!==R);r.setOriginalData(W),r.setItemData(W),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(R,E)=>{const W=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",C4,[E[1]||(E[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",D4,[a.createVNode(Zs.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:I,index:U})=>{var j,C,_,S,k,g,z,$,G,de;return[a.createElementVNode("div",N4,[a.createElementVNode("div",B4,[(C=(j=m.value)==null?void 0:j.find(Me=>Me.id===U))!=null&&C.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:I.name&&I.name!==""?"8px":"0px"})},a.toDisplayString(I.name),5)),(S=(_=m.value)==null?void 0:_.find(Me=>Me.id===U))!=null&&S.content?(a.openBlock(),a.createElementBlock("div",T4,[a.createVNode(il.ssInput,{modelValue:I.name,"onUpdate:modelValue":Me=>I.name=Me,onClick:E[0]||(E[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(k=m.value)==null?void 0:k.find(Me=>Me.id===U))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(Me=>f(U),["stop"]),class:"icon-content"},[a.createVNode(W,{name:"Edit",style:{width:"16px",height:"16px"}})],8,A4))]),a.createElementVNode("div",z4,[($=(z=m.value)==null?void 0:z.find(Me=>Me.id===U))!=null&&$.content?(a.openBlock(),a.createElementBlock("div",M4,[a.createVNode(W,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Me=>h(U),["stop"])},null,8,["onClick"]),a.createVNode(W,{name:"Save",onClick:a.withModifiers(Me=>y(U,I.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(de=(G=m.value)==null?void 0:G.find(Me=>Me.id===U))!=null&&de.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(Me=>D(U),["stop"]),class:"icon-content"},[a.createVNode(W,{name:"Delete",style:{width:"16px",height:"16px"}})],8,I4))])])]}),content:a.withCtx(({item:I,index:U})=>{var j,C;return[a.createElementVNode("div",O4,[a.createTextVNode(a.toDisplayString(u(I.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(I.comp+"Operate")),{itemContents:I==null?void 0:I.compData,originalItemContents:(C=(j=c.value)==null?void 0:j.find((_,S)=>S===U))==null?void 0:C.compData,onChange:_=>x(_,I,U)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},$4=Jl._export_sfc(L4,[["__scopeId","data-v-a46a44b9"]]),R4={key:0,class:"show-content"},V4={style:{display:"flex"}},F4={__name:"modelShow",setup(l){const r=Qn(L.pinia),{itemData:n}=L.storeToRefs(r),o=a.ref([]);a.watch(()=>n.value,()=>{var c;!n.value||((c=n.value)==null?void 0:c.length)===0?o.value=[]:o.value=L.cloneDeep(n.value)},{deep:!0,immediate:!0});const s=c=>Ao(c);return(c,m)=>{var f;return((f=o.value)==null?void 0:f.length)>0?(a.openBlock(),a.createElementBlock("div",R4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(h,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",V4,a.toDisplayString(h.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(h.comp)),{itemData:h==null?void 0:h.compData,childItemData:h==null?void 0:h.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},P4=Jl._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(l,{emit:r}){const n=l,o=r,s=a.ref([]),c=a.ref(!1),m=a.ref(""),f=a.ref({title:""}),h=a.ref(-1),y=a.ref(!1),u=a.ref(-1),x=a.ref(new WeakMap),D=a.ref(null),R=Qn(L.pinia),{itemData:E}=L.storeToRefs(R),W=()=>{m.value="新增标签页",f.value.title="",h.value=-1,c.value=!0},I=be=>{m.value="修改标签页",f.value.title=s.value[be].title,h.value=be,c.value=!0},U=be=>{const A=_(be);x.value.delete(A),s.value.splice(be,1),Fe()},j=()=>{if(f.value.title.trim()){if(h.value===-1){const be={title:f.value.title,value:f.value.title,label:f.value.title,children:[],id:C()};s.value.push(be)}else s.value[h.value].title=f.value.title,s.value[h.value].value=f.value.title,s.value[h.value].label=f.value.title;c.value=!1,Fe()}},C=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,_=be=>{const A=s.value[be];return A.id||(A.id=C()),A.id},S=be=>{var re;u.value=be;const A=_(be);D.value=L.cloneDeep(E.value);let q=x.value.get(A);!q&&((re=s.value[be].children)==null?void 0:re.length)>0&&(q=$(s.value[be].children)),q?R.setItemData(L.cloneDeep(q)):R.setItemData([]),y.value=!0},k=a.computed(()=>{const be=L.useModelComp(L.pinia),A=L.storeToRefs(be).itemData.value;return console.log("可用组件数据",A),!A||!Array.isArray(A)?[]:A.filter(q=>{var re;if(q.comp==="Tabs"&&u.value>=0){const Te=_(u.value);if((re=q.compData)==null?void 0:re.some(Ye=>{var da;return Ye.key==="stepList"&&((da=Ye.contents)==null?void 0:da.some(Ma=>Ma.id===Te))}))return!1}return!0})}),g=be=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[be]||be,z=be=>{var A;try{const q=L.cloneDeep(be);q.id=Date.now()+Math.random(),q.comp==="Tabs"&&((A=q.compData)==null||A.forEach(Te=>{Te.key==="stepList"&&Te.contents&&Te.contents.forEach(xe=>{xe.id=C()})}));const re=L.cloneDeep(E.value);re.push(q),R.setItemData(re)}catch(q){console.error("添加组件失败:",q)}},$=be=>be.map(A=>{var q;switch(A.type){case"form":return{comp:"Form",name:A.value||"表单",compData:G(A.content)};case"table":return{comp:"Table",name:A.value||"表格",compData:de(A.content)};default:return{comp:"Unknown",name:A.value||"",compData:((q=A.content)==null?void 0:q.originalData)||[]}}}),G=be=>{if(!be)return[];const A=[];return be.rowContents&&A.push({key:"formContent",contents:be.rowContents}),be.buttonValue&&A.push({key:"formButton",contents:be.buttonValue}),typeof be.isEnableWrap<"u"&&A.push({key:"enableWrap",contents:be.isEnableWrap}),A},de=be=>[],Me=()=>{if(u.value>=0&&u.value<s.value.length){const be=_(u.value);x.value.set(be,L.cloneDeep(E.value)),s.value[u.value].children=fe(E.value),console.log("保存后的数据",fe(E.value))}y.value=!1,u.value=-1,D.value=null,Fe()},pe=()=>{D.value&&R.setItemData(L.cloneDeep(D.value)),y.value=!1,u.value=-1,D.value=null},Z=()=>{y.value&&pe()},fe=be=>{if(!Array.isArray(be))throw new Error("sourceData must be an array");return be.map((A,q)=>{if(!A||typeof A!="object")return A;const{comp:re,name:Te,compData:xe}=A;switch(re){case"Form":return{type:"form",content:le(xe||[]),value:"表单"};case"Table":return{type:"table",content:ue(xe||[]),value:"表格"};default:return{type:"xxx",content:Ne(xe||[]),value:""}}})},le=be=>{const A={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},q={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return be.forEach((re,Te)=>{if(!re||typeof re!="object"){console.warn(`Invalid config at index ${Te}:`,re);return}const{key:xe,contents:Ye}=re,da=q[xe];if(!da){console.warn(`Unknown Form config key: ${xe}`);return}xe==="enableWrap"?A[da]=!!Ye:A[da]=Array.isArray(Ye)?Ye:[]}),A},ue=be=>{const A={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},q={header:"columns",tableContents:"tableData"};return be.forEach((re,Te)=>{if(!re||typeof re!="object"){console.warn(`Invalid config at index ${Te}:`,re);return}const{key:xe,contents:Ye}=re,da=q[xe];if(!da){console.warn(`Unknown Table config key: ${xe}`);return}A[da]=Array.isArray(Ye)?Ye:[]}),A},Ne=be=>(console.log("Default conversion logic - to be implemented"),{originalData:be,processed:!1,componentType:"unknown"}),Fe=()=>{const be=[{key:"stepList",contents:s.value}];o("change",be)};return a.watch(()=>n.itemContents,be=>{if(be&&be.length>0){const A=be.find(q=>q.key==="stepList");A&&A.contents&&(s.value=A.contents.map(q=>({title:q.title||"",value:q.value||q.title||"",label:q.label||q.title||"",children:q.children||[],id:q.id||C()})))}},{immediate:!0,deep:!0}),(be,A)=>{const q=a.resolveComponent("svg-icon"),re=a.resolveComponent("el-input"),Te=a.resolveComponent("el-form-item"),xe=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",j4,[A[6]||(A[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:W},[a.createVNode(q,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),A[5]||(A[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",H4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(Ye,da)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:da},[a.createElementVNode("span",U4,a.toDisplayString(Ye.title),1),a.createElementVNode("div",q4,[a.createElementVNode("button",{onClick:Ma=>I(da)},"修改标题",8,W4),a.createElementVNode("button",{onClick:Ma=>S(da)},"布局调整",8,K4),a.createElementVNode("button",{onClick:Ma=>U(da)},"删除",8,G4)])]))),128))]),a.createVNode(wr.ssDialog,{modelValue:c.value,"onUpdate:modelValue":A[2]||(A[2]=Ye=>c.value=Ye),title:m.value,onBeforeDestroy:A[3]||(A[3]=Ye=>c.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:A[1]||(A[1]=Ye=>c.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:j},"确定")]),default:a.withCtx(()=>[a.createVNode(xe,{model:f.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(Te,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(re,{modelValue:f.value.title,"onUpdate:modelValue":A[0]||(A[0]=Ye=>f.value.title=Ye),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(wr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":A[4]||(A[4]=Ye=>y.value=Ye),title:"布局调整",fullScreen:"",onBeforeDestroy:Z},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:pe},"取消"),a.createElementVNode("button",{onClick:Me},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",Y4,[a.createElementVNode("div",J4,[a.createVNode(E4),a.createElementVNode("div",X4,[A[8]||(A[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",Z4,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,Ye=>(a.openBlock(),a.createElementBlock("div",{key:Ye.id,class:"component-item",onClick:da=>z(Ye)},[a.createElementVNode("div",e6,[a.createElementVNode("span",a6,a.toDisplayString(g(Ye.comp)),1),a.createElementVNode("span",l6,a.toDisplayString(Ye.name),1)]),A[7]||(A[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Q4))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:be.innerWidth},[a.createVNode(P4)])),a.createElementVNode("div",r6,[a.createVNode($4)])])]),_:1},8,["modelValue"])])}}},o6=Jl._export_sfc(n6,[["__scopeId","data-v-9096ed0d"]]);function i6(){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(l){return{type:"line",...l}}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:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function c6(l){return{type:"bar",barWidth:"60%",...l}}function u6(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function d6(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const jn={line:{initBaseoptions:i6,initSeries:t6},bar:{initBaseoptions:s6,initSeries:c6},pie:{initBaseoptions:u6,initSeries:d6}},Ss=L.useMenuState(L.pinia),Vc=(l,r)=>{var u;const n=[],o=[],{group:s,nameCol:c,valueCol:m}=r||{},f=l==null?void 0:l.find(x=>{const{name:D}=x;return D===s});if(!f)return{names:n,values:o};const h=(u=f==null?void 0:f.compData)==null?void 0:u.find(x=>{const{key:D}=x;return D==="tableContents"});return((h==null?void 0:h.contents)||[]).forEach(x=>{const D=x==null?void 0:x[0];let R=!1;Ga.isObject(D)&&(D!=null&&D.id)&&(R=!0);let E=c,W=m;R&&(E=E+1,W=W+1);const I=x==null?void 0:x[E],U=x==null?void 0:x[W];n.push(I),o.push(U)}),{names:n,values:o}},p6=async l=>{const{menu:r,mainKey:n,detailGroup:o,detailNameCol:s,detailValueCol:c,isSelfDetail:m}=l||{};let f=null;const h=sessionStorage.getItem("systemKey");if(m&&Ss.activeMenuPath&&(f=await oa.getItemData(`${Ss.activeMenuPath}`,h,"")),!m){const y=r==null?void 0:r.join("/");f=await oa.getItemData(`${y}^${n}`,h,"")}return Vc(f,{group:o,nameCol:s,valueCol:c})},f6=async l=>{const{menu:r,group:n,nameCol:o,valueCol:s}=l||{},c=r==null?void 0:r.join("/"),m=sessionStorage.getItem("systemKey"),f=await oa.getItemData(c,m,"");return Vc(f,{group:n,nameCol:o,valueCol:s})},At=async(l,r)=>{const n={names:[],values:[]},{menu:o,group:s,nameCol:c,valueCol:m}=l||{};if(!o.length||!s)return n;const{mainKey:f,group:h,nameCol:y,valueCol:u,isSelfDetail:x}=r||{};return f&&h&&il.isNumber(y)&&il.isNumber(u)?await p6({menu:o,mainKey:f,detailGroup:h,detailNameCol:y,detailValueCol:u,isSelfDetail:x}):il.isNumber(c)&&il.isNumber(m)?await f6({menu:o,group:s,nameCol:c,valueCol:m}):n},h6=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:o,title:s}=l||{},c=jn==null?void 0:jn[o];if(!c)return;const{initBaseoptions:m,initSeries:f}=c,h=m();h.title.text=s??"";const{names:y,values:u}=await At(r,n);if(!y||!u)return h;h.xAxis.data=y;const x=f({data:u});return h.series.push(x),h},v6=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:o,title:s}=l||{},c=jn==null?void 0:jn[o];if(!c)return;const{initBaseoptions:m,initSeries:f}=c,h=m();h.title.text=s??"";const{names:y,values:u}=await At(r,n);if(!y||!u)return h;h.xAxis.data=y;const x=f({data:u});return h.series.push(x),h},m6=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:o,title:s}=l||{},c=jn==null?void 0:jn[o];if(!c)return;const{initBaseoptions:m,initSeries:f}=c,h=m();h.title.text=s??"";const{names:y,values:u}=await At(r,n);if(!y||!u)return h;const x=[];for(let R=0;R<y.length;R++){const E=y[R],W=u[R];x.push({name:E,value:W})}const D=f({data:x});return h.series.push(D),h},y6=async(l=[])=>{var m,f,h;const r=((m=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:m.contents)??{},n=((f=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:f.contents)??{},o=((h=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:h.contents)??{},{type:s}=r;let c={};return s==="line"&&(c=await h6({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:o})),s==="bar"&&(c=await v6({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:o})),s==="pie"&&(c=await m6({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:o})),c},g6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const r=l,n=a.ref({});a.onMounted(async()=>{const s=r==null?void 0:r.itemData;n.value=await y6(s)});const o=a.computed(()=>(r==null?void 0:r.height)||"300px");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:o.value})},[a.createVNode(Iu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),b6=Jl._export_sfc(g6,[["__scopeId","data-v-d4c081e8"]]),k6={class:"chart-module layout"},x6={class:"chart-module content"},w6={class:"chart-module content"},_6={class:"form-content"},S6={class:"dialog-footer"},E6={class:"form-content"},C6={class:"dialog-footer"},D6={class:"form-content"},N6={class:"dialog-footer"},B6=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,o=r,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),c=a.ref([]),m=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],f=a.ref({}),h=()=>{var Ve;c.value=m(),(Ve=c.value)==null||Ve.forEach(se=>{var Ue;const $e=se==null?void 0:se.prop;se.value=(Ue=f==null?void 0:f.value)==null?void 0:Ue[$e]}),s.visible=!0},y=Ve=>{f.value=Ve},u=()=>{var Ve;s.visible=!1,o("change",(Ve=Ie())==null?void 0:Ve.compData)},x=a.reactive({visible:!1,width:"840",title:"数据配置"}),D=a.ref([]),R=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],E=a.ref({}),W=()=>{const Ve=D.value,se=L.cloneDeep(Ve);return se==null||se.forEach($e=>{var Na;const Ue=$e==null?void 0:$e.prop;$e.value=(Na=E.value)==null?void 0:Na[Ue]}),se},I=Ve=>{var $e;E.value=Ve;const se=W();D.value=se,o("change",($e=Ie())==null?void 0:$e.compData)},U=async()=>{const Ve=await oa.getMenusContent(),se=W();se==null||se.forEach($e=>{($e==null?void 0:$e.prop)==="menu"&&($e.contents=Ve)}),D.value=se,x.visible=!0,await Ye(E.value.menu),await ne(E.value.group)},j=a.reactive({visible:!1,width:"840",title:"详情页配置"}),C=a.ref([]),_=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],S=a.ref({}),k=()=>{const Ve=C.value,se=L.cloneDeep(Ve);return se==null||se.forEach($e=>{var Na;const Ue=$e==null?void 0:$e.prop;$e.value=(Na=S.value)==null?void 0:Na[Ue]}),se},g=Ve=>{var $e;S.value=Ve;const se=k();C.value=se,o("change",($e=Ie())==null?void 0:$e.compData)},z=async()=>{await Z();const Ve=L.cloneDeep($.value),se=k();se==null||se.forEach($e=>{var Na;const Ue=$e==null?void 0:$e.prop;$e.value=(Na=S==null?void 0:S.value)==null?void 0:Na[Ue],Ue==="mainKey"&&($e.contents=Ve)}),C.value=se,j.visible=!0},$=a.ref([]),G=a.ref([]),de=a.ref({}),Me=a.ref({}),pe=()=>{const{compData:Ve}=re.value||{},se=Ve==null?void 0:Ve.find(ae=>{const{key:he}=ae;return he==="header"}),$e=(se==null?void 0:se.contents)||[],Ue=$e==null?void 0:$e.filter((ae,he)=>{const{label:me}=ae;return me!=="操作"}),Na=Ue==null?void 0:Ue.findIndex((ae,he)=>{const{isMainKey:me}=ae;return me});if(Na<0)return[];const La=Ve==null?void 0:Ve.find(ae=>{const{key:he}=ae;return he==="tableContents"}),V=(La==null?void 0:La.contents)||[];return V==null?void 0:V.map(ae=>{const he=ae==null?void 0:ae[0];let me=Na;Ga.isObject(he)&&(he!=null&&he.id)&&(me=me+1);const fa=ae==null?void 0:ae[me];return{label:fa,value:fa}})},Z=async()=>{const Ve=await pe();$.value=Ve},fe=async Ve=>{const se=sessionStorage.getItem("systemKey");return await oa.getItemData(Ve,se,"")},le=async Ve=>{const se=Ve;G.value=se==null?void 0:se.map($e=>{const{name:Ue}=$e;return de.value[Ue]=$e,{label:Ue,value:Ue}})},ue=Ve=>{const{comp:se,compData:$e}=Me.value||{};if(se==="Table"){let Ue=k();Ue=Ue.filter(Na=>{const{prop:La}=Na;return La!=="formItems"}),da(Ue,$e),C.value=Ue}},Ne=async()=>{var $e,Ue;const Ve=($e=S==null?void 0:S.value)==null?void 0:$e.mainKey,se=(Ue=E==null?void 0:E.value)==null?void 0:Ue.menu;if(Ve){const La=`${se==null?void 0:se.join("/")}^${Ve}`,V=await fe(La);await le(V);const P=k();P==null||P.forEach(ae=>{(ae==null?void 0:ae.prop)==="group"&&(ae.contents=G.value)}),C.value=P}};a.watch(()=>{var Ve;return(Ve=S==null?void 0:S.value)==null?void 0:Ve.mainKey},async(Ve,se)=>{Ve!=se&&Ve&&await Ne()});const Fe=async Ve=>{const se=de.value[Ve];Me.value=se,await ue()};a.watch(()=>{var Ve;return(Ve=S==null?void 0:S.value)==null?void 0:Ve.group},async(Ve,se)=>{Ve!=se&&Ve&&Fe(Ve)});const be=async()=>{var se;await Ne();const Ve=(se=S.value)==null?void 0:se.group;await Fe(Ve)},A=a.ref([]),q=a.ref({}),re=a.ref({}),Te=async Ve=>{const se=Ve==null?void 0:Ve.join("/"),$e=sessionStorage.getItem("systemKey");return await oa.getItemData(se,$e,"")},xe=async Ve=>{const se=await Te(Ve);A.value=se==null?void 0:se.map($e=>{const{name:Ue}=$e;return q.value[Ue]=$e,{label:Ue,value:Ue}})},Ye=async(Ve,se)=>{await xe(Ve);const $e=W();$e==null||$e.forEach(Ue=>{(Ue==null?void 0:Ue.prop)==="group"&&(Ue.contents=A.value)}),D.value=$e};a.watch(()=>{var Ve;return(Ve=E==null?void 0:E.value)==null?void 0:Ve.menu},async(Ve,se)=>{const $e=Ve==null?void 0:Ve.join("/"),Ue=se==null?void 0:se.join("/");$e!=Ue&&await Ye(Ve)});const da=(Ve,se)=>{const $e=se==null?void 0:se.find(V=>{const{key:P}=V;return P==="header"}),Ue=($e==null?void 0:$e.contents)||[],Na=Ue==null?void 0:Ue.filter((V,P)=>{const{label:ae}=V;return ae!=="操作"}),La=Na==null?void 0:Na.map((V,P)=>{const{label:ae}=V;return{label:ae,value:P}});Ve==null||Ve.forEach(V=>{const P=V==null?void 0:V.prop;(P==="nameCol"||P==="valueCol")&&(V.contents=La)})},Ma=Ve=>{const{comp:se,compData:$e}=re.value||{};if(se==="Table"){E.value.formItems=[];let Ue=W();Ue=Ue.filter(Na=>{const{prop:La}=Na;return La!=="formItems"}),da(Ue,$e),D.value=Ue}},ne=async Ve=>{const se=q.value[Ve];re.value=se,await Ma()};a.watch(()=>{var Ve;return(Ve=E==null?void 0:E.value)==null?void 0:Ve.group},async(Ve,se)=>{Ve!=se&&ne(Ve)});const Ae=async()=>{var $e,Ue;const Ve=($e=E.value)==null?void 0:$e.menu;await Ye(Ve);const se=(Ue=E.value)==null?void 0:Ue.group;await ne(se)},Ie=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:f.value},{key:"chartDataConfig",contents:E.value},{key:"chartDetailConfig",contents:S.value}]}),qe=()=>{s.visible=!1,x.visible=!1,j.visible=!1};return a.onMounted(async()=>{var se,$e,Ue;D.value=R(),C.value=_();const Ve=n==null?void 0:n.itemContents;f.value=((se=Ve==null?void 0:Ve.find(Na=>Na.key==="chartBaseConfig"))==null?void 0:se.contents)??{},E.value=(($e=Ve==null?void 0:Ve.find(Na=>Na.key==="chartDataConfig"))==null?void 0:$e.contents)??{},await Ae(),S.value=((Ue=Ve==null?void 0:Ve.find(Na=>Na.key==="chartDetailConfig"))==null?void 0:Ue.contents)??{},await be()}),(Ve,se)=>{const $e=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",k6,[se[4]||(se[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode($e,{id:"themeButton",onClick:se[0]||(se[0]=Ue=>h())},{default:a.withCtx(()=>se[3]||(se[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",x6,[se[6]||(se[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:se[1]||(se[1]=Ue=>U())},{default:a.withCtx(()=>se[5]||(se[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",w6,[se[8]||(se[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:se[2]||(se[2]=Ue=>z())},{default:a.withCtx(()=>se[7]||(se[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(wr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:qe,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",_6,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",S6,[a.createVNode($e,{class:"cancel-button button",onClick:qe,id:"themeBorderButton"},{default:a.withCtx(()=>se[9]||(se[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode($e,{class:"ok-button button",onClick:u,id:"themeButton"},{default:a.withCtx(()=>se[10]||(se[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(wr.ssDialog,{visible:x.visible,title:x.title,onBeforeDestroy:qe,width:x.width},{default:a.withCtx(()=>[a.createElementVNode("div",E6,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:I},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",C6,[a.createVNode($e,{class:"cancel-button button",onClick:qe,id:"themeBorderButton"},{default:a.withCtx(()=>se[11]||(se[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode($e,{class:"ok-button button",onClick:qe,id:"themeButton"},{default:a.withCtx(()=>se[12]||(se[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(wr.ssDialog,{visible:j.visible,title:j.title,onBeforeDestroy:qe,width:j.width},{default:a.withCtx(()=>[a.createElementVNode("div",D6,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",N6,[a.createVNode($e,{class:"cancel-button button",onClick:qe,id:"themeBorderButton"},{default:a.withCtx(()=>se[13]||(se[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode($e,{class:"ok-button button",onClick:qe,id:"themeButton"},{default:a.withCtx(()=>se[14]||(se[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),T6=Jl._export_sfc(B6,[["__scopeId","data-v-fe119645"]]),A6={class:"layout"},z6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:r}){const n=r,o=l;a.onMounted(async()=>{});const s=a.computed(()=>L.cloneDeep(o==null?void 0:o.itemData)||[]),c=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(x=>{const{key:D}=x;return D==="baseConfig"});return y==null?void 0:y.contents}),m=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(x=>{const{key:D}=x;return D==="children"});return y==null?void 0:y.contents}),f=a.computed(()=>{let y=L.cloneDeep(m.value)||[];const u=y.length;let x=0;const D=[];if(y=y.map(R=>{const E=R.span;return E?(R.span=Number(E),x=x+R.span):D.push(R),R}),x<24){const R=Math.floor((24-x)/u);D.forEach(E=>{E.span=R})}return y}),h=y=>{n("rowClick",y)};return(y,u)=>{var R;const x=a.resolveComponent("el-col"),D=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",A6,[a.createVNode(D,{style:a.normalizeStyle({height:(R=c.value)==null?void 0:R.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,(E,W)=>(a.openBlock(),a.createBlock(x,{span:E==null?void 0:E.span},{default:a.withCtx(()=>{var I;return[a.unref(To)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Go)(E.comp)),{key:a.unref(Zn),compName:E.name,index:(E==null?void 0:E.id)??W,height:(I=c.value)==null?void 0:I.height,itemData:E==null?void 0:E.compData,childItemData:E==null?void 0:E.itemChildData,onChange:a.unref(zi),onContentChange:a.unref(Mi),onPageChange:a.unref(Ii),onRowClick:h},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),M6=Jl._export_sfc(z6,[["__scopeId","data-v-ab9a36ed"]]),I6={class:"layout-operate"},O6={class:"layout-module"},L6={class:"collapse-title-item"},$6={class:"collapse-title"},R6={class:"icon-content"},V6=["onClick"],F6={class:"comp-child"},P6=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,o=r;a.onMounted(()=>{W()});const s=a.ref({}),c=a.ref({}),m=a.ref([]),f=S=>[{label:"高度",prop:"height",type:"input",value:S==null?void 0:S.height}],h=S=>{c.value=S,o("change",_(),!0)},y=a.ref([]),u=a.ref([]),x=S=>[{label:"占比",prop:"span",type:"input",value:S==null?void 0:S.span}],D=a.computed(()=>{const S=n==null?void 0:n.itemContents;return L.cloneDeep(S)}),R=a.computed(()=>{const S=D==null?void 0:D.value,k=S==null?void 0:S.find(g=>{const{key:z}=g;return z==="baseConfig"});return k==null?void 0:k.contents}),E=a.computed(()=>{const S=D==null?void 0:D.value,k=S==null?void 0:S.find(g=>{const{key:z}=g;return z==="children"});return k==null?void 0:k.contents}),W=()=>{var S;s.value=D.value||{},y.value=(E==null?void 0:E.value)||[],m.value=f(),m.value=(S=m.value)==null?void 0:S.map(k=>{var z;const{prop:g}=k;return k.value=(z=R.value)==null?void 0:z[g],k})};a.watch(()=>{var S;return(S=E==null?void 0:E.value)==null?void 0:S.length},()=>{var S;y.value=(E==null?void 0:E.value)||[],u.value=(S=E.value)==null?void 0:S.map(k=>x(k))},{immediate:!0});const I=(S,k)=>{const g=L.cloneDeep(E==null?void 0:E.value);g[k].span=S.span,y.value=g,o("change",_(),!0)},U=S=>Ao(S),j=(S,k,g)=>{if(!S)return;const z=L.cloneDeep(E==null?void 0:E.value);z[g]&&(z[g].compData=S,y.value=z,o("change",_(),!0))},C=S=>{dn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let k=L.cloneDeep(E==null?void 0:E.value);k=k==null?void 0:k.filter((g,z)=>S!==z),y.value=k,o("change",_(),!0),Ga.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=()=>({compData:[{key:"baseConfig",contents:c.value},{key:"children",contents:y==null?void 0:y.value}]});return(S,k)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",I6,[a.createElementVNode("div",O6,[k[1]||(k[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(il.ssForm,{rowContents:m.value,isEnableWrap:!0,onChange:k[0]||(k[0]=z=>h(z))},null,8,["rowContents"])])]),a.createVNode(Zs.default,{class:"collapse-content",collapseContents:E.value},{title:a.withCtx(({item:z,index:$})=>[a.createElementVNode("div",L6,[a.createElementVNode("div",$6,a.toDisplayString(z.name),1),a.createElementVNode("div",R6,[a.createElementVNode("div",{onClick:a.withModifiers(G=>C($),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,V6)])])]),content:a.withCtx(({item:z,index:$})=>[a.createElementVNode("div",F6,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(il.ssForm,{rowContents:u.value[$],key:$,isEnableWrap:!0,onChange:G=>I(G,$)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(U(z.comp+"Operate")),{itemContents:z==null?void 0:z.compData,originalItemContents:z.compData,onChange:G=>j(G,z,$)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),j6=Jl._export_sfc(P6,[["__scopeId","data-v-ba05456e"]]),H6=typeof window<"u";var Es;H6&&((Es=window==null?void 0:window.navigator)!=null&&Es.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function un(l){return l==null}function Fc(){}const U6=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(U6)));function q6(){const l=new Map;return{on(r,n){const o=l.get(r);o!=null&&o.add(n)||l.set(r,new Set([n]))},off(r,n){const o=l.get(r);o&&o.delete(n)},clear(r){const n=l.get(r);n&&n.clear()},clearAll(){l.clear()},emit(r,...n){const o=l.get(r);o&&o.forEach(s=>{s(...n)})}}}function Cs(l,r=16){if(typeof l!="function")return Fc;const n=(...c)=>{l(...c)};if(r<=0)return Pc(n);let o=0,s;return function(...c){const m=Date.now(),f=m-o;clearTimeout(s),f>=r?(o=m,n(...c)):s=setTimeout(()=>{o=Date.now(),n(...c)},Math.max(0,r-f))}}function W6(l,r=100){if(typeof l!="function")return Fc;const n=(...s)=>{l(...s)};if(r<=0)return Pc(n);let o;return function(...s){clearTimeout(o),o=setTimeout(()=>{n(...s)},r)}}function Pc(l){if(typeof l!="function")return l;let r=!1,n,o;return function(...s){return n=s,r||(r=!0,o=Promise.resolve().then(()=>(r=!1,o=void 0,l(...n)))),o}}const Uo=new Set,jc=new WeakMap;function K6(){Uo.forEach(l=>{l(...jc.get(l))}),Uo.clear()}function Xr(l,...r){if(typeof l!="function")return l;jc.set(l,r),!Uo.has(l)&&(Uo.add(l),Uo.size===1&&Promise.resolve().then(K6))}const Hc=Symbol("LAYOUT_KEY"),Uc=Symbol("EMITTER_KEY");function G6(l){let r=0,n;for(let o=0,s=l.length;o<s;o++)n=l[o].y+l[o].h,n>r&&(r=n);return r}function Et(l){const r=Array(l.length);for(let n=0,o=l.length;n<o;n++)r[n]=Y6(l[n]);return r}function Y6(l){return{...l}}function qc(l,r){return!(l===r||l.x+l.w<=r.x||l.x>=r.x+r.w||l.y+l.h<=r.y||l.y>=r.y+r.h)}function Eo(l,r,n){const o=Kc(l),s=Gc(l),c=Array(l.length);for(let m=0,f=s.length;m<f;m++){let h=s[m];h.static||(h=J6(o,h,r,n),o.push(h)),c[l.findIndex(y=>y.i===h.i)]=h,h.moved=!1}return c}function J6(l,r,n,o){if(n)for(;r.y>0&&!qo(l,r);)r.y--;else if(o){const c=o[r.i].y;for(;r.y>c&&!qo(l,r);)r.y--}let s;for(;s=qo(l,r);)r.y=s.y+s.h;return r}function X6(l,r){const n=Kc(l);for(let o=0,s=l.length;o<s;o++){const c=l[o];if(c.x+c.w>r.cols&&(c.x=r.cols-c.w),c.x<0&&(c.x=0,c.w=r.cols),!c.static)n.push(c);else for(;qo(n,c);)c.y++}return l}function Ds(l,r){for(let n=0,o=l.length;n<o;n++)if(l[n].i===r)return l[n]}function qo(l,r){for(let n=0,o=l.length;n<o;n++)if(qc(l[n],r))return l[n]}function Wc(l,r){return l.filter(n=>qc(n,r))}function Kc(l){return l.filter(r=>r.static)}function Ct(l,r,n,o,s=!1,c=!1){if(r.static)return l;const m=r.x,f=r.y,h=o&&r.y>o;typeof n=="number"&&(r.x=n),typeof o=="number"&&(r.y=o),r.moved=!0;let y=Gc(l);h&&(y=y.reverse());const u=Wc(y,r);if(c&&u.length)return r.x=m,r.y=f,r.moved=!1,l;for(let x=0,D=u.length;x<D;x++){const R=u[x];R.moved||r.y>R.y&&r.y-R.y>R.h/4||(R.static?l=Ns(l,R,r,s):l=Ns(l,r,R,s))}return l}function Ns(l,r,n,o){if(o){const s={x:n.x,y:n.y,w:n.w,h:n.h};if(s.y=Math.max(r.y-n.h,0),!qo(l,s))return Ct(l,n,void 0,s.y,!1)}return Ct(l,n,void 0,n.y+1,!1)}function Z6(l,r,n,o){const s="translate3d("+r+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:o+"px",position:"absolute"}}function Q6(l,r,n,o){const s="translate3d("+r*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:o+"px",position:"absolute"}}function e1(l,r,n,o){return{top:l+"px",left:r+"px",width:n+"px",height:o+"px",position:"absolute"}}function a1(l,r,n,o){return{top:l+"px",right:r+"px",width:n+"px",height:o+"px",position:"absolute"}}function Gc(l){return Array.from(l).sort(function(r,n){return r.y===n.y&&r.x===n.x?0:r.y>n.y||r.y===n.y&&r.x>n.x?1:-1})}function l1(l,r){r=r||"Layout";const n=["x","y","w","h"],o=[];if(!Array.isArray(l))throw new Error(r+" must be an array!");for(let s=0,c=l.length;s<c;s++){const m=l[s];for(let f=0;f<n.length;f++)if(typeof m[n[f]]!="number")throw new Error("VueGridLayout: "+r+"["+s+"]."+n[f]+" must be a number!");if(m.i===void 0||m.i===null)throw new Error("VueGridLayout: "+r+"["+s+"].i cannot be null!");if(typeof m.i!="number"&&typeof m.i!="string")throw new Error("VueGridLayout: "+r+"["+s+"].i must be a string or number!");if(o.indexOf(m.i)>=0)throw new Error("VueGridLayout: "+r+"["+s+"].i must be unique!");if(o.push(m.i),m.static!==void 0&&typeof m.static!="boolean")throw new Error("VueGridLayout: "+r+"["+s+"].static must be a boolean!")}}function r1(l,r="vgl"){const n=()=>`${r}-${l}`;return{b:n,be:o=>`${n()}__${o}`,bm:o=>`${n()}--${o}`,bem:(o,s)=>`${n()}__${o}--${s}`}}function Bs(l){return n1(l)}function n1(l){var r;const n=((r=l.target)==null?void 0:r.offsetParent)||document.body,o=l.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),s=l.clientX+n.scrollLeft-o.left,c=l.clientY+n.scrollTop-o.top;return{x:s,y:c}}function Ts(l,r,n,o){return o1(l)?{deltaX:n-l,deltaY:o-r,lastX:l,lastY:r,x:n,y:o}:{deltaX:0,deltaY:0,lastX:n,lastY:o,x:n,y:o}}function o1(l){return typeof l=="number"&&!Number.isNaN(l)}function i1(l,r){const n=Jc(l);let o=n[0];for(let s=1,c=n.length;s<c;s++){const m=n[s];r>l[m]&&(o=m)}return o}function Yc(l,r){if(!r[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return r[l]}function s1(l,r,n,o,s,c,m){if(r[o])return Et(r[o]);let f=l;const h=Jc(n),y=h.slice(h.indexOf(o));for(let u=0,x=y.length;u<x;u++){const D=y[u];if(r[D]){f=r[D];break}}return f=Et(f||[]),Eo(X6(f,{cols:c}),m)}function Jc(l){return Object.keys(l).sort((r,n)=>l[r]-l[n])}let c1="auto";function u1(){return typeof document<"u"}function As(){return u1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):c1}var Po={exports:{}},d1=Po.exports,zs;function p1(){return zs||(zs=1,function(l,r){(function(n,o){l.exports=o()})(d1,function(){function n(t,i){var p=Object.keys(t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(t);i&&(b=b.filter(function(w){return Object.getOwnPropertyDescriptor(t,w).enumerable})),p.push.apply(p,b)}return p}function o(t){for(var i=1;i<arguments.length;i++){var p=arguments[i]!=null?arguments[i]:{};i%2?n(Object(p),!0).forEach(function(b){h(t,b,p[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(p)):n(Object(p)).forEach(function(b){Object.defineProperty(t,b,Object.getOwnPropertyDescriptor(p,b))})}return t}function s(t){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s(t)}function c(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function m(t,i){for(var p=0;p<i.length;p++){var b=i[p];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(t,W(b.key),b)}}function f(t,i,p){return i&&m(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,i,p){return(i=W(i))in t?Object.defineProperty(t,i,{value:p,enumerable:!0,configurable:!0,writable:!0}):t[i]=p,t}function y(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&x(t,i)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},u(t)}function x(t,i){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,b){return p.__proto__=b,p},x(t,i)}function D(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function R(t){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,b=u(t);if(i){var w=u(this).constructor;p=Reflect.construct(b,arguments,w)}else p=b.apply(this,arguments);return function(O,Y){if(Y&&(typeof Y=="object"||typeof Y=="function"))return Y;if(Y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(O)}(this,p)}}function E(){return E=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,i,p){var b=function(O,Y){for(;!Object.prototype.hasOwnProperty.call(O,Y)&&(O=u(O))!==null;);return O}(t,i);if(b){var w=Object.getOwnPropertyDescriptor(b,i);return w.get?w.get.call(arguments.length<3?t:p):w.value}},E.apply(this,arguments)}function W(t){var i=function(p,b){if(typeof p!="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var O=w.call(p,b);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(t,"string");return typeof i=="symbol"?i:i+""}var I=function(t){return!(!t||!t.Window)&&t instanceof t.Window},U=void 0,j=void 0;function C(t){U=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(i)===i&&(t=t.wrap(t)),j=t}function _(t){return I(t)?t:(t.ownerDocument||t).defaultView||j.window}typeof window<"u"&&window&&C(window);var S=function(t){return!!t&&s(t)==="object"},k=function(t){return typeof t=="function"},g={window:function(t){return t===j||I(t)},docFrag:function(t){return S(t)&&t.nodeType===11},object:S,func:k,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||s(t)!=="object")return!1;var i=_(t)||j;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?t instanceof Element||t instanceof i.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return S(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return S(t)&&t.length!==void 0&&k(t.splice)}};function z(t){var i=t.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 $(t){var i=t.iEvent,p=t.interaction;if(p.prepared.name==="drag"){var b=p.prepared.axis;if(b==="x"||b==="y"){var w=b==="x"?"y":"x";i.page[w]=p.coords.start.page[w],i.client[w]=p.coords.start.client[w],i.delta[w]=0}}}var G={id:"actions/drag",install:function(t){var i=t.actions,p=t.Interactable,b=t.defaults;p.prototype.draggable=G.draggable,i.map.drag=G,i.methodDict.drag="draggable",b.actions.drag=G.defaults},listeners:{"interactions:before-action-move":z,"interactions:action-resume":z,"interactions:action-move":$,"auto-start:check":function(t){var i=t.interaction,p=t.interactable,b=t.buttons,w=p.options.drag;if(w&&w.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(b&p.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:w.lockAxis==="start"?w.startAxis:w.lockAxis},!1}},draggable:function(t){return g.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):g.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:z,move:$,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},de=G,Me={init:function(t){var i=t;Me.document=i.document,Me.DocumentFragment=i.DocumentFragment||pe,Me.SVGElement=i.SVGElement||pe,Me.SVGSVGElement=i.SVGSVGElement||pe,Me.SVGElementInstance=i.SVGElementInstance||pe,Me.Element=i.Element||pe,Me.HTMLElement=i.HTMLElement||Me.Element,Me.Event=i.Event,Me.Touch=i.Touch||pe,Me.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 pe(){}var Z=Me,fe={init:function(t){var i=Z.Element,p=t.navigator||{};fe.supportsTouch="ontouchstart"in t||g.func(t.DocumentTouch)&&Z.document instanceof t.DocumentTouch,fe.supportsPointerEvent=p.pointerEnabled!==!1&&!!Z.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?Z.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,fe.wheelEvent=Z.document&&"onmousewheel"in Z.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},le=fe;function ue(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function Ne(t,i){for(;g.element(t);){if(be(t,i))return t;t=Fe(t)}return null}function Fe(t){var i=t.parentNode;if(g.docFrag(i)){for(;(i=i.host)&&g.docFrag(i););return i}return i}function be(t,i){return j!==U&&(i=i.replace(/\/deep\//g," ")),t[le.prefixedMatchesSelector](i)}var A=function(t){return t.parentNode||t.host};function q(t,i){for(var p,b=[],w=t;(p=A(w))&&w!==i&&p!==w.ownerDocument;)b.unshift(w),w=p;return b}function re(t,i,p){for(;g.element(t);){if(be(t,i))return!0;if((t=Fe(t))===p)return be(t,i)}return!1}function Te(t){return t.correspondingUseElement||t}function xe(t){var i=t instanceof Z.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function Ye(t){var i,p=xe(t);if(!le.isIOS7&&p){var b={x:(i=(i=_(t))||j).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};p.left+=b.x,p.right+=b.x,p.top+=b.y,p.bottom+=b.y}return p}function da(t){for(var i=[];t;)i.push(t),t=Fe(t);return i}function Ma(t){return!!g.string(t)&&(Z.document.querySelector(t),!0)}function ne(t,i){for(var p in i)t[p]=i[p];return t}function Ae(t,i,p){return t==="parent"?Fe(p):t==="self"?i.getRect(p):Ne(p,t)}function Ie(t,i,p,b){var w=t;return g.string(w)?w=Ae(w,i,p):g.func(w)&&(w=w.apply(void 0,b)),g.element(w)&&(w=Ye(w)),w}function qe(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Ve(t){return!t||"x"in t&&"y"in t||((t=ne({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function se(t,i,p){t.left&&(i.left+=p.x),t.right&&(i.right+=p.x),t.top&&(i.top+=p.y),t.bottom&&(i.bottom+=p.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function $e(t,i,p){var b=p&&t.options[p];return qe(Ie(b&&b.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function Ue(t,i){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(ke){return!0},b=arguments.length>3?arguments[3]:void 0;if(b=b||{},g.string(t)&&t.search(" ")!==-1&&(t=Na(t)),g.array(t))return t.forEach(function(ke){return Ue(ke,i,p,b)}),b;if(g.object(t)&&(i=t,t=""),g.func(i)&&p(t))b[t]=b[t]||[],b[t].push(i);else if(g.array(i))for(var w=0,O=i;w<O.length;w++){var Y=O[w];Ue(t,Y,p,b)}else if(g.object(i))for(var ee in i)Ue(Na(ee).map(function(ke){return"".concat(t).concat(ke)}),i[ee],p,b);return b}function Na(t){return t.trim().split(/ +/)}var La=function(t,i){return Math.sqrt(t*t+i*i)},V=["webkit","moz"];function P(t,i){t.__set||(t.__set={});var p=function(w){if(V.some(function(O){return w.indexOf(O)===0}))return 1;typeof t[w]!="function"&&w!=="__set"&&Object.defineProperty(t,w,{get:function(){return w in t.__set?t.__set[w]:t.__set[w]=i[w]},set:function(O){t.__set[w]=O},configurable:!0})};for(var b in i)p(b);return t}function ae(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function he(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function me(t){return t instanceof Z.Event||t instanceof Z.Touch}function fa(t,i,p){return t=t||"page",(p=p||{}).x=i[t+"X"],p.y=i[t+"Y"],p}function Xe(t,i){return i=i||{x:0,y:0},le.isOperaMobile&&me(t)?(fa("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):fa("page",t,i),i}function ce(t){return g.number(t.pointerId)?t.pointerId:t.identifier}function Ee(t,i,p){var b=i.length>1?We(i):i[0];Xe(b,t.page),function(w,O){O=O||{},le.isOperaMobile&&me(w)?fa("screen",w,O):fa("client",w,O)}(b,t.client),t.timeStamp=p}function ma(t){var i=[];return g.array(t)?(i[0]=t[0],i[1]=t[1]):t.type==="touchend"?t.touches.length===1?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):t.touches.length===0&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i}function We(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},p=0;p<t.length;p++){var b=t[p];for(var w in i)i[w]+=b[w]}for(var O in i)i[O]/=t.length;return i}function Oa(t){if(!t.length)return null;var i=ma(t),p=Math.min(i[0].pageX,i[1].pageX),b=Math.min(i[0].pageY,i[1].pageY),w=Math.max(i[0].pageX,i[1].pageX),O=Math.max(i[0].pageY,i[1].pageY);return{x:p,y:b,left:p,top:b,right:w,bottom:O,width:w-p,height:O-b}}function za(t,i){var p=i+"X",b=i+"Y",w=ma(t),O=w[0][p]-w[1][p],Y=w[0][b]-w[1][b];return La(O,Y)}function H(t,i){var p=i+"X",b=i+"Y",w=ma(t),O=w[1][p]-w[0][p],Y=w[1][b]-w[0][b];return 180*Math.atan2(Y,O)/Math.PI}function ye(t){return g.string(t.pointerType)?t.pointerType:g.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof Z.Touch?"touch":"mouse"}function oe(t){var i=g.func(t.composedPath)?t.composedPath():t.path;return[Te(i?i[0]:t.target),Te(t.currentTarget)]}var we=function(){function t(i){c(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return f(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(we.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Q=function(t,i){for(var p=0;p<i.length;p++){var b=i[p];t.push(b)}return t},Qe=function(t){return Q([],t)},ze=function(t,i){for(var p=0;p<t.length;p++)if(i(t[p],p,t))return p;return-1},ka=function(t,i){return t[ze(t,i)]},ca=function(t){y(p,t);var i=R(p);function p(b,w,O){var Y;c(this,p),(Y=i.call(this,w._interaction)).dropzone=void 0,Y.dragEvent=void 0,Y.relatedTarget=void 0,Y.draggable=void 0,Y.propagationStopped=!1,Y.immediatePropagationStopped=!1;var ee=O==="dragleave"?b.prev:b.cur,ke=ee.element,Pe=ee.dropzone;return Y.type=O,Y.target=ke,Y.currentTarget=ke,Y.dropzone=Pe,Y.dragEvent=w,Y.relatedTarget=w.target,Y.draggable=w.interactable,Y.timeStamp=w.timeStamp,Y}return f(p,[{key:"reject",value:function(){var b=this,w=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&w.cur.dropzone===this.dropzone&&w.cur.element===this.target)if(w.prev.dropzone=this.dropzone,w.prev.element=this.target,w.rejected=!0,w.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var O=w.activeDrops,Y=ze(O,function(ke){var Pe=ke.dropzone,De=ke.element;return Pe===b.dropzone&&De===b.target});w.activeDrops.splice(Y,1);var ee=new p(w,this.dragEvent,"dropdeactivate");ee.dropzone=this.dropzone,ee.target=this.target,this.dropzone.fire(ee)}else this.dropzone.fire(new p(w,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}(we);function Aa(t,i){for(var p=0,b=t.slice();p<b.length;p++){var w=b[p],O=w.dropzone,Y=w.element;i.dropzone=O,i.target=Y,O.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function Ia(t,i){for(var p=function(O,Y){for(var ee=[],ke=0,Pe=O.interactables.list;ke<Pe.length;ke++){var De=Pe[ke];if(De.options.drop.enabled){var ea=De.options.drop.accept;if(!(g.element(ea)&&ea!==Y||g.string(ea)&&!be(Y,ea)||g.func(ea)&&!ea({dropzone:De,draggableElement:Y})))for(var Ta=0,rl=De.getAllElements();Ta<rl.length;Ta++){var Ja=rl[Ta];Ja!==Y&&ee.push({dropzone:De,element:Ja,rect:De.getRect(Ja)})}}}return ee}(t,i),b=0;b<p.length;b++){var w=p[b];w.rect=w.dropzone.getRect(w.element)}return p}function ba(t,i,p){for(var b=t.dropState,w=t.interactable,O=t.element,Y=[],ee=0,ke=b.activeDrops;ee<ke.length;ee++){var Pe=ke[ee],De=Pe.dropzone,ea=Pe.element,Ta=Pe.rect,rl=De.dropCheck(i,p,w,O,ea,Ta);Y.push(rl?ea:null)}var Ja=function(nl){for(var kl,ol,Dl,zl=[],Xl=0;Xl<nl.length;Xl++){var El=nl[Xl],Ul=nl[kl];if(El&&Xl!==kl)if(Ul){var Hr=A(El),_r=A(Ul);if(Hr!==El.ownerDocument)if(_r!==El.ownerDocument)if(Hr!==_r){zl=zl.length?zl:q(Ul);var Jr=void 0;if(Ul instanceof Z.HTMLElement&&El instanceof Z.SVGElement&&!(El instanceof Z.SVGSVGElement)){if(El===_r)continue;Jr=El.ownerSVGElement}else Jr=El;for(var tn=q(Jr,Ul.ownerDocument),fn=0;tn[fn]&&tn[fn]===zl[fn];)fn++;var mo=[tn[fn-1],tn[fn],zl[fn]];if(mo[0])for(var $n=mo[0].lastChild;$n;){if($n===mo[1]){kl=Xl,zl=tn;break}if($n===mo[2])break;$n=$n.previousSibling}}else Dl=Ul,(parseInt(_(ol=El).getComputedStyle(ol).zIndex,10)||0)>=(parseInt(_(Dl).getComputedStyle(Dl).zIndex,10)||0)&&(kl=Xl);else kl=Xl}else kl=Xl}return kl}(Y);return b.activeDrops[Ja]||null}function ua(t,i,p){var b=t.dropState,w={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return p.type==="dragstart"&&(w.activate=new ca(b,p,"dropactivate"),w.activate.target=null,w.activate.dropzone=null),p.type==="dragend"&&(w.deactivate=new ca(b,p,"dropdeactivate"),w.deactivate.target=null,w.deactivate.dropzone=null),b.rejected||(b.cur.element!==b.prev.element&&(b.prev.dropzone&&(w.leave=new ca(b,p,"dragleave"),p.dragLeave=w.leave.target=b.prev.element,p.prevDropzone=w.leave.dropzone=b.prev.dropzone),b.cur.dropzone&&(w.enter=new ca(b,p,"dragenter"),p.dragEnter=b.cur.element,p.dropzone=b.cur.dropzone)),p.type==="dragend"&&b.cur.dropzone&&(w.drop=new ca(b,p,"drop"),p.dropzone=b.cur.dropzone,p.relatedTarget=b.cur.element),p.type==="dragmove"&&b.cur.dropzone&&(w.move=new ca(b,p,"dropmove"),p.dropzone=b.cur.dropzone)),w}function va(t,i){var p=t.dropState,b=p.activeDrops,w=p.cur,O=p.prev;i.leave&&O.dropzone.fire(i.leave),i.enter&&w.dropzone.fire(i.enter),i.move&&w.dropzone.fire(i.move),i.drop&&w.dropzone.fire(i.drop),i.deactivate&&Aa(b,i.deactivate),p.prev.dropzone=w.dropzone,p.prev.element=w.element}function Ha(t,i){var p=t.interaction,b=t.iEvent,w=t.event;if(b.type==="dragmove"||b.type==="dragend"){var O=p.dropState;i.dynamicDrop&&(O.activeDrops=Ia(i,p.element));var Y=b,ee=ba(p,Y,w);O.rejected=O.rejected&&!!ee&&ee.dropzone===O.cur.dropzone&&ee.element===O.cur.element,O.cur.dropzone=ee&&ee.dropzone,O.cur.element=ee&&ee.element,O.events=ua(p,0,Y)}}var pl={id:"actions/drop",install:function(t){var i=t.actions,p=t.interactStatic,b=t.Interactable,w=t.defaults;t.usePlugin(de),b.prototype.dropzone=function(O){return function(Y,ee){if(g.object(ee)){if(Y.options.drop.enabled=ee.enabled!==!1,ee.listeners){var ke=Ue(ee.listeners),Pe=Object.keys(ke).reduce(function(ea,Ta){return ea[/^(enter|leave)/.test(Ta)?"drag".concat(Ta):/^(activate|deactivate|move)/.test(Ta)?"drop".concat(Ta):Ta]=ke[Ta],ea},{}),De=Y.options.drop.listeners;De&&Y.off(De),Y.on(Pe),Y.options.drop.listeners=Pe}return g.func(ee.ondrop)&&Y.on("drop",ee.ondrop),g.func(ee.ondropactivate)&&Y.on("dropactivate",ee.ondropactivate),g.func(ee.ondropdeactivate)&&Y.on("dropdeactivate",ee.ondropdeactivate),g.func(ee.ondragenter)&&Y.on("dragenter",ee.ondragenter),g.func(ee.ondragleave)&&Y.on("dragleave",ee.ondragleave),g.func(ee.ondropmove)&&Y.on("dropmove",ee.ondropmove),/^(pointer|center)$/.test(ee.overlap)?Y.options.drop.overlap=ee.overlap:g.number(ee.overlap)&&(Y.options.drop.overlap=Math.max(Math.min(1,ee.overlap),0)),"accept"in ee&&(Y.options.drop.accept=ee.accept),"checker"in ee&&(Y.options.drop.checker=ee.checker),Y}return g.bool(ee)?(Y.options.drop.enabled=ee,Y):Y.options.drop}(this,O)},b.prototype.dropCheck=function(O,Y,ee,ke,Pe,De){return function(ea,Ta,rl,Ja,nl,kl,ol){var Dl=!1;if(!(ol=ol||ea.getRect(kl)))return!!ea.options.drop.checker&&ea.options.drop.checker(Ta,rl,Dl,ea,kl,Ja,nl);var zl=ea.options.drop.overlap;if(zl==="pointer"){var Xl=$e(Ja,nl,"drag"),El=Xe(Ta);El.x+=Xl.x,El.y+=Xl.y;var Ul=El.x>ol.left&&El.x<ol.right,Hr=El.y>ol.top&&El.y<ol.bottom;Dl=Ul&&Hr}var _r=Ja.getRect(nl);if(_r&&zl==="center"){var Jr=_r.left+_r.width/2,tn=_r.top+_r.height/2;Dl=Jr>=ol.left&&Jr<=ol.right&&tn>=ol.top&&tn<=ol.bottom}return _r&&g.number(zl)&&(Dl=Math.max(0,Math.min(ol.right,_r.right)-Math.max(ol.left,_r.left))*Math.max(0,Math.min(ol.bottom,_r.bottom)-Math.max(ol.top,_r.top))/(_r.width*_r.height)>=zl),ea.options.drop.checker&&(Dl=ea.options.drop.checker(Ta,rl,Dl,ea,kl,Ja,nl)),Dl}(this,O,Y,ee,ke,Pe,De)},p.dynamicDrop=function(O){return g.bool(O)?(t.dynamicDrop=O,p):t.dynamicDrop},ne(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,w.actions.drop=pl.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;i.prepared.name==="drag"&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var p=t.interaction,b=(t.event,t.iEvent);if(p.prepared.name==="drag"){var w=p.dropState;w.activeDrops=[],w.events={},w.activeDrops=Ia(i,p.element),w.events=ua(p,0,b),w.events.activate&&(Aa(w.activeDrops,w.events.activate),i.fire("actions/drop:start",{interaction:p,dragEvent:b}))}},"interactions:action-move":Ha,"interactions:after-action-move":function(t,i){var p=t.interaction,b=t.iEvent;if(p.prepared.name==="drag"){var w=p.dropState;va(p,w.events),i.fire("actions/drop:move",{interaction:p,dragEvent:b}),w.events={}}},"interactions:action-end":function(t,i){if(t.interaction.prepared.name==="drag"){var p=t.interaction,b=t.iEvent;Ha(t,i),va(p,p.dropState.events),i.fire("actions/drop:end",{interaction:p,dragEvent:b})}},"interactions:stop":function(t){var i=t.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:Ia,getDrop:ba,getDropEvents:ua,fireDropEvents:va,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},$l=pl;function gl(t){var i=t.interaction,p=t.iEvent,b=t.phase;if(i.prepared.name==="gesture"){var w=i.pointers.map(function(Pe){return Pe.pointer}),O=b==="start",Y=b==="end",ee=i.interactable.options.deltaSource;if(p.touches=[w[0],w[1]],O)p.distance=za(w,ee),p.box=Oa(w),p.scale=1,p.ds=0,p.angle=H(w,ee),p.da=0,i.gesture.startDistance=p.distance,i.gesture.startAngle=p.angle;else if(Y||i.pointers.length<2){var ke=i.prevEvent;p.distance=ke.distance,p.box=ke.box,p.scale=ke.scale,p.ds=0,p.angle=ke.angle,p.da=0}else p.distance=za(w,ee),p.box=Oa(w),p.scale=p.distance/i.gesture.startDistance,p.angle=H(w,ee),p.ds=p.scale-i.gesture.scale,p.da=p.angle-i.gesture.angle;i.gesture.distance=p.distance,i.gesture.angle=p.angle,g.number(p.scale)&&p.scale!==1/0&&!isNaN(p.scale)&&(i.gesture.scale=p.scale)}}var Ol={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,p=t.Interactable,b=t.defaults;p.prototype.gesturable=function(w){return g.object(w)?(this.options.gesture.enabled=w.enabled!==!1,this.setPerAction("gesture",w),this.setOnEvents("gesture",w),this):g.bool(w)?(this.options.gesture.enabled=w,this):this.options.gesture},i.map.gesture=Ol,i.methodDict.gesture="gesturable",b.actions.gesture=Ol.defaults},listeners:{"interactions:action-start":gl,"interactions:action-move":gl,"interactions:action-end":gl,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},Ra=Ol;function jl(t,i,p,b,w,O,Y){if(!i)return!1;if(i===!0){var ee=g.number(O.width)?O.width:O.right-O.left,ke=g.number(O.height)?O.height:O.bottom-O.top;if(Y=Math.min(Y,Math.abs((t==="left"||t==="right"?ee:ke)/2)),ee<0&&(t==="left"?t="right":t==="right"&&(t="left")),ke<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var Pe=ee>=0?O.left:O.right;return p.x<Pe+Y}if(t==="top"){var De=ke>=0?O.top:O.bottom;return p.y<De+Y}if(t==="right")return p.x>(ee>=0?O.right:O.left)-Y;if(t==="bottom")return p.y>(ke>=0?O.bottom:O.top)-Y}return!!g.element(b)&&(g.element(i)?i===b:re(b,i,w))}function Zl(t){var i=t.iEvent,p=t.interaction;if(p.prepared.name==="resize"&&p.resizeAxes){var b=i;p.interactable.options.resize.square?(p.resizeAxes==="y"?b.delta.x=b.delta.y:b.delta.y=b.delta.x,b.axes="xy"):(b.axes=p.resizeAxes,p.resizeAxes==="x"?b.delta.y=0:p.resizeAxes==="y"&&(b.delta.x=0))}}var ja,ga,Ca={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,p=t.browser,b=t.Interactable,w=t.defaults;Ca.cursors=function(O){return O.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),Ca.defaultMargin=p.supportsTouch||p.supportsPointerEvent?20:10,b.prototype.resizable=function(O){return function(Y,ee,ke){return g.object(ee)?(Y.options.resize.enabled=ee.enabled!==!1,Y.setPerAction("resize",ee),Y.setOnEvents("resize",ee),g.string(ee.axis)&&/^x$|^y$|^xy$/.test(ee.axis)?Y.options.resize.axis=ee.axis:ee.axis===null&&(Y.options.resize.axis=ke.defaults.actions.resize.axis),g.bool(ee.preserveAspectRatio)?Y.options.resize.preserveAspectRatio=ee.preserveAspectRatio:g.bool(ee.square)&&(Y.options.resize.square=ee.square),Y):g.bool(ee)?(Y.options.resize.enabled=ee,Y):Y.options.resize}(this,O,t)},i.map.resize=Ca,i.methodDict.resize="resizable",w.actions.resize=Ca.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(i){var p=i.iEvent,b=i.interaction;if(b.prepared.name==="resize"&&b.prepared.edges){var w=p,O=b.rect;b._rects={start:ne({},O),corrected:ne({},O),previous:ne({},O),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},w.edges=b.prepared.edges,w.rect=b._rects.corrected,w.deltaRect=b._rects.delta}})(t),Zl(t)},"interactions:action-move":function(t){(function(i){var p=i.iEvent,b=i.interaction;if(b.prepared.name==="resize"&&b.prepared.edges){var w=p,O=b.interactable.options.resize.invert,Y=O==="reposition"||O==="negate",ee=b.rect,ke=b._rects,Pe=ke.start,De=ke.corrected,ea=ke.delta,Ta=ke.previous;if(ne(Ta,De),Y){if(ne(De,ee),O==="reposition"){if(De.top>De.bottom){var rl=De.top;De.top=De.bottom,De.bottom=rl}if(De.left>De.right){var Ja=De.left;De.left=De.right,De.right=Ja}}}else De.top=Math.min(ee.top,Pe.bottom),De.bottom=Math.max(ee.bottom,Pe.top),De.left=Math.min(ee.left,Pe.right),De.right=Math.max(ee.right,Pe.left);for(var nl in De.width=De.right-De.left,De.height=De.bottom-De.top,De)ea[nl]=De[nl]-Ta[nl];w.edges=b.prepared.edges,w.rect=De,w.deltaRect=ea}})(t),Zl(t)},"interactions:action-end":function(t){var i=t.iEvent,p=t.interaction;if(p.prepared.name==="resize"&&p.prepared.edges){var b=i;b.edges=p.prepared.edges,b.rect=p._rects.corrected,b.deltaRect=p._rects.delta}},"auto-start:check":function(t){var i=t.interaction,p=t.interactable,b=t.element,w=t.rect,O=t.buttons;if(w){var Y=ne({},i.coords.cur.page),ee=p.options.resize;if(ee&&ee.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(O&ee.mouseButtons)!=0)){if(g.object(ee.edges)){var ke={left:!1,right:!1,top:!1,bottom:!1};for(var Pe in ke)ke[Pe]=jl(Pe,ee.edges[Pe],Y,i._latestPointer.eventTarget,b,w,ee.margin||Ca.defaultMargin);ke.left=ke.left&&!ke.right,ke.top=ke.top&&!ke.bottom,(ke.left||ke.right||ke.top||ke.bottom)&&(t.action={name:"resize",edges:ke})}else{var De=ee.axis!=="y"&&Y.x>w.right-Ca.defaultMargin,ea=ee.axis!=="x"&&Y.y>w.bottom-Ca.defaultMargin;(De||ea)&&(t.action={name:"resize",axes:(De?"x":"")+(ea?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,p=t.axis,b=t.name,w=Ca.cursors,O=null;if(p)O=w[b+p];else if(i){for(var Y="",ee=0,ke=["top","bottom","left","right"];ee<ke.length;ee++){var Pe=ke[ee];i[Pe]&&(Y+=Pe)}O=w[Y]}return O},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},Ua=Ca,al={id:"actions",install:function(t){t.usePlugin(Ra),t.usePlugin(Ua),t.usePlugin(de),t.usePlugin($l)}},Za=0,Oe={request:function(t){return ja(t)},cancel:function(t){return ga(t)},init:function(t){if(ja=t.requestAnimationFrame,ga=t.cancelAnimationFrame,!ja)for(var i=["ms","moz","webkit","o"],p=0;p<i.length;p++){var b=i[p];ja=t["".concat(b,"RequestAnimationFrame")],ga=t["".concat(b,"CancelAnimationFrame")]||t["".concat(b,"CancelRequestAnimationFrame")]}ja=ja&&ja.bind(t),ga=ga&&ga.bind(t),ja||(ja=function(w){var O=Date.now(),Y=Math.max(0,16-(O-Za)),ee=t.setTimeout(function(){w(O+Y)},Y);return Za=O+Y,ee},ga=function(w){return clearTimeout(w)})}},ra={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){ra.isScrolling=!0,Oe.cancel(ra.i),t.autoScroll=ra,ra.interaction=t,ra.prevTime=ra.now(),ra.i=Oe.request(ra.scroll)},stop:function(){ra.isScrolling=!1,ra.interaction&&(ra.interaction.autoScroll=null),Oe.cancel(ra.i)},scroll:function(){var t=ra.interaction,i=t.interactable,p=t.element,b=t.prepared.name,w=i.options[b].autoScroll,O=_e(w.container,i,p),Y=ra.now(),ee=(Y-ra.prevTime)/1e3,ke=w.speed*ee;if(ke>=1){var Pe={x:ra.x*ke,y:ra.y*ke};if(Pe.x||Pe.y){var De=Ba(O);g.window(O)?O.scrollBy(Pe.x,Pe.y):O&&(O.scrollLeft+=Pe.x,O.scrollTop+=Pe.y);var ea=Ba(O),Ta={x:ea.x-De.x,y:ea.y-De.y};(Ta.x||Ta.y)&&i.fire({type:"autoscroll",target:p,interactable:i,delta:Ta,interaction:t,container:O})}ra.prevTime=Y}ra.isScrolling&&(Oe.cancel(ra.i),ra.i=Oe.request(ra.scroll))},check:function(t,i){var p;return(p=t.options[i].autoScroll)==null?void 0:p.enabled},onInteractionMove:function(t){var i=t.interaction,p=t.pointer;if(i.interacting()&&ra.check(i.interactable,i.prepared.name))if(i.simulation)ra.x=ra.y=0;else{var b,w,O,Y,ee=i.interactable,ke=i.element,Pe=i.prepared.name,De=ee.options[Pe].autoScroll,ea=_e(De.container,ee,ke);if(g.window(ea))Y=p.clientX<ra.margin,b=p.clientY<ra.margin,w=p.clientX>ea.innerWidth-ra.margin,O=p.clientY>ea.innerHeight-ra.margin;else{var Ta=xe(ea);Y=p.clientX<Ta.left+ra.margin,b=p.clientY<Ta.top+ra.margin,w=p.clientX>Ta.right-ra.margin,O=p.clientY>Ta.bottom-ra.margin}ra.x=w?1:Y?-1:0,ra.y=O?1:b?-1:0,ra.isScrolling||(ra.margin=De.margin,ra.speed=De.speed,ra.start(i))}}};function _e(t,i,p){return(g.string(t)?Ae(t,i,p):t)||_(p)}function Ba(t){return g.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var Ge={id:"auto-scroll",install:function(t){var i=t.defaults,p=t.actions;t.autoScroll=ra,ra.now=function(){return t.now()},p.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=ra.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,ra.stop(),ra.interaction&&(ra.interaction=null)},"interactions:stop":ra.stop,"interactions:action-move":function(t){return ra.onInteractionMove(t)}}},X=Ge;function la(t,i){var p=!1;return function(){return p||(j.console.warn(i),p=!0),t.apply(this,arguments)}}function Ze(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Le(t){return g.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function xl(t){return g.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var ll={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(p,b,w,O){var Y=function(ee,ke,Pe,De,ea){var Ta=ee.getRect(De),rl=ke.buttons||{0:1,1:4,3:8,4:16}[ke.button],Ja={action:null,interactable:ee,interaction:Pe,element:De,rect:Ta,buttons:rl};return ea.fire("auto-start:check",Ja),Ja.action}(this,b,w,O,t);return this.options.actionChecker?this.options.actionChecker(p,b,Y,this,O,w):Y},i.prototype.ignoreFrom=la(function(p){return this._backCompatOption("ignoreFrom",p)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=la(function(p){return this._backCompatOption("allowFrom",p)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=xl,i.prototype.styleCursor=Le}};function hl(t,i,p,b,w){return i.testIgnoreAllow(i.options[t.name],p,b)&&i.options[t.name].enabled&&ge(i,p,t,w)?t:null}function Va(t,i,p,b,w,O,Y){for(var ee=0,ke=b.length;ee<ke;ee++){var Pe=b[ee],De=w[ee],ea=Pe.getAction(i,p,t,De);if(ea){var Ta=hl(ea,Pe,De,O,Y);if(Ta)return{action:Ta,interactable:Pe,element:De}}}return{action:null,interactable:null,element:null}}function Wa(t,i,p,b,w){var O=[],Y=[],ee=b;function ke(De){O.push(De),Y.push(ee)}for(;g.element(ee);){O=[],Y=[],w.interactables.forEachMatch(ee,ke);var Pe=Va(t,i,p,O,Y,b,w);if(Pe.action&&!Pe.interactable.options[Pe.action.name].manualStart)return Pe;ee=Fe(ee)}return{action:null,interactable:null,element:null}}function _a(t,i,p){var b=i.action,w=i.interactable,O=i.element;b=b||{name:null},t.interactable=w,t.element=O,Ze(t.prepared,b),t.rect=w&&b.name?w.getRect(O):null,Rl(t,p),p.fire("autoStart:prepared",{interaction:t})}function ge(t,i,p,b){var w=t.options,O=w[p.name].max,Y=w[p.name].maxPerElement,ee=b.autoStart.maxInteractions,ke=0,Pe=0,De=0;if(!(O&&Y&&ee))return!1;for(var ea=0,Ta=b.interactions.list;ea<Ta.length;ea++){var rl=Ta[ea],Ja=rl.prepared.name;if(rl.interacting()&&(++ke>=ee||rl.interactable===t&&((Pe+=Ja===p.name?1:0)>=O||rl.element===i&&(De++,Ja===p.name&&De>=Y))))return!1}return ee>0}function xa(t,i){return g.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function wl(t,i,p){var b=p.autoStart.cursorElement;b&&b!==t&&(b.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,p.autoStart.cursorElement=i?t:null}function Rl(t,i){var p=t.interactable,b=t.element,w=t.prepared;if(t.pointerType==="mouse"&&p&&p.options.styleCursor){var O="";if(w.name){var Y=p.options[w.name].cursorChecker;O=g.func(Y)?Y(w,p,b,t._interacting):i.actions.map[w.name].getCursor(w)}wl(t.element,O||"",i)}else i.autoStart.cursorElement&&wl(i.autoStart.cursorElement,"",i)}var Fl={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,p=t.defaults;t.usePlugin(ll),p.base.actionChecker=null,p.base.styleCursor=!0,ne(p.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(b){return xa(b,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ge,cursorElement:null}},listeners:{"interactions:down":function(t,i){var p=t.interaction,b=t.pointer,w=t.event,O=t.eventTarget;p.interacting()||_a(p,Wa(p,b,w,O,i),i)},"interactions:move":function(t,i){(function(p,b){var w=p.interaction,O=p.pointer,Y=p.event,ee=p.eventTarget;w.pointerType!=="mouse"||w.pointerIsDown||w.interacting()||_a(w,Wa(w,O,Y,ee,b),b)})(t,i),function(p,b){var w=p.interaction;if(w.pointerIsDown&&!w.interacting()&&w.pointerWasMoved&&w.prepared.name){b.fire("autoStart:before-start",p);var O=w.interactable,Y=w.prepared.name;Y&&O&&(O.options[Y].manualStart||!ge(O,w.element,w.prepared,b)?w.stop():(w.start(w.prepared,O,w.element),Rl(w,b)))}}(t,i)},"interactions:stop":function(t,i){var p=t.interaction,b=p.interactable;b&&b.options.styleCursor&&wl(p.element,"",i)}},maxInteractions:xa,withinInteractionLimit:ge,validateAction:hl},or=Fl,gr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var p=t.interaction,b=t.eventTarget,w=t.dx,O=t.dy;if(p.prepared.name==="drag"){var Y=Math.abs(w),ee=Math.abs(O),ke=p.interactable.options.drag,Pe=ke.startAxis,De=Y>ee?"x":Y<ee?"y":"xy";if(p.prepared.axis=ke.lockAxis==="start"?De[0]:ke.lockAxis,De!=="xy"&&Pe!=="xy"&&Pe!==De){p.prepared.name=null;for(var ea=b,Ta=function(Ja){if(Ja!==p.interactable){var nl=p.interactable.options.drag;if(!nl.manualStart&&Ja.testIgnoreAllow(nl,ea,b)){var kl=Ja.getAction(p.downPointer,p.downEvent,p,ea);if(kl&&kl.name==="drag"&&function(ol,Dl){if(!Dl)return!1;var zl=Dl.options.drag.startAxis;return ol==="xy"||zl==="xy"||zl===ol}(De,Ja)&&or.validateAction(kl,Ja,ea,b,i))return Ja}}};g.element(ea);){var rl=i.interactables.forEachMatch(ea,Ta);if(rl){p.prepared.name="drag",p.interactable=rl,p.element=ea;break}ea=Fe(ea)}}}}}};function Cl(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var p=t.interactable.options;return p[i].hold||p[i].delay}var sr={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(or),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,p=Cl(i);p>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},p))},"interactions:move":function(t){var i=t.interaction,p=t.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!p&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;Cl(i)>0&&(i.prepared.name=null)}},getHoldDuration:Cl},Tr=sr,Ml={id:"auto-start",install:function(t){t.usePlugin(or),t.usePlugin(Tr),t.usePlugin(gr)}},rr=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):g.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function en(t){var i=t.interaction,p=t.event;i.interactable&&i.interactable.checkAndPreventDefault(p)}var Or={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=rr,i.prototype.checkAndPreventDefault=function(p){return function(b,w,O){var Y=b.options.preventDefault;if(Y!=="never")if(Y!=="always"){if(w.events.supportsPassive&&/^touch(start|move)$/.test(O.type)){var ee=_(O.target).document,ke=w.getDocOptions(ee);if(!ke||!ke.events||ke.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(O.type)||g.element(O.target)&&be(O.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||O.preventDefault()}else O.preventDefault()}(this,t,p)},t.interactions.docEvents.push({type:"dragstart",listener:function(p){for(var b=0,w=t.interactions.list;b<w.length;b++){var O=w[b];if(O.element&&(O.element===p.target||ue(O.element,p.target)))return void O.interactable.checkAndPreventDefault(p)}}})},listeners:["down","move","up","cancel"].reduce(function(t,i){return t["interactions:".concat(i)]=en,t},{})};function zr(t,i){if(i.phaselessTypes[t])return!0;for(var p in i.map)if(t.indexOf(p)===0&&t.substr(p.length)in i.phases)return!0;return!1}function Cr(t){var i={};for(var p in t){var b=t[p];g.plainObject(b)?i[p]=Cr(b):g.array(b)?i[p]=Qe(b):i[p]=b}return i}var Mr=function(){function t(i){c(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=Ir(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return f(t,[{key:"start",value:function(i,p){var b,w,O=i.phase,Y=this.interaction,ee=function(Pe){var De=Pe.interactable.options[Pe.prepared.name],ea=De.modifiers;return ea&&ea.length?ea:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ta){var rl=De[Ta];return rl&&rl.enabled&&{options:rl,methods:rl._methods}}).filter(function(Ta){return!!Ta})}(Y);this.prepareStates(ee),this.startEdges=ne({},Y.edges),this.edges=ne({},this.startEdges),this.startOffset=(b=Y.rect,w=p,b?{left:w.x-b.left,top:w.y-b.top,right:b.right-w.x,bottom:b.bottom-w.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var ke=this.fillArg({phase:O,pageCoords:p,preEnd:!1});return this.result=Ir(),this.startAll(ke),this.result=this.setAll(ke)}},{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,b=this.states;p<b.length;p++){var w=b[p];w.methods.start&&(i.state=w,w.methods.start(i))}}},{key:"setAll",value:function(i){var p=i.phase,b=i.preEnd,w=i.skipModifiers,O=i.rect,Y=i.edges;i.coords=ne({},i.pageCoords),i.rect=ne({},O),i.edges=ne({},Y);for(var ee=w?this.states.slice(w):this.states,ke=Ir(i.coords,i.rect),Pe=0;Pe<ee.length;Pe++){var De,ea=ee[Pe],Ta=ea.options,rl=ne({},i.coords),Ja=null;(De=ea.methods)!=null&&De.set&&this.shouldDo(Ta,b,p)&&(i.state=ea,Ja=ea.methods.set(i),se(i.edges,i.rect,{x:i.coords.x-rl.x,y:i.coords.y-rl.y})),ke.eventProps.push(Ja)}ne(this.edges,i.edges),ke.delta.x=i.coords.x-i.pageCoords.x,ke.delta.y=i.coords.y-i.pageCoords.y,ke.rectDelta.left=i.rect.left-O.left,ke.rectDelta.right=i.rect.right-O.right,ke.rectDelta.top=i.rect.top-O.top,ke.rectDelta.bottom=i.rect.bottom-O.bottom;var nl=this.result.coords,kl=this.result.rect;if(nl&&kl){var ol=ke.rect.left!==kl.left||ke.rect.right!==kl.right||ke.rect.top!==kl.top||ke.rect.bottom!==kl.bottom;ke.changed=ol||nl.x!==ke.coords.x||nl.y!==ke.coords.y}return ke}},{key:"applyToInteraction",value:function(i){var p=this.interaction,b=i.phase,w=p.coords.cur,O=p.coords.start,Y=this.result,ee=this.startDelta,ke=Y.delta;b==="start"&&ne(this.startDelta,Y.delta);for(var Pe=0,De=[[O,ee],[w,ke]];Pe<De.length;Pe++){var ea=De[Pe],Ta=ea[0],rl=ea[1];Ta.page.x+=rl.x,Ta.page.y+=rl.y,Ta.client.x+=rl.x,Ta.client.y+=rl.y}var Ja=this.result.rectDelta,nl=i.rect||p.rect;nl.left+=Ja.left,nl.right+=Ja.right,nl.top+=Ja.top,nl.bottom+=Ja.bottom,nl.width=nl.right-nl.left,nl.height=nl.bottom-nl.top}},{key:"setAndApply",value:function(i){var p=this.interaction,b=i.phase,w=i.preEnd,O=i.skipModifiers,Y=this.setAll(this.fillArg({preEnd:w,phase:b,pageCoords:i.modifiedCoords||p.coords.cur.page}));if(this.result=Y,!Y.changed&&(!O||O<this.states.length)&&p.interacting())return!1;if(i.modifiedCoords){var ee=p.coords.cur.page,ke={x:i.modifiedCoords.x-ee.x,y:i.modifiedCoords.y-ee.y};Y.coords.x+=ke.x,Y.coords.y+=ke.y,Y.delta.x+=ke.x,Y.delta.y+=ke.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var p=i.interaction,b=i.event,w=this.states;if(w&&w.length){for(var O=!1,Y=0;Y<w.length;Y++){var ee=w[Y];i.state=ee;var ke=ee.options,Pe=ee.methods,De=Pe.beforeEnd&&Pe.beforeEnd(i);if(De)return this.endResult=De,!1;O=O||!O&&this.shouldDo(ke,!0,i.phase,!0)}O&&p.move({event:b,preEnd:!0})}}},{key:"stop",value:function(i){var p=i.interaction;if(this.states&&this.states.length){var b=ne({states:this.states,interactable:p.interactable,element:p.element,rect:null},i);this.fillArg(b);for(var w=0,O=this.states;w<O.length;w++){var Y=O[w];b.state=Y,Y.methods.stop&&Y.methods.stop(b)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var p=0;p<i.length;p++){var b=i[p],w=b.options,O=b.methods,Y=b.name;this.states.push({options:w,methods:O,index:p,name:Y})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var p=i.interaction,b=p.coords,w=p.rect,O=p.modification;if(O.result){for(var Y=O.startDelta,ee=O.result,ke=ee.delta,Pe=ee.rectDelta,De=0,ea=[[b.start,Y],[b.cur,ke]];De<ea.length;De++){var Ta=ea[De],rl=Ta[0],Ja=Ta[1];rl.page.x-=Ja.x,rl.page.y-=Ja.y,rl.client.x-=Ja.x,rl.client.y-=Ja.y}w.left-=Pe.left,w.right-=Pe.right,w.top-=Pe.top,w.bottom-=Pe.bottom}}},{key:"shouldDo",value:function(i,p,b,w){return!(!i||i.enabled===!1||w&&!i.endOnly||i.endOnly&&!p||b==="start"&&!i.setStart)}},{key:"copyFrom",value:function(i){this.startOffset=i.startOffset,this.startDelta=i.startDelta,this.startEdges=i.startEdges,this.edges=i.edges,this.states=i.states.map(function(p){return Cr(p)}),this.result=Ir(ne({},i.result.coords),ne({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function Ir(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Nr(t,i){var p=t.defaults,b={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},w=function(O){var Y=O||{};for(var ee in Y.enabled=Y.enabled!==!1,p)ee in Y||(Y[ee]=p[ee]);var ke={options:Y,methods:b,name:i,enable:function(){return Y.enabled=!0,ke},disable:function(){return Y.enabled=!1,ke}};return ke};return i&&typeof i=="string"&&(w._defaults=p,w._methods=b),w}function Fr(t){var i=t.iEvent,p=t.interaction.modification.result;p&&(i.modifiers=p.eventProps)}var Lr={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new Mr(i)},"interactions:before-action-start":function(t){var i=t.interaction,p=t.interaction.modification;p.start(t,i.coords.start.page),i.edges=p.edges,p.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,p=i.modification,b=p.setAndApply(t);return i.edges=p.edges,b},"interactions:before-action-end":function(t){var i=t.interaction,p=i.modification,b=p.beforeEnd(t);return i.edges=p.startEdges,b},"interactions:action-start":Fr,"interactions:action-move":Fr,"interactions:action-end":Fr,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},cr=Lr,xn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Yr=function(t){y(p,t);var i=R(p);function p(b,w,O,Y,ee,ke,Pe){var De;c(this,p),(De=i.call(this,b)).relatedTarget=null,De.screenX=void 0,De.screenY=void 0,De.button=void 0,De.buttons=void 0,De.ctrlKey=void 0,De.shiftKey=void 0,De.altKey=void 0,De.metaKey=void 0,De.page=void 0,De.client=void 0,De.delta=void 0,De.rect=void 0,De.x0=void 0,De.y0=void 0,De.t0=void 0,De.dt=void 0,De.duration=void 0,De.clientX0=void 0,De.clientY0=void 0,De.velocity=void 0,De.speed=void 0,De.swipe=void 0,De.axes=void 0,De.preEnd=void 0,ee=ee||b.element;var ea=b.interactable,Ta=(ea&&ea.options||xn).deltaSource,rl=$e(ea,ee,O),Ja=Y==="start",nl=Y==="end",kl=Ja?D(De):b.prevEvent,ol=Ja?b.coords.start:nl?{page:kl.page,client:kl.client,timeStamp:b.coords.cur.timeStamp}:b.coords.cur;return De.page=ne({},ol.page),De.client=ne({},ol.client),De.rect=ne({},b.rect),De.timeStamp=ol.timeStamp,nl||(De.page.x-=rl.x,De.page.y-=rl.y,De.client.x-=rl.x,De.client.y-=rl.y),De.ctrlKey=w.ctrlKey,De.altKey=w.altKey,De.shiftKey=w.shiftKey,De.metaKey=w.metaKey,De.button=w.button,De.buttons=w.buttons,De.target=ee,De.currentTarget=ee,De.preEnd=ke,De.type=Pe||O+(Y||""),De.interactable=ea,De.t0=Ja?b.pointers[b.pointers.length-1].downTime:kl.t0,De.x0=b.coords.start.page.x-rl.x,De.y0=b.coords.start.page.y-rl.y,De.clientX0=b.coords.start.client.x-rl.x,De.clientY0=b.coords.start.client.y-rl.y,De.delta=Ja||nl?{x:0,y:0}:{x:De[Ta].x-kl[Ta].x,y:De[Ta].y-kl[Ta].y},De.dt=b.coords.delta.timeStamp,De.duration=De.timeStamp-De.t0,De.velocity=ne({},b.coords.velocity[Ta]),De.speed=La(De.velocity.x,De.velocity.y),De.swipe=nl||Y==="inertiastart"?De.getSwipe():null,De}return f(p,[{key:"getSwipe",value:function(){var b=this._interaction;if(b.prevEvent.speed<600||this.timeStamp-b.prevEvent.timeStamp>150)return null;var w=180*Math.atan2(b.prevEvent.velocityY,b.prevEvent.velocityX)/Math.PI;w<0&&(w+=360);var O=112.5<=w&&w<247.5,Y=202.5<=w&&w<337.5;return{up:Y,down:!Y&&22.5<=w&&w<157.5,left:O,right:!O&&(292.5<=w||w<67.5),angle:w,speed:b.prevEvent.speed,velocity:{x:b.prevEvent.velocityX,y:b.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),p}(we);Object.defineProperties(Yr.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var nn=f(function t(i,p,b,w,O){c(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=p,this.event=b,this.downTime=w,this.downTarget=O}),zn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),wn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),gn=0,mr=function(){function t(i){var p=this,b=i.pointerType,w=i.scopeFire;c(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=la(function(De){this.move(De)},"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=gn++,this._scopeFire=w,this.pointerType=b;var O=this;this._proxy={};var Y=function(De){Object.defineProperty(p._proxy,De,{get:function(){return O[De]}})};for(var ee in zn)Y(ee);var ke=function(De){Object.defineProperty(p._proxy,De,{value:function(){return O[De].apply(O,arguments)}})};for(var Pe in wn)ke(Pe);this._scopeFire("interactions:new",{interaction:this})}return f(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,p,b){var w=this.updatePointer(i,p,b,!0),O=this.pointers[w];this._scopeFire("interactions:down",{pointer:i,event:p,eventTarget:b,pointerIndex:w,pointerInfo:O,type:"down",interaction:this})}},{key:"start",value:function(i,p,b){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!p.options[i.name].enabled)&&(Ze(this.prepared,i),this.interactable=p,this.element=b,this.rect=p.getRect(b),this.edges=this.prepared.edges?ne({},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,b){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,p,b,!1);var w,O,Y=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&&(w=this.coords.cur.client.x-this.coords.start.client.x,O=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=La(w,O)>this.pointerMoveTolerance);var ee,ke,Pe,De=this.getPointerIndex(i),ea={pointer:i,pointerIndex:De,pointerInfo:this.pointers[De],event:p,type:"move",eventTarget:b,dx:w,dy:O,duplicate:Y,interaction:this};Y||(ee=this.coords.velocity,ke=this.coords.delta,Pe=Math.max(ke.timeStamp/1e3,.001),ee.page.x=ke.page.x/Pe,ee.page.y=ke.page.y/Pe,ee.client.x=ke.client.x/Pe,ee.client.y=ke.client.y/Pe,ee.timeStamp=Pe),this._scopeFire("interactions:move",ea),Y||this.simulation||(this.interacting()&&(ea.type=null,this.move(ea)),this.pointerWasMoved&&ae(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||he(this.coords.delta),(i=ne({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,b,w){var O=this.getPointerIndex(i);O===-1&&(O=this.updatePointer(i,p,b,!1));var Y=/cancel$/i.test(p.type)?"cancel":"up";this._scopeFire("interactions:".concat(Y),{pointer:i,pointerIndex:O,pointerInfo:this.pointers[O],event:p,eventTarget:b,type:Y,curEventTarget:w,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=ce(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ze(this.pointers,function(b){return b.id===p})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,p,b,w){var O,Y,ee,ke=ce(i),Pe=this.getPointerIndex(i),De=this.pointers[Pe];return w=w!==!1&&(w||/(down|start)$/i.test(p.type)),De?De.pointer=i:(De=new nn(ke,i,p,null,null),Pe=this.pointers.length,this.pointers.push(De)),Ee(this.coords.cur,this.pointers.map(function(ea){return ea.pointer}),this._now()),O=this.coords.delta,Y=this.coords.prev,ee=this.coords.cur,O.page.x=ee.page.x-Y.page.x,O.page.y=ee.page.y-Y.page.y,O.client.x=ee.client.x-Y.client.x,O.client.y=ee.client.y-Y.client.y,O.timeStamp=ee.timeStamp-Y.timeStamp,w&&(this.pointerIsDown=!0,De.downTime=this.coords.cur.timeStamp,De.downTarget=b,P(this.downPointer,i),this.interacting()||(ae(this.coords.start,this.coords.cur),ae(this.coords.prev,this.coords.cur),this.downEvent=p,this.pointerWasMoved=!1)),this._updateLatestPointer(i,p,b),this._scopeFire("interactions:update-pointer",{pointer:i,event:p,eventTarget:b,down:w,pointerInfo:De,pointerIndex:Pe,interaction:this}),Pe}},{key:"removePointer",value:function(i,p){var b=this.getPointerIndex(i);if(b!==-1){var w=this.pointers[b];this._scopeFire("interactions:remove-pointer",{pointer:i,event:p,eventTarget:null,pointerIndex:b,pointerInfo:w,interaction:this}),this.pointers.splice(b,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,p,b){this._latestPointer.pointer=i,this._latestPointer.event=p,this._latestPointer.eventTarget=b}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,p,b,w){return new Yr(this,i,this.prepared.name,p,this.element,b,w)}},{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,b=i.phase,w=i.preEnd,O=i.type,Y=this.rect;if(Y&&b==="move"&&(se(this.edges,Y,this.coords.delta[this.interactable.options.deltaSource]),Y.width=Y.right-Y.left,Y.height=Y.bottom-Y.top),this._scopeFire("interactions:before-action-".concat(b),i)===!1)return!1;var ee=i.iEvent=this._createPreparedEvent(p,b,w,O);return this._scopeFire("interactions:action-".concat(b),i),b==="start"&&(this.prevEvent=ee),this._fireEvent(ee),this._scopeFire("interactions:after-action-".concat(b),i),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Hl(t){pr(t.interaction)}function pr(t){if(!function(p){return!(!p.offset.pending.x&&!p.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Wl(t.coords.cur,i),Wl(t.coords.delta,i),se(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Ll(t){var i=t.x,p=t.y;this.offset.pending.x+=i,this.offset.pending.y+=p,this.offset.total.x+=i,this.offset.total.y+=p}function Wl(t,i){var p=t.page,b=t.client,w=i.x,O=i.y;p.x+=w,p.y+=O,b.x+=w,b.y+=O}wn.offsetBy="";var Al={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Ll},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(i){i.pointerIsDown&&(Wl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Hl,"interactions:before-action-move":Hl,"interactions:before-action-end":function(t){var i=t.interaction;if(pr(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},yr=Al,ir=function(){function t(i){c(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return f(t,[{key:"start",value:function(i){var p=this.interaction,b=Pl(p);if(!b||!b.enabled)return!1;var w=p.coords.velocity.client,O=La(w.x,w.y),Y=this.modification||(this.modification=new Mr(p));if(Y.copyFrom(p.modification),this.t0=p._now(),this.allowResume=b.allowResume,this.v0=O,this.currentOffset={x:0,y:0},this.startCoords=p.coords.cur.page,this.modifierArg=Y.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-p.coords.cur.timeStamp<50&&O>b.minSpeed&&O>b.endSpeed)this.startInertia();else{if(Y.result=Y.setAll(this.modifierArg),!Y.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,b=Pl(this.interaction),w=b.resistance,O=-Math.log(b.endSpeed/this.v0)/w;this.targetOffset={x:(p.x-O)/w,y:(p.y-O)/w},this.te=O,this.lambda_v0=w/this.v0,this.one_ve_v0=1-b.endSpeed/this.v0;var Y=this.modification,ee=this.modifierArg;ee.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},Y.result=Y.setAll(ee),Y.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+Y.result.delta.x,y:this.targetOffset.y+Y.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=Oe.request(function(){p.active&&i()})}},{key:"inertiaTick",value:function(){var i,p,b,w,O,Y,ee,ke=this,Pe=this.interaction,De=Pl(Pe).resistance,ea=(Pe._now()-this.t0)/1e3;if(ea<this.te){var Ta,rl=1-(Math.exp(-De*ea)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,p=0,b=this.targetOffset.x,w=this.targetOffset.y,O=this.modifiedOffset.x,Y=this.modifiedOffset.y,Ta={x:Pr(ee=rl,i,b,O),y:Pr(ee,p,w,Y)}):Ta={x:this.targetOffset.x*rl,y:this.targetOffset.y*rl};var Ja={x:Ta.x-this.currentOffset.x,y:Ta.y-this.currentOffset.y};this.currentOffset.x+=Ja.x,this.currentOffset.y+=Ja.y,Pe.offsetBy(Ja),Pe.move(),this.onNextFrame(function(){return ke.inertiaTick()})}else Pe.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,b=p._now()-this.t0,w=Pl(p).smoothEndDuration;if(b<w){var O={x:_n(b,0,this.targetOffset.x,w),y:_n(b,0,this.targetOffset.y,w)},Y={x:O.x-this.currentOffset.x,y:O.y-this.currentOffset.y};this.currentOffset.x+=Y.x,this.currentOffset.y+=Y.y,p.offsetBy(Y),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,b=i.event,w=i.eventTarget,O=this.interaction;O.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),O.updatePointer(p,b,w,!0),O._doPhase({interaction:O,event:b,phase:"resume"}),ae(O.coords.prev,O.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,Oe.cancel(this.timeout)}}]),t}();function Pl(t){var i=t.interactable,p=t.prepared;return i&&i.options&&p.name&&i.options[p.name].inertia}var Vr={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(yr),t.usePlugin(cr),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new ir(i)},"interactions:before-action-end":function(t){var i=t.interaction,p=t.event;return(!i._interacting||i.simulation||!i.inertia.start(p))&&null},"interactions:down":function(t){var i=t.interaction,p=t.eventTarget,b=i.inertia;if(b.active)for(var w=p;g.element(w);){if(w===i.element){b.resume(t);break}w=Fe(w)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":Fr,"interactions:action-inertiastart":Fr,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Pr(t,i,p,b){var w=1-t;return w*w*i+2*w*t*p+t*t*b}function _n(t,i,p,b){return-p*(t/=b)*(t-2)+i}var on=Vr;function eo(t,i){for(var p=0;p<i.length;p++){var b=i[p];if(t.immediatePropagationStopped)break;b(t)}}var Mn=function(){function t(i){c(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ne({},i||{})}return f(t,[{key:"fire",value:function(i){var p,b=this.global;(p=this.types[i.type])&&eo(i,p),!i.propagationStopped&&b&&(p=b[i.type])&&eo(i,p)}},{key:"on",value:function(i,p){var b=Ue(i,p);for(i in b)this.types[i]=Q(this.types[i]||[],b[i])}},{key:"off",value:function(i,p){var b=Ue(i,p);for(i in b){var w=this.types[i];if(w&&w.length)for(var O=0,Y=b[i];O<Y.length;O++){var ee=Y[O],ke=w.indexOf(ee);ke!==-1&&w.splice(ke,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),ao=function(){function t(i){c(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,P(this,i)}return f(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function Sn(t){return g.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function In(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Hn={id:"events",install:function(t){var i,p=[],b={},w=[],O={add:Y,remove:ee,addDelegate:function(De,ea,Ta,rl,Ja){var nl=Sn(Ja);if(!b[Ta]){b[Ta]=[];for(var kl=0;kl<w.length;kl++){var ol=w[kl];Y(ol,Ta,ke),Y(ol,Ta,Pe,!0)}}var Dl=b[Ta],zl=ka(Dl,function(Xl){return Xl.selector===De&&Xl.context===ea});zl||(zl={selector:De,context:ea,listeners:[]},Dl.push(zl)),zl.listeners.push({func:rl,options:nl})},removeDelegate:function(De,ea,Ta,rl,Ja){var nl,kl=Sn(Ja),ol=b[Ta],Dl=!1;if(ol)for(nl=ol.length-1;nl>=0;nl--){var zl=ol[nl];if(zl.selector===De&&zl.context===ea){for(var Xl=zl.listeners,El=Xl.length-1;El>=0;El--){var Ul=Xl[El];if(Ul.func===rl&&In(Ul.options,kl)){Xl.splice(El,1),Xl.length||(ol.splice(nl,1),ee(ea,Ta,ke),ee(ea,Ta,Pe,!0)),Dl=!0;break}}if(Dl)break}}},delegateListener:ke,delegateUseCapture:Pe,delegatedEvents:b,documents:w,targets:p,supportsOptions:!1,supportsPassive:!1};function Y(De,ea,Ta,rl){if(De.addEventListener){var Ja=Sn(rl),nl=ka(p,function(kl){return kl.eventTarget===De});nl||(nl={eventTarget:De,events:{}},p.push(nl)),nl.events[ea]||(nl.events[ea]=[]),ka(nl.events[ea],function(kl){return kl.func===Ta&&In(kl.options,Ja)})||(De.addEventListener(ea,Ta,O.supportsOptions?Ja:Ja.capture),nl.events[ea].push({func:Ta,options:Ja}))}}function ee(De,ea,Ta,rl){if(De.addEventListener&&De.removeEventListener){var Ja=ze(p,function(Hr){return Hr.eventTarget===De}),nl=p[Ja];if(nl&&nl.events)if(ea!=="all"){var kl=!1,ol=nl.events[ea];if(ol){if(Ta==="all"){for(var Dl=ol.length-1;Dl>=0;Dl--){var zl=ol[Dl];ee(De,ea,zl.func,zl.options)}return}for(var Xl=Sn(rl),El=0;El<ol.length;El++){var Ul=ol[El];if(Ul.func===Ta&&In(Ul.options,Xl)){De.removeEventListener(ea,Ta,O.supportsOptions?Xl:Xl.capture),ol.splice(El,1),ol.length===0&&(delete nl.events[ea],kl=!0);break}}}kl&&!Object.keys(nl.events).length&&p.splice(Ja,1)}else for(ea in nl.events)nl.events.hasOwnProperty(ea)&&ee(De,ea,"all")}}function ke(De,ea){for(var Ta=Sn(ea),rl=new ao(De),Ja=b[De.type],nl=oe(De)[0],kl=nl;g.element(kl);){for(var ol=0;ol<Ja.length;ol++){var Dl=Ja[ol],zl=Dl.selector,Xl=Dl.context;if(be(kl,zl)&&ue(Xl,nl)&&ue(Xl,kl)){var El=Dl.listeners;rl.currentTarget=kl;for(var Ul=0;Ul<El.length;Ul++){var Hr=El[Ul];In(Hr.options,Ta)&&Hr.func(rl)}}}kl=Fe(kl)}}function Pe(De){return ke(De,!0)}return(i=t.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return O.supportsOptions=!0},get passive(){return O.supportsPassive=!0}}),t.events=O,O}},an={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,p=an.methodOrder;i<p.length;i++){var b=p[i],w=an[b](t);if(w)return w}return null},simulationResume:function(t){var i=t.pointerType,p=t.eventType,b=t.eventTarget,w=t.scope;if(!/down|start/i.test(p))return null;for(var O=0,Y=w.interactions.list;O<Y.length;O++){var ee=Y[O],ke=b;if(ee.simulation&&ee.simulation.allowResume&&ee.pointerType===i)for(;ke;){if(ke===ee.element)return ee;ke=Fe(ke)}}return null},mouseOrPen:function(t){var i,p=t.pointerId,b=t.pointerType,w=t.eventType,O=t.scope;if(b!=="mouse"&&b!=="pen")return null;for(var Y=0,ee=O.interactions.list;Y<ee.length;Y++){var ke=ee[Y];if(ke.pointerType===b){if(ke.simulation&&!On(ke,p))continue;if(ke.interacting())return ke;i||(i=ke)}}if(i)return i;for(var Pe=0,De=O.interactions.list;Pe<De.length;Pe++){var ea=De[Pe];if(!(ea.pointerType!==b||/down/i.test(w)&&ea.simulation))return ea}return null},hasPointer:function(t){for(var i=t.pointerId,p=0,b=t.scope.interactions.list;p<b.length;p++){var w=b[p];if(On(w,i))return w}return null},idle:function(t){for(var i=t.pointerType,p=0,b=t.scope.interactions.list;p<b.length;p++){var w=b[p];if(w.pointers.length===1){var O=w.interactable;if(O&&(!O.options.gesture||!O.options.gesture.enabled))continue}else if(w.pointers.length>=2)continue;if(!w.interacting()&&i===w.pointerType)return w}return null}};function On(t,i){return t.pointers.some(function(p){return p.id===i})}var En=an,Gr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Un(t,i){return function(p){var b=i.interactions.list,w=ye(p),O=oe(p),Y=O[0],ee=O[1],ke=[];if(/^touch/.test(p.type)){i.prevTouchTime=i.now();for(var Pe=0,De=p.changedTouches;Pe<De.length;Pe++){var ea=De[Pe],Ta={pointer:ea,pointerId:ce(ea),pointerType:w,eventType:p.type,eventTarget:Y,curEventTarget:ee,scope:i},rl=bn(Ta);ke.push([Ta.pointer,Ta.eventTarget,Ta.curEventTarget,rl])}}else{var Ja=!1;if(!le.supportsPointerEvent&&/mouse/.test(p.type)){for(var nl=0;nl<b.length&&!Ja;nl++)Ja=b[nl].pointerType!=="mouse"&&b[nl].pointerIsDown;Ja=Ja||i.now()-i.prevTouchTime<500||p.timeStamp===0}if(!Ja){var kl={pointer:p,pointerId:ce(p),pointerType:w,eventType:p.type,curEventTarget:ee,eventTarget:Y,scope:i},ol=bn(kl);ke.push([kl.pointer,kl.eventTarget,kl.curEventTarget,ol])}}for(var Dl=0;Dl<ke.length;Dl++){var zl=ke[Dl],Xl=zl[0],El=zl[1],Ul=zl[2];zl[3][t](Xl,p,El,Ul)}}}function bn(t){var i=t.pointerType,p=t.scope,b={interaction:En.search(t),searchDetails:t};return p.fire("interactions:find",b),b.interaction||p.interactions.new({pointerType:i})}function zo(t,i){var p=t.doc,b=t.scope,w=t.options,O=b.interactions.docEvents,Y=b.events,ee=Y[i];for(var ke in b.browser.isIOS&&!w.events&&(w.events={passive:!1}),Y.delegatedEvents)ee(p,ke,Y.delegateListener),ee(p,ke,Y.delegateUseCapture,!0);for(var Pe=w&&w.events,De=0;De<O.length;De++){var ea=O[De];ee(p,ea.type,ea.listener,Pe)}}var Vi={id:"core/interactions",install:function(t){for(var i={},p=0;p<Gr.length;p++){var b=Gr[p];i[b]=Un(b,t)}var w,O=le.pEventTypes;function Y(){for(var ee=0,ke=t.interactions.list;ee<ke.length;ee++){var Pe=ke[ee];if(Pe.pointerIsDown&&Pe.pointerType==="touch"&&!Pe._interacting)for(var De=function(){var rl=Ta[ea];t.documents.some(function(Ja){return ue(Ja.doc,rl.downTarget)})||Pe.removePointer(rl.pointer,rl.event)},ea=0,Ta=Pe.pointers;ea<Ta.length;ea++)De()}}(w=Z.PointerEvent?[{type:O.down,listener:Y},{type:O.down,listener:i.pointerDown},{type:O.move,listener:i.pointerMove},{type:O.up,listener:i.pointerUp},{type:O.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:Y},{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(ee){for(var ke=0,Pe=t.interactions.list;ke<Pe.length;ke++)Pe[ke].documentBlur(ee)}}),t.prevTouchTime=0,t.Interaction=function(ee){y(Pe,ee);var ke=R(Pe);function Pe(){return c(this,Pe),ke.apply(this,arguments)}return f(Pe,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(De){t.interactions.pointerMoveTolerance=De}},{key:"_now",value:function(){return t.now()}}]),Pe}(mr),t.interactions={list:[],new:function(ee){ee.scopeFire=function(Pe,De){return t.fire(Pe,De)};var ke=new t.Interaction(ee);return t.interactions.list.push(ke),ke},listeners:i,docEvents:w,pointerMoveTolerance:1},t.usePlugin(Or)},listeners:{"scope:add-document":function(t){return zo(t,"add")},"scope:remove-document":function(t){return zo(t,"remove")},"interactable:unset":function(t,i){for(var p=t.interactable,b=i.interactions.list.length-1;b>=0;b--){var w=i.interactions.list[b];w.interactable===p&&(w.stop(),i.fire("interactions:destroy",{interaction:w}),w.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(b,1))}}},onDocSignal:zo,doOnInteractions:Un,methodNames:Gr},Fi=Vi,Cn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(Cn||{}),Pi=function(){function t(i,p,b,w){c(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Mn,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||b,this._win=_(Ma(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=w,this.set(p)}return f(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,p){return g.func(p.onstart)&&this.on("".concat(i,"start"),p.onstart),g.func(p.onmove)&&this.on("".concat(i,"move"),p.onmove),g.func(p.onend)&&this.on("".concat(i,"end"),p.onend),g.func(p.oninertiastart)&&this.on("".concat(i,"inertiastart"),p.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,p,b){var w,O=this,Y=(w=this._actions.map[i])==null?void 0:w.filterEventType,ee=function(ke){return(Y==null||Y(ke))&&zr(ke,O._actions)};(g.array(p)||g.object(p))&&this._onOff(Cn.Off,i,p,void 0,ee),(g.array(b)||g.object(b))&&this._onOff(Cn.On,i,b,void 0,ee)}},{key:"setPerAction",value:function(i,p){var b=this._defaults;for(var w in p){var O=w,Y=this.options[i],ee=p[O];O==="listeners"&&this.updatePerActionListeners(i,Y.listeners,ee),g.array(ee)?Y[O]=Qe(ee):g.plainObject(ee)?(Y[O]=ne(Y[O]||{},Cr(ee)),g.object(b.perAction[O])&&"enabled"in b.perAction[O]&&(Y[O].enabled=ee.enabled!==!1)):g.bool(ee)&&g.object(b.perAction[O])?Y[O].enabled=ee:Y[O]=ee}}},{key:"getRect",value:function(i){return i=i||(g.element(this.target)?this.target:null),g.string(this.target)&&(i=i||this._context.querySelector(this.target)),Ye(i)}},{key:"rectChecker",value:function(i){var p=this;return g.func(i)?(this.getRect=function(b){var w=ne({},i.apply(p,b));return"width"in w||(w.width=w.right-w.left,w.height=w.bottom-w.top),w},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,p){if(Ma(p)||g.object(p)){for(var b in this.options[i]=p,this._actions.map)this.options[b][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 g.string(i)?Array.from(this._context.querySelectorAll(i)):g.func(i)&&i.getAllElements?i.getAllElements():g.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||ue(this._context,i)}},{key:"testIgnoreAllow",value:function(i,p,b){return!this.testIgnore(i.ignoreFrom,p,b)&&this.testAllow(i.allowFrom,p,b)}},{key:"testAllow",value:function(i,p,b){return!i||!!g.element(b)&&(g.string(i)?re(b,i,p):!!g.element(i)&&ue(i,b))}},{key:"testIgnore",value:function(i,p,b){return!(!i||!g.element(b))&&(g.string(i)?re(b,i,p):!!g.element(i)&&ue(i,b))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,p,b,w,O){g.object(p)&&!g.array(p)&&(w=b,b=null);var Y=Ue(p,b,O);for(var ee in Y){ee==="wheel"&&(ee=le.wheelEvent);for(var ke=0,Pe=Y[ee];ke<Pe.length;ke++){var De=Pe[ke];zr(ee,this._actions)?this.events[i===Cn.On?"on":"off"](ee,De):g.string(this.target)?this._scopeEvents[i===Cn.On?"addDelegate":"removeDelegate"](this.target,this._context,ee,De,w):this._scopeEvents[i===Cn.On?"add":"remove"](this.target,ee,De,w)}}return this}},{key:"on",value:function(i,p,b){return this._onOff(Cn.On,i,p,b)}},{key:"off",value:function(i,p,b){return this._onOff(Cn.Off,i,p,b)}},{key:"set",value:function(i){var p=this._defaults;for(var b in g.object(i)||(i={}),this.options=Cr(p.base),this._actions.methodDict){var w=b,O=this._actions.methodDict[w];this.options[w]={},this.setPerAction(w,ne(ne({},p.perAction),p.actions[w])),this[O](i[w])}for(var Y in i)Y!=="getRect"?g.func(this[Y])&&this[Y](i[Y]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var p=this._scopeEvents.delegatedEvents[i],b=p.length-1;b>=0;b--){var w=p[b],O=w.selector,Y=w.context,ee=w.listeners;O===this.target&&Y===this._context&&p.splice(b,1);for(var ke=ee.length-1;ke>=0;ke--)this._scopeEvents.removeDelegate(this.target,this._context,i,ee[ke][0],ee[ke][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),ji=function(){function t(i){var p=this;c(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(b){var w=b.interactable,O=w.target,Y=g.string(O)?p.selectorMap[O]:O[p.scope.id],ee=ze(Y,function(ke){return ke===w});Y.splice(ee,1)}})}return f(t,[{key:"new",value:function(i,p){p=ne(p||{},{actions:this.scope.actions});var b=new this.scope.Interactable(i,p,this.scope.document,this.scope.events);return this.scope.addDocument(b._doc),this.list.push(b),g.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(b)):(b.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(b)),this.scope.fire("interactable:new",{target:i,options:p,interactable:b,win:this.scope._win}),b}},{key:"getExisting",value:function(i,p){var b=p&&p.context||this.scope.document,w=g.string(i),O=w?this.selectorMap[i]:i[this.scope.id];if(O)return ka(O,function(Y){return Y._context===b&&(w||Y.inContext(i))})}},{key:"forEachMatch",value:function(i,p){for(var b=0,w=this.list;b<w.length;b++){var O=w[b],Y=void 0;if((g.string(O.target)?g.element(i)&&be(i,O.target):i===O.target)&&O.inContext(i)&&(Y=p(O)),Y!==void 0)return Y}}}]),t}(),Jo=function(){function t(){var i=this;c(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=le,this.defaults=Cr(xn),this.Eventable=Mn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(b){var w=function O(Y,ee){var ke=b.interactables.getExisting(Y,ee);return ke||((ke=b.interactables.new(Y,ee)).events.global=O.globalEvents),ke};return w.getPointerAverage=We,w.getTouchBBox=Oa,w.getTouchDistance=za,w.getTouchAngle=H,w.getElementRect=Ye,w.getElementClientRect=xe,w.matchesSelector=be,w.closest=Ne,w.globalEvents={},w.version="1.10.27",w.scope=b,w.use=function(O,Y){return this.scope.usePlugin(O,Y),this},w.isSet=function(O,Y){return!!this.scope.interactables.get(O,Y&&Y.context)},w.on=la(function(O,Y,ee){if(g.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),g.array(O)){for(var ke=0,Pe=O;ke<Pe.length;ke++){var De=Pe[ke];this.on(De,Y,ee)}return this}if(g.object(O)){for(var ea in O)this.on(ea,O[ea],Y);return this}return zr(O,this.scope.actions)?this.globalEvents[O]?this.globalEvents[O].push(Y):this.globalEvents[O]=[Y]:this.scope.events.add(this.scope.document,O,Y,{options:ee}),this},"The interact.on() method is being deprecated"),w.off=la(function(O,Y,ee){if(g.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),g.array(O)){for(var ke=0,Pe=O;ke<Pe.length;ke++){var De=Pe[ke];this.off(De,Y,ee)}return this}if(g.object(O)){for(var ea in O)this.off(ea,O[ea],Y);return this}var Ta;return zr(O,this.scope.actions)?O in this.globalEvents&&(Ta=this.globalEvents[O].indexOf(Y))!==-1&&this.globalEvents[O].splice(Ta,1):this.scope.events.remove(this.scope.document,O,Y,ee),this},"The interact.off() method is being deprecated"),w.debug=function(){return this.scope},w.supportsTouch=function(){return le.supportsTouch},w.supportsPointerEvent=function(){return le.supportsPointerEvent},w.stop=function(){for(var O=0,Y=this.scope.interactions.list;O<Y.length;O++)Y[O].stop();return this},w.pointerMoveTolerance=function(O){return g.number(O)?(this.scope.interactions.pointerMoveTolerance=O,this):this.scope.interactions.pointerMoveTolerance},w.addDocument=function(O,Y){this.scope.addDocument(O,Y)},w.removeDocument=function(O){this.scope.removeDocument(O)},w}(this),this.InteractEvent=Yr,this.Interactable=void 0,this.interactables=new ji(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(b){return i.removeDocument(b.target)};var p=this;this.Interactable=function(b){y(O,b);var w=R(O);function O(){return c(this,O),w.apply(this,arguments)}return f(O,[{key:"_defaults",get:function(){return p.defaults}},{key:"set",value:function(Y){return E(u(O.prototype),"set",this).call(this,Y),p.fire("interactable:set",{options:Y,interactable:this}),this}},{key:"unset",value:function(){E(u(O.prototype),"unset",this).call(this);var Y=p.interactables.list.indexOf(this);Y<0||(p.interactables.list.splice(Y,1),p.fire("interactable:unset",{interactable:this}))}}]),O}(Pi)}return f(t,[{key:"addListeners",value:function(i,p){this.listenerMaps.push({id:p,map:i})}},{key:"fire",value:function(i,p){for(var b=0,w=this.listenerMaps;b<w.length;b++){var O=w[b].map[i];if(O&&O(p,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(p,b){return p.isInitialized=!0,g.window(b)&&C(b),Z.init(b),le.init(b),Oe.init(b),p.window=b,p.document=b.document,p.usePlugin(Fi),p.usePlugin(Hn),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 b=0,w=this.listenerMaps.length,O=i.before.reduce(function(ee,ke){return ee[ke]=!0,ee[Xo(ke)]=!0,ee},{});b<w;b++){var Y=this.listenerMaps[b].id;if(Y&&(O[Y]||O[Xo(Y)]))break}this.listenerMaps.splice(b,0,{id:i.id,map:i.listeners})}else i.listeners&&this.listenerMaps.push({id:i.id,map:i.listeners});return this}},{key:"addDocument",value:function(i,p){if(this.getDocIndex(i)!==-1)return!1;var b=_(i);p=p?ne({},p):{},this.documents.push({doc:i,options:p}),this.events.documents.push(i),i!==this.document&&this.events.add(b,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:b,scope:this,options:p})}},{key:"removeDocument",value:function(i){var p=this.getDocIndex(i),b=_(i),w=this.documents[p].options;this.events.remove(b,"unload",this.onWindowUnload),this.documents.splice(p,1),this.events.documents.splice(p,1),this.fire("scope:remove-document",{doc:i,window:b,scope:this,options:w})}},{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()}}]),t}();function Xo(t){return t&&t.replace(/\/.*$/,"")}var Zo=new Jo,jr=Zo.interactStatic,Hi=typeof globalThis<"u"?globalThis:window;Zo.init(Hi);var Mo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(b){var w=b[0],O=b[1];return w in t||O in t}),p=function(b,w){for(var O=t.range,Y=t.limits,ee=Y===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:Y,ke=t.offset,Pe=ke===void 0?{x:0,y:0}:ke,De={range:O,grid:t,x:null,y:null},ea=0;ea<i.length;ea++){var Ta=i[ea],rl=Ta[0],Ja=Ta[1],nl=Math.round((b-Pe.x)/t[rl]),kl=Math.round((w-Pe.y)/t[Ja]);De[rl]=Math.max(ee.left,Math.min(ee.right,nl*t[rl]+Pe.x)),De[Ja]=Math.max(ee.top,Math.min(ee.bottom,kl*t[Ja]+Pe.y))}return De};return p.grid=t,p.coordFields=i,p}}),Ui={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=ne(i.snappers||{},Mo),i.createSnapGrid=i.snappers.grid}},Io=Ui,Qo={start:function(t){var i=t.state,p=t.rect,b=t.edges,w=t.pageCoords,O=i.options,Y=O.ratio,ee=O.enabled,ke=i.options,Pe=ke.equalDelta,De=ke.modifiers;Y==="preserve"&&(Y=p.width/p.height),i.startCoords=ne({},w),i.startRect=ne({},p),i.ratio=Y,i.equalDelta=Pe;var ea=i.linkedEdges={top:b.top||b.left&&!b.bottom,left:b.left||b.top&&!b.right,bottom:b.bottom||b.right&&!b.top,right:b.right||b.bottom&&!b.left};if(i.xIsPrimaryAxis=!(!b.left&&!b.right),i.equalDelta){var Ta=(ea.left?1:-1)*(ea.top?1:-1);i.edgeSign={x:Ta,y:Ta}}else i.edgeSign={x:ea.left?-1:1,y:ea.top?-1:1};if(ee!==!1&&ne(b,ea),De!=null&&De.length){var rl=new Mr(t.interaction);rl.copyFrom(t.interaction.modification),rl.prepareStates(De),i.subModification=rl,rl.startAll(o({},t))}},set:function(t){var i=t.state,p=t.rect,b=t.coords,w=i.linkedEdges,O=ne({},b),Y=i.equalDelta?ei:qi;if(ne(t.edges,w),Y(i,i.xIsPrimaryAxis,b,p),!i.subModification)return null;var ee=ne({},p);se(w,ee,{x:b.x-O.x,y:b.y-O.y});var ke=i.subModification.setAll(o(o({},t),{},{rect:ee,edges:w,pageCoords:b,prevCoords:b,prevRect:ee})),Pe=ke.delta;return ke.changed&&(Y(i,Math.abs(Pe.x)>Math.abs(Pe.y),ke.coords,ke.rect),ne(b,ke.coords)),ke.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function ei(t,i,p){var b=t.startCoords,w=t.edgeSign;i?p.y=b.y+(p.x-b.x)*w.y:p.x=b.x+(p.y-b.y)*w.x}function qi(t,i,p,b){var w=t.startRect,O=t.startCoords,Y=t.ratio,ee=t.edgeSign;if(i){var ke=b.width/Y;p.y=O.y+(ke-w.height)*ee.y}else{var Pe=b.height*Y;p.x=O.x+(Pe-w.width)*ee.x}}var Wi=Nr(Qo,"aspectRatio"),ai=function(){};ai._defaults={};var Dn=ai;function Nn(t,i,p){return g.func(t)?Ie(t,i.interactable,i.element,[p.x,p.y,i]):Ie(t,i.interactable,i.element)}var qn={start:function(t){var i=t.rect,p=t.startOffset,b=t.state,w=t.interaction,O=t.pageCoords,Y=b.options,ee=Y.elementRect,ke=ne({left:0,top:0,right:0,bottom:0},Y.offset||{});if(i&&ee){var Pe=Nn(Y.restriction,w,O);if(Pe){var De=Pe.right-Pe.left-i.width,ea=Pe.bottom-Pe.top-i.height;De<0&&(ke.left+=De,ke.right+=De),ea<0&&(ke.top+=ea,ke.bottom+=ea)}ke.left+=p.left-i.width*ee.left,ke.top+=p.top-i.height*ee.top,ke.right+=p.right-i.width*(1-ee.right),ke.bottom+=p.bottom-i.height*(1-ee.bottom)}b.offset=ke},set:function(t){var i=t.coords,p=t.interaction,b=t.state,w=b.options,O=b.offset,Y=Nn(w.restriction,p,i);if(Y){var ee=function(ke){return!ke||"left"in ke&&"top"in ke||((ke=ne({},ke)).left=ke.x||0,ke.top=ke.y||0,ke.right=ke.right||ke.left+ke.width,ke.bottom=ke.bottom||ke.top+ke.height),ke}(Y);i.x=Math.max(Math.min(ee.right-O.right,i.x),ee.left+O.left),i.y=Math.max(Math.min(ee.bottom-O.bottom,i.y),ee.top+O.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ki=Nr(qn,"restrict"),li={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ri={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ni(t,i){for(var p=0,b=["top","left","bottom","right"];p<b.length;p++){var w=b[p];w in t||(t[w]=i[w])}return t}var Wn={noInner:li,noOuter:ri,start:function(t){var i,p=t.interaction,b=t.startOffset,w=t.state,O=w.options;O&&(i=qe(Nn(O.offset,p,p.coords.start.page))),i=i||{x:0,y:0},w.offset={top:i.y+b.top,left:i.x+b.left,bottom:i.y-b.bottom,right:i.x-b.right}},set:function(t){var i=t.coords,p=t.edges,b=t.interaction,w=t.state,O=w.offset,Y=w.options;if(p){var ee=ne({},i),ke=Nn(Y.inner,b,ee)||{},Pe=Nn(Y.outer,b,ee)||{};ni(ke,li),ni(Pe,ri),p.top?i.y=Math.min(Math.max(Pe.top+O.top,ee.y),ke.top+O.top):p.bottom&&(i.y=Math.max(Math.min(Pe.bottom+O.bottom,ee.y),ke.bottom+O.bottom)),p.left?i.x=Math.min(Math.max(Pe.left+O.left,ee.x),ke.left+O.left):p.right&&(i.x=Math.max(Math.min(Pe.right+O.right,ee.x),ke.right+O.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},lo=Nr(Wn,"restrictEdges"),oi=ne({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},qn.defaults),ii=Nr({start:qn.start,set:qn.set,defaults:oi},"restrictRect"),ro={width:-1/0,height:-1/0},Gi={width:1/0,height:1/0},ti=Nr({start:function(t){return Wn.start(t)},set:function(t){var i=t.interaction,p=t.state,b=t.rect,w=t.edges,O=p.options;if(w){var Y=Ve(Nn(O.min,i,t.coords))||ro,ee=Ve(Nn(O.max,i,t.coords))||Gi;p.options={endOnly:O.endOnly,inner:ne({},Wn.noInner),outer:ne({},Wn.noOuter)},w.top?(p.options.inner.top=b.bottom-Y.height,p.options.outer.top=b.bottom-ee.height):w.bottom&&(p.options.inner.bottom=b.top+Y.height,p.options.outer.bottom=b.top+ee.height),w.left?(p.options.inner.left=b.right-Y.width,p.options.outer.left=b.right-ee.width):w.right&&(p.options.inner.right=b.left+Y.width,p.options.outer.right=b.left+ee.width),Wn.set(t),p.options=O}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Ln={start:function(t){var i,p=t.interaction,b=t.interactable,w=t.element,O=t.rect,Y=t.state,ee=t.startOffset,ke=Y.options,Pe=ke.offsetWithOrigin?function(Ta){var rl=Ta.interaction.element,Ja=qe(Ie(Ta.state.options.origin,null,null,[rl])),nl=Ja||$e(Ta.interactable,rl,Ta.interaction.prepared.name);return nl}(t):{x:0,y:0};if(ke.offset==="startCoords")i={x:p.coords.start.page.x,y:p.coords.start.page.y};else{var De=Ie(ke.offset,b,w,[p]);(i=qe(De)||{x:0,y:0}).x+=Pe.x,i.y+=Pe.y}var ea=ke.relativePoints;Y.offsets=O&&ea&&ea.length?ea.map(function(Ta,rl){return{index:rl,relativePoint:Ta,x:ee.left-O.width*Ta.x+i.x,y:ee.top-O.height*Ta.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,p=t.coords,b=t.state,w=b.options,O=b.offsets,Y=$e(i.interactable,i.element,i.prepared.name),ee=ne({},p),ke=[];w.offsetWithOrigin||(ee.x-=Y.x,ee.y-=Y.y);for(var Pe=0,De=O;Pe<De.length;Pe++)for(var ea=De[Pe],Ta=ee.x-ea.x,rl=ee.y-ea.y,Ja=0,nl=w.targets.length;Ja<nl;Ja++){var kl=w.targets[Ja],ol=void 0;(ol=g.func(kl)?kl(Ta,rl,i._proxy,ea,Ja):kl)&&ke.push({x:(g.number(ol.x)?ol.x:Ta)+ea.x,y:(g.number(ol.y)?ol.y:rl)+ea.y,range:g.number(ol.range)?ol.range:w.range,source:kl,index:Ja,offset:ea})}for(var Dl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},zl=0;zl<ke.length;zl++){var Xl=ke[zl],El=Xl.range,Ul=Xl.x-ee.x,Hr=Xl.y-ee.y,_r=La(Ul,Hr),Jr=_r<=El;El===1/0&&Dl.inRange&&Dl.range!==1/0&&(Jr=!1),Dl.target&&!(Jr?Dl.inRange&&El!==1/0?_r/El<Dl.distance/Dl.range:El===1/0&&Dl.range!==1/0||_r<Dl.distance:!Dl.inRange&&_r<Dl.distance)||(Dl.target=Xl,Dl.distance=_r,Dl.range=El,Dl.inRange=Jr,Dl.delta.x=Ul,Dl.delta.y=Hr)}return Dl.inRange&&(p.x=Dl.target.x,p.y=Dl.target.y),b.closest=Dl,Dl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Yi=Nr(Ln,"snap"),fo={start:function(t){var i=t.state,p=t.edges,b=i.options;if(!p)return null;t.state={options:{targets:null,relativePoints:[{x:p.left?0:1,y:p.top?0:1}],offset:b.offset||"self",origin:{x:0,y:0},range:b.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Ln.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,p=t.state,b=t.coords,w=p.options,O=p.offsets,Y={x:b.x-O[0].x,y:b.y-O[0].y};p.options=ne({},w),p.options.targets=[];for(var ee=0,ke=w.targets||[];ee<ke.length;ee++){var Pe=ke[ee],De=void 0;if(De=g.func(Pe)?Pe(Y.x,Y.y,i):Pe){for(var ea=0,Ta=p.targetFields;ea<Ta.length;ea++){var rl=Ta[ea],Ja=rl[0],nl=rl[1];if(Ja in De||nl in De){De.x=De[Ja],De.y=De[nl];break}}p.options.targets.push(De)}}var kl=Ln.set(t);return p.options=w,kl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Ji=Nr(fo,"snapSize"),Oo={aspectRatio:Wi,restrictEdges:lo,restrict:Ki,restrictRect:ii,restrictSize:ti,snapEdges:Nr({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],fo.start(t)):null},set:fo.set,defaults:ne(Cr(fo.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Yi,snapSize:Ji,spring:Dn,avoid:Dn,transform:Dn,rubberband:Dn},Xi={id:"modifiers",install:function(t){var i=t.interactStatic;for(var p in t.usePlugin(cr),t.usePlugin(Io),i.modifiers=Oo,Oo){var b=Oo[p],w=b._defaults,O=b._methods;w._methods=O,t.defaults.perAction[p]=w}}},Zi=Xi,si=function(t){y(p,t);var i=R(p);function p(b,w,O,Y,ee,ke){var Pe;if(c(this,p),P(D(Pe=i.call(this,ee)),O),O!==w&&P(D(Pe),w),Pe.timeStamp=ke,Pe.originalEvent=O,Pe.type=b,Pe.pointerId=ce(w),Pe.pointerType=ye(w),Pe.target=Y,Pe.currentTarget=null,b==="tap"){var De=ee.getPointerIndex(w);Pe.dt=Pe.timeStamp-ee.pointers[De].downTime;var ea=Pe.timeStamp-ee.tapTime;Pe.double=!!ee.prevTap&&ee.prevTap.type!=="doubletap"&&ee.prevTap.target===Pe.target&&ea<500}else b==="doubletap"&&(Pe.dt=w.timeStamp-ee.tapTime,Pe.double=!0);return Pe}return f(p,[{key:"_subtractOrigin",value:function(b){var w=b.x,O=b.y;return this.pageX-=w,this.pageY-=O,this.clientX-=w,this.clientY-=O,this}},{key:"_addOrigin",value:function(b){var w=b.x,O=b.y;return this.pageX+=w,this.pageY+=O,this.clientX+=w,this.clientY+=O,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),p}(we),Kn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Kn,t.defaults.actions.pointerEvents=Kn.defaults,ne(t.actions.phaselessTypes,Kn.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.down,p=t.pointerInfo;!i&&p.hold||(p.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var p=t.interaction,b=t.pointer,w=t.event,O=t.eventTarget;t.duplicate||p.pointerIsDown&&!p.pointerWasMoved||(p.pointerIsDown&&Lo(t),Bn({interaction:p,pointer:b,event:w,eventTarget:O,type:"move"},i))},"interactions:down":function(t,i){(function(p,b){for(var w=p.interaction,O=p.pointer,Y=p.event,ee=p.eventTarget,ke=p.pointerIndex,Pe=w.pointers[ke].hold,De=da(ee),ea={interaction:w,pointer:O,event:Y,eventTarget:ee,type:"hold",targets:[],path:De,node:null},Ta=0;Ta<De.length;Ta++){var rl=De[Ta];ea.node=rl,b.fire("pointerEvents:collect-targets",ea)}if(ea.targets.length){for(var Ja=1/0,nl=0,kl=ea.targets;nl<kl.length;nl++){var ol=kl[nl].eventable.options.holdDuration;ol<Ja&&(Ja=ol)}Pe.duration=Ja,Pe.timeout=setTimeout(function(){Bn({interaction:w,eventTarget:ee,pointer:O,event:Y,type:"hold"},b)},Ja)}})(t,i),Bn(t,i)},"interactions:up":function(t,i){Lo(t),Bn(t,i),function(p,b){var w=p.interaction,O=p.pointer,Y=p.event,ee=p.eventTarget;w.pointerWasMoved||Bn({interaction:w,eventTarget:ee,pointer:O,event:Y,type:"tap"},b)}(t,i)},"interactions:cancel":function(t,i){Lo(t),Bn(t,i)}},PointerEvent:si,fire:Bn,collectEventTargets:ci,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 Bn(t,i){var p=t.interaction,b=t.pointer,w=t.event,O=t.eventTarget,Y=t.type,ee=t.targets,ke=ee===void 0?ci(t,i):ee,Pe=new si(Y,b,w,O,p,i.now());i.fire("pointerEvents:new",{pointerEvent:Pe});for(var De={interaction:p,pointer:b,event:w,eventTarget:O,targets:ke,type:Y,pointerEvent:Pe},ea=0;ea<ke.length;ea++){var Ta=ke[ea];for(var rl in Ta.props||{})Pe[rl]=Ta.props[rl];var Ja=$e(Ta.eventable,Ta.node);if(Pe._subtractOrigin(Ja),Pe.eventable=Ta.eventable,Pe.currentTarget=Ta.node,Ta.eventable.fire(Pe),Pe._addOrigin(Ja),Pe.immediatePropagationStopped||Pe.propagationStopped&&ea+1<ke.length&&ke[ea+1].node!==Pe.currentTarget)break}if(i.fire("pointerEvents:fired",De),Y==="tap"){var nl=Pe.double?Bn({interaction:p,pointer:b,event:w,eventTarget:O,type:"doubletap"},i):Pe;p.prevTap=nl,p.tapTime=nl.timeStamp}return Pe}function ci(t,i){var p=t.interaction,b=t.pointer,w=t.event,O=t.eventTarget,Y=t.type,ee=p.getPointerIndex(b),ke=p.pointers[ee];if(Y==="tap"&&(p.pointerWasMoved||!ke||ke.downTarget!==O))return[];for(var Pe=da(O),De={interaction:p,pointer:b,event:w,eventTarget:O,type:Y,path:Pe,targets:[],node:null},ea=0;ea<Pe.length;ea++){var Ta=Pe[ea];De.node=Ta,i.fire("pointerEvents:collect-targets",De)}return Y==="hold"&&(De.targets=De.targets.filter(function(rl){var Ja,nl;return rl.eventable.options.holdDuration===((Ja=p.pointers[ee])==null||(nl=Ja.hold)==null?void 0:nl.duration)})),De.targets}function Lo(t){var i=t.interaction,p=t.pointerIndex,b=i.pointers[p].hold;b&&b.timeout&&(clearTimeout(b.timeout),b.timeout=null)}var Qi=Object.freeze({__proto__:null,default:Kn});function ho(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var et={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Kn);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(t,i){return t["pointerEvents:".concat(i)]=ho,t},{"pointerEvents:new":function(t){var i=t.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var p=t.interaction,b=t.pointerEvent,w=t.eventTarget,O=t.targets;if(b.type==="hold"&&O.length){var Y=O[0].eventable.options.holdRepeatInterval;Y<=0||(p.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:p,eventTarget:w,type:"hold",pointer:b,event:b},i)},Y))}}})},at=et,lt={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(b){return ne(this.events.options,b),this};var p=i.prototype._backCompatOption;i.prototype._backCompatOption=function(b,w){var O=p.call(this,b,w);return O===this&&(this.events.options[b]=w),O}},listeners:{"pointerEvents:collect-targets":function(t,i){var p=t.targets,b=t.node,w=t.type,O=t.eventTarget;i.interactables.forEachMatch(b,function(Y){var ee=Y.events,ke=ee.options;ee.types[w]&&ee.types[w].length&&Y.testIgnoreAllow(ke,b,O)&&p.push({node:b,eventable:ee,props:{interactable:Y}})})},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(p){return i.getRect(p)}},"interactable:set":function(t,i){var p=t.interactable,b=t.options;ne(p.events.options,i.pointerEvents.defaults),ne(p.events.options,b.pointerEvents||{})}}},rt=lt,ui={id:"pointer-events",install:function(t){t.usePlugin(Qi),t.usePlugin(at),t.usePlugin(rt)}},vo=ui,nt={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(p){return function(b,w,O){for(var Y=b.getAllElements(),ee=O.window.Promise,ke=ee?[]:null,Pe=function(){var ea=Y[De],Ta=b.getRect(ea);if(!Ta)return 1;var rl,Ja=ka(O.interactions.list,function(ol){return ol.interacting()&&ol.interactable===b&&ol.element===ea&&ol.prepared.name===w.name});if(Ja)Ja.move(),ke&&(rl=Ja._reflowPromise||new ee(function(ol){Ja._reflowResolve=ol}));else{var nl=Ve(Ta),kl=function(ol){return{coords:ol,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:nl.x,y:nl.y},client:{x:nl.x,y:nl.y},timeStamp:O.now()});rl=function(ol,Dl,zl,Xl,El){var Ul=ol.interactions.new({pointerType:"reflow"}),Hr={interaction:Ul,event:El,pointer:El,eventTarget:zl,phase:"reflow"};Ul.interactable=Dl,Ul.element=zl,Ul.prevEvent=El,Ul.updatePointer(El,El,zl,!0),he(Ul.coords.delta),Ze(Ul.prepared,Xl),Ul._doPhase(Hr);var _r=ol.window,Jr=_r.Promise,tn=Jr?new Jr(function(fn){Ul._reflowResolve=fn}):void 0;return Ul._reflowPromise=tn,Ul.start(Xl,Dl,zl),Ul._interacting?(Ul.move(Hr),Ul.end(El)):(Ul.stop(),Ul._reflowResolve()),Ul.removePointer(El,El),tn}(O,b,ea,w,kl)}ke&&ke.push(rl)},De=0;De<Y.length&&!Pe();De++);return ke&&ee.all(ke).then(function(){return b})}(this,p,t)}},listeners:{"interactions:stop":function(t,i){var p=t.interaction;p.pointerType==="reflow"&&(p._reflowResolve&&p._reflowResolve(),function(b,w){b.splice(b.indexOf(w),1)}(i.interactions.list,p))}}},ot=nt;if(jr.use(Or),jr.use(yr),jr.use(vo),jr.use(on),jr.use(Zi),jr.use(Ml),jr.use(al),jr.use(X),jr.use(ot),jr.default=jr,s(l)==="object"&&l)try{l.exports=jr}catch{}return jr.default=jr,jr})}(Po,Po.exports)),Po.exports}var f1=p1();const Ms=Pn.getDefaultExportFromCjs(f1),Li=a.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(l,{expose:r,emit:n}){const o=l,s=n,c=a.inject(Hc),m=a.inject(Uc);if(!c)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const f=a.shallowRef(null),h=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,u=!1,x=NaN,D=NaN,R=NaN,E=NaN,W=-1,I=-1,U=-1,j=-1,C=o.x,_=o.y,S=o.w,k=o.h;const g=a.ref(),z=a.reactive({i:a.toRef(o,"i"),state:h,wrapper:g,calcXY:Ie});function $(me){Ue(me)}function G(){Na()}function de(me){un(o.isDraggable)&&(h.draggable=me)}function Me(me){un(o.isResizable)&&(h.resizable=me)}function pe(me){un(o.isBounded)&&(h.bounded=me)}function Z(me){h.transformScale=me}function fe(me){h.rowHeight=me}function le(me){h.maxRows=me}function ue(){h.rtl=As()==="rtl",Na()}function Ne(me){h.cols=Math.floor(me)}c.increaseItem(z),a.onBeforeMount(()=>{h.rtl=As()==="rtl"}),a.onMounted(()=>{c.responsive&&c.lastBreakpoint?h.cols=Yc(c.lastBreakpoint,c.cols):h.cols=c.colNum,h.rowHeight=c.rowHeight,h.containerWidth=c.width!==null?c.width:100,h.margin=c.margin!==void 0?c.margin.map(Number):[10,10],h.maxRows=c.maxRows,un(o.isDraggable)?h.draggable=c.isDraggable:h.draggable=o.isDraggable,un(o.isResizable)?h.resizable=c.isResizable:h.resizable=o.isResizable,un(o.isBounded)?h.bounded=c.isBounded:h.bounded=o.isBounded,h.transformScale=c.transformScale,h.useCssTransforms=c.useCssTransforms,h.useStyleCursor=c.useStyleCursor,a.watchEffect(()=>{C=o.x,_=o.y,k=o.h,S=o.w,Xr(Ye)}),m.on("updateWidth",$),m.on("compact",G),m.on("setDraggable",de),m.on("setResizable",Me),m.on("setBounded",pe),m.on("setTransformScale",Z),m.on("setRowHeight",fe),m.on("setMaxRows",le),m.on("directionchange",ue),m.on("setColNum",Ne)}),a.onBeforeUnmount(()=>{m.off("updateWidth",$),m.off("compact",G),m.off("setDraggable",de),m.off("setResizable",Me),m.off("setBounded",pe),m.off("setTransformScale",Z),m.off("setRowHeight",fe),m.off("setMaxRows",le),m.off("directionchange",ue),m.off("setColNum",Ne),f.value&&(f.value.unset(),f.value=null),c.decreaseItem(z)}),r({state:h,wrapper:g});const Fe=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,be=a.computed(()=>h.resizable&&!o.static),A=a.computed(()=>c.isMirrored?!h.rtl:h.rtl),q=a.computed(()=>(h.draggable||h.resizable)&&!o.static),re=r1("item"),Te=a.computed(()=>({[re.b()]:!0,[re.bm("resizable")]:be.value,[re.bm("static")]:o.static,[re.bm("resizing")]:h.isResizing,[re.bm("dragging")]:h.isDragging,[re.bm("transform")]:h.useCssTransforms,[re.bm("rtl")]:A.value,[re.bm("no-touch")]:Fe&&q.value})),xe=a.computed(()=>[re.be("resizer"),A.value&&re.bem("resizer","rtl")].filter(Boolean));a.watch(()=>o.isDraggable,me=>{h.draggable=me}),a.watch(()=>o.static,()=>{Xr(P),Xr(he)}),a.watch(()=>h.draggable,()=>{Xr(P)}),a.watch(()=>o.isResizable,me=>{h.resizable=me}),a.watch(()=>o.isBounded,me=>{h.bounded=me}),a.watch(()=>h.resizable,()=>{Xr(he)}),a.watch(()=>h.rowHeight,()=>{Xr(Ye),Xr(da)}),a.watch([()=>h.cols,()=>h.containerWidth],()=>{Xr(he),Xr(Ye),Xr(da)}),a.watch([()=>o.minH,()=>o.maxH,()=>o.minW,()=>o.maxW],()=>{Xr(he)}),a.watch(A,()=>{Xr(he),Xr(Ye)}),a.watch([()=>c.margin,()=>c.margin[0],()=>c.margin[1]],()=>{const me=c.margin;!me||me[0]===h.margin[0]&&me[1]===h.margin[1]||(h.margin=me.map(Number),Xr(Ye),Xr(da))});function Ye(){o.x+o.w>h.cols?(C=0,S=o.w>h.cols?h.cols:o.w):(C=o.x,S=o.w);const me=Ae(C,_,S,k);h.isDragging&&(me.top=h.dragging.top,A.value?me.right=h.dragging.left:me.left=h.dragging.left),h.isResizing&&(me.width=h.resizing.width,me.height=h.resizing.height);let fa;h.useCssTransforms?A.value?fa=Q6(me.top,me.right,me.width,me.height):fa=Z6(me.top,me.left,me.width,me.height):A.value?fa=a1(me.top,me.right,me.width,me.height):fa=e1(me.top,me.left,me.width,me.height),h.style=fa}function da(){const me={};for(const fa of["width","height"]){const Xe=h.style[fa].match(/^(\d+)px$/);if(!Xe)return;me[fa]=Xe[1]}s("container-resized",o.i,o.h,o.w,me.height,me.width)}function Ma(me){if(o.static)return;const fa=me.type;if(fa==="resizestart"&&h.isResizing||fa!=="resizestart"&&!h.isResizing)return;const Xe=Bs(me);if(un(Xe))return;const{x:ce,y:Ee}=Xe,ma={width:0,height:0};let We;switch(fa){case"resizestart":{he(),W=S,I=k,We=Ae(C,_,S,k),ma.width=We.width,ma.height=We.height,h.resizing=ma,h.isResizing=!0;break}case"resizemove":{!me.edges.right&&!me.edges.left&&(R=ce),!me.edges.top&&!me.edges.bottom&&(E=Ee);const Oa=Ts(R,E,ce,Ee);A.value?ma.width=h.resizing.width-Oa.deltaX/h.transformScale:ma.width=h.resizing.width+Oa.deltaX/h.transformScale,ma.height=h.resizing.height+Oa.deltaY/h.transformScale,h.resizing=ma;break}case"resizeend":{We=Ae(C,_,S,k),ma.width=We.width,ma.height=We.height,h.resizing={width:-1,height:-1},h.isResizing=!1;break}}We=$e(ma.height,ma.width),We.w<o.minW&&(We.w=o.minW),We.w>o.maxW&&(We.w=o.maxW),We.h<o.minH&&(We.h=o.minH),We.h>o.maxH&&(We.h=o.maxH),We.h<1&&(We.h=1),We.w<1&&(We.w=1),R=ce,E=Ee,(S!==We.w||k!==We.h)&&s("resize",o.i,We.h,We.w,ma.height,ma.width),me.type==="resizeend"&&(W!==S||I!==k)&&s("resized",o.i,We.h,We.w,ma.height,ma.width),m.emit("resizeEvent",me.type,o.i,C,_,We.h,We.w)}function ne(me){if(o.static||h.isResizing)return;const fa=me.type;if(fa==="dragstart"&&h.isDragging||fa!=="dragstart"&&!h.isDragging)return;const Xe=Bs(me);if(un(Xe))return;const{x:ce,y:Ee}=Xe,ma=me.target;if(!ma.offsetParent)return;const We={top:0,left:0};switch(fa){case"dragstart":{U=C,j=_;const za=ma.offsetParent.getBoundingClientRect(),H=ma.getBoundingClientRect(),ye=H.left/h.transformScale,oe=za.left/h.transformScale,we=H.right/h.transformScale,Q=za.right/h.transformScale,Qe=H.top/h.transformScale,ze=za.top/h.transformScale;A.value?We.left=(we-Q)*-1:We.left=ye-oe,We.top=Qe-ze,h.dragging=We,h.isDragging=!0;break}case"dragmove":{const za=Ts(x,D,ce,Ee);if(A.value?We.left=h.dragging.left-za.deltaX/h.transformScale:We.left=h.dragging.left+za.deltaX/h.transformScale,We.top=h.dragging.top+za.deltaY/h.transformScale,h.bounded){const H=ma.offsetParent.clientHeight-Ve(o.h,h.rowHeight,h.margin[1]);We.top=se(We.top,0,H);const ye=qe(),oe=h.containerWidth-Ve(o.w,ye,h.margin[0]);We.left=se(We.left,0,oe)}h.dragging=We;break}case"dragend":{const za=ma.offsetParent.getBoundingClientRect(),H=ma.getBoundingClientRect(),ye=H.left/h.transformScale,oe=za.left/h.transformScale,we=H.right/h.transformScale,Q=za.right/h.transformScale,Qe=H.top/h.transformScale,ze=za.top/h.transformScale;A.value?We.left=(we-Q)*-1:We.left=ye-oe,We.top=Qe-ze,h.dragging={top:-1,left:-1},h.isDragging=!1;break}}let Oa;A.value,Oa=Ie(We.top,We.left),x=ce,D=Ee,(C!==Oa.x||_!==Oa.y)&&s("move",o.i,Oa.x,Oa.y),me.type==="dragend"&&(U!==C||j!==_)&&s("moved",o.i,Oa.x,Oa.y),m.emit("dragEvent",me.type,o.i,Oa.x,Oa.y,k,S)}function Ae(me,fa,Xe,ce){const Ee=qe();let ma;return A.value?ma={right:Math.round(Ee*me+(me+1)*h.margin[0]),top:Math.round(h.rowHeight*fa+(fa+1)*h.margin[1]),width:Xe===1/0?Xe:Math.round(Ee*Xe+Math.max(0,Xe-1)*h.margin[0]),height:ce===1/0?ce:Math.round(h.rowHeight*ce+Math.max(0,ce-1)*h.margin[1])}:ma={left:Math.round(Ee*me+(me+1)*h.margin[0]),top:Math.round(h.rowHeight*fa+(fa+1)*h.margin[1]),width:Xe===1/0?Xe:Math.round(Ee*Xe+Math.max(0,Xe-1)*h.margin[0]),height:ce===1/0?ce:Math.round(h.rowHeight*ce+Math.max(0,ce-1)*h.margin[1])},ma}function Ie(me,fa){const Xe=qe();let ce=Math.round((fa-h.margin[0])/(Xe+h.margin[0])),Ee=Math.round((me-h.margin[1])/(h.rowHeight+h.margin[1]));return ce=Math.max(Math.min(ce,h.cols-S),0),Ee=Math.max(Math.min(Ee,h.maxRows-k),0),{x:ce,y:Ee}}function qe(){return(h.containerWidth-h.margin[0]*(h.cols+1))/h.cols}function Ve(me,fa,Xe){return Number.isFinite(me)?Math.round(fa*me+Math.max(0,me-1)*Xe):me}function se(me,fa,Xe){return Math.max(Math.min(me,Xe),fa)}function $e(me,fa,Xe=!1){const ce=qe();let Ee=Math.round((fa+h.margin[0])/(ce+h.margin[0])),ma=0;return Xe?ma=Math.ceil((me+h.margin[1])/(h.rowHeight+h.margin[1])):ma=Math.round((me+h.margin[1])/(h.rowHeight+h.margin[1])),Ee=Math.max(Math.min(Ee,h.cols-C),0),ma=Math.max(Math.min(ma,h.maxRows-_),0),{w:Ee,h:ma}}function Ue(me,fa){h.containerWidth=me}function Na(){Ye()}function La(){!f.value&&g.value&&(f.value=Ms(g.value),h.useStyleCursor||f.value.styleCursor(!1))}const V=Cs(ne);function P(){if(La(),!!f.value)if(h.draggable&&!o.static){const me={ignoreFrom:o.dragIgnoreFrom,allowFrom:o.dragAllowFrom,...o.dragOption};f.value.draggable(me),y||(y=!0,f.value.on("dragstart dragmove dragend",fa=>{fa.type==="dragmove"?V(fa):ne(fa)}))}else f.value.draggable({enabled:!1})}const ae=Cs(Ma);function he(){if(La(),!!f.value)if(h.resizable&&!o.static){const me=Ae(0,0,o.maxW,o.maxH),fa=Ae(0,0,o.minW,o.minH),Xe={edges:{left:A.value?`.${xe.value[0]}`:!1,right:A.value?!1:`.${xe.value[0]}`,bottom:`.${xe.value[0]}`,top:!1},ignoreFrom:o.resizeIgnoreFrom,restrictSize:{min:{height:fa.height*h.transformScale,width:fa.width*h.transformScale},max:{height:me.height*h.transformScale,width:me.width*h.transformScale}},...o.resizeOption};o.preserveAspectRatio&&(Xe.modifiers=[Ms.modifiers.aspectRatio({ratio:"preserve"})]),f.value.resizable(Xe),u||(u=!0,f.value.on("resizestart resizemove resizeend",ce=>{ce.type==="resizemove"?ae(ce):Ma(ce)}))}else f.value.resizable({enabled:!1})}return(me,fa)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(Te.value),style:a.normalizeStyle(h.style)},[a.renderSlot(me.$slots,"default"),be.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(xe.value)},null,2)):a.createCommentVNode("",!0)],6))}}),po=typeof window<"u";var Is;po&&(Is=window==null?void 0:window.navigator)!=null&&Is.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Os(l){return l!=null}function Ls(){}const h1=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(h1)));const v1=po&&("ontouchstart"in window||y1()>0),m1=v1?"pointerdown":"click";function y1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function g1(l,r,n=window.Event){const{type:o,bubbles:s=!1,cancelable:c=!1,...m}=r;if(!Os(o)||o==="")return!1;let f;return Os(n)?f=new n(o,{bubbles:s,cancelable:c}):(f=document.createEvent("HTMLEvents"),f.initEvent(o,s,c)),Object.assign(f,m),l.dispatchEvent(f)}const b1="clickoutside",k1=new Set;po&&document.addEventListener(m1,l=>{const r=l.target,n=l.composedPath&&l.composedPath();k1.forEach(o=>{o!==r&&(n?!n.includes(o):!o.contains(r))&&(!o.__transferElement||o.__transferElement!==r&&!o.__transferElement.contains(r))&&g1(o,{type:b1})})},!0);const x1=[["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 Si;if(po){for(const l of x1)if(l[1]in document){Si=l;break}}a.computed(()=>!1);const w1=new Set,_1=new WeakMap;if(po&&Si){const l=Si[2],r=Si[4];document.addEventListener(r,()=>{if(w1.forEach(n=>{n.value=!1}),document[l]){const n=_1.get(document[l]);n&&(n.value=!0)}},!1)}const Xc=new Map;Xc.set("x",0);Xc.set("y",0);var co=[],S1=function(){return co.some(function(l){return l.activeTargets.length>0})},E1=function(){return co.some(function(l){return l.skippedTargets.length>0})},$s="ResizeObserver loop completed with undelivered notifications.",C1=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:$s}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=$s),window.dispatchEvent(l)},Yo;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Yo||(Yo={}));var uo=function(l){return Object.freeze(l)},D1=function(){function l(r,n){this.inlineSize=r,this.blockSize=n,uo(this)}return l}(),Zc=function(){function l(r,n,o,s){return this.x=r,this.y=n,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,uo(this)}return l.prototype.toJSON=function(){var r=this,n=r.x,o=r.y,s=r.top,c=r.right,m=r.bottom,f=r.left,h=r.width,y=r.height;return{x:n,y:o,top:s,right:c,bottom:m,left:f,width:h,height:y}},l.fromRect=function(r){return new l(r.x,r.y,r.width,r.height)},l}(),zt=function(l){return l instanceof SVGElement&&"getBBox"in l},Qc=function(l){if(zt(l)){var r=l.getBBox(),n=r.width,o=r.height;return!n&&!o}var s=l,c=s.offsetWidth,m=s.offsetHeight;return!(c||m||l.getClientRects().length)},Rs=function(l){var r;if(l instanceof Element)return!0;var n=(r=l==null?void 0:l.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&l instanceof n.Element)},N1=function(l){switch(l.tagName){case"INPUT":if(l.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Wo=typeof window<"u"?window:{},ki=new WeakMap,Vs=/auto|scroll/,B1=/^tb|vertical/,T1=/msie|trident/i.test(Wo.navigator&&Wo.navigator.userAgent),An=function(l){return parseFloat(l||"0")},No=function(l,r,n){return l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=!1),new D1((n?r:l)||0,(n?l:r)||0)},Fs=uo({devicePixelContentBoxSize:No(),borderBoxSize:No(),contentBoxSize:No(),contentRect:new Zc(0,0,0,0)}),eu=function(l,r){if(r===void 0&&(r=!1),ki.has(l)&&!r)return ki.get(l);if(Qc(l))return ki.set(l,Fs),Fs;var n=getComputedStyle(l),o=zt(l)&&l.ownerSVGElement&&l.getBBox(),s=!T1&&n.boxSizing==="border-box",c=B1.test(n.writingMode||""),m=!o&&Vs.test(n.overflowY||""),f=!o&&Vs.test(n.overflowX||""),h=o?0:An(n.paddingTop),y=o?0:An(n.paddingRight),u=o?0:An(n.paddingBottom),x=o?0:An(n.paddingLeft),D=o?0:An(n.borderTopWidth),R=o?0:An(n.borderRightWidth),E=o?0:An(n.borderBottomWidth),W=o?0:An(n.borderLeftWidth),I=x+y,U=h+u,j=W+R,C=D+E,_=f?l.offsetHeight-C-l.clientHeight:0,S=m?l.offsetWidth-j-l.clientWidth:0,k=s?I+j:0,g=s?U+C:0,z=o?o.width:An(n.width)-k-S,$=o?o.height:An(n.height)-g-_,G=z+I+S+j,de=$+U+_+C,Me=uo({devicePixelContentBoxSize:No(Math.round(z*devicePixelRatio),Math.round($*devicePixelRatio),c),borderBoxSize:No(G,de,c),contentBoxSize:No(z,$,c),contentRect:new Zc(x,h,z,$)});return ki.set(l,Me),Me},au=function(l,r,n){var o=eu(l,n),s=o.borderBoxSize,c=o.contentBoxSize,m=o.devicePixelContentBoxSize;switch(r){case Yo.DEVICE_PIXEL_CONTENT_BOX:return m;case Yo.BORDER_BOX:return s;default:return c}},A1=function(){function l(r){var n=eu(r);this.target=r,this.contentRect=n.contentRect,this.borderBoxSize=uo([n.borderBoxSize]),this.contentBoxSize=uo([n.contentBoxSize]),this.devicePixelContentBoxSize=uo([n.devicePixelContentBoxSize])}return l}(),lu=function(l){if(Qc(l))return 1/0;for(var r=0,n=l.parentNode;n;)r+=1,n=n.parentNode;return r},z1=function(){var l=1/0,r=[];co.forEach(function(c){if(c.activeTargets.length!==0){var m=[];c.activeTargets.forEach(function(f){var h=new A1(f.target),y=lu(f.target);m.push(h),f.lastReportedSize=au(f.target,f.observedBox),y<l&&(l=y)}),r.push(function(){c.callback.call(c.observer,m,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var n=0,o=r;n<o.length;n++){var s=o[n];s()}return l},Ps=function(l){co.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(n){n.isActive()&&(lu(n.target)>l?r.activeTargets.push(n):r.skippedTargets.push(n))})})},M1=function(){var l=0;for(Ps(l);S1();)l=z1(),Ps(l);return E1()&&C1(),l>0},ft,ru=[],I1=function(){return ru.splice(0).forEach(function(l){return l()})},O1=function(l){if(!ft){var r=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return I1()}).observe(n,o),ft=function(){n.textContent="".concat(r?r--:r++)}}ru.push(l),ft()},L1=function(l){O1(function(){requestAnimationFrame(l)})},Ei=0,$1=function(){return!!Ei},R1=250,V1={attributes:!0,characterData:!0,childList:!0,subtree:!0},js=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Hs=function(l){return l===void 0&&(l=0),Date.now()+l},ht=!1,F1=function(){function l(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return l.prototype.run=function(r){var n=this;if(r===void 0&&(r=R1),!ht){ht=!0;var o=Hs(r);L1(function(){var s=!1;try{s=M1()}finally{if(ht=!1,r=o-Hs(),!$1())return;s?n.run(1e3):r>0?n.run(r):n.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var r=this,n=function(){return r.observer&&r.observer.observe(document.body,V1)};document.body?n():Wo.addEventListener("DOMContentLoaded",n)},l.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),js.forEach(function(n){return Wo.addEventListener(n,r.listener,!0)}))},l.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),js.forEach(function(n){return Wo.removeEventListener(n,r.listener,!0)}),this.stopped=!0)},l}(),Dt=new F1,Us=function(l){!Ei&&l>0&&Dt.start(),Ei+=l,!Ei&&Dt.stop()},P1=function(l){return!zt(l)&&!N1(l)&&getComputedStyle(l).display==="inline"},j1=function(){function l(r,n){this.target=r,this.observedBox=n||Yo.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var r=au(this.target,this.observedBox,!0);return P1(this.target)&&(this.lastReportedSize=r),this.lastReportedSize.inlineSize!==r.inlineSize||this.lastReportedSize.blockSize!==r.blockSize},l}(),H1=function(){function l(r,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=n}return l}(),xi=new WeakMap,qs=function(l,r){for(var n=0;n<l.length;n+=1)if(l[n].target===r)return n;return-1},wi=function(){function l(){}return l.connect=function(r,n){var o=new H1(r,n);xi.set(r,o)},l.observe=function(r,n,o){var s=xi.get(r),c=s.observationTargets.length===0;qs(s.observationTargets,n)<0&&(c&&co.push(s),s.observationTargets.push(new j1(n,o&&o.box)),Us(1),Dt.schedule())},l.unobserve=function(r,n){var o=xi.get(r),s=qs(o.observationTargets,n),c=o.observationTargets.length===1;s>=0&&(c&&co.splice(co.indexOf(o),1),o.observationTargets.splice(s,1),Us(-1))},l.disconnect=function(r){var n=this,o=xi.get(r);o.observationTargets.slice().forEach(function(s){return n.unobserve(r,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},l}(),U1=function(){function l(r){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof r!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");wi.connect(this,r)}return l.prototype.observe=function(r,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Rs(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wi.observe(this,r,n)},l.prototype.unobserve=function(r){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Rs(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wi.unobserve(this,r)},l.prototype.disconnect=function(){wi.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const $i=new WeakMap;function q1(l){var r;for(let n=0,o=l.length;n<o;++n){const s=l[n],c=$i.get(s.target);if(typeof c=="function"){const{inlineSize:m,blockSize:f}=((r=s.borderBoxSize)==null?void 0:r[0])??{},{offsetWidth:h,offsetHeight:y}=s.target;c(Object.assign(s,{offsetWidth:h,offsetHeight:y,width:m??h,height:f??y}))}}}const nu=new(po&&window.ResizeObserver||U1)(q1);function Ws(l,r){$i.set(l,r),nu.observe(l)}function Ks(l){$i.has(l)&&(nu.unobserve(l),$i.delete(l))}function W1(l={}){let r=Ls;const n=a.watch(()=>a.unref(l.target),s=>{r(),!(!s||typeof l.onResize!="function")&&(Ws(s,l.onResize),r=()=>{Ks(s),r=Ls})},{immediate:!0}),o=()=>{n(),r()};return a.getCurrentScope()&&a.onScopeDispose(o),{observeResize:Ws,unobserveResize:Ks,unobserve:o}}const K1=a.ref(!1);a.computed(()=>K1.value);const Gs="__theme_style__",vt="__theme_observer__",Ys=a.reactive(new Map),Js=new Map;a.watch(Ys,()=>{if(!po)return;Js.clear();const l=document.head.querySelector(`#${Gs}`);l&&document.head.removeChild(l);const r=document.createElement("style");let n=`.${vt} { width: 1px }`,o=1;for(const[s,[c,m]]of Ys.entries())n+=` html.${c} .${vt}, .${m} .${vt} { width: ${++o}px }`,Js.set(o,s);r.textContent=n,r.id=Gs,document.head.appendChild(r)});const ou=a.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(l,{expose:r,emit:n}){const o=l,s=n,c=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),m=new Map,f=a.ref(o.layout),h=a.ref(),{observeResize:y,unobserveResize:u}=W1(),x=q6();x.on("resizeEvent",D),x.on("dragEvent",R),a.onBeforeMount(()=>{s("layout-before-mount",f.value)}),a.onMounted(()=>{s("layout-mounted",f.value),a.nextTick(()=>{l1(f.value),c.originalLayout=f.value,a.nextTick(()=>{$(),h.value&&y(h.value,W6(C,16)),Eo(f.value,o.verticalCompact),s("layout-updated",f.value),j(),C()})})}),a.onBeforeUnmount(()=>{x.clearAll(),h.value&&u(h.value)});function D(de,Me,pe,Z,fe,le){g(de,Me,pe,Z,fe,le)}function R(de,Me,pe,Z,fe,le){k(de,Me,pe,Z,fe,le)}a.watch(()=>c.width,(de,Me)=>{a.nextTick(()=>{x.emit("updateWidth",de),Me===-1&&a.nextTick(()=>{s("layout-ready",f.value)}),j()})}),a.watch(()=>[o.layout,o.layout.length],()=>{f.value=o.layout,U()}),a.watch(()=>o.colNum,de=>{x.emit("setColNum",de)}),a.watch(()=>o.rowHeight,de=>{x.emit("setRowHeight",de)}),a.watch(()=>o.isDraggable,de=>{x.emit("setDraggable",de)}),a.watch(()=>o.isResizable,de=>{x.emit("setResizable",de)}),a.watch(()=>o.isBounded,de=>{x.emit("setBounded",de)}),a.watch(()=>o.transformScale,de=>{x.emit("setTransformScale",de)}),a.watch(()=>o.responsive,de=>{de||(s("update:layout",c.originalLayout),x.emit("setColNum",o.colNum)),C()}),a.watch(()=>o.maxRows,de=>{x.emit("setMaxRows",de)}),a.watch([()=>o.margin,()=>o.margin[1]],j),a.provide(Hc,a.reactive({...a.toRefs(o),...a.toRefs(c),increaseItem:E,decreaseItem:W})),a.provide(Uc,x),r({state:c,getItem:I,resizeEvent:g,dragEvent:k,layoutUpdate:U});function E(de){m.set(de.i,de)}function W(de){m.delete(de.i)}function I(de){return m.get(de)}function U(){if(!un(f.value)&&!un(c.originalLayout)){if(f.value.length!==c.originalLayout.length){const de=G(f.value,c.originalLayout);if(de.length>0)if(f.value.length>c.originalLayout.length)c.originalLayout=c.originalLayout.concat(de);else{const Me=new Set(de.map(pe=>pe.i));c.originalLayout=c.originalLayout.filter(pe=>!Me.has(pe.i))}c.lastLayoutLength=f.value.length,$()}Eo(f.value,o.verticalCompact),x.emit("updateWidth",c.width),j(),s("layout-updated",f.value)}}function j(){c.mergedStyle={height:_()}}function C(){h.value&&(c.width=h.value.offsetWidth),x.emit("resizeEvent")}function _(){if(!o.autoSize)return;const de=parseFloat(o.margin[1]);return G6(f.value)*(o.rowHeight+de)+de+"px"}let S;function k(de,Me,pe,Z,fe,le){let ue=Ds(f.value,Me);un(ue)&&(ue={h:0,w:0,x:0,y:0,i:""}),de==="dragstart"&&!o.verticalCompact&&(S=f.value.reduce((Ne,{i:Fe,x:be,y:A})=>({...Ne,[Fe]:{x:be,y:A}}),{})),de==="dragmove"||de==="dragstart"?(c.placeholder.i=Me,c.placeholder.x=ue.x,c.placeholder.y=ue.y,c.placeholder.w=le,c.placeholder.h=fe,a.nextTick(()=>{c.isDragging=!0}),x.emit("updateWidth",c.width)):a.nextTick(()=>{c.isDragging=!1}),f.value=Ct(f.value,ue,pe,Z,!0,o.preventCollision),o.restoreOnDrag?(ue.static=!0,Eo(f.value,o.verticalCompact,S),ue.static=!1):Eo(f.value,o.verticalCompact),x.emit("compact"),j(),de==="dragend"&&(S=void 0,s("layout-updated",f.value))}function g(de,Me,pe,Z,fe,le){let ue=Ds(f.value,Me);un(ue)&&(ue={h:0,w:0,x:0,y:0,i:""});let Ne;if(o.preventCollision){const Fe=Wc(f.value,{...ue,w:le,h:fe}).filter(be=>be.i!==ue.i);if(Ne=Fe.length>0,Ne){let be=1/0,A=1/0;Fe.forEach(q=>{q.x>ue.x&&(be=Math.min(be,q.x)),q.y>ue.y&&(A=Math.min(A,q.y))}),Number.isFinite(be)&&(ue.w=be-ue.x),Number.isFinite(A)&&(ue.h=A-ue.y)}}Ne||(ue.w=le,ue.h=fe),de==="resizestart"||de==="resizemove"?(c.placeholder.i=Me,c.placeholder.x=pe,c.placeholder.y=Z,c.placeholder.w=ue.w,c.placeholder.h=ue.h,a.nextTick(()=>{c.isDragging=!0}),x.emit("updateWidth",c.width)):de&&a.nextTick(()=>{c.isDragging=!1}),o.responsive&&z(),Eo(f.value,o.verticalCompact),x.emit("compact"),j(),de==="resizeend"&&s("layout-updated",f.value)}function z(){const de=i1(o.breakpoints,c.width);if(de===c.lastBreakpoint)return;const Me=Yc(de,o.cols);!un(c.lastBreakpoint)&&!c.layouts[c.lastBreakpoint]&&(c.layouts[c.lastBreakpoint]=Et(f.value));const pe=s1(c.originalLayout,c.layouts,o.breakpoints,de,c.lastBreakpoint,Me,o.verticalCompact);c.layouts[de]=pe,c.lastBreakpoint!==de&&s("breakpoint-changed",de,pe),f.value=pe,s("update:layout",pe),c.lastBreakpoint=de,x.emit("setColNum",Me)}function $(){c.layouts=Object.assign({},o.responsiveLayouts)}function G(de,Me){const pe=new Set(Me.map(ue=>ue.i)),Z=new Set(de.map(ue=>ue.i)),fe=de.filter(ue=>!pe.has(ue.i)),le=Me.filter(ue=>!Z.has(ue.i));return fe.concat(le)}return(de,Me)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:h,class:"vgl-layout",style:a.normalizeStyle(c.mergedStyle)},[de.$slots.default?a.renderSlot(de.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(f.value,pe=>(a.openBlock(),a.createBlock(Li,a.mergeProps({key:pe.i,ref_for:!0},pe),{default:a.withCtx(()=>[a.renderSlot(de.$slots,"item",{item:pe})]),_:2},1040))),128)),a.withDirectives(a.createVNode(Li,{class:"vgl-item--placeholder",x:c.placeholder.x,y:c.placeholder.y,w:c.placeholder.w,h:c.placeholder.h,i:c.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,c.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(l)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();const G1={key:0,class:"item-view-group"},Y1={key:0,class:"item-view-group"},J1=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:r}){const n=L.useModelComp(L.pinia),{isEdit:o}=L.storeToRefs(n),s=Qn(L.pinia),c=r,m=l,f=a.ref(""),h=a.computed(()=>m==null?void 0:m.children),y=a.computed(()=>{var j,C,_,S;return((j=m==null?void 0:m.children)==null?void 0:j.length)>0&&((C=m==null?void 0:m.children)!=null&&C.every(k=>k==null?void 0:k.layout))?(S=(_=m==null?void 0:m.children)==null?void 0:_[0])==null?void 0:S.layout:"vertical"}),u=j=>{f.value=j,c("radioChange",j)},x=a.computed(()=>{var j,C;return((C=(j=m==null?void 0:m.children)==null?void 0:j[0])==null?void 0:C.isGridLayout)||!1}),D=a.ref((m==null?void 0:m.level)+1),R=a.computed(()=>{if(!(m!=null&&m.children)||!Array.isArray(m.children)||m.children.length<2)return!1;const j=m.children.some(_=>(_==null?void 0:_.name)==="测量系统配置表"&&(_==null?void 0:_.comp)==="ParentItem"),C=m.children.some(_=>(_==null?void 0:_.name)==="测量系统传递表"&&(_==null?void 0:_.comp)==="ParentItem");return j&&C}),E=a.computed(()=>{var C,_,S,k,g,z;let j=(C=m==null?void 0:m.children)==null?void 0:C.filter($=>$==null?void 0:$.choice);if(s.setSelectTab((_=j==null?void 0:j[0])==null?void 0:_.choiceName),(f==null?void 0:f.value)!=="")return(S=m==null?void 0:m.children)==null?void 0:S.filter($=>!($!=null&&$.choiceName)||($==null?void 0:$.choiceName)===(f==null?void 0:f.value));{let $=(g=(k=m==null?void 0:m.children)==null?void 0:k.find(G=>G==null?void 0:G.choice))==null?void 0:g.choiceName;return(z=m==null?void 0:m.children)==null?void 0:z.filter(G=>!(G!=null&&G.choiceName)||(G==null?void 0:G.choiceName)===$)}}),W=j=>{const C=(j==null?void 0:j.menuFilter)||[];return Array.isArray(C)&&(C==null?void 0:C.some(_=>{const S=typeof _=="string"?_:JSON.stringify(_);return S==null?void 0:S.includes("@InterfaceHide=Yes")}))};a.watch(()=>m==null?void 0:m.children,()=>{R.value},{deep:!0});const I=j=>{c("rowClick",j)},U=(j,C)=>{c("routeUrl",j,C)};return(j,C)=>x.value?(a.openBlock(),a.createBlock(a.unref(ou),{key:0,layout:h.value,"onUpdate:layout":C[0]||(C[0]=_=>h.value=_),"is-draggable":a.unref(o)==="edit","is-resizable":a.unref(o)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(_,S)=>(a.openBlock(),a.createBlock(a.unref(Li),{key:_.i,x:_.x,y:_.y,"min-h":_.minH,"max-h":_.maxH,"min-w":_.minW,w:_.w,h:_.h,i:_.i},{default:a.withCtx(()=>{var k,g,z,$,G,de,Me,pe,Z,fe,le,ue,Ne,Fe;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:S===((k=m==null?void 0:m.children)==null?void 0:k.length)-1?"0px":"24px"})},[((z=(g=_==null?void 0:_.component)==null?void 0:g.comp)==null?void 0:z.toUpperCase())!=="TABLE"&&(($=_==null?void 0:_.component)!=null&&$.name)?(a.openBlock(),a.createElementBlock("div",G1,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(D.value.toString())-1)*12+"px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},a.toDisplayString((G=_==null?void 0:_.component)==null?void 0:G.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Go)((de=_==null?void 0:_.component)==null?void 0:de.comp)),{pageLayout:y.value,config:{showIndex:(Me=a.unref(nr)[S])==null?void 0:Me.showIndex,allowMove:(pe=a.unref(nr)[S])==null?void 0:pe.allowMove,viewport:(Z=a.unref(nr)[S])==null?void 0:Z.viewport,status:(fe=a.unref(nr)[S])==null?void 0:fe.status},related:_==null?void 0:_.relatedTables,compName:_==null?void 0:_.component.name,compNames:a.unref(Sc),itemData:(le=_==null?void 0:_.component)==null?void 0:le.compData,childItemData:(ue=_==null?void 0:_.component)==null?void 0:ue.itemChildData,key:a.unref(Zn),cacheNewData:a.unref(_c),onChange:a.unref(zi),index:(_==null?void 0:_.id)??S,onContentChange:a.unref(Mi),onPageChange:a.unref(Ii),parentTableId:(Ne=_==null?void 0:_.component)==null?void 0:Ne.tableId,allMapContents:a.unref(wt),children:(Fe=_==null?void 0:_.component)==null?void 0:Fe.children,level:D.value,onRowClick:I,onRouteUrl:U,onClickTrigger:a.unref(Ec),onClickMainKey:a.unref(Cc),onRadioChange:u},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(E.value,(_,S)=>{var k,g;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(_==null?void 0:_.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(S)===((k=m==null?void 0:m.children)==null?void 0:k.length)-1?"0px":"24px"})},[((g=_==null?void 0:_.comp)==null?void 0:g.toUpperCase())!=="TABLE"&&_.name?(a.openBlock(),a.createElementBlock("div",Y1,[W(_)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(D.value.toString())>1?"12px":"0px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},a.toDisplayString(_.name),5))])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Go)(_.comp)),{compName:_.name,groupNames:_==null?void 0:_.nameContents,config:{showIndex:_==null?void 0:_.showIndex,allowMove:_==null?void 0:_.allowMove,viewport:_==null?void 0:_.viewport,status:_==null?void 0:_.status},itemData:_==null?void 0:_.compData,related:_==null?void 0:_.relatedTables,childItemData:_==null?void 0:_.itemChildData,key:a.unref(Zn),onChange:a.unref(zi),index:(_==null?void 0:_.id)??S,onContentChange:a.unref(Mi),onPageChange:a.unref(Ii),parentTableId:_==null?void 0:_.tableId,allMapContents:a.unref(wt),children:_==null?void 0:_.children,level:D.value,onRowClick:I,onRouteUrl:U,onRadioChange:u},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),X1=Jl._export_sfc(J1,[["__scopeId","data-v-de5883fb"]]),Z1={class:"radio-group-container"},Q1=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:r}){const n=l,o=r,s=a.ref(),c=Qn(L.pinia),{selectTab:m}=L.storeToRefs(c);a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=m.value},{immediate:!0,deep:!0});const f=h=>{s.value=h,o("radioChange",s.value)};return(h,y)=>(a.openBlock(),a.createElementBlock("div",Z1,[a.createVNode(il.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=u=>s.value=u),content:n==null?void 0:n.itemData,onChange:f},null,8,["modelValue","content"])]))}}),ev=Jl._export_sfc(Q1,[["__scopeId","data-v-177d64c3"]]),iu=a.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),av={TABLE:Tc,FORM:ws,STATICFORM:Ac,TABLEOPERATE:W2,TABLESTYLE:ch,TABLEEXTEND:dh,TABLEINTERACTION:hh,FORMOPERATE:_s,FOLD:Uh,CALCULATOR:Jh,METHODBUTTON:Qh,AVATARUPLOAD:rs.ssAvatar,SIGNATURE:rs.ssSignature,FORMTOP:ws,STEP:d4,STEPOPERATE:Oh,TIMELINE:y4,TIMELINEOPERATE:Ph,FORMTOPOPERATE:_s,SIGNATUREOPERATE:s4,AVATARUPLOADOPERATE:l4,TABS:k4,TABSOPERATE:o6,CHART:b6,CHARTOPERATE:T6,LAYOUT:M6,LAYOUTOPERATE:j6,PARENTITEM:X1,RADIO:ev};function Ao(l){return av[l==null?void 0:l.toUpperCase()]||null}exports.De=ou;exports.activeStepInfo=Co;exports.addContents=Ko;exports.addVisibleDialog=Tt;exports.affixItems=w0;exports.allMapContents=wt;exports.analyzeMenu=rc;exports.cacheNewData=_c;exports.clickMainKey=Cc;exports.clickSavePage=x0;exports.clickStep=Nc;exports.clickTrigger=Ec;exports.compId=Zn;exports.compNames=Sc;exports.compShow=To;exports.existLayouts=T0;exports.fixChangeValue=Nt;exports.generateLayouts=oh;exports.getComponent=Ao;exports.getComponents=Go;exports.getPageConstruct=Jd;exports.getPageData=Kr;exports.getSliceContLength=L0;exports.gridRowHeight=eh;exports.gridRowHeightHmPg=Q2;exports.isStepLayout=Bc;exports.onBack=b0;exports.onButtonChange=C0;exports.onChange=zi;exports.onClick=k0;exports.onClickStep=A0;exports.onContentChange=Mi;exports.onExtendTaskEnd=B0;exports.onOk=D0;exports.onPageBack=M0;exports.onPageChange=Ii;exports.onSelectFixContent=g0;exports.renderShowItems=xc;exports.showItems=nr;exports.sliceTableLength=wc;exports.slotContent=iu;exports.ssTable=Tc;exports.st=Li;exports.stepItems=$0;exports.tabChange=z0;exports.toolBar=N0;exports.useFormComp=Bt;exports.useModelLoader=xf;exports.verifyButton=I0;
|