ss-component-new 1.3.291 → 1.3.293
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-RsaYZtZ_.js → MTLLoader-BOBkrSfe.js} +1 -1
- package/dist/{MTLLoader-CdxYhBAE.cjs → MTLLoader-C6rfxQ-U.cjs} +1 -1
- package/dist/{OrbitControls-D4mDZcDl.js → OrbitControls-Dv9oFyLz.js} +1 -1
- package/dist/{OrbitControls-BNTHZN2P.cjs → OrbitControls-stRsVWeF.cjs} +1 -1
- package/dist/{URDFLoader-B56WRl4z.cjs → URDFLoader-C51mjCMr.cjs} +1 -1
- package/dist/{URDFLoader-BPNyxykV.js → URDFLoader-CkLxRSym.js} +2 -2
- package/dist/{animationData-DiyxzUT8.cjs → animationData-2Gchlfns.cjs} +1 -1
- package/dist/{animationData-D4Q3av_t.js → animationData-B4mCFW0Z.js} +3 -3
- package/dist/{array-Bhy3Mc4Q.js → array-BVedBC4J.js} +4 -4
- package/dist/{array-h46Hybg0.cjs → array-BZGJgmUx.cjs} +1 -1
- package/dist/clone-DZsVSfvJ.cjs +1 -0
- package/dist/clone-DlNyA_zn.js +8 -0
- package/dist/{dayjs.min-DRU3LNcy.cjs → dayjs.min-73fIR1V_.cjs} +1 -1
- package/dist/{dayjs.min-Dx_LN6Bu.js → dayjs.min-E1ZLJ-8j.js} +1 -1
- package/dist/{iconfont-Dq-DsQsx.cjs → iconfont-B3tjmizt.cjs} +1 -1
- package/dist/{iconfont-DkmQztG1.js → iconfont-Dd30Cjr5.js} +2 -2
- package/dist/icons/svg/upload.svg +1 -0
- package/dist/index-0hpStIBH.js +448 -0
- package/dist/{index-Cbb4eaBp.js → index-6egNZH3a.js} +3 -3
- package/dist/{index-DLJUL5PL.js → index-B5V-oUOc.js} +1 -1
- package/dist/{index-BdhI3Qx4.js → index-B5_JD9Zr.js} +2 -2
- package/dist/{index-CISiQYAi.cjs → index-B83PV1ft.cjs} +1 -1
- package/dist/{index-RSaGZhb3.js → index-B846yqBS.js} +2 -2
- package/dist/{index-CV8QlXGI.js → index-BEEOZ_LN.js} +1 -1
- package/dist/{index-Dnf_8W_k.cjs → index-BGXlt0Bk.cjs} +1 -1
- package/dist/{index-mHmXlK2R.cjs → index-BJQ12PRZ.cjs} +1 -1
- package/dist/{index-CfzNt6qg.js → index-BK2xjtjO.js} +4 -4
- package/dist/index-BKPi9246.js +22600 -0
- package/dist/{index-DheEtRB2.cjs → index-BMOdyP-6.cjs} +1 -1
- package/dist/{index-CUJ_cdPT.cjs → index-Ba_o-vqP.cjs} +1 -1
- package/dist/{index-CuHxF23O.cjs → index-BkOJA3nu.cjs} +1 -1
- package/dist/{index-C1dVsNLG.js → index-BpzCJnoT.js} +1 -1
- package/dist/{index-Dr1wv37v.cjs → index-Bsk8vIdB.cjs} +1 -1
- package/dist/{index-CAcP6bx_.cjs → index-BwyBfUCz.cjs} +1 -1
- package/dist/{index-DXWN-UJr.cjs → index-BxEBUPI0.cjs} +1 -1
- package/dist/{index-Df8bxCwR.js → index-C4Dlzm7P.js} +29 -29
- package/dist/index-C4MRQylF.cjs +15 -0
- package/dist/index-C73PF4P6.cjs +25 -0
- package/dist/{index-DXjgumn5.js → index-CAIY8beW.js} +3 -3
- package/dist/{index-WTaP_KDd.cjs → index-CBb-zQHx.cjs} +1 -1
- package/dist/{index--ZVD8xbU.js → index-CEuh0_6n.js} +26 -16
- package/dist/{index-Cg7Mpfpj.js → index-CEwg_zdl.js} +12 -12
- package/dist/{index-DTiolIgS.cjs → index-CQY6ageG.cjs} +1 -1
- package/dist/{index-H_NM-ZF-.js → index-CUyRzcId.js} +2 -2
- package/dist/{index-CxouBRyu.js → index-C_rNGRpL.js} +2 -2
- package/dist/index-Cck4n4WY.cjs +1 -0
- package/dist/{index-C7-Idrnv.js → index-CkTFRGxB.js} +1 -1
- package/dist/{index-QG4F5kTH.js → index-CkXAOjdK.js} +2 -2
- package/dist/{index-CXgZFuTt.cjs → index-Co-U8J6E.cjs} +1 -1
- package/dist/{index-BOHy6XZd.cjs → index-Cq0IbX2g.cjs} +1 -1
- package/dist/index-CqiskI7e.js +55 -0
- package/dist/{index-B6b9Lr8M.js → index-CsBViUVV.js} +3 -3
- package/dist/{index-CcUoCjdm.js → index-CuxsdavJ.js} +4 -4
- package/dist/{index-C6WZeW_p.js → index-CvAN1H22.js} +9 -9
- package/dist/{index-ByDxq4rz.cjs → index-Cw3Mzxsu.cjs} +1 -1
- package/dist/{index-DAwnZFmG.cjs → index-CwOB279v.cjs} +1 -1
- package/dist/index-Cxujb_7E.js +494 -0
- package/dist/index-D-RfdXBa.cjs +1 -0
- package/dist/{index-R-cTm13H.cjs → index-D-RquVVU.cjs} +1 -1
- package/dist/{index-D8_VHkBY.cjs → index-DCL0uKEy.cjs} +1 -1
- package/dist/{index-CdrBTtcu.cjs → index-DG_ZoAwM.cjs} +1 -1
- package/dist/{index-D21dwfqO.js → index-DLJBDAUp.js} +1 -1
- package/dist/{index-BCF0OdEQ.js → index-DR_J3sca.js} +2 -2
- package/dist/{index-D6S-56sE.js → index-DefvWUXW.js} +4790 -4720
- package/dist/{index-DLN6R2tJ.cjs → index-DenEnDJU.cjs} +1 -1
- package/dist/index-DsopYGEs.js +875 -0
- package/dist/index-OVAb_o-R.cjs +1 -0
- package/dist/{index-hMrH_0un.cjs → index-WsYVHGnw.cjs} +1 -1
- package/dist/index-cC0isUDx.cjs +1 -0
- package/dist/index-efltJzM6.js +9611 -0
- package/dist/{index-CQcXApCn.cjs → index-fAnqtn_m.cjs} +1 -1
- package/dist/index-iyPg8SID.cjs +2 -0
- package/dist/index-sqfOcL_Q.cjs +1 -0
- package/dist/{index--PidpjSy.js → index-tT9c2s2F.js} +2 -2
- package/dist/{index-DZa5rkhj.js → index-wW51rQ0m.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C92zyRB7.js} +5190 -5187
- package/dist/{main-Bbu4LJwR.js → main-B5W7D5YD.js} +4 -4
- package/dist/{main-CH978yUZ.cjs → main-Bj5s2YI8.cjs} +1 -1
- package/dist/{menu-CtG1loFf.js → menu-BMAZOS2j.js} +204 -194
- package/dist/{menu-Hdw0L-Y2.cjs → menu-DopnPfbG.cjs} +6 -6
- package/dist/{menuIndex-DqY0uteo.cjs → menuIndex-DhpobxSC.cjs} +1 -1
- package/dist/{menuIndex-DmS5cMwB.js → menuIndex-DuWSagQ-.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +12 -12
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-BI8F4XV8.js → threeModel-C87-hoqY.js} +4 -4
- package/dist/{threeModel-_zOhFKba.cjs → threeModel-DTxQtp2f.cjs} +1 -1
- package/dist/{threePreview-BwElOyqr.js → threePreview-BfNy0TQL.js} +4 -4
- package/dist/{threePreview-CWRtmSvh.cjs → threePreview-DQX5gazP.cjs} +1 -1
- package/dist/{threeSceneView-C58THVA1.cjs → threeSceneView-Br8jbvLM.cjs} +1 -1
- package/dist/{threeSceneView-DXMJtXQN.js → threeSceneView-jNmK6OkL.js} +14 -14
- package/dist/{threeSceneViewForCPMPIP-EorJhJaG.cjs → threeSceneViewForCPMPIP-B3ZnBCj6.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-VMZd2Jxf.js → threeSceneViewForCPMPIP-DB1dWZmp.js} +8 -8
- package/dist/{threeTrackPathView-BckFDqUs.js → threeTrackPathView-DaPoMzkC.js} +4 -4
- package/dist/{threeTrackPathView-CamXHHnK.cjs → threeTrackPathView-yar3btno.cjs} +1 -1
- package/dist/{threeViewerHost-DuXsAYiT.cjs → threeViewerHost-CJ4fhhdJ.cjs} +1 -1
- package/dist/{threeViewerHost-0_B97XiA.js → threeViewerHost-pVaZ-5d1.js} +6 -6
- package/dist/{urdfTree-DDQw6tEb.cjs → urdfTree-D7WPM5fm.cjs} +1 -1
- package/dist/{urdfTree-B6GL3kgV.js → urdfTree-dQ-2fOQE.js} +1 -1
- package/dist/{workpieceTreePanel-BvO881iH.js → workpieceTreePanel-Di20N5y6.js} +4 -4
- package/dist/{workpieceTreePanel-B6AVU13A.cjs → workpieceTreePanel-rK0hhgpD.cjs} +1 -1
- package/package.json +1 -1
- package/public/icons/svg/upload.svg +1 -0
- package/dist/clone-BrrxU6_J.js +0 -8
- package/dist/clone-Dn6v3xp6.cjs +0 -1
- package/dist/index-08aaWGsX.cjs +0 -2
- package/dist/index-B2mYIzpx.js +0 -22384
- package/dist/index-B6_PK_Jd.cjs +0 -15
- package/dist/index-BdyYMxx4.cjs +0 -1
- package/dist/index-BlAISTfa.cjs +0 -1
- package/dist/index-Bs0qreV1.cjs +0 -1
- package/dist/index-CIQzzaTN.js +0 -1058
- package/dist/index-DTsHI5xQ.js +0 -30
- package/dist/index-DWtM4lnv.js +0 -9371
- package/dist/index-DmJZkYFE.cjs +0 -25
- package/dist/index-DtgdMA7B.cjs +0 -1
- package/dist/index-cFt1QbzL.js +0 -308
- package/dist/index-gFBtUdzh.js +0 -494
- package/dist/index-vbxWL2yo.cjs +0 -1
package/dist/index-DmJZkYFE.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";var ku=Object.defineProperty;var xu=(l,r,n)=>r in l?ku(l,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[r]=n;var Rr=(l,r,n)=>xu(l,typeof r!="symbol"?r+"":r,n);const a=require("vue"),ol=require("./request-BC2w2vGr.cjs"),In=require("./dayjs.min-DRU3LNcy.cjs"),$=require("./menu-Hdw0L-Y2.cjs"),pl=require("./index-B6_PK_Jd.cjs"),ql=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ra=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs"),vr=require("./index-CUw6nGTo.cjs"),_i=require("./threeViewerHost-DuXsAYiT.cjs"),pa=require("./index-CuHxF23O.cjs"),_u=require("./index-DsNHJYr-.cjs"),yr=require("./index-CW4qJdP8.cjs"),Qt=require("./index-DheEtRB2.cjs");require("./index-DAwnZFmG.cjs");const Ws=require("./index-BOHy6XZd.cjs"),Vo=require("./index-W8p89C7t.cjs"),nn=require("./index-DTiolIgS.cjs");;/* empty css */const wi=require("./isString-DNBlKLZH.cjs"),es=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ks=require("./index-BVaHwt5f.cjs"),wu=require("./index-CdrBTtcu.cjs"),zn=require("./MTLLoader-CdxYhBAE.cjs"),Cu=require("./URDFLoader-B56WRl4z.cjs");var Su="[object Boolean]";function Ys(l){return l===!0||l===!1||ol.isObjectLike(l)&&ol.baseGetTag(l)==Su}function Eu(l){return l===void 0}const Du=l=>l.match(/\((.*)\)/)[1],Nu={__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 p=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":m[0]||(m[0]=v=>o.value=v),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"])}}},Bu={__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)}},Tu=ql._export_sfc(Bu,[["__scopeId","data-v-d81f59b4"]]);function Au(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:p=.2}=o,v=l.getBoundingClientRect(),y=r.getBoundingClientRect(),u=r.naturalWidth,x=r.naturalHeight,C=y.width/u,B=y.height/x,w=Math.min(C,B),V=u*w,A=x*w,N=(v.width-V)/2,Y=(v.height-A)/2,b=n.map(([T,k])=>{const _=N+T*V,U=Y+k*A;return{x:_,y:U}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(b[0].x,b[0].y);for(let T=1;T<b.length;T++)s.lineTo(b[T].x,b[T].y);s.closePath();const L=c.replace(/[\d.]+\)$/,`${p})`);s.fillStyle=L,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=m,s.stroke()}function ko(l){if(!l)return;const r=l.getContext("2d");r&&r.clearRect(0,0,l.width,l.height)}function as(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 zu={key:0,class:"ocr-img-preview-root"},Mu={class:"ocr-img-preview-window"},Ou={key:0,class:"img-preview-body"},Iu={class:"img-preview-header"},Lu={class:"img-header-left"},$u={class:"img-name"},Ru={key:0,class:"img-header-right"},Vu={class:"img-index"},Pu={key:0,class:"img-thumb-list"},Fu=["onClick"],ju={key:1,class:"thumb-placeholder"},Hu={class:"thumb-name"},Uu={class:"img-preview-container"},qu={key:0,class:"img-placeholder"},Wu={key:2,class:"img-placeholder"},Ku={key:0},Yu={key:1},Gu={key:1,class:"img-placeholder"},Ju=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:E=>o("update:visible",E)});let c=!1,m="",p=0,v=0,y=0,u=0,x=0,C=0,B=null;const w=E=>{var me,ce;const ae=(ce=(me=E==null?void 0:E.target)==null?void 0:me.closest)==null?void 0:ce.call(me,".ocr-img-preview-window");return ae||document.querySelector(".ocr-img-preview-window")},V=E=>{if(!E||E==="none")return{tx:0,ty:0};let ae=E.match(/matrix\(([^)]+)\)/);if(ae){const me=ae[1].split(",").map(ce=>Number(ce.trim()));return{tx:(me==null?void 0:me[4])||0,ty:(me==null?void 0:me[5])||0}}if(ae=E.match(/matrix3d\(([^)]+)\)/),ae){const me=ae[1].split(",").map(ce=>Number(ce.trim()));return{tx:(me==null?void 0:me[12])||0,ty:(me==null?void 0:me[13])||0}}return ae=E.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),ae?{tx:Number(ae[1])||0,ty:Number(ae[2])||0}:{tx:0,ty:0}},A=(E,ae,me)=>{E.style.transform=`translate(${ae}px, ${me}px)`},N=E=>{const ae=w(E);if(!ae)return;c=!0,B=ae,m="move",p=E.clientX,v=E.clientY;const me=window.getComputedStyle(ae),{tx:ce,ty:Ne}=V(me.transform);x=ce,C=Ne,document.addEventListener("mousemove",b),document.addEventListener("mouseup",L)},Y=(E,ae)=>{const me=w(E);if(!me)return;c=!0,B=me,m=ae,p=E.clientX,v=E.clientY;const ce=me.getBoundingClientRect();y=ce.width,u=ce.height;const Ne=window.getComputedStyle(me),{tx:va,ty:Sa}=V(Ne.transform);x=va,C=Sa,document.addEventListener("mousemove",b),document.addEventListener("mouseup",L)},b=E=>{if(!c||!B)return;const ae=E.clientX-p,me=E.clientY-v,ce=360,Ne=420;let va=y,Sa=u,Wa=x,Q=C;if(m==="move"){Wa=x+ae,Q=C+me,A(B,Wa,Q);return}if(m.includes("right")&&(va=Math.max(ce,y+ae)),m.includes("bottom")&&(Sa=Math.max(Ne,u+me)),m.includes("left")){const na=y-ae;na<ce?(va=ce,Wa=x+(y-ce)):(va=na,Wa=x+ae)}if(m.includes("top")){const na=u-me;na<Ne?(Sa=Ne,Q=C+(u-Ne)):(Sa=na,Q=C+me)}B.style.width=`${va}px`,B.style.height=`${Sa}px`,A(B,Wa,Q)},L=()=>{c=!1,m="",B=null,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",L)},T=a.ref([]),k=a.ref(!1);a.watch(()=>n.images,async E=>{if(!Array.isArray(E)||E.length===0){T.value=[];return}k.value=!0;const ae=[];for(const me of E)if(me.url&&!me.url.startsWith("blob:")&&!me.url.startsWith("http"))try{const ce=await Ra.downloadFile(me.url),Ne=URL.createObjectURL(ce);ae.push({...me,blobUrl:Ne})}catch(ce){console.error(`Failed to load image for preview: ${me.url}`,ce),ae.push({...me,blobUrl:""})}else ae.push({...me,blobUrl:me.url});T.value=ae,k.value=!1},{deep:!0,immediate:!0});const _=a.ref(0),U=a.ref(null),W=a.ref(null),se=a.computed(()=>T.value[_.value]||null),Ce=()=>{if(!T.value.length){_.value=0;return}if(n.defaultImageName){const E=T.value.findIndex(ae=>(ae==null?void 0:ae.name)===n.defaultImageName);_.value=E>=0?E:0}else _.value=0},Ie=E=>{if(!T.value.length)return;const ae=Math.max(0,Math.min(E,T.value.length-1));_.value=ae},De=()=>Ie(_.value-1),le=()=>Ie(_.value+1),we=E=>{if(!E)return;const ae=T.value.findIndex(me=>(me==null?void 0:me.name)===E);ae>=0&&(_.value=ae)},X=()=>{if(!W.value)return;const E=W.value.parentElement;if(!E)return;const ae=E.getBoundingClientRect();W.value.width=ae.width,W.value.height=ae.height},ue=()=>{var ce,Ne;if(!W.value||!U.value||!n.focusedFieldName){W.value&&ko(W.value);return}const E=(ce=U.value.$el)==null?void 0:ce.querySelector("img");if(!E)return;if(!E.complete||E.naturalWidth===0){E.onload=()=>{a.nextTick(()=>{ue()})};return}const ae=((Ne=se.value)==null?void 0:Ne.name)||"",me=as(n.fieldMeta,n.focusedFieldName);if(!me){ko(W.value);return}if(me.imageName!==ae){ko(W.value);return}X(),Au(W.value,E,me.bboxNorm)},Ge=()=>{a.nextTick(()=>{X(),ue()})};a.watch(()=>n.focusedFieldName,()=>{if(!s.value)return;const E=as(n.fieldMeta,n.focusedFieldName);E!=null&&E.imageName&&we(E.imageName),a.nextTick(()=>{ue()})}),a.watch(()=>{var E;return(E=se.value)==null?void 0:E.name},()=>{s.value&&a.nextTick(()=>{W.value&&ko(W.value),ue()})}),a.watch(()=>n.visible,E=>{E?(Ce(),a.nextTick(()=>{X(),ue()})):W.value&&ko(W.value)}),a.watch(()=>n.defaultImageName,()=>{s.value&&Ce()});let za=null;a.onMounted(()=>{var E;typeof ResizeObserver<"u"&&(za=new ResizeObserver(()=>{X(),a.nextTick(()=>{ue()})}),(E=W.value)!=null&&E.parentElement&&za.observe(W.value.parentElement))}),a.onUnmounted(()=>{za&&(za.disconnect(),za=null),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",L)});const re=()=>{W.value&&ko(W.value),o("update:visible",!1),o("close")};return(E,ae)=>{var Sa,Wa;const me=a.resolveComponent("el-button"),ce=a.resolveComponent("el-image"),Ne=a.resolveComponent("Loading"),va=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",zu,[ae[12]||(ae[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Mu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(N,["stop"])},[ae[8]||(ae[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:re},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:ae[0]||(ae[0]=a.withModifiers(Q=>Y(Q,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:ae[1]||(ae[1]=a.withModifiers(Q=>Y(Q,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:ae[2]||(ae[2]=a.withModifiers(Q=>Y(Q,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:ae[3]||(ae[3]=a.withModifiers(Q=>Y(Q,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:ae[4]||(ae[4]=a.withModifiers(Q=>Y(Q,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:ae[5]||(ae[5]=a.withModifiers(Q=>Y(Q,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:ae[6]||(ae[6]=a.withModifiers(Q=>Y(Q,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:ae[7]||(ae[7]=a.withModifiers(Q=>Y(Q,"bottom-right"),["stop"]))},null,32),se.value?(a.openBlock(),a.createElementBlock("div",Ou,[a.createElementVNode("div",Iu,[a.createElementVNode("div",Lu,[a.createElementVNode("span",$u,a.toDisplayString(se.value.name?se.value.name+(se.value.url&&se.value.url.lastIndexOf(".")!==-1?se.value.url.substring(se.value.url.lastIndexOf(".")):""):""),1)]),T.value.length>1?(a.openBlock(),a.createElementBlock("div",Ru,[a.createVNode(me,{size:"small",disabled:_.value===0,onClick:De},{default:a.withCtx(()=>ae[9]||(ae[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Vu,a.toDisplayString(_.value+1)+" / "+a.toDisplayString(T.value.length),1),a.createVNode(me,{size:"small",disabled:_.value===T.value.length-1,onClick:le},{default:a.withCtx(()=>ae[10]||(ae[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),T.value.length>1?(a.openBlock(),a.createElementBlock("div",Pu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.value,(Q,na)=>(a.openBlock(),a.createElementBlock("div",{key:(Q.name||"")+"-"+na,class:a.normalizeClass(["img-thumb-item",{active:na===_.value}]),onClick:Ve=>Ie(na)},[Q!=null&&Q.blobUrl?(a.openBlock(),a.createBlock(ce,{key:0,src:Q.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[Q.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",ju,"加载失败")),a.createElementVNode("div",Hu,a.toDisplayString(Q.name||"-"),1)],10,Fu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Uu,[k.value?(a.openBlock(),a.createElementBlock("div",qu,[a.createVNode(va,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(Ne)]),_:1}),ae[11]||(ae[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(Sa=se.value)!=null&&Sa.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(ce,{ref_key:"imageRef",ref:U,src:se.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[se.value.blobUrl],onLoad:Ge},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:W,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Wu,[(Wa=se.value)!=null&&Wa.url?(a.openBlock(),a.createElementBlock("span",Ku,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Yu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Gu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Xu=ql._export_sfc(Ju,[["__scopeId","data-v-48a4ecb1"]]),Zu={class:"cert-preview-body"},Qu={key:0,class:"pdf-preview-container"},ed={class:"thumbs"},ad=["onClick"],ld={class:"thumb-img"},rd=["src"],nd={key:1,class:"thumb-loading"},od={class:"thumb-title"},id={class:"viewer"},td={key:0,class:"viewer-img-wrap"},sd=["src"],cd={key:1,class:"viewer-loading"},ud=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(w=>String(w.versionId)===String(s.value))),p=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),u=()=>{try{Object.values(p.value||{}).forEach(w=>{w&&URL.revokeObjectURL(w)}),v.value&&URL.revokeObjectURL(v.value)}catch{}p.value={},v.value=""},x=async w=>{if(!w||w.fileType==="pdf")return;const V=Array.isArray(w.images)?w.images:[];for(const A of V){const N=A==null?void 0:A.url;if(!(!N||p.value[N]))try{const Y=await $.platformDownloadFile({url:N}),b=URL.createObjectURL(Y.data);p.value={...p.value,[N]:b}}catch{}}},C=async w=>{var A;if(!w||w.fileType!=="pdf"){v.value="";return}const V=w.sourceUrl||"";if(!V){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:V,versionId:w==null?void 0:w.versionId,certNo:w==null?void 0:w.certNo});const N=await $.platformDownloadFile({url:V});console.log("[CertificatePreview] PDF响应:",{url:V,status:N==null?void 0:N.status,size:(A=N==null?void 0:N.data)==null?void 0:A.size});const Y=URL.createObjectURL(N.data);v.value=Y;const b=w.certNo?String(w.certNo):"";y.value=b?`${b}.pdf`:"证书附件.pdf"}catch(N){console.error("[CertificatePreview] PDF加载失败:",{url:V,error:N}),v.value=""}};a.watch(()=>n.visible,async w=>{var A;if(!w){u();return}const V=(A=n.versions)==null?void 0:A[0];s.value=(V==null?void 0:V.versionId)||"",await x(V),await C(V)},{immediate:!0}),a.watch(()=>s.value,async()=>{var V,A;const w=m.value;if(!w){c.value="",v.value="";return}if(w.fileType==="pdf"){c.value="",await C(w);return}v.value="",c.value=((A=(V=w.images)==null?void 0:V[0])==null?void 0:A.url)||"",await x(w)},{immediate:!0});const B=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(w,V)=>{const A=a.resolveComponent("el-empty"),N=a.resolveComponent("el-tab-pane"),Y=a.resolveComponent("el-tabs"),b=a.resolveComponent("el-button"),L=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(L,{"model-value":w.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:B},{footer:a.withCtx(()=>[a.createVNode(b,{id:"themeBorderButton",onClick:B},{default:a.withCtx(()=>V[1]||(V[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[w.versions&&w.versions.length>0?(a.openBlock(),a.createBlock(Y,{key:0,modelValue:s.value,"onUpdate:modelValue":V[0]||(V[0]=T=>s.value=T),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.versions,T=>(a.openBlock(),a.createBlock(N,{key:T.versionId,name:T.versionId,label:T.label},{default:a.withCtx(()=>[a.createElementVNode("div",Zu,[T.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Qu,[v.value?(a.openBlock(),a.createBlock(pl.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(A,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",ed,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.images||[],k=>(a.openBlock(),a.createElementBlock("div",{key:k.url,class:a.normalizeClass(["thumb",{active:k.url===c.value}]),onClick:_=>c.value=k.url},[a.createElementVNode("div",ld,[p.value[k.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:p.value[k.url]},null,8,rd)):(a.openBlock(),a.createElementBlock("div",nd,"加载中"))]),a.createElementVNode("div",od,a.toDisplayString(k.name),1)],10,ad))),128))]),a.createElementVNode("div",id,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[p.value[c.value]?(a.openBlock(),a.createElementBlock("div",td,[a.createElementVNode("img",{class:"viewer-img",src:p.value[c.value]},null,8,sd)])):(a.openBlock(),a.createElementBlock("div",cd,"加载中"))],64)):(a.openBlock(),a.createBlock(A,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(A,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),dd=ql._export_sfc(ud,[["__scopeId","data-v-220703c0"]]),pd={class:"ocr-candidate-wrap"},fd={class:"ocr-candidate-left"},hd={key:1},vd={key:0},md={key:1},yd={key:2},gd={key:3},bd={key:0,class:"ocr-candidate-right"},kd={class:"ocr-candidate-actions"},xd={key:1},_d={class:"dialog-footer"},wd={__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=(_=[])=>{const U=[],W=se=>{(se||[]).forEach(Ce=>{if(!Ce)return;const Ie=Ce.children||Ce.childrens||Ce.columns;Array.isArray(Ie)&&Ie.length>0?W(Ie):U.push(Ce)})};return W(_),U},o=l,s=r,c=a.computed(()=>{var _;return((_=C.value)==null?void 0:_.allowAdd)!==!1}),m=a.computed(()=>{var _;return((_=C.value)==null?void 0:_.allowReplace)!==!1}),p=_=>{if(!_)return[];if(Array.isArray(_))return _;if(typeof _=="string")try{const U=JSON.parse(_);return Array.isArray(U)?U:[]}catch{return[]}return[]},v=_=>{s("preview-file",_)},y=a.ref([]),u=a.ref(0),x=a.ref("");a.watch(()=>o.candidates,_=>{var U,W;y.value=(_||[]).map(se=>({...se,...(se==null?void 0:se.ocrRow)||{},selectedTargetId:(se==null?void 0:se.selectedTargetId)||"",__decision:se==null?void 0:se.__decision})),u.value=0,x.value=((W=(U=y.value)==null?void 0:U[0])==null?void 0:W.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,_=>{var U,W;_&&(u.value=0,x.value=((W=(U=y.value)==null?void 0:U[0])==null?void 0:W.selectedTargetId)||"")});const C=a.computed(()=>{var U;const _=Number(u.value||0);return((U=y.value||[])==null?void 0:U[_])||null}),B=a.computed(()=>(n(o.columns||[])||[]).filter(W=>W&&W.prop).filter(W=>W.type!=="operate"&&W.label!=="操作"&&W.prop!=="operate")),w=a.computed(()=>B.value.filter(_=>_.label!=="证书附件"&&_.prop!=="证书附件")),V=_=>{if(!_)return;const U=(y.value||[]).findIndex(W=>(W==null?void 0:W.idx)===(_==null?void 0:_.idx));U>-1&&(u.value=U,x.value=(_==null?void 0:_.selectedTargetId)||"")},A=_=>{if(!_){x.value="";return}x.value=String((_==null?void 0:_.id)??"")},N=(_,U="")=>{const W=Number(u.value||0),se=y.value||[],Ce=se[W];Ce&&(Ce.__decision=_,Ce.selectedTargetId=U,x.value=U,y.value=[...se])},Y=()=>N("skip",""),b=()=>N("add",""),L=()=>{if(!x.value){ol.ElMessage.warning("请先选择要替换的目标记录");return}N("replace",x.value)},T=()=>{s("update:visible",!1)},k=()=>{const _=y.value||[];if(_.find(W=>(W==null?void 0:W.__decision)==="replace"&&!(W!=null&&W.selectedTargetId))){ol.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",_),s("update:visible",!1)};return(_,U)=>{const W=a.resolveComponent("el-table-column"),se=a.resolveComponent("svg-icon"),Ce=a.resolveComponent("el-table"),Ie=a.resolveComponent("el-button"),De=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:T},{default:a.withCtx(()=>{var le,we;return[a.createElementVNode("div",pd,[a.createElementVNode("div",fd,[U[0]||(U[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(Ce,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:V},{default:a.withCtx(()=>[a.createVNode(W,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,X=>(a.openBlock(),a.createBlock(W,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:ue})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(ue==null?void 0:ue[X.prop]).length>0?(a.openBlock(),a.createBlock(se,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ge=>v({row:ue,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",hd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(W,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:X})=>[a.createTextVNode(a.toDisplayString(((X==null?void 0:X.candidates)||[]).length),1)]),_:1}),a.createVNode(W,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",vd,"替换")):(X==null?void 0:X.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",md,"新增")):(X==null?void 0:X.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",yd,"跳过")):(a.openBlock(),a.createElementBlock("span",gd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",bd,[U[4]||(U[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",kd,[a.createVNode(Ie,{id:"themeBorderButton",onClick:Y},{default:a.withCtx(()=>U[1]||(U[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Ie,{id:"themeBorderButton",onClick:b,disabled:!c.value},{default:a.withCtx(()=>U[2]||(U[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Ie,{class:"ok-button",id:"themeButton",onClick:L,disabled:!m.value||!x.value},{default:a.withCtx(()=>U[3]||(U[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((le=C.value)==null?void 0:le.candidates)||[]).length===0?(a.openBlock(),a.createBlock(De,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(Ce,{data:((we=C.value)==null?void 0:we.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:A,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(W,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B.value,X=>(a.openBlock(),a.createBlock(W,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:ue})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(ue==null?void 0:ue[X.prop]).length>0?(a.openBlock(),a.createBlock(se,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ge=>v({row:ue,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",xd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",_d,[a.createVNode(Ie,{id:"themeBorderButton",onClick:T},{default:a.withCtx(()=>U[5]||(U[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Ie,{class:"ok-button",id:"themeButton",onClick:k},{default:a.withCtx(()=>U[6]||(U[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Cd=ql._export_sfc(wd,[["__scopeId","data-v-89e0489c"]]),Sd={class:"ocr-preview-content"},Ed={class:"ocr-preview-tip"},Dd={class:"ocr-preview-table"},Nd={style:{display:"flex","align-items":"center",gap:"8px"}},Bd={class:"dialog-footer"},Td={__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,B=>{B&&(s.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),m.value=[...n.ocrSelectedFields])});const p=(B,w)=>{const V=[...m.value];if(w)V.includes(B)||V.push(B);else{const A=V.indexOf(B);A>-1&&V.splice(A,1)}m.value=V,o("update:ocrSelectedFields",V)},v=(B,w,V)=>{o("fieldChange",{rowIndex:B,prop:w,value:V})},y=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},x=B=>typeof B!="number"?"-":`${(B*100).toFixed(1)}%`,C=B=>typeof B!="number"?"#606266":B>=.9?"#67c23a":B>=.7?"#e6a23c":"#f56c6c";return(B,w)=>{const V=a.resolveComponent("el-alert"),A=a.resolveComponent("el-table-column"),N=a.resolveComponent("el-checkbox"),Y=a.resolveComponent("el-input"),b=a.resolveComponent("el-table"),L=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Sd,[a.createElementVNode("div",Ed,[a.createVNode(V,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Dd,[a.createVNode(b,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(A,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,T=>(a.openBlock(),a.createBlock(A,{key:T.prop,prop:T.prop,"min-width":T.minWidth||230,"class-name":T.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Nd,[T.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(N,{key:0,"model-value":m.value.includes(T.prop),onChange:k=>p(T.prop,k),onClick:w[0]||(w[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(T.label),1)])]),default:a.withCtx(({row:k,$index:_})=>[T.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:C(k[T.prop]),fontWeight:500})},a.toDisplayString(x(k[T.prop])),5)):(a.openBlock(),a.createBlock(Y,{key:1,modelValue:k[T.prop],"onUpdate:modelValue":U=>k[T.prop]=U,size:"small",placeholder:"请输入"+T.label,onChange:U=>v(_,T.prop,U)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Bd,[a.createVNode(L,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>w[1]||(w[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(L,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>w[2]||(w[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Ad=ql._export_sfc(Td,[["__scopeId","data-v-df66eb1f"]]),Co=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=Ra.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)),dt(s)));return n=n==null?void 0:n.join(","),n};let $a="$R",no="[Any]";const zd=l=>{var m,p,v,y;let r={},n=l==null?void 0:l[0],o=(p=(m=n==null?void 0:n.replace("{",$a))==null?void 0:m.split($a))==null?void 0:p[0];(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),o=o==null?void 0:o.split(":"),r.group=o;let s=l==null?void 0:l[1],c;return s!=null&&s.includes("{")?c=(y=(v=s==null?void 0:s.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:y.replaceAll(no,""):c=s==null?void 0:s.replaceAll(no,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),r.filter=c,r},Md=l=>{var u,x,C,B,w,V,A;let r=[],n=[],o=l==null?void 0:l.map(N=>{var b;let Y=(b=Ra.analyzeSplitToContent(N,"@"))==null?void 0:b[0];return(Y==null?void 0:Y[(Y==null?void 0:Y.length)-1])==="@"&&(Y=Y==null?void 0:Y.slice(0,(Y==null?void 0:Y.length)-1)),Y}),s="",c=Ra.analyzeSplitToContent(o==null?void 0:o[0],":");n=(u=c==null?void 0:c.filter(N=>!(N!=null&&N.includes("{"))&&!(N!=null&&N.includes("["))))==null?void 0:u.join(""),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),n=n==null?void 0:n.split(":");let m=c==null?void 0:c.filter(N=>(N==null?void 0:N.includes("{"))||(N==null?void 0:N.includes("["))),p=(C=m==null?void 0:m[0])==null?void 0:C.slice(1,((x=m==null?void 0:m[0])==null?void 0:x.length)-1);p=(B=Ra.analyzeSplitToContent(p,","))==null?void 0:B.map(N=>((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N));let v="@"+((w=Ra.analyzeSplitToContent(l==null?void 0:l[0],"@"))==null?void 0:w[1]);((V=Ra.analyzeSplitToContent(v,":"))==null?void 0:V.length)>1&&(r=Do((A=Ra.analyzeSplitToContent(v,":"))==null?void 0:A[1]),r=[r]);let y=[];return p==null||p.forEach((N,Y)=>{var Ie,De,le,we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa;let b=(Ie=N==null?void 0:N.split("=="))==null?void 0:Ie[0],L=(De=N==null?void 0:N.split("=="))==null?void 0:De[1],T=[],k=[],_=[],U=[],W="Input",se=[],Ce=[];if((N==null?void 0:N[0])!=="{"){if((L==null?void 0:L[0])==="$")L=L==null?void 0:L.slice(1,L==null?void 0:L.length),T=(we=(le=L==null?void 0:L.split("*"))==null?void 0:le[0])==null?void 0:we.split(":"),k=(E=(re=(za=(Ge=(ue=(X=L==null?void 0:L.split("*"))==null?void 0:X[1])==null?void 0:ue.replace("{",$a))==null?void 0:Ge.split($a))==null?void 0:za[0])==null?void 0:re.split(":"))==null?void 0:E.filter(Oa=>Oa!==""),_=(me=(ae=L==null?void 0:L.replace("{",$a))==null?void 0:ae.split($a))==null?void 0:me[1],_=_==null?void 0:_.replaceAll("}",""),_=_==null?void 0:_.split(":"),W="Select";else if(((ce=Ra.analyzeSplitToContent(N,"="))==null?void 0:ce.length)>1){let Oa=(Ne=b==null?void 0:b.split("="))==null?void 0:Ne[1];if(b=(va=b==null?void 0:b.split("="))==null?void 0:va[0],W="Select",!(N!=null&&N.includes("||")))Oa=(Sa=Oa==null?void 0:Oa.split("/"))==null?void 0:Sa.map(qe=>((qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])==="/"&&(qe=qe==null?void 0:qe.slice(0,(qe==null?void 0:qe.length)-1)),qe)),U=Oa==null?void 0:Oa.map(qe=>({label:qe==null?void 0:qe.replaceAll("'",""),value:qe==null?void 0:qe.replaceAll("'","")}));else{let qe=[];(Ve=(na=(Q=(Wa=N==null?void 0:N.replace("=",$a))==null?void 0:Wa.split($a))==null?void 0:Q[1])==null?void 0:na.split("||"))==null||Ve.forEach(Ya=>{var ba,oe,Se;se.push((oe=(ba=Ya==null?void 0:Ya.split("@Filter"))==null?void 0:ba[0])==null?void 0:oe.split("/")),qe.push((Se=Ya==null?void 0:Ya.split("@Filter"))==null?void 0:Se[1])}),Ce=qe==null?void 0:qe.map(Ya=>(Ya=Ya==null?void 0:Ya.slice(1,(Ya==null?void 0:Ya.length)-1),Ya))}}else if(N!=null&&N.includes("@")&&!(N!=null&&N.includes("||"))){b=(Je=(Re=(Te=(He=(xa=b==null?void 0:b.replace("(@",$a))==null?void 0:xa.split($a))==null?void 0:He[0])==null?void 0:Te.replace("@",$a))==null?void 0:Re.split($a))==null?void 0:Je[0];let Oa=N!=null&&N.includes("(@")?"(@"+((Fa=(Ja=N==null?void 0:N.replace("(@",$a))==null?void 0:Ja.split($a))==null?void 0:Fa[1]):"@"+((F=(P=N==null?void 0:N.replace("@",$a))==null?void 0:P.split($a))==null?void 0:F[1]);if(Oa=(J=Co(Oa))==null?void 0:J.split(","),Oa!=null&&Oa.find(qe=>qe==null?void 0:qe.includes("@Type"))){let qe=(ne=Oa==null?void 0:Oa.find(Ya=>Ya==null?void 0:Ya.includes("@Type")))==null?void 0:ne.split("=");qe!=null&&qe.includes("File")&&(W="Upload"),qe!=null&&qe.includes("Date")&&(W="Date"),qe!=null&&qe.includes("DateTime")&&(W="DateTime"),qe!=null&&qe.includes("Time")&&(W="Time")}}y.push({prop:b,label:b,value:"",menuPath:T,groups:k,columns:_,width:p==null?void 0:p.length,options:U,type:W,allContents:se,filterContents:Ce})}else{s=s+"@"+((te=Ra.analyzeSplitToContent(N,"@"))==null?void 0:te[1]);let Oa=(ga=Ra.analyzeSplitToContent(N,"@"))==null?void 0:ga[0];(Oa==null?void 0:Oa[(Oa==null?void 0:Oa.length)-1])==="@"&&(Oa=Oa==null?void 0:Oa.slice(0,(Oa==null?void 0:Oa.length)-1));let qe=(ta=Oa==null?void 0:Oa.split("=="))==null?void 0:ta[0],Ya=(Oe=Oa==null?void 0:Oa.split("=="))==null?void 0:Oe[1],ba=(Da=(_e=Ya==null?void 0:Ya.split("*"))==null?void 0:_e[0])==null?void 0:Da.replace(no,"");(ba==null?void 0:ba[0])==="$"&&(ba=ba==null?void 0:ba.slice(1,ba==null?void 0:ba.length)),ba=Ra.analyzeSplitToContent(ba,"$"),ba=(he=ba==null?void 0:ba.map((oe,Se)=>{var Ue;return Se===0&&(ba==null?void 0:ba.length)>1&&(oe=(Ue=oe==null?void 0:oe.split(":"))==null?void 0:Ue[0]),(ba==null?void 0:ba.length)>1&&Se===(ba==null?void 0:ba.length)-1&&(oe=oe+":"),oe}))==null?void 0:he.join(":"),T=(ra=(Qe=ba==null?void 0:ba.replaceAll("{",""))==null?void 0:Qe.replaceAll("}",""))==null?void 0:ra.split(":"),k=(wa=(Xe=(ya=(Le=(_a=(Pe=Ya==null?void 0:Ya.split("*"))==null?void 0:Pe[1])==null?void 0:_a.replace("{",$a))==null?void 0:Le.split($a))==null?void 0:ya[0])==null?void 0:Xe.split(":"))==null?void 0:wa.filter(oe=>oe!==""),_=(Ga=(ve=Ya==null?void 0:Ya.replace("{",$a))==null?void 0:ve.split($a))==null?void 0:Ga[1],_=_==null?void 0:_.replaceAll("}",""),qe=qe==null?void 0:qe.slice(1,(qe==null?void 0:qe.length)-1),_=_==null?void 0:_.split(","),W="Select",(sa=qe==null?void 0:qe.split(","))==null||sa.forEach((oe,Se)=>{var Ue,Ke;y.push({prop:oe,label:oe,value:"",menuPath:T,groups:k,columns:(Ue=_==null?void 0:_[Se])==null?void 0:Ue.split(":"),width:(Ke=qe==null?void 0:qe.split(","))==null?void 0:Ke.length,type:W})})}}),{groupName:n,formContents:y,contents:r,filter:s}},Do=l=>{var o,s;let r=[],n=l.slice(1,(l==null?void 0:l.length)-1);if((n==null?void 0:n[0])!=="[")(o=Ra.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=Ra.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(Do(m))}),r=c}return r},ut=(l,r)=>{var A,N,Y,b,L,T,k,_,U,W,se,Ce,Ie,De,le,we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa,Oa,qe,Ya,ba,oe,Se;let n,o=[],s=[],c=[],m=[],p=[],v=[],y=[],u="Input",x,C="",B="",w=[],V="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let Ue=Ra.analyzeSplitToContent(l,"=");if((Ue==null?void 0:Ue.length)>1){l=Ue==null?void 0:Ue[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let Be=Ue==null?void 0:Ue[(Ue==null?void 0:Ue.length)-1];(Be==null?void 0:Be[0])==="&"&&(Be=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length)),B=(N=(A=Be==null?void 0:Be.replace("(",$a))==null?void 0:A.split($a))==null?void 0:N[0];let sl=(b=(Y=Be==null?void 0:Be.replace(")",$a))==null?void 0:Y.split($a))==null?void 0:b[0];sl=(T=(L=sl==null?void 0:sl.replace("(",$a))==null?void 0:L.split($a))==null?void 0:T[1],(sl==null?void 0:sl[0])==="{"&&(sl=sl==null?void 0:sl.slice(1,sl==null?void 0:sl.length)),(sl==null?void 0:sl[(sl==null?void 0:sl.length)-1])==="}"&&(sl=sl==null?void 0:sl.slice(0,(sl==null?void 0:sl.length)-1)),w=sl==null?void 0:sl.split(",");let Ea=(_=(k=Be==null?void 0:Be.replace(")",$a))==null?void 0:k.split($a))==null?void 0:_[1];Ea&&Ea!==""&&(V=Co(Ea))}n=(W=(U=l==null?void 0:l.replace("@Pam",$a))==null?void 0:U.split($a))==null?void 0:W[0];let Ke=(Ce=(se=l==null?void 0:l.replace("@Pam",$a))==null?void 0:se.split($a))==null?void 0:Ce[1];Ke=Ke==null?void 0:Ke.slice(1,(Ke==null?void 0:Ke.length)-1),Ke=(Ie=Ra.analyzeSplitToContent(Ke,","))==null?void 0:Ie.map(Be=>(Be="@"+Be,Be));let Ca=Ke==null?void 0:Ke.find(Be=>Be==null?void 0:Be.includes("@Type"));Ca!=null&&Ca.includes("File")&&(u="Upload"),Ca!=null&&Ca.includes("Date")&&(u="Date"),Ca!=null&&Ca.includes("DateTime")&&(u="DateTime"),Ca!=null&&Ca.includes("Time")&&(u="Time"),x=Ke==null?void 0:Ke.find(Be=>Be==null?void 0:Be.includes("@IdentName")),x=x?(le=(De=x==null?void 0:x.replace("=",$a))==null?void 0:De.split($a))==null?void 0:le[1]:n}else{if(n=(we=l==null?void 0:l.split("=="))==null?void 0:we[0],x=(X=l==null?void 0:l.split("=="))==null?void 0:X[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((za=(Ge=(ue=l==null?void 0:l.replace("=",$a))==null?void 0:ue.split($a))==null?void 0:Ge[1])!=null&&za.includes("||")))if(n=(re=l==null?void 0:l.split("="))==null?void 0:re[0],x=n,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let Ke=(E=l==null?void 0:l.split("(@"))==null?void 0:E[1];Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1),Ke=(me=(ae=Ke==null?void 0:Ke.replace("(",$a))==null?void 0:ae.split($a))==null?void 0:me[1],Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1),c==null||c.push(Ke),l=(ce=l==null?void 0:l.split("(@"))==null?void 0:ce[0]}else{let Ke=(Ne=l==null?void 0:l.split("@"))==null?void 0:Ne[1];Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1),Ke=(Sa=(va=Ke==null?void 0:Ke.replace("(",$a))==null?void 0:va.split($a))==null?void 0:Sa[1],Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1),c==null||c.push(Ke),l=(Wa=l==null?void 0:l.split("@"))==null?void 0:Wa[0]}let Ue=(na=(Q=l==null?void 0:l.split("="))==null?void 0:Q[1])==null?void 0:na.split("/");s.push(Ue)}else o=(xa=Ra.analyzeSplitToContent((Ve=l==null?void 0:l.split("="))==null?void 0:Ve[1],"/"))==null?void 0:xa.map(Ue=>((Ue==null?void 0:Ue[(Ue==null?void 0:Ue.length)-1])==="/"&&(Ue=Ue==null?void 0:Ue.slice(0,(Ue==null?void 0:Ue.length)-1)),Ue)),o=o==null?void 0:o.map(Ue=>({label:Ue==null?void 0:Ue.replaceAll("'",""),value:Ue==null?void 0:Ue.replaceAll("'","")}));else if((Re=(Te=(He=l==null?void 0:l.replace("=",$a))==null?void 0:He.split($a))==null?void 0:Te[1])!=null&&Re.includes("||")){n=(Je=l==null?void 0:l.split("="))==null?void 0:Je[0],x=(Ja=l==null?void 0:l.split("="))==null?void 0:Ja[0];let Ue=[];(J=(F=(P=(Fa=l==null?void 0:l.replace("=",$a))==null?void 0:Fa.split($a))==null?void 0:P[1])==null?void 0:F.split("||"))==null||J.forEach(Ke=>{var Ca,Be,sl;s.push((Be=(Ca=Ke==null?void 0:Ke.split("@Filter"))==null?void 0:Ca[0])==null?void 0:Be.split("/")),Ue.push((sl=Ke==null?void 0:Ke.split("@Filter"))==null?void 0:sl[1])}),c=Ue==null?void 0:Ue.map(Ke=>(Ke=Ke==null?void 0:Ke.slice(1,(Ke==null?void 0:Ke.length)-1),Ke))}else{let Ue=l==null?void 0:l.split("=="),Ke=(ne=Ue==null?void 0:Ue.filter(Ca=>(Ca==null?void 0:Ca[0])==="$"))==null?void 0:ne[0];if(Ke&&!(Ke!=null&&Ke.includes("&"))){let Ca=(te=Ke==null?void 0:Ke.replace("*",$a))==null?void 0:te.split($a),Be=(Ca==null?void 0:Ca[0])===""?r==null?void 0:r.value:Ca==null?void 0:Ca[0];Be=(ta=(ga=Be==null?void 0:Be.replaceAll("{",""))==null?void 0:ga.replaceAll("}",""))==null?void 0:ta.replaceAll(no,""),(Be==null?void 0:Be[0])==="$"&&(Be=(Oe=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length))==null?void 0:Oe.replaceAll(":","/")),m=Be==null?void 0:Be.split("/");let sl=(Da=(_e=Ca==null?void 0:Ca[1])==null?void 0:_e.replace("{",$a))==null?void 0:Da.split($a),Ea=sl==null?void 0:sl[0];(Ea==null?void 0:Ea[(Ea==null?void 0:Ea.length)-1])===":"&&(Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1)),p=Ea==null?void 0:Ea.split(":"),v=(Pe=(ra=(Qe=(he=sl==null?void 0:sl[1])==null?void 0:he.replace("}",$a))==null?void 0:Qe.split($a))==null?void 0:ra[0])==null?void 0:Pe.split(":");let Sl=(ya=(Le=(_a=sl==null?void 0:sl[(sl==null?void 0:sl.length)-1])==null?void 0:_a.replace("}",$a))==null?void 0:Le.split($a))==null?void 0:ya[1];Sl&&Sl!==""&&(C=Co(Sl))}if(Ue!=null&&Ue.some(Ca=>(Ca==null?void 0:Ca[0])==="&")){let Ca=(Xe=Ue==null?void 0:Ue.filter(Ea=>(Ea==null?void 0:Ea[0])==="&"))==null?void 0:Xe[0];(Ca==null?void 0:Ca[0])==="&"&&(Ca=Ca==null?void 0:Ca.slice(1,Ca==null?void 0:Ca.length)),B=(ve=(wa=Ca==null?void 0:Ca.replace("(",$a))==null?void 0:wa.split($a))==null?void 0:ve[0];let Be=(sa=(Ga=Ca==null?void 0:Ca.replace(")",$a))==null?void 0:Ga.split($a))==null?void 0:sa[0];Be=(qe=(Oa=Be==null?void 0:Be.replace("(",$a))==null?void 0:Oa.split($a))==null?void 0:qe[1],(Be==null?void 0:Be[0])==="{"&&(Be=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length)),(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)),w=Be==null?void 0:Be.split(",");let sl=(ba=(Ya=Ca==null?void 0:Ca.replace(")",$a))==null?void 0:Ya.split($a))==null?void 0:ba[1];sl&&sl!==""&&(V=Co(sl))}else if(!Ke){let Ca=Ue==null?void 0:Ue[(Ue==null?void 0:Ue.length)-1];Ca=Ca==null?void 0:Ca.slice(1,(Ca==null?void 0:Ca.length)-1),Ca=Ra.analyzeSplitToContent(Ca,","),Ca=Ca==null?void 0:Ca.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)),Ca=Ca==null?void 0:Ca.map(Be=>{var sl,Ea,Sl,ml;if(Be=Be==null?void 0:Be.replaceAll("$",""),Be!=null&&Be.includes("{")){let Fe="";Be=Be==null?void 0:Be.replaceAll("{","");let Pa=Be==null?void 0:Be.split("}");Fe=((Ea=(sl=Pa==null?void 0:Pa[0])==null?void 0:sl.split(":"))==null?void 0:Ea[0])+":"+(Pa==null?void 0:Pa[1]),Be=Fe,Be=Be+":"}if(Be!=null&&Be.includes(no)){let Fe="",Pa=Be==null?void 0:Be.split(no);Fe=((ml=(Sl=Pa==null?void 0:Pa[0])==null?void 0:Sl.split(":"))==null?void 0:ml[0])+":"+(Pa==null?void 0:Pa[1]),Be=Fe,Be=Be+":"}return Be=Be==null?void 0:Be.replaceAll(":","/"),Be}),y=Ca}}u="Select"}else n=l,x=l;return n!=null&&n.includes("@Pam")&&(n=(Se=(oe=l==null?void 0:l.replace("@Pam",$a))==null?void 0:oe.split($a))==null?void 0:Se[0],x=n),{label:n,prop:x,options:o,allContents:s,filterContents:c,menus:m,groups:p,words:v,align:"center",formType:u,filter:C,functionName:B,functionRelatedWords:w,calculatorFilter:V,relatedPages:y}},Ci=(l,r)=>{var o,s,c,m,p,v,y,u,x,C,B,w,V,A,N,Y,b,L,T,k,_,U,W,se,Ce,Ie,De,le,we;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(":",$a))==null?void 0:s.split($a))==null?void 0:c[0])!=null&&m.includes(","))){let X=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),ue=(p=X==null?void 0:X.replace(":",$a))==null?void 0:p.split($a);if(((v=Ra.analyzeSplitToContent(ue==null?void 0:ue[1],"="))==null?void 0:v.length)===1){let Ge=ue==null?void 0:ue[0],za=[];(x=Ra.analyzeSplitToContent((u=ue==null?void 0:ue[1])==null?void 0:u.slice(1,((y=ue==null?void 0:ue[1])==null?void 0:y.length)-1),","))==null||x.forEach(re=>{var E,ae;((E=Ra.analyzeSplitToContent(re,"="))==null?void 0:E.length)>1?((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)),za=[...za,...Ci(re,r)]):((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)),za.push((ae=Ci(re,r))==null?void 0:ae[0]))}),n==null||n.push({label:Ge,prop:Ge,children:za,align:"center"})}else{let Ge=[];if(((C=Ra.analyzeSplitToContent(X,"="))==null?void 0:C.length)>=2){let re=(B=Ra.analyzeSplitToContent(X,"="))==null?void 0:B[1],E=(w=Ra.analyzeSplitToContent(re,"/"))==null?void 0:w.map(ae=>((ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="/"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae));Ge=E==null?void 0:E.map(ae=>(ae=Do(ae),ae))}let za=(L=(b=(Y=(N=(A=(V=X==null?void 0:X.replace("{",$a))==null?void 0:V.split($a))==null?void 0:A[1])==null?void 0:N.replace("}",$a))==null?void 0:Y.split($a))==null?void 0:b[0])==null?void 0:L.split(",");za==null||za.forEach((re,E)=>{(Ge==null?void 0:Ge.length)>0&&E===0?n==null||n.push({label:re,prop:re,align:"center",formType:"Select",relatedContents:Ge==null?void 0:Ge.map(ae=>{let me={};return za==null||za.forEach((ce,Ne)=>{me[ce]=ae==null?void 0:ae[Ne]}),me}),options:Ge==null?void 0:Ge.map(ae=>({label:ae==null?void 0:ae[0],value:ae==null?void 0:ae[0]})),mainKey:!0}):n==null||n.push({label:re,prop:re,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((T=Ra.analyzeSplitToContent(l,"="))==null?void 0:T.length)===2&&((_=(k=Ra.analyzeSplitToContent(l,"="))==null?void 0:k[1])==null?void 0:_[0])==="["){let X=[];if(((U=Ra.analyzeSplitToContent(l,"="))==null?void 0:U.length)>=2){let Ge=(W=Ra.analyzeSplitToContent(l,"="))==null?void 0:W[1],za=(se=Ra.analyzeSplitToContent(Ge,"/"))==null?void 0:se.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));X=za==null?void 0:za.map(re=>(re=Do(re),re))}let ue=(Ie=(Ce=l==null?void 0:l.replace("}",$a))==null?void 0:Ce.split($a))==null?void 0:Ie[0];ue=(De=ue==null?void 0:ue.slice(1,ue==null?void 0:ue.length))==null?void 0:De.split(","),ue==null||ue.forEach((Ge,za)=>{(X==null?void 0:X.length)>0&&za===0?n==null||n.push({label:Ge,prop:Ge,align:"center",formType:"Select",relatedContents:X==null?void 0:X.map(re=>{let E={};return ue==null||ue.forEach((ae,me)=>{E[ae]=re==null?void 0:re[me]}),E}),options:X==null?void 0:X.map(re=>({label:re==null?void 0:re[0],value:re==null?void 0:re[0]})),mainKey:!0}):n==null||n.push({label:Ge,prop:Ge,align:"center"})})}else(le=Ra.analyzeSplitToContent(l,","))==null||le.forEach(X=>{var ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa,Oa;if((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])==="{"){let qe=Ra.analyzeSplitToContent(X,"="),Ya=qe==null?void 0:qe[(qe==null?void 0:qe.length)-1],ba=[],oe=[],Se=[],Ue=[],Ke=[],Ca=(ue=Ya==null?void 0:Ya.replace("*",$a))==null?void 0:ue.split($a),Be=(Ca==null?void 0:Ca[0])===""?r==null?void 0:r.value:Ca==null?void 0:Ca[0];if((Be==null?void 0:Be[0])==="$"&&((re=(za=(Ge=Be==null?void 0:Be.replace("@",$a))==null?void 0:Ge.split($a))==null?void 0:za[0])!=null&&re.includes("{"))&&(Be=(E=Be==null?void 0:Be.replace("{",""))==null?void 0:E.replace("}","")),Be=Be==null?void 0:Be.replaceAll(no,""),(Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===":"&&(Be=Be!=null&&Be.includes("(@")?((ae=Be==null?void 0:Be.split("(@"))==null?void 0:ae[0])+":":((me=Be==null?void 0:Be.split("@"))==null?void 0:me[0])+":"),(Be==null?void 0:Be[0])==="$"&&(Be=(ce=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length))==null?void 0:ce.replaceAll(":","/")),Be!=null&&Be.includes("$")){let Pa=(Ne=Be==null?void 0:Be.split("$"))==null?void 0:Ne[0];Pa=(va=Pa==null?void 0:Pa.split("/"))==null?void 0:va[0],Be=Pa+"/"+((Sa=Be==null?void 0:Be.split("$"))==null?void 0:Sa[1])+"/"}(Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])==="/"&&(Be==null?void 0:Be[(Be==null?void 0:Be.length)-2])==="/"&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),ba=Be==null?void 0:Be.split("/");let sl=(Q=(Wa=Ca==null?void 0:Ca[1])==null?void 0:Wa.replace("{",$a))==null?void 0:Q.split($a);if((xa=(Ve=(na=Ca==null?void 0:Ca[1])==null?void 0:na.split("(@"))==null?void 0:Ve[0])!=null&&xa.includes("&&")||(Re=(Te=(He=Ca==null?void 0:Ca[1])==null?void 0:He.split("@"))==null?void 0:Te[0])!=null&&Re.includes("&&")){let Pa=(Je=Ca==null?void 0:Ca[1])!=null&&Je.includes("(@")?(P=(Fa=(Ja=Ca==null?void 0:Ca[1])==null?void 0:Ja.split("(@"))==null?void 0:Fa[0])==null?void 0:P.split("&&"):(ne=(J=(F=Ca==null?void 0:Ca[1])==null?void 0:F.split("@"))==null?void 0:J[0])==null?void 0:ne.split("&&");Ue=Pa==null?void 0:Pa.map(xe=>{var ea,Ze;return(xe==null?void 0:xe[0])==="*"&&(xe=xe==null?void 0:xe.slice(1,xe==null?void 0:xe.length)),xe=(Ze=(ea=xe==null?void 0:xe.replace("{",$a))==null?void 0:ea.split($a))==null?void 0:Ze[0],(xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])===":"&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe=xe==null?void 0:xe.split(":"),xe});let je=[];Pa==null||Pa.forEach((xe,ea)=>{var Ze,la;(xe==null?void 0:xe[0])==="*"&&(xe=xe==null?void 0:xe.slice(1,xe==null?void 0:xe.length)),xe=(la=(Ze=xe==null?void 0:xe.replace("{",$a))==null?void 0:Ze.split($a))==null?void 0:la[1],(xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])==="}"&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe=xe==null?void 0:xe.split(","),je.push(ea===0?(xe==null?void 0:xe.length)-1:xe==null?void 0:xe.length),Ke=[...Ke,...xe]}),je=(te=Ra.prefixSum(je))==null?void 0:te.map(xe=>xe==null?void 0:xe.total),Ue=Ue==null?void 0:Ue.map((xe,ea)=>({number:je==null?void 0:je[ea],contents:xe}))}let Ea=sl==null?void 0:sl[0];(Ea==null?void 0:Ea[(Ea==null?void 0:Ea.length)-1])===":"&&(Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1)),oe=Ea==null?void 0:Ea.split(":"),Se=(_e=(Oe=(ta=(ga=sl==null?void 0:sl[1])==null?void 0:ga.replace("}",$a))==null?void 0:ta.split($a))==null?void 0:Oe[0])==null?void 0:_e.split(",");let Sl=(he=qe==null?void 0:qe[0])==null?void 0:he.slice(1,((Da=qe==null?void 0:qe[0])==null?void 0:Da.length)-2),ml="",Fe="";if((Qe=qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])!=null&&Qe.includes("(@")?(Fe=(_a=(Pe=(ra=qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])==null?void 0:ra.replace("(@",$a))==null?void 0:Pe.split($a))==null?void 0:_a[1],Fe="(@"+Fe):(Le=qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])!=null&&Le.includes("@")&&(Fe=(wa=(Xe=(ya=qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])==null?void 0:ya.replace("@",$a))==null?void 0:Xe.split($a))==null?void 0:wa[1],Fe="@"+Fe),((ve=Ra.analyzeSplitToContent(Fe,"&"))==null?void 0:ve.length)>1){let Pa=(sa=(Ga=Ra.analyzeSplitToContent(Fe,"}"))==null?void 0:Ga.map(je=>{var xe;return je!=null&&je.includes("@")||(je=""),je!=null&&je.includes("@")&&(je=(xe=Ra.analyzeSplitToContent(je,":"))==null?void 0:xe[0],(je==null?void 0:je[(je==null?void 0:je.length)-1])===":"&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1)),(je==null?void 0:je[0])==="("&&(je=je==null?void 0:je.slice(1,(je==null?void 0:je.length)-1))),je}))==null?void 0:sa.filter(je=>je!=="");Fe=(Fe==null?void 0:Fe.length)===1?Pa:"("+(Pa==null?void 0:Pa.join(","))+")"}Fe&&Fe!==""&&(ml=Co(Fe)),(Oa=Sl==null?void 0:Sl.split(","))==null||Oa.forEach((Pa,je)=>{var xe,ea,Ze;n.push({label:Pa,prop:Pa,align:"center",menus:ba,groups:(Ue==null?void 0:Ue.length)===0?oe:(xe=Ue==null?void 0:Ue.find(la=>(la==null?void 0:la.number)>=je))==null?void 0:xe.contents,words:(Ke==null?void 0:Ke.length)===0?(ea=Se==null?void 0:Se[je])==null?void 0:ea.split(":"):(Ze=Ke==null?void 0:Ke[je])==null?void 0:Ze.split(":"),formType:(ba==null?void 0:ba.length)>0?"Select":"Input",mainKey:je===0,filter:ml,isMainPath:(Ue==null?void 0:Ue.findIndex(la=>(la==null?void 0:la.number)>=je))===0})})}else n.push({label:X,prop:X,align:"center"})});else{let X=(we=Ra.analyzeSplitToContent(l,","))==null?void 0:we.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue));X==null||X.forEach(ue=>{n.push(ut(ue,r))})}return n},Od=(l,r)=>{var m,p,v,y,u;let n=l;if(!l)return;let o="";((m=Ra.analyzeSplitToContent(l,"}"))==null?void 0:m.length)>1&&(n=(p=Ra.analyzeSplitToContent(l,"}"))==null?void 0:p[0],o=(v=Ra.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(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=Ra.analyzeSplitToContent(n,","))==null||y.forEach(x=>{var C;(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])==="{"?(C=Ci(x,r))==null||C.forEach(B=>{s.push(B)}):s.push(ut(x,r))}),s!=null&&s.some(x=>{var C;return(C=x==null?void 0:x.prop)==null?void 0:C.includes("@")})&&(s=s==null?void 0:s.filter(x=>{var C;return!((C=x==null?void 0:x.prop)!=null&&C.includes("@"))})),o!==""&&((o==null?void 0:o[0])=="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),(u=Ra.analyzeSplitToContent(o,","))==null||u.forEach(x=>{var C;(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])==="{"?(C=Ci(x,r))==null||C.forEach(B=>{c.push(B)}):c.push(ut(x,r))})),{columns:s,secondColumns:c}},dt=l=>{var r,n,o,s,c;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let m=(n=(r=l==null?void 0:l.replace("(",$a))==null?void 0:r.split($a))==null?void 0:n[1],p=(s=(o=l==null?void 0:l.replace("(",$a))==null?void 0:o.split($a))==null?void 0:s[0];return m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1),m=(c=Ra.analyzeSplitToContent(m,","))==null?void 0:c.map(v=>((v==null?void 0:v[(v==null?void 0:v.length)-1])===","&&(v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1)),p+v)),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}},ls=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("/"))+$a+((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($a))==null?void 0:o[0],groups:((s=n==null?void 0:n.split($a))==null?void 0:s[1])??[]}}),r},Id=(l,r,n="")=>{var N,Y,b,L,T,k,_,U,W,se,Ce,Ie,De,le,we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa,Oa,qe,Ya,ba;let o=[];if(((N=l==null?void 0:l[0])==null?void 0:N[0])!=="*"&&((Y=l==null?void 0:l[0])==null?void 0:Y[0])!=="$")return;let s=Ra.analyzeSplitToContent(l==null?void 0:l[0],":"),c=s==null?void 0:s.filter(oe=>!((oe==null?void 0:oe[0])!=="{"&&(oe==null?void 0:oe[0])!=="["));o=(b=s==null?void 0:s.filter(oe=>(oe==null?void 0:oe[0])!=="{"&&(oe==null?void 0:oe[0])!=="["))==null?void 0:b.join("");let m="",p="";if((o==null?void 0:o[(o==null?void 0:o.length)-1])===":"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o!=null&&o.includes("(@")&&(o==null?void 0:o[0])==="*"&&(m="(@"+((L=o==null?void 0:o.split("(@"))==null?void 0:L[1]),o=(T=o==null?void 0:o.split("(@"))==null?void 0:T[0]),o!=null&&o.includes("@")&&(o==null?void 0:o[0])==="*"&&(m="@"+((_=(k=o==null?void 0:o.replace("@",$a))==null?void 0:k.split($a))==null?void 0:_[1]),o=(W=(U=o==null?void 0:o.replace("@",$a))==null?void 0:U.split($a))==null?void 0:W[0]),(o==null?void 0:o[0])==="*"?(o=o==null?void 0:o.slice(1,o==null?void 0:o.length),o=o==null?void 0:o.split(":")):(p=$.cloneDeep(o)+":",o=[]),p=p+((c==null?void 0:c[0])??""),(p==null?void 0:p[(p==null?void 0:p.length)-1])===":"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),m!==""&&p!=="")if((p==null?void 0:p[(p==null?void 0:p.length)-1])===")")if(p!=null&&p.includes("(@")){let oe=(se=p==null?void 0:p.split("(@"))==null?void 0:se[0],Se=(Ce=p==null?void 0:p.split("(@"))==null?void 0:Ce[1];Se="(@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1))+m,p=oe+Se}else{let oe=(De=(Ie=p==null?void 0:p.replace("@",$a))==null?void 0:Ie.split($a))==null?void 0:De[0],Se=(we=(le=p==null?void 0:p.replace("@",$a))==null?void 0:le.split($a))==null?void 0:we[1];Se="(@"+Se+m,p=oe+Se}else p=p+m;let v=c==null?void 0:c[1];(p==null?void 0:p[0])==="["&&(v=$.cloneDeep(p)+(v??""),p="");let y=v?Do(v):[];!(y!=null&&y.every(oe=>Array.isArray(oe)))&&(y==null?void 0:y.length)>0&&(y=[y]);let u=(X=Ra.analyzeSplitToContent(p,"@"))!=null&&X[1]?"@"+((ue=Ra.analyzeSplitToContent(p,"@"))==null?void 0:ue[1]):"";if(p=(Ge=Ra.analyzeSplitToContent(p,"@"))==null?void 0:Ge[0],p!=null&&p.includes("(@")&&(((za=Ra.analyzeSplitToContent(p,"}"))==null?void 0:za.length)===1&&((me=(re=Ra.analyzeSplitToContent(p,"}"))==null?void 0:re[0])==null?void 0:me[((ae=(E=Ra.analyzeSplitToContent(p,"}"))==null?void 0:E[0])==null?void 0:ae.length)-1])===")"||(ce=Ra.analyzeSplitToContent(p,"}"))!=null&&ce[1]&&((Ne=Ra.analyzeSplitToContent(p,"}"))==null?void 0:Ne[1])!=="@")&&(u="(@"+((va=p==null?void 0:p.split("(@"))==null?void 0:va[1]),p=(Sa=p==null?void 0:p.split("(@"))==null?void 0:Sa[0]),(p==null?void 0:p[0])==="$"&&(u=$.cloneDeep(p)+(u??""),p=""),n!=="")if(m!=="")u=(n==null?void 0:n[(n==null?void 0:n.length)-1])!==")"?n+m:(n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1))+","+m;else{let oe="";if(n!=null&&n.includes("(@")){let Se=(xa=(Ve=(na=(Q=(Wa=n==null?void 0:n.replace("(@",$a))==null?void 0:Wa.split($a))==null?void 0:Q[0])==null?void 0:na.replace("{",$a))==null?void 0:Ve.split($a))==null?void 0:xa[0];oe=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"(@"+((Te=(He=n==null?void 0:n.replace("(@",$a))==null?void 0:He.split($a))==null?void 0:Te[1])}else if(n!=null&&n.includes("@")){let Se=(Je=(Re=n==null?void 0:n.replace("@",$a))==null?void 0:Re.split($a))==null?void 0:Je[0];(Se==null?void 0:Se[0])==="$"?Se=(Ja=Se==null?void 0:Se.replaceAll("{",""))==null?void 0:Ja.replaceAll("}",""):Se=(P=(Fa=Se==null?void 0:Se.replace("{",$a))==null?void 0:Fa.split($a))==null?void 0:P[0],oe=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"@"+((J=(F=n==null?void 0:n.replace("@",$a))==null?void 0:F.split($a))==null?void 0:J[1])}u=oe===""?n:oe}if(u!==""){(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),(u==null?void 0:u[(u==null?void 0:u.length)-1])===":"&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1));let oe="";if(u!=null&&u.includes("(@")){oe=(te=(ne=u==null?void 0:u.replace("(@",$a))==null?void 0:ne.split($a))==null?void 0:te[0];let Se=(ta=(ga=u==null?void 0:u.replace("(@",$a))==null?void 0:ga.split($a))==null?void 0:ta[1];Se="@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1));let Ue=(Oe=Ra.analyzeSplitToContent(Se,","))==null?void 0:Oe.map(Ke=>((Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1])===","&&(Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1)),(Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1])!==")"&&(Ke=Ke+")"),dt(Ke)));u=oe+"("+(Ue==null?void 0:Ue.join(","))+")"}else{oe=(Da=(_e=u==null?void 0:u.replace("@",$a))==null?void 0:_e.split($a))==null?void 0:Da[0];let Se=(Qe=(he=u==null?void 0:u.replace("@",$a))==null?void 0:he.split($a))==null?void 0:Qe[1];if(Se){Se="@"+Se;let Ue=(ra=Ra.analyzeSplitToContent(Se,","))==null?void 0:ra.map(Ke=>((Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1])!==")"&&(Ke=Ke+")"),dt(Ke)));u=oe+"("+(Ue==null?void 0:Ue.join(","))+")"}else u=oe}}(p==null?void 0:p[(p==null?void 0:p.length)-1])==="@"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1));let x=Od(p,r),C=p===""?[]:(x==null?void 0:x.columns)??[],B=pa.getColumnChild(C),w=B;w=w==null?void 0:w.filter(oe=>{var Se,Ue;return(oe==null?void 0:oe.filter)&&(oe==null?void 0:oe.filter)!==""&&(((Se=oe==null?void 0:oe.filter)==null?void 0:Se.includes("@QuoteSonSync"))||((Ue=oe==null?void 0:oe.filter)==null?void 0:Ue.includes("@QuoteFatherSync")))});let V=w==null?void 0:w.filter(oe=>{var Se,Ue,Ke;return((Se=oe==null?void 0:oe.filter)==null?void 0:Se.includes("@QuoteSonSync"))&&((Ke=(Ue=oe==null?void 0:oe.filter)==null?void 0:Ue.split(","))==null?void 0:Ke.find(Ca=>(Ca==null?void 0:Ca.includes("@QuoteSonSync"))&&(Ca==null?void 0:Ca.includes("Yes"))))}),A=w==null?void 0:w.filter(oe=>{var Se,Ue,Ke;return((Se=oe==null?void 0:oe.filter)==null?void 0:Se.includes("@QuoteFatherSync"))&&((Ke=(Ue=oe==null?void 0:oe.filter)==null?void 0:Ue.split(","))==null?void 0:Ke.find(Ca=>(Ca==null?void 0:Ca.includes("@QuoteFatherSync"))&&(Ca==null?void 0:Ca.includes("Yes"))))});if(B=B==null?void 0:B.map(oe=>{var Se,Ue;return{menus:oe==null?void 0:oe.menus,content:((Se=oe==null?void 0:oe.menus)==null?void 0:Se.join("/"))+$a+((Ue=oe==null?void 0:oe.groups)==null?void 0:Ue.join("/"))}}),A=ls(A),V=ls(V),B=B==null?void 0:B.filter(oe=>{var Se;return(oe==null?void 0:oe.menus)&&((Se=oe==null?void 0:oe.menus)==null?void 0:Se.length)>0}),B=B==null?void 0:B.map(oe=>oe==null?void 0:oe.content),B=[...new Set(B)],B=B==null?void 0:B.map(oe=>{var Se,Ue;return{menus:(Se=oe==null?void 0:oe.split($a))==null?void 0:Se[0],groups:((Ue=oe==null?void 0:oe.split($a))==null?void 0:Ue[1])??[]}}),C!=null&&C.some(oe=>{var Se;return Array.isArray(oe==null?void 0:oe.children)&&((Se=oe==null?void 0:oe.children)==null?void 0:Se.length)>0})&&(C=[C]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((Pe=y==null?void 0:y[0])!=null&&Pe.every(oe=>Array.isArray(oe)))?y=y==null?void 0:y.map((oe,Se)=>(oe=oe.map((Ue,Ke)=>(Ue.unshift("{}"),Ue.unshift((Ke+1).toString()),Ue)),oe)):y=y==null?void 0:y.map((oe,Se)=>(oe.unshift("{}"),oe.unshift((Se+1).toString()),oe))),x!=null&&x.secondColumns&&((_a=x==null?void 0:x.secondColumns)==null?void 0:_a.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((oe,Se)=>{var Ue,Ke;return Array.isArray(oe==null?void 0:oe[0])?oe=oe==null?void 0:oe.map((Ca,Be)=>{var sl,Ea;return Ca.unshift((Ea=(sl=x==null?void 0:x.secondColumns)==null?void 0:sl[Be])==null?void 0:Ea.prop),Ca}):oe.unshift((Ke=(Ue=x==null?void 0:x.secondColumns)==null?void 0:Ue[Se])==null?void 0:Ke.prop),oe}):y=(Le=x==null?void 0:x.secondColumns)==null?void 0:Le.map((oe,Se)=>(oe=[oe==null?void 0:oe.label],oe.push(Se),oe)),C.unshift({label:"",prop:"disabled",sortable:!1})),(C==null?void 0:C.length)>0){let oe=$.cloneDeep(C);Array.isArray(oe==null?void 0:oe[0])&&(oe=oe==null?void 0:oe[0]);let Se=pa.getColumnChild(oe);Se=Se==null?void 0:Se.map(Ue=>Ue==null?void 0:Ue.filter),Se=Se==null?void 0:Se.filter(Ue=>Ue&&Ue!==""),Se=[...new Set(Se)],(Se==null?void 0:Se.length)>0&&(u=$a+(u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))+(u!=null&&u.slice(1,(u==null?void 0:u.length)-1)?",":"")+((ya=$.cloneDeep(Se))==null?void 0:ya.join(";")))}if((u==null?void 0:u[0])!=="("&&(u!=null&&u.includes("(@"))){let oe=(wa=(Xe=u==null?void 0:u.replace("(",$a))==null?void 0:Xe.split($a))==null?void 0:wa[0],Se=[{menus:(Ga=(ve=oe==null?void 0:oe.split("*"))==null?void 0:ve[0])==null?void 0:Ga.replaceAll(":","/"),groups:(sa=oe==null?void 0:oe.split("*"))==null?void 0:sa[1]}],Ue=(qe=(Oa=u==null?void 0:u.replace("(",$a))==null?void 0:Oa.split($a))==null?void 0:qe[1];(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=Ra.analyzeSplitToContent(Ue,","),(Ya=Ue==null?void 0:Ue.find(Ke=>Ke==null?void 0:Ke.includes("@QuoteFatherSync")))!=null&&Ya.includes("Yes")&&(A=[...A,...Se]),(ba=Ue==null?void 0:Ue.find(Ke=>Ke==null?void 0:Ke.includes("@QuoteSonSync")))!=null&&ba.includes("Yes")&&(V=[...V,...Se])}return{groupName:o,tableColumns:C,tableFilter:u,tableContents:y,columns:(x==null?void 0:x.secondColumns)??[],relatedQuotes:B,fatherSyncContents:A,sonSyncContents:V}},Gs=(l,r)=>(l=l==null?void 0:l.map((n,o)=>{var s,c,m,p;if(Array.isArray(n))n=n==null?void 0:n.map(v=>{var y,u,x,C;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=Gs(v.children,r):((u=v==null?void 0:v.menus)==null?void 0:u.length)>0&&!((x=n==null?void 0:n[0])!=null&&x.isMainPath)&&(v.menus=(C=v.menus)==null?void 0:C.map((B,w)=>{var V,A;return((V=v.menus)==null?void 0:V.length)-1===w&&B===""&&(r==null?void 0:r.parentContent)+"/"!==((A=v.menus)==null?void 0:A.join("/"))&&(B=r==null?void 0:r.value),v}),v.bindMenus=v.menus)),v});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=(p=n.menus)==null?void 0:p.map((v,y)=>{var u,x;return((u=n.menus)==null?void 0:u.length)-1===y&&v===""&&(r==null?void 0:r.parentContent)+"/"!==((x=n.menus)==null?void 0:x.join("/"))&&(v=r==null?void 0:r.value),v}),n.bindMenus=n.menus)}return n}),l),Ld=(l,r)=>(l=l==null?void 0:l.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=Gs(n.contents,r)),n)),l),pt=(l,r)=>{let n=l;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(o=>(o=pt(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=pt(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 p,v,y,u;return((u=(p=o==null?void 0:o.prop)==null?void 0:p.split("."))==null?void 0:u[((y=(v=o==null?void 0:o.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===m}))&&(o.mainKey=!0),o}),n};let or="$R";const $d=$.useUnit($.pinia),{selectTitle:cn}=$.storeToRefs($d),un=[{key:"@interfaceMaxRow",value:"onNumSlice",order:1},{key:"@QuoteType",value:"onRandomContents",order:2},{key:"@interfaceType",value:"onInterfaceTypeContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@QuoteMainPam",value:"onMainTagContents",order:3},{key:"@interfaceTopButton",value:"onButtonContents",order:1},{key:"@interfaceColumnButton",value:"onPamButtonContents",order:1},{key:"@interfaceRowButton",value:"onRowButtonContents",order:1},{key:"@interfaceBottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@interfaceRowNum",value:"onRowNum",order:1},{key:"@interfaceFixRow",value:"onFixRow",order:1},{key:"@interfaceReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@interfaceTab",value:"onTabs",order:1},{key:"@interfaceSinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@interfaceShowType",value:"onShowType",order:1},{key:"@interfaceStepName",value:"onStepName",order:1},{key:"@interfaceStep",value:"onStep",order:1}];var ro=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(ro||{});const Js=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]]},Xs=(l,r)=>{var V,A,N,Y,b;const n=Array.isArray(l)?l:[],o=n.find(L=>(L==null?void 0:L.key)==="formContent"),s=Array.isArray(o==null?void 0:o.contents)?o.contents:[],c=((V=n.find(L=>(L==null?void 0:L.key)==="_gridLayoutMeta"))==null?void 0:V.contents)??{},m=(s==null?void 0:s[0])??{};let p=((A=r==null?void 0:r.position)==null?void 0:A[0])??(c==null?void 0:c._positionStartRow)??(m==null?void 0:m._positionStartRow),v=((N=r==null?void 0:r.position)==null?void 0:N[1])??(c==null?void 0:c._positionRowSpan)??(m==null?void 0:m._positionRowSpan);(!p||Number.isNaN(p)||p<1)&&(p=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let y=((Y=r==null?void 0:r.size)==null?void 0:Y[0])??(c==null?void 0:c._sizeStart)??(m==null?void 0:m._sizeStart),u=((b=r==null?void 0:r.size)==null?void 0:b[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,C=Math.max(1,Math.round(1/x));let B=n.map(L=>{if((L==null?void 0:L.key)!=="formContent")return L;const T=Array.isArray(L==null?void 0:L.contents)?L.contents:[];return{...L,contents:T.map(k=>({...k,width:C,_positionStartRow:p,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u}))}});const w={_positionStartRow:p,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u};return B.some(L=>(L==null?void 0:L.key)==="_gridLayoutMeta")?B=B.map(L=>(L==null?void 0:L.key)==="_gridLayoutMeta"?{...L,contents:w}:L):B.push({key:"_gridLayoutMeta",contents:w}),B},Rd=l=>{const r=Js(l==null?void 0:l.filter);return r?Xs(l==null?void 0:l.contents,{position:r}):l==null?void 0:l.contents},Vd=l=>{const r=Js(l==null?void 0:l.filter);return r?Xs(l==null?void 0:l.contents,{size:r}):l==null?void 0:l.contents},Pd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let 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},Fd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let 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},jd=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})},Hd=async l=>{var r,n,o,s,c,m,p,v,y,u,x,C,B,w,V,A,N,Y,b,L,T,k,_,U,W,se,Ce,Ie,De,le;if((l==null?void 0:l.filter)==="Random")return(r=l==null?void 0:l.contents)==null?void 0:r.map(X=>((X==null?void 0:X.key)==="tableContents"&&(X.contents=Ra.shuffle(X.contents)),X));if((l==null?void 0:l.filter)==="Auto"){let we=(o=(n=l==null?void 0:l.contents)==null?void 0:n.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:o.contents;Array.isArray(we==null?void 0:we[0])&&(we=we==null?void 0:we[0]),we=pa.getColumnChild(we);let X=we==null?void 0:we.filter(ce=>(ce==null?void 0:ce.filter)&&(ce==null?void 0:ce.filter)!==""),ue=new Map,Ge=[];X==null||X.forEach(ce=>{var Ne,va;ue.get((Ne=ce==null?void 0:ce.menus)==null?void 0:Ne.join("/"))||(ue.set((va=ce==null?void 0:ce.menus)==null?void 0:va.join("/"),ce),Ge.push(ce))});let za=(c=(s=cn==null?void 0:cn.value)==null?void 0:s.find(ce=>(ce==null?void 0:ce.condition)==="child"))==null?void 0:c.value,re=Ge==null?void 0:Ge.map(ce=>{var Ne,va,Sa;return ce=(Ne=ce==null?void 0:ce.menus)==null?void 0:Ne.join("/"),(ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])==="/"&&((Sa=(va=cn==null?void 0:cn.value)==null?void 0:va.find(Wa=>(Wa==null?void 0:Wa.condition)==="child"))==null?void 0:Sa.parentContent)+"/"!==ce?ce=ce+za:(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}),E=Ge==null?void 0:Ge.map(ce=>ce==null?void 0:ce.groups),ae=re==null?void 0:re.map(async ce=>{let Ne=await Vr(ce,!1);return{path:ce,contents:Ne}});ae=await Promise.all(ae);let me=ae==null?void 0:ae.map((ce,Ne)=>{var Sa,Wa,Q,na,Ve,xa,He;let va=(Sa=ce==null?void 0:ce.contents)==null?void 0:Sa.filter(Te=>{var Re,Je;return(Te==null?void 0:Te.name)===((Je=E==null?void 0:E[Ne])==null?void 0:Je[((Re=E==null?void 0:E[Ne])==null?void 0:Re.length)-1])});return va=(na=(Q=(Wa=va==null?void 0:va[0])==null?void 0:Wa.compData)==null?void 0:Q.find(Te=>(Te==null?void 0:Te.key)==="tableContents"))==null?void 0:na.contents,(ce==null?void 0:ce.path)===((xa=(Ve=cn==null?void 0:cn.value)==null?void 0:Ve.find(Te=>(Te==null?void 0:Te.condition)==="child"))==null?void 0:xa.parentContent)&&(va=((He=va==null?void 0:va.map(Te=>{for(let Re in Te)if(Te[Re]===za)return Te}))==null?void 0:He.filter(Te=>Te))??[]),va??[]});if(me=me==null?void 0:me.map(ce=>(ce=ce==null?void 0:ce.map(Ne=>{var Sa;let va={};for(let Wa in Ne)if(X!=null&&X.find(Q=>{var na,Ve;return((Ve=(na=Q==null?void 0:Q.words)==null?void 0:na[0])==null?void 0:Ve.replaceAll("'",""))===Wa})){let Q=(Sa=X==null?void 0:X.find(na=>{var Ve,xa;return((xa=(Ve=na==null?void 0:na.words)==null?void 0:Ve[0])==null?void 0:xa.replaceAll("'",""))===Wa}))==null?void 0:Sa.prop;va[Q]=Ne==null?void 0:Ne[Wa]}return va}),ce)),me=Ra.cartesianProduct(me),Array.isArray(me==null?void 0:me[0])&&(me=me==null?void 0:me[0]),(me==null?void 0:me.length)>0&&((x=(p=(m=X==null?void 0:X[0])==null?void 0:m.menus)==null?void 0:p.join("/"))==null?void 0:x[((u=(y=(v=X==null?void 0:X[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:u.length)-1])==="/")return(C=l==null?void 0:l.contents)==null?void 0:C.map(Ne=>{var va;return(Ne==null?void 0:Ne.key)==="tableContents"&&(me==null?void 0:me.length)>0&&(Ne.contents=((va=Ne.contents)==null?void 0:va.length)>0?Ne.contents:me),Ne})}if((l==null?void 0:l.filter)==="Manual"){let we=[],X=[],ue=(w=(B=l==null?void 0:l.contents)==null?void 0:B.find(E=>(E==null?void 0:E.key)==="filter"))==null?void 0:w.contents;(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===")"?ue=(A=(V=ue==null?void 0:ue.replace("(",or))==null?void 0:V.split(or))==null?void 0:A[0]:ue="",ue!==""&&(we=((Y=(N=ue==null?void 0:ue.split("*"))==null?void 0:N[0])==null?void 0:Y.split(":"))??[],X=((_=(k=(T=(L=(b=ue==null?void 0:ue.split("*"))==null?void 0:b[1])==null?void 0:L.replace("{",or))==null?void 0:T.split(or))==null?void 0:k[0])==null?void 0:_.split(":"))??[]);let Ge=(W=(U=l==null?void 0:l.contents)==null?void 0:U.find(E=>(E==null?void 0:E.key)==="filter"))==null?void 0:W.contents;Ge=(Ce=(se=Ge==null?void 0:Ge.replace("(",or))==null?void 0:se.split(or))==null?void 0:Ce[1],Ge=Ge==null?void 0:Ge.slice(0,(Ge==null?void 0:Ge.length)-1);let za=(Ie=l==null?void 0:l.contents)==null?void 0:Ie.map(E=>{var ae,me,ce,Ne,va,Sa,Wa,Q,na;return(E==null?void 0:E.key)==="header"&&((ae=E==null?void 0:E.contents)!=null&&ae.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(E==null?void 0:E.contents)&&!Array.isArray((me=E==null?void 0:E.contents)==null?void 0:me[0])?E.contents=(ce=E==null?void 0:E.contents)==null?void 0:ce.map((Ve,xa)=>{var He,Te,Re;return Ve!=null&&Ve.isMainPath||(xa===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=we,Ve.groups=((He=Ve.groups)==null?void 0:He.length)===0?X:Ve.groups,Ve.words=((Te=Ve.words)==null?void 0:Te.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=Ge,(!(Ve!=null&&Ve.menus)||((Re=Ve==null?void 0:Ve.menus)==null?void 0:Re.length)===0)&&(Ve.menus=we)):(Ve.mainKey=!1,Ve.bindMenus=we)),Ve}):Array.isArray((Ne=E==null?void 0:E.contents)==null?void 0:Ne[0])&&((Wa=(Sa=(va=E==null?void 0:E.contents)==null?void 0:va[0])==null?void 0:Sa.filter(()=>(we==null?void 0:we.length)>0))==null?void 0:Wa.length)>0&&(E.contents[0]=(na=(Q=E==null?void 0:E.contents)==null?void 0:Q[0])==null?void 0:na.map((Ve,xa)=>{var He,Te,Re;return Ve!=null&&Ve.isMainPath||(xa===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=we,Ve.groups=((He=Ve.groups)==null?void 0:He.length)===0?X:Ve.groups,Ve.words=((Te=Ve.words)==null?void 0:Te.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=Ge,(!(Ve!=null&&Ve.menus)||Array.isArray(Ve==null?void 0:Ve.menus)&&((Re=Ve==null?void 0:Ve.menus)==null?void 0:Re.length)===0)&&(we==null?void 0:we.length)>0&&(Ve.menus=we)):(Ve.mainKey=!1,Ve.bindMenus=we)),Ve}))),E}),re=(De=za==null?void 0:za.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:De.contents;if(Array.isArray(re==null?void 0:re[0])&&(re=re==null?void 0:re[0]),re=pa.getColumnChild(re),re!=null&&re.some(E=>{var ae,me;return((me=E==null?void 0:E.menus)==null?void 0:me[((ae=E==null?void 0:E.menus)==null?void 0:ae.length)-1])===""})){let E=(le=cn==null?void 0:cn.value)==null?void 0:le.find(ae=>(ae==null?void 0:ae.condition)==="child");za=Ld(za,E)}return za}return l==null?void 0:l.contents},Ud=async l=>{if((l==null?void 0:l.filter)==="Form"){let r=l==null?void 0:l.contents;return r.push({key:"enableWrap",contents:1}),r}if((l==null?void 0:l.filter)==="FormBlock"){let r=l==null?void 0:l.contents;return r.push({key:"enableWrap",contents:2}),r}if((l==null?void 0:l.filter)==="FormText"){let r=l==null?void 0:l.contents;return r.push({key:"enableWrap",contents:3}),r}return l==null?void 0:l.contents},qd=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("{",or))==null?void 0:o.split(or))==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=pa.calculatorAndToOr(r);if((n==null?void 0:n.length)>0){let p=[];return n==null||n.forEach(y=>{let u={};for(let x in y){let C=x;C!=null&&C.includes("[")||(u[C]=y[x])}p.push(u)}),(m=l==null?void 0:l.contents)==null?void 0:m.map(y=>{var x,C,B;let u=(C=(x=l==null?void 0:l.contents)==null?void 0:x.find(w=>(w==null?void 0:w.key)==="header"))==null?void 0:C.contents;if(u=(B=pa.getEqualChild(u))==null?void 0:B.filter(w=>(w==null?void 0:w.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let V=pa.tableToForm(y==null?void 0:y.contents,u);p==null||p.forEach(A=>{var N,Y;for(let b in A)!((N=V==null?void 0:V[0])!=null&&N.find(L=>{var T;return(L==null?void 0:L.key)===b||((T=L==null?void 0:L.key)==null?void 0:T.includes(b))}))&&!(V!=null&&V.find(L=>{var T;return(L==null?void 0:L.key)===b||((T=L==null?void 0:L.key)==null?void 0:T.includes(b))}))||(((Y=A[b])==null?void 0:Y[0])!=="!"?V=V==null?void 0:V.filter(L=>{var T,k;return((T=L==null?void 0:L.find(_=>{var U;return(_==null?void 0:_.key)===b||((U=_==null?void 0:_.key)==null?void 0:U.includes(b))}))==null?void 0:T.value)===A[b]||Array.isArray(A==null?void 0:A[b])&&((k=A==null?void 0:A[b])==null?void 0:k.find(_=>{var U;return((U=L==null?void 0:L.find(W=>{var se;return(W==null?void 0:W.key)===b||((se=W==null?void 0:W.key)==null?void 0:se.includes(b))}))==null?void 0:U.value)===_}))}):V=V==null?void 0:V.filter(L=>{var T;return((T=L==null?void 0:L.find(k=>{var _;return(k==null?void 0:k.key)===b||((_=k==null?void 0:k.key)==null?void 0:_.includes(b))}))==null?void 0:T.value)!==A[b]}))}),(V==null?void 0:V.length)===0?y.contents=[]:y.contents=V==null?void 0:V.map(A=>{let N={};return A==null||A.forEach(Y=>{N[Y==null?void 0:Y.key]=Y==null?void 0:Y.value}),N})}return y})}return l==null?void 0:l.contents},Wd=l=>l==null?void 0:l.contents,Kd=l=>l==null?void 0:l.contents,Yd=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(p=>((p==null?void 0:p.key)==="header"&&(p.contents=pt(p.contents,c)),p))}return l==null?void 0:l.contents},Gd=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},Jd=l=>l==null?void 0:l.contents,Xd=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},Zd=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},Qd=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(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(y=>(y.width=c,y))),p})}if(((o=l==null?void 0:l.filter)==null?void 0:o[0])==="["){let c=Do(l==null?void 0:l.filter),m=Array.isArray(c)?c.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return m.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const y=v.contents??[];v.contents=y.map((u,x)=>{const C=x+1;let B=0,w=0;for(let A=0;A<m.length;A++){if(w+=m[A],C<=w){B=A;break}A===m.length-1&&(B=m.length-1)}const V=m[B]||m[m.length-1]||1;return u.width=V,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},ep=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,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((c=s==null?void 0:s.contents)==null?void 0:c[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(m=s.contents)==null?void 0:m.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},ap=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,p,v;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]=(v=c.contents[0])==null?void 0:v.map(y=>o(y)):c.contents=(p=c.contents)==null?void 0:p.map(y=>o(y))),c})}return l==null?void 0:l.contents},lp=async l=>{var o,s,c,m,p,v,y,u,x,C,B,w,V,A,N,Y,b;const r=$.useUnit($.pinia),{chooseTitle:n}=$.storeToRefs(r);if((l==null?void 0:l.filter)==="true"){let L=await Vr(((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),T=(v=(p=n==null?void 0:n.value)==null?void 0:p[0])==null?void 0:v.value;(u=(y=L==null?void 0:L[0])==null?void 0:y.compData)!=null&&u.find(W=>(W==null?void 0:W.key)==="header")?L=(x=L==null?void 0:L[0])==null?void 0:x.compData:L=(B=(C=L==null?void 0:L.filter(W=>{var se;return(se=W==null?void 0:W.compData)==null?void 0:se.find(Ce=>(Ce==null?void 0:Ce.key)==="header")}))==null?void 0:C[0])==null?void 0:B.compData;let k=(w=L==null?void 0:L.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:w.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((V=k==null?void 0:k.find(W=>W==null?void 0:W.isMainKey))==null?void 0:V.prop)??((A=k==null?void 0:k[0])==null?void 0:A.prop);let _=(Y=(N=L==null?void 0:L.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:N.contents)==null?void 0:Y.find(W=>(W==null?void 0:W[k])===T);return(b=l==null?void 0:l.contents)==null?void 0:b.map(W=>{var se;return(W==null?void 0:W.key)==="formContent"&&(W.contents=(se=W.contents)==null?void 0:se.map(Ce=>(Ce.value=_==null?void 0:_[Ce==null?void 0:Ce.prop],Ce))),W})}return l==null?void 0:l.contents},rp=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("{",or))==null?void 0:n.split(or))==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 p=pa.calculatorAndToOr(m),v=p==null?void 0:p[0],y=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let x in v)(v==null?void 0:v[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},np=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},op=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},ip=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},tp=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=Ra.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},sp=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},Zs={onNumSlice:jd,onRandomContents:Hd,onConditionContents:qd,onFatherPaceContents:Wd,onPaceContents:Kd,onMainTagContents:Yd,onButtonContents:Gd,onPamButtonContents:Jd,onRowButtonContents:Xd,onRelated:lp,onRowNum:Qd,onFixRow:ep,onReqItem:ap,onBottomButtonContents:Zd,onConditionContent:rp,onTabs:np,onSinChoice:op,onTextSize:Pd,onTextRGBA:Fd,onPosition:Rd,onSize:Vd,onShowType:ip,onStepName:tp,onStep:sp,onInterfaceTypeContents:Ud},cp=async(l,r)=>{var c,m,p,v,y,u,x,C,B,w,V,A,N,Y,b,L,T,k,_;let n="";if(((c=l==null?void 0:l.find(U=>(U==null?void 0:U.key)==="filter"))==null?void 0:c.contents)!==""&&(n=(m=l==null?void 0:l.find(U=>(U==null?void 0:U.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=(v=(p=n==null?void 0:n.replace("(",or))==null?void 0:p.split(or))==null?void 0:v[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let o=(y=Ra.analyzeSplitToContent(n,","))==null?void 0:y.map(U=>((U==null?void 0:U[(U==null?void 0:U.length)-1])===","&&(U=U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1)),U!=null&&U.includes("(")||(U=U==null?void 0:U.replaceAll(":","=")),U)),s=l;for(let U in o){let W,se="";(u=o==null?void 0:o[U])!=null&&u.includes("(")?(W=(B=(C=(x=o==null?void 0:o[U])==null?void 0:x.replace("(",or))==null?void 0:C.split(or))==null?void 0:B[0],se="("+((A=(V=(w=o==null?void 0:o[U])==null?void 0:w.replace("(",or))==null?void 0:V.split(or))==null?void 0:A[1])):(W=(b=(Y=(N=o==null?void 0:o[U])==null?void 0:N.replace("=",or))==null?void 0:Y.split(or))==null?void 0:b[0],se=(k=(T=(L=o==null?void 0:o[U])==null?void 0:L.replace("=",or))==null?void 0:T.split(or))==null?void 0:k[1]);let Ce=(_=un==null?void 0:un.find(Ie=>(Ie==null?void 0:Ie.key)===W))==null?void 0:_.value;if(Ce){const Ie=Zs[Ce];s=await Ie({contents:s,filter:se})}}return s},wt=async(l,r)=>{var m,p,v,y,u,x,C,B,w,V,A,N,Y,b,L,T,k,_,U,W;let n="";if(((m=l==null?void 0:l.find(se=>(se==null?void 0:se.key)==="filter"))==null?void 0:m.contents)!==""&&(n=(p=l==null?void 0:l.find(se=>(se==null?void 0:se.key)==="filter"))==null?void 0:p.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=(v=n==null?void 0:n.replace("(",or))==null?void 0:v.split(or))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let o=(u=Ra.analyzeSplitToContent(n,","))==null?void 0:u.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!=null&&se.includes("(")||(se=se==null?void 0:se.replaceAll(":","=")),se)),s=l,c=new Map;o==null||o.forEach(se=>{var Ie,De,le;let Ce=(Ie=se==null?void 0:se.split("="))==null?void 0:Ie[0];if(Ce==="@MainPam"&&c.get(Ce)){let we=c.get(Ce);we=we==null?void 0:we.slice(0,(we==null?void 0:we.length)-1);let X=(le=(De=se==null?void 0:se.replace("{",or))==null?void 0:De.split(or))==null?void 0:le[1];X=we+","+X,c.set(Ce,X)}else c.set(Ce,se)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((se,Ce)=>{var Ie,De;return((Ie=un==null?void 0:un.find(le=>Ce==null?void 0:Ce.includes(le==null?void 0:le.key)))==null?void 0:Ie.order)-((De=un==null?void 0:un.find(le=>se==null?void 0:se.includes(le==null?void 0:le.key)))==null?void 0:De.order)});for(let se in o){let Ce,Ie="";(x=o==null?void 0:o[se])!=null&&x.includes("(")&&((C=o==null?void 0:o[se])!=null&&C.includes("@Filter"))?(Ce=(V=(w=(B=o==null?void 0:o[se])==null?void 0:B.replace("(",or))==null?void 0:w.split(or))==null?void 0:V[0],Ie="("+((Y=(N=(A=o==null?void 0:o[se])==null?void 0:A.replace("(",or))==null?void 0:N.split(or))==null?void 0:Y[1])):(Ce=(T=(L=(b=o==null?void 0:o[se])==null?void 0:b.replace("=",or))==null?void 0:L.split(or))==null?void 0:T[0],Ie=(U=(_=(k=o==null?void 0:o[se])==null?void 0:k.replace("=",or))==null?void 0:_.split(or))==null?void 0:U[1]);let De=(W=un==null?void 0:un.find(le=>(le==null?void 0:le.key)===Ce))==null?void 0:W.value;if(De){const le=Zs[De];s=await le({contents:s,filter:Ie,extra:r})}}return s};let ui="$R";const up=$.useUnit($.pinia),{selectTitle:dp}=$.storeToRefs(up);let pp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],fp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],hp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],vp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const rs=async(l,r,n=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var x,C,B,w,V,A,N,Y,b,L,T,k,_,U,W,se,Ce,Ie,De,le,we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa,Oa,qe,Ya,ba,oe,Se,Ue,Ke,Ca,Be,sl;let m=(w=(B=(C=(x=c==null?void 0:c.contents)==null?void 0:x.find(Ea=>{var Sl;return(Sl=Ea==null?void 0:Ea.key)==null?void 0:Sl.includes("struct")}))==null?void 0:C.value)==null?void 0:B[0])==null?void 0:w.类型,p=Object.values(c==null?void 0:c.name);p=p==null?void 0:p.reverse();let v=(V=c==null?void 0:c.contents)==null?void 0:V.map(Ea=>Ea==null?void 0:Ea.key),y={comp:m,isShow:c==null?void 0:c.is_show,name:p==null?void 0:p[0],id:c==null?void 0:c.object_id,relatedTables:v,menuFilter:(A=c==null?void 0:c.filter)==null?void 0:A.menuFilter,status:c==null?void 0:c.status,fatherSyncContents:(N=c==null?void 0:c.filter)==null?void 0:N.fatherSyncs,relatedQuotes:(Y=c==null?void 0:c.filter)==null?void 0:Y.quotes,sonSyncContents:(b=c==null?void 0:c.filter)==null?void 0:b.sonSyncs};for(let Ea in p)parseInt(Ea)>=1&&(y[`name${parseInt(Ea)-1}`]=p[Ea]);let u=(T=(L=c==null?void 0:c.filter)==null?void 0:L.menuFilter)==null?void 0:T.split(",");if(((k=u==null?void 0:u.filter(Ea=>Ea==null?void 0:Ea.includes("@Filter")))==null?void 0:k.length)>0){let Ea=u==null?void 0:u.filter(xe=>xe==null?void 0:xe.includes("@Filter"));Ea=Ea==null?void 0:Ea[0],Ea=(U=(_=Ea==null?void 0:Ea.replace("(",ui))==null?void 0:_.split(ui))==null?void 0:U[1],Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1),Ea!=null&&Ea.includes("*")&&(Ea=(se=(W=Ea==null?void 0:Ea.replace("{",ui))==null?void 0:W.split(ui))==null?void 0:se[1],Ea=Ea==null?void 0:Ea.replace("}","")),Ea=pa.calculatorAndToOr(Ea);let Sl=(r==null?void 0:r.originPath)??"";(Sl==null?void 0:Sl[(Sl==null?void 0:Sl.length)-1])==="/"&&(Sl=Sl==null?void 0:Sl.slice(0,(Sl==null?void 0:Sl.length)-1));let ml=await Vr(Sl,!1),Fe=(Ce=ml==null?void 0:ml.filter(xe=>(xe==null?void 0:xe.comp)==="Table"))==null?void 0:Ce[0];Fe=(De=(Ie=Fe==null?void 0:Fe.compData)==null?void 0:Ie.find(xe=>(xe==null?void 0:xe.key)==="tableContents"))==null?void 0:De.contents;let Pa=(we=(le=dp.value)==null?void 0:le.find(xe=>(xe==null?void 0:xe.condition)==="child"))==null?void 0:we.value;Fe=(X=Fe==null?void 0:Fe.map(xe=>{for(let ea in xe)if((xe==null?void 0:xe[ea])===Pa)return xe}))==null?void 0:X.filter(xe=>xe),Fe=Fe==null?void 0:Fe[0],Ea=Ea==null?void 0:Ea[0];let je=[];for(let xe in Ea){let ea="";ol.isObject(Fe)&&(ea=(Ge=(ue=Object.keys(Fe))==null?void 0:ue.filter(Ze=>Ze==null?void 0:Ze.includes("."+xe)))==null?void 0:Ge[0]),ea!==""&&(Fe!=null&&Fe[ea])&&(Ea==null?void 0:Ea[xe])===(Fe==null?void 0:Fe[ea])||Fe!=null&&Fe[xe]&&(Ea==null?void 0:Ea[xe])===(Fe==null?void 0:Fe[xe])?je.push(!0):je.push(!1)}if(je!=null&&je.some(xe=>xe===!1)&&((re=r==null?void 0:r.originPath)==null?void 0:re[((za=r==null?void 0:r.originPath)==null?void 0:za.length)-1])!=="/")return}if(m==="Table"||m==="Method"){let Ea=((E=c==null?void 0:c.contents)==null?void 0:E.find(q=>{var oa;return(oa=q==null?void 0:q.key)==null?void 0:oa.includes("content")}))||[],Sl=[];y.comp="Table",Ea.value=(ae=Ea==null?void 0:Ea.value)==null?void 0:ae.sort((q,oa)=>parseInt(q==null?void 0:q.id)-parseInt(oa==null?void 0:oa.id)),Ea.value=(me=Ea==null?void 0:Ea.value)==null?void 0:me.map(q=>{let oa={};for(let ka in q)JSON.stringify(q==null?void 0:q[ka])==="{}"?oa[ka]="":oa[ka]=q==null?void 0:q[ka];return oa}),Sl.push({key:"tableContents",contents:Ea==null?void 0:Ea.value});let ml=(Wa=(Sa=(va=(Ne=(ce=c==null?void 0:c.contents)==null?void 0:ce.find(q=>{var oa;return(oa=q==null?void 0:q.key)==null?void 0:oa.includes("struct")}))==null?void 0:Ne.value)==null?void 0:va[0])==null?void 0:Sa.结构)==null?void 0:Wa.contents;Array.isArray(ml==null?void 0:ml[0])?ml[0]=(Q=ml==null?void 0:ml[0])==null?void 0:Q.filter(q=>(q==null?void 0:q.prop)!=="sort"&&(q==null?void 0:q.prop)!=="relatedId"):ml=ml==null?void 0:ml.filter(q=>(q==null?void 0:q.prop)!=="sort"&&(q==null?void 0:q.prop)!=="relatedId"),Sl.push({key:"header",contents:ml}),Sl.push({key:"filter",contents:(Te=(He=(xa=(Ve=(na=c==null?void 0:c.contents)==null?void 0:na.find(q=>{var oa;return(oa=q==null?void 0:q.key)==null?void 0:oa.includes("struct")}))==null?void 0:Ve.value)==null?void 0:xa[0])==null?void 0:He.引用)==null?void 0:Te.contents});let Fe=pp,Pa=$.cloneDeep(fp);m==="Method"&&Pa.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ml==null?void 0:ml[0])&&((Re=ml==null?void 0:ml[0])==null?void 0:Re.prop)==="disabled"&&(Fe=hp,Pa=vp);const je=["推力","真空","压力","温度","流量"],xe=y.name;xe&&je.includes(xe)&&(Fe=[...Fe],Fe.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ea=[];if(!Array.isArray(ml==null?void 0:ml[0])&&(ml!=null&&ml.some(q=>{var oa;return(q==null?void 0:q.calculatorFilter)&&((oa=q==null?void 0:q.calculatorFilter)==null?void 0:oa.includes("Manual"))}))){let q=(Je=ml==null?void 0:ml.map(oa=>oa==null?void 0:oa.calculatorFilter))==null?void 0:Je.filter(oa=>oa&&(oa==null?void 0:oa.includes("Manual")));q==null||q.forEach(oa=>{var ye;let ka=Ra.analyzeSplitToContent(oa,",");if(ka=ka==null?void 0:ka.map(Ee=>((Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1])===","&&(Ee=Ee==null?void 0:Ee.slice(0,(Ee==null?void 0:Ee.length)-1)),Ee)),ka!=null&&ka.find(Ee=>(Ee==null?void 0:Ee.includes("Extent"))&&(Ee==null?void 0:Ee.includes("Row")))&&(ka!=null&&ka.find(Ee=>(Ee==null?void 0:Ee.includes("Button"))&&(Ee==null?void 0:Ee.includes(","))))){let Ee=ka==null?void 0:ka.find(qa=>qa==null?void 0:qa.includes("@FunctionButton"));Ee=(ye=Ee==null?void 0:Ee.split("="))==null?void 0:ye[1],Ee=Ee==null?void 0:Ee.slice(1,(Ee==null?void 0:Ee.length)-1),Ee=Ee==null?void 0:Ee.split(","),Ee=Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1],ea.push(Ee)}}),ea=[...new Set(ea)],ea=ea==null?void 0:ea.map(oa=>({label:oa,prop:oa,type:"methodButton"}))}else if(Array.isArray(ml==null?void 0:ml[0])&&((Ja=pa.getColumnChild(ml==null?void 0:ml[0]))!=null&&Ja.some(q=>{var oa;return(q==null?void 0:q.calculatorFilter)&&((oa=q==null?void 0:q.calculatorFilter)==null?void 0:oa.includes("Manual"))}))){let q=(P=(Fa=pa.getColumnChild(ml==null?void 0:ml[0]))==null?void 0:Fa.map(oa=>oa==null?void 0:oa.calculatorFilter))==null?void 0:P.filter(oa=>oa&&(oa==null?void 0:oa.includes("Manual")));q==null||q.forEach(oa=>{var ye;let ka=Ra.analyzeSplitToContent(oa,",");if(ka=ka==null?void 0:ka.map(Ee=>((Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1])===","&&(Ee=Ee==null?void 0:Ee.slice(0,(Ee==null?void 0:Ee.length)-1)),Ee)),ka!=null&&ka.find(Ee=>(Ee==null?void 0:Ee.includes("Extent"))&&(Ee==null?void 0:Ee.includes("Row")))&&(ka!=null&&ka.find(Ee=>(Ee==null?void 0:Ee.includes("Button"))&&(Ee==null?void 0:Ee.includes(","))))){let Ee=ka==null?void 0:ka.find(qa=>qa==null?void 0:qa.includes("@FunctionButton"));Ee=(ye=Ee==null?void 0:Ee.split("="))==null?void 0:ye[1],Ee=Ee==null?void 0:Ee.slice(1,(Ee==null?void 0:Ee.length)-1),Ee=Ee==null?void 0:Ee.split(","),Ee=Ee==null?void 0:Ee[(Ee==null?void 0:Ee.length)-1],ea.push(Ee)}}),ea=[...new Set(ea)],ea=ea==null?void 0:ea.map(oa=>({label:oa,prop:oa,type:"methodButton"}))}Sl.push({key:"extraButton",contents:Fe}),Sl.push({key:"rowButton",contents:[...Pa,...ea]}),y.compData=await wt(Sl,r),(F=y.compData)!=null&&F.find(q=>(q==null?void 0:q.key)==="tab")&&(y.tab=(ne=(J=y.compData)==null?void 0:J.find(q=>(q==null?void 0:q.key)==="tab"))==null?void 0:ne.contents),(te=y.compData)!=null&&te.find(q=>(q==null?void 0:q.key)==="step")&&(y.step=(ta=(ga=y.compData)==null?void 0:ga.find(q=>(q==null?void 0:q.key)==="step"))==null?void 0:ta.contents),(Oe=y.compData)!=null&&Oe.find(q=>(q==null?void 0:q.key)==="choice")&&(y.choice=(Da=(_e=y.compData)==null?void 0:_e.find(q=>(q==null?void 0:q.key)==="choice"))==null?void 0:Da.contents);let Ze="",la=(he=y==null?void 0:y.compData)==null?void 0:he.filter(q=>(q==null?void 0:q.key)==="fixType");(la==null?void 0:la.length)>0&&n&&(Ze=(Qe=la==null?void 0:la[0])==null?void 0:Qe.contents,y.comp=Ze)}else if(m==="Form"){let Ea=[],Sl=(_a=(Pe=(ra=c==null?void 0:c.contents)==null?void 0:ra.find(Fe=>{var Pa;return(Pa=Fe==null?void 0:Fe.key)==null?void 0:Pa.includes("content")}))==null?void 0:Pe.value)==null?void 0:_a[0],ml=(sa=(Ga=(ve=(wa=(Xe=(ya=(Le=c==null?void 0:c.contents)==null?void 0:Le.find(Fe=>{var Pa;return(Pa=Fe==null?void 0:Fe.key)==null?void 0:Pa.includes("struct")}))==null?void 0:ya.value)==null?void 0:Xe[0])==null?void 0:wa.结构)==null?void 0:ve.contents)==null?void 0:Ga.map(Fe=>(Fe.value=Sl==null?void 0:Sl[Fe==null?void 0:Fe.prop],Fe)))==null?void 0:sa.filter(Fe=>(Fe==null?void 0:Fe.prop)!=="sort"&&(Fe==null?void 0:Fe.prop)!=="relatedId");Ea.push({key:"filter",contents:(oe=(ba=(Ya=(qe=(Oa=c==null?void 0:c.contents)==null?void 0:Oa.find(Fe=>{var Pa;return(Pa=Fe==null?void 0:Fe.key)==null?void 0:Pa.includes("struct")}))==null?void 0:qe.value)==null?void 0:Ya[0])==null?void 0:ba.引用)==null?void 0:oe.contents}),Ea.push({key:"formContent",contents:ml}),y.compData=await cp(Ea),(Se=y.compData)!=null&&Se.find(Fe=>(Fe==null?void 0:Fe.key)==="tab")&&(y.tab=(Ke=(Ue=y.compData)==null?void 0:Ue.find(Fe=>(Fe==null?void 0:Fe.key)==="tab"))==null?void 0:Ke.contents),(Ca=y.compData)!=null&&Ca.find(Fe=>(Fe==null?void 0:Fe.key)==="step")&&(y.step=(sl=(Be=y.compData)==null?void 0:Be.find(Fe=>(Fe==null?void 0:Fe.key)==="step"))==null?void 0:sl.contents)}return y});return o=await Promise.all(s),o},mp=$.useLoginState($.pinia),{loginUserInfo:xo}=$.storeToRefs(mp),ft=async(l,r,n="Manual",o=[])=>{var v;let s=l,c;Array.isArray(r==null?void 0:r[0])?c=pa.getColumnChild(r==null?void 0:r[0]):c=r;let m=(v=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:v.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})),p=s==null?void 0:s.map(async y=>(y=await _p(y,m,c,n,s,o),y));return p=await Promise.all(p),p},yp=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=pa.getValueToObjectValue(r,pa.getColumnContents(s))),n==null||n.forEach(m=>{var p;if(r!=null&&r[m]){let v=r==null?void 0:r[m];c=c?v?Ra.isEqual(v.toString(),c.toString()):void 0:v}else{let v=(p=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===m))==null?void 0:p.prop,y=(r==null?void 0:r[v])??0;c=c?y?Ra.isEqual(y.toString(),c.toString()):void 0:y}}),r[o]=c===void 0?void 0:c?1:0,r},fr=l=>{const[r,n,o]=$.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(r??0)*3600+(n??0)*60+(o??0)},Wn=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))}`},gp=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,p=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=pa.getValueToObjectValue(r,pa.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,C,B,w,V,A,N;if(r!=null&&r[v]){if(c==="Row")if(!((u=((y=r==null?void 0:r[v])==null?void 0:y.toString())??"")!=null&&u.includes(":"))&&!((x=p==null?void 0:p.toString())!=null&&x.includes(":"))){let Y=+(r==null?void 0:r[v]);p=p+Y}else p=fr(p.toString())+fr((C=r==null?void 0:r[v])==null?void 0:C.toString()),p=Wn(p)}else if(c==="Row"){let Y=(B=s==null?void 0:s.find(b=>(b==null?void 0:b.label)===v))==null?void 0:B.prop;if(!((V=Number.isNaN(r==null?void 0:r[Y])?"":(w=r==null?void 0:r[Y])==null?void 0:w.toString())!=null&&V.includes(":"))&&!((A=p==null?void 0:p.toString())!=null&&A.includes(":"))){let b=+((r==null?void 0:r[Y])??0);p=p+b}else p=fr(p==null?void 0:p.toString())+fr((N=(r==null?void 0:r[Y])??0)==null?void 0:N.toString()),p=Wn(p)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var C;return(x==null?void 0:x[y])??(x==null?void 0:x[(C=s==null?void 0:s.find(B=>(B==null?void 0:B.label)===y))==null?void 0:C.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let C=0;return Number.isNaN(u)||(C=+u),x+C},0)}return r[o]=p,r},bp=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,p=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=pa.getValueToObjectValue(r,pa.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,C,B,w,V;if(r!=null&&r[v]){if(c==="Row")if(!((u=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=p==null?void 0:p.toString())!=null&&x.includes(":"))){let A=+(r==null?void 0:r[v]);p=p===0?p+A:p-A}else p=p===0?fr(p.toString())+fr(r==null?void 0:r[v].toString()):fr(p.toString())-fr(r==null?void 0:r[v].toString()),p=Wn(p)}else if(c==="Row"){let A=(C=s==null?void 0:s.find(N=>(N==null?void 0:N.label)===v))==null?void 0:C.prop;if(!((w=Number.isNaN(r==null?void 0:r[A])?"":(B=r==null?void 0:r[A])==null?void 0:B.toString())!=null&&w.includes(":"))&&!((V=p==null?void 0:p.toString())!=null&&V.includes(":"))){let N=+((r==null?void 0:r[A])??0);p=p===0?p+N:p-N}else p=p===0?fr(p.toString())+fr(((r==null?void 0:r[A])??0).toString()):fr(p.toString())-fr(((r==null?void 0:r[A])??0).toString()),p=Wn(p)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var C;return(x==null?void 0:x[y])??(x==null?void 0:x[(C=s==null?void 0:s.find(B=>(B==null?void 0:B.label)===y))==null?void 0:C.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let C=0;return Number.isNaN(u)||(C=+u),x-C},0)}return r[o]=p,r},kp=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,p=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=pa.getValueToObjectValue(r,pa.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,C,B,w,V;if(r!=null&&r[v]){if(c==="Row")if(!((u=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=p==null?void 0:p.toString())!=null&&x.includes(":"))){let A=+(r==null?void 0:r[v]);p=p===0?p+A:p*A}else p=p===0?fr(p.toString())+fr(r==null?void 0:r[v].toString()):fr(p.toString())*fr(r==null?void 0:r[v].toString()),p=Wn(p)}else if(c==="Row"){let A=(C=s==null?void 0:s.find(N=>(N==null?void 0:N.label)===v))==null?void 0:C.prop;if(!(r!=null&&r[A]))p=void 0;else if(!((w=Number.isNaN(r==null?void 0:r[A])?"":(B=r==null?void 0:r[A])==null?void 0:B.toString())!=null&&w.includes(":"))&&!((V=p==null?void 0:p.toString())!=null&&V.includes(":"))){let N=+((r==null?void 0:r[A])??0);p=p===0?p+N:p*N}else p=p===0?fr(p.toString())+fr(((r==null?void 0:r[A])??0).toString()):fr(p.toString())*fr(((r==null?void 0:r[A])??0).toString()),p=Wn(p)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var C;return(x==null?void 0:x[y])??(x==null?void 0:x[(C=s==null?void 0:s.find(B=>(B==null?void 0:B.label)===y))==null?void 0:C.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let C=0;return Number.isNaN(u)||(C=+u),x*C},0)}return r[o]=p,r},xp=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,p=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=pa.getValueToObjectValue(r,pa.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,C,B,w,V;if(r!=null&&r[v]){if(c==="Row")if(!((u=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=p==null?void 0:p.toString())!=null&&x.includes(":"))){let A=+(r==null?void 0:r[v]);p=p===0?p+A:p/A}else p=p===0?fr(p.toString())+fr(r==null?void 0:r[v].toString()):fr(p.toString())/fr(r==null?void 0:r[v].toString()),p=Wn(p)}else if(c==="Row"){let A=(C=s==null?void 0:s.find(N=>(N==null?void 0:N.label)===v))==null?void 0:C.prop;if(!((w=Number.isNaN(r==null?void 0:r[A])?"":(B=r==null?void 0:r[A])==null?void 0:B.toString())!=null&&w.includes(":"))&&!((V=p==null?void 0:p.toString())!=null&&V.includes(":"))){let N=+((r==null?void 0:r[A])??0);p=p===0?p+N:p/N}else p=p===0?fr(p.toString())+fr(((r==null?void 0:r[A])??0).toString()):fr(p.toString())/fr(((r==null?void 0:r[A])??0).toString()),p=Wn(p)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=m==null?void 0:m.map(x=>{var C;return(x==null?void 0:x[y])??(x==null?void 0:x[(C=s==null?void 0:s.find(B=>(B==null?void 0:B.label)===y))==null?void 0:C.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let C=0;return Number.isNaN(u)||(C=+u),x/C},0)}return r[o]=p.toFixed(2),r},di={Sum:gp,Substract:bp,Multiple:kp,Divide:xp,Compare:yp},_p=async(l,r,n,o="Auto",s,c=[])=>{var u,x,C,B,w,V,A,N,Y,b,L,T,k,_,U,W,se,Ce,Ie,De,le;let m=l,p=[],v=await $.getPageDataApi({platId:parseInt((u=xo==null?void 0:xo.value)==null?void 0:u.plat_id),pageName:"menu"});v=(B=(C=(x=v==null?void 0:v.data)==null?void 0:x.result)==null?void 0:C.filter(we=>(we==null?void 0:we.property_name)===""))==null?void 0:B[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let we=await $.getPageDataApi({platId:parseInt((w=xo==null?void 0:xo.value)==null?void 0:w.plat_id),pageName:v});we=(b=(Y=(N=(A=(V=we==null?void 0:we.data)==null?void 0:V.result)==null?void 0:A[0])==null?void 0:N.contents)==null?void 0:Y.find(X=>{var ue;return(ue=X==null?void 0:X.key)==null?void 0:ue.includes("content")}))==null?void 0:b.value,p=(L=we==null?void 0:we.map(X=>({functionName:X==null?void 0:X.函数名称,functionContent:X==null?void 0:X.输出值})))==null?void 0:L.filter(X=>(X==null?void 0:X.functionContent)!==""),p==null||p.forEach(X=>{y.push(X.functionName),di[X.functionName]=new Function("return "+X.functionContent)()})}if((r==null?void 0:r.length)===0)return m;for(let we in r){let X=(T=r==null?void 0:r[we])==null?void 0:T.functionName;const ue=di==null?void 0:di[X];let Ge=(k=r==null?void 0:r[we])==null?void 0:k.methods;if(Ge=Ra.analyzeSplitToContent(Ge,","),(_=Ge==null?void 0:Ge.find(za=>za==null?void 0:za.includes("@Type")))!=null&&_.includes(o)||(Ge==null?void 0:Ge.length)===0){let za=((se=(W=(U=Ge==null?void 0:Ge.find(re=>re==null?void 0:re.includes("@Extent")))==null?void 0:U.replace(":","="))==null?void 0:W.split("="))==null?void 0:se[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(re=>re===X)){let re="";try{let ae=(Ce=r==null?void 0:r[we])==null?void 0:Ce.functionRelatedWords,me=(c==null?void 0:c.length)>0?c==null?void 0:c.map(Ne=>{var va;return Ne==null?void 0:Ne[(va=r==null?void 0:r[we])==null?void 0:va.prop]}):["0"];me=me==null?void 0:me.map(Ne=>Ne==null?void 0:Ne.slice((Ne==null?void 0:Ne.length)-5,Ne==null?void 0:Ne.length)),me=me==null?void 0:me.map(Ne=>Ra.isNumber(parseInt(Ne))&&parseInt(Ne)?parseInt(Ne):0);let ce=Math.max(...me);ae=ae==null?void 0:ae.map(Ne=>{if(Ne!=null&&Ne.includes("'"))return Ne==null?void 0:Ne.replaceAll("'","");if(Ne!=null&&Ne.includes("@"))return ce+1;{let va=Object.keys(m);return Ne=(m==null?void 0:m[Ne])??(m==null?void 0:m[va==null?void 0:va.find(Sa=>Sa==null?void 0:Sa.includes("."+Ne))]),Ne}}),re=ue(...ae)}catch(ae){ol.ElMessage.warning("关联数据出现错误,"+ae.message)}let E=(Ie=r==null?void 0:r[we])==null?void 0:Ie.prop;m[E]=re}else m=ue({contents:m,valueString:(De=r==null?void 0:r[we])==null?void 0:De.functionRelatedWords,prop:(le=r==null?void 0:r[we])==null?void 0:le.prop,headers:n,typeString:za,allContents:s})}}return m},wp=$.useLoginState($.pinia),{loginUserInfo:Hr}=$.storeToRefs(wp),Cp=$.useMenuState($.pinia),{activeMenuPath:ns,currentMenuPath:pi}=$.storeToRefs(Cp),Qs=$.useUnit($.pinia);let os="$R";const{selectTitle:So}=$.storeToRefs(Qs),ec=async(l,r)=>{var m,p,v,y,u,x,C,B,w,V,A,N,Y;let n=ns.value,o="",s=((m=So==null?void 0:So.value)==null?void 0:m.find(b=>(b==null?void 0:b.condition)==="child"&&!(b!=null&&b.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(n=r?n:(p=l==null?void 0:l[0])==null?void 0:p.object_name,o=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let c=[];if(o!==""){let b=o;(b==null?void 0:b[(b==null?void 0:b.length)-1])==="/"&&(b=b==null?void 0:b.slice(0,(b==null?void 0:b.length)-1));let L=await Vr(b,!1);L=(y=L==null?void 0:L[0])==null?void 0:y.compData;let T=(u=L==null?void 0:L.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:u.contents;T=((x=T==null?void 0:T.find(_=>_==null?void 0:_.isMainKey))==null?void 0:x.prop)??((C=T==null?void 0:T[0])==null?void 0:C.prop);let k=(w=(B=L==null?void 0:L.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:B.contents)==null?void 0:w.map(_=>({label:_==null?void 0:_[T],value:_==null?void 0:_[T]}));c=(V=o==null?void 0:o.split("/"))==null?void 0:V.map(_=>(_===""?s?(s.isShow=!0,_=s):_={value:_,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}:_={condition:"parent",value:_.trim(),isShow:!0},_))}if(n!==""){let b=(A=n==null?void 0:n.split("/"))==null?void 0:A.map(L=>(L={condition:"normal",value:L.trim(),isShow:!0},L));((N=b==null?void 0:b[0])==null?void 0:N.value)===((Y=c==null?void 0:c[0])==null?void 0:Y.value)&&(b=b==null?void 0:b.filter((L,T)=>T!==0)),c=[...c??[],...b??[]]}o===""&&s&&((s==null?void 0:s.parentContent)!==ns.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),Qs.setSelectTitle(c)},Sp=async l=>{var c,m,p,v,y,u,x,C,B;let r=await $.getPageDataApi({platId:parseInt((c=Hr==null?void 0:Hr.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=(v=(p=l==null?void 0:l.filter(w=>(w==null?void 0:w.comp)==="Table"))==null?void 0:p[0])==null?void 0:v.compData)==null?void 0:y.find(w=>(w==null?void 0:w.key)==="filter"))==null?void 0:u.contents;o=(B=(C=(x=o==null?void 0:o.replace("(",os))==null?void 0:x.split(os))==null?void 0:C[0])==null?void 0:B.replaceAll(":","/");let s=n==null?void 0:n.filter(w=>{var V;return(w==null?void 0:w.object_name)===pi.value+"/"||((V=pi.value)==null?void 0:V.includes(o))&&o+"/"===(w==null?void 0:w.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(w=>{var V;return(w==null?void 0:w.comp)==="Table"&&(w.compData=(V=w==null?void 0:w.compData)==null?void 0:V.map(A=>{var N,Y,b;return(A==null?void 0:A.key)==="header"&&(Array.isArray((N=A.contents)==null?void 0:N[0])?A.contents[0]=(b=A.contents[0])==null?void 0:b.map((L,T)=>{var k;return T===0&&(L.isExistChild=!0,(k=pi.value)!=null&&k.includes(o)&&(L.fatherPath=o)),L}):A.contents=(Y=A.contents)==null?void 0:Y.map((L,T)=>{var k;return T===0&&(L.isExistChild=!0,(k=pi.value)!=null&&k.includes(o)&&(L.fatherPath=o)),L})),A})),w})),l},Vr=async(l,r,n={})=>{var m,p,v,y,u,x,C,B,w,V,A,N;let o=await $.getPageDataApi({platId:parseInt((m=Hr==null?void 0:Hr.value)==null?void 0:m.plat_id),pageName:l}),s=(p=o==null?void 0:o.data)==null?void 0:p.result;if((s==null?void 0:s.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==l){let Y=await $.getPageDataApi({platId:parseInt((v=Hr==null?void 0:Hr.value)==null?void 0:v.plat_id),pageName:n==null?void 0:n.originPath});if(((u=(y=Y==null?void 0:Y.data)==null?void 0:y.result)==null?void 0:u.length)>0){let b=await rs((x=Y==null?void 0:Y.data)==null?void 0:x.result,n,!1);b=b==null?void 0:b.map(async k=>{var W,se,Ce,Ie,De,le,we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa;let _=[],U=(W=Object.keys(k))==null?void 0:W.filter(P=>P==null?void 0:P.includes("name"));for(let P in k)U!=null&&U.find(F=>F===P)&&_.push(k==null?void 0:k[P]);if(_=_.reverse(),(k==null?void 0:k.comp)==="Table"){let P=(Ie=(Ce=(se=k==null?void 0:k.compData)==null?void 0:se.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:Ce.contents)==null?void 0:Ie.map(J=>{let ne={};for(let te in J)te!=="id"&&te!=="create_time"&&te!=="update_time"&&te!=="sort"&&te!=="create_user_id"&&te!=="update_user_id"&&te!=="department_id"&&te!=="relatedId"&&(ne[te]=J==null?void 0:J[te]);return J=Object.values(ne),J}),F=(le=(De=k==null?void 0:k.compData)==null?void 0:De.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:le.contents;if(Array.isArray(F==null?void 0:F[0])?(F[0].push({label:"排序",prop:"sort"}),F[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(we=F[0])!=null&&we.find(J=>(J==null?void 0:J.prop)==="disabled")&&(F[0]=(X=F[0])==null?void 0:X.filter(J=>(J==null?void 0:J.prop)!=="disabled"),F[0].unshift({label:"",prop:"disabled",sortable:!1}))):(F.push({label:"排序",prop:"sort"}),F.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),F!=null&&F.find(J=>(J==null?void 0:J.prop)==="disabled")&&(F=F==null?void 0:F.filter(J=>(J==null?void 0:J.prop)!=="disabled"),F.unshift({label:"",prop:"disabled",sortable:!1}))),F!=null&&F.some(J=>{var ne;return(J==null?void 0:J.calculatorFilter)&&((ne=J==null?void 0:J.calculatorFilter)==null?void 0:ne.includes("Auto"))})&&(P=await ft(P,F,"Auto"),P=P==null?void 0:P.map(J=>Object.values(J))),k!=null&&k.fatherSyncContents){Array.isArray((ue=k==null?void 0:k.fatherSyncContents)==null?void 0:ue[0])&&(k.fatherSyncContents=(Ge=k==null?void 0:k.fatherSyncContents)==null?void 0:Ge[0]);let J=(za=So.value)==null?void 0:za.find(ne=>(ne==null?void 0:ne.condition)==="child");k.fatherSyncContents=(re=k==null?void 0:k.fatherSyncContents)==null?void 0:re.map(ne=>{var te,ga,ta,Oe,_e,Da;return((ga=ne==null?void 0:ne.menus)==null?void 0:ga[((te=ne==null?void 0:ne.menus)==null?void 0:te.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ne==null?void 0:ne.menus)?ne.menus=(ne==null?void 0:ne.menus)+(J==null?void 0:J.value):((Oe=ne==null?void 0:ne.menus)==null?void 0:Oe[((ta=ne==null?void 0:ne.menus)==null?void 0:ta.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ne==null?void 0:ne.menus)&&(ne.menus=(Da=ne.menus)==null?void 0:Da.slice(0,((_e=ne.menus)==null?void 0:_e.length)-1)),ne})}if(k!=null&&k.sonSyncContents){Array.isArray((E=k==null?void 0:k.sonSyncContents)==null?void 0:E[0])&&(k.sonSyncContents=(ae=k==null?void 0:k.sonSyncContents)==null?void 0:ae[0]);let J=(me=So.value)==null?void 0:me.find(ne=>(ne==null?void 0:ne.condition)==="child");k.sonSyncContents=(ce=k==null?void 0:k.sonSyncContents)==null?void 0:ce.map(ne=>{var te,ga,ta,Oe,_e,Da;return((ga=ne==null?void 0:ne.menus)==null?void 0:ga[((te=ne==null?void 0:ne.menus)==null?void 0:te.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ne==null?void 0:ne.menus)?ne.menus=(ne==null?void 0:ne.menus)+(J==null?void 0:J.value):((Oe=ne==null?void 0:ne.menus)==null?void 0:Oe[((ta=ne==null?void 0:ne.menus)==null?void 0:ta.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ne==null?void 0:ne.menus)&&(ne.menus=(Da=ne.menus)==null?void 0:Da.slice(0,((_e=ne.menus)==null?void 0:_e.length)-1)),ne})}if(k!=null&&k.relatedQuotes){Array.isArray((Ne=k==null?void 0:k.relatedQuotes)==null?void 0:Ne[0])&&(k.relatedQuotes=(va=k==null?void 0:k.relatedQuotes)==null?void 0:va[0]);let J=(Sa=So.value)==null?void 0:Sa.find(ne=>(ne==null?void 0:ne.condition)==="child");k.relatedQuotes=(Wa=k==null?void 0:k.relatedQuotes)==null?void 0:Wa.map(ne=>{var te,ga,ta,Oe,_e,Da;return((ga=ne==null?void 0:ne.menus)==null?void 0:ga[((te=ne==null?void 0:ne.menus)==null?void 0:te.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ne==null?void 0:ne.menus)?ne.menus=(ne==null?void 0:ne.menus)+(J==null?void 0:J.value):((Oe=ne==null?void 0:ne.menus)==null?void 0:Oe[((ta=ne==null?void 0:ne.menus)==null?void 0:ta.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ne==null?void 0:ne.menus)&&(ne.menus=(Da=ne.menus)==null?void 0:Da.slice(0,((_e=ne.menus)==null?void 0:_e.length)-1)),ne})}k={filter:(na=(Q=k==null?void 0:k.compData)==null?void 0:Q.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:na.contents,key:k==null?void 0:k.comp,name:_,tableColumns:F,tableContents:P,menuFilter:k==null?void 0:k.menuFilter,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}else{let P=(He=(xa=(Ve=k==null?void 0:k.compData)==null?void 0:Ve.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:xa.contents)==null?void 0:He.map(J=>(J==null?void 0:J.value)??"");P=[P];let F=(Je=(Re=(Te=k==null?void 0:k.compData)==null?void 0:Te.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:Re.contents)==null?void 0:Je.map(J=>(J.value="",J));k={contents:P,filter:(Fa=(Ja=k==null?void 0:k.compData)==null?void 0:Ja.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:Fa.contents,key:k==null?void 0:k.comp,name:_,value:F,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}),b=await Promise.all(b);let L=[{key:"menuPath",contents:[{path:l,fatherPath:(w=(B=(C=Y==null?void 0:Y.data)==null?void 0:C.result)==null?void 0:B[0])==null?void 0:w.father_name,isShow:!1}]},{key:l,contents:b}];await $.createPlatFormDataApi({platId:parseInt((V=Hr==null?void 0:Hr.value)==null?void 0:V.plat_id),changeData:L});let T=await $.getPageDataApi({platId:parseInt((A=Hr==null?void 0:Hr.value)==null?void 0:A.plat_id),pageName:l});s=(N=T==null?void 0:T.data)==null?void 0:N.result}}r&&await ec(s,!!(n!=null&&n.originPath));let c=await rs(s,n);return r&&(c=await Sp(c)),c==null?void 0:c.filter(Y=>Y)},is=async l=>{var o,s,c,m,p,v,y,u,x,C,B;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 Vr(r,!1);if(n=(m=n==null?void 0:n.filter(w=>{var V,A;return(w==null?void 0:w.name)===((A=l==null?void 0:l.groups)==null?void 0:A[((V=l==null?void 0:l.groups)==null?void 0:V.length)-1])}))==null?void 0:m[0],(v=(p=n==null?void 0:n.compData)==null?void 0:p.find(w=>(w==null?void 0:w.key)==="tableContents"))!=null&&v.contents){n=(u=(y=n==null?void 0:n.compData)==null?void 0:y.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:u.contents;let w=((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(V=>{var A,N,Y,b;return(V==null?void 0:V[l!=null&&l.endChildMenu?w:(A=l==null?void 0:l.words)==null?void 0:A[0]])===(l!=null&&l.relatedWords&&((N=l==null?void 0:l.relatedWords)==null?void 0:N.length)>0?(b=(Y=l.value)==null?void 0:Y.split(" "))==null?void 0:b[0]:l.value)}),n==null?void 0:n[0]}else{let w=(B=(C=n==null?void 0:n.compData)==null?void 0:C.find(A=>(A==null?void 0:A.key)==="formContent"))==null?void 0:B.contents,V={};return w==null||w.forEach(A=>{V[A.prop]=A.value}),V}},Ep={key:0,class:"extra-button-content"},Dp={class:"table-operator-wrap"},Np={key:0,class:"extra-button-filter"},Bp={key:1,class:"extra-header"},Tp=["onClick"],Ap={class:"table-op-text"},zp={class:"table-op-text"},Mp={class:"drop-menu",style:{width:"120px"}},Op=["onClick"],Ip={key:0},Lp={key:1},$p=["onClick"],Rp={class:"table-op-text"},Vp={key:1,class:"extra-button-content tabs-button-wrapper"},Pp={class:"table-operator-wrap"},Fp={class:"extra-button-filter"},jp={key:0,class:"extra-header"},Hp={class:"table-op-action"},Up={class:"table-op-text"},qp={class:"drop-menu",style:{width:"120px"}},Wp={key:0},Kp={key:1},Yp=["onClick"],Gp={class:"table-op-text"},Jp={__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:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:r}){const n=r,o=l,s=a.ref(""),c=a.ref(!1),m=a.ref([]),p=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),v=[{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 y(k,_){return k.map(U=>{const W={...U};return _.forEach(se=>{delete W[se]}),W})}function u(k){if(!k||k.t!=="n")return(k==null?void 0:k.v)??"";const _=k.v;if(k.z){const U=String(k.z).toLowerCase(),W=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const Ie of W)if(U.includes(Ie))return x(_);const se=/[ymdhms]/.test(U),Ce=/^[0#\.\,\s]+$/.test(U.replace(/[\\\/\-:]/g,""));if(se&&!Ce)return x(_)}if(_>=1&&_<=73050){if(_<5e3)return _;if(_>=5e3&&_<4e4){const U=Math.floor((_-25569)/365.25)+1970;return U>=1970&&U<=2e3&&k.z&&/[ymd]/.test(String(k.z).toLowerCase())?x(_):_}if(_>=4e4)return x(_)}return _}function x(k){if(typeof k!="number")return k;try{const _=new Date((k-25569)*86400*1e3);if(isNaN(_.getTime()))return k;const U=_.getFullYear(),W=String(_.getMonth()+1).padStart(2,"0"),se=String(_.getDate()).padStart(2,"0");return`${U}-${W}-${se}`}catch{return k}}const C=k=>{const _=k.raw;if(!_)return;const U=new FileReader;U.onload=W=>{try{const se=new Uint8Array(W.target.result),Ce=pa.readSync(se,{type:"array"}),Ie=Ce.SheetNames[0],De=Ce.Sheets[Ie],we=pa.utils.decode_range(De["!ref"]).e.c+1,X=new Array(we).fill(""),ue=[];for(const ae in De){if(ae[0]==="!")continue;const{r:me,c:ce}=pa.utils.decode_cell(ae),Ne=De[ae];let va=u(Ne);if((va==null||va==="")&&(va=""),me===0)X[ce]=va;else{if(!ue[me-1]){ue[me-1]={};for(let Sa=0;Sa<we;Sa++)ue[me-1][`col_${Sa}`]=""}ue[me-1][`col_${ce}`]=va}}for(let ae=0;ae<we;ae++)X[ae]===void 0&&(X[ae]="");const Ge=[];for(let ae=0;ae<X.length;ae++)(!X[ae]||X[ae].toString().trim()==="")&&Ge.push(ae);let za,re;(Ge==null?void 0:Ge.length)>0?(ol.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),za=X.filter((ae,me)=>!Ge.includes(me)),re=y(ue,Ge==null?void 0:Ge.map(ae=>`col_${ae}`))):(za=X,re=ue);const E=ue==null?void 0:ue[0];if(!(E!=null&&E.hasOwnProperty("col_0")))return ol.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",za,re)}catch(se){throw ol.ElMessage.error(se.message),new Error(se.message)}},U.readAsArrayBuffer(_)},B=k=>{var U;const _=(U=m.value)==null?void 0:U.reduce((W,se,Ce)=>(Ce===0?W[se.label]=k:W[se.label]=se==null?void 0:se.value,W),{});n("filter",_,k,!0)},w=(k,_={})=>{n("buttonClick",k,"",_)},V=k=>{var _,U;m.value=(U=(_=pa.getColumnChild($.cloneDeep(k)))==null?void 0:_.filter(W=>(W==null?void 0:W.label)!==""&&(W==null?void 0:W.label)!=="操作"))==null?void 0:U.map(W=>({label:(W==null?void 0:W.label)??"",value:"",name:(W==null?void 0:W.prop)??"",isFormColHidden:W==null?void 0:W.isTableColHidden,width:2,prop:(W==null?void 0:W.prop)??""}))},A=a.ref(!1),N=k=>{var _;if((k==null?void 0:k.buttonName)==="确认"&&(n("filter",k==null?void 0:k.content),A.value=(k==null?void 0:k.content)&&Object.values(k==null?void 0:k.content).length>0),(k==null?void 0:k.buttonName)==="清空"){const U=$.cloneDeep(k==null?void 0:k.content);for(const W in U)U[W]="";m.value=(_=m.value)==null?void 0:_.map(W=>({...W,value:""})),n("filter",U),A.value=!1}c.value=!1},Y=()=>{c.value=!c.value},b=()=>{var _,U;m.value=(_=m.value)==null?void 0:_.map(W=>({...W,value:""}));const k=(U=m.value)==null?void 0:U.reduce((W,se)=>(W[se.label]=se.value,W),{});n("filter",k)},L=a.ref(null);let T;return T=k=>{var se;if(!c.value)return;const _=(se=L==null?void 0:L.value)==null?void 0:se.$el,U=_==null?void 0:_.contains(k.target);let W=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Ce=>{Ce.contains(k.target)&&(W=!0)}),!U&&!W&&(c.value=!1)},a.onMounted(()=>{document.addEventListener("click",T),V(o.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",T)}),a.watch(()=>o.columns,()=>{V(o.columns)},{deep:!0,immediate:!0}),(k,_)=>{var De,le,we,X,ue,Ge,za,re;const U=a.resolveComponent("el-icon"),W=a.resolveComponent("svg-icon"),se=a.resolveComponent("el-input"),Ce=a.resolveComponent("el-upload"),Ie=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",Ep,[a.createElementVNode("div",{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",Dp,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",Np,[a.createVNode(Nu,{trigger:"contextmenu",ref_key:"popOverRef",ref:L,title:"",width:800,placement:"bottom-start",isVisible:c.value,"onUpdate:isVisible":_[4]||(_[4]=E=>c.value=E)},{reference:a.withCtx(()=>{var E,ae,me,ce;return[a.createVNode(se,{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=Ne=>s.value=Ne),style:{"min-width":"80px"},placeholder:A.value?(me=(ae=(E=l.filterValues)==null?void 0:E.filter(Ne=>Ne))==null?void 0:ae.slice(0,3))==null?void 0:me.join("/"):"搜索","prefix-icon":a.unref(ol.search_default),clearable:"",onInput:B,disabled:((ce=m.value)==null?void 0:ce.length)===0},{suffix:a.withCtx(()=>{var Ne,va;return[!s.value&&((va=(Ne=l.filterValues)==null?void 0:Ne.filter(Sa=>Sa))!=null&&va.join("/"))?(a.openBlock(),a.createBlock(U,{key:0,style:{cursor:"pointer"},onClick:b},{default:a.withCtx(()=>[a.createVNode(a.unref(ol.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Y,["stop"])},[a.createVNode(W,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:_[1]||(_[1]=a.withModifiers(()=>{},["stop"])),onKeyup:_[2]||(_[2]=a.withModifiers(()=>{},["stop"])),onKeypress:_[3]||(_[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:m.value,buttonValue:p.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:p.value,isStartJustify:!1,onOnButtonClick:N},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((De=l.buttons)==null?void 0:De.length)>0?(a.openBlock(),a.createElementBlock("div",Bp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((le=l.buttons)==null?void 0:le.filter(E=>l.isDevMode||(E==null?void 0:E.label)!=="修改模板"),(E,ae)=>{var me;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ae},[(E==null?void 0:E.type)==="upload"?(a.openBlock(),a.createBlock(Ce,{key:0,class:"upload-button-wrap","on-change":C,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var ce;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ne=>w(E==null?void 0:E.label)},[a.createVNode(W,{class:"table-op-icon",name:(ce=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(E==null?void 0:E.label)))==null?void 0:ce.icon},null,8,["name"]),a.createElementVNode("span",Ap,a.toDisplayString(E==null?void 0:E.label),1)],10,Tp)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(E==null?void 0:E.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var ce;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(W,{class:"table-op-icon",name:(ce=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(E==null?void 0:E.label)))==null?void 0:ce.icon},null,8,["name"]),a.createElementVNode("span",zp,a.toDisplayString(E==null?void 0:E.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Mp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E==null?void 0:E.contents,ce=>{var Ne,va;return a.openBlock(),a.createElementBlock("div",{key:ce==null?void 0:ce.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:Sa=>!l.lockingPage&&w(ce==null?void 0:ce.label)},[a.createTextVNode(a.toDisplayString(ce==null?void 0:ce.label),1),(Ne=ce==null?void 0:ce.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",Ip,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(va=ce==null?void 0:ce.label)!=null&&va.includes("全部")?(a.openBlock(),a.createElementBlock("span",Lp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Op)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(E!=null&&E.type)||(E==null?void 0:E.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:ce=>!l.lockingPage&&w(E==null?void 0:E.label,E)},[a.createVNode(W,{class:"table-op-icon",name:(me=v==null?void 0:v.find(ce=>(ce==null?void 0:ce.label)===(E==null?void 0:E.label)))==null?void 0:me.icon},null,8,["name"]),a.createElementVNode("span",Rp,a.toDisplayString(E==null?void 0:E.label),1)],10,$p)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Vp,[a.createElementVNode("div",Pp,[a.createElementVNode("div",Fp,[a.createVNode(se,{modelValue:s.value,"onUpdate:modelValue":_[5]||(_[5]=E=>s.value=E),style:{"min-width":"80px"},placeholder:A.value?(ue=(X=(we=l.filterValues)==null?void 0:we.filter(E=>E))==null?void 0:X.slice(0,3))==null?void 0:ue.join("/"):"搜索","prefix-icon":a.unref(ol.search_default),clearable:"",onInput:B,disabled:((Ge=m.value)==null?void 0:Ge.length)===0},{suffix:a.withCtx(()=>{var E,ae;return[!s.value&&((ae=(E=l.filterValues)==null?void 0:E.filter(me=>me))!=null&&ae.join("/"))?(a.openBlock(),a.createBlock(U,{key:0,style:{cursor:"pointer"},onClick:b},{default:a.withCtx(()=>[a.createVNode(a.unref(ol.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Y,["stop"])},[a.createVNode(W,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((za=l.buttons)==null?void 0:za.length)>0?(a.openBlock(),a.createElementBlock("div",jp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((re=l.buttons)==null?void 0:re.filter(E=>l.isDevMode||(E==null?void 0:E.label)!=="修改模板"),(E,ae)=>{var me;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ae},[(E==null?void 0:E.type)==="upload"?(a.openBlock(),a.createBlock(Ce,{key:0,class:"upload-button-wrap","on-change":C,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var ce;return[a.createElementVNode("div",Hp,[a.createVNode(W,{class:"table-op-icon",name:(ce=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(E==null?void 0:E.label)))==null?void 0:ce.icon},null,8,["name"]),a.createElementVNode("span",Up,a.toDisplayString(E==null?void 0:E.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(E==null?void 0:E.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(E==null?void 0:E.type)==="popover"?(a.openBlock(),a.createBlock(Ie,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var ce;return[a.createVNode(W,{class:"table-op-icon",name:(ce=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(E==null?void 0:E.label)))==null?void 0:ce.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(E==null?void 0:E.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",qp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E==null?void 0:E.contents,ce=>(a.openBlock(),a.createBlock(Ie,{key:ce==null?void 0:ce.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>w(ce==null?void 0:ce.label)},{default:a.withCtx(()=>{var Ne,va;return[a.createTextVNode(a.toDisplayString(ce==null?void 0:ce.label),1),(Ne=ce==null?void 0:ce.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",Wp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(va=ce==null?void 0:ce.label)!=null&&va.includes("全部")?(a.openBlock(),a.createElementBlock("span",Kp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(E!=null&&E.type)||(E==null?void 0:E.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:ce=>!l.lockingPage&&w(E==null?void 0:E.label,E)},[a.createVNode(W,{class:"table-op-icon",name:(me=v==null?void 0:v.find(ce=>(ce==null?void 0:ce.label)===(E==null?void 0:E.label)))==null?void 0:me.icon},null,8,["name"]),a.createElementVNode("span",Gp,a.toDisplayString(E==null?void 0:E.label),1)],10,Yp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},Xp=ql._export_sfc(Jp,[["__scopeId","data-v-3a44c010"]]),Zp={__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(p=>[a.renderSlot(r.$slots,"content",{row:p.row,column:p.column,$index:p.$index,scope:p}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(v,y)=>(a.openBlock(),a.createBlock(pl._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(r.$slots,(u,x)=>({name:x,fn:a.withCtx(({row:C,slotData:B,item:w,column:V})=>[a.renderSlot(r.$slots,x,a.mergeProps({ref_for:!0},B??C,{item:w??v,slotData:B??C,row:C,column:V,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class Qp extends Ra.Loader{constructor(r){super(r),this.littleEndian=!0}load(r,n,o,s){const c=this,m=new Ra.FileLoader(c.manager);m.setPath(c.path),m.setResponseType("arraybuffer"),m.setRequestHeader(c.requestHeader),m.setWithCredentials(c.withCredentials),m.load(r,function(p){try{n(c.parse(p))}catch(v){s?s(v):console.error(v),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(B,w){const V=B.length,A=new Uint8Array(w);let N=0,Y=0,b,L,T;do if(b=B[N++],b<32){if(b++,Y+b>w)throw new Error("Output buffer is not large enough");if(N+b>V)throw new Error("Invalid compressed data");do A[Y++]=B[N++];while(--b)}else{if(L=b>>5,T=Y-((b&31)<<8)-1,N>=V)throw new Error("Invalid compressed data");if(L===7&&(L+=B[N++],N>=V))throw new Error("Invalid compressed data");if(T-=B[N++],Y+L+2>w)throw new Error("Output buffer is not large enough");if(T<0)throw new Error("Invalid compressed data");if(T>=Y)throw new Error("Invalid compressed data");do A[Y++]=A[T++];while(--L+2)}while(N<V);return A}function o(B){const w={},V=new Uint8Array(B);let A="",N="",Y=0,b=!1;const L=V.length;for(;Y<L&&b===!1;){const U=String.fromCharCode(V[Y++]);U===`
|
|
2
|
-
`||U==="\r"?(N.trim().toLowerCase().startsWith("data")&&(b=!0),N=""):N+=U,A+=U}const T=A.search(/[\r\n]DATA\s(\S*)\s/i),k=/[\r\n]DATA\s(\S*)\s/i.exec(A.slice(T-1));if(w.data=k[1],w.headerLen=k[0].length+T,w.str=A.slice(0,w.headerLen),w.str=w.str.replace(/#.*/gi,""),w.version=/^VERSION (.*)/im.exec(w.str),w.fields=/^FIELDS (.*)/im.exec(w.str),w.size=/^SIZE (.*)/im.exec(w.str),w.type=/^TYPE (.*)/im.exec(w.str),w.count=/^COUNT (.*)/im.exec(w.str),w.width=/^WIDTH (.*)/im.exec(w.str),w.height=/^HEIGHT (.*)/im.exec(w.str),w.viewpoint=/^VIEWPOINT (.*)/im.exec(w.str),w.points=/^POINTS (.*)/im.exec(w.str),w.version!==null&&(w.version=parseFloat(w.version[1])),w.fields=w.fields!==null?w.fields[1].split(" "):[],w.type!==null&&(w.type=w.type[1].split(" ")),w.width!==null&&(w.width=parseInt(w.width[1])),w.height!==null&&(w.height=parseInt(w.height[1])),w.viewpoint!==null&&(w.viewpoint=w.viewpoint[1]),w.points!==null&&(w.points=parseInt(w.points[1],10)),w.points===null&&(w.points=w.width*w.height),w.size!==null&&(w.size=w.size[1].split(" ").map(function(U){return parseInt(U,10)})),w.count!==null)w.count=w.count[1].split(" ").map(function(U){return parseInt(U,10)});else{w.count=[];for(let U=0,W=w.fields.length;U<W;U++)w.count.push(1)}w.offset={};let _=0;for(let U=0,W=w.fields.length;U<W;U++)w.data==="ascii"?w.offset[w.fields[U]]=U:(w.offset[w.fields[U]]=_,_+=w.size[U]*w.count[U]);return w.rowSize=_,w}const s=o(r),c=[],m=[],p=[],v=[],y=[],u=new Ra.Color;if(s.data==="ascii"){const B=s.offset,A=new TextDecoder().decode(r).slice(s.headerLen).split(`
|
|
3
|
-
`);for(let N=0,Y=A.length;N<Y;N++){if(A[N]==="")continue;const b=A[N].split(" ");if(B.x!==void 0&&(c.push(parseFloat(b[B.x])),c.push(parseFloat(b[B.y])),c.push(parseFloat(b[B.z]))),B.rgb!==void 0){const L=s.fields.findIndex(Ce=>Ce==="rgb"),T=s.type[L],k=parseFloat(b[B.rgb]);let _=k;if(T==="F"){const Ce=new Float32Array(1);Ce[0]=k,_=new Int32Array(Ce.buffer)[0]}const U=(_>>16&255)/255,W=(_>>8&255)/255,se=(_>>0&255)/255;u.setRGB(U,W,se,Ra.SRGBColorSpace),p.push(u.r,u.g,u.b)}B.normal_x!==void 0&&(m.push(parseFloat(b[B.normal_x])),m.push(parseFloat(b[B.normal_y])),m.push(parseFloat(b[B.normal_z]))),B.intensity!==void 0&&v.push(parseFloat(b[B.intensity])),B.label!==void 0&&y.push(parseInt(b[B.label]))}}if(s.data==="binary_compressed"){const B=new Uint32Array(r.slice(s.headerLen,s.headerLen+8)),w=B[0],V=B[1],A=n(new Uint8Array(r,s.headerLen+8,w),V),N=new DataView(A.buffer),Y=s.offset;for(let b=0;b<s.points;b++){if(Y.x!==void 0){const L=s.fields.indexOf("x"),T=s.fields.indexOf("y"),k=s.fields.indexOf("z");c.push(this._getDataView(N,s.points*Y.x+s.size[L]*b,s.type[L],s.size[L])),c.push(this._getDataView(N,s.points*Y.y+s.size[T]*b,s.type[T],s.size[T])),c.push(this._getDataView(N,s.points*Y.z+s.size[k]*b,s.type[k],s.size[k]))}if(Y.rgb!==void 0){const L=s.fields.indexOf("rgb"),T=N.getUint8(s.points*Y.rgb+s.size[L]*b+2)/255,k=N.getUint8(s.points*Y.rgb+s.size[L]*b+1)/255,_=N.getUint8(s.points*Y.rgb+s.size[L]*b+0)/255;u.setRGB(T,k,_,Ra.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(Y.normal_x!==void 0){const L=s.fields.indexOf("normal_x"),T=s.fields.indexOf("normal_y"),k=s.fields.indexOf("normal_z");m.push(this._getDataView(N,s.points*Y.normal_x+s.size[L]*b,s.type[L],s.size[L])),m.push(this._getDataView(N,s.points*Y.normal_y+s.size[T]*b,s.type[T],s.size[T])),m.push(this._getDataView(N,s.points*Y.normal_z+s.size[k]*b,s.type[k],s.size[k]))}if(Y.intensity!==void 0){const L=s.fields.indexOf("intensity");v.push(this._getDataView(N,s.points*Y.intensity+s.size[L]*b,s.type[L],s.size[L]))}if(Y.label!==void 0){const L=s.fields.indexOf("label");y.push(N.getInt32(s.points*Y.label+s.size[L]*b,this.littleEndian))}}}if(s.data==="binary"){const B=new DataView(r,s.headerLen),w=s.offset;for(let V=0,A=0;V<s.points;V++,A+=s.rowSize){if(w.x!==void 0){const N=s.fields.indexOf("x"),Y=s.fields.indexOf("y"),b=s.fields.indexOf("z");c.push(this._getDataView(B,A+w.x,s.type[N],s.size[N])),c.push(this._getDataView(B,A+w.y,s.type[Y],s.size[Y])),c.push(this._getDataView(B,A+w.z,s.type[b],s.size[b]))}if(w.rgb!==void 0){const N=B.getUint8(A+w.rgb+2)/255,Y=B.getUint8(A+w.rgb+1)/255,b=B.getUint8(A+w.rgb+0)/255;u.setRGB(N,Y,b,Ra.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(w.normal_x!==void 0){const N=s.fields.indexOf("normal_x"),Y=s.fields.indexOf("normal_y"),b=s.fields.indexOf("normal_z");m.push(this._getDataView(B,A+w.normal_x,s.type[N],s.size[N])),m.push(this._getDataView(B,A+w.normal_y,s.type[Y],s.size[Y])),m.push(this._getDataView(B,A+w.normal_z,s.type[b],s.size[b]))}if(w.intensity!==void 0){const N=s.fields.indexOf("intensity");v.push(this._getDataView(B,A+w.intensity,s.type[N],s.size[N]))}w.label!==void 0&&y.push(B.getInt32(A+w.label,this.littleEndian))}}const x=new Ra.BufferGeometry;c.length>0&&x.setAttribute("position",new Ra.Float32BufferAttribute(c,3)),m.length>0&&x.setAttribute("normal",new Ra.Float32BufferAttribute(m,3)),p.length>0&&x.setAttribute("color",new Ra.Float32BufferAttribute(p,3)),v.length>0&&x.setAttribute("intensity",new Ra.Float32BufferAttribute(v,1)),y.length>0&&x.setAttribute("label",new Ra.Int32BufferAttribute(y,1)),x.computeBoundingSphere();const C=new Ra.PointsMaterial({size:.005});return p.length>0&&(C.vertexColors=!0),new Ra.Points(x,C)}}const ef=$.useModelComp($.pinia),{systemPath:ts}=$.storeToRefs(ef),fi=a.ref(),ss=new WeakMap;function af(l,r,n,o,s){const c=async C=>{try{const B=await $.platformDownloadFile({url:C});if(B.status!==200)throw new Error(`下载失败: ${B.status}`);return B.data}catch(B){throw console.error("addModelFromUrl失败:",B),B}},m=C=>new Promise((B,w)=>{const V=new FileReader;V.onload=A=>{try{const N=A.target.result,b=new zn.MTLLoader().parse(N);b.preload(),B(b)}catch(N){w(N)}},V.onerror=()=>{w(new Error("MTL文件读取失败"))},V.readAsText(C)}),p=async C=>{const B={materials:{},create:function(w){return this.materials[w]?this.materials[w]:(console.warn(`Material '${w}' not found, using default material`),new Ra.MeshPhongMaterial({color:8947848,side:Ra.DoubleSide}))},getAsArray:function(){const w=[];for(const V in this.materials)w.push(this.materials[V]);return w},preload:function(){for(const w in this.materials)this.materials[w].map&&(this.materials[w].map.needsUpdate=!0)}};for(const w of C){const V=await m(w);Object.assign(B.materials,V.materials)}return B.preload(),B},v=async(C,B=[])=>new Promise((w,V)=>{const A=new FileReader;A.onload=async N=>{try{const Y=N.target.result;let b=null;B&&B.length>0&&(B.length===1?b=await m(B[0]):b=await p(B));const L=new zn.OBJLoader;b&&L.setMaterials(b);const T=L.parse(Y);b||T.traverse(k=>{k.isMesh&&(k.material=new Ra.MeshPhongMaterial({color:8947848,side:Ra.DoubleSide}))}),w(T)}catch(Y){V(Y)}},A.onerror=()=>{V(new Error("OBJ文件读取失败"))},A.readAsText(C)}),y=async C=>{var B;try{n.value=!0;const{scene:w}=l();if(!w)throw new Error("Scene not initialized");s();const V=[];for(let A=0;A<C.length;A++){const N=C[A];o.value=`正在加载模型 ${A+1}/${C.length}...`;const Y=await c(N.objUrl),b=((B=N.objUrl)==null?void 0:B.split("/").pop())||`model_${A}.obj`,L=new File([Y],b,{type:Y.type});let T=[];if(N.mtlUrls){const _=Array.isArray(N.mtlUrls)?N.mtlUrls:[N.mtlUrls];for(let U=0;U<_.length;U++){const W=_[U],se=await c(W),Ce=(W==null?void 0:W.split("/").pop())||`material_${A}_${U}.mtl`,Ie=new File([se],Ce,{type:se.type});T.push(Ie)}}const k=await v(L,T);w.add(k),r.value.push(k),V.push(k)}return n.value=!1,V}catch(w){throw console.error("加载模型失败:",w),n.value=!1,w}},u=async(C,B,w=[],V=[])=>{let A;const N=C.toLowerCase();switch(N){case".txt":case".cpt":case".obj":const Y=await B.text();if(N===".txt"||N===".cpt"){const Q=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ve=[...Y.matchAll(Q)].map(Te=>({x:parseFloat(Te[1]),y:parseFloat(Te[2]),z:parseFloat(Te[3])})),xa=new Ra.BufferGeometry,He=Ve.flatMap(Te=>[Te.x,Te.y,Te.z]);if(xa.setAttribute("position",new Ra.Float32BufferAttribute(He,3)),N===".txt"){const Te=new Ra.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});A=new Ra.Points(xa,Te)}else if(N===".cpt"){const Te=new Ra.LineBasicMaterial({color:"#5B5C99",linewidth:100});A=new Ra.Line(xa,Te)}}else if(N===".obj"){const Q=new zn.OBJLoader;if(w&&w.length>0){const na=new zn.MTLLoader;for(const Ve of w){const xa=await Ve.text(),He=na.parse(xa);He.preload(),Q.setMaterials(He);break}}A=Q.parse(Y),(!w||w.length===0)&&A.traverse(na=>{na.isMesh&&(na.material=new Ra.MeshPhongMaterial({color:"#B3B3D4"})),na instanceof Ra.Mesh&&(na.material.side=Ra.DoubleSide)})}break;case".stl":const b=await B.arrayBuffer(),T=new zn.STLLoader().parse(b),k=new Ra.MeshPhongMaterial({color:"#B3B3D4",side:Ra.DoubleSide});A=new Ra.Mesh(T,k);break;case".nc":const _=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],U={"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)"},W=new Ra.Group,se=_.map(Q=>new Promise((na,Ve)=>{new zn.STLLoader().load(ts.value===""?`/model/${Q}`:`${ts.value}\\${Q}`,He=>{const Te=new Ra.MeshPhongMaterial({color:U[Q]||"#B3B3D4",side:Ra.DoubleSide}),Re=new Ra.Mesh(He,Te);na(Re)},void 0,Ve)}));try{(await Promise.all(se)).forEach(na=>W.add(na)),A=W}catch(Q){throw console.error("加载NC文件对应的STL文件失败:",Q),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const Ce=new Qp,Ie=new Ra.Group;try{const Q=await ol.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),na=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"}),Ve=await ol.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),xa=new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"}),He=await new Promise((Re,Je)=>{const Ja=URL.createObjectURL(na);Ce.load(Ja,Fa=>{const P=new Float32Array(Fa.geometry.attributes.position.count*3);for(let F=0;F<Fa.geometry.attributes.position.count;F++)P[F*3]=1,P[F*3+1]=0,P[F*3+2]=0;Fa.geometry.setAttribute("color",new Ra.BufferAttribute(P,3)),Fa.material.vertexColors=!0,Fa.scale.set(.3,.3,.3),URL.revokeObjectURL(Ja),Re(Fa)},void 0,Je)}),Te=await new Promise((Re,Je)=>{const Ja=URL.createObjectURL(xa);Ce.load(Ja,Fa=>{const P=new Float32Array(Fa.geometry.attributes.position.count*3);for(let F=0;F<Fa.geometry.attributes.position.count;F++)P[F*3]=0,P[F*3+1]=1,P[F*3+2]=0;Fa.geometry.setAttribute("color",new Ra.BufferAttribute(P,3)),Fa.material.vertexColors=!0,Fa.scale.set(.3,.3,.3),URL.revokeObjectURL(Ja),Re(Fa)},void 0,Je)});Ie.add(He),Ie.add(Te),A=Ie}catch(Q){throw console.error("PCD文件加载失败:",Q),new Error("无法加载PCD文件")}break;case".urdf":const De=URL.createObjectURL(B),le=new Cu.URDFLoader,we="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",X={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},ue=new WeakMap,Ge=new WeakMap,za=new WeakMap,re=async Q=>{if(ue.has(Q))return console.log(`从缓存加载: ${Q}`),ue.get(Q);try{const na=await ol.axios.get(`${we}/${Q}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ve=new Blob([na.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&ue.set(Q,Ve),Ve}catch(na){throw console.error(`加载文件失败: ${Q}`,na),new Error(`无法加载文件: ${Q}`)}},E=(Q="default")=>{if(Ge.has(Q))return Ge.get(Q);const na=new Ra.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Ra.FrontSide});return Ge.set(Q,na),na},ae=Q=>{try{Q.isBufferGeometry&&Q.mergeVertices&&Q.mergeVertices(),Q.computeVertexNormals&&Q.computeVertexNormals(),Q.computeBoundingSphere&&Q.computeBoundingSphere(),Q.deleteAttribute&&Q.deleteAttribute("uv2")}catch(na){console.warn("几何体优化失败,使用原始几何体:",na)}return Q},me=async(Q,na,Ve)=>{const xa=`stl_${na}`;if(za.has(xa)){const Je=za.get(xa);return new Ra.Mesh(Je,E())}const He=await Q.arrayBuffer();let Re=new zn.STLLoader(Ve).parse(He);return Re=ae(Re),za.set(xa,Re),new Ra.Mesh(Re,E())},ce=async(Q,na,Ve)=>{const xa=`obj_${na}`;if(ue.has(xa))return ue.get(xa).clone();const He=await Q.text(),Te=new zn.OBJLoader(Ve),Re=na.replace(".obj",".mtl");try{const Fa=await(await re(Re)).text(),F=new zn.MTLLoader(Ve).parse(Fa);F.preload(),Te.setMaterials(F)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Re}`)}const Je=Te.parse(He);return Je.traverse(Ja=>{Ja.isMesh&&(Ja.geometry=ae(Ja.geometry),Ja.castShadow=!0,Ja.receiveShadow=!0,Ja.renderOrder=1)}),ue.set(xa,Je),Je},Ne=(Q,na)=>{const Ve=new Ra.LOD;if(Ve.addLevel(Q,0),Q.geometry){const xa=Q.geometry.clone(),He=new Ra.Mesh(xa,Q.material);Ve.addLevel(He,50)}return Ve};let va=0,Sa=0;const Wa=[];le.loadMeshCb=async(Q,na,Ve,xa,He)=>{const Te=Q.split("/").pop(),Re=Ve||(()=>{});va++;const Je=new Promise(async(Ja,Fa)=>{try{const P=await re(Te);if(!P||P.size===0)throw new Error(`文件为空: ${Te}`);const F=Te.split(".").pop().toLowerCase();let J;switch(F){case"stl":J=await me(P,Te,na);break;case"obj":J=await ce(P,Te,na);break;default:throw new Error(`不支持的文件格式: ${F}`)}X.enableLOD&&J.isMesh&&(J=Ne(J,Te)),Re(J),Sa++,xa&&xa({loaded:Sa,total:va,progress:Sa/va}),Ja(J)}catch(P){console.error(`mesh文件加载失败: ${Te}`,P);const F=new Ra.Group;Re(F),Ja(F);const J=new Ra.BoxGeometry(.1,.1,.1),ne=new Ra.MeshStandardMaterial({color:16711680,wireframe:!0});return new Ra.Mesh(J,ne)}});Wa.push(Je)};try{if(!De){fi.value=void 0;break}if(A=await le.loadAsync(De),console.log(`URDF文件加载完成,等待${va}个mesh文件加载...`),Wa.length>0)try{await Promise.allSettled(Wa),console.log(`所有mesh文件处理完成,成功加载: ${Sa}/${va}`)}catch(Ve){console.warn("部分mesh文件加载失败,但继续显示模型",Ve)}A.traverse(Ve=>{Ve.isMesh&&(Ve.castShadow=!0,Ve.receiveShadow=!0,Ve.renderOrder=1,Ve.material&&(Ve.material.needsUpdate=!0))}),console.time("计算包围盒");const Q=new Ra.Box3;Q.expandByObject(A);const na=`urdf_${Date.now()}`;A.userData.boundingBox=Q.clone(),A.userData.modelId=na,ss.set(na,{box:Q.clone(),center:Q.getCenter(new Ra.Vector3),size:Q.getSize(new Ra.Vector3),maxSize:Math.max(...Q.getSize(new Ra.Vector3).toArray())}),fi.value=A,console.log("URDF模型加载完成并优化")}catch(Q){console.error("URDF加载失败:",Q),fi.value=void 0}finally{De&&URL.revokeObjectURL(De)}break;default:throw new Error(`不支持的文件格式: ${C}`)}return A};return{addModelsFromUrls:y,loadModelByDefaultPath:async C=>{console.log(C);try{n.value=!0,o.value="正在加载模型...";const{scene:B}=l();if(!B)throw new Error("Scene not initialized");s(),await new Promise(V=>setTimeout(V,100));const w=[];for(let V=0;V<C.length;V++){const A=C[V],N=await u(A.suffix,A.blob,A.mtlBlobs||[],A.meshFiles||[]);N&&(B.add(N),r.value.push(N),w.push(N))}return n.value=!1,o.value="",w}catch(B){throw console.error("加载模型失败:",B),n.value=!1,o.value="",B}},urdfModel:fi,modelBoundingBoxes:ss}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var 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,p,v=function(x,C){C.parentNode.insertBefore(x,C)};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,C=document.createElement("div");C.innerHTML=l._iconfont_svg_string_4827314,(C=C.getElementsByTagName("svg")[0])&&(C.setAttribute("aria-hidden","true"),C.style.position="absolute",C.style.width=0,C.style.height=0,C.style.overflow="hidden",C=C,(x=document.body).firstChild?v(C,x.firstChild):x.appendChild(C))},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,p=!1,u(),m.onreadystatechange=function(){m.readyState=="complete"&&(m.onreadystatechange=null,y())})}function y(){p||(p=!0,c())}function u(){try{m.documentElement.doScroll("left")}catch{return void setTimeout(u,50)}y()}})(window);const lf={class:"statistics-cards-container"},rf=["onClick"],nf=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0}},setup(l){const r=l,n=a.ref(null),o=x=>{if(Array.isArray(x)&&x.length>=3){const[C,B,w,V]=x;return V!==void 0?`rgba(${C}, ${B}, ${w}, ${V})`:`rgb(${C}, ${B}, ${w})`}if(typeof x=="string"){const C=x.trim();if(C.startsWith("[")&&C.endsWith("]")){const B=C.slice(1,-1).split(",").map(w=>Number(w.trim()));if(B.length>=3&&B.every(w=>!Number.isNaN(w))){const[w,V,A,N]=B;return N!==void 0?`rgba(${w}, ${V}, ${A}, ${N})`:`rgb(${w}, ${V}, ${A})`}}return C}},s=a.computed(()=>{const x=Number(r==null?void 0:r.textSize),C=o(r==null?void 0:r.textColor),B={},w={};return!Number.isNaN(x)&&x&&(B.fontSize=`${x}px`,w.fontSize=`${x}px`),C&&(B.color=C,w.color=C),{label:B,value:w}}),c=x=>pl.getComponent(x),m=x=>{if(!x)return;const C=x.querySelector("input, textarea, .el-input__inner");C&&typeof C.focus=="function"&&C.focus()},p=(x,C,B)=>{r.disabled||x.field&&(n.value=C,a.nextTick(()=>{m(B.currentTarget)}))},v=()=>{n.value=null},y=x=>{var B;const C=((B=x==null?void 0:x.field)==null?void 0:B.value)??(x==null?void 0:x.value);return C==null||C===""?"-":C},u=x=>{const C=x!=null&&x.width&&x.width>0?x.width:1,w=`calc((100% - ${(C-1)*16}px) / ${C})`;return{flex:`0 0 ${w}`,maxWidth:w,minWidth:"140px",boxSizing:"border-box"}};return(x,C)=>(a.openBlock(),a.createElementBlock("div",lf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.items,(B,w)=>{var V,A,N,Y,b,L,T,k;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:w,style:a.normalizeStyle(u(B))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(s.value.label)},a.toDisplayString(B==null?void 0:B.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(s.value.value),onClick:_=>p(B,w,_)},[n.value===w&&B.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(((V=B.field)==null?void 0:V.type)??"Input")),{key:0,modelValue:B.field.value,"onUpdate:modelValue":_=>B.field.value=_,isEdit:!0,disabled:(A=B.field)==null?void 0:A.disabled,content:((N=B.field)==null?void 0:N.contents)??[],optionUrl:B.field,originalValue:(Y=B.field)==null?void 0:Y.value,config:(b=B.field)==null?void 0:b.config,configModel:((L=B.field)==null?void 0:L.prop)??((T=B.field)==null?void 0:T.name),selectedTagList:((k=B.field)==null?void 0:k.selectValue)??[],onBlur:v,onBlurChange:v},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(y(B)),1)],64))],12,rf)],4)}),128))]))}}),of=ql._export_sfc(nf,[["__scopeId","data-v-bc3dcbbb"]]),ac=$.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),tf={class:"calculator-content"},sf={class:"calculator-child"},cf={class:"calculator-child"},uf=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",tf,[a.createElementVNode("div",sf,[a.createVNode(pl.ssForm,{rowContents:r.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",cf,[a.createVNode(pl.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),df=ql._export_sfc(uf,[["__scopeId","data-v-73db0fe7"]]),ht=(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((p,v)=>{var y;(y=o==null?void 0:o[v])!=null&&y.prop?m[o[v].prop]=p:Array.isArray(p)&&(m.children=ht(p,o))}),Object.assign(m,{id:c})}else return s})),n},lc=(l,r,n)=>{let o=l,s=r;return o=o==null?void 0:o.map((c,m)=>{var p,v;return!Array.isArray(c)||!((p=s==null?void 0:s[m])!=null&&p.label)&&!n||(c.unshift(((v=s==null?void 0:s[m])==null?void 0:v.label)??""),c.some(y=>Array.isArray(y))&&(c=c==null?void 0:c.map(y=>{var u;return Array.isArray(y)&&(y=lc(y,(u=s==null?void 0:s[m])==null?void 0:u.children,n)),y}))),c}),o},pf=(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 ff(l,o,n)}},ff=(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=rc(c,s,n)),c)),o},rc=(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(p=>p.id!==n):o.children=(m=o.children)==null?void 0:m.map(p=>(p.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),p=rc(p,s,n)),p)),o},hf=(l,r,n)=>{if(r==="")return n;{const o=r.split("-");return vf(l,o,n)}},vf=(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=nc(c,s,n)),c)),o},nc=(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=nc(m,s,n)),m)),o};class mf{constructor(r={}){Rr(this,"url");Rr(this,"heartbeatInterval");Rr(this,"socket",null);Rr(this,"isConnected",!1);Rr(this,"heartTimer",null);Rr(this,"canvas",null);Rr(this,"ctx",null);Rr(this,"mainCamCutMode",0);Rr(this,"pMainShowStartX",0);Rr(this,"pMainShowStartY",0);Rr(this,"onLog");Rr(this,"onDevCount");Rr(this,"onResolution");Rr(this,"onCameraStatus");Rr(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,p,v,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,C=new Uint8Array(x);for(let V=0;V<x;V++)C[V]=n[4+V];const w=decodeURIComponent(this.byteToString(C)).split("|");(s=this.onDevCount)==null||s.call(this,u,w);return}if(o===81){const u=n[3]||0,x=[];for(let C=0;C<u;C++){const B=(n[4+C*4+0]||0)*256+(n[4+C*4+1]||0),w=(n[4+C*4+2]||0)*256+(n[4+C*4+3]||0);x.push({width:B,height:w,text:`${B}*${w}`})}(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&&((p=this.onCameraStatus)==null||p.call(this,"closed"));return}if(o===16){if(n[3]===1){const x=n[4]*256+n[5],C=n[6]*65536+n[7]*256+n[8];let B="";if(x>0){const A=new Uint8Array(x);for(let N=0;N<x;N++)A[N]=n[9+N];B=decodeURIComponent(this.byteToString(A))}const w=new Uint8Array(C);for(let A=0;A<C;A++)w[A]=n[9+x+A];const V=this.uint8ArrayToString(w);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:B,base64:V})}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 C=this.ctx.createImageData(u,x);let B=11;for(let w=0;w<C.data.length;w+=4)C.data[w+0]=n[B],C.data[w+1]=n[B+1],C.data[w+2]=n[B+2],C.data[w+3]=255,B+=3;this.ctx.putImageData(C,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 yf={style:{display:"flex",gap:"16px",height:"100%"}},gf={key:0,style:{color:"var(--el-text-color-secondary)"}},bf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},kf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},xf={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"auto",padding:"8px"}},_f={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},wf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Cf=["src","onClick"],Sf=["onClick"],Ef={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Df={class:"dialog-footer"},Nf=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([]),p=a.ref(""),v=a.ref(!1),y=a.ref([]),u=new mf({url:"ws://127.0.0.1:22225"});function x(W,se){var X;const Ce=W.split(","),Ie=((X=Ce[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",De=atob(Ce[1]);let le=De.length;const we=new Uint8Array(le);for(;le--;)we[le]=De.charCodeAt(le);return new File([we],se,{type:Ie})}function C(){u.onLog=W=>{console.log("[GPY]",W)},u.onDevCount=(W,se)=>{if(p.value+=`设备数量=${W},设备=${se.join(",")}
|
|
4
|
-
`,W>0){p.value+=`检测到设备,正在获取分辨率...
|
|
5
|
-
`;try{u.getResolution(0)}catch(Ce){p.value+=`获取分辨率失败:${(Ce==null?void 0:Ce.message)??Ce}
|
|
6
|
-
`}}else p.value+=`未检测到高拍仪设备!
|
|
7
|
-
`},u.onResolution=(W,se)=>{if(W<=0||!Array.isArray(se)||se.length===0){p.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
|
|
8
|
-
`;try{u.openCamera(0,1280,720)}catch(Ie){p.value+=`打开摄像头失败:${(Ie==null?void 0:Ie.message)??Ie}
|
|
9
|
-
`}return}const Ce=u.chooseResolution(se);if(!Ce){p.value+=`分辨率选择失败,回退使用 1280*720 打开...
|
|
10
|
-
`;try{u.openCamera(0,1280,720)}catch(Ie){p.value+=`打开摄像头失败:${(Ie==null?void 0:Ie.message)??Ie}
|
|
11
|
-
`}return}p.value+=`获取分辨率 ${Ce.text}成功,打开摄像头...
|
|
12
|
-
`;try{u.closeCamera(),setTimeout(()=>{try{u.openCamera(0,Ce.width,Ce.height)}catch(Ie){p.value+=`打开摄像头失败:${(Ie==null?void 0:Ie.message)??Ie}
|
|
13
|
-
`}},100)}catch{try{u.openCamera(0,Ce.width,Ce.height)}catch(Ie){p.value+=`打开摄像头失败:${(Ie==null?void 0:Ie.message)??Ie}
|
|
14
|
-
`}}},u.onCameraStatus=W=>{W==="opened"?(c.value=!0,p.value+=`摄像头已打开
|
|
15
|
-
`):(c.value=!1,p.value+=`摄像头已关闭
|
|
16
|
-
`)},u.onPhoto=W=>{if(W.flag===0&&W.base64){const se=`data:image/jpeg;base64,${W.base64}`,Ce=x(se,`gpy-capture-${Date.now()}.jpg`);m.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:se,file:Ce}),p.value+=`拍照完成,已接收图片(当前 ${m.value.length} 张)
|
|
17
|
-
`}else p.value+=`拍照失败 flag=${W.flag}
|
|
18
|
-
`}}const B=async()=>{if(await a.nextTick(),!s.value)return;w(),C();const W=s.value.getBoundingClientRect();u.init(s.value,Math.floor(W.width),Math.floor(W.height)),p.value+=`正在连接设备服务...
|
|
19
|
-
`,await u.connect(),p.value+=`正在获取设备数量...
|
|
20
|
-
`,u.getDevCount()},w=()=>{try{u.destroy()}catch(W){console.error(W)}c.value=!1,m.value=[],p.value="",v.value=!1,y.value=[]};a.watch(()=>n.visible,W=>{W?B():w()});const V=()=>{try{u.bestSize()}catch(W){console.error(W)}},A=()=>{try{u.rotateLeft()}catch(W){console.error(W)}},N=()=>{try{u.rotateRight()}catch(W){console.error(W)}},Y=()=>{try{u.focus()}catch(W){console.error(W)}},b=()=>{p.value+=`正在拍照...
|
|
21
|
-
`;try{u.photo()}catch(W){p.value+=`拍照调用失败:${(W==null?void 0:W.message)??W}
|
|
22
|
-
`}},L=()=>{m.value.length>0?o("confirm",m.value.map(W=>W.file)):o("confirm",[])},T=W=>{W<0||W>=m.value.length||(m.value.splice(W,1),p.value+=`已删除一张图片(剩余 ${m.value.length} 张)
|
|
23
|
-
`)},k=W=>{if(!W)return;const se=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:se,blobUrl:W}],v.value=!0},_=()=>{v.value=!1},U=()=>{w(),o("cancel")};return(W,se)=>{const Ce=a.resolveComponent("el-input"),Ie=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(vr.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:U,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",yf,[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",gf,"初始化摄像头..."))],512),a.createElementVNode("div",bf,[a.createElementVNode("div",kf,[se[0]||(se[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",xf,[m.value.length===0?(a.openBlock(),a.createElementBlock("div",_f,"暂无图片")):(a.openBlock(),a.createElementBlock("div",wf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(De,le)=>(a.openBlock(),a.createElementBlock("div",{key:De.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:De.url,onClick:we=>k(De.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,Cf),a.createElementVNode("div",{onClick:we=>T(le),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,Sf)]))),128))]))],512)]),a.createElementVNode("div",Ef,[se[1]||(se[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(Ce,{type:"textarea",value:p.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Df,[a.createVNode(Ie,{onClick:V,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>se[2]||(se[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Ie,{onClick:A,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>se[3]||(se[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Ie,{onClick:N,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>se[4]||(se[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Ie,{onClick:Y,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>se[5]||(se[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Ie,{onClick:b,disabled:!c.value,id:"themeButton"},{default:a.withCtx(()=>se[6]||(se[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),se[9]||(se[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(Ie,{onClick:L,disabled:m.value.length===0,id:"themeButton"},{default:a.withCtx(()=>se[7]||(se[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Ie,{onClick:U,id:"themeBorderButton"},{default:a.withCtx(()=>se[8]||(se[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:_},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),Bf=ql._export_sfc(Nf,[["__scopeId","data-v-24a2050a"]]);function oc(l){return ol.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function Tf(l){return ol.axios.get(l,{responseType:"blob"})}const cs=$.useMenuState($.pinia),Af=async l=>{var c,m,p,v,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"))){cs.setContentLoading(!0);const x=await $.platformDownloadFile({url:o});let C=x==null?void 0:x.data;const B=new FormData;B.append("file",C,((m=r==null?void 0:r[0])==null?void 0:m.name)+"."+((p=o==null?void 0:o.split("."))==null?void 0:p[1])),B.append("query",n);let w=await oc(B);w=(u=(y=(v=w==null?void 0:w.data)==null?void 0:v.data)==null?void 0:y.response)==null?void 0:u.replace("generateResult",l==null?void 0:l.函数名称),s=w,cs.setContentLoading(!1)}return s},Ct=$.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),Si={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},us={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class zf{constructor(r){Rr(this,"config");this.config={...us,...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=ol.Local.get(ol.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||us.apiUrl;return(await ol.axios.post(c,s,{headers:{"Content-Type":"application/json",Authorization:o}})).data}getFieldAliases(r){return Si[r]?Si[r]:[r]}extractTableHeaders(r){const n=[],o=new Set,s=m=>{const p=m==null?void 0:m.label;return!(!p||p==="操作"||p===this.config.columnName||(m==null?void 0:m.type)==="operate"||(m==null?void 0:m.prop)==="operate")},c=m=>{(m||[]).forEach(p=>{if(!p)return;const v=(p==null?void 0:p.children)||(p==null?void 0:p.child)||(p==null?void 0:p.columns);if(Array.isArray(v)&&v.length>0){c(v);return}if(s(p)){const y=p.label;if(!o.has(y)){o.add(y);const u=this.getFieldAliases(y);n.push(u)}}})};return c(r||[]),n}}function ic(l){return new zf(l)}ic();const vt=async(l,r)=>{var m,p,v,y,u,x,C,B,w,V,A,N,Y,b,L,T,k;let n=(p=(m=$.cloneDeep(l))==null?void 0:m.optionUrl)==null?void 0:p.menuSelect,o=[];n==null||n.forEach(_=>{});let s="",c=await pa.menuToParent(n);if(c==null||c.forEach(_=>{var U,W,se,Ce;(_==null?void 0:_.name)===(((Ce=(se=(W=(U=$.cloneDeep(l))==null?void 0:U.optionUrl)==null?void 0:W.groupSelect)==null?void 0:se[0])==null?void 0:Ce.replaceAll("'",""))??"")&&(s=_==null?void 0:_.id)}),r){s=r;const _=await yr.getInsofDataApi({id:s}),U=(x=(u=(y=(v=_==null?void 0:_.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:u.key)==null?void 0:x.pageKey;c=await pa.getItemData(U,sessionStorage.getItem("systemKey"),"")}if(s!==""){let _;r?_=(C=c==null?void 0:c.find(se=>(se==null?void 0:se.id)===r))==null?void 0:C.compData:_=(B=c==null?void 0:c.find(se=>{var Ce,Ie,De,le;return(se==null?void 0:se.name)===(((Ie=(Ce=l==null?void 0:l.groupSelect)==null?void 0:Ce.split(":"))==null?void 0:Ie[0])||((le=(De=l==null?void 0:l.optionUrl)==null?void 0:De.groupSelect)==null?void 0:le[0]))}))==null?void 0:B.compData;let U=(V=(w=_==null?void 0:_.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:w.contents)==null?void 0:V.map(se=>se==null?void 0:se.label);(N=(A=_==null?void 0:_.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:A.contents)!=null&&N.every(se=>Array.isArray(se))&&(U=(L=pa.getColumnChild((b=(Y=_==null?void 0:_.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:Y.contents)==null?void 0:b[0]))==null?void 0:L.map(se=>se==null?void 0:se.prop));let W=(k=(T=_==null?void 0:_.find(se=>(se==null?void 0:se.key)==="tableContents"))==null?void 0:T.contents)==null?void 0:k.map(se=>{if(Array.isArray(se))se=se==null?void 0:se.filter(Ce=>!(Ce!=null&&Ce.id));else{let Ce={};for(let Ie in se)Ie!=="id"&&(Ce[Ie]=se==null?void 0:se[Ie]);se=Ce}return se});W==null||W.forEach(se=>{Array.isArray(se)?o.push(pa.getValueToObjectValue(se,U)):o.push(se)})}return o},Mf=$.useMenuState($.pinia),{activeMenuPath:V6}=$.storeToRefs(Mf),Of=$.useUnit($.pinia),{chooseTitle:P6}=$.storeToRefs(Of),If="col-operate",St=l=>`${If}-${l}`,Lf=(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||{},p=n.get(m);$f(p,c),Array.isArray(c==null?void 0:c.children)&&c.children.length>0&&o(c.children)})};return o(r),r},$f=(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),Rf=(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}},Vf=async l=>{var c,m;if(!l)return;const r=St(l),n=await yr.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]},Pf=async l=>{var c,m,p,v;if(!l)return;const r=St(l),n=await yr.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;return o==200?(v=(p=s==null?void 0:s[0])==null?void 0:p.value)==null?void 0:v.columns:[]},Ff=async(l,r)=>{if(!l||!r)return;const n=St(l);return await yr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:r}})},jf=async(l,r)=>!l||!r?void 0:await yr.updateInsofDataApi({id:l,value:{columns:r}}),ds=async(l,r)=>{const n=sessionStorage.getItem("systemKey");if(!l||!r||!n)return;const o=await Vf(l);return o?await jf(o==null?void 0:o.id,r):await Ff(l,r)};var bi={exports:{}},Hf=bi.exports,ps;function Uf(){return ps||(ps=1,function(l,r){(function(n,o){o()})(Hf,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 C=new XMLHttpRequest;C.open("GET",y),C.responseType="blob",C.onload=function(){v(C.response,u,x)},C.onerror=function(){console.error("could not download file")},C.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 In.commonjsGlobal=="object"&&In.commonjsGlobal.global===In.commonjsGlobal?In.commonjsGlobal:void 0,p=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(y,u,x){var C=m.URL||m.webkitURL,B=document.createElement("a");u=u||y.name||"download",B.download=u,B.rel="noopener",typeof y=="string"?(B.href=y,B.origin===location.origin?c(B):s(B.href)?o(y,u,x):c(B,B.target="_blank")):(B.href=C.createObjectURL(y),setTimeout(function(){C.revokeObjectURL(B.href)},4e4),setTimeout(function(){c(B)},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 C=document.createElement("a");C.href=y,C.target="_blank",setTimeout(function(){c(C)})}}:function(y,u,x,C){if(C=C||open("","_blank"),C&&(C.document.title=C.document.body.innerText="downloading..."),typeof y=="string")return o(y,u,x);var B=y.type==="application/octet-stream",w=/constructor/i.test(m.HTMLElement)||m.safari,V=/CriOS\/[\d]+/.test(navigator.userAgent);if((V||B&&w||p)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var b=A.result;b=V?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),C?C.location.href=b:location=b,C=null},A.readAsDataURL(y)}else{var N=m.URL||m.webkitURL,Y=N.createObjectURL(y);C?C.location=Y:location.href=Y,C=null,setTimeout(function(){N.revokeObjectURL(Y)},4e4)}});m.saveAs=v.saveAs=v,l.exports=v})}(bi)),bi.exports}Uf();const Yn=$.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}}}),qf=$.useLoginState($.pinia),{loginUserInfo:ot}=$.storeToRefs(qf),Wf=async l=>{var o,s,c;let r=await $.getAllTables({platId:parseInt((o=ot==null?void 0:ot.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 ec(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}]}]},Kf=$.useLoginState(),{loginUserInfo:bl}=$.storeToRefs(Kf);let hi="$R";const _r=$.useModelComp($.pinia),tc=a.ref(!1),{itemData:Yf,itemGridData:lo,curStructureCompIds:fs,isSubmitCurStructure:Gf,routeToChildPath:Jf,pageMapState:mt,itemExtendData:vi,refreshTable:hs}=$.storeToRefs(_r),Mi=Yn($.pinia),Er=$.useMenuState($.pinia),er=a.shallowRef([]),{asideMenus:Xf,activeTopMenuPath:Zf,activeMenuPath:xl,platform:F6,buttonTriggerType:Qf,currentMenuPath:Ur}=$.storeToRefs(Er),on=$.useUnit($.pinia),{selectTitle:qn,chooseTitle:Ei}=$.storeToRefs(on);a.ref();const No=a.ref(!0),Kn=a.ref(0),yt=a.ref([]);a.ref(!1);const Et=a.ref(!1),Ho=a.ref(),sc=a.ref(),cc=a.ref(),e0=()=>{_r.setItemGridData([]),_r.setIsEdit("edit"),_r.setSubmitCurStructure(xl.value!=="/平台管理/菜单管理")},a0=()=>{_r.setIsEdit("view"),_r.setRefreshCurStructure(!0)},l0=async l=>{var s;let r=qn.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);on.setSelectTitle(pl.safeClone(o)),o=(s=o==null?void 0:o.map(c=>c==null?void 0:c.value))==null?void 0:s.join("/"),Er.setActiveMenuPath(null),Er.setActiveMenuPath(o)},it=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(v=>{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:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},m=yr.batchAddInsofDataApi):r==="update"?(c={dataList:l==null?void 0:l.map(v=>{var y;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},m=yr.batchUpdateInsofDataApi):r==="delete"&&(c={ids:l},m=yr.batchDeleteInsofDataApi);const p=await m(c);if(((s=p==null?void 0:p.data)==null?void 0:s.code)===200)return p.data.result;throw ol.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{ol.ElMessage.error("保存响应失败")}},vs=async(l,r,n,o)=>{var s,c,m,p,v,y,u,x,C,B,w;try{const V=(c=(s=l==null?void 0:l.results)==null?void 0:s.filter(T=>!(T!=null&&T.id)||typeof(T==null?void 0:T.id)=="string"))==null?void 0:c.map(T=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:r,relatedInfo:n},value:{tableData:T}})),A=(p=(m=l==null?void 0:l.results)==null?void 0:m.filter(T=>(T==null?void 0:T.id)&&typeof(T==null?void 0:T.id)=="number"))==null?void 0:p.map(T=>({id:T==null?void 0:T.id,value:{tableData:T}})),N=JSON.parse(JSON.stringify(l)),Y=(v=N==null?void 0:N.results)==null?void 0:v.map(T=>T.id);let b;n?b=(x=(u=(y=mt.value)==null?void 0:y[xl.value])==null?void 0:u.filter(T=>{var k,_,U;return((k=T==null?void 0:T.key)==null?void 0:k.type)===r&&((U=(_=T==null?void 0:T.key)==null?void 0:_.relatedInfo)==null?void 0:U.target)===o}))==null?void 0:x.map(T=>T==null?void 0:T.id):b=(w=(B=(C=mt.value)==null?void 0:C[xl.value])==null?void 0:B.filter(T=>{var k;return((k=T==null?void 0:T.key)==null?void 0:k.type)===r}))==null?void 0:w.map(T=>T==null?void 0:T.id);const L=b==null?void 0:b.filter(T=>!(Y!=null&&Y.includes(T))&&typeof T=="number");(V==null?void 0:V.length)>0&&await yr.batchAddInsofDataApi({dataList:V}),(A==null?void 0:A.length)>0&&await yr.batchUpdateInsofDataApi({dataList:A}),(L==null?void 0:L.length)>0&&await yr.batchDeleteInsofDataApi({ids:L})}catch(V){throw new Error(V)}},r0=async l=>{var y,u,x,C,B,w,V,A,N,Y;Er.setContentLoading(!0);const r=JSON.parse(JSON.stringify(Yf.value));if(!Gf.value)return Er.setCacheStructures({key:Qf.value,data:r}),ol.ElMessage.success("已暂存");const n=r==null?void 0:r.map(b=>b.id),o=n.filter(b=>{var L;return!((L=fs.value)!=null&&L.includes(b))}),s=(y=fs.value)==null?void 0:y.filter(b=>!n.includes(b)),c=[...o,...s].filter(b=>typeof b!==null&&typeof b<"u"),m=r==null?void 0:r.filter(b=>!b.id),p=r==null?void 0:r.filter(b=>b.id);let v=[];if(c&&(c==null?void 0:c.length)>0&&v.push(it(c,"delete",l)),m&&(m==null?void 0:m.length)>0&&v.push(it(m,"create",l)),p&&(p==null?void 0:p.length)>0&&v.push(it(p,"update",l)),lo.value&&((u=lo.value)!=null&&u.isDelete&&((C=(x=lo.value)==null?void 0:x.results)==null?void 0:C.length)>0&&((w=(B=lo.value)==null?void 0:B.results)!=null&&w.every(b=>typeof b=="number"))?await yr.batchDeleteInsofDataApi({ids:(V=lo.value)==null?void 0:V.results}):(console.log("itemGridData.value",lo.value),v.push(await vs(lo.value,"gridLayout")))),vi.value)for(const b in vi.value)v.push(await vs((A=vi.value)==null?void 0:A[b],"extend",{target:b,compId:(Y=(N=vi.value)==null?void 0:N[b])==null?void 0:Y.compId},b));await Promise.all(v).then(()=>{ol.ElMessage.success("保存成功"),_r.setRefreshCurStructure(!0)}).catch(b=>{ol.ElMessage.success(b)}),Er.setContentLoading(!1)},Uo=l=>Bo(l),n0=a.computed(()=>{var l;return(l=er.value)==null?void 0:l.filter(r=>(r==null?void 0:r.affix)&&(r==null?void 0:r.affix)!=="default")}),uc=a.computed(()=>{var l;return(l=er.value)==null?void 0:l.filter(r=>!(r!=null&&r.affix)||(r==null?void 0:r.affix)==="default")}),dc=a.ref(0),pc=a.ref(null),o0="ocr_committed_temp_ids_v1",i0=(l,r)=>`${o0}:${String(l??"")}:${String(r??"")}`,t0=(l,r,n)=>{try{const o=i0(l,r),s=sessionStorage.getItem(o),c=s?JSON.parse(s):[],m=Array.isArray(c)?c:[],p=Array.from(new Set([...m,...n||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(o,JSON.stringify(p))}catch{}},Di=async(l,r="data",n)=>{var s,c,m,p,v,y,u,x,C,B,w,V,A,N,Y,b,L,T,k,_,U,W,se,Ce,Ie,De,le,we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa,Oa,qe,Ya,ba,oe,Se,Ue,Ke,Ca,Be,sl,Ea,Sl,ml;let o=((m=(c=(s=qn.value)==null?void 0:s.filter(Fe=>(Fe==null?void 0:Fe.condition)==="child"))==null?void 0:c[0])==null?void 0:m.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let Fe=(p=l==null?void 0:l.fixContent)==null?void 0:p.map(q=>{let oa={};for(let ka in q)Array.isArray(q==null?void 0:q[ka])?oa[ka]=JSON.stringify(q==null?void 0:q[ka]):oa[ka]=q==null?void 0:q[ka];return oa}),Pa=await $.quoteApi({platId:parseInt((v=bl==null?void 0:bl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Pa=(y=Pa==null?void 0:Pa.data)==null?void 0:y.result,Pa=Pa==null?void 0:Pa.filter(q=>{var oa,ka;return!((q==null?void 0:q.fatherPath)!==""&&((ka=(oa=q==null?void 0:q.quote)==null?void 0:oa[0])==null?void 0:ka.menus)===(xl==null?void 0:xl.value))});let je=Pa==null?void 0:Pa.map(q=>{var Ee,qa;let oa={},ka=Fe==null?void 0:Fe[0],ye;return Array.isArray((Ee=q==null?void 0:q.struct)==null?void 0:Ee[0])?ye=pa.getColumnChild((qa=q==null?void 0:q.struct)==null?void 0:qa[0]):ye=q==null?void 0:q.struct,ye=ye==null?void 0:ye.filter(pe=>(pe==null?void 0:pe.prop)!=="relatedId"),ye==null||ye.forEach(pe=>{var fl,al;oa[pe.prop]=((fl=pe==null?void 0:pe.words)!=null&&fl[0]?(ka==null?void 0:ka[(al=pe==null?void 0:pe.words)==null?void 0:al[0]])??(ka==null?void 0:ka[pe==null?void 0:pe.prop]):ka==null?void 0:ka[pe==null?void 0:pe.prop])??""}),oa.id="1",oa.relatedId=`[${oa.id}]`,delete oa.sort,{tableName:"content_"+(q==null?void 0:q.id),tableContents:[oa]}}),xe=[{tableName:(u=l==null?void 0:l.relatedContents)==null?void 0:u.find(q=>q==null?void 0:q.includes("content")),tableContents:Fe}];xe=[...xe,...je];let ea=await $.quoteApi({platId:parseInt((x=bl==null?void 0:bl.value)==null?void 0:x.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});ea=(B=(C=ea==null?void 0:ea.data)==null?void 0:C.result)==null?void 0:B.filter(q=>!(xe!=null&&xe.find(oa=>(oa==null?void 0:oa.tableName)==="content_"+(q==null?void 0:q.id)))),ea=ea==null?void 0:ea.filter(q=>{var oa,ka;return!((q==null?void 0:q.fatherPath)!==""&&((ka=(oa=q==null?void 0:q.quote)==null?void 0:oa[0])==null?void 0:ka.menus)===(xl==null?void 0:xl.value))});let Ze=ea==null?void 0:ea.map(q=>{var Ee,qa,pe,fl,al,_l,Ha;let oa={},ka=Fe==null?void 0:Fe[0],ye;return Array.isArray((Ee=q==null?void 0:q.struct)==null?void 0:Ee[0])?ye=pa.getColumnChild((qa=q==null?void 0:q.struct)==null?void 0:qa[0]):ye=q==null?void 0:q.struct,ye=ye==null?void 0:ye.filter(Xa=>(Xa==null?void 0:Xa.prop)!=="relatedId"),((fl=(pe=ye==null?void 0:ye[0])==null?void 0:pe.words)!=null&&fl[0]?ka!=null&&ka[(_l=(al=ye==null?void 0:ye[0])==null?void 0:al.words)==null?void 0:_l[0]]:ka!=null&&ka[(Ha=ye==null?void 0:ye[0])==null?void 0:Ha.prop])?(ye==null||ye.forEach(Xa=>{var Ba,Za;oa[Xa.prop]=((Ba=Xa==null?void 0:Xa.words)!=null&&Ba[0]?(ka==null?void 0:ka[(Za=Xa==null?void 0:Xa.words)==null?void 0:Za[0]])??(ka==null?void 0:ka[Xa==null?void 0:Xa.prop]):ka==null?void 0:ka[Xa==null?void 0:Xa.prop])??""}),oa.id="1",oa.relatedId=`[${oa.id}]`,delete oa.sort):oa=void 0,{tableName:"content_"+(q==null?void 0:q.id),tableContents:[oa]}});Ze=Ze==null?void 0:Ze.filter(q=>{var oa;return!((oa=q==null?void 0:q.tableContents)!=null&&oa.every(ka=>ka===void 0))}),xe=[...xe,...Ze],await $.pageBatchAddApi({platId:parseInt((w=bl==null?void 0:bl.value)==null?void 0:w.plat_id),changeContents:xe});let la=[];xe==null||xe.forEach(q=>{var oa;(oa=q==null?void 0:q.tableContents)==null||oa.forEach(ka=>{la.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ka),request_result:"{}",is_delete:!1,request_table:q==null?void 0:q.tableName,request_type:"add"})})}),await $.pageBatchAddApi({platId:parseInt((V=bl==null?void 0:bl.value)==null?void 0:V.plat_id),changeContents:[{tableName:"log",tableContents:la}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const Fe=((l==null?void 0:l.ocrRows)||[]).map(ea=>ea==null?void 0:ea.id).filter(ea=>ea!=null),Pa=((l==null?void 0:l.ocrRows)||[]).map(ea=>{const Ze={...ea};return delete Ze._isOCRRow,delete Ze._ocrTableId,Object.keys(Ze).forEach(la=>{/(^|\.)证书附件$/.test(la)&&Array.isArray(Ze[la])&&(Ze[la]=JSON.stringify(Ze[la].map(q=>({url:(q==null?void 0:q.url)||"",name:(q==null?void 0:q.name)||(q==null?void 0:q.fileName)||"",fileName:(q==null?void 0:q.fileName)||(q==null?void 0:q.name)||""})).filter(q=>q.url||q.name)))}),Ze});let je=[{tableName:(A=l==null?void 0:l.relatedContents)==null?void 0:A.find(ea=>ea==null?void 0:ea.includes("content")),tableContents:Pa}];await $.pageBatchAddApi({platId:parseInt((N=bl==null?void 0:bl.value)==null?void 0:N.plat_id),changeContents:je});let xe=[];je==null||je.forEach(ea=>{var Ze;(Ze=ea==null?void 0:ea.tableContents)==null||Ze.forEach(la=>{xe.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(la),request_result:"{}",is_delete:!1,request_table:ea==null?void 0:ea.tableName,request_type:"ocrBatchAdd"})})}),await $.pageBatchAddApi({platId:parseInt((Y=bl==null?void 0:bl.value)==null?void 0:Y.plat_id),changeContents:[{tableName:"log",tableContents:xe}]}),t0(l==null?void 0:l.parentTableId,l==null?void 0:l.index,Fe)}if((l==null?void 0:l.buttonName)==="编辑"){const Pa=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(ye=>{const Ee={...ye};return delete Ee._isOCRRow,delete Ee._ocrTableId,delete Ee._isTemp,delete Ee.tableEditType,delete Ee.index,Ee});let je=Pa==null?void 0:Pa.map(ye=>{let Ee={};for(let qa in ye)Array.isArray(ye==null?void 0:ye[qa])?Ee[qa]=JSON.stringify(ye==null?void 0:ye[qa]):Ee[qa]=ye==null?void 0:ye[qa];return Ee}),xe=await $.quoteApi({platId:parseInt((b=bl==null?void 0:bl.value)==null?void 0:b.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});xe=(L=xe==null?void 0:xe.data)==null?void 0:L.result,xe=xe==null?void 0:xe.filter(ye=>{var Ee,qa;return!((ye==null?void 0:ye.fatherPath)!==""&&((qa=(Ee=ye==null?void 0:ye.quote)==null?void 0:Ee[0])==null?void 0:qa.menus)===(xl==null?void 0:xl.value))});let ea=(T=je==null?void 0:je[0])==null?void 0:T.id,Ze=[{tableName:(k=l==null?void 0:l.relatedContents)==null?void 0:k.find(ye=>ye==null?void 0:ye.includes("content")),tableContents:je}],la=(_=xe==null?void 0:xe.map(ye=>{var qa,pe,fl,al,_l;let Ee=(qa=ye==null?void 0:ye.contents)==null?void 0:qa.filter(Ha=>{var Xa,Ba;return JSON.stringify(Ha==null?void 0:Ha.relatedId)!=="{}"&&(Ha==null?void 0:Ha.relatedId)!==""&&(Ha!=null&&Ha.relatedId)?(Xa=Ha==null?void 0:Ha.relatedId)==null?void 0:Xa.includes(parseInt(ea)):(Ha==null?void 0:Ha.sort)===((Ba=je==null?void 0:je[0])==null?void 0:Ba.sort)});if((Ee==null?void 0:Ee.length)>0){let Ha=je==null?void 0:je[0];Ha={...Ha,id:(pe=Ee==null?void 0:Ee[0])==null?void 0:pe.id};let Xa={},Ba=Ha,Za;return Array.isArray((fl=ye==null?void 0:ye.struct)==null?void 0:fl[0])?Za=pa.getColumnChild((al=ye==null?void 0:ye.struct)==null?void 0:al[0]):Za=ye==null?void 0:ye.struct,Za=Za==null?void 0:Za.filter(Va=>(Va==null?void 0:Va.prop)!=="relatedId"),Za==null||Za.forEach(Va=>{var Wl,Kl;Xa[Va.prop]=((Wl=Va==null?void 0:Va.words)!=null&&Wl[0]?(Ba==null?void 0:Ba[(Kl=Va==null?void 0:Va.words)==null?void 0:Kl[0]])??(Ba==null?void 0:Ba[Va==null?void 0:Va.prop]):Ba==null?void 0:Ba[Va==null?void 0:Va.prop])??""}),Xa.id=(_l=Ee==null?void 0:Ee[0])==null?void 0:_l.id,delete Xa.sort,delete Xa.relatedId,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[Xa]}}else return}))==null?void 0:_.filter(ye=>ye);Ze=[...Ze,...la];let q=await $.quoteApi({platId:parseInt((U=bl==null?void 0:bl.value)==null?void 0:U.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});q=(se=(W=q==null?void 0:q.data)==null?void 0:W.result)==null?void 0:se.filter(ye=>!(Ze!=null&&Ze.find(Ee=>(Ee==null?void 0:Ee.tableName)==="content_"+(ye==null?void 0:ye.id)))),q=q==null?void 0:q.filter(ye=>{var Ee,qa;return!((ye==null?void 0:ye.fatherPath)!==""&&((qa=(Ee=ye==null?void 0:ye.quote)==null?void 0:Ee[0])==null?void 0:qa.menus)===(xl==null?void 0:xl.value))});let oa=(Ce=q==null?void 0:q.map(ye=>{var qa,pe,fl,al,_l;let Ee=(qa=ye==null?void 0:ye.contents)==null?void 0:qa.filter(Ha=>{var Xa,Ba,Za;return JSON.stringify(Ha==null?void 0:Ha.relatedId)!=="{}"&&(Ha==null?void 0:Ha.relatedId)!==""&&(Ha!=null&&Ha.relatedId)?(Xa=Ha==null?void 0:Ha.relatedId)==null?void 0:Xa.includes(parseInt(ea)):(Ha==null?void 0:Ha.sort)===((Ba=je==null?void 0:je[0])==null?void 0:Ba.sort)||(Ha==null?void 0:Ha.sort)===(parseInt(((Za=je==null?void 0:je[0])==null?void 0:Za.sort)??"0")+1).toString()});if((Ee==null?void 0:Ee.length)>0){let Ha=je==null?void 0:je[0];Ha={...Ha,id:(pe=Ee==null?void 0:Ee[0])==null?void 0:pe.id};let Xa={},Ba=Ha,Za;return Array.isArray((fl=ye==null?void 0:ye.struct)==null?void 0:fl[0])?Za=pa.getColumnChild((al=ye==null?void 0:ye.struct)==null?void 0:al[0]):Za=ye==null?void 0:ye.struct,Za=Za==null?void 0:Za.filter(Va=>(Va==null?void 0:Va.prop)!=="relatedId"),Za==null||Za.forEach(Va=>{var Wl,Kl,$l,Fl;((Wl=Va==null?void 0:Va.words)!=null&&Wl[0]?(Ba==null?void 0:Ba[(Kl=Va==null?void 0:Va.words)==null?void 0:Kl[0]])??(Ba==null?void 0:Ba[Va==null?void 0:Va.prop]):Ba!=null&&Ba[Va==null?void 0:Va.prop])&&(Xa[Va.prop]=(($l=Va==null?void 0:Va.words)!=null&&$l[0]?(Ba==null?void 0:Ba[(Fl=Va==null?void 0:Va.words)==null?void 0:Fl[0]])??(Ba==null?void 0:Ba[Va==null?void 0:Va.prop]):Ba==null?void 0:Ba[Va==null?void 0:Va.prop])??"")}),Xa.id=(_l=Ee==null?void 0:Ee[0])==null?void 0:_l.id,delete Xa.sort,delete Xa.relatedId,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[Xa]}}else return}))==null?void 0:Ce.filter(ye=>ye);Ze=[...Ze,...oa],await $.pageBatchUpdateApi({platId:parseInt((Ie=bl==null?void 0:bl.value)==null?void 0:Ie.plat_id),changeContents:Ze});let ka=[];Ze==null||Ze.forEach(ye=>{var Ee;(Ee=ye==null?void 0:ye.tableContents)==null||Ee.forEach(qa=>{ka.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(qa),request_result:"{}",is_delete:!1,request_table:ye==null?void 0:ye.tableName,request_type:"update"})})}),await $.pageBatchAddApi({platId:parseInt((De=bl==null?void 0:bl.value)==null?void 0:De.plat_id),changeContents:[{tableName:"log",tableContents:ka}]})}if((l==null?void 0:l.buttonName)==="删除"){let Fe=[{tableName:(le=l==null?void 0:l.relatedContents)==null?void 0:le.find(q=>q==null?void 0:q.includes("content")),tableContents:l==null?void 0:l.fixContent}],Pa=await $.quoteApi({platId:parseInt((we=bl==null?void 0:bl.value)==null?void 0:we.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Pa=(X=Pa==null?void 0:Pa.data)==null?void 0:X.result,Pa=Pa==null?void 0:Pa.filter(q=>{var oa,ka;return!((q==null?void 0:q.fatherPath)!==""&&((ka=(oa=q==null?void 0:q.quote)==null?void 0:oa[0])==null?void 0:ka.menus)===(xl==null?void 0:xl.value))});let je=(Ge=(ue=l==null?void 0:l.fixContent)==null?void 0:ue[0])==null?void 0:Ge.id,xe=(za=Pa==null?void 0:Pa.map(q=>{var ka,ye,Ee,qa,pe,fl;let oa=(ka=q==null?void 0:q.contents)==null?void 0:ka.filter(al=>{var _l,Ha,Xa;return JSON.stringify(al==null?void 0:al.relatedId)!=="{}"&&(al==null?void 0:al.relatedId)!==""&&(al!=null&&al.relatedId)?(_l=al==null?void 0:al.relatedId)==null?void 0:_l.includes(parseInt(je)):(al==null?void 0:al.sort)===((Xa=(Ha=l==null?void 0:l.fixContent)==null?void 0:Ha[0])==null?void 0:Xa.sort)});if((oa==null?void 0:oa.length)>0){let al=(ye=l==null?void 0:l.fixContent)==null?void 0:ye[0];al={...al,id:(Ee=oa==null?void 0:oa[0])==null?void 0:Ee.id};let _l={},Ha=al,Xa;return Array.isArray((qa=q==null?void 0:q.struct)==null?void 0:qa[0])?Xa=pa.getColumnChild((pe=q==null?void 0:q.struct)==null?void 0:pe[0]):Xa=q==null?void 0:q.struct,Xa=Xa==null?void 0:Xa.filter(Ba=>(Ba==null?void 0:Ba.prop)!=="relatedId"),Xa==null||Xa.forEach(Ba=>{var Za,Va;_l[Ba.prop]=((Za=Ba==null?void 0:Ba.words)!=null&&Za[0]?(Ha==null?void 0:Ha[(Va=Ba==null?void 0:Ba.words)==null?void 0:Va[0]])??(Ha==null?void 0:Ha[Ba==null?void 0:Ba.prop]):Ha==null?void 0:Ha[Ba==null?void 0:Ba.prop])??""}),_l.id=(fl=oa==null?void 0:oa[0])==null?void 0:fl.id,delete _l.sort,delete _l.relatedId,{tableName:"content_"+(q==null?void 0:q.id),tableContents:[_l]}}else return}))==null?void 0:za.filter(q=>q);Fe=[...Fe,...xe];let ea=await $.quoteApi({platId:parseInt((re=bl==null?void 0:bl.value)==null?void 0:re.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});ea=(ae=(E=ea==null?void 0:ea.data)==null?void 0:E.result)==null?void 0:ae.filter(q=>!(Fe!=null&&Fe.find(oa=>(oa==null?void 0:oa.tableName)==="content_"+(q==null?void 0:q.id)))),ea=ea==null?void 0:ea.filter(q=>{var oa,ka;return!((q==null?void 0:q.fatherPath)!==""&&((ka=(oa=q==null?void 0:q.quote)==null?void 0:oa[0])==null?void 0:ka.menus)===(xl==null?void 0:xl.value))});let Ze=(me=ea==null?void 0:ea.map(q=>{var ka,ye,Ee,qa,pe,fl;let oa=(ka=q==null?void 0:q.contents)==null?void 0:ka.filter(al=>{var _l,Ha,Xa;return JSON.stringify(al==null?void 0:al.relatedId)!=="{}"&&(al==null?void 0:al.relatedId)!==""&&(al!=null&&al.relatedId)?(_l=al==null?void 0:al.relatedId)==null?void 0:_l.includes(parseInt(je)):(al==null?void 0:al.sort)===((Xa=(Ha=l==null?void 0:l.fixContent)==null?void 0:Ha[0])==null?void 0:Xa.sort)});if((oa==null?void 0:oa.length)>0){let al=(ye=l==null?void 0:l.fixContent)==null?void 0:ye[0];al={...al,id:(Ee=oa==null?void 0:oa[0])==null?void 0:Ee.id};let _l={},Ha=al,Xa;return Array.isArray((qa=q==null?void 0:q.struct)==null?void 0:qa[0])?Xa=pa.getColumnChild((pe=q==null?void 0:q.struct)==null?void 0:pe[0]):Xa=q==null?void 0:q.struct,Xa=Xa==null?void 0:Xa.filter(Ba=>(Ba==null?void 0:Ba.prop)!=="relatedId"),Xa==null||Xa.forEach(Ba=>{var Za,Va;_l[Ba.prop]=((Za=Ba==null?void 0:Ba.words)!=null&&Za[0]?(Ha==null?void 0:Ha[(Va=Ba==null?void 0:Ba.words)==null?void 0:Va[0]])??(Ha==null?void 0:Ha[Ba==null?void 0:Ba.prop]):Ha==null?void 0:Ha[Ba==null?void 0:Ba.prop])??""}),_l.id=(fl=oa==null?void 0:oa[0])==null?void 0:fl.id,delete _l.sort,delete _l.relatedId,{tableName:"content_"+(q==null?void 0:q.id),tableContents:[_l]}}else return}))==null?void 0:me.filter(q=>q);Fe=[...Fe,...Ze],await $.pageBatchDeleteApi({platId:parseInt((ce=bl==null?void 0:bl.value)==null?void 0:ce.plat_id),changeContents:Fe});let la=[];Fe==null||Fe.forEach(q=>{var oa;(oa=q==null?void 0:q.tableContents)==null||oa.forEach(ka=>{la.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(ka),request_result:"{}",is_delete:!1,request_table:q==null?void 0:q.tableName,request_type:"delete"})})}),await $.pageBatchAddApi({platId:parseInt((Ne=bl==null?void 0:bl.value)==null?void 0:Ne.plat_id),changeContents:[{tableName:"log",tableContents:la}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let Fe=await $.getPageDataApi({platId:parseInt((va=bl==null?void 0:bl.value)==null?void 0:va.plat_id),pageName:"menu"});if(Fe=(Sa=Fe==null?void 0:Fe.data)==null?void 0:Sa.result,Fe!=null&&Fe.find(Pa=>(Pa==null?void 0:Pa.father_name)===xl.value+"/")){cc.value=l,sc.value=Fe==null?void 0:Fe.filter(xe=>(xe==null?void 0:xe.father_name)===xl.value+"/");let Pa=(Q=(Wa=l==null?void 0:l.columns)==null?void 0:Wa.find(xe=>xe==null?void 0:xe.mainKey))==null?void 0:Q.prop,je=(Ve=(na=l==null?void 0:l.fixContent)==null?void 0:na[0])==null?void 0:Ve[Pa];Et.value=!0,Ho.value=[{prop:Pa,label:Pa,name:Pa,value:je}]}else{let Pa=(xa=l==null?void 0:l.fixContent)==null?void 0:xa.map(ea=>{let Ze={};for(let la in ea)Array.isArray(ea==null?void 0:ea[la])?Ze[la]=JSON.stringify(ea==null?void 0:ea[la]):Ze[la]=ea==null?void 0:ea[la];return Ze.relatedId="",Ze}),je=[{tableName:(He=l==null?void 0:l.relatedContents)==null?void 0:He.find(ea=>ea==null?void 0:ea.includes("content")),tableContents:Pa}];await $.pageBatchAddApi({platId:parseInt((Te=bl==null?void 0:bl.value)==null?void 0:Te.plat_id),changeContents:je});let xe=[];je==null||je.forEach(ea=>{var Ze;(Ze=ea==null?void 0:ea.tableContents)==null||Ze.forEach(la=>{xe.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(la),request_result:"{}",is_delete:!1,request_table:ea==null?void 0:ea.tableName,request_type:"copyAdd"})})}),await $.pageBatchAddApi({platId:parseInt((Re=bl==null?void 0:bl.value)==null?void 0:Re.plat_id),changeContents:[{tableName:"log",tableContents:xe}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let Fe=((Fa=(Ja=(Je=l==null?void 0:l.columns)==null?void 0:Je.map(ye=>ye==null?void 0:ye.filter))==null?void 0:Ja.filter(ye=>ye!==""))==null?void 0:Fa[0])??"";Fe=Ra.analyzeSplitToContent(Fe,","),Fe=(Fe==null?void 0:Fe.find(ye=>ye==null?void 0:ye.includes("@Filter")))??"";let Pa=(P=l==null?void 0:l.fixContent)==null?void 0:P.map(ye=>{let Ee={};for(let qa in ye)Array.isArray(ye==null?void 0:ye[qa])?Ee[qa]=JSON.stringify(ye==null?void 0:ye[qa]):Ee[qa]=ye==null?void 0:ye[qa];return Ee}),je=await $.quoteApi({platId:parseInt((F=bl==null?void 0:bl.value)==null?void 0:F.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});je=(J=je==null?void 0:je.data)==null?void 0:J.result,je=je==null?void 0:je.filter(ye=>{var Ee,qa;return!((ye==null?void 0:ye.fatherPath)!==""&&((qa=(Ee=ye==null?void 0:ye.quote)==null?void 0:Ee[0])==null?void 0:qa.menus)===(xl==null?void 0:xl.value))});let xe=(te=(ne=l==null?void 0:l.columns)==null?void 0:ne[0])==null?void 0:te.prop,ea=(ga=Pa==null?void 0:Pa[0])==null?void 0:ga[xe],Ze=[{tableName:(ta=l==null?void 0:l.relatedContents)==null?void 0:ta.find(ye=>ye==null?void 0:ye.includes("content")),tableContents:Pa}],la=(Oe=je==null?void 0:je.map(ye=>{var qa,pe,fl,al,_l;let Ee=(qa=ye==null?void 0:ye.contents)==null?void 0:qa.filter(Ha=>{var Xa;return(Xa=Object.values(Ha))==null?void 0:Xa.find(Ba=>Ba===ea)});if((Ee==null?void 0:Ee.length)>0){let Ha=Pa==null?void 0:Pa[0];Ha={...Ha,id:(pe=Ee==null?void 0:Ee[0])==null?void 0:pe.id};let Xa={},Ba=Ha,Za;return Array.isArray((fl=ye==null?void 0:ye.struct)==null?void 0:fl[0])?Za=pa.getColumnChild((al=ye==null?void 0:ye.struct)==null?void 0:al[0]):Za=ye==null?void 0:ye.struct,Za=Za==null?void 0:Za.filter(Va=>(Va==null?void 0:Va.prop)!=="relatedId"),Za==null||Za.forEach(Va=>{var Wl,Kl;Xa[Va.prop]=((Wl=Va==null?void 0:Va.words)!=null&&Wl[0]?(Ba==null?void 0:Ba[(Kl=Va==null?void 0:Va.words)==null?void 0:Kl[0]])??(Ba==null?void 0:Ba[Va==null?void 0:Va.prop]):Ba==null?void 0:Ba[Va==null?void 0:Va.prop])??""}),Xa.id=(_l=Ee==null?void 0:Ee[0])==null?void 0:_l.id,delete Xa.sort,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[Xa]}}else return}))==null?void 0:Oe.filter(ye=>ye);Ze=[...Ze,...la];let q=await $.quoteApi({platId:parseInt((_e=bl==null?void 0:bl.value)==null?void 0:_e.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});if(q=(he=(Da=q==null?void 0:q.data)==null?void 0:Da.result)==null?void 0:he.filter(ye=>!(Ze!=null&&Ze.find(Ee=>(Ee==null?void 0:Ee.tableName)==="content_"+(ye==null?void 0:ye.id)))),q=q==null?void 0:q.filter(ye=>{var Ee,qa;return!((ye==null?void 0:ye.fatherPath)!==""&&((qa=(Ee=ye==null?void 0:ye.quote)==null?void 0:Ee[0])==null?void 0:qa.menus)===(xl==null?void 0:xl.value))}),Fe&&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=(ra=(Qe=Fe==null?void 0:Fe.replace("(",hi))==null?void 0:Qe.split(hi))==null?void 0:ra[1],Fe=Fe==null?void 0:Fe.slice(0,(Fe==null?void 0:Fe.length)-1),(Fe==null?void 0:Fe[0])==="*"&&(Fe="{"+((_a=(Pe=Fe==null?void 0:Fe.replace("{",hi))==null?void 0:Pe.split(hi))==null?void 0:_a[1])),Fe=(Le=Fe==null?void 0:Fe.replaceAll("{",""))==null?void 0:Le.replaceAll("}","");let ye=pa.calculatorAndToOr(Fe);ye=ye==null?void 0:ye[0];let Ee;if((ya=Object.values(ye))!=null&&ya.some(qa=>(qa==null?void 0:qa[0])==="*")){let qa=(wa=(Xe=qn.value)==null?void 0:Xe.find(pe=>(pe==null?void 0:pe.condition)==="child"))!=null&&wa.value?(Ur==null?void 0:Ur.value)+"/"+((Ga=(ve=qn.value)==null?void 0:ve.find(pe=>(pe==null?void 0:pe.condition)==="child"))==null?void 0:Ga.value):Ur==null?void 0:Ur.value;Ee=await Vr(qa,!1)}for(let qa in ye)if(((sa=ye==null?void 0:ye[qa])==null?void 0:sa[0])==="*"){let pe=(ba=(Ya=(qe=ye[qa])==null?void 0:qe.slice(1,(Oa=ye[qa])==null?void 0:Oa.length))==null?void 0:Ya.split(":"))==null?void 0:ba[0],fl=(Se=(oe=ye[qa])==null?void 0:oe.split(":"))==null?void 0:Se[1],al=(Ue=Ee==null?void 0:Ee.filter(_l=>(_l==null?void 0:_l.name)===pe))==null?void 0:Ue[0];al=(Ca=(Ke=al==null?void 0:al.compData)==null?void 0:Ke.find(_l=>(_l==null?void 0:_l.key)==="tableContents"))==null?void 0:Ca.contents,al=(Be=al==null?void 0:al[0])==null?void 0:Be[fl],ye[qa]=al}Fe=((sl=Object.values(ye))==null?void 0:sl[0])??""}let oa=(Ea=q==null?void 0:q.map(ye=>{var qa,pe,fl,al,_l;let Ee=(qa=ye==null?void 0:ye.contents)==null?void 0:qa.filter(Ha=>{var Xa;return(Xa=Object.values(Ha))==null?void 0:Xa.find(Ba=>Ba===(Fe===""?ea:Fe))});if((Ee==null?void 0:Ee.length)>0){let Ha=Pa==null?void 0:Pa[0];Ha={...Ha,id:(pe=Ee==null?void 0:Ee[0])==null?void 0:pe.id};let Xa={},Ba=Ha,Za;return Array.isArray((fl=ye==null?void 0:ye.struct)==null?void 0:fl[0])?Za=pa.getColumnChild((al=ye==null?void 0:ye.struct)==null?void 0:al[0]):Za=ye==null?void 0:ye.struct,Za=Za==null?void 0:Za.filter(Va=>(Va==null?void 0:Va.prop)!=="relatedId"),Za==null||Za.forEach(Va=>{var Kl,$l,Fl,gr;let Wl=(Kl=l==null?void 0:l.columns)==null?void 0:Kl.find(rr=>{var kr,wr,Sr;return((wr=(kr=rr==null?void 0:rr.words)==null?void 0:kr[0])==null?void 0:wr.replaceAll("'",""))===(Va==null?void 0:Va.prop)&&((Sr=rr==null?void 0:rr.functionRelatedWords)==null?void 0:Sr.length)>0});Wl=($l=Wl==null?void 0:Wl.prop)==null?void 0:$l.replaceAll("'",""),Xa[Va.prop]=((Fl=Va==null?void 0:Va.words)!=null&&Fl[0]?(Ba==null?void 0:Ba[(gr=Va==null?void 0:Va.words)==null?void 0:gr[0]])??(Ba==null?void 0:Ba[Va==null?void 0:Va.prop])??(Ba==null?void 0:Ba[Wl]):(Ba==null?void 0:Ba[Va==null?void 0:Va.prop])??(Ba==null?void 0:Ba[Wl]))??void 0}),Xa.id=(_l=Ee==null?void 0:Ee[0])==null?void 0:_l.id,delete Xa.sort,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[Xa]}}else return}))==null?void 0:Ea.filter(ye=>ye);Ze=[...Ze,...oa],await $.pageBatchUpdateApi({platId:parseInt((Sl=bl==null?void 0:bl.value)==null?void 0:Sl.plat_id),changeContents:Ze});let ka=[];Ze==null||Ze.forEach(ye=>{var Ee;(Ee=ye==null?void 0:ye.tableContents)==null||Ee.forEach(qa=>{ka.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(qa),request_result:"{}",is_delete:!1,request_table:ye==null?void 0:ye.tableName,request_type:"method"})})}),await $.pageBatchAddApi({platId:parseInt((ml=bl==null?void 0:bl.value)==null?void 0:ml.plat_id),changeContents:[{tableName:"log",tableContents:ka}]})}_r.setRefreshCurStructure(!0),await bt(l)},gt=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 p;if((m==null?void 0:m.key)==="tableContents"){let v={...m,contents:n};return v.contents=(p=(v==null?void 0:v.contents)??[])==null?void 0:p.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}),v}return m});return o.compData=await wt(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(p=>{var v;return(p==null?void 0:p.children)&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0||(p==null?void 0:p.comp)==="Tabs"}),m=c==null?void 0:c.map(async p=>{var v;return p!=null&&p.children&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0?p.children=await gt(p==null?void 0:p.children,r,n):p.compData=await gt(p==null?void 0:p.compData,r,n),p});return c=await Promise.all(m),c}},bt=async l=>{var c,m,p,v,y,u,x;let r=(c=l==null?void 0:l.relatedContents)==null?void 0:c.filter(C=>C==null?void 0:C.includes("content_")),n=await $.getAllTables({platId:parseInt((m=bl==null?void 0:bl.value)==null?void 0:m.plat_id),tableNames:r});if(n=(v=(p=n==null?void 0:n.data)==null?void 0:p.result)==null?void 0:v[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(C=>{C==null||delete C.source_table;const B={};for(let w in C){const V=C==null?void 0:C[w],A=V&&Object.prototype.toString.call(V)==="[object Object]"&&Object.keys(V).length===0,N=Array.isArray(V)&&V.length===0;V==null||V==="{}"||A||N?B[w]="":B[w]=V}return B});let o=(u=(y=r==null?void 0:r[0])==null?void 0:y.split("_"))==null?void 0:u[1],s=await gt(er.value,o,n);er.value=(x=er.value)==null?void 0:x.map(C=>{var B,w;return(B=s==null?void 0:s[0])!=null&&B.tabInform&&((w=s==null?void 0:s[0])==null?void 0:w.tabInform)===(C==null?void 0:C.tabInform)?C=s==null?void 0:s[0]:(C!=null&&C.name?(C==null?void 0:C.name)===(s==null?void 0:s.name):(C==null?void 0:C.id)===(s==null?void 0:s.id))&&(C=s),C})},s0=l=>{let r=Ho.value;Ho.value=r==null?void 0:r.map(n=>(n.value=l==null?void 0:l[n==null?void 0:n.prop],n))},c0=async()=>{var C,B,w,V,A,N,Y,b,L,T;let l=cc.value,r=sc.value,n=(B=(C=l==null?void 0:l.columns)==null?void 0:C.find(k=>k==null?void 0:k.mainKey))==null?void 0:B.prop,o=(V=(w=Ho.value)==null?void 0:w[0])==null?void 0:V.value,s=(A=l==null?void 0:l.fixContent)==null?void 0:A.map(k=>{var U;let _={};for(let W in k)Array.isArray(k==null?void 0:k[W])?_[W]=JSON.stringify(k==null?void 0:k[W]):_[W]=k==null?void 0:k[W];return(U=l==null?void 0:l.columns)==null||U.forEach(W=>{(W==null?void 0:W.formType)==="Upload"&&(_==null?void 0:_[W==null?void 0:W.prop])===""&&(_[W==null?void 0:W.prop]="{}")}),_[n]=o,_}),c=[{tableName:(N=l==null?void 0:l.relatedContents)==null?void 0:N.find(k=>k==null?void 0:k.includes("content")),tableContents:s}];await $.pageBatchAddApi({platId:parseInt((Y=bl==null?void 0:bl.value)==null?void 0:Y.plat_id),changeContents:c}),r=r==null?void 0:r.filter(k=>{var _,U,W;return(W=k==null?void 0:k.object_name)==null?void 0:W.includes((U=(_=l==null?void 0:l.fixContent)==null?void 0:_[0])==null?void 0:U[n])});let m=[],p=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}`),p.set(k==null?void 0:k.object_id,k)});let v=await $.getAllTables({platId:parseInt((b=bl==null?void 0:bl.value)==null?void 0:b.plat_id),tableNames:m});v=(L=v==null?void 0:v.data)==null?void 0:L.result;let y=[],u=[];v=Ra.chunk(v,2),v==null||v.forEach(k=>{var W,se,Ce,Ie,De,le,we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa,Q;let _=p.get((Ie=(Ce=(se=(W=k==null?void 0:k[1])==null?void 0:W[0])==null?void 0:se.source_table)==null?void 0:Ce.split("_"))==null?void 0:Ie[1]),U=(we=(le=(De=_==null?void 0:_.object_name)==null?void 0:De.split("/"))==null?void 0:le.filter((na,Ve)=>{var xa,He;return((He=(xa=_==null?void 0:_.object_name)==null?void 0:xa.split("/"))==null?void 0:He.length)-1!==Ve}))==null?void 0:we.join("/");if(U=U+"/"+o,u!=null&&u.find(na=>(na==null?void 0:na.path)===U)||u.push({fatherPath:_==null?void 0:_.father_name,isShow:_==null?void 0:_.is_show,path:U}),((ue=(X=k==null?void 0:k[1])==null?void 0:X[0])==null?void 0:ue.类型)==="Table"){let na=((re=(za=(Ge=k==null?void 0:k[1])==null?void 0:Ge[0])==null?void 0:za.结构)==null?void 0:re.contents)??[],Ve=pl.safeClone(na);Array.isArray(Ve==null?void 0:Ve[0])&&(Ve=pa.getColumnChild(Ve==null?void 0:Ve[0]));let xa=[];if(((E=k==null?void 0:k[0])==null?void 0:E.length)>0&&(xa=(ae=k==null?void 0:k[0])==null?void 0:ae.map(He=>Ve==null?void 0:Ve.map(Re=>(Re=(He==null?void 0:He[Re==null?void 0:Re.prop])??"",Re)))),y!=null&&y.find(He=>(He==null?void 0:He.key)===U)){let He=(me=y==null?void 0:y.find(Re=>(Re==null?void 0:Re.key)===U))==null?void 0:me.contents;He.push({isShow:_==null?void 0:_.is_show,filter:((va=(Ne=(ce=k==null?void 0:k[1])==null?void 0:ce[0])==null?void 0:Ne.引用)==null?void 0:va.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:na,tableContents:xa});let Te=y==null?void 0:y.findIndex(Re=>(Re==null?void 0:Re.key)===U);y[Te].contents=He}else y.push({key:U,contents:[{isShow:_==null?void 0:_.is_show,filter:((Q=(Wa=(Sa=k==null?void 0:k[1])==null?void 0:Sa[0])==null?void 0:Wa.引用)==null?void 0:Q.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:na,tableContents:xa}]})}});let x=[];x.push({key:"menuPath",contents:u}),x=[...x,...y],await $.createPlatFormDataApi({platId:parseInt((T=bl==null?void 0:bl.value)==null?void 0:T.plat_id),changeData:x}),Et.value=!1,_r.setRefreshTable(!0)},Ni=async(l,r)=>{},Bi=async l=>{er.value=await pa.getDeepDiffItems(l),_r.setItemData(er.value),_r.setOriginalData(er.value)};a.ref();const u0=a.ref(null),d0=()=>{var l,r;console.log("倒计时结束时"),nn.ElMessageBox.alert(`超时未提交,【${(r=(l=xl.value)==null?void 0:l.split("/"))==null?void 0:r[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},fc=a.ref([]),p0=a.computed(()=>{var l,r;return(r=(l=mt.value)==null?void 0:l[xl.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(()=>[Zf.value],()=>{on.setSelectTitle([]),on.setChooseTitle([])},{deep:!0});a.watch(()=>Ei.value,async(l,r)=>{var o,s,c,m,p,v;if(JSON.stringify(l)===JSON.stringify(r))return;let n=(o=Ei.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)!==Ur.value);if((n==null?void 0:n.length)>0){Er.setContentLoading(!0);let y=((s=n==null?void 0:n[0])==null?void 0:s.relatedContent)??(xl==null?void 0:xl.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),C=await Vr(u,x,{originPath:y});C=(p=C==null?void 0:C.filter(V=>V))==null?void 0:p.map(V=>(V.isShow=!0,V)),console.log(C,"loadingContents");let B=await pa.getDeepDiffItems(C),w=B==null?void 0:B.filter(V=>V==null?void 0:V.choice);Mi.setSelectTab((v=w==null?void 0:w[0])==null?void 0:v.choiceName),B=B==null?void 0:B.filter(V=>{var A;return!(V!=null&&V.choiceName)||(V==null?void 0:V.choiceName)===((A=w==null?void 0:w[0])==null?void 0:A.choiceName)}),er.value=B,Er.setContentLoading(!1)}});const f0=(l,r)=>{setTimeout(async()=>{var p,v,y;let n=(p=Ei.value)==null?void 0:p.filter(u=>(u==null?void 0:u.condition)==="child"&&(u==null?void 0:u.value)!==""&&(u==null?void 0:u.parentContent)!==Ur.value),o=xl==null?void 0:xl.value,s=xl==null?void 0:xl.value;(n==null?void 0:n.length)>0&&(s=((v=n==null?void 0:n[0])==null?void 0:v.relatedContent)??(xl==null?void 0:xl.value),o=s+"/"+((y=n==null?void 0:n[0])==null?void 0:y.value));let c=await Vr(o,!1,{originPath:s});c=c==null?void 0:c.map(u=>(u.isShow=!0,u));let m=await pa.getDeepDiffItems(c);er.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)},h0=l=>{setTimeout(async()=>{var m,p,v;let r=(m=Ei.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)!==Ur.value),n=xl==null?void 0:xl.value,o=xl==null?void 0:xl.value;(r==null?void 0:r.length)>0&&(o=((p=r==null?void 0:r[0])==null?void 0:p.relatedContent)??(xl==null?void 0:xl.value),n=o+"/"+((v=r==null?void 0:r[0])==null?void 0:v.value));let s=await Vr(n,!1,{originPath:o});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),Mi.setSelectTab(l);let c=await pa.getDeepDiffItems(s);er.value=c==null?void 0:c.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>Xf.value,l=>{l!=null&&l.length||(er.value=[])},{immediate:!0});a.watch(()=>[xl.value],async l=>{var c,m,p,v;if(!xl.value)return;if(xl.value==="/"){er.value=[];return}Er.setCurrentMenuPath(xl.value),_r.setLockingPage(""),er.value=[];let r=a.getCurrentInstance();(c=r==null?void 0:r.scope)==null||c.stop(),r=null,No.value=!1,Er.setContentLoading(!0),tc.value=!0;let n=l==null?void 0:l[0],o=n,s=(m=qn.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)!==xl.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(n=n+"/"+((p=s==null?void 0:s[0])==null?void 0:p.value)),n==="系统管理/日志管理")er.value=await Wf("log");else{let y=await Vr(n,!0,{originPath:o});y=y==null?void 0:y.map(C=>(C.isShow=!0,C));let u=await pa.getDeepDiffItems(y),x=u==null?void 0:u.filter(C=>C==null?void 0:C.choice);Mi.setSelectTab((v=x==null?void 0:x[0])==null?void 0:v.choiceName),er.value=u==null?void 0:u.filter(C=>{var B;return!(C!=null&&C.choiceName)||(C==null?void 0:C.choiceName)===((B=x==null?void 0:x[0])==null?void 0:B.choiceName)})}Er.setContentLoading(!1),_r.setExtraContents([]),on.setSelectIndex(""),on.setSelectMenu(""),_r.setItemData(er.value),_r.setOriginalData(er.value),_r.setRefreshTable(!1),a.nextTick(()=>{Kn.value=Kn.value++,No.value=!0})},{immediate:!0});a.watch(()=>[hs.value],async()=>{var l,r,n,o;if(hs.value){er.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,No.value=!1,Er.setContentLoading(!0),tc.value=!0;let c=Ur==null?void 0:Ur.value,m=c,p=(r=qn.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)!==(Ur==null?void 0:Ur.value));(p==null?void 0:p.length)>0&&(c=c+"/"+((n=p==null?void 0:p[0])==null?void 0:n.value));let v=await Vr(c,!0,{originPath:m});v=v==null?void 0:v.map(x=>(x.isShow=!0,x));let y=await pa.getDeepDiffItems(v),u=y==null?void 0:y.filter(x=>x==null?void 0:x.choice);if(Mi.setSelectTab((o=u==null?void 0:u[0])==null?void 0:o.choiceName),er.value=y==null?void 0:y.filter(x=>{var C;return!(x!=null&&x.choiceName)||(x==null?void 0:x.choiceName)===((C=u==null?void 0:u[0])==null?void 0:C.choiceName)}),Er.setContentLoading(!1),_r.setExtraContents([]),on.setSelectIndex(""),on.setSelectMenu(""),_r.setItemData(er.value),_r.setOriginalData(er.value),_r.setRefreshTable(!1),(p==null?void 0:p.length)>0){let x=[...qn.value,...p];on.setSelectTitle(x)}a.nextTick(()=>{Kn.value=Kn.value++,No.value=!0})}},{immediate:!0,deep:!0});const v0=async()=>{Er.setLinkMenuInfo(null),Er.setActiveMenuPath(Jf.value),er.value=null,_r.setRouteToChildPath(""),Er.setChildMenu("")},m0=l=>new RegExp("button","i").test(l),y0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),hc=l=>{if(y0(l)){const r=l==null?void 0:l.split("^");(r==null?void 0:r.length)>0&&(r!=null&&r[0])&&Er.setLinkMenuInfo({path:r==null?void 0:r[0],data:r==null?void 0:r[1]})}},vc=async(l,r,n)=>{var C,B,w,V,A,N,Y,b,L,T,k,_;let o="",s="";for(let U in r)(r==null?void 0:r[U])===l&&(s=U);n==null||n.forEach(U=>{(U==null?void 0:U.prop)===s&&(o=U==null?void 0:U.fatherPath)});let c=o===""?xl.value:o;o!==""&&Er.setCurrentMenuPath(c),Er.setCurrentMenuPath(c+"/"+l),Er.setContentLoading(!0),await Vr(c+"/"+l,!0,{originPath:c+"/",row:r});let m=await Vr(c,!1),p=(C=m==null?void 0:m.filter(U=>(U==null?void 0:U.comp)==="Table"))==null?void 0:C[0],v=((A=(V=(w=(B=p==null?void 0:p.compData)==null?void 0:B.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:w.contents)==null?void 0:V[0])==null?void 0:A.prop)??((T=(L=(b=(Y=(N=p==null?void 0:p.compData)==null?void 0:N.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:Y.contents)==null?void 0:b[0])==null?void 0:L[0])==null?void 0:T.prop),y=(_=(k=p==null?void 0:p.compData)==null?void 0:k.find(U=>(U==null?void 0:U.key)==="tableContents"))==null?void 0:_.contents;y=y==null?void 0:y.map(U=>({label:U==null?void 0:U[v],value:U==null?void 0:U[v]}));let u=qn.value,x={value:l,condition:"child",options:y,relatedContent:c,isShow:!0};u.push(x),on.setSelectTitle(u),on.setChooseTitle([x]),Er.setContentLoading(!1),_r.setExtraContents([]),on.setSelectIndex(""),on.setSelectMenu(""),_r.setItemData(er.value),_r.setOriginalData(er.value)},g0=l=>{dc.value=l},wo=a.reactive({index:0,comp:null}),b0=a.computed(()=>{var l;return(l=er.value)==null?void 0:l.map((r,n)=>({id:r.id,name:r.name,status:k0(r,n)}))}),mc=(l,r)=>{var v,y,u,x,C;const n=r?l:l-2,o=(v=er.value)==null?void 0:v[n],s=(u=(y=o==null?void 0:o.compData)==null?void 0:y.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:u.contents,c=s==null?void 0:s.findIndex(B=>(B==null?void 0:B.isMainKey)&&(B==null?void 0:B.label)!=="操作"),m=c===-1?0:c,p=(C=(x=o==null?void 0:o.compData)==null?void 0:x.find(B=>(B==null?void 0:B.key)==="tableContents"))==null?void 0:C.contents;return{valid:p==null?void 0:p.every(B=>B==null?void 0:B[m+1]),length:(p==null?void 0:p.length)||0}},k0=(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}=mc(r,!0);wo.index===r?n="process":c===0?n="wait":n=s?"success":"error"}return n},yc=l=>{var n,o,s,c,m;const r=l+1;if(r>1&&((s=(o=(n=er.value)==null?void 0:n[l])==null?void 0:o.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:p}=mc(r);p?(wo.index=r,wo.comp=(c=er.value)==null?void 0:c[l]):ol.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else wo.index=r,wo.comp=(m=er.value)==null?void 0:m[l]},gc=a.computed(()=>{var l,r;return(r=(l=uc.value)==null?void 0:l[0])==null?void 0:r.isStepLayout});a.watch(()=>gc.value,l=>{l&&yc(0)},{immediate:!0});const x0={class:"table-content"},_0={class:"menu-config-wrap"},w0=["onClick"],C0={key:0,class:"viewport-wrap"},S0=["onClick"],E0={title:"选择显示列信息"},D0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},N0=["title"],B0={class:"col-operate-wrap"},T0={key:0,class:"col-operate-radio-wrapper"},A0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},z0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},M0={class:"pop-view"},O0={class:"pop-wrapper"},I0={class:"file-list-pop"},L0=["title","onClick"],$0=["onClick"],R0=["onClick"],V0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},P0={class:"form-content"},F0={key:0,class:"dialog-footer"},j0={class:"dialog-footer"},H0={class:"ocr-dialog-content"},U0={class:"ocr-steps"},q0={key:0,class:"ocr-action-buttons"},W0={key:1,class:"ocr-preview-area"},K0={class:"ocr-file-grid"},Y0={class:"file-thumbnail"},G0=["src"],J0={key:1,class:"thumbnail-placeholder"},X0={class:"progress-svg",viewBox:"0 0 36 36"},Z0=["stroke","stroke-width","stroke-dasharray"],Q0={key:0,class:"progress-icon"},e3={key:1,class:"progress-icon"},a3=["onClick"],l3={class:"file-name"},r3={key:0,class:"ocr-recognize-button"},n3={key:2,class:"ocr-progress-section"},o3={key:3,class:"ocr-confirm-area"},i3={class:"ocr-preview-tip"},t3={class:"ocr-preview-table"},s3={style:{display:"flex","align-items":"center",gap:"8px"}},c3={key:0},u3={key:4,class:"ocr-success-area"},d3={key:0,class:"ocr-dialog-footer"},p3={class:"form-content"},f3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},h3={style:{display:"flex"}},ms="ss-ocr-upload-history",v3="ss-ocr-cert-history-v1",m3={__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},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 Rt;const n=a.ref([]),o=Ct($.pinia),s=a.ref(null),c=a.ref(new Set),m=a.ref(new Map),p=a.ref(new Map),v=new Map,y=a.ref(new Map),u=l,x=a.ref((u==null?void 0:u.allowSelect)??!0),C=a.ref(((Rt=u==null?void 0:u.config)==null?void 0:Rt.showIndex)??!0),B=a.ref(),w=a.ref(!0),V=a.ref(!1),A=a.ref([]),N={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},Y=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"}]}]),b=pa.useOriginalState($.pinia);let L="$R";const{originalPath:T}=$.storeToRefs(b),k=T.value,_=a.computed(()=>{var h;const d=(h=pa.getAllLeafNodes(De.value)||[])==null?void 0:h.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return d.length>0?d.every(z=>!!(z!=null&&z.sortable)):!1});a.computed(()=>{var h;return(h=De.value)==null?void 0:h.every(z=>z==null?void 0:z.filterable)}),a.computed(()=>{var h;return(h=De.value)==null?void 0:h.every(z=>z==null?void 0:z.operable)});const U=a.ref(!0),W=a.ref([]),se=a.reactive({column:{},status:!1,text:"合计"}),Ce=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Ie=r,De=a.ref([]),le=a.ref([]),we=a.ref([]),X=a.reactive({prop:"",order:null}),ue=a.ref([]),Ge=a.ref(!1),za=a.ref(!1),re=a.ref(null),{isUseBackdrop:E,initTrackFileType:ae,getFileExtension:me,setData:ce,getFileInfo:Ne,getFilesInfo:va}=_i.useThreeSystem(),Sa=a.ref([]),Wa=a.ref(!1),Q=a.ref(),na=$.useMenuState(),{importLoading:Ve,activeMenuPath:xa,contentLoading:He,linkMenuInfo:Te}=$.storeToRefs(na),Re=pa.useTableComp($.pinia),Je=$.useModelComp($.pinia),Ja=Yn($.pinia),{extraContents:Fa,cacheUpdatingData:P,tableViewContents:F,tableLoading:J,pageMapState:ne,lockingPage:te}=$.storeToRefs(Je),{selectTab:ga}=$.storeToRefs(Ja),{compType:ta,hasEditable:Oe}=Ws.useRole(),_e=a.ref([]),Da=a.ref([]),he=a.ref(new Map);a.ref(!1);const Qe=a.ref("");a.ref();const ra=a.ref(!0),Pe=a.ref(0),_a=a.ref(!0),Le=a.ref(""),ya=a.ref(!1),Xe=a.ref(null);a.ref([]);const wa=a.ref({label:"查看三维模型"}),ve=a.ref(!1),Ga=a.ref(),sa=a.ref([]),Oa=a.ref([]),qe=a.ref(!1),Ya=a.ref([]),ba=a.ref([]),oe=a.ref([]),Se=a.ref([]),Ue=a.ref([]),Ke=()=>{try{const d=localStorage.getItem(ms),h=d?JSON.parse(d):[];Ue.value=Array.isArray(h)?h:[]}catch{Ue.value=[]}},Ca=()=>{try{localStorage.setItem(ms,JSON.stringify(Ue.value||[]))}catch{}},Be=d=>{var Z,ee,j;if(!d)return;const h=d.url||((Z=d==null?void 0:d.uploadResult)==null?void 0:Z.url)||"",z=d.name||((ee=d==null?void 0:d.uploadResult)==null?void 0:ee.name)||((j=d==null?void 0:d.uploadResult)==null?void 0:j.fileName)||"";if(!h&&!z)return;const O={name:z,url:h,ts:Date.now()},R=String(O.name||"").trim().toLowerCase(),D=(Ue.value||[]).findIndex(fe=>String((fe==null?void 0:fe.name)||"").trim().toLowerCase()===R);D>-1&&Ue.value.splice(D,1),Ue.value.unshift(O),Ue.value.length>20&&(Ue.value=Ue.value.slice(0,20)),Ca()};Ke();const sl=(d,h)=>`${v3}:${String(d??"")}:${String(h??"")}`,Ea=(d,h)=>{try{const z=sessionStorage.getItem(sl(d,h)),O=z?JSON.parse(z):[];return Array.isArray(O)?O:[]}catch{return[]}},Sl=(d,h,z)=>{try{sessionStorage.setItem(sl(d,h),JSON.stringify(Array.isArray(z)?z:[]))}catch{}},ml=(d,h,z)=>{if(!h)return;const O=Ea(d,h),R=[z,...O||[]].filter(Boolean).slice(0,1);return Sl(d,h,R),R},Fe=(d,h,z)=>{if(!h||!z)return;const O=sl(d,h),R=sl(d,z);try{const D=sessionStorage.getItem(O);if(!D)return;const Z=(()=>{try{const fe=JSON.parse(D);return Array.isArray(fe)?fe:[]}catch{return[]}})(),ee=Ea(d,z),j=[...Z,...ee||[]].filter(Boolean).sort((fe,be)=>Number((be==null?void 0:be.ts)||0)-Number((fe==null?void 0:fe.ts)||0)).slice(0,1);sessionStorage.setItem(R,JSON.stringify(j)),sessionStorage.removeItem(O)}catch{}},Pa=a.ref(!1),je=a.ref(!1),xe=a.ref([]),ea=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const Ze=a.ref(!1),la=a.ref([]),q=a.ref(1),oa=a.ref(new Map),ka=a.ref(new Map),ye=a.ref(0),Ee=a.ref(!1),qa=a.ref([]),pe=a.ref([]),fl=d=>{var h;try{const z=(h=pa.getAllLeafNodes(De.value)||[])==null?void 0:h.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate");return(z==null?void 0:z.find(O=>(O==null?void 0:O.prop)===d||(O==null?void 0:O.label)===d))||null}catch{return null}},al=d=>{const h=fl(d),z=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return pl.getComponent(z)||pl.getComponent("Input")},_l=a.ref([]),Ha=a.ref(null),Xa=a.ref([]),Ba=a.ref(null),Za=a.ref(""),Va=a.ref(!1),Wl=a.ref([]),Kl=a.ref(""),$l=a.ref(!1),Fl=a.ref([]),gr=a.ref([]),rr=a.ref([]),kr=a.ref(null),wr=a.ref([]),Sr=a.ref("");a.computed(()=>{var d;try{const h=(d=pa.getAllLeafNodes(De.value)||[])==null?void 0:d.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),z=new Map;return h==null||h.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&z.set(O.label,O.prop)}),z.get("编号")||""}catch{return""}});const dn=a.computed(()=>{var d;try{const h=(d=pa.getAllLeafNodes(De.value)||[])==null?void 0:d.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),z=new Map;return h==null||h.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&z.set(O.label,O.prop)}),z.get("名称")||""}catch{return""}}),Jr=a.computed(()=>{var d;try{const h=(d=pa.getAllLeafNodes(De.value)||[])==null?void 0:d.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),z=new Map;return h==null||h.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&z.set(O.label,O.prop)}),z.get("制造厂")||""}catch{return""}}),pn=()=>{$l.value=!1,Fl.value=[],gr.value=[],rr.value=[],kr.value=null,wr.value=[],Sr.value=""},Xr=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,qr=(d,h)=>{const z=(d==null?void 0:d.ocrRow)||{};for(const R of Object.keys(z))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||Xr(z[R])&&(h[R]=z[R]);const O=Da.value.find(R=>R.id===h.id);if(O)for(const R of Object.keys(z))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||Xr(z[R])&&(O[R]=z[R]);he.value&&he.value.set(h.id,h),ml(u==null?void 0:u.index,h.id,d==null?void 0:d.versionItem),gr.value=[...gr.value||[],JSON.parse(JSON.stringify(h))]},fn=async(d,h=null)=>{var z,O,R,D,Z,ee,j;try{const fe=(z=pa.getAllLeafNodes(De.value)||[])==null?void 0:z.filter(ca=>(ca==null?void 0:ca.type)!=="operate"&&(ca==null?void 0:ca.label)!=="操作"&&(ca==null?void 0:ca.prop)!=="operate"),be=new Map;fe==null||fe.forEach(ca=>{ca!=null&&ca.label&&(ca!=null&&ca.prop)&&be.set(ca.label,ca.prop)});const $e=be.get("系统编号")||be.get("编号");if(!$e){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const ze=h||kr.value;if((Array.isArray(ze==null?void 0:ze.result)?ze.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let ca=0;ca<d.length;ca++){const ja=d[ca],Ma=ja[$e];if(!Ma){console.warn(`第 ${ca+1} 条匹配行缺少系统编号,跳过`);continue}const ia=`设备管理/试验设备/${Ma}`,Qa=await $.getPageDataApi({platId:parseInt((O=Rl.value)==null?void 0:O.plat_id),pageName:ia});if(!((R=Qa==null?void 0:Qa.data)!=null&&R.result)||!Array.isArray(Qa.data.result)){console.warn(`未找到详情页数据: ${ia}`);continue}const da=Qa.data.result.find(ua=>(ua==null?void 0:ua.property_name)==="校检记录");if(!da){console.warn(`详情页 ${ia} 中未找到校检记录表`);continue}const Ua=(D=da.contents)==null?void 0:D.find(ua=>(ua==null?void 0:ua.key)&&ua.key.startsWith("content_"));if(!Ua||!Ua.key){console.warn("校检记录表中未找到 content item");continue}const ie=Ua.key,Ta=Array.isArray(Ua.value)?Ua.value:[];if(Ta.length>=5){const ke=[...Ta].sort((fa,Ia)=>{const dl=Number((fa==null?void 0:fa.create_time)||0),ll=Number((Ia==null?void 0:Ia.create_time)||0);return dl-ll})[0];ke!=null&&ke.id&&await $.pageBatchDeleteApi({platId:parseInt((Z=Rl.value)==null?void 0:Z.plat_id),changeContents:[{tableName:ie,tableContents:[{id:ke.id}]}]})}const ha=(ee=fe==null?void 0:fe.find(ua=>(ua==null?void 0:ua.label)==="证书附件"))==null?void 0:ee.prop,Na=String(Date.now()),Aa={id:Na},M=Ta[0]||{},K=new Date().toISOString().split("T")[0];if(Object.keys(M||{}).forEach(ua=>{if(ua!=="id"){if(ua==="证书附件"){Aa[ua]="";return}if(ua==="校检日期"||ua==="检校日期"){Aa[ua]=ja[ua]||ja.校检日期||ja.检校日期||K;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(ua)){Aa[ua]=ja[ua]??"";return}Aa[ua]=ja[ua]??""}}),ha&&ja[ha]){const ua=ja[ha];if(Array.isArray(ua)&&ua.length>0)Aa.证书附件=JSON.stringify(ua.map(ke=>({url:(ke==null?void 0:ke.url)||"",name:(ke==null?void 0:ke.name)||(ke==null?void 0:ke.fileName)||"",fileName:(ke==null?void 0:ke.fileName)||(ke==null?void 0:ke.name)||""})).filter(ke=>ke.url||ke.name));else if(typeof ua=="string")try{const ke=JSON.parse(ua);Aa.证书附件=ua}catch{Aa.证书附件=JSON.stringify([{url:ua,name:ua,fileName:ua}])}}console.log(ie,"tableName","inspectionRecordRow",Aa),await $.pageBatchAddApi({platId:parseInt((j=Rl.value)==null?void 0:j.plat_id),changeContents:[{tableName:ie,tableContents:[Aa]}]});const Ae=da==null?void 0:da.object_id;if(Ae&&Na){const ua=ha&&ja[ha]?ja[ha]:null;let ke=[],fa="",Ia=!1;if(Array.isArray(ua)&&ua.length>0){ke=ua.map(gl=>({name:(gl==null?void 0:gl.name)||(gl==null?void 0:gl.fileName)||"",url:(gl==null?void 0:gl.url)||""})).filter(gl=>gl.url||gl.name);const ll=ua[0];fa=(ll==null?void 0:ll.url)||"";const yl=(ll==null?void 0:ll.name)||(ll==null?void 0:ll.fileName)||"";Ia=String(yl).toLowerCase().endsWith(".pdf")||String(fa).toLowerCase().endsWith(".pdf")}else if(typeof ua=="string")try{const ll=JSON.parse(ua);Array.isArray(ll)?(ke=ll.map(yl=>({name:(yl==null?void 0:yl.name)||(yl==null?void 0:yl.fileName)||"",url:(yl==null?void 0:yl.url)||""})).filter(yl=>yl.url||yl.name),ke.length>0&&(fa=ke[0].url||"",Ia=String(ke[0].name).toLowerCase().endsWith(".pdf")||String(fa).toLowerCase().endsWith(".pdf"))):(fa=ua,Ia=String(ua).toLowerCase().endsWith(".pdf"))}catch{fa=ua,Ia=String(ua).toLowerCase().endsWith(".pdf")}const dl={ts:Date.now(),versionId:String(Date.now())+"_"+String(ca),label:new Date().toLocaleString(),certType:ja.证书类型||"",certNo:ja.证书编号||"",fileType:Ia?"pdf":"image",sourceUrl:Ia?fa:"",images:ke};ml(Ae,Na,dl)}}}catch(fe){console.error("向校检记录表插入OCR识别结果失败:",fe),ol.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},tn=d=>{const h=Array.isArray(d)?d:Fl.value||[];if(h.length===0){pn();return}if(h.find(D=>(D==null?void 0:D.__decision)==="replace"&&!(D!=null&&D.selectedTargetId))){ol.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(D=>{var ee;const Z=D==null?void 0:D.__decision;if(!(!Z||Z==="skip")){if(Z==="add"){ml(u==null?void 0:u.index,(ee=D==null?void 0:D.ocrRow)==null?void 0:ee.id,D==null?void 0:D.versionItem),rr.value=[...rr.value||[],D.ocrRow];return}if(Z==="replace"){const j=D==null?void 0:D.selectedTargetId,fe=(_e.value||[]).find(be=>String(be==null?void 0:be.id)===String(j));if(!fe)return;qr(D,fe)}}}),(gr.value||[]).length>0&&(_e.value=[..._e.value||[]]),(rr.value||[]).length>0&&(_e.value=[..._e.value||[],...rr.value||[]],Da.value=[...Da.value||[],...rr.value||[]],(rr.value||[]).forEach(D=>{var Z,ee;return(ee=(Z=he.value)==null?void 0:Z.set)==null?void 0:ee.call(Z,D.id,D)})),Br.value=_e.value;const O=gr.value||[],R=rr.value||[];if(O.length>0&&(Ie("change",{buttonName:"编辑",singleContent:O,content:_e.value,relatedContents:u==null?void 0:u.related,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,columns:De.value,name:u==null?void 0:u.compName}),fn(O)),R.length>0){const D=kr.value;Ie("change",{buttonName:"OCR批量新增",content:_e.value,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,column:De.value,ocrRows:R,relatedContents:u==null?void 0:u.related,uploadedFiles:(Array.isArray(D==null?void 0:D.result)?D.result:[]).map(Z=>(Array.isArray(Z==null?void 0:Z.图片信息)?Z.图片信息:[]).map(ee=>({url:(ee==null?void 0:ee.url)||"",name:(ee==null?void 0:ee.name)||"",fileName:(ee==null?void 0:ee.name)||""})).filter(ee=>ee.url)),ocrResult:D,matchedCount:(O||[]).length,newCount:(R||[]).length})}ol.ElMessage.success("已提交候选处理结果"),pn()},Dr=ic(),Zr=a.computed(()=>Dr.getConfig()),Nr=a.ref(),Il=a.ref(),Wr=ac($.pinia),Br=a.ref(),mn=a.ref(0),so=$.useUnit($.pinia),{selectIndex:Gn,selectMenu:$n,selectTitle:yn}=$.storeToRefs(so),{selectString:Xl}=$.storeToRefs(Wr),xr=$.useLoginState($.pinia),{loginUserInfo:Rl}=$.storeToRefs(xr),Hl=a.ref(720),Ml=a.ref(!1),cr=a.ref(!1),ar=a.ref([]),Pl=a.ref(),zr=a.ref(!0),Mr=a.ref(!0);a.ref([]);const gn=a.inject("contentRef");a.provide("contentRef",gn),a.provide("getSuggestListForCell",fu),a.provide("getSuggestLoadingForCell",(d,h)=>{const z=`${d==null?void 0:d.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return y.value.get(z)||!1}),a.watch(()=>{var d;return(d=_e.value)==null?void 0:d.length},d=>{Ce.total=d}),a.watch(()=>F.value,async()=>{var h,z,O,R,D,Z,ee,j,fe,be,$e,ze,We,ca,ja,Ma,ia;if(((h=F.value)==null?void 0:h.length)===0||!((z=u==null?void 0:u.itemData)!=null&&z.find(Qa=>(Qa==null?void 0:Qa.key)==="columnPath"))||!((O=u==null?void 0:u.itemData)!=null&&O.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn")))return;let d=(fe=(j=(ee=(Z=(D=(R=u==null?void 0:u.itemData)==null?void 0:R.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn"))==null?void 0:D.contents)==null?void 0:Z.split("["))==null?void 0:ee[1])==null?void 0:j.split("]"))==null?void 0:fe[0];((We=(ze=($e=(be=u==null?void 0:u.itemData)==null?void 0:be.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn"))==null?void 0:$e.contents)==null?void 0:ze.split("["))==null?void 0:We[0])+((ja=(ca=F.value)==null?void 0:ca.find(Qa=>(Qa==null?void 0:Qa.key)===d))==null?void 0:ja.value),(ia=(Ma=u==null?void 0:u.itemData)==null?void 0:Ma.find(Qa=>(Qa==null?void 0:Qa.key)==="pageGroup"))==null||ia.contents,$t(compData,u.allMapContents)},{deep:!0});const Qr=d=>{var z,O,R,D,Z;const h=(O=(z=De.value)==null?void 0:z.filter(ee=>ee==null?void 0:ee.mainKey))==null?void 0:O.map(ee=>ee==null?void 0:ee.prop);if(h.length===0){const ee=(R=De.value)==null?void 0:R.map(j=>j==null?void 0:j.prop);return(D=ee==null?void 0:ee.map(j=>d==null?void 0:d[j]))==null?void 0:D.join("|")}return(Z=h==null?void 0:h.map(ee=>d==null?void 0:d[ee]))==null?void 0:Z.join("|")},Jn=d=>{var ee,j,fe,be,$e;const h=(j=(ee=De.value)==null?void 0:ee.filter(ze=>ze==null?void 0:ze.required))==null?void 0:j.map(ze=>ze==null?void 0:ze.prop),z=[];if(d==null||d.forEach(ze=>{h==null||h.forEach(We=>{const ca=ze[We];(ca==null||ca==="")&&(z.includes(We)||z.push(We))})}),z.length>0)return ol.ElMessage.warning(`请填写必填项:${z.join("、")}`);const O=new Map,R=new Map;(fe=_e.value)==null||fe.forEach(ze=>{const We=Qr(ze);O.set(We,ze)}),d==null||d.forEach(ze=>{const We=Qr(ze);R.set(We,ze)});const D=d==null?void 0:d.filter(ze=>O.has(Qr(ze))),Z=(be=_e.value)==null?void 0:be.filter(ze=>R.has(Qr(ze)));return(D==null?void 0:D.length)>0&&(i.columns=($e=De.value)==null?void 0:$e.filter(ze=>(ze==null?void 0:ze.label)!=="操作"),i.existRows=Z,i.tableData=D,i.show=!0),d==null?void 0:d.filter(ze=>{const We=Qr(ze);return!O.has(We)})},Dn=a.ref(""),Xn=a.ref(null),bn=async()=>{var d,h,z,O,R,D;try{const Z=await $.quoteApi({related:[{menus:xa.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=Rl.value)==null?void 0:d.plat_id)});if(((h=Z==null?void 0:Z.data)==null?void 0:h.code)===200){Xn.value=(z=Z==null?void 0:Z.data)==null?void 0:z.result;const ee=(O=De.value)==null?void 0:O.map(be=>(be==null?void 0:be.prop)||(be==null?void 0:be.label)),j=Nn(ee,(R=Z==null?void 0:Z.data)==null?void 0:R.result),fe=j==null?void 0:j.flatMap(be=>be==null?void 0:be.quote);(fe==null?void 0:fe.length)>0&&(Dn.value=(D=fe==null?void 0:fe.map(be=>be==null?void 0:be.menus))==null?void 0:D.join("、"))}}catch(Z){throw new Error(Z)}};function Nn(d,h){var z;return(z=h.filter(O=>O.struct&&Array.isArray(O.struct)?O.struct.some(R=>R.words&&Array.isArray(R.words)?R.words.some(D=>d.includes(D)):!1):!1))==null?void 0:z.map(O=>{const R={...O};return R.struct&&Array.isArray(R.struct)&&(R.struct=R.struct.filter(D=>D.words&&Array.isArray(D.words)?D.words.some(Z=>d.includes(Z)):!1)),R})}const Rn=async(d,h)=>{var z,O,R,D,Z,ee,j,fe,be,$e;try{Xn.value||await bn();const ze=h==null?void 0:h.map(Ua=>{const ie=Object.keys(Ua),Ta={};return ie.forEach((ha,Na)=>{Ta[d[Na]]=Ua[ha]}),Ta}),We=Jn(ze);if(!We||(We==null?void 0:We.length)===0)return;const ca=[];let ja=(_e.value||[]).slice();(We||[]).forEach(Ua=>{const ie={...Ua};try{ie.sort=Tn(0,ja)}catch{}ca.push(ie),ja.unshift(ie)});let Ma=await $.quoteApi({platId:parseInt((z=Rl==null?void 0:Rl.value)==null?void 0:z.plat_id),type:"fatherSyncs",related:[{menus:xa.value,groups:""},{menus:xa.value,groups:u==null?void 0:u.compName}]});Ma=(O=Ma==null?void 0:Ma.data)==null?void 0:O.result;let ia=Ma==null?void 0:Ma.map(Ua=>({tableName:"content_"+(Ua==null?void 0:Ua.id),tableContents:ca==null?void 0:ca.map((ie,Ta)=>({id:Ta,...ie}))})),Qa=[{tableName:(R=u==null?void 0:u.related)==null?void 0:R.find(Ua=>Ua==null?void 0:Ua.includes("content")),tableContents:ca==null?void 0:ca.map((Ua,ie)=>({id:ie,...Ua}))}];Qa=[...Qa,...ia];const da=await $.pageBatchAddApi({platId:parseInt((D=Rl.value)==null?void 0:D.plat_id),changeContents:Qa});if(((Z=da==null?void 0:da.data)==null?void 0:Z.code)===200){const Ua={buttonName:"新增",columns:De.value,fixContent:ca==null?void 0:ca.map((Ta,ha)=>({id:ha,...Ta})),relatedContents:u==null?void 0:u.related};await bt(Ua),((ee=i==null?void 0:i.existRows)==null?void 0:ee.length)>0?ol.ElMessage.success("部分数据导入成功"):ol.ElMessage.success("数据导入成功");let ie=[];Qa==null||Qa.forEach(Ta=>{var ha;(ha=Ta==null?void 0:Ta.tableContents)==null||ha.forEach(Na=>{ie.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Na),request_result:"{}",is_delete:!1,request_table:Ta==null?void 0:Ta.tableName,request_type:"export"})})}),await $.pageBatchAddApi({platId:parseInt((j=Rl==null?void 0:Rl.value)==null?void 0:j.plat_id),changeContents:[{tableName:"log",tableContents:ie}]})}else{let Ua=[];Qa==null||Qa.forEach(ie=>{var Ta;(Ta=ie==null?void 0:ie.tableContents)==null||Ta.forEach(ha=>{Ua.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ha),request_result:"{}",is_delete:!1,request_table:ie==null?void 0:ie.tableName,request_type:"error"})})}),await $.pageBatchAddApi({platId:parseInt((fe=Rl==null?void 0:Rl.value)==null?void 0:fe.plat_id),changeContents:[{tableName:"log",tableContents:Ua}]}),ol.ElMessage.error("数据导入响应失败")}}catch(ze){throw ol.ElMessage.error("数据导入处理失败"),await $.pageBatchAddApi({platId:parseInt((be=Rl==null?void 0:Rl.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(ze),is_delete:!1,request_table:($e=u==null?void 0:u.related)==null?void 0:$e.find(We=>We==null?void 0:We.includes("content")),request_type:"error"}]}]}),new Error(ze)}},Kr=async d=>{var D,Z,ee,j,fe,be,$e;let h=we.value;h!=null&&h.find(ze=>(d==null?void 0:d.key)===(ze==null?void 0:ze.key))&&(h=h==null?void 0:h.filter(ze=>(d==null?void 0:d.key)!==(ze==null?void 0:ze.key))),h.push({key:d==null?void 0:d.key,value:[(Z=d==null?void 0:d.value)==null?void 0:Z[((D=d==null?void 0:d.value)==null?void 0:D.length)-1]]});let z=Se.value;z=z==null?void 0:z.map(ze=>{var We,ca;return(ze==null?void 0:ze.type)==="Select"&&(d==null?void 0:d.key)===(ze==null?void 0:ze.prop)&&Array.isArray(ze.value)&&(We=ze.value)!=null&&We.every(ja=>typeof ja=="string")&&(ze.selectValue=(ca=h==null?void 0:h.find(ja=>(ja==null?void 0:ja.key)===(ze==null?void 0:ze.prop)))==null?void 0:ca.value),ze});let O=(j=(ee=z==null?void 0:z.find(ze=>(ze==null?void 0:ze.prop)===(d==null?void 0:d.key)))==null?void 0:ee.optionUrl)==null?void 0:j.menuId,R=z==null?void 0:z.find(ze=>(ze==null?void 0:ze.prop)===(d==null?void 0:d.key));if(O){let ze=await vt(R==null?void 0:R.optionUrl,O),We,ca=W.value,ja=($e=(be=(fe=Se.value)==null?void 0:fe.find(Ma=>{var ia;return(ia=R==null?void 0:R.optionUrl)==null?void 0:ia.menuId}))==null?void 0:be.selectValue)==null?void 0:$e[0];if(ze==null||ze.forEach(Ma=>{var ia,Qa,da,Ua,ie,Ta,ha,Na,Aa,M;if(O){let K=(Qa=(ia=Se.value)==null?void 0:ia.find(ua=>{var ke,fa;return((ke=R==null?void 0:R.optionUrl)==null?void 0:ke.menuId)===((fa=ua==null?void 0:ua.optionUrl)==null?void 0:fa.menuId)}))==null?void 0:Qa.prop,Ae=(Ua=(da=z==null?void 0:z.find(ua=>(ua==null?void 0:ua.prop)===K))==null?void 0:da.selectValue)==null?void 0:Ua[0];K!=null&&K.includes("·")&&(K=(ie=K==null?void 0:K.split("·"))==null?void 0:ie[0],Ae=(Aa=(Na=(ha=d==null?void 0:d.value)==null?void 0:ha[((Ta=d==null?void 0:d.value)==null?void 0:Ta.length)-1])==null?void 0:Na.split(" "))==null?void 0:Aa[0]),ca!=null&&ca.find(ua=>(ua==null?void 0:ua.value)===ja)?We=(M=ca==null?void 0:ca.find(ua=>(ua==null?void 0:ua.value)===ja))==null?void 0:M.objectValue:Ma[K]===Ae&&(We=Ma)}}),We){let Ma=z;Ma=Ma==null?void 0:Ma.map(ia=>{var Qa,da,Ua,ie,Ta,ha;return O&&(We!=null&&We[ia==null?void 0:ia.prop])&&Le.value==="新增"&&(ia==null?void 0:ia.prop)!==(R==null?void 0:R.prop)?ia.value=(We==null?void 0:We[ia==null?void 0:ia.prop])||(We==null?void 0:We[(ie=(Ua=(da=(Qa=ia==null?void 0:ia.optionUrl)==null?void 0:Qa.groupSelect)==null?void 0:da[1])==null?void 0:Ua.replaceAll("[",""))==null?void 0:ie.replaceAll("]","")]):ia.value=(ha=(Ta=Se.value)==null?void 0:Ta.find(Na=>(Na==null?void 0:Na.prop)===(ia==null?void 0:ia.prop)))==null?void 0:ha.value,ia}),Se.value=Ma}}we.value=h},Bn=async(d,h)=>{var z,O,R,D,Z;if((z=d==null?void 0:d.toString())!=null&&z.includes(".txt")||(O=d==null?void 0:d.toString())!=null&&O.includes(".cpt")||(R=d==null?void 0:d.toString())!=null&&R.includes(".cyd")){const ee=await ol.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),j=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"});let fe=URL.createObjectURL(j);Q.value=[{name:(Z=d==null?void 0:d.split("/"))==null?void 0:Z[((D=d==null?void 0:d.split("/"))==null?void 0:D.length)-1],blobUrl:fe}],Wa.value=!0}else Array.isArray(h)&&(h==null?void 0:h.length)>0&&Ie("routeUrl",{isEdit:!1,routerUrl:h})};a.onBeforeUnmount(()=>{Mr.value=!1;let d=mn.value;mn.value=d+1});const kn=a.reactive({prop:"",order:null}),Pr=a.computed(()=>{const d=(_e.value??[]).slice(),h=kn.prop||X.prop,z=kn.order||X.order;if(!h||!z)return d;const O=z==="ascending",R=Z=>{if(h)return Z&&Object.prototype.hasOwnProperty.call(Z,h)?Z[h]:h.includes(".")?h.split(".").reduce((ee,j)=>ee==null?ee:ee[j],Z):Z==null?void 0:Z[h]},D=Z=>{if(Z==null)return{ok:!1,value:NaN};if(typeof Z=="number")return{ok:Number.isFinite(Z),value:Z};const ee=String(Z).trim();if(ee==="")return{ok:!1,value:NaN};const j=ee.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(j))return{ok:!1,value:NaN};const fe=Number(j);return{ok:Number.isFinite(fe),value:fe}};return d.sort((Z,ee)=>{const j=R(Z),fe=R(ee);if(j==null&&fe==null)return 0;if(j==null)return O?-1:1;if(fe==null)return O?1:-1;const be=D(j),$e=D(fe);if(be.ok&&$e.ok)return O?be.value-$e.value:$e.value-be.value;const ze=ie=>{if(ie==null)return{ok:!1,value:NaN};const Ta=String(ie).trim();if(Ta==="")return{ok:!1,value:NaN};const ha=Ta.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ha)return{ok:!1,value:NaN};const Na=ha[1]?-1:1,Aa=Number(ha[2]),M=Number(ha[3]),K=Number(ha[4]);return[Aa,M,K].some(Ae=>Number.isNaN(Ae))?{ok:!1,value:NaN}:M>=60||K>=60?{ok:!1,value:NaN}:{ok:!0,value:Na*(Aa*3600+M*60+K)}},We=ze(j),ca=ze(fe);if(We.ok&&ca.ok)return O?We.value-ca.value:ca.value-We.value;const ja=new Date(j).getTime(),Ma=new Date(fe).getTime(),ia=!Number.isNaN(ja),Qa=!Number.isNaN(Ma);if(ia&&Qa)return O?ja-Ma:Ma-ja;const da=String(j),Ua=String(fe);return O?da.localeCompare(Ua):Ua.localeCompare(da)})}),Vn=a.computed(()=>{var z;const d=(Ce.currentPage-1)*Ce.pageSize,h=d+Ce.pageSize;return Ie("getSliceContLength",Ce),(z=Pr.value)==null?void 0:z.slice(d,h)}),hn=d=>{Ce.currentPage=d,Ie("getSliceContLength",Ce)},To=d=>{var O;Ce.pageSize=d;const h=((O=_e.value)==null?void 0:O.length)??0,z=d>0?Math.ceil(h/d):1;Ce.currentPage>z&&(Ce.currentPage=z||1,ol.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Ie("getSliceContLength",Ce)},Oi=({prop:d,order:h})=>{kn.prop=d,kn.order=h,Ce.currentPage=1};function Ii(d){const h=[];function z(O,R=""){O.forEach(D=>{D.children&&D.children.length>0?z(D.children,D.prop):h.push(D.prop)})}return z(d),h}const xn=(d,h)=>{var ee,j,fe,be;let z=(j=(ee=De.value)==null?void 0:ee.map($e=>$e==null?void 0:$e.prop))==null?void 0:j.filter($e=>$e!=="operate");((fe=De.value)==null?void 0:fe.some($e=>{var ze;return((ze=$e==null?void 0:$e.children)==null?void 0:ze.length)>0}))&&(z=Ii((be=De.value)==null?void 0:be.filter($e=>($e==null?void 0:$e.prop)!=="operate")));let R;if(R=(d==null?void 0:d.length)===(z==null?void 0:z.length)?d:d.slice(0,z==null?void 0:z.length),!(R==null?void 0:R.every($e=>z==null?void 0:z.find(ze=>$e===ze))))return ol.ElMessage.error("导入的数据表头不匹配");Rn(R,h)},Li=(d,h)=>{var R;const z=d==null?void 0:d.filter(D=>D!=="序号"),O=h==null?void 0:h.map(D=>{const Z=Object.entries(D);return Z.shift(),Object.fromEntries(Z)});Je.setRefreshCurStructure(!1),((R=De.value)==null?void 0:R.length)===0||xn(z,O)},$i=(d,h,z,O)=>{const R=[],D=[],Z=fe=>Object.keys(fe).length;for(const fe in d)if(d[fe]!==void 0){const be=d[fe],$e=[];for(const[ze,We]of Object.entries(be))$e.push(We),D.length<Z(be)&&D.push(ze);R.push($e)}R.unshift(D);const ee=pa.utils.aoa_to_sheet(R),j=pa.utils.book_new();pa.utils.book_append_sheet(j,ee,O),pa.writeFileSync(j,`${h}.xlsx`),ar.value=[]},Wo=async(d,h,z,O=!1,R)=>{var D,Z,ee,j,fe,be,$e,ze;try{Je.setRefreshCurStructure(!1);const We=await yr.getInsofDataApi({id:u==null?void 0:u.index});if(((D=We==null?void 0:We.data)==null?void 0:D.code)===200){let ca=(fe=(j=(ee=(Z=We==null?void 0:We.data)==null?void 0:Z.result)==null?void 0:ee[0])==null?void 0:j.value)==null?void 0:fe.pageData;O?ca={...ca,compData:($e=ca==null?void 0:ca.compData)==null?void 0:$e.map(Ma=>{var ia;return(Ma==null?void 0:Ma.key)==="header"?{...Ma,contents:(ia=Ma==null?void 0:Ma.contents)==null?void 0:ia.map(Qa=>({...Qa,[d]:z}))}:Ma})}:ca={...ca,compData:(be=ca==null?void 0:ca.compData)==null?void 0:be.map(Ma=>{var ia,Qa;return(Ma==null?void 0:Ma.key)==="header"?{...Ma,contents:(ia=Ma==null?void 0:Ma.contents)==null?void 0:ia.map(da=>{if(Array.isArray(da))da=da==null?void 0:da.map(Ua=>(Ua==null?void 0:Ua.prop)===(h==null?void 0:h.prop)?{...Ua,[d]:z}:Ua);else if((da==null?void 0:da.prop)===(h==null?void 0:h.prop))return{...da,[d]:z};return da})}:(Ma==null?void 0:Ma.key)==="tableToForm"&&R?{...Ma,contents:(Qa=Ma==null?void 0:Ma.contents)==null?void 0:Qa.map(da=>(da==null?void 0:da.prop)===(h==null?void 0:h.prop)?{...da,[R]:z}:da)}:Ma})};const ja=await yr.updateInsofDataApi({id:u==null?void 0:u.index,value:{pageData:ca}});((ze=ja==null?void 0:ja.data)==null?void 0:ze.code)===200?(ol.ElMessage.success("编辑成功"),Je.setRefreshCurStructure(!0)):ol.ElMessage.error("编辑响应失败")}}catch(We){ol.ElMessage.error(We)}},Ko=async(d,h)=>{await Wo("label",h,d)},Yo=async(d,h)=>{await Wo("columnType",h,d,!1,"type")},Or=async({newRow:d,targetIndex:h})=>{var R;if(!Oe(u.config,{type:ta.TABLE}))return;const O=(Ce.currentPage-1)*Ce.pageSize+(h??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Tn(O,_e.value||[]))}catch{}_e.value.splice(O,0,d),await a.nextTick(),m.value.has(d.id)||m.value.set(d.id,$.cloneDeep(d)),_e.value=(R=_e.value)==null?void 0:R.map(D=>({...D,tableEditType:(D==null?void 0:D.id)===d.id?"edit":(D==null?void 0:D.tableEditType)??"text"})),c.value.add(d.id),Ml.value=!0},Ri=(d,h,z,O=[])=>(!Array.isArray(h)||h.length===0||h.forEach(R=>{const D=R==null?void 0:R.prop;if(!D)return;let Z=d==null?void 0:d[D];if(Z==null||String(Z).trim()==="")return;Z=String(Z);const ee=new Set([...(Array.isArray(z)?z:[]).filter(be=>(be==null?void 0:be.id)!==(d==null?void 0:d.id)).map(be=>be==null?void 0:be[D]).filter(be=>be!=null).map(be=>String(be)),...(Array.isArray(O)?O:[]).map(be=>be==null?void 0:be[D]).filter(be=>be!=null).map(be=>String(be))]);if(!ee.has(Z))return;let j=1,fe="";for(;fe=`${Z}(${j})`,!!ee.has(fe);)j++;d[D]=fe}),d),Ao=async()=>{var R,D,Z,ee,j,fe,be,$e;const d=Array.from(c.value||[]);if(d.length===0)return;const h=(D=pa.getColumnChild((R=$.cloneDeep(De.value))==null?void 0:R.filter(ze=>(ze==null?void 0:ze.label)!=="操作")))==null?void 0:D.filter(ze=>(ze==null?void 0:ze.required)===!0);if((h==null?void 0:h.length)>0)for(let ze=0;ze<d.length;ze++){const We=d[ze],ca=(Z=_e.value)==null?void 0:Z.find(ja=>(ja==null?void 0:ja.id)===We);if(ca)for(let ja=0;ja<h.length;ja++){const Ma=h[ja],ia=Ma==null?void 0:Ma.prop,Qa=(Ma==null?void 0:Ma.label)??ia,da=ca==null?void 0:ca[ia];if(da===""||da===null||da===void 0||Array.isArray(da)&&da.length===0){ol.ElMessage.error(`${Qa}不能为空`);return}}}const z=[],O=[];if(d.forEach(ze=>{var Qa;const We=(Qa=_e.value)==null?void 0:Qa.find(da=>(da==null?void 0:da.id)===ze);if(!We)return;if(We!=null&&We._isTemp){const Ua=(pa.getAllLeafNodes(De.value)||[]).filter(M=>(M==null?void 0:M.mainKey)===!0||(M==null?void 0:M.isMainKey)===!0),ie=_e.value.findIndex(M=>(M==null?void 0:M.id)===ze),Ta=ie>=0?ie+1:_e.value.length+1;Ri(We,Ua,_e.value,z);const ha={id:Ta.toString()};(We==null?void 0:We.sort)!==void 0&&(We==null?void 0:We.sort)!==null&&String(We.sort).trim()!==""?ha.sort=String(We.sort):ha.sort=Tn(ie>=0?ie:_e.value.length-1,_e.value||[]),(pa.getAllLeafNodes(De.value)||[]).filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate").forEach(M=>{const K=M==null?void 0:M.prop;if(K){const Ae=We[K];Ae!==void 0?ha[K]=Ae??"":ha[K]=""}}),z.push(ha);return}const ja=(pa.getAllLeafNodes(De.value)||[]).filter(da=>(da==null?void 0:da.type)!=="operate"&&(da==null?void 0:da.label)!=="操作"&&(da==null?void 0:da.prop)!=="operate"),Ma=new Set(ja.map(da=>da==null?void 0:da.prop).filter(Boolean)),ia={};for(const da of Ma)Object.prototype.hasOwnProperty.call(We,da)&&(ia[da]=We[da]);O.push({id:We.id,value:{tableData:ia}})}),Je.setTableLoading(u==null?void 0:u.index),O.length>0){const ze=O.map(ca=>{const ja={id:ca.id,...ca.value.tableData};return delete ja._isOCRRow,delete ja._ocrTableId,delete ja._isTemp,delete ja.tableEditType,delete ja.index,ja}),We=[{tableName:(ee=u==null?void 0:u.related)==null?void 0:ee.find(ca=>ca==null?void 0:ca.includes("content")),tableContents:ze}];try{await $.pageBatchUpdateApi({platId:parseInt((j=Rl.value)==null?void 0:j.plat_id),changeContents:We})}catch(ca){ol.ElMessage.error(((be=(fe=ca==null?void 0:ca.response)==null?void 0:fe.data)==null?void 0:be.message)||(ca==null?void 0:ca.message)||"保存失败"),Je.setTableLoading(!1);return}}if(z.length>0){const ze={fixContent:z,buttonName:"新增",relatedContents:u==null?void 0:u.related,name:u==null?void 0:u.compName,columns:De.value};Ie("change",ze)}ol.ElMessage.success("保存成功"),c.value.clear(),m.value.clear(),_e.value=($e=_e.value)==null?void 0:$e.map(ze=>({...ze,tableEditType:"text"})),Ml.value=!1,Je.setRefreshCurStructure(!0)},Vi=()=>{var h;const d=Array.from(c.value||[]);if(d.length===0){Ml.value=!1;return}d.forEach(z=>{var D,Z;const O=m.value.get(z),R=(D=_e.value)==null?void 0:D.find(ee=>(ee==null?void 0:ee.id)===z);if(R!=null&&R._isTemp){_e.value=_e.value.filter(ee=>(ee==null?void 0:ee.id)!==R.id);return}if(O){const ee=(Z=_e.value)==null?void 0:Z.findIndex(j=>(j==null?void 0:j.id)===z);ee!==-1&&(_e.value[ee]={..._e.value[ee],...O})}}),c.value.clear(),m.value.clear(),_e.value=(h=_e.value)==null?void 0:h.map(z=>({...z,tableEditType:"text"})),Ml.value=!1},zo=a.ref(!1),Go=async d=>{var R,D,Z,ee;if(!Ml.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const h=d==null?void 0:d.target;if(((D=(R=h==null?void 0:h.tagName)==null?void 0:R.toLowerCase)==null?void 0:D.call(R))==="textarea")return;const O=document.getElementById("excel-table");O&&!O.contains(h)||((Z=h==null?void 0:h.blur)==null||Z.call(h),(ee=d.preventDefault)==null||ee.call(d),await a.nextTick(),await Jo())},Jo=async()=>{if(P.value){Ml.value=!1;return}if(!zo.value){zo.value=!0;try{Array.from(c.value||[]).length>0?await Ao():Ml.value=!1}finally{Promise.resolve().then(()=>{zo.value=!1})}}},Pi=d=>{ar.value=d},Fi=(d,h)=>{Pl.value===h?zr.value=!1:zr.value=!0,Pl.value=h==null?void 0:h.changeProp},Xo=d=>{if(!d)return;const{item:h,value:z}=d,O=Se.value.find(R=>R.prop==h.prop);O&&O.contents.push({label:z,value:z})},_n=a.computed(()=>{var z,O,R;const d=(z=De.value)==null?void 0:z.some(D=>D==null?void 0:D.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(R=(O=De.value)==null?void 0:O.filter(D=>(D==null?void 0:D.label)!=="操作"))==null?void 0:R.map(D=>({...D,filterable:!!(D!=null&&D.filterable),showSummary:!!(D!=null&&D.showSummary),operable:!!(D!=null&&D.operable),fixed:D==null?void 0:D.fixed}))}),wn=async(d,h,z)=>{const O=$.cloneDeep(De.value);await a.nextTick();const R=O==null?void 0:O.map(Z=>(z==null?void 0:z.label)===(Z==null?void 0:Z.label)?{...Z,[h]:d}:Z),D=Pn(R);await ds(u.index,D),De.value=R,le.value=D},Pn=d=>{var R;const h=d||[];return((R=pa.getAllLeafNodes(h)||[])==null?void 0:R.filter(D=>(D==null?void 0:D.prop)&&(D==null?void 0:D.type)!=="operate"&&(D==null?void 0:D.label)!=="操作"&&(D==null?void 0:D.prop)!=="operate")).map(D=>{const{prop:Z}=D;return Rf(Z,D)})},ji=async d=>{let h=await Pf(u.index);h||(h=Pn(d)),le.value=h},Zo=async(d,h)=>{const z=$.cloneDeep(De.value),O=Z=>Array.isArray(Z)?Z.map(ee=>{const j=Array.isArray(ee==null?void 0:ee.children)&&ee.children.length>0,fe={...ee};return(fe==null?void 0:fe.prop)==="operate"||(fe==null?void 0:fe.label)==="操作"||(fe==null?void 0:fe.type)==="operate"?(fe.sortable=!1,fe.filterable=!1,fe.operable=!1):fe.sortable=j?!1:!!d,j&&(fe.children=O(fe.children)),fe}):Z,R=O(z),D=Pn(R);await ds(u.index,D),De.value=R,le.value=D,await a.nextTick(),mn.value=mn.value+1},Qo=()=>{ya.value=!1},ei=d=>{Ie("clickTrigger",d)},Fn=async d=>{var D,Z,ee,j,fe,be,$e,ze,We,ca,ja,Ma,ia,Qa,da;const h=d==null?void 0:d.row,z=d==null?void 0:d.rowData,O=d==null?void 0:d.suffix;if((D=h==null?void 0:h.toString())!=null&&D.includes(".urdf")||d!=null&&d.isUrdf||O!=null&&O.includes(".urdf")){if(h.includes(",")){ol.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(E(h)){const ie={files:[Ne(h)],data:{}};ce(ie);return}Ya.value=[{url:h,extension:me(h)}],za.value=!0,re.value={data:$.cloneDeep(z)},Ge.value=!0;return}let R=[];if((Z=h==null?void 0:h.toString())!=null&&Z.includes(".stl")||(ee=h==null?void 0:h.toString())!=null&&ee.includes(".STL")||(j=h==null?void 0:h.toString())!=null&&j.includes(".obj")||(fe=h==null?void 0:h.toString())!=null&&fe.includes(".mtl")){const Ua=(be=h==null?void 0:h.toString())==null?void 0:be.split(","),ie=va(Ua),Ta=ie==null?void 0:ie[0];if(E(Ta==null?void 0:Ta.extension)){ce({files:ie,data:{}});return}Ya.value=ie,za.value=!1,Ge.value=!0;return}if(($e=h==null?void 0:h.toString())!=null&&$e.includes(".stl")||(ze=h==null?void 0:h.toString())!=null&&ze.includes(".STL")||(We=h==null?void 0:h.toString())!=null&&We.includes(".obj")||(ca=h==null?void 0:h.toString())!=null&&ca.includes(".mtl")||O!=null&&O.includes(".stl")||O!=null&&O.includes(".STL")||O!=null&&O.includes(".obj")||O!=null&&O.includes(".mtl")){let Ua,ie=[],Ta={};if(Array.isArray(h)?Ua=h:Ua=h==null?void 0:h.split(","),Ua==null||Ua.forEach(ha=>{ha.includes(".mtl")?ie.push(ha):Ta.blob=Ta.blob?Ta.blob+","+ha:ha}),(ie==null?void 0:ie.length)>0&&(Ta.mtlBlobs=ie),O&&(Ta.suffix=O),(Ma=(ja=Object.values(Ta))==null?void 0:ja[0])!=null&&Ma.includes("http:"))R.push(Ta);else{const ha=new Blob([Ta.blob],{type:"application/octet-stream;charset=UTF-8"});let Na=URL.createObjectURL(ha),Aa="";(ia=h==null?void 0:h.split("/"))==null||ia.forEach((M,K)=>{var Ae;K===((Ae=h==null?void 0:h.split("/"))==null?void 0:Ae.length)-1&&(Aa=M)}),(Qa=Ta.blob)!=null&&Qa.includes(".stl")&&(Aa=(Aa==null?void 0:Aa.replaceAll(">",""))+".urdf"),Q.value=[{name:Aa,blobUrl:Na}],Wa.value=!0}}else{const Ua=await ol.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ie=new Blob([Ua.data],{type:"application/octet-stream;charset=UTF-8"});let Ta=URL.createObjectURL(ie),ha="";if((da=h==null?void 0:h.split("/"))==null||da.forEach((Na,Aa)=>{var M;Aa===((M=h==null?void 0:h.split("/"))==null?void 0:M.length)-1&&(ha=Na)}),E(ha)){const Na=ae(ha),Aa=Ne(h);ce({files:[Aa],data:{trackFileType:Na}});return}Q.value=[{name:ha,blobUrl:Ta}],Wa.value=!0}(R==null?void 0:R.length)>0&&o.setBlobUrls(R)},Zn=d=>{var O,R,D,Z;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const h=(Z=(O=d==null?void 0:d.url)==null?void 0:O.split("."))==null?void 0:Z[((D=(R=d==null?void 0:d.url)==null?void 0:R.split("."))==null?void 0:D.length)-1];return(d==null?void 0:d.name)+"."+h},ai=d=>{if(!d)return"未知文件";try{const O=Zn(d);if(typeof O=="string"&&O.includes("."))return O}catch{}const h=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",z=(d==null?void 0:d.suffix)||"";return h.includes(".")?h:`${h}${z}`},li=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const h=d.match(/^(\d+)\_(\d+)$/);if(!h)return d;const z=Number(h[1]),O=Number(h[2]);return!Number.isFinite(z)||!Number.isFinite(O)?d:String(z*1e3+O)},Qn=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;const z=Number(h);return Number.isFinite(z)?z:null},Hi=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;if(/^\d+$/.test(h)){const R=Number(h);return Number.isFinite(R)?h.length<=10?R*1e3:R:null}const z=h.includes("T")?h:h.replace(" ","T"),O=Date.parse(z);return Number.isFinite(O)?O:null},ri=(d,h=[])=>{const z=Array.isArray(d)?d.slice():[];if(z.length<=1)return z;const O=new Map((h||[]).map((Z,ee)=>[String(Z),ee])),R=z.some(Z=>Qn(Z==null?void 0:Z.sort)!==null),D=z.map((Z,ee)=>({r:Z,idx:ee,id:String((Z==null?void 0:Z.id)??""),sortVal:Qn(Z==null?void 0:Z.sort),createTimeMs:Hi(Z==null?void 0:Z.create_time),prevIdx:O.has(String(Z==null?void 0:Z.id))?O.get(String(Z==null?void 0:Z.id)):Number.POSITIVE_INFINITY}));return D.sort((Z,ee)=>{if(R){const be=Z.sortVal,$e=ee.sortVal;if(be===null&&$e!==null)return 1;if(be!==null&&$e===null)return-1;if(be!==null&&$e!==null&&be!==$e)return be-$e}const j=Z.createTimeMs,fe=ee.createTimeMs;return j!==null&&fe!==null&&j!==fe?fe-j:j!==null&&fe===null?-1:j===null&&fe!==null?1:Z.prevIdx!==ee.prevIdx?Z.prevIdx-ee.prevIdx:Z.idx-ee.idx}),D.map(Z=>Z.r)},Tn=(d,h=[])=>{const z=h==null?void 0:h[d-1],O=h==null?void 0:h[d],R=Qn(z==null?void 0:z.sort),D=Qn(O==null?void 0:O.sort);let Z=null;R!==null&&D!==null&&D>R?Z=(R+D)/2:R!==null?Z=R+1:D!==null?Z=Math.max(D-1,0):Z=(d??0)+1;const ee=Number(Z.toFixed(6));return String(Number.isFinite(ee)?ee:Z)},Ui=async d=>{let h=null,z=null;if(d!=null&&d.id){const R=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const D=await $.platformDownloadFile(d);h=URL.createObjectURL(D.data),z=ai(d)}finally{R.close()}}else if(d!=null&&d.downloadUrl){const R=await uo(),D=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Z=await ol.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:R,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{D.close()}),ee=new Blob([Z.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ee),z=d==null?void 0:d.name}else{const R=await $.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL(R.data),z=Zn(d)):h=d==null?void 0:d.url}if(E(h)){const R={row:`${h}`,suffix:me(z)};Fn(R);return}const O={name:z,blobUrl:h};Q.value=[O],Wa.value=!0},co=async d=>{let h=null,z=null;if(d!=null&&d.id){const D=await $.platformDownloadFile(d);h=URL.createObjectURL(D.data),z=ai(d)}else if(d!=null&&d.downloadUrl){const D=await uo(),Z=await ol.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:D,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ee=new Blob([Z.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ee),z=d==null?void 0:d.name}else{const D=await $.platformDownloadFile({url:d==null?void 0:d.url});h=URL.createObjectURL(D.data),z=Zn(d)}const O={name:z,blobUrl:h},R=document.createElement("a");R.href=O.blobUrl,R.download=O.name,R.style.display="none",document.body.appendChild(R),R.click(),setTimeout(()=>{document.body.removeChild(R)},100)},qi=(d,h)=>{var O;if(Object.values(h).length===0)return;let z=d;return Object.values(h).find(R=>{var D,Z,ee;return((D=R==null?void 0:R.toString())==null?void 0:D.includes(".txt"))||((Z=R==null?void 0:R.toString())==null?void 0:Z.includes(".cpt"))||((ee=R==null?void 0:R.toString())==null?void 0:ee.includes(".obj"))})?z=[...d,wa.value]:(O=u==null?void 0:u.config)!=null&&O.allowMove&&(z=[...d,{label:"迁移"}]),z},Mo=()=>{V.value=!0},Wi=a.ref([]),Ki=async(d,h,z=!1)=>{var Z,ee,j,fe;if(!d)return;if(z){_e.value=[...he.value.values()].filter(be=>Object.values(be).some($e=>typeof $e=="string"?$e==null?void 0:$e.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let O={};for(let be in d)(d==null?void 0:d[be])!==""&&(O[be]=d==null?void 0:d[be]);if(JSON.stringify(O)==="{}"){_e.value=Array.from(((Z=he.value)==null?void 0:Z.values())??[]);return}let R=(ee=u==null?void 0:u.related)==null?void 0:ee.find(be=>be==null?void 0:be.includes("content_")),D=await $.getFillFind({platId:parseInt((j=Rl==null?void 0:Rl.value)==null?void 0:j.plat_id),tableName:R,params:O});D=(fe=D==null?void 0:D.data)==null?void 0:fe.result,_e.value=D,Je.setTableLoading(!1)},ni=async d=>{var z,O;if(!Oe(u.config,{type:ta.TABLE})||!d)return;((z=Array.from(c.value))==null?void 0:z.length)>0&&await Ao();const h=d==null?void 0:d.id;h!=null&&(c.value.clear(),m.value.clear(),m.value.has(h)||m.value.set(h,$.cloneDeep(d)),_e.value=(O=_e.value)==null?void 0:O.map(R=>({...R,tableEditType:(R==null?void 0:R.id)===h?"edit":"text"})),c.value.add(h),Ml.value=!0)},jn=async(d,h,z,O)=>{O!=null&&O.isExistChild&&Ie("clickMainKey",d,z,De.value)},Cn=()=>{Wa.value=!1},oi=d=>{Ie("rowClick",d)};a.watch(()=>u.changedContent,()=>{var z,O;if(!u.changedContent)return;let d=(z=_e.value)==null?void 0:z.map(R=>{var D;return R.id===((D=u.changedContent)==null?void 0:D.id)&&(R={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete R.newId),R});const h=(O=u.itemData)==null?void 0:O.map(R=>((R==null?void 0:R.key)==="tableContents"&&(R.contents=d),R));_e.value=d,Ie("contentChange",{contents:h,index:u.index}),Ie("change",{content:d,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Oo=()=>{},Yi=async()=>{const d=xa.value,h=sessionStorage.getItem("systemKey"),z=await pa.getItemData(d,h,""),O=(z==null?void 0:z.find(ee=>(ee==null?void 0:ee.name)==="方法明细"))||(z==null?void 0:z[0]),R=(O==null?void 0:O.compData)||[],D=R==null?void 0:R.find(ee=>{const j=ee==null?void 0:ee.key;return j==="formContent"||j==="tableContents"});return D==null?void 0:D.contents},uo=async()=>{const h=ol.Local.get("access-token");return h?`Bearer ${h}`:""},Gi=async(d,{token:h,inputData:z}={})=>await ol.axios.post(d,z,{headers:{Authorization:h}}).catch(R=>(na.setImportLoading(!1),Promise.reject(R))),Ji=d=>{var O;let h={};const z=[];return h.form={},(O=$.cloneDeep(d))==null||O.forEach((R,D)=>{var Z,ee,j,fe,be,$e,ze,We,ca,ja,Ma,ia,Qa,da;if((R==null?void 0:R.comp)==="Table"){(ee=(Z=R==null?void 0:R.compData)==null?void 0:Z.find(ha=>(ha==null?void 0:ha.key)==="header"))==null||ee.contents;let Ua=(be=(fe=(j=R==null?void 0:R.compData)==null?void 0:j.find(ha=>(ha==null?void 0:ha.key)==="tableContents"))==null?void 0:fe.contents)==null?void 0:be.map(ha=>ha.slice(1));(ja=(ca=(We=(ze=($e=R==null?void 0:R.compData)==null?void 0:$e.find(ha=>(ha==null?void 0:ha.key)==="header"))==null?void 0:ze.contents)==null?void 0:We[0])==null?void 0:ca[0])==null||ja.label;let ie=(ia=(Ma=R==null?void 0:R.compData)==null?void 0:Ma.find(ha=>(ha==null?void 0:ha.key)==="header"))==null?void 0:ia.contents,Ta=[];Ua==null||Ua.forEach(ha=>{let Na=[];ha==null||ha.forEach((Aa,M)=>{var Ae;let K={};((Ae=ie[M])==null?void 0:Ae.label)!=="操作"&&(K[ie[M].label]=Aa,Na.push(K))}),Ta.push(Na)}),h[R.name]=Ta}else{const Ua=(da=(Qa=R.compData)==null?void 0:Qa.find(ie=>(ie==null?void 0:ie.key)==="formContent"))==null?void 0:da.contents;Ua==null||Ua.forEach(ie=>{var Ta,ha;if(ie.prop!==""){let Na=ie==null?void 0:ie.value;Array.isArray(Na)?Na=((Ta=Na==null?void 0:Na[0])==null?void 0:Ta.oldUrl)||"http://222.92.178.198:62001/"+((ha=Na==null?void 0:Na[0])==null?void 0:ha.url):Na=Na.toString(),ie={key:(ie==null?void 0:ie.prop)??(ie==null?void 0:ie.label),value:Na},z.push(ie)}})}}),h.form=pa.getFormContents(z),h},Xi=d=>{const h=[],z=O=>{O&&typeof O=="object"&&!Array.isArray(O)?Object.values(O).forEach(z):h.push(O)};return z(d),h},Zi=async(d,h,z)=>{var ie,Ta,ha,Na,Aa,M,K,Ae,ua,ke,fa,Ia,dl,ll,yl,gl,Vl;na.setImportLoading(!0),Je.setFreshContent(!1);let O=await Yi().catch(el=>(na.setImportLoading(!1),Promise.reject(el)));O=O==null?void 0:O.filter(el=>{var kl;return((kl=el==null?void 0:el.find(Ka=>Ka==null?void 0:Ka.id))==null?void 0:kl.id)===(h==null?void 0:h.id)});let R=pa.getEqualChild([(ie=De.value)==null?void 0:ie.filter(el=>(el==null?void 0:el.label)!=="操作")]);const D=(ha=(Ta=pa.tableToForm(O,R))==null?void 0:Ta[0])==null?void 0:ha.find(el=>{const kl=el==null?void 0:el.key;return kl==="Interface"||kl==="方法体"}),Z=D==null?void 0:D.value;if(!Z){console.log("未搜索到isMain, 缺少算法执行接口"),na.setImportLoading(!1);return}const ee=De.value?pa.getEqualChild([De.value]):[],j=ee.find(el=>{const kl=el==null?void 0:el.prop;return kl==="Input1"||kl==="输入数据.输入1"||kl==="样本输入数据"}),fe=j==null?void 0:j.prop;let be=h==null?void 0:h[fe];const $e=await uo().catch(el=>(na.setImportLoading(!1),Promise.reject(el)));let ze=!0,We="";(Na=De.value)==null||Na.forEach(el=>{(el==null?void 0:el.prop)===fe&&(ze=!!(el!=null&&el.childPath),We=el==null?void 0:el.childPath)});let ca="";if(ze){let el=(M=(Aa=De.value)==null?void 0:Aa.find(vl=>(vl==null?void 0:vl.isMainKey)===!0))==null?void 0:M.prop;ca=h==null?void 0:h[el];let kl=We==null?void 0:We.split(k),Ka=[];kl==null||kl.forEach((vl,El)=>{(kl==null?void 0:kl.length)-1===El&&Ka.push(ca),Ka.push(vl)}),Ka=Ka==null?void 0:Ka[0];let hl=await pa.getItemData(Ka,sessionStorage.getItem("systemKey"),""),nl=hl==null?void 0:hl.filter(vl=>(vl==null?void 0:vl.name)===fe);nl=nl==null?void 0:nl.map(vl=>{var El;return vl.compData=(El=vl==null?void 0:vl.compData)==null?void 0:El.map(Tl=>{var hr;return(Tl==null?void 0:Tl.key)==="tableContents"&&(Tl.contents=(hr=Tl==null?void 0:Tl.contents)==null?void 0:hr.filter(Ll=>(Ll==null?void 0:Ll[1])===(h==null?void 0:h[fe]))),Tl}),vl}),(!nl||(nl==null?void 0:nl.length)===0)&&(nl=hl,nl=nl==null?void 0:nl.map(vl=>{var El;return vl.compData=(El=vl==null?void 0:vl.compData)==null?void 0:El.map(Tl=>{var hr;return(Tl==null?void 0:Tl.key)==="tableContents"&&(Tl.contents=(hr=Tl==null?void 0:Tl.contents)==null?void 0:hr.filter(Ll=>{var wl,zl;return(Ll==null?void 0:Ll[1])===(h==null?void 0:h[(zl=(wl=De==null?void 0:De.value)==null?void 0:wl[0])==null?void 0:zl.prop])})),Tl}),vl})),be=Ji(nl)}const ja=await Gi(Z,{token:$e,inputData:be}).catch(el=>(na.setImportLoading(!1),Promise.reject(el))),Ma=(K=ja==null?void 0:ja.data)==null?void 0:K.data,ia=ee.find(el=>(el==null?void 0:el.prop)==="Output1"),Qa=ia==null?void 0:ia.prop;let da=[],Ua=[];if(Ma&&((Ae=Object.values(Ma))==null?void 0:Ae.length)>0){let el=[];const kl=new FormData,Ka=(ua=Xi(Ma))==null?void 0:ua.map(async nl=>{var vl,El;if(!Array.isArray(nl)&&(nl!=null&&nl.includes("http"))){let Tl=await ol.axios.get(nl,{responseType:"blob"}),hr=(El=nl==null?void 0:nl.split("/"))==null?void 0:El[((vl=nl==null?void 0:nl.split("/"))==null?void 0:vl.length)-1];kl.append("files",Tl.data,hr)}else el.push(nl)});if(await Promise.all(Ka),!pa.isFormDataEmpty(kl)){let nl=await _u.uploadAmountApi(kl),vl=(fa=(ke=nl==null?void 0:nl.data)==null?void 0:ke.result)==null?void 0:fa.map(El=>{var Tl,hr,Ll,wl,zl,Ul;return{name:(Ul=(zl=(wl=(Tl=El==null?void 0:El.url)==null?void 0:Tl.split("/"))==null?void 0:wl[((Ll=(hr=El==null?void 0:El.url)==null?void 0:hr.split("/"))==null?void 0:Ll.length)-1])==null?void 0:zl.split("."))==null?void 0:Ul[0],url:El==null?void 0:El.url}});el=[...el,...vl]}let hl={};for(let nl in h)nl!=="id"&&(hl[nl]=h[nl]);hl[Qa]=el,Ua.push({id:h==null?void 0:h.id,value:{tableData:hl}})}if((Ua==null?void 0:Ua.length)>0){const el=Ua.map(Ka=>{const hl={id:Ka.id,...Ka.value.tableData};return delete hl._isOCRRow,delete hl._ocrTableId,delete hl._isTemp,delete hl.tableEditType,delete hl.index,hl}),kl=[{tableName:(Ia=u==null?void 0:u.related)==null?void 0:Ia.find(Ka=>Ka==null?void 0:Ka.includes("content")),tableContents:el}];await $.pageBatchUpdateApi({platId:parseInt((dl=Rl.value)==null?void 0:dl.plat_id),changeContents:kl})}if((da==null?void 0:da.length)>0)try{await $.pageBatchAddApi({platId:parseInt((ll=Rl.value)==null?void 0:ll.plat_id),changeContents:[{tableName:(yl=u==null?void 0:u.related)==null?void 0:yl.find(el=>el==null?void 0:el.includes("content")),tableContents:da.map(el=>{var Ka,hl,nl;const kl={id:((Ka=el==null?void 0:el.key)==null?void 0:Ka.id)??((hl=el==null?void 0:el.key)==null?void 0:hl.rowId)??(el==null?void 0:el.id),...((nl=el==null?void 0:el.value)==null?void 0:nl.tableData)||{}};return delete kl._isOCRRow,delete kl._ocrTableId,delete kl._isTemp,delete kl.tableEditType,delete kl.index,Object.keys(kl).forEach(vl=>{vl==="证书附件"&&Array.isArray(kl[vl])&&(kl[vl]=JSON.stringify(kl[vl]))}),kl})}]})}catch(el){ol.ElMessage.error(((Vl=(gl=el==null?void 0:el.response)==null?void 0:gl.data)==null?void 0:Vl.message)||(el==null?void 0:el.message)||"保存失败"),Je.setTableLoading(!1);return}$o(!0),na.setImportLoading(!1),Je.setFreshContent(!0)},ii=(d,h)=>(d=d==null?void 0:d.map(z=>{var O,R;return z!=null&&z.children&&((O=z.children)!=null&&O.find(D=>D.id===(h==null?void 0:h.id))?z.children=(R=z.children)==null?void 0:R.filter(D=>(D==null?void 0:D.id)!==(h==null?void 0:h.id)):z.children=ii(z.children,h)),z}),d),po=a.ref(!1),Qi=()=>{po.value=!0},et=async d=>{var z,O,R,D;po.value=!1;const h=Array.isArray(d)?d:d?[d]:[];if(h.length!==0)for(const Z of h){const ee={name:Z.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(Z),raw:Z,uid:Date.now()+Math.random()};xe.value.push(ee),Nl(ee,"uploading"),Ol(ee,0);try{const j=new FormData;j.append("file",Z,ee.name);const fe=await $.platformUploadFile(j);ee.uploadResult=((z=fe==null?void 0:fe.data)==null?void 0:z.result)||{name:ee.name,url:"",fileName:ee.name},Be({name:((O=ee.uploadResult)==null?void 0:O.name)||ee.name,url:((R=ee.uploadResult)==null?void 0:R.url)||"",id:(D=ee.uploadResult)==null?void 0:D.id}),Nl(ee,"uploaded"),Ol(ee,100)}catch(j){console.error("文件上传失败:",j),ol.ElMessage.error(`文件 ${ee.name} 上传失败,请重试`),Nl(ee,"pending"),Ol(ee,0);const fe=xe.value.findIndex(be=>be.uid===ee.uid);fe>-1&&xe.value.splice(fe,1)}}},t=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,h,z)=>{h===(u==null?void 0:u.index)?z(new Error("选择源不能和目标源一致")):z()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),i=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),f=()=>{i.show=!1},g=async d=>{var h,z,O,R,D,Z,ee,j;try{if(d==="cancel"&&(i.show=!1),d==="replace"&&((h=i==null?void 0:i.existRows)==null?void 0:h.length)>0){await $.pageBatchDeleteApi({platId:parseInt((z=Rl.value)==null?void 0:z.plat_id),changeContents:[{tableName:((O=u==null?void 0:u.related)==null?void 0:O.find(be=>be==null?void 0:be.includes("content_")))||((R=u==null?void 0:u.related)==null?void 0:R.find(be=>be==null?void 0:be.includes("content"))),tableContents:i==null?void 0:i.existRows}]});const fe=await $.pageBatchAddApi({platId:parseInt((D=Rl.value)==null?void 0:D.plat_id),changeContents:[{tableName:(Z=u==null?void 0:u.related)==null?void 0:Z.find(be=>be==null?void 0:be.includes("content")),tableContents:(()=>{const be=(_e.value||[]).filter(ca=>!((i==null?void 0:i.existRows)||[]).some(ja=>String(ja==null?void 0:ja.id)===String(ca==null?void 0:ca.id))),$e=(i==null?void 0:i.tableData)||[],ze=[];let We=be.slice();return $e.forEach(ca=>{const ja={...ca};try{ja.sort=Tn(0,We)}catch{}ze.push(ja),We.unshift(ja)}),ze.map((ca,ja)=>({id:ja,...ca}))})()}]});((ee=fe==null?void 0:fe.data)==null?void 0:ee.code)===200&&(await bt({buttonName:"新增",columns:De.value,fixContent:(j=i==null?void 0:i.tableData)==null?void 0:j.map((be,$e)=>({id:$e,...be})),relatedContents:u==null?void 0:u.related}),ol.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{i.show=!1,i.columns=[],i.tableData=[],i.existRows=[]}},S=()=>{t.show=!1},I=d=>{var h,z;if((d==null?void 0:d.buttonName)==="取消")return t.show=!1;t.to=d==null?void 0:d.content,!(!(u!=null&&u.index)||!((h=t.to)!=null&&h.groupName))&&(u==null?void 0:u.index)!==((z=t.to)==null?void 0:z.groupName)&&(Ie("change",{buttonName:"迁移",value:{from:t.from,to:t.to,data:t.selectRow}}),t.show=!1)},H=async d=>{var h,z,O,R;if(d){if(!Dr.validateFileSize(d.raw)){ol.ElMessage.warning(`文件大小不能超过 ${Zr.value.maxSize}MB`);const D=xe.value.findIndex(Z=>Z.uid===d.uid);D>-1&&xe.value.splice(D,1),G();return}if(!Dr.validateFileType(d.raw)){ol.ElMessage.warning("请上传图片文件");const D=xe.value.findIndex(Z=>Z.uid===d.uid);D>-1&&xe.value.splice(D,1),G();return}Nl(d,"uploading"),Ol(d,0);try{const D=new FormData;D.append("file",d.raw,d.name);const Z=await $.platformUploadFile(D);d.uploadResult=((h=Z==null?void 0:Z.data)==null?void 0:h.result)||{name:d.name,url:"",fileName:d.name},Be({name:((z=d.uploadResult)==null?void 0:z.name)||d.name,url:((O=d.uploadResult)==null?void 0:O.url)||"",id:(R=d.uploadResult)==null?void 0:R.id}),Nl(d,"uploaded"),Ol(d,100)}catch(D){console.error("文件上传失败:",D),ol.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Nl(d,"pending"),Ol(d,0);const Z=xe.value.findIndex(ee=>ee.uid===d.uid);Z>-1&&xe.value.splice(Z,1)}finally{G()}}},G=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},de=async()=>{var z,O;if(sessionStorage.setItem("ocr_root_table_id",String((u==null?void 0:u.index)??"")),xe.value.length===0){ol.ElMessage.warning("请先选择要上传的图片");return}if(xe.value.filter(R=>{const D=ul(R);return D!=="uploaded"&&D!=="completed"&&D!=="failed"}).length>0){ol.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}je.value=!0,ye.value=0;let h=null;try{xe.value.forEach(ia=>{Nl(ia,"processing")});const R=Math.floor(Math.random()*10)+90;h=setInterval(()=>{ye.value<R?ye.value+=1:clearInterval(h)},50);const D=xe.value.map(ia=>{var Qa,da,Ua;return{name:((Qa=ia.uploadResult)==null?void 0:Qa.name)||ia.name,url:((da=ia.uploadResult)==null?void 0:da.url)||"",fileName:((Ua=ia.uploadResult)==null?void 0:Ua.fileName)||ia.name}}),Z=Dr.extractTableHeaders(De.value),ee=D.map(ia=>({name:(ia==null?void 0:ia.fileName)||(ia==null?void 0:ia.name),url:(ia==null?void 0:ia.url)||""})),j=await Dr.recognize(ee,Z);if(console.log(j,"ocrResult"),clearInterval(h),h=null,(j==null?void 0:j.code)===500||(j==null?void 0:j.type)==="error"||!(j!=null&&j.result)){ye.value=0,xe.value.forEach(ia=>{Nl(ia,"failed"),Ol(ia,0)}),ol.ElMessage.error((j==null?void 0:j.message)||"OCR识别失败,请重试"),je.value=!1;return}ye.value=R;const fe=Array.isArray(j==null?void 0:j.result)?j.result:[];if(fe.length===0){ye.value=0,xe.value.forEach(ia=>{Nl(ia,"failed"),Ol(ia,0)}),ol.ElMessage.warning("OCR识别未返回有效数据"),je.value=!1;return}const be=new Set,$e=[];fe.forEach((ia,Qa)=>{const da=ia!=null&&ia.数据&&typeof(ia==null?void 0:ia.数据)=="object"?ia.数据:{},Ua=Array.isArray(ia==null?void 0:ia.图片信息)?ia.图片信息:[],ie=new Map;Ua.forEach(ha=>{ha!=null&&ha.name&&ie.set(ha.name,ha.url||"")});const Ta={_index:Qa,_certType:(ia==null?void 0:ia.证书类型)||"",_certNo:(ia==null?void 0:ia.证书编号)||"",_ocrImages:Ua,__ocrFieldMeta:{}};Object.entries(da).forEach(([ha,Na])=>{let Aa="",M=0,K=[],Ae="";Na&&typeof Na=="object"&&!Array.isArray(Na)?(Aa=(Na==null?void 0:Na.value)??"",M=(Na==null?void 0:Na.score)??0,K=Array.isArray(Na==null?void 0:Na.bboxNorm)?Na==null?void 0:Na.bboxNorm:[],Ae=(Na==null?void 0:Na.imageName)||""):Array.isArray(Na)&&Na.length>=2?(Aa=Na[0]??"",M=Na[1]??0):(Aa=Na??"",M=0),Ta[ha]=Aa,Ta[`${ha}_accuracy`]=M,be.add(ha),Ta.__ocrFieldMeta[ha]={value:Aa,score:M,bboxNorm:K,imageName:Ae,imageUrl:Ae&&ie.get(Ae)||"",images:Ua}}),$e.push(Ta)});const ze=[],We=new Set;$e.forEach(ia=>{ia&&be.forEach(Qa=>{const da=ia[`${Qa}_accuracy`];(typeof da=="number"?da>0:da!=null&&String(da).trim()!==""&&String(da)!=="0")&&We.add(Qa)})}),be.forEach(ia=>{ze.push({prop:ia,label:ia,editable:!0,minWidth:230}),We.has(ia)&&ze.push({prop:`${ia}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),xe.value.forEach(ia=>{Nl(ia,"completed")}),ye.value=100,pe.value=ze,qa.value=$e,_l.value=D,Ha.value=j;const ca=["出厂编号","设备名称","制造厂"],ja=ze.filter(ia=>ia&&!ia.isAccuracy&&typeof ia.prop=="string").map(ia=>ia.prop),Ma=["出厂编号","设备名称","制造厂"];Xa.value=ja.filter(ia=>Ma.includes(ia)),console.log("[OCR] 默认勾选字段 props:",Xa.value),q.value=2,je.value=!1,Ee.value=!1}catch(R){console.error("OCR处理失败:",R),h&&(clearInterval(h),h=null),ol.ElMessage.error(((O=(z=R==null?void 0:R.response)==null?void 0:z.data)==null?void 0:O.message)||"OCR识别失败,请重试"),je.value=!1,ye.value=0,xe.value.forEach(D=>{Nl(D,"pending"),Ol(D,0)})}},Me=d=>{if(d==null)return"";let h=String(d);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,z=>String.fromCharCode(z.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},ge=()=>{var ia,Qa;const d=_l.value,h=Ha.value,z=qa.value;if(!z||z.length===0){ol.ElMessage.warning("暂无数据可添加");return}const O=(ia=pa.getAllLeafNodes(De.value)||[])==null?void 0:ia.filter(da=>(da==null?void 0:da.type)!=="operate"&&(da==null?void 0:da.label)!=="操作"&&(da==null?void 0:da.prop)!=="operate"),R=new Map,D=new Map,Z=(Qa=O==null?void 0:O.find(da=>(da==null?void 0:da.label)==="证书附件"))==null?void 0:Qa.prop;O==null||O.forEach(da=>{da!=null&&da.label&&(da!=null&&da.prop)&&(R.set(da.label,da.prop),D.set(da.prop,da.label))});const ee=Date.now(),j=da=>String(ee*1e3+da),fe=[],be=[],$e=da=>{const Ua=Si&&Si[da]||[da];for(const ie of Ua){const Ta=R.get(ie);if(Ta)return Ta}return""},ze=$e("出厂编号"),We=$e("设备名称"),ca=$e("制造厂"),ja=[],Ma=da=>{var Aa,M;if(!Z)return[];const Ua=(Array.isArray(d)?d[da]:null)||null,ie=(Ua==null?void 0:Ua.url)||"",Ta=(Ua==null?void 0:Ua.fileName)||(Ua==null?void 0:Ua.name)||"";return(String(Ta).toLowerCase().endsWith(".pdf")||String(ie).toLowerCase().endsWith(".pdf"))&&ie?[{url:ie,name:Ta,fileName:Ta}]:(Array.isArray((M=(Aa=h==null?void 0:h.result)==null?void 0:Aa[da])==null?void 0:M.图片信息)?h.result[da].图片信息:[]).map(K=>({url:(K==null?void 0:K.url)||"",name:(K==null?void 0:K.name)||"",fileName:(K==null?void 0:K.name)||""})).filter(K=>K.url)};if(z.forEach((da,Ua)=>{var dl;const ie={id:j(Ua),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[ll,yl]of R.entries())Object.prototype.hasOwnProperty.call(da,ll)&&(ie[yl]=da[ll]);Z&&(ie[Z]=Ma(Ua));const Ta=(Array.isArray(h==null?void 0:h.result)?h.result[Ua]:null)||null,ha=(Array.isArray(d)?d[Ua]:null)||null,Na=(ha==null?void 0:ha.url)||"",Aa=(ha==null?void 0:ha.fileName)||(ha==null?void 0:ha.name)||"",M=String(Aa).toLowerCase().endsWith(".pdf")||String(Na).toLowerCase().endsWith(".pdf"),K={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ua),label:new Date().toLocaleString(),certType:(Ta==null?void 0:Ta.证书类型)||"",certNo:(Ta==null?void 0:Ta.证书编号)||"",fileType:M?"pdf":"image",sourceUrl:M?Na:"",images:Array.isArray(Ta==null?void 0:Ta.图片信息)?Ta.图片信息.map(ll=>({name:(ll==null?void 0:ll.name)||"",url:(ll==null?void 0:ll.url)||""})).filter(ll=>ll.url):[]},Ae=ll=>Me(ll?ie==null?void 0:ie[ll]:""),ua=Ae(ze),ke=Ae(We),fa=Ae(ca);if(!!(ze&&We&&ca&&ua&&ke&&fa)){const ll=(_e.value||[]).find(yl=>{const gl=Me(ze?yl==null?void 0:yl[ze]:""),Vl=Me(We?yl==null?void 0:yl[We]:""),el=Me(ca?yl==null?void 0:yl[ca]:"");return gl&&Vl&&el&&gl===ua&&Vl===ke&&el===fa});if(ll){ja.push({idx:Ua,ocrRow:ie,versionItem:K,ocrNo:ua,candidates:[ll],selectedTargetId:String((ll==null?void 0:ll.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(ua&&ze){const ll=(_e.value||[]).filter(yl=>{const gl=Me(ze?yl==null?void 0:yl[ze]:"");return gl&&gl===ua});if(ll.length>0){ja.push({idx:Ua,ocrRow:ie,versionItem:K,ocrNo:ua,candidates:ll,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ie.sort===void 0||ie.sort===null||String(ie.sort).trim()===""){const ll=(_e.value||[]).map(gl=>Qn(gl==null?void 0:gl.sort)).filter(gl=>gl!==null),yl=ll.length>0?Math.max(...ll):((dl=_e.value)==null?void 0:dl.length)??0;ie.sort=String(Number((yl+1).toFixed(6)))}}catch{}ml(u==null?void 0:u.index,ie.id,K),ja.push({idx:Ua,ocrRow:ie,versionItem:K,ocrNo:ua,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(ja||[]).length>0){Fl.value=(ja||[]).map(da=>({...da,selectedTargetId:(da==null?void 0:da.selectedTargetId)||""})),$l.value=!0,gr.value=be,rr.value=fe,kr.value=h,wr.value=d,Sr.value=Z||"";return}},aa=(d,h,z)=>{qa.value[d]&&(qa.value[d][h]=z)},La=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,tl=d=>{if(d==null||d===0)return"#909399";const h=Number(d);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},rl=d=>{var z,O,R,D;if(Ba.value===d){Ba.value=null,Va.value=!1,Za.value="";return}Ba.value=d,Za.value="";const h=(z=qa.value)==null?void 0:z[d];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){Wl.value=h._ocrImages.map(j=>({name:(j==null?void 0:j.name)||"",url:(j==null?void 0:j.url)||""})).filter(j=>j.name||j.url);const Z=h.__ocrFieldMeta||{},ee=(O=Object.values(Z))==null?void 0:O.find(j=>j==null?void 0:j.imageName);Kl.value=(ee==null?void 0:ee.imageName)||((D=(R=Wl.value)==null?void 0:R[0])==null?void 0:D.name)||"",Va.value=Wl.value.length>0}else Wl.value=[],Va.value=!1,Kl.value=""},cl=()=>{Pa.value=!1,xe.value=[],ea.value=null,q.value=1,oa.value.clear(),ka.value.clear(),ye.value=0,Va.value=!1},Cl=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",ul=d=>{const h=d.uid||d.name;return oa.value.get(h)||"pending"},Bl=d=>{const h=d.uid||d.name;return ka.value.get(h)||0},Ol=(d,h)=>{const z=d.uid||d.name;ka.value.set(z,Math.min(100,Math.max(0,h)))},Yl=d=>{const h=ul(d),z=100.53;if(h==="completed"||h==="uploaded")return`${z} ${z}`;if(h==="failed")return`${z} ${z}`;if(h==="uploading"){const O=Bl(d);return`${z*(O/100)} ${z}`}else if(h==="processing")return`${z*.5} ${z}`;return`0 ${z}`},Nl=(d,h)=>{const z=d.uid||d.name;oa.value.set(z,h),(h==="completed"||h==="uploaded")&&Ol(d,100)},jl=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const h=document.createElement("input");h.type="file",h.multiple=!0,h.accept="image/*,application/pdf",h.style.display="none",h.onchange=async z=>{const O=Array.from(z.target.files||[]);for(const R of O){const D={name:R.name,raw:R,uid:Date.now()+Math.random()};xe.value.push(D),await H(D)}z.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},Ir=()=>{q.value>1&&q.value--},mr=()=>{q.value===1?xe.value.length>0&&!je.value&&de():q.value===2&&(ge(),q.value=3)},Fr=async d=>{await sn(d==null?void 0:d.row)},en=async({row:d,prop:h})=>{!d||!h||await sn(d,h)},sn=async(d,h)=>{var R,D;const z=d==null?void 0:d.id;if(!z){ol.ElMessage.warning("暂无可预览数据");return}let O=Ea(u==null?void 0:u.index,z);if(!O||O.length===0){const Z=sessionStorage.getItem("ocr_root_table_id"),ee=Z!==null?Number(Z):null;if(ee!=null&&ee!==""&&!Number.isNaN(ee)){const j=Ea(ee,z);Array.isArray(j)&&j.length>0&&(Sl(u==null?void 0:u.index,z,j),O=j)}}if(!O||O.length===0){const Z=(R=pa.getAllLeafNodes(De.value)||[])==null?void 0:R.filter(j=>(j==null?void 0:j.type)!=="operate"&&(j==null?void 0:j.label)!=="操作"&&(j==null?void 0:j.prop)!=="operate"),ee=h||((D=Z==null?void 0:Z.find(j=>(j==null?void 0:j.label)==="证书附件"))==null?void 0:D.prop);if(ee&&d[ee]){const j=d[ee];let fe=[],be="",$e=!1;if(typeof j=="string")try{const ze=JSON.parse(j);Array.isArray(ze)&&(fe=ze.map(We=>({name:(We==null?void 0:We.name)||(We==null?void 0:We.fileName)||"",url:(We==null?void 0:We.url)||""})).filter(We=>We.url||We.name),fe.length>0&&(be=fe[0].url||"",$e=String(fe[0].name).toLowerCase().endsWith(".pdf")||String(be).toLowerCase().endsWith(".pdf")))}catch{be=j,$e=String(j).toLowerCase().endsWith(".pdf"),fe=[{name:j,url:j}]}else Array.isArray(j)&&(fe=j.map(ze=>({name:(ze==null?void 0:ze.name)||(ze==null?void 0:ze.fileName)||"",url:(ze==null?void 0:ze.url)||""})).filter(ze=>ze.url||ze.name),fe.length>0&&(be=fe[0].url||"",$e=String(fe[0].name).toLowerCase().endsWith(".pdf")||String(be).toLowerCase().endsWith(".pdf")));if(fe.length>0||be){const ze={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:$e?"pdf":"image",sourceUrl:$e?be:"",images:fe};O=[ze],ml(u==null?void 0:u.index,z,ze)}}}if(!O||O.length===0){ol.ElMessage.warning("暂无可预览数据");return}la.value=O,Ze.value=!0},fo=d=>{xe.value=xe.value.filter((h,z)=>z!==d)},An=async(d,h,z)=>{var O,R,D,Z,ee,j,fe,be,$e,ze,We,ca,ja,Ma,ia,Qa,da,Ua,ie,Ta,ha;if(Oe(u.config,{type:ta.TABLE,tableOperate:d})){if(Qe.value="",qe.value=!0,ra.value=!0,Ie("onButtonClick",d,h),W.value=[],d==="删除")nn.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Na,Aa,M,K;(Na=_e.value)!=null&&Na.find(Ae=>(Ae==null?void 0:Ae.id)===(h==null?void 0:h.id))?_e.value=(Aa=$.cloneDeep(_e.value))==null?void 0:Aa.filter(Ae=>(Ae==null?void 0:Ae.id)!==(h==null?void 0:h.id)):_e.value=ii($.cloneDeep(_e.value),h);try{h!=null&&h.id&&((K=(M=he.value)==null?void 0:M.has)!=null&&K.call(M,h==null?void 0:h.id))&&he.value.delete(h.id)}catch{}pf(Br.value,$n.value,h==null?void 0:h.id),Je.setTableLoading(u==null?void 0:u.index),Ie("change",{content:_e.value,fixContent:[h],index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.compName,buttonName:d,columns:De.value,relatedContents:u==null?void 0:u.related}),console.log(h,"item")});else if(d==="批量删除"){if(((O=ar.value)==null?void 0:O.length)===0)return ol.ElMessage.warning("请先勾选操作的数据");nn.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var M,K,Ae,ua,ke;const Na=(M=ar.value)==null?void 0:M.map(fa=>fa.id);_e.value=(K=$.cloneDeep(_e.value))==null?void 0:K.filter(fa=>!(Na!=null&&Na.includes(fa.id))),Je.setTableLoading(u==null?void 0:u.index),Ie("change",{content:_e.value,fixContent:ar.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:De.value});const Aa=(Na||[]).filter(Boolean);if(Aa.length>0&&Aa.every(fa=>fa!=null&&fa!=="")){const fa=(ar.value||[]).map(Ia=>{const dl={...Ia};return delete dl._isOCRRow,delete dl._ocrTableId,delete dl._isTemp,delete dl.tableEditType,delete dl.index,dl});await $.pageBatchDeleteApi({platId:parseInt((Ae=Rl.value)==null?void 0:Ae.plat_id),changeContents:[{tableName:((ua=u==null?void 0:u.related)==null?void 0:ua.find(Ia=>Ia==null?void 0:Ia.includes("content_")))||((ke=u==null?void 0:u.related)==null?void 0:ke.find(Ia=>Ia==null?void 0:Ia.includes("content"))),tableContents:fa}]})}})}else if(d==="复制新增"){Le.value="复制新增",$.cloneDeep(h);const Na=(R=De.value)==null?void 0:R.find(Aa=>Aa==null?void 0:Aa.isMainKey);Na||((D=De.value)==null||D[0]),Il.value=h,$o(!0)}else if(d==="新增")Le.value="新增",Io(""),ya.value=!0;else if(d==="编辑")Le.value="编辑",Io(h),ya.value=!0;else if(d==="查看")Le.value="查看",Io(h),qe.value=!1,ra.value=!1,ya.value=!0;else if(d==="查看三维模型"){const Na={};for(let M in h)M!=="id"&&(Na[M]=h[M]);let Aa=(Z=Object.values(Na))==null?void 0:Z[1];Re.setTableShowThree(Aa)}else if(d==="切换视图")tu();else if(((ee=z==null?void 0:z.extra)==null?void 0:ee.type)==="modelExample")Le.value=d,ve.value=!0;else if(d==="新建"){let Na=ne.value,Aa=[];for(let ke in Na)ke!=null&&ke.includes(`loading${((j=Rl.value)==null?void 0:j.account)||((fe=Rl.value)==null?void 0:fe.账号)}`)&&(Aa=[...Aa,...ke]);let M=[];for(let ke in Na)ke!=null&&ke.includes(`updateLoading${((be=Rl.value)==null?void 0:be.account)||(($e=Rl.value)==null?void 0:$e.账号)}`)&&(M=[...M,...ke]);let K=Aa==null?void 0:Aa.map(ke=>ke==null?void 0:ke.id);const Ae=M==null?void 0:M.map(ke=>ke==null?void 0:ke.id);K=[...$.cloneDeep(K),...Ae],(K==null?void 0:K.length)>0&&(K!=null&&K.every(ke=>ke!==null&&ke))&&await yr.batchDeleteInsofDataApi({ids:K});const ua=(ze=oe.value)==null?void 0:ze.find(ke=>(ke==null?void 0:ke.label)==="新建");await Zc(!1,ua)}else if(d==="修改模板"){let Na=$.cloneDeep(xa).value;Je.setRouteToChildPath(Na),na.setActiveMenuPath(Na+k)}else if(d==="执行")Zi(d,h);else if(d==="导出paraform"){const Na=Vo.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Aa=["推力","真空","压力","温度","流量"],M=wl=>{var zl,Ul,Al;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((Al=(Ul=(zl=wl==null?void 0:wl._custom)==null?void 0:zl.value)==null?void 0:Ul.value)==null?void 0:Al.value)||"":""},K=Array.isArray(yn.value)?yn.value:[],Ae=M(K.find(wl=>(wl==null?void 0:wl.condition)==="child")),ua=String(Ae||"").slice(0,8),ke=wl=>{if(wl==null)return"";const zl=String(wl).trim();if(!zl)return"";if(/^\d{8}$/.test(zl))return zl;const Ul=zl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Ul){const ur=Ul[1],dr=Ul[2].padStart(2,"0"),Gl=Ul[3].padStart(2,"0");return`${ur}${dr}${Gl}`}const Al=zl.replace(/\D/g,"");return Al.length>=8?Al.slice(0,8):""},fa=async wl=>{var zl,Ul;if(!wl)return"";try{const Al=await Vr("试验任务/任务管理",!1),ur=(tr,lr=[])=>{if(!Array.isArray(tr))return lr;for(const nr of tr)(nr==null?void 0:nr.comp)==="Table"&&(nr!=null&&nr.name)&&lr.push(nr),Array.isArray(nr==null?void 0:nr.children)&&ur(nr.children,lr),Array.isArray(nr==null?void 0:nr.tab)&&ur(nr.tab,lr),Array.isArray(nr==null?void 0:nr.choice)&&ur(nr.choice,lr);return lr},Gl=ur(Al||[]).find(tr=>(tr==null?void 0:tr.name)==="任务列表"),ir=((Ul=(zl=Gl==null?void 0:Gl.compData)==null?void 0:zl.find(tr=>(tr==null?void 0:tr.key)==="tableContents"))==null?void 0:Ul.contents)||[];if(!Array.isArray(ir)||ir.length===0)return"";const $r=ir.find(tr=>String((tr==null?void 0:tr["试验代号(名称)"])||"").slice(0,8)===wl);return ke($r==null?void 0:$r.计划试验时间)}catch(Al){return console.warn("获取任务列表计划试验时间失败:",Al),""}},Ia=(xa.value||"").replace(/\/+$/,""),dl=Ae?`${Ia}/${Ae}`:Ia,ll=await Vr(dl||xa.value,!1),yl=String(ga.value||"").trim(),gl=wl=>String(wl||"").trim(),Vl=(wl,zl=[],Ul="")=>{if(!Array.isArray(wl))return zl;for(const Al of wl){const ur=gl((Al==null?void 0:Al.choiceName)||(Al==null?void 0:Al.name0)||Ul);(Al==null?void 0:Al.comp)==="Table"&&(Al==null?void 0:Al.name)&&Aa.includes(Al.name)&&(!yl||ur===yl)&&zl.push(Al),Array.isArray(Al==null?void 0:Al.children)&&Vl(Al.children,zl,ur),Array.isArray(Al==null?void 0:Al.tab)&&Vl(Al.tab,zl,ur),Array.isArray(Al==null?void 0:Al.choice)&&Vl(Al.choice,zl,ur)}return zl},el=Vl(ll||[]),kl=new Map;for(const wl of el)wl!=null&&wl.name&&!kl.has(wl.name)&&kl.set(wl.name,wl);const Ka=Aa.map(wl=>kl.get(wl)).filter(Boolean);if(!Ka||Ka.length===0)return ol.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const hl=wl=>{const zl=new Map,Ul=(Al,ur=[])=>{if(Array.isArray(Al))for(const dr of Al){const Gl=((dr==null?void 0:dr.label)??"").toString().trim(),ir=Gl?[...ur,Gl]:[...ur];if(Array.isArray(dr==null?void 0:dr.children)&&dr.children.length>0)Ul(dr.children,ir);else{const tr=((dr==null?void 0:dr.prop)??"").toString();if(!tr)continue;const lr=Gl||tr,nr=(ir.length>0?[...ur,lr]:[lr]).join(".");zl.set(tr,nr)}}};return Ul(wl,[]),zl},nl=(wl,zl)=>{const Ul=hl(wl||[]),ur=(pa.getAllLeafNodes(wl||[])||[]).filter(Gl=>(Gl==null?void 0:Gl.prop)&&(Gl==null?void 0:Gl.type)!=="operate"&&(Gl==null?void 0:Gl.label)!=="操作"&&(Gl==null?void 0:Gl.prop)!=="operate"),dr=Array.isArray(zl)?zl:[];return dr.length===0?[]:dr.map(Gl=>{const ir={};return ur.forEach($r=>{const tr=String($r.prop),lr=Ul.get(tr)||String($r.label||$r.prop);ir[lr]=(Gl==null?void 0:Gl[tr])??""}),ir})},vl=Ka.map(wl=>{var dr,Gl;const zl=(wl==null?void 0:wl.compData)||[];let Ul=(dr=zl==null?void 0:zl.find(ir=>(ir==null?void 0:ir.key)==="header"))==null?void 0:dr.contents;Array.isArray(Ul==null?void 0:Ul[0])&&(Ul=Ul[0]);const Al=((Gl=zl==null?void 0:zl.find(ir=>(ir==null?void 0:ir.key)==="tableContents"))==null?void 0:Gl.contents)||[];if(!Array.isArray(Ul)||Ul.length===0||!Array.isArray(Al)||Al.length===0)return null;const ur=nl(Ul||[],Al||[]);return!Array.isArray(ur)||ur.length===0?null:{类型:wl==null?void 0:wl.name,数据:ur}}).filter(Boolean);if(!vl||vl.length===0)return ol.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const El=await fa(ua),Tl={试验代号:ua,试验日期:El,ParaForm:vl},hr=await uo().catch(()=>""),Ll=await $.exportParaformApi(Tl,hr);if(((We=Ll==null?void 0:Ll.data)==null?void 0:We.code)===200&&((ja=(ca=Ll==null?void 0:Ll.data)==null?void 0:ca.result)!=null&&ja.Excel文件)){const wl=Ll.data.result.Excel文件,zl=await $.platformDownloadFile({url:wl}),Ul=new Blob([zl.data],{type:"application/vnd.ms-excel"}),Al=URL.createObjectURL(Ul),ur=In.dayjs().format("YYYYMMDD"),Gl=`${(ua||"UNKNOWN").trim()||"UNKNOWN"}_${ur}_paraform.xls`,ir=document.createElement("a");ir.href=Al,ir.download=Gl,ir.style.display="none",document.body.appendChild(ir),ir.click(),setTimeout(()=>{document.body.removeChild(ir),URL.revokeObjectURL(Al)},100);const $r=Array.isArray((ia=(Ma=Ll==null?void 0:Ll.data)==null?void 0:Ma.result)==null?void 0:ia.warnings)?Ll.data.result.warnings:[];if($r.length>0){const tr=$r.map((lr,nr)=>`${nr+1}. ${(lr==null?void 0:lr.field)||"未知字段"}:${(lr==null?void 0:lr.message)||""}`).join(`
|
|
24
|
-
`);ol.ElMessage.warning({message:`导出成功,但存在以下提示:
|
|
25
|
-
${tr}`,duration:5e3,showClose:!0})}else ol.ElMessage.success("导出成功")}else ol.ElMessage.error(((Qa=Ll==null?void 0:Ll.data)==null?void 0:Qa.message)||"导出失败")}catch(Aa){console.error("导出paraform失败:",Aa),ol.ElMessage.error("导出失败:"+((Aa==null?void 0:Aa.message)||"未知错误"))}finally{Na.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((da=ar.value)==null?void 0:da.length)===0)return ol.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Ua=_e.value)==null?void 0:Ua.length)===0)return ol.ElMessage.warning("暂无数据导出");let Na=["序号",...(Ta=(ie=De.value)==null?void 0:ie.map(Ae=>Ae==null?void 0:Ae.prop))==null?void 0:Ta.filter(Ae=>Ae!=="操作")],Aa=d==="导出全部"?_e.value:ar.value;const M=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Aa=Aa==null?void 0:Aa.map(Ae=>Object.fromEntries(Object.entries(Ae).filter(([ua])=>!M.includes(ua)))),Na=["序号",...Na],Aa=Aa==null?void 0:Aa.map((Ae,ua)=>({序号:ua+1,...Ae}));let K=(u==null?void 0:u.compName)||"表格信息";$i(Aa,K,Na,K)}else if(d==="OCR识别")Pa.value=!0,xe.value=[],q.value=1,oa.value.clear(),ka.value.clear(),ye.value=0;else if(d==="迁移")t.selectRow=h,t.show=!0;else if(d==="生成方法"){let Na=await Af(h),Aa;h!==""?Aa=[h]:Aa=$.cloneDeep(_e.value),Aa=Aa==null?void 0:Aa.map(K=>(K.输出值=Na,K));const M={fixContent:Aa,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:De.value,name:u==null?void 0:u.compName};Ie("change",M)}else if(((ha=z==null?void 0:z.extra)==null?void 0:ha.type)==="methodButton"){let Na;h!==""?Na=[h]:Na=$.cloneDeep(_e.value);const M={fixContent:await ft(Na,De==null?void 0:De.value,"Manual",_e.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:De.value,name:u==null?void 0:u.compName};Ie("change",M)}}},Jc=async(d,h)=>{var z,O,R,D,Z,ee,j,fe,be,$e,ze,We,ca,ja,Ma,ia,Qa,da,Ua,ie;try{let Ta,ha;const Na=(z=ne.value[xa.value+k])==null?void 0:z.filter(Ia=>{var dl;return((dl=Ia==null?void 0:Ia.key)==null?void 0:dl.type)==="structureMethod"}),Aa=(O=ne.value[xa.value+k])==null?void 0:O.filter(Ia=>{var dl;return((dl=Ia==null?void 0:Ia.key)==null?void 0:dl.type)==="structure"}),M=Na==null?void 0:Na.find(Ia=>{var dl,ll;return((ll=(dl=Ia==null?void 0:Ia.value)==null?void 0:dl.pageData)==null?void 0:ll.method)==="保存"});if(!M)return;const K=(ee=(Z=ne.value[(D=(R=M==null?void 0:M.value)==null?void 0:R.pageData)==null?void 0:D.path])==null?void 0:Z.filter(Ia=>{var dl;return((dl=Ia==null?void 0:Ia.key)==null?void 0:dl.type)==="data"}))==null?void 0:ee.find(Ia=>{var dl,ll,yl,gl;return((ll=(dl=Ia==null?void 0:Ia.value)==null?void 0:dl.tableData)==null?void 0:ll.算法名称)===((gl=(yl=M==null?void 0:M.value)==null?void 0:yl.pageData)==null?void 0:gl.method)});if(!K)return;const Ae={buttonName:(fe=(j=M==null?void 0:M.value)==null?void 0:j.pageData)==null?void 0:fe.method,api:($e=(be=K==null?void 0:K.value)==null?void 0:be.tableData)==null?void 0:$e.算法体,content:Aa==null?void 0:Aa.map(Ia=>{var dl;return(dl=Ia==null?void 0:Ia.value)==null?void 0:dl.pageData}),extraContent:[],extraValues:(We=(ze=M==null?void 0:M.value)==null?void 0:ze.pageData)==null?void 0:We.data,methodName:(ja=(ca=M==null?void 0:M.value)==null?void 0:ca.pageData)==null?void 0:ja.path};if(!d)return;const ua={...d,compData:(Ma=d==null?void 0:d.compData)==null?void 0:Ma.map(Ia=>{var dl;return(Ia==null?void 0:Ia.key)==="formContent"?{...Ia,contents:(dl=Ia==null?void 0:Ia.contents)==null?void 0:dl.map(ll=>(ll==null?void 0:ll.prop)===h?{...ll,value:""}:ll)}:Ia})},ke={key:{pageKey:xa.value+k,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:ua}},fa=await ol.axios.post(Ae.api,ke,{headers:{"Content-Type":"application/json"}});return((ia=fa==null?void 0:fa.data)==null?void 0:ia.code)===200&&(Ta=(da=(Qa=fa==null?void 0:fa.data)==null?void 0:Qa.result)==null?void 0:da.latestReportCode,ha=(ie=(Ua=fa==null?void 0:fa.data)==null?void 0:Ua.result)==null?void 0:ie.status),{newMainKeyValue:Ta,newStatus:ha}}catch(Ta){throw ol.ElMessage.error(Ta),new Error(Ta)}},Bt=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Xc=async(d,h,z)=>{var j,fe;let O=d==null?void 0:d[h==null?void 0:h.prop],R=1,D,Z;const ee=$.cloneDeep(xa).value+k+O;if(ee){Bt.value="",D=(j=ne.value[ee])==null?void 0:j.filter(ze=>{var We;return((We=ze==null?void 0:ze.key)==null?void 0:We.type)==="structure"});const be=D==null?void 0:D.find(ze=>{var We,ca,ja;return((ja=(ca=(We=ze==null?void 0:ze.value)==null?void 0:We.pageData)==null?void 0:ca.comp)==null?void 0:ja.toUpperCase())==="FORM"});Z={...(fe=be==null?void 0:be.value)==null?void 0:fe.pageData,id:be==null?void 0:be.id};const $e=await Jc(Z,h==null?void 0:h.prop);if(Bt.value=$e==null?void 0:$e.newStatus,$e!=null&&$e.newMainKeyValue)return $e==null?void 0:$e.newMainKeyValue}if(_e.value.some(be=>(be==null?void 0:be[h==null?void 0:h.prop])===O)){const be=O;for(;_e.value.some($e=>($e==null?void 0:$e[h==null?void 0:h.prop])===`${be}(${R})`);)R++;O=`${be}(${R})`}return O},Zc=async(d,h,z)=>{var D,Z,ee,j;let O,R;if(await Xc(z==null?void 0:z.data,z==null?void 0:z.firstCol),O=$.cloneDeep(xa).value+k,R=$.cloneDeep(O)+`loading${((D=Rl.value)==null?void 0:D.account)||((Z=Rl.value)==null?void 0:Z.账号)}`,h){const fe=(j=(ee=ne.value[R])==null?void 0:ee.filter(be=>{var $e;return(($e=be==null?void 0:be.key)==null?void 0:$e.parentTable)===""}))==null?void 0:j.map(be=>{var $e;return{id:be==null?void 0:be.id,...($e=be==null?void 0:be.value)==null?void 0:$e.pageData}});(fe==null?void 0:fe.length)>0||await pa.loadingConstruct(O,R,null,null,null),Je.setRouteToChildPath($.cloneDeep(xa).value),na.setActiveMenuPath(R)}else Je.setRouteToChildPath($.cloneDeep(xa).value),na.setActiveMenuPath(R)},Qc=()=>{Ge.value=!1,Ya.value=[],za.value=!1},Io=d=>{var D,Z,ee,j,fe,be,$e,ze,We,ca,ja,Ma,ia,Qa,da,Ua,ie,Ta,ha,Na,Aa;const h=[];ue.value=$.cloneDeep(De.value),(Z=pa.getColumnChild((D=$.cloneDeep(De.value))==null?void 0:D.filter(M=>(M==null?void 0:M.label)!=="操作")))==null||Z.forEach((M,K)=>{var Ae,ua,ke;M!=null&&M.formType&&((Ae=M==null?void 0:M.formType)==null?void 0:Ae.toUpperCase())==="SELECT"||M!=null&&M.menuId?h.push({label:(ua=M==null?void 0:M.prop)!=null&&ua.includes(".")?M==null?void 0:M.prop:(M==null?void 0:M.label)??(M==null?void 0:M.prop)??"",name:(M==null?void 0:M.prop)??"t"+K,prop:M==null?void 0:M.prop,type:"Select",value:(d==null?void 0:d[M==null?void 0:M.prop])??(M==null?void 0:M.value)??"",id:(M==null?void 0:M.id)??K,contents:(M==null?void 0:M.options)??[],width:1,isFormColHidden:M==null?void 0:M.isFormColHidden,relatedValueId:M==null?void 0:M.relatedValueId,disabled:M==null?void 0:M.disabled,menus:M==null?void 0:M.menus,groups:M==null?void 0:M.groups,words:M==null?void 0:M.words,allSelectionContents:(M==null?void 0:M.allSelectionContents)??[],filterContent:M==null?void 0:M.filterContent,disabled:(M==null?void 0:M.prop)==="disabled"?!0:M==null?void 0:M.disabled,filter:M==null?void 0:M.filter,bindMenus:M==null?void 0:M.bindMenus,isMainPath:M==null?void 0:M.isMainPath,required:(M==null?void 0:M.required)??!1,relatedContents:M==null?void 0:M.relatedContents,mainKey:M==null?void 0:M.mainKey,relatedContents:M==null?void 0:M.relatedContents,functionName:M==null?void 0:M.functionName,functionRelatedWords:M==null?void 0:M.functionRelatedWords,calculatorFilter:M==null?void 0:M.calculatorFilter}):h.push({label:(ke=M==null?void 0:M.prop)!=null&&ke.includes(".")?M==null?void 0:M.prop:(M==null?void 0:M.label)??(M==null?void 0:M.prop)??"",prop:M==null?void 0:M.prop,name:(M==null?void 0:M.prop)??"t"+K,type:!(M!=null&&M.formType)||(M==null?void 0:M.formType)===""?"Input":M==null?void 0:M.formType,value:(M==null?void 0:M.formType)==="Upload"?(d==null?void 0:d[M==null?void 0:M.prop])??"{}":(d==null?void 0:d[M==null?void 0:M.prop])??(M==null?void 0:M.value)??"",id:(M==null?void 0:M.id)??K,contents:(M==null?void 0:M.options)??[],width:1,isFormColHidden:M==null?void 0:M.isFormColHidden,disabled:(M==null?void 0:M.prop)==="disabled"?!0:M==null?void 0:M.disabled,relatedValueId:M==null?void 0:M.relatedValueId,menus:M==null?void 0:M.menus,groups:M==null?void 0:M.groups,words:M==null?void 0:M.words,filter:M==null?void 0:M.filter,bindMenus:M==null?void 0:M.bindMenus,isMainPath:M==null?void 0:M.isMainPath,required:(M==null?void 0:M.required)??!1,relatedContents:M==null?void 0:M.relatedContents,mainKey:M==null?void 0:M.mainKey,relatedContents:M==null?void 0:M.relatedContents,functionName:M==null?void 0:M.functionName,functionRelatedWords:M==null?void 0:M.functionRelatedWords,calculatorFilter:M==null?void 0:M.calculatorFilter})}),d===""||!d||(Qe.value=(d==null?void 0:d.id)??"");let z=pa.getColumnChild((ee=$.cloneDeep(De.value))==null?void 0:ee.filter(M=>(M==null?void 0:M.label)!=="操作"));sa.value&&((j=sa.value)==null?void 0:j.length)>0&&(sa.value=(fe=$.cloneDeep(sa).value)==null?void 0:fe.map(M=>{var Ae;let K=(M==null?void 0:M.prop)||((Ae=z==null?void 0:z.find(ua=>(ua==null?void 0:ua.label)===(M==null?void 0:M.label)))==null?void 0:Ae.prop);return K&&(M.value=d[K]),M})),Se.value=sa.value&&((be=sa.value)==null?void 0:be.length)>0?pa.getTableFormToForm(sa.value):h,Se.value=(($e=Se.value)==null?void 0:$e.map(M=>({...M,disabled:(M==null?void 0:M.prop)==="disabled"?!0:M==null?void 0:M.disabled})))??Se.value;let O=[],R=((ca=(We=(ze=u.itemData)==null?void 0:ze.filter(M=>(M==null?void 0:M.key)==="filter"))==null?void 0:We[0])==null?void 0:ca.contents)??"";if(R=Ra.analyzeSplitToContent(R,","),(R==null?void 0:R.length)>0&&(O=R.flat()),(O==null?void 0:O.length)>0){let M=O==null?void 0:O.filter(fa=>fa==null?void 0:fa.includes("@Type"));if(M=M==null?void 0:M[(M==null?void 0:M.length)-1],(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)),M){let fa=(Ma=(ja=M==null?void 0:M.replace("=",L))==null?void 0:ja.split(L))==null?void 0:Ma[1];((ia=fa==null?void 0:fa.trim())==null?void 0:ia.toUpperCase())==="MANUAL"&&(u==null||u.index,Se.value=(Qa=Se.value)==null?void 0:Qa.map((Ia,dl)=>Ia))}let K=(da=Se.value)==null?void 0:da.filter(fa=>fa==null?void 0:fa.mainKey),Ae;K==null||K.forEach(fa=>{var dl;if(Ae!==void 0)return;let Ia=fa==null?void 0:fa.menus;((dl=K==null?void 0:K.filter(ll=>ll==null?void 0:ll.mainKey))==null?void 0:dl.length)>1&&(Ae=Ia,fa==null||fa.groups)});let ua=[],ke=new Map;if(K==null||K.forEach(fa=>{var Ia,dl,ll,yl,gl,Vl,el,kl,Ka,hl,nl,vl,El;if((Ia=fa==null?void 0:fa.prop)!=null&&Ia.includes(".")){let Tl=[];ke.get(((ll=(dl=fa==null?void 0:fa.prop)==null?void 0:dl.split("."))==null?void 0:ll[0])+(fa!=null&&fa.isMainPath?0:1)+((yl=fa==null?void 0:fa.groups)==null?void 0:yl[0]))&&(Tl=ke.get(((Vl=(gl=fa==null?void 0:fa.prop)==null?void 0:gl.split("."))==null?void 0:Vl[0])+(fa!=null&&fa.isMainPath?0:1)+((el=fa==null?void 0:fa.groups)==null?void 0:el[0]))),Tl.push(fa),ke.set(((Ka=(kl=fa==null?void 0:fa.prop)==null?void 0:kl.split("."))==null?void 0:Ka[0])+(fa!=null&&fa.isMainPath?0:1)+((hl=fa==null?void 0:fa.groups)==null?void 0:hl[0]),Tl)}else{let Tl=[];ke.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((nl=fa==null?void 0:fa.groups)==null?void 0:nl[0]))&&(Tl=ke.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((vl=fa==null?void 0:fa.groups)==null?void 0:vl[0]))),Tl.push(fa),ke.set("normal"+(fa!=null&&fa.isMainPath?0:1)+((El=fa==null?void 0:fa.groups)==null?void 0:El[0]),Tl)}}),ua=Array.from(ke.values()),(ua==null?void 0:ua.length)>0)for(let fa in ua){let Ia=ua==null?void 0:ua[fa];if((Ia==null?void 0:Ia.length)!==1){if((Ia==null?void 0:Ia.length)>1){let dl=Ia==null?void 0:Ia.map(hl=>hl==null?void 0:hl.prop),ll=Ia==null?void 0:Ia.map(hl=>hl==null?void 0:hl.label),yl=Ia==null?void 0:Ia.map(hl=>hl==null?void 0:hl.value),gl=(Ua=$.cloneDeep(Ia))==null?void 0:Ua[0],Vl=(ie=Se.value)==null?void 0:ie.findIndex(hl=>(hl==null?void 0:hl.prop)===(gl==null?void 0:gl.prop)),el=(Ta=Se.value)==null?void 0:Ta.slice(0,Vl),kl=(Na=Se.value)==null?void 0:Na.slice(Vl,(ha=Se.value)==null?void 0:ha.length);gl.label=ll==null?void 0:ll.join("·"),gl.value=yl==null?void 0:yl.join(" "),gl.value.trim()===""&&(gl.value=""),gl.prop=dl==null?void 0:dl.join("·");let Ka=Ia==null?void 0:Ia.map(hl=>{var nl;return(nl=hl==null?void 0:hl.words)==null?void 0:nl.join(".")});gl.relatedWords=Ka,gl.usingType="parent",kl.unshift(gl),Se.value=[...el,...kl],Se.value=(Aa=Se.value)==null?void 0:Aa.map(hl=>(dl!=null&&dl.find(nl=>nl===(hl==null?void 0:hl.prop))&&(hl.isFormColHidden=!0,hl.relatedWords=Ka),hl))}}}}},eu=()=>{var h;const d=(h=s.value)==null?void 0:h.$el;d&&Ra.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:z=>{var Z;const{oldIndex:O,newIndex:R}=z;if(O===R)return;const D=_n.value.splice(O,1)[0];_n.value.splice(R,0,D),De.value=(Z=De.value)==null?void 0:Z.slice().sort((ee,j)=>{if(ee.label==="操作")return 1;if(j.label==="操作")return-1;const fe=_n.value.findIndex($e=>$e.label===ee.label),be=_n.value.findIndex($e=>$e.label===j.label);return fe-be})}})};a.onMounted(()=>{Ga.value=window.innerWidth-240*2,window.addEventListener("keydown",Go)});const au=()=>{a.nextTick(()=>{eu()})},at=(d,h)=>{var O;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let z;return d.children=(O=d.children)==null?void 0:O.map(R=>{var D,Z;if((R==null?void 0:R.id)===Qe.value){let ee={};for(let j in R){let fe=(D=h==null?void 0:h.find(be=>(be==null?void 0:be.prop)===j))==null?void 0:D.label;fe?ee[j]=(Z=Il.value)==null?void 0:Z[fe]:ee[j]=R[j]??""}R=Object.assign(ee,Il.value),z=R}else{let ee=at(R,h);R=ee==null?void 0:ee.contents,z=ee==null?void 0:ee.currentSelectContents}return R}),{contents:d,currentSelectContents:z}},Tt=(d,h)=>{let z,O;return d!=null&&d.find(R=>(R==null?void 0:R.id)===Qe.value)?z=d==null?void 0:d.map(R=>{var D,Z,ee;if((R==null?void 0:R.id)===Qe.value){let j={};for(let be in R){let $e=(D=h==null?void 0:h.find(ze=>(ze==null?void 0:ze.prop)===be))==null?void 0:D.label;$e?j[be]=((Z=Il.value)==null?void 0:Z[$e])??"":j[be]=R[be]??""}let fe=Il.value;for(let be in j)(ee=Il.value)!=null&&ee[be]||(fe[be]=(j==null?void 0:j[be])??"");R=fe,O=R}return R}):z=d==null?void 0:d.map(R=>{var D,Z,ee,j;if((R==null?void 0:R.id)===Qe.value){let fe={};for(let be in R){let $e=(D=h==null?void 0:h.find(ze=>(ze==null?void 0:ze.prop)===be))==null?void 0:D.label;$e?fe[be]=(Z=Il.value)==null?void 0:Z[$e]:fe[be]=R[be]??""}R=Object.assign(fe,Il.value),O=R}else R=(ee=at(R,h))==null?void 0:ee.contents,O=(j=at(R,h))==null?void 0:j.currentSelectContents;return R}),{newContents:z,currentSelectContents:O}},At=(d,h,z)=>{var O,R;return d[h==null?void 0:h.prop]=z,typeof d.id=="number"&&(d.id=(O=d.id)==null?void 0:O.toString()),d.children&&((R=d.children)==null?void 0:R.length)>0&&(d.children=d.children.map(At)),d},zt=d=>{var z;const h=[];return h.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((z=d.children)==null||z.forEach(O=>{h.push(...zt(O))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(O=>{const R={...O};return delete R.children,R}):[]},ti=["Pacific6000数据采集装置.通道号","通道号"],Lo=d=>{if(!d)return"";const h=ti.map(z=>d==null?void 0:d[z]).find(z=>z!=null&&String(z).trim()!=="");return h==null?"":String(h).trim()},lt=async(d,h=void 0)=>{if(!d)return!1;try{const z=We=>{var ca,ja,Ma;return We?typeof(We==null?void 0:We.value)=="string"?We.value:((Ma=(ja=(ca=We==null?void 0:We._custom)==null?void 0:ca.value)==null?void 0:ja.value)==null?void 0:Ma.value)||"":""},O=Array.isArray(yn.value)?yn.value:[],R=z(O.find(We=>(We==null?void 0:We.condition)==="child")),D=(xa.value||"").replace(/\/+$/,""),Z=R?`${D}/${R}`:D,ee=await Vr(Z||xa.value,!1),j=String(ga.value||"").trim(),fe=We=>String(We||"").trim(),be=(We,ca=[],ja="")=>{if(!Array.isArray(We))return ca;for(const Ma of We){const ia=fe((Ma==null?void 0:Ma.choiceName)||(Ma==null?void 0:Ma.name0)||ja);(Ma==null?void 0:Ma.comp)==="Table"&&(!j||ia===j)&&ca.push(Ma),Array.isArray(Ma==null?void 0:Ma.children)&&be(Ma.children,ca,ia),Array.isArray(Ma==null?void 0:Ma.tab)&&be(Ma.tab,ca,ia),Array.isArray(Ma==null?void 0:Ma.choice)&&be(Ma.choice,ca,ia)}return ca},$e=be(ee||[]),ze=String((u==null?void 0:u.compName)||"");return $e.some(We=>{var ja,Ma;const ca=((Ma=(ja=We==null?void 0:We.compData)==null?void 0:ja.find(ia=>(ia==null?void 0:ia.key)==="tableContents"))==null?void 0:Ma.contents)||[];return!Array.isArray(ca)||ca.length===0?!1:ca.some(ia=>{if(String((We==null?void 0:We.name)||"")===ze&&(ia==null?void 0:ia.id)===h)return!1;const da=Lo(ia);return!!da&&da===d})})}catch{return(_e.value||[]).some(O=>{if((O==null?void 0:O.id)===h)return!1;const R=Lo(O);return!!R&&R===d})}},$o=async(d=!0,h,z)=>{var fe,be,$e,ze,We,ca,ja,Ma,ia,Qa,da,Ua,ie,Ta,ha,Na,Aa,M,K,Ae,ua,ke,fa,Ia,dl,ll,yl,gl,Vl,el,kl;if(Il.value){const Ka=(be=pa.getColumnChild((fe=$.cloneDeep(De.value))==null?void 0:fe.filter(nl=>(nl==null?void 0:nl.label)!=="操作")))==null?void 0:be.filter(nl=>(nl==null?void 0:nl.required)===!0);for(let nl=0;nl<((Ka==null?void 0:Ka.length)??0);nl++){const vl=Ka[nl],El=vl==null?void 0:vl.prop,Tl=(vl==null?void 0:vl.label)??El,hr=($e=Il.value)==null?void 0:$e[El];if(hr===""||hr===null||hr===void 0||Array.isArray(hr)&&hr.length===0){ol.ElMessage.error(`${Tl}不能为空`);return}}const hl=Lo(Il.value);if(hl&&await lt(hl,Qe.value||void 0)){ol.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let O=pa.getColumnChild((ze=$.cloneDeep(De.value))==null?void 0:ze.filter(Ka=>(Ka==null?void 0:Ka.label)!=="操作")),R,D=$.cloneDeep(_e.value);if(!Il.value){ya.value=!1;return}if(Qe.value===""){Pe.value++;let Ka;Ka={id:Pe.value.toString()};try{Ka.sort=Tn(0,_e.value||[])}catch{}Ka!=null&&Ka.children&&(Ka={...Ka,children:(We=Ka.children)==null?void 0:We.map(nl=>At(nl,h,z))});const hl=Object.assign(Il.value,Ka);D.unshift(hl),R=hl}else D=(ca=Tt(D,O))==null?void 0:ca.newContents,R=(ja=Tt(D,O))==null?void 0:ja.currentSelectContents;const Z=(Ma=u.itemData)==null?void 0:Ma.filter(Ka=>(Ka==null?void 0:Ka.key)==="childTree")[0];if(((ia=Z==null?void 0:Z.contents)==null?void 0:ia.length)>0){Le.value="编辑";const Ka=[];D==null||D.forEach((vl,El)=>{var hr;let Tl={};if(Array.isArray(vl)){let Ll=[];vl==null||vl.filter(wl=>!(wl!=null&&wl.id)).forEach((wl,zl)=>{var Ul,Al,ur,dr,Gl,ir,$r;if((Al=(Ul=Nr.value)==null?void 0:Ul[zl])!=null&&Al.prop&&!Array.isArray(wl)){let tr={};tr[Nr.value[zl].column]=wl,Fa!=null&&Fa.value&&((ur=Fa==null?void 0:Fa.value)==null?void 0:ur.length)>0&&((dr=Fa==null?void 0:Fa.value)!=null&&dr.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(tr)))&&(Ll=(Gl=Fa==null?void 0:Fa.value)==null?void 0:Gl.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(tr))),Ll&&Ll.length>0?Tl[Nr.value[zl].prop]=Ll!=null&&Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Nr.value[zl].column})?(ir=Ll==null?void 0:Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Nr.value[zl].column}))==null?void 0:ir[Nr.value[zl].column]:wl:Tl[Nr.value[zl].prop]=wl}else Array.isArray(wl)&&(($r=Nr.value[zl])!=null&&$r.prop?Tl[Nr.value[zl].prop]=wl:Tl.children=ht(wl,Nr.value))})}else Tl=vl;if(Array.isArray(vl)&&vl.some(Ll=>Ll==null?void 0:Ll.id)){const Ll=(hr=vl==null?void 0:vl.find(wl=>wl.id))==null?void 0:hr.id;Ka.push(Object.assign(Tl,{id:li(Ll)}))}else Tl.id?Ka.push(Tl):Ka.push(Object.assign(Tl,{id:El.toString()}))});const hl=(_e.value||[]).map(vl=>String(vl==null?void 0:vl.id)),nl=ri(Ka,hl);_e.value=Lt(nl,Z,De.value)}Ot(_e.value),Br.value=_e.value;const ee=hf(Br.value,$n.value,D);let j=[];if(P.value?(j=(Qa=$.cloneDeep(P).value.singleContent)==null?void 0:Qa.filter(Ka=>(Ka==null?void 0:Ka.id)!==(R==null?void 0:R.id)),j.push(R)):j=[R],Ml.value){const Ka={content:ee,singleContent:((da=Z==null?void 0:Z.contents)==null?void 0:da.length)>0?j==null?void 0:j.flatMap(zt):j,index:u==null?void 0:u.index,buttonName:"编辑",column:De.value,parentTableId:u==null?void 0:u.parentTableId};Je.setCacheUpdatingData(Ka)}if((Ua=De.value)==null||Ua.forEach(Ka=>{(Ka==null?void 0:Ka.formType)==="Upload"&&(R[Ka.prop]=R[Ka.prop]===""?"{}":typeof R[Ka.prop]!="string"?JSON.stringify(R[Ka.prop]):R[Ka.prop])}),d){(Na=(ha=(Ta=(ie=u.itemData)==null?void 0:ie.find(nl=>(nl==null?void 0:nl.key)==="filterAllType"))==null?void 0:Ta.value)==null?void 0:ha.find(nl=>(nl==null?void 0:nl.value)==="onConditionContents"))==null||Na.content;let Ka=(Aa=u.itemData)==null?void 0:Aa.filter(nl=>(nl==null?void 0:nl.key)==="filterAllType");Ka=Array.from(new Map(Ka.filter(Boolean).map((nl,vl)=>[nl.value,{...nl,_idx:vl}])).values()).sort((nl,vl)=>nl._idx-vl._idx).map(({_idx:nl,...vl})=>vl),Ka=(M=Ka==null?void 0:Ka[(Ka==null?void 0:Ka.length)-1])==null?void 0:M.value;const hl={fixContent:[R],buttonName:Le.value,relatedContents:u==null?void 0:u.related,columns:De.value,name:u==null?void 0:u.compName};Je.setTableLoading(u==null?void 0:u.index),ya.value=!1,Il.value=void 0,Ie("change",hl)}if((ua=(Ae=(K=Se.value)==null?void 0:K[0])==null?void 0:Ae.optionUrl)!=null&&ua.menuId){ya.value=!1;let Ka=(ke=u.itemData)==null?void 0:ke.filter(hl=>(hl==null?void 0:hl.key)==="filterAllType");if((Ka==null?void 0:Ka.length)>0){let hl=Ka==null?void 0:Ka.map(El=>El==null?void 0:El.value),nl=(dl=(Ia=(fa=hl.flat().find(El=>{var Tl;return(Tl=El==null?void 0:El.content)==null?void 0:Tl.includes("@Num")}))==null?void 0:fa.content)==null?void 0:Ia.split(":"))==null?void 0:dl[1];((gl=(yl=(ll=hl.flat().find(El=>{var Tl;return(Tl=El==null?void 0:El.content)==null?void 0:Tl.includes("@Type:")}))==null?void 0:ll.content)==null?void 0:yl.split(":"))==null?void 0:gl[1])!=="Manual"&&(nl=parseInt(nl),_e.value=(kl=_e.value)==null?void 0:kl.slice(((Vl=_e.value)==null?void 0:Vl.length)-nl,(el=_e.value)==null?void 0:el.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",Go),De.value=[],_e.value=[],ue.value=[],Sa.value=[],sa.value=[],Oa.value=[],Ya.value=[],ba.value=[],Se.value=[],ar.value=[],s.value=null,Dn.value=""});const si=async(d,h,z)=>{var We,ca,ja,Ma,ia,Qa,da,Ua,ie,Ta,ha,Na,Aa;Pl.value=(z==null?void 0:z.prop)??(z==null?void 0:z.property);const O=$.cloneDeep(u.itemData),R=((We=O==null?void 0:O.find(M=>(M==null?void 0:M.key)==="header"))==null?void 0:We.contents)??[];let D=R==null?void 0:R.find((M,K)=>{var Ae,ua,ke;return(M==null?void 0:M.prop)===Pl.value||(M==null?void 0:M.label)===Pl.value||(K==null?void 0:K.toString())===((ke=(ua=(Ae=Pl.value)==null?void 0:Ae.split("a"))==null?void 0:ua[1])==null?void 0:ke.toString())});const Z=pa.getColumnChild((ca=$.cloneDeep(De.value))==null?void 0:ca.filter(M=>(M==null?void 0:M.label)!=="操作"));if(D||(D=Z==null?void 0:Z.find(M=>(M==null?void 0:M.prop)===Pl.value||(M==null?void 0:M.label)===Pl.value)),D&&!((ja=D==null?void 0:D.menus)!=null&&ja.length)&&!((Ma=D==null?void 0:D.groups)!=null&&Ma.length)&&!((ia=D==null?void 0:D.words)!=null&&ia.length)){const M=(Qa=Se.value)==null?void 0:Qa.find(K=>(K==null?void 0:K.prop)===Pl.value);M&&(D={...D,menus:(M==null?void 0:M.menus)??(D==null?void 0:D.menus),groups:(M==null?void 0:M.groups)??(D==null?void 0:D.groups),words:(M==null?void 0:M.words)??(D==null?void 0:D.words),bindMenus:(M==null?void 0:M.bindMenus)??(D==null?void 0:D.bindMenus),isMainPath:(M==null?void 0:M.isMainPath)??(D==null?void 0:D.isMainPath),relatedContents:(M==null?void 0:M.relatedContents)??(D==null?void 0:D.relatedContents),endChildMenu:(M==null?void 0:M.endChildMenu)??(D==null?void 0:D.endChildMenu)})}if(D&&((da=Se==null?void 0:Se.value)==null||da.forEach(M=>{var K,Ae,ua,ke,fa;(M==null?void 0:M.prop)===(D==null?void 0:D.prop)&&(M!=null&&M.endChildMenu)&&((K=D==null?void 0:D.prop)!=null&&K.includes(".")&&((ua=(Ae=D==null?void 0:D.prop)==null?void 0:Ae.split("."))==null?void 0:ua[0])!==((fa=(ke=M==null?void 0:M.prop)==null?void 0:ke.split("."))==null?void 0:fa[0])?D.endChildMenu=M==null?void 0:M.value:D.endChildMenu=M==null?void 0:M.endChildMenu)})),!D)return;const ee=Pl.value,j=(Ua=_e.value)==null?void 0:Ua.findIndex(M=>(M==null?void 0:M.id)===(h==null?void 0:h.id));j!==-1&&ee&&(_e.value[j]={..._e.value[j],[ee]:d});const fe=M=>{Array.isArray(M)&&M.forEach(K=>{Array.isArray(K==null?void 0:K.allSelectionContents)&&K.allSelectionContents.length>0&&(K.contactValue=_e.value[j]??h),Array.isArray(K==null?void 0:K.children)&&K.children.length>0&&fe(K.children)})};fe(De.value),D.value=d,D.endChildMenu=D.endChildMenu||"";let be=D!=null&&D.isMainPath&&(D!=null&&D.mainKey)?D==null?void 0:D.value:"";const $e=M=>{Array.isArray(M)&&M.forEach(K=>{var ua,ke;if(((K==null?void 0:K.type)==="Select"||(K==null?void 0:K.formType)&&K.formType.toUpperCase()==="SELECT"||(K==null?void 0:K.columnType)&&K.columnType.toUpperCase()==="SELECT")&&Array.isArray(K==null?void 0:K.menus)&&K.menus.length>0&&K.menus[K.menus.length-1]===""&&(D!=null&&D.isMainPath)&&(D!=null&&D.mainKey)){const fa=(ua=K==null?void 0:K.prop)!=null&&ua.includes(".")?K.prop.split(".")[0]:null,Ia=(ke=D==null?void 0:D.prop)!=null&&ke.includes(".")?D.prop.split(".")[0]:null;(!fa||!Ia||fa===Ia)&&(K.endChildMenu=be)}Array.isArray(K==null?void 0:K.children)&&K.children.length>0&&$e(K.children)})};if($e(De.value),!!(D!=null&&D.mainKey)&&Array.isArray(D==null?void 0:D.menus)&&(D==null?void 0:D.menus.length)>0&&(D!=null&&D.value)&&(D==null?void 0:D.value)!==""){let M=D!=null&&D.relatedContents&&((ie=D==null?void 0:D.relatedContents)==null?void 0:ie.length)>0?(Ta=D==null?void 0:D.relatedContents)==null?void 0:Ta.find(K=>{var Ae,ua,ke,fa;return(K==null?void 0:K[(fa=(Ae=D==null?void 0:D.prop)==null?void 0:Ae.split("."))==null?void 0:fa[((ke=(ua=D==null?void 0:D.prop)==null?void 0:ua.split("."))==null?void 0:ke.length)-1]])===(D==null?void 0:D.value)}):await is(D);if(M){const K={...h};Z==null||Z.forEach(Ae=>{var ua,ke,fa,Ia,dl,ll,yl,gl,Vl,el,kl,Ka,hl,nl,vl,El;(Ae==null?void 0:Ae.prop)!==(D==null?void 0:D.prop)&&(D!=null&&D.relatedContents&&((ua=D==null?void 0:D.relatedContents)==null?void 0:ua.length)>0?(ke=Ae==null?void 0:Ae.prop)!=null&&ke.includes(".")&&((Ia=(fa=Ae==null?void 0:Ae.prop)==null?void 0:fa.split("."))==null?void 0:Ia[0])===((ll=(dl=D==null?void 0:D.prop)==null?void 0:dl.split("."))==null?void 0:ll[0])?K[Ae.prop]=M[(el=(yl=Ae==null?void 0:Ae.prop)==null?void 0:yl.split("."))==null?void 0:el[((Vl=(gl=Ae==null?void 0:Ae.prop)==null?void 0:gl.split("."))==null?void 0:Vl.length)-1]]??K[Ae.prop]:K[Ae.prop]=(M==null?void 0:M[Ae.prop])??K[Ae.prop]:Ra.same((D==null?void 0:D.menus)??[],(Ae==null?void 0:Ae.menus)??[])&&Ra.same((D==null?void 0:D.groups)??[],(Ae==null?void 0:Ae.groups)??[])&&!Ra.same((D==null?void 0:D.words)??[],(Ae==null?void 0:Ae.words)??[])?(kl=Ae==null?void 0:Ae.prop)!=null&&kl.includes(".")&&((hl=(Ka=Ae==null?void 0:Ae.prop)==null?void 0:Ka.split("."))==null?void 0:hl[0])!==((vl=(nl=D==null?void 0:D.prop)==null?void 0:nl.split("."))==null?void 0:vl[0])||(K[Ae.prop]=(M==null?void 0:M[(El=Ae==null?void 0:Ae.words)==null?void 0:El.join(".")])??(M==null?void 0:M[Ae.prop])??K[Ae.prop]):(!(Ae!=null&&Ae.isMainPath)&&Ra.same((D==null?void 0:D.bindMenus)??[],(Ae==null?void 0:Ae.bindMenus)??[]),K[Ae.prop]=(M==null?void 0:M[Ae.prop])??K[Ae.prop]))}),_e.value=(ha=$.cloneDeep(_e.value))==null?void 0:ha.map(Ae=>(Ae==null?void 0:Ae.id)===(h==null?void 0:h.id)?{...K,id:Ae==null?void 0:Ae.id}:Ae)}}if((Na=D==null?void 0:D.optionUrl)!=null&&Na.menuSelect){let M="";Z==null||Z.forEach(ua=>{var ke,fa,Ia,dl,ll;M===""&&((Ia=(fa=(ke=ua==null?void 0:ua.optionUrl)==null?void 0:ke.groupSelect)==null?void 0:fa[1])!=null&&Ia.includes("["))&&(M=(ll=(dl=ua==null?void 0:ua.optionUrl)==null?void 0:dl.groupSelect)==null?void 0:ll[1])});let K=await vt(D),Ae;if(K==null||K.forEach(ua=>{var ke,fa,Ia,dl,ll,yl,gl,Vl,el,kl;M===((fa=(ke=D==null?void 0:D.optionUrl)==null?void 0:ke.groupSelect)==null?void 0:fa[1])&&((ll=(dl=(Ia=D==null?void 0:D.optionUrl)==null?void 0:Ia.groupSelect)==null?void 0:dl[1])!=null&&ll.includes("["))&&((kl=$.cloneDeep(ua))==null?void 0:kl[(el=(Vl=(gl=(yl=D==null?void 0:D.optionUrl)==null?void 0:yl.groupSelect)==null?void 0:gl[1])==null?void 0:Vl.replaceAll("[",""))==null?void 0:el.replaceAll("]","")])===(D==null?void 0:D.value)&&(Ae=ua)}),Ae){const ua={...h};Z==null||Z.forEach(ke=>{var fa,Ia,dl,ll,yl,gl,Vl,el,kl,Ka,hl;(Ae!=null&&Ae[ke==null?void 0:ke.label]||Ae!=null&&Ae[(ll=(dl=(Ia=(fa=ke==null?void 0:ke.optionUrl)==null?void 0:fa.groupSelect)==null?void 0:Ia[1])==null?void 0:dl.replaceAll("[",""))==null?void 0:ll.replaceAll("]","")])&&((Vl=(gl=(yl=ke==null?void 0:ke.optionUrl)==null?void 0:yl.groupSelect)==null?void 0:gl[1])!=null&&Vl.includes("["))&&(ua[ke.prop]=(Ae==null?void 0:Ae[ke==null?void 0:ke.label])||(Ae==null?void 0:Ae[(hl=(Ka=(kl=(el=ke==null?void 0:ke.optionUrl)==null?void 0:el.groupSelect)==null?void 0:kl[1])==null?void 0:Ka.replaceAll("[",""))==null?void 0:hl.replaceAll("]","")]))}),_e.value=(Aa=$.cloneDeep(_e.value))==null?void 0:Aa.map(ke=>(ke==null?void 0:ke.id)===(h==null?void 0:h.id)?{...ua,id:ke==null?void 0:ke.id}:ke)}}},lu=async d=>{var We,ca,ja,Ma,ia,Qa,da,Ua,ie,Ta,ha,Na,Aa,M;if(!d)return;const h=$.cloneDeep(Il.value||{});Il.value=d;const z=Lo(h),O=Lo(Il.value);if(O&&O!==z&&await lt(O,Qe.value||void 0)){ol.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ti.forEach(Ae=>{if(Object.prototype.hasOwnProperty.call(Il.value||{},Ae)||Object.prototype.hasOwnProperty.call(h||{},Ae)){const ua=(h==null?void 0:h[Ae])??"";Il.value[Ae]=ua,d[Ae]=ua}}),Se.value=(Se.value||[]).map(Ae=>{if(!(Ae!=null&&Ae.prop)||!ti.includes(Ae.prop))return Ae;const ua=(h==null?void 0:h[Ae.prop])??"";return{...Ae,value:ua,selectValue:ua===""?[]:[ua]}});return}let R=$.cloneDeep(u.itemData);R==null||R.map(K=>{var Ae,ua,ke,fa;return(K==null?void 0:K.key)==="header"&&(Array.isArray((Ae=K.contents)==null?void 0:Ae[0])?K.contents=(ke=pa.getColumnChild((ua=K.contents)==null?void 0:ua[0]))==null?void 0:ke.map((Ia,dl)=>{var ll,yl,gl,Vl,el,kl;return((gl=(yl=(ll=Se.value)==null?void 0:ll.find(Ka=>(Ka==null?void 0:Ka.prop)===(Ia==null?void 0:Ia.prop)))==null?void 0:yl.optionUrl)==null?void 0:gl.multiple)===!0&&!Array.isArray((Vl=Object.values(d))==null?void 0:Vl[dl])?Ia.value=[(el=Object.values(d))==null?void 0:el[dl]]:Ia.value=(kl=Object.values(d))==null?void 0:kl[dl],Ia}):K.contents=(fa=K.contents)==null?void 0:fa.map((Ia,dl)=>{var ll,yl,gl,Vl,el,kl;return((gl=(yl=(ll=Se.value)==null?void 0:ll.find(Ka=>(Ka==null?void 0:Ka.prop)===(Ia==null?void 0:Ia.prop)))==null?void 0:yl.optionUrl)==null?void 0:gl.multiple)===!0&&!Array.isArray((Vl=Object.values(d))==null?void 0:Vl[dl])?Ia.value=[(el=Object.values(d))==null?void 0:el[dl]]:Ia.value=(kl=Object.values(d))==null?void 0:kl[dl],Ia})),K});let D=Se.value,Z=(We=R==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:We.contents;if(Pl.value||(D=D==null?void 0:D.map(K=>{var Ae;return K.value=K.value??((Ae=Z==null?void 0:Z.find((ua,ke)=>(ua==null?void 0:ua.prop)===(K==null?void 0:K.name)))==null?void 0:Ae.value),K})),!zr.value)return;let ee=$.cloneDeep(Pl.value);(ca=Pl.value)!=null&&ca.includes("·")&&(Pl.value=(Ma=(ja=Pl.value)==null?void 0:ja.split("·"))==null?void 0:Ma[0]);let j=(Qa=(ia=R==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:ia.contents)==null?void 0:Qa.find((K,Ae)=>(K==null?void 0:K.prop)===Pl.value);(da=Se==null?void 0:Se.value)==null||da.forEach(K=>{var Ae,ua,ke,fa,Ia,dl,ll,yl,gl;(K==null?void 0:K.prop)===(j==null?void 0:j.prop)&&(K!=null&&K.endChildMenu)&&((Ae=j==null?void 0:j.prop)!=null&&Ae.includes(".")&&((ke=(ua=j==null?void 0:j.prop)==null?void 0:ua.split("."))==null?void 0:ke[0])!==((Ia=(fa=K==null?void 0:K.prop)==null?void 0:fa.split("."))==null?void 0:Ia[0])?j.endChildMenu=(ll=(dl=K==null?void 0:K.value)==null?void 0:dl.split(" "))==null?void 0:ll[0]:j.endChildMenu=(gl=(yl=K==null?void 0:K.endChildMenu)==null?void 0:yl.split(" "))==null?void 0:gl[0])});let fe=j!=null&&j.isMainPath&&(j!=null&&j.mainKey)?j==null?void 0:j.value:"",be=D,$e=we.value;if($e!=null&&$e.find(K=>(j==null?void 0:j.prop)===(K==null?void 0:K.key))&&($e=$e==null?void 0:$e.filter(K=>(j==null?void 0:j.prop)!==(K==null?void 0:K.key))),$e!=null&&$e.find(K=>ee===(K==null?void 0:K.key))&&($e=$e==null?void 0:$e.filter(K=>ee!==(K==null?void 0:K.key))),(j==null?void 0:j.formType)==="Select"&&(be=be==null?void 0:be.map(K=>{var Ae,ua,ke,fa,Ia,dl,ll,yl,gl,Vl,el,kl,Ka,hl,nl,vl;return(K==null?void 0:K.type)==="Select"&&(((Ae=K==null?void 0:K.allSelectionContents)==null?void 0:Ae.length)>0&&(K.contactValue=d),((j==null?void 0:j.prop)===(K==null?void 0:K.prop)||ee===(K==null?void 0:K.prop))&&j&&(Array.isArray(j.value)&&((ua=j.value)==null?void 0:ua.length)>0&&((ke=j.value)!=null&&ke.every(El=>typeof El=="string"))?($e.push({key:K==null?void 0:K.prop,value:[(Ia=j.value)==null?void 0:Ia[((fa=j.value)==null?void 0:fa.length)-1]]}),K.selectValue=(dl=$e==null?void 0:$e.find(El=>(El==null?void 0:El.key)===(K==null?void 0:K.prop)))==null?void 0:dl.value):Array.isArray(j.value)&&((ll=j.value)==null?void 0:ll.length)===0?($e=[],K.selectValue=[],d[K==null?void 0:K.prop]=""):Array.isArray(K.value)&&$e.push({key:K==null?void 0:K.prop,value:[(yl=K.value)==null?void 0:yl[(K==null?void 0:K.length)-1]]})),((Vl=K==null?void 0:K.menus)==null?void 0:Vl[((gl=K==null?void 0:K.menus)==null?void 0:gl.length)-1])===""&&(j!=null&&j.isMainPath)&&(j!=null&&j.mainKey)&&((el=K==null?void 0:K.prop)!=null&&el.includes(".")&&((Ka=(kl=K==null?void 0:K.prop)==null?void 0:kl.split("."))==null?void 0:Ka[0])!==((nl=(hl=j==null?void 0:j.prop)==null?void 0:hl.split("."))==null?void 0:nl[0])||(K.endChildMenu=(vl=fe==null?void 0:fe.split(" "))==null?void 0:vl[0]))),K.value=(d==null?void 0:d[K==null?void 0:K.prop])??(K==null?void 0:K.value),K})),we.value=$e,be!=null&&be.some(K=>(K==null?void 0:K.functionName)&&(K==null?void 0:K.functionName)!=="")){let K=await ft([d],De==null?void 0:De.value,"Auto",_e.value),Ae=[];(Ua=be==null?void 0:be.filter(ke=>(ke==null?void 0:ke.functionName)&&(ke==null?void 0:ke.functionName)!==""))==null||Ua.forEach(ke=>{var fa;((fa=ke==null?void 0:ke.functionRelatedWords)==null?void 0:fa.length)>0&&(Ae=[...Ae,...ke==null?void 0:ke.functionRelatedWords])}),Ae=Ae==null?void 0:Ae.filter(ke=>(ke==null?void 0:ke[0])!=="@");let ua=[];for(let ke in K==null?void 0:K[0])Ae!=null&&Ae.find(fa=>ke===fa||(ke==null?void 0:ke.includes("."+fa)))&&ua.push(((ie=K==null?void 0:K[0])==null?void 0:ie[ke])!=="");(K==null?void 0:K.length)>0&&ua.every(ke=>ke)&&(be=be==null?void 0:be.map(ke=>{var fa;return ke.value=((fa=K==null?void 0:K[0])==null?void 0:fa[ke==null?void 0:ke.prop])??ke.value,ke})),Il.value=K==null?void 0:K[0]}if(Se.value=be,j=Object.assign({},j??{},{relatedWords:(ha=(Ta=Se==null?void 0:Se.value)==null?void 0:Ta.find(K=>(K==null?void 0:K.prop)===(j==null?void 0:j.prop)))==null?void 0:ha.relatedWords}),(j==null?void 0:j.mainKey)&&(j!=null&&j.value)&&(j==null?void 0:j.value)!==""){let K=j!=null&&j.relatedContents&&((Na=j==null?void 0:j.relatedContents)==null?void 0:Na.length)>0?(Aa=j==null?void 0:j.relatedContents)==null?void 0:Aa.find(Ae=>{var ua,ke,fa,Ia;return(Ae==null?void 0:Ae[(Ia=(ua=j==null?void 0:j.prop)==null?void 0:ua.split("."))==null?void 0:Ia[((fa=(ke=j==null?void 0:j.prop)==null?void 0:ke.split("."))==null?void 0:fa.length)-1]])===(j==null?void 0:j.value)}):await is(j);if(K&&JSON.stringify(K)!=="{}"){let Ae=be;Ae=Ae==null?void 0:Ae.map(ke=>{var fa,Ia,dl,ll,yl,gl,Vl,el,kl,Ka,hl,nl,vl,El,Tl,hr,Ll,wl,zl,Ul,Al;return(j==null?void 0:j.prop)===(ke==null?void 0:ke.prop)?ke.value=(K==null?void 0:K[(fa=ke==null?void 0:ke.words)==null?void 0:fa.join(".")])??(K==null?void 0:K[ke==null?void 0:ke.prop])??K[(yl=(Ia=ke==null?void 0:ke.prop)==null?void 0:Ia.split("."))==null?void 0:yl[((ll=(dl=ke==null?void 0:ke.prop)==null?void 0:dl.split("."))==null?void 0:ll.length)-1]]:j!=null&&j.relatedContents&&((gl=j==null?void 0:j.relatedContents)==null?void 0:gl.length)>0?ke.value=(Vl=ke==null?void 0:ke.prop)!=null&&Vl.includes(".")&&((kl=(el=ke==null?void 0:ke.prop)==null?void 0:el.split("."))==null?void 0:kl[0])===((hl=(Ka=j==null?void 0:j.prop)==null?void 0:Ka.split("."))==null?void 0:hl[0])?K[(Tl=(nl=ke==null?void 0:ke.prop)==null?void 0:nl.split("."))==null?void 0:Tl[((El=(vl=ke==null?void 0:ke.prop)==null?void 0:vl.split("."))==null?void 0:El.length)-1]]:(K==null?void 0:K[ke==null?void 0:ke.prop])??(ke==null?void 0:ke.value):Ra.same((j==null?void 0:j.menus)??[],(ke==null?void 0:ke.menus)??[])&&Ra.same((j==null?void 0:j.groups)??[],(ke==null?void 0:ke.groups)??[])&&!Ra.same((j==null?void 0:j.words)??[],(ke==null?void 0:ke.words)??[])?(hr=ke==null?void 0:ke.prop)!=null&&hr.includes(".")&&((wl=(Ll=ke==null?void 0:ke.prop)==null?void 0:Ll.split("."))==null?void 0:wl[0])!==((Ul=(zl=j==null?void 0:j.prop)==null?void 0:zl.split("."))==null?void 0:Ul[0])||(ke.value=(K==null?void 0:K[(Al=ke==null?void 0:ke.words)==null?void 0:Al.join(".")])??(K==null?void 0:K[ke==null?void 0:ke.prop])??ke.value):(!(ke!=null&&ke.isMainPath)&&Ra.same((j==null?void 0:j.bindMenus)??[],(ke==null?void 0:ke.bindMenus)??[]),ke.value=(K==null?void 0:K[ke==null?void 0:ke.prop])??ke.value),ke}),Se.value=Ae;let ua={};(M=Se.value)==null||M.forEach(ke=>{ua[ke.prop]=ke==null?void 0:ke.value}),Il.value=ua}}zr.value=!0,V.value=!1},ru=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",nu=d=>{var D,Z;const h=(Z=(D=sa.value)==null?void 0:D.find(ee=>(ee==null?void 0:ee.label)===(d==null?void 0:d.label)))==null?void 0:Z.multiple,z=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;_e.value.forEach(ee=>{const j=ee==null?void 0:ee[z];h&&wi.isString(j)&&(ee[z]=[j]),!h&&!wi.isString(j)&&(ee[z]="")})},Mt=(d,h)=>{var z;return h==null||h.forEach(O=>{d[O==null?void 0:O.prop]=O==null?void 0:O.value}),d.children&&((z=d.children)==null?void 0:z.length)>0&&(d.children=d.children.map(O=>Mt(O,h))),d},rt=d=>{var z,O,R,D,Z,ee;Io("");const h=(z=Se.value)==null?void 0:z.reduce((j,fe)=>(j[fe.name]=fe.value,j),{});if(((O=Object.keys(h))==null?void 0:O.length)>0){Il.value=h,Qe.value="",Pe.value=(R=_e.value)==null?void 0:R.length,ba.value=(D=oe.value)==null?void 0:D.filter(fe=>(fe==null?void 0:fe.label)!=="新增");const j=(ee=(Z=ue.value)==null?void 0:Z.filter(fe=>(fe==null?void 0:fe.label)!=="操作"))==null?void 0:ee.map(fe=>{var $e,ze,We;const be=(ze=($e=sa.value)==null?void 0:$e.find(ca=>(ca==null?void 0:ca.label)===(fe==null?void 0:fe.label)))==null?void 0:ze.multiple;return nu(fe),{...fe,contents:(fe==null?void 0:fe.options)??[],optionUrl:fe!=null&&fe.formMenuSelect&&((We=fe==null?void 0:fe.formMenuSelect)==null?void 0:We.length)>0?{groupSelect:fe==null?void 0:fe.groupSelect,menuSelect:fe==null?void 0:fe.formMenuSelect,selectRelateType:"",type:fe==null?void 0:fe.formType,multiple:be}:null}});De.value=j==null?void 0:j.map(fe=>Mt(fe,[{prop:"type",value:"edit"},{prop:"columnType",value:ru(fe==null?void 0:fe.formType)||(fe==null?void 0:fe.columnType)}])),d==="createClick"&&(Le.value="新增",$o(!0))}},ho={START:"开始时间",END:"结束时间",HOURS:"工时"},ou=(d,h)=>Number(In.dayjs(h).diff(In.dayjs(d),"day",!0).toFixed(1)),Ot=d=>{var D;const h=u.itemData,z=(D=h==null?void 0:h.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:D.contents,O=new Map;return z==null||z.forEach((Z,ee)=>{const{label:j}=Z;O.set(j,ee)}),!O.has(ho.START)||!O.has(ho.END)||!O.has(ho.HOURS)?d:d==null?void 0:d.map(Z=>{const ee=Z==null?void 0:Z[ho.START],j=Z==null?void 0:Z[ho.END],fe=ou(ee,j);return ee&&j&&(Z[ho.HOURS]=`${fe}天`),Z})},It=(d,h,z=0)=>{if(z>((h==null?void 0:h.length)??""))return d;const O=h==null?void 0:h[z],R=new Map;for(const Z of d){const ee=Z[O];R.has(ee)||R.set(ee,[]),R.get(ee)&&R.get(ee).push(Z)}const D=[];for(const[Z,ee]of R){const[j,...fe]=ee,be={...j};z+1===((h==null?void 0:h.length)??"")?be.children=ee==null?void 0:ee.map($e=>($e.level=$.cloneDeep(z)+1,$e)).filter(($e,ze)=>ze!==0):fe.length>0&&(be.children=It(fe,h,z+1)),be.level=z,D.push(be)}return D},Lt=(d,h,z)=>{var R;if(!(h!=null&&h.contents)||((R=h==null?void 0:h.contents)==null?void 0:R.length)===0)return d;let O=[];return O=It(d,h==null?void 0:h.contents,0),O},$t=async(d,h)=>{var Ma,ia,Qa,da,Ua,ie,Ta,ha,Na,Aa,M,K,Ae,ua,ke,fa,Ia,dl,ll,yl,gl,Vl,el,kl,Ka,hl,nl,vl,El,Tl,hr,Ll,wl,zl,Ul,Al,ur,dr,Gl,ir,$r,tr,lr,nr,Vt,Pt,Ft;const z=d==null?void 0:d.filter(ma=>(ma==null?void 0:ma.key)==="header");d==null||d.filter(ma=>(ma==null?void 0:ma.key)==="tableIndexColumn")[0];const O=d==null?void 0:d.filter(ma=>(ma==null?void 0:ma.key)==="childTree")[0];let R=!0;if((Qa=(ia=(Ma=d==null?void 0:d.find(ma=>(ma==null?void 0:ma.key)==="filterAllType"))==null?void 0:Ma.value)==null?void 0:ia.find(ma=>(ma==null?void 0:ma.value)==="onPamButtonContents"))!=null&&Qa.content){let ma=(ie=(Ua=(da=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:da.value)==null?void 0:Ua.find(Dl=>(Dl==null?void 0:Dl.value)==="onPamButtonContents"))==null?void 0:ie.content;ma=(Ta=ma==null?void 0:ma.split(":"))==null?void 0:Ta[1],ma=(ha=ma.slice(1,(ma==null?void 0:ma.length)-1))==null?void 0:ha.split(","),R=!!(ma!=null&&ma.find(Dl=>Dl==="操作"))}const D=d==null?void 0:d.find(ma=>(ma==null?void 0:ma.key)==="page"),Z=d==null?void 0:d.find(ma=>(ma==null?void 0:ma.key)==="rowButton"),ee=d==null?void 0:d.find(ma=>(ma==null?void 0:ma.key)==="extraButton"),j=d==null?void 0:d.filter(ma=>(ma==null?void 0:ma.key)==="tableContents"),fe=d==null?void 0:d.filter(ma=>(ma==null?void 0:ma.key)==="bottomButton"),be=d==null?void 0:d.filter(ma=>(ma==null?void 0:ma.key)==="tableIndex");sa.value=(Aa=(Na=d==null?void 0:d.filter(ma=>(ma==null?void 0:ma.key)==="tableToForm"))==null?void 0:Na[0])==null?void 0:Aa.contents,_a.value=(D==null?void 0:D.contents)??!0;let $e=[];Xl.value===""?$e=z==null?void 0:z[0]:$e=(z==null?void 0:z.find(ma=>(ma==null?void 0:ma.selectLabel)==="("+Xl.value+")"))??(z==null?void 0:z.find(ma=>!(ma!=null&&ma.selectLabel)));let ze=[];Xl.value===""?ze=be==null?void 0:be[0]:ze=(be==null?void 0:be.find(ma=>(ma==null?void 0:ma.selectLabel)==="("+Xl.value+")"))??(be==null?void 0:be.find(ma=>!(ma!=null&&ma.selectLabel)));let We=[],ca=[];if(((M=$e==null?void 0:$e.contents)==null?void 0:M.length)>0){let ma=[],Dl=$e==null?void 0:$e.contents;if(Array.isArray(Dl==null?void 0:Dl[0])&&((K=Dl==null?void 0:Dl[0])!=null&&K.every(il=>!(il!=null&&il.children)))&&(Dl=Dl==null?void 0:Dl[0]),Dl.some(il=>Array.isArray(il)&&(il==null?void 0:il.find(Ye=>Ye.children))))ma=(Ae=pa.getGradeColumns(Dl,R))==null?void 0:Ae[0],ma!=null&&ma.find(il=>(il==null?void 0:il.label)==="操作")||ma.push({label:"操作",prop:"operate",type:"operate"});else{let il=Dl.some(Ye=>Array.isArray(Ye))?Dl==null?void 0:Dl[0]:Dl;il!=null&&il.find(Ye=>(Ye==null?void 0:Ye.label)==="操作")||il.push({label:"操作",prop:"operate",type:"operate"}),il==null||il.forEach((Ye,Jl)=>{var Tr,Cr,Ar,br,ao,yo,go,pr,vn,Hn,bo,Gr,Un,qt,Wt,Kt,Yt,Gt,Jt,Xt;if((Cr=(Tr=xa.value)==null?void 0:Tr.split("/"))==null||Cr.forEach(Zl=>{var sr,Sn,Zt;Zl!==""&&((Zt=(Sn=(sr=Zl==null?void 0:Zl.split(k+"updateLoading"))==null?void 0:sr[0])==null?void 0:Sn.split(k+"loading"))==null||Zt[0])}),Ye!=null&&Ye.methodContent){let Zl=(ao=(br=(Ar=Ye==null?void 0:Ye.methodContent)==null?void 0:Ar.replace("@","%%#"))==null?void 0:br.split("%%#"))==null?void 0:ao[1];if(Zl=Zl==null?void 0:Zl.slice(0,(Zl==null?void 0:Zl.length)-1),Zl=pa.contentTransArrayToAllNoExtra(Zl??"",","),(yo=Zl==null?void 0:Zl.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&yo.includes("Prop")&&((go=Zl==null?void 0:Zl.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&go.includes("Manual"))){let sr=(vn=(pr=Zl==null?void 0:Zl.find(Sn=>Sn==null?void 0:Sn.includes("@Button")))==null?void 0:pr.split(":"))==null?void 0:vn[1];sr=((Gr=(bo=(Hn=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:Hn.replaceAll("]",""))==null?void 0:bo.split(","))==null?void 0:Gr[1])??"算法执行",We.push(sr)}else if((Un=Zl==null?void 0:Zl.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&Un.includes("Row")&&((qt=Zl==null?void 0:Zl.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&qt.includes("Manual"))){let sr=(Kt=(Wt=Zl==null?void 0:Zl.find(Sn=>Sn==null?void 0:Sn.includes("@Button")))==null?void 0:Wt.split(":"))==null?void 0:Kt[1];sr=((Jt=(Gt=(Yt=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:Yt.replaceAll("]",""))==null?void 0:Gt.split(","))==null?void 0:Jt[1])??"算法执行",ca.push(sr)}}(Xt=sa.value)==null||Xt.find(Zl=>(Zl==null?void 0:Zl.prop)===(Ye==null?void 0:Ye.prop)),ma.push({label:(Ye==null?void 0:Ye.label)==="操作"?R?"操作":"":(Ye==null?void 0:Ye.label)??"",prop:(Ye==null?void 0:Ye.label)==="操作"?"operate":(Ye==null?void 0:Ye.prop)??"a"+Jl,width:Ye!=null&&Ye.width?parseInt(Ye.width):"",fixed:(Ye==null?void 0:Ye.fixed)??void 0,sortable:(Ye==null?void 0:Ye.sortable)??!1,filterable:(Ye==null?void 0:Ye.filterable)??!1,operable:(Ye==null?void 0:Ye.operable)??!1,showSummary:(Ye==null?void 0:Ye.showSummary)??!1,align:(Ye==null?void 0:Ye.align)??"left",showOverflowTooltip:(Ye==null?void 0:Ye.showOverflowTooltip)??!0,isNotDrag:(Ye==null?void 0:Ye.isNotDrag)??!1,isEditCol:(Ye==null?void 0:Ye.isEditCol)??!1,isOperate:(Ye==null?void 0:Ye.isOperate)??!1,id:(Ye==null?void 0:Ye.id)??Jl,type:(Ye==null?void 0:Ye.label)==="操作"?"operate":void 0,formType:(Ye==null?void 0:Ye.formType)??(Ye!=null&&Ye.groupSelect?"Select":""),disabled:Ye==null?void 0:Ye.disabled,options:(Ye==null?void 0:Ye.options)??[],value:(Ye==null?void 0:Ye.value)??"",isExistChild:(Ye==null?void 0:Ye.isExistChild)??!1,mainKey:(Ye==null?void 0:Ye.mainKey)??Jl===0,allSelectionContents:(Ye==null?void 0:Ye.allContents)??[],filterContent:Ye==null?void 0:Ye.filterContents,menus:Ye==null?void 0:Ye.menus,groups:Ye==null?void 0:Ye.groups,words:Ye==null?void 0:Ye.words,filter:Ye==null?void 0:Ye.filter,bindMenus:Ye==null?void 0:Ye.bindMenus,fatherPath:Ye==null?void 0:Ye.fatherPath,isMainPath:Ye==null?void 0:Ye.isMainPath,required:(Ye==null?void 0:Ye.required)??!1,relatedContents:Ye==null?void 0:Ye.relatedContents,functionName:Ye==null?void 0:Ye.functionName,functionRelatedWords:Ye==null?void 0:Ye.functionRelatedWords,calculatorFilter:Ye==null?void 0:Ye.calculatorFilter,relatedPages:Ye==null?void 0:Ye.relatedPages})})}A.value=(ua=fe==null?void 0:fe[0])==null?void 0:ua.contents;const an=pa.getNewColumnChild(ma),jt=il=>Array.isArray(il)?il.map(Ye=>(Array.isArray(Ye==null?void 0:Ye.children)&&Ye.children.length>0?(Ye.sortable=!1,jt(Ye.children)):(Ye==null?void 0:Ye.prop)==="operate"||(Ye==null?void 0:Ye.label)==="操作"||(Ye==null?void 0:Ye.type)==="operate"||(Ye.sortable=!1),Ye)):il;jt(an),await ji(an),Lf(le.value,an),De.value=an,Sa.value=an,n.value=(ke=De.value)==null?void 0:ke.map(il=>il==null?void 0:il.label);let ln=(Ia=(fa=pa.getAllLeafNodes(De.value))==null?void 0:fa.filter(il=>(il==null?void 0:il.type)!=="operate"))==null?void 0:Ia.map((il,Ye)=>({prop:(il==null?void 0:il.prop)??"a"+Ye,column:il.label}));Nr.value=ln;let Yr=[];Xl.value===""?Yr=j==null?void 0:j[0]:Yr=(j==null?void 0:j.find(il=>(il==null?void 0:il.selectLabel)==="("+Xl.value+")"))??(j==null?void 0:j.find(il=>!(il!=null&&il.selectLabel)));let eo=Array.isArray((dl=Yr==null?void 0:Yr.contents)==null?void 0:dl[0])&&((ll=Yr==null?void 0:Yr.contents)!=null&&ll[0].every(il=>Array.isArray(il)))?(yl=Yr==null?void 0:Yr.contents)==null?void 0:yl[0]:Yr==null?void 0:Yr.contents;ze!=null&&ze.contents&&((gl=ze==null?void 0:ze.contents)==null?void 0:gl.length)!==0&&(eo=(Vl=$.cloneDeep(eo))==null?void 0:Vl.map((il,Ye)=>{if(!Array.isArray(il)){let Jl={};for(let Tr in il)Tr!=="id"&&Tr!=="index"&&(Jl[Tr]=il[Tr]);il=Object.values(Jl)}return il}));const gu=!!((el=De.value)!=null&&el.find(il=>il.prop==="index"));eo=lc(eo,ze==null?void 0:ze.contents,gu);const vo=[];eo==null||eo.forEach((il,Ye)=>{var Tr;let Jl={};if(Array.isArray(il)){let Cr=[];il==null||il.filter(Ar=>!(Ar!=null&&Ar.id)).forEach((Ar,br)=>{var ao,yo,go,pr,vn,Hn;if((ao=ln==null?void 0:ln[br])!=null&&ao.prop&&!Array.isArray(Ar)){let bo={};bo[ln[br].column]=Ar,Fa!=null&&Fa.value&&((yo=Fa==null?void 0:Fa.value)==null?void 0:yo.length)>0&&((go=Fa==null?void 0:Fa.value)!=null&&go.find(Gr=>JSON.stringify(Gr==null?void 0:Gr[0])===JSON.stringify(bo)))&&(Cr=(pr=Fa==null?void 0:Fa.value)==null?void 0:pr.find(Gr=>JSON.stringify(Gr==null?void 0:Gr[0])===JSON.stringify(bo))),Cr&&Cr.length>0?Jl[ln[br].prop]=Cr!=null&&Cr.find(Gr=>{var Un;return((Un=Object.keys(Gr))==null?void 0:Un[0])===ln[br].column})?(vn=Cr==null?void 0:Cr.find(Gr=>{var Un;return((Un=Object.keys(Gr))==null?void 0:Un[0])===ln[br].column}))==null?void 0:vn[ln[br].column]:Ar:Jl[ln[br].prop]=Ar}else Array.isArray(Ar)&&((Hn=ln[br])!=null&&Hn.prop?Jl[ln[br].prop]=Ar:Jl.children=ht(Ar,ln))})}else Jl=il;if(Array.isArray(il)&&il.some(Cr=>Cr==null?void 0:Cr.id)){const Cr=(Tr=il==null?void 0:il.find(Ar=>Ar.id))==null?void 0:Tr.id;vo.push(Object.assign(Jl,{id:li(Cr)}))}else Jl.id?vo.push(Jl):vo.push(Object.assign(Jl,{id:Ye.toString()}))});try{const il=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ye=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Jl=il==null?void 0:il.tableId,Tr=il==null?void 0:il.compIndex;if(Jl&&Array.isArray(Ye)&&Ye.length>0&&String(Jl)===String(u==null?void 0:u.parentTableId)&&String(Tr)===String(u==null?void 0:u.index)){const Cr=new Set(vo.map(br=>String(br==null?void 0:br.id))),Ar=Ye.filter(br=>!Cr.has(String(br)));if(Ar.length>0){const br=il==null?void 0:il.pageKey,ao=br!=null&&br.startsWith("/")?br.substring(1):br;((h==null?void 0:h[br])||(h==null?void 0:h[ao])||[]).filter(pr=>{var vn,Hn;return((vn=pr==null?void 0:pr.key)==null?void 0:vn.type)==="data"&&String((Hn=pr==null?void 0:pr.key)==null?void 0:Hn.tableId)===String(Jl)&&Ar.includes(pr==null?void 0:pr.id)}).forEach(pr=>{var vn;Cr.has(String(pr==null?void 0:pr.id))||(vo.push({id:pr==null?void 0:pr.id,...((vn=pr==null?void 0:pr.value)==null?void 0:vn.tableData)||{}}),Cr.add(String(pr==null?void 0:pr.id)))})}}}catch{}let mo=null;try{const il=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,Ye=JSON.parse(sessionStorage.getItem(il)||"null");Array.isArray(Ye)&&Ye.length>0&&(mo=new Set(Ye.map(Jl=>String(Jl))))}catch{}const Ht=Array.from(((kl=he.value)==null?void 0:kl.values())||[]).filter(il=>!(!(il!=null&&il._isOCRRow&&(il==null?void 0:il._ocrTableId)===(u==null?void 0:u.index))||mo&&mo.has(String(il==null?void 0:il.id)))),bu=(_e.value||[]).map(il=>String(il==null?void 0:il.id)),Ut=ri(vo,bu);if(_e.value=Lt(Ut,O,De.value),Da.value=Ut,(Ka=Da.value)==null||Ka.forEach(il=>{var Ye;(Ye=he.value)==null||Ye.set(il.id,il)}),mo&&mo.size>0)try{const il=new Set(Array.from(mo.values()));_e.value=(_e.value||[]).filter(Ye=>!il.has(String(Ye==null?void 0:Ye.id))),Da.value=(Da.value||[]).filter(Ye=>!il.has(String(Ye==null?void 0:Ye.id))),il.forEach(Ye=>{var Jl,Tr;try{(Tr=(Jl=he.value)==null?void 0:Jl.delete)==null||Tr.call(Jl,Ye)}catch{}})}catch{}const ci=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),nt=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(ci&&Array.isArray(nt)&&nt.length>0&&String(ci==null?void 0:ci.compIndex)===String(u==null?void 0:u.index)){const il=new Set((Da.value||[]).map(Ye=>String(Ye==null?void 0:Ye.id)));nt.filter(Ye=>!il.has(String(Ye)))}if(Ht.length>0){const il=new Set((_e.value||[]).map(Jl=>Jl==null?void 0:Jl.id)),Ye=Ht.filter(Jl=>!il.has(Jl.id));Ye.length>0&&(_e.value=[..._e.value||[],...Ye],Da.value=[...Da.value||[],...Ye],Ye.forEach(Jl=>{var Tr;return(Tr=he.value)==null?void 0:Tr.set(Jl.id,Jl)}))}}else De.value=[],ue.value=[],_e.value=[],Da.value=[],he.value=new Map;if(ca=[...new Set(ca)],ca=ca==null?void 0:ca.map(ma=>({label:ma,type:"methodButton"})),((hl=Z==null?void 0:Z.contents)==null?void 0:hl.length)>0?Oa.value=Z==null?void 0:Z.contents:Oa.value=[],Oa.value=[...Oa.value,...ca],We=[...new Set(We)],We=We==null?void 0:We.map(ma=>({label:ma,type:"methodButton"})),((nl=ee==null?void 0:ee.contents)==null?void 0:nl.length)>0)if((Tl=(El=(vl=d==null?void 0:d.find(ma=>(ma==null?void 0:ma.key)==="filterAllType"))==null?void 0:vl.value)==null?void 0:El.find(ma=>(ma==null?void 0:ma.value)==="onButtonContents"))!=null&&Tl.content){let ma=(wl=(Ll=(hr=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:hr.value)==null?void 0:Ll.find(Dl=>(Dl==null?void 0:Dl.value)==="onButtonContents"))==null?void 0:wl.content;if(ma=(zl=ma==null?void 0:ma.split(":"))==null?void 0:zl[1],ma=(Ul=ma.slice(1,(ma==null?void 0:ma.length)-1))==null?void 0:Ul.split(","),ba.value=(Al=ee==null?void 0:ee.contents)==null?void 0:Al.filter(Dl=>ma==null?void 0:ma.find(an=>an===(Dl==null?void 0:Dl.label))),oe.value=(ur=ee==null?void 0:ee.contents)==null?void 0:ur.filter(Dl=>ma==null?void 0:ma.find(an=>an===(Dl==null?void 0:Dl.label))),(dr=ee==null?void 0:ee.contents)!=null&&dr.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别")&&!((Gl=ba.value)!=null&&Gl.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别"))){const Dl=(ir=ee==null?void 0:ee.contents)==null?void 0:ir.find(an=>(an==null?void 0:an.label)==="OCR识别");ba.value=[...ba.value,Dl],oe.value=[...oe.value,Dl]}w.value=!!(ma!=null&&ma.find(Dl=>Dl==="搜索")),U.value=!!(ma!=null&&ma.find(Dl=>Dl==="块状显示"))}else ba.value=ee==null?void 0:ee.contents,oe.value=ee==null?void 0:ee.contents;else ba.value=[],oe.value=[];ba.value=[...ba.value,...We],oe.value=[...oe.value,...We],typeof xa.value=="string"&&xa.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?(($r=ba.value)!=null&&$r.some(ma=>(ma==null?void 0:ma.label)==="OCR识别")||(ba.value=[...ba.value||[],{label:"OCR识别"}]),(tr=oe.value)!=null&&tr.some(ma=>(ma==null?void 0:ma.label)==="OCR识别")||(oe.value=[...oe.value||[],{label:"OCR识别"}])):(ba.value=(ba.value||[]).filter(ma=>(ma==null?void 0:ma.label)!=="OCR识别"),oe.value=(oe.value||[]).filter(ma=>(ma==null?void 0:ma.label)!=="OCR识别")),(lr=ba.value)!=null&&lr.some(ma=>(ma==null?void 0:ma.label)==="切换视图")||(ba.value=[...ba.value||[],{label:"切换视图"}]),(nr=oe.value)!=null&&nr.some(ma=>(ma==null?void 0:ma.label)==="切换视图")||(oe.value=[...oe.value||[],{label:"切换视图"}]),Pe.value=((Vt=_e==null?void 0:_e.value)==null?void 0:Vt.length)??0,Ot(_e.value),Br.value=_e.value,Ml.value&&(De.value=(Ft=(Pt=ue.value)==null?void 0:Pt.filter(ma=>(ma==null?void 0:ma.label)!=="操作"))==null?void 0:Ft.map(ma=>{var Dl;return{...ma,type:"edit",optionUrl:ma!=null&&ma.formMenuSelect&&((Dl=ma==null?void 0:ma.formMenuSelect)==null?void 0:Dl.length)>0?{groupSelect:ma==null?void 0:ma.groupSelect,menuSelect:ma==null?void 0:ma.formMenuSelect,selectRelateType:"",type:ma==null?void 0:ma.formType}:null}}),rt())};a.watch(()=>[u.itemData,Xl.value,Gn.value,$n.value,Fa==null?void 0:Fa.value],async()=>{var d,h,z,O,R,D;if((d=u==null?void 0:u.itemData)!=null&&d.find(Z=>(Z==null?void 0:Z.key)==="columnPath")&&!((h=F.value)!=null&&h.find(Z=>{var ee,j;return(Z==null?void 0:Z.key)===((j=(ee=u==null?void 0:u.itemData)==null?void 0:ee.find(fe=>(fe==null?void 0:fe.key)==="columnPath"))==null?void 0:j.contents)}))){let Z=F.value,ee={key:(O=(z=u==null?void 0:u.itemData)==null?void 0:z.find(j=>(j==null?void 0:j.key)==="columnPath"))==null?void 0:O.contents,value:(D=(R=u==null?void 0:u.itemData)==null?void 0:R.find(j=>(j==null?void 0:j.key)==="columnUsingPath"))==null?void 0:D.contents};Z!=null&&Z.find(j=>(j==null?void 0:j.key)===(ee==null?void 0:ee.key))?Z=Z==null?void 0:Z.map(j=>((j==null?void 0:j.key)===(ee==null?void 0:ee.key)&&(j.value=ee.value),j)):Z.push(ee),Je.setTableViewContents(Z)}await $t(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&(Io(d==null?void 0:d.form),Le.value=d==null?void 0:d.dialogTitle,qe.value=!0,ya.value=!0)},{immediate:!0,deep:!0});const iu=()=>{var d;(d=B.value)!=null&&d.includes("read")&&(Ml.value=!Ml.value)},tu=()=>{cr.value=!cr.value};a.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var h;B.value=d,(d==null?void 0:d.length)===0?Ml.value=!1:(d!=null&&d.includes("read")||(Ml.value=!0),d!=null&&d.includes("edit")||(Ml.value=!1)),C.value=((h=u==null?void 0:u.config)==null?void 0:h.showIndex)||Ml.value},{immediate:!0}),a.watch(()=>Ml.value,d=>{var h;d?(rt("viewChange"),Je.setCacheUpdatingData(null)):(ba.value=oe.value,De.value=Sa.value,P.value&&(Je.setTableLoading(u==null?void 0:u.index),Ie("change",P.value))),C.value=d||((h=u==null?void 0:u.config)==null?void 0:h.showIndex),ar.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=Vn.value)==null?void 0:d.length},d=>{d===0&&(Ce.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 su=(d,h)=>{var z;rt("createClick"),h===Ce.pageSize&&(Ce.currentPage=Math.ceil(((z=_e.value)==null?void 0:z.length)/Ce.pageSize))},cu=async(d,h,z)=>{var R,D,Z,ee,j;const O=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(O&&ti.includes(O)&&z!==void 0&&z!==null&&String(z).trim()!==""){const fe=String(z).trim();if(await lt(fe,d==null?void 0:d.id)){ol.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const $e=(R=_e.value)==null?void 0:R.findIndex(We=>(We==null?void 0:We.id)===(d==null?void 0:d.id)),ze=$e!==-1?(Z=(D=_e.value)==null?void 0:D[$e])==null?void 0:Z[O]:void 0;O&&(d[O]=ze??"");return}}if(Ml.value){const fe=d==null?void 0:d.id;fe!=null&&(m.value.has(fe)||m.value.set(fe,$.cloneDeep(d)),c.value.add(fe));const be=(ee=_e.value)==null?void 0:ee.findIndex($e=>($e==null?void 0:$e.id)===(d==null?void 0:d.id));be!==-1&&O&&(_e.value[be]={..._e.value[be],[O]:z}),si(z,d,h);return}si(z,d,h),Il.value=$.cloneDeep(d),Qe.value=d==null?void 0:d.id,Pe.value=(j=_e.value)==null?void 0:j.length,Le.value=d!=null&&d._isTemp?"新增":"编辑",$o(!1)},uu=async()=>{var d,h;try{const z=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(O=>{if(typeof O=="string"&&O.includes("content_")){const R=O.split("_")[1];R&&(z.push(`content_${R}`),z.push(`struct_${R}`))}})),z.length===0&&(u!=null&&u.itemData)){const O=(h=(d=u.itemData)==null?void 0:d.find(R=>(R==null?void 0:R.key)==="contentTableId"))==null?void 0:h.contents;O&&(z.push(`content_${O}`),z.push(`struct_${O}`))}return z}catch(z){return console.error("获取 tableNames 失败:",z),[]}},du=async(d,h,z)=>{var D,Z;if(!z||typeof z!="string"||z.trim()===""){const ee=(h==null?void 0:h.property)??(h==null?void 0:h.prop),j=`${d==null?void 0:d.id}:${ee}`;p.value.delete(j),y.value.set(j,!1);return}const O=(h==null?void 0:h.property)??(h==null?void 0:h.prop),R=`${d==null?void 0:d.id}:${O}`;y.value.set(R,!0);try{const ee=await uu();if(ee.length===0){console.warn("未找到同名表,跳过全局搜索"),p.value.delete(R),y.value.set(R,!1);return}const j=parseInt((D=Rl.value)==null?void 0:D.plat_id);if(!j){console.warn("platId 无效,跳过全局搜索"),p.value.delete(R),y.value.set(R,!1);return}const fe=await $.getAllTables({platId:j,tableNames:ee}),be=((Z=fe==null?void 0:fe.data)==null?void 0:Z.result)||[],$e=[],ze=[];for(let We=0;We<be.length;We+=2)We+1<be.length&&ze.push([be[We],be[We+1]]);ze.forEach(([We,ca])=>{var Ua;if(!Array.isArray(We)||We.length===0||!Array.isArray(ca)||ca.length===0)return;const ja=ca[0];let Ma=((Ua=ja==null?void 0:ja.结构)==null?void 0:Ua.contents)??[];if(!Array.isArray(Ma)||Ma.length===0)return;let ia=$.cloneDeep(Ma);if(Array.isArray(ia==null?void 0:ia[0])&&(ia=pa.getColumnChild(ia[0])),!Array.isArray(ia)||ia.length===0||!ia.some(ie=>(ie==null?void 0:ie.prop)===O))return;[...We].sort((ie,Ta)=>{const ha=Number((ie==null?void 0:ie.update_time)??0);return Number((Ta==null?void 0:Ta.update_time)??0)-ha}).slice(0,20).forEach(ie=>{const Ta=ie[O];if(Ta!=null){const ha=String(Ta);ha.toLowerCase().includes(z.toLowerCase())&&$e.findIndex(Aa=>{var M;return ie.id&&((M=Aa.rowData)==null?void 0:M.id)===ie.id?!0:Aa.label===ha})===-1&&$e.push({label:ha,rowData:$.cloneDeep(ie),sourceTable:(ja==null?void 0:ja.source_table)||""})}})}),p.value.set(R,$e)}catch(ee){console.error("全局搜索建议失败:",ee),p.value.delete(R)}finally{y.value.set(R,!1)}},pu=(d,h,z)=>{if(!Ml.value)return;const O=(h==null?void 0:h.property)??(h==null?void 0:h.prop),R=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if(R&&R.toUpperCase()!=="INPUT"&&R!=="")return;const D=`${d==null?void 0:d.id}:${O}`;if(v.has(D)&&clearTimeout(v.get(D)),!z||z.trim()===""){p.value.delete(D),y.value.set(D,!1);return}const Z=setTimeout(()=>{du(d,{prop:O,property:O},z),v.delete(D)},300);v.set(D,Z)};function fu(d,h){const z=`${d==null?void 0:d.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return p.value.get(z)||[]}const hu=(d,h,z)=>{var be;if(!z||!z.rowData)return;const O=z.rowData,R=d==null?void 0:d.id,D=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ee=(pa.getAllLeafNodes(De.value)||[]).filter($e=>($e==null?void 0:$e.type)!=="operate"&&($e==null?void 0:$e.label)!=="操作"&&($e==null?void 0:$e.prop)!=="operate");ee.forEach($e=>{const ze=$e==null?void 0:$e.prop;ze&&O[ze]!==void 0&&(d[ze]=O[ze])});const j=(be=_e.value)==null?void 0:be.findIndex($e=>($e==null?void 0:$e.id)===R);j!==-1&&ee.forEach($e=>{const ze=$e==null?void 0:$e.prop;ze&&O[ze]!==void 0&&(_e.value[j][ze]=O[ze])}),R!=null&&(m.value.has(R)||m.value.set(R,$.cloneDeep(d)),c.value.add(R));const fe=`${R}:${D}`;p.value.delete(fe),y.value.set(fe,!1),si(d[D],d,h)},Lr=d=>{var j,fe,be,$e,ze,We,ca,ja,Ma,ia,Qa;const{row:h,column:z,item:O,slotData:R}=d;let D=h!=null&&h[z==null?void 0:z.prop]||(h==null?void 0:h[z==null?void 0:z.prop])===0?((fe=(j=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:j[0])==null?void 0:fe.contents)??((h==null?void 0:h[z==null?void 0:z.prop])===0?"0":h==null?void 0:h[z==null?void 0:z.prop]):(($e=(be=h==null?void 0:h[O==null?void 0:O.prop])==null?void 0:be[0])==null?void 0:$e.contents)??(h==null?void 0:h[O==null?void 0:O.prop])??((We=(ze=R==null?void 0:R[O==null?void 0:O.prop])==null?void 0:ze[0])==null?void 0:We.contents)??(R==null?void 0:R[O==null?void 0:O.prop])??((Ma=(ja=h==null?void 0:h[(ca=O==null?void 0:O.child)==null?void 0:ca.prop])==null?void 0:ja[0])==null?void 0:Ma.contents)??(h==null?void 0:h[(ia=O==null?void 0:O.child)==null?void 0:ia.prop]),ee=Array.isArray(D)&&!(D!=null&&D.every(da=>typeof da=="string"||typeof da=="number"))?"查看":D;if(ee=Array.isArray(ee)?ee.join(","):ee,(z==null?void 0:z.formType)==="Date")if(!ee||ee===""||ee===null||ee===void 0)ee="";else{const da=In.dayjs(ee,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ee=da.isValid()?da.format("YYYYMMDD"):ee??""}return Array.isArray(z==null?void 0:z.relatedPages)&&((Qa=z==null?void 0:z.relatedPages)==null?void 0:Qa.length)>0&&(ee="详情页"),ee},vu=d=>{var fe,be,$e,ze,We,ca,ja,Ma,ia,Qa;const{row:h,column:z,item:O,slotData:R}=d;let D=h!=null&&h[z==null?void 0:z.prop]?((be=(fe=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:fe[0])==null?void 0:be.contents)??(h==null?void 0:h[z==null?void 0:z.prop]):((ze=($e=h==null?void 0:h[O==null?void 0:O.prop])==null?void 0:$e[0])==null?void 0:ze.contents)??(h==null?void 0:h[O==null?void 0:O.prop])??((ca=(We=R==null?void 0:R[O==null?void 0:O.prop])==null?void 0:We[0])==null?void 0:ca.contents)??(R==null?void 0:R[O==null?void 0:O.prop])??((ia=(Ma=h==null?void 0:h[(ja=O==null?void 0:O.child)==null?void 0:ja.prop])==null?void 0:Ma[0])==null?void 0:ia.contents)??(h==null?void 0:h[(Qa=O==null?void 0:O.child)==null?void 0:Qa.prop]);const ee=Array.isArray(D)&&!(D!=null&&D.every(da=>typeof da=="string"||typeof da=="number")),j=Array.isArray(D)&&(D==null?void 0:D.find(da=>da==null?void 0:da.url));return ee&&j},mu=d=>{var R,D;if(!(d!=null&&d.column))return!1;const h=xa.value==="试验任务/任务管理",z=(u==null?void 0:u.compName)==="任务列表",O=((R=d==null?void 0:d.column)==null?void 0:R.label)==="任务状态"||((D=d==null?void 0:d.column)==null?void 0:D.prop)==="任务状态";return h&&z&&O},yu=(d,h)=>d.find(z=>Object.values(z).some(O=>O===h));return a.watch(()=>Te.value,async d=>{if(d){na.setContentLoading(!0),await a.nextTick();const h=yu(_e.value,d==null?void 0:d.data);if(!h)return na.setContentLoading(!1);await jn(d==null?void 0:d.data,null,h,{data:d==null?void 0:d.data}),na.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.cacheNewData,d=>{var h;d&&(Array.isArray(d)?d.forEach(z=>{var O,R,D,Z,ee;if(换,String(z==null?void 0:z.compId)===String(u==null?void 0:u.index)&&(z!=null&&z.resId)&&((O=z==null?void 0:z.data)!=null&&O.id)){const j=(R=z==null?void 0:z.data)==null?void 0:R.id,fe=z==null?void 0:z.resId;if(_e.value=(D=_e.value)==null?void 0:D.map(be=>{if((be==null?void 0:be.id)===j){const $e={...be,id:fe};return delete $e._isOCRRow,delete $e._ocrTableId,$e}return be}),(ee=(Z=he.value)==null?void 0:Z.has)!=null&&ee.call(Z,j)){const $e={...he.value.get(j)||{},id:fe};delete $e._isOCRRow,delete $e._ocrTableId,he.value.delete(j),he.value.set(fe,$e)}Fe(u==null?void 0:u.index,j,fe)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(_e.value=(h=_e.value)==null?void 0:h.map(z=>{var O;if((z==null?void 0:z.id)===((O=d==null?void 0:d.data)==null?void 0:O.id)){const R={...z,id:d==null?void 0:d.resId};return delete R._isOCRRow,delete R._ocrTableId,R}return z})))},{immediate:!0,deep:!0}),(d,h)=>{var ia,Qa,da,Ua;const z=a.resolveComponent("svg-icon"),O=a.resolveComponent("el-popover"),R=a.resolveComponent("el-switch"),D=a.resolveComponent("el-checkbox"),Z=a.resolveComponent("el-radio"),ee=a.resolveComponent("el-radio-group"),j=a.resolveComponent("el-checkbox-group"),fe=a.resolveComponent("el-button"),be=a.resolveComponent("el-icon"),$e=a.resolveComponent("el-progress"),ze=a.resolveComponent("el-alert"),We=a.resolveComponent("el-table-column"),ca=a.resolveComponent("el-table"),ja=a.resolveComponent("el-upload"),Ma=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",x0,[Mr.value?(a.openBlock(),a.createBlock(pl.ssTable,{id:"excel-table",pageObj:Ce,showIndex:C.value,isTree:(ia=l.compItem)==null?void 0:ia.isTree,summaryInfo:se,columns:De.value,defaultSort:X,isCardViewport:cr.value,checkedColumns:n.value,key:mn.value+De.value,tableData:Vn.value,isEditViewport:Ml.value,isShowPagination:_a.value,isShowEdit:!1,isShowDelete:!1,allowSelect:x.value,onDbClickRow:ni,extraButton:ba.value,rowButton:Oa.value,cacheExtraButtons:oe.value,isClearSelection:((Qa=ar.value)==null?void 0:Qa.length)===0,onDoCurrentChange:hn,onDoSizeChange:To,onSortChange:Oi,onContentClick:jn,onRowClick:oi,onSelectChange:Pi,onCellChange:cu,onCellInput:pu,onSelectSuggest:hu,onChange:si,onPreview:Fn,onSubmitEditingTable:Jo,onHandleColEditChange:Ko,onHandleColTypeChange:Yo,onClickButton:An,onAddNewRow:Or,bottomButton:A.value},a.createSlots({headerButton:a.withCtx(ie=>{var Ta,ha;return[l.showHeader?(a.openBlock(),a.createBlock(Xp,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(te)===a.unref(xa),filterValues:Wi.value,selectNums:(Ta=ar.value)==null?void 0:Ta.length,dataNums:(ha=_e.value)==null?void 0:ha.length,compName:l.compName,isDevMode:l.isDevMode,buttons:ie.buttons,onButtonClick:h[1]||(h[1]=(Na,Aa,M)=>An(Na,Aa,{extra:M})),columns:De.value,onFilter:Ki,onGetImportData:Li,level:l.level,filterShow:w.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var ie,Ta,ha,Na;return[((ie=_e.value)==null?void 0:ie.length)>0&&l.allowOperate&&U.value?(a.openBlock(),a.createElementBlock("div",C0,[(Ta=B.value)!=null&&Ta.includes("read")&&((ha=B.value)!=null&&ha.includes("edit"))&&((Na=Oa.value)!=null&&Na.some(Aa=>(Aa==null?void 0:Aa.label)==="编辑"))&&!cr.value&&a.unref(te)!==a.unref(xa)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:iu},[a.createVNode(z,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:ie,index:Ta})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ha=>su(ie,Ta)},[a.createVNode(z,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,S0)]),operateCol:a.withCtx(()=>[a.createVNode(O,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:au},{reference:a.withCtx(()=>[a.createElementVNode("span",E0,[a.createVNode(z,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",D0,[h[20]||(h[20]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(R,{"model-value":_.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=ie=>Zo(ie))},null,8,["model-value"]),h[21]||(h[21]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(j,{modelValue:n.value,"onUpdate:modelValue":h[3]||(h[3]=ie=>n.value=ie),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_n.value,ie=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ie.label},[a.createVNode(D,{value:ie.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:ie.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(ie.label),9,N0)]),_:2},1032,["value"]),a.createVNode(O,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(z,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Ta;return[a.createElementVNode("div",B0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Ta=Object.keys(ie))==null?void 0:Ta.filter(ha=>{var Na;return(Na=Y.value)==null?void 0:Na.find(Aa=>(Aa==null?void 0:Aa.value)===ha)}),ha=>{var Na,Aa;return a.openBlock(),a.createElementBlock("div",{key:ha},[N[ha]=="radio"?(a.openBlock(),a.createElementBlock("div",T0,[h[19]||(h[19]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ee,{"model-value":ie==null?void 0:ie[ha],onChange:M=>wn(M,ha,ie)},{default:a.withCtx(()=>{var M,K;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((K=(M=Y.value)==null?void 0:M.find(Ae=>(Ae==null?void 0:Ae.value)===ha))==null?void 0:K.options,Ae=>(a.openBlock(),a.createBlock(Z,{key:Ae==null?void 0:Ae.value,label:Ae==null?void 0:Ae.value,value:Ae==null?void 0:Ae.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Ae==null?void 0:Ae.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),N[ha]=="switch"?(a.openBlock(),a.createBlock(R,{key:1,"model-value":ie==null?void 0:ie[ha],"active-text":(Aa=(Na=Y.value)==null?void 0:Na.find(M=>(M==null?void 0:M.value)===ha))==null?void 0:Aa.label,onChange:M=>wn(M,ha,ie)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",A0,[a.createVNode(z,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(ie=>{var Ta,ha,Na,Aa,M,K,Ae,ua,ke,fa,Ia,dl,ll,yl,gl,Vl,el,kl,Ka,hl;return[((Ta=ie==null?void 0:ie.column)==null?void 0:Ta.label)==="证书附件"||((ha=ie==null?void 0:ie.column)==null?void 0:ha.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",z0,[a.createVNode(z,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(nl=>Fr(ie),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):vu(ie)?(a.openBlock(),a.createBlock(O,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",M0,a.toDisplayString(Lr(ie)),1)]),default:a.withCtx(()=>{var nl,vl;return[a.createElementVNode("div",O0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((vl=ie==null?void 0:ie.row)==null?void 0:vl[(nl=ie==null?void 0:ie.column)==null?void 0:nl.prop],El=>(a.openBlock(),a.createElementBlock("div",I0,[a.createElementVNode("div",{class:"prop-url",title:Zn(El),onClick:Tl=>Ui(El)},a.toDisplayString(Zn(El)),9,L0),a.createElementVNode("div",{class:"prop-download",onClick:Tl=>co(El)}," 下载 ",8,$0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[mu(ie)?(a.openBlock(),a.createBlock(Tu,{key:0,value:Lr(ie)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Lr(ie))&&((Aa=(Na=Lr(ie))==null?void 0:Na.toString())!=null&&Aa.includes(".txt")||(K=(M=Lr(ie))==null?void 0:M.toString())!=null&&K.includes(".cpt")||(ua=(Ae=Lr(ie))==null?void 0:Ae.toString())!=null&&ua.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Lr(ie))&&((fa=(ke=Lr(ie))==null?void 0:ke.toString())!=null&&fa.includes(".txt")||(dl=(Ia=Lr(ie))==null?void 0:Ia.toString())!=null&&dl.includes(".cpt")||(yl=(ll=Lr(ie))==null?void 0:ll.toString())!=null&&yl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Lr(ie))&&((Vl=(gl=Lr(ie))==null?void 0:gl.toString())!=null&&Vl.includes(".txt")||(kl=(el=Lr(ie))==null?void 0:el.toString())!=null&&kl.includes(".cpt")||(hl=(Ka=Lr(ie))==null?void 0:Ka.toString())!=null&&hl.includes(".cyd"))?"pointer":"",marginLeft:(ie==null?void 0:ie.colIndex)===0?`${((ie==null?void 0:ie.level)??0)*20}px`:0}),onClick:nl=>{var vl;return Bn(Lr(ie),((vl=ie==null?void 0:ie.column)==null?void 0:vl.relatedPages)??[])}},a.toDisplayString(Lr(ie)===0?"0":Lr(ie)),13,R0))],64))]}),_:2},[((da=Oa.value)==null?void 0:da.length)>0?{name:"actions",fn:a.withCtx(({item:ie,fIndex:Ta})=>[a.createVNode(O,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(z,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",_0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(qi(Oa.value,ie),(ha,Na)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Na,onClick:a.withModifiers(Aa=>An(ha==null?void 0:ha.label,ie,{extra:ha}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:ha==null?void 0:ha.textColor}),class:"extra-button-label"},a.toDisplayString(ha==null?void 0:ha.label),5)],8,w0))),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),Ml.value?(a.openBlock(),a.createElementBlock("div",V0,[a.createVNode(fe,{id:"themeBorderButton",onClick:Vi},{default:a.withCtx(()=>h[22]||(h[22]=[a.createTextVNode("取消")])),_:1,__:[22]}),a.createVNode(fe,{class:"ok-button",id:"themeButton",onClick:Ao},{default:a.withCtx(()=>h[23]||(h[23]=[a.createTextVNode("保存")])),_:1,__:[23]})])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{title:Le.value,visible:ya.value,width:Hl.value,onBeforeDestroy:Qo,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",P0,[a.createVNode(pl.ssForm,{ref_key:"formRef",ref:Xe,rowContents:Se.value,showOperator:!1,onChange:lu,isEnableWrap:!1,onFixChangeValue:Mo,onClickTrigger:ei,isEdit:ra.value,onBlurChange:Fi,onCreate:Xo,onTagChange:Kr},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[qe.value?(a.openBlock(),a.createElementBlock("div",F0,[a.createVNode(fe,{onClick:h[4]||(h[4]=ie=>ya.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>h[24]||(h[24]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[24]}),a.createVNode(fe,{class:"ok-button",onClick:h[5]||(h[5]=ie=>$o(!0)),id:"themeButton"},{default:a.withCtx(()=>h[25]||(h[25]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[25]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:Le.value,visible:ve.value,width:Ga.value,onBeforeDestroy:h[7]||(h[7]=ie=>ve.value=!1)},{default:a.withCtx(()=>[a.createVNode(df)]),footer:a.withCtx(()=>[a.createElementVNode("div",j0,[a.createVNode(fe,{onClick:h[6]||(h[6]=ie=>ve.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>h[26]||(h[26]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[26]}),a.createVNode(fe,{class:"ok-button",onClick:Oo,id:"themeButton"},{default:a.withCtx(()=>h[27]||(h[27]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),Wa.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:2,fileDataList:Q.value,onDestroy:Cn},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ge.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:3,visible:Ge.value,onBeforeDestroy:Qc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(_i.ThreeViewerHost,{files:Ya.value,threeData:re.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{title:"OCR扫描录入",visible:Pa.value,"close-on-click-modal":!1,onBeforeDestroy:cl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[h[38]||(h[38]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",H0,[a.createElementVNode("div",U0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:q.value===1}])},h[28]||(h[28]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[31]||(h[31]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:q.value===2}])},h[29]||(h[29]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[32]||(h[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:q.value===3}])},h[30]||(h[30]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),q.value===1?(a.openBlock(),a.createElementBlock("div",q0,[a.createVNode(fe,{onClick:Qi,class:"ocr-action-btn",disabled:je.value,size:"default"},{default:a.withCtx(()=>h[33]||(h[33]=[a.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),a.createVNode(fe,{onClick:jl,class:"ocr-action-btn",disabled:je.value,size:"default"},{default:a.withCtx(()=>h[34]||(h[34]=[a.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):a.createCommentVNode("",!0),q.value===1?(a.openBlock(),a.createElementBlock("div",W0,[a.createElementVNode("div",K0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(xe.value,(ie,Ta)=>{var ha;return a.openBlock(),a.createElementBlock("div",{key:Ta,class:"ocr-file-item"},[a.createElementVNode("div",Y0,[ie.raw&&((ha=ie.raw.type)!=null&&ha.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:Cl(ie),alt:"预览",class:"thumbnail-image"},null,8,G0)):(a.openBlock(),a.createElementBlock("div",J0,[a.createVNode(be,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(ol.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:ul(ie)==="uploading",processing:ul(ie)==="processing",completed:ul(ie)==="completed"||ul(ie)==="uploaded",failed:ul(ie)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",X0,[h[35]||(h[35]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:ul(ie)==="completed"||ul(ie)==="uploaded",uploading:ul(ie)==="uploading",processing:ul(ie)==="processing",failed:ul(ie)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:ul(ie)==="failed"?"#f56c6c":ul(ie)==="completed"||ul(ie)==="uploaded"?"#67c23a":"#409eff","stroke-width":ul(ie)==="completed"||ul(ie)==="uploaded"||ul(ie)==="failed"?3:2,"stroke-dasharray":Yl(ie),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,Z0)])),ul(ie)==="completed"||ul(ie)==="uploaded"?(a.openBlock(),a.createElementBlock("div",Q0,[a.createVNode(be,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ol.check_default))]),_:1})])):a.createCommentVNode("",!0),ul(ie)==="failed"?(a.openBlock(),a.createElementBlock("div",e3,[a.createVNode(be,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ol.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:Na=>fo(Ta)},[a.createVNode(be,null,{default:a.withCtx(()=>[a.createVNode(a.unref(ol.close_default))]),_:1})],8,a3)]),a.createElementVNode("div",l3,a.toDisplayString(ie.name||"文件名123"),1)])}),128))]),xe.value.length>0?(a.openBlock(),a.createElementBlock("div",r3,[a.createVNode(fe,{onClick:de,class:"ocr-start-recognize-btn",disabled:je.value||xe.value.length===0,size:"default"},{default:a.withCtx(()=>h[36]||(h[36]=[a.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),q.value===1?(a.openBlock(),a.createElementBlock("div",n3,[a.createVNode($e,{percentage:ye.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),q.value===2?(a.openBlock(),a.createElementBlock("div",o3,[a.createElementVNode("div",i3,[a.createVNode(ze,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",t3,[a.createVNode(ca,{data:qa.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(We,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(pe.value,ie=>(a.openBlock(),a.createBlock(We,{key:ie.prop,prop:ie.prop,"min-width":ie.minWidth||230,"class-name":ie.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",s3,[a.createElementVNode("span",null,a.toDisplayString(ie.label),1)])]),default:a.withCtx(({row:Ta,$index:ha})=>{var Na,Aa,M;return[ie.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:tl(Ta[ie.prop]),fontWeight:500})},a.toDisplayString(La(Ta[ie.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[Ba.value!==ha?(a.openBlock(),a.createElementBlock("span",c3,a.toDisplayString(Ta[ie.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(al(ie.prop)),{key:1,modelValue:Ta[ie.prop],"onUpdate:modelValue":K=>Ta[ie.prop]=K,size:"small",placeholder:"请输入"+ie.label,content:((Na=fl(ie.prop))==null?void 0:Na.contents)??((Aa=fl(ie.prop))==null?void 0:Aa.options)??[],optionUrl:(M=fl(ie.prop))==null?void 0:M.optionUrl,onChange:K=>aa(ha,ie.prop,K),onFocus:K=>Za.value=ie.prop,onBlur:h[8]||(h[8]=K=>Za.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(We,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:ie})=>[Ba.value===ie?(a.openBlock(),a.createBlock(be,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(Ta=>rl(ie),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(ol.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(z,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(Ta=>rl(ie),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),q.value===3?(a.openBlock(),a.createElementBlock("div",u3,[a.createVNode(be,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ol.check_default))]),_:1}),h[37]||(h[37]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(ja,{ref:"ocrUploadRef","file-list":xe.value,"onUpdate:fileList":h[9]||(h[9]=ie=>xe.value=ie),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":H,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[q.value!==3?(a.openBlock(),a.createElementBlock("div",d3,[a.createVNode(fe,{onClick:Ir,class:"ocr-start-recognize-btn",disabled:q.value===1||je.value},{default:a.withCtx(()=>h[39]||(h[39]=[a.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),a.createVNode(fe,{onClick:mr,class:"ocr-start-recognize-btn",disabled:je.value},{default:a.withCtx(()=>h[40]||(h[40]=[a.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(Bf,{visible:po.value,onConfirm:et,onCancel:h[10]||(h[10]=ie=>po.value=!1)},null,8,["visible"]),a.createVNode(dd,{visible:Ze.value,"onUpdate:visible":h[11]||(h[11]=ie=>Ze.value=ie),versions:la.value},null,8,["visible","versions"]),a.createVNode(Xu,{visible:Va.value,"onUpdate:visible":h[12]||(h[12]=ie=>Va.value=ie),images:Wl.value,"default-image-name":Kl.value,"field-meta":Ba.value!==null?((Ua=qa.value[Ba.value])==null?void 0:Ua.__ocrFieldMeta)||{}:{},"focused-field-name":Za.value,onClose:h[13]||(h[13]=ie=>Va.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(Cd,{visible:$l.value,"onUpdate:visible":h[14]||(h[14]=ie=>$l.value=ie),candidates:Fl.value,"name-prop":dn.value,"mfr-prop":Jr.value,columns:De.value,onSubmit:tn,onPreviewFile:en},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Ad,{visible:Ee.value,"onUpdate:visible":h[15]||(h[15]=ie=>Ee.value=ie),ocrPreviewData:qa.value,"onUpdate:ocrPreviewData":h[16]||(h[16]=ie=>qa.value=ie),ocrSelectedFields:Xa.value,"onUpdate:ocrSelectedFields":h[17]||(h[17]=ie=>Xa.value=ie),ocrPreviewColumns:pe.value,onConfirm:ge,onFieldChange:h[18]||(h[18]=({rowIndex:ie,prop:Ta,value:ha})=>aa(ie,Ta,ha))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(vr.ssDialog,{title:t.title,visible:t.show,width:t.width,onBeforeDestroy:S},{default:a.withCtx(()=>[a.createElementVNode("div",p3,[a.createVNode(pl.ssForm,{rowContents:t==null?void 0:t.contents,formRules:t==null?void 0:t.formRules,showOperator:!1,buttonValue:t.buttonValue,isEdit:ra.value,isStartJustify:!1,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:i.title,visible:i.show,width:i.width,alignCenter:!0,onBeforeDestroy:f},{header:a.withCtx(()=>[a.createVNode(Ma,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>h[41]||(h[41]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[41]})]),footer:a.withCtx(()=>[a.createElementVNode("div",f3,[a.createVNode(Ma,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(Dn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",h3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i==null?void 0:i.buttonValue,ie=>(a.openBlock(),a.createBlock(fe,{key:ie==null?void 0:ie.label,style:a.normalizeStyle({background:ie==null?void 0:ie.background,color:ie==null?void 0:ie.color}),onClick:Ta=>g(ie==null?void 0:ie.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(ie==null?void 0:ie.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(Zp,{columns:i==null?void 0:i.columns,tableData:i==null?void 0:i.tableData},{content:a.withCtx(({row:ie,item:Ta,slotData:ha,scope:Na,column:Aa,columnProp:M,$index:K})=>[a.createTextVNode(a.toDisplayString((ie==null?void 0:ie[(Aa==null?void 0:Aa.prop)||(Aa==null?void 0:Aa.label)])||(ha==null?void 0:ha[Aa==null?void 0:Aa.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},bc=ql._export_sfc(m3,[["__scopeId","data-v-d6b5726c"]]),y3={class:"static-form-card"},g3={key:0,class:"static-form-body"},b3=["onClick"],k3={key:1},x3=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}},setup(l){const r=l,n=C=>{switch(C){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},o=a.computed(()=>{var V;const C=(V=r.itemData)==null?void 0:V.find(A=>(A==null?void 0:A.key)==="formContent"),B=(C==null?void 0:C.contents)||[];return(r.fields&&r.fields.length>0?r.fields:B).filter(A=>!(A!=null&&A.isFormColHidden)&&(A==null?void 0:A.label)).map(A=>{let N=A==null?void 0:A.value;Array.isArray(N)&&(N=N.map(T=>T==null?"":typeof T=="object"?T.label??T.value??T.name??JSON.stringify(T):String(T)).filter(Boolean).join(",")),N!=null&&typeof N=="object"&&(N=N.label??N.value??N.name??JSON.stringify(N));const Y=A.label??"",b=N==null||N===""?"-":String(N),L=Y==="使用状态";return{label:Y,value:b,isStatus:L,tagType:L?n(b):"",width:A.width??1,field:A}})}),s=a.ref(null),c=C=>{if(Array.isArray(C)&&C.length>=3){const[B,w,V,A]=C;return A!==void 0?`rgba(${B}, ${w}, ${V}, ${A})`:`rgb(${B}, ${w}, ${V})`}if(typeof C=="string"){const B=C.trim();if(B.startsWith("[")&&B.endsWith("]")){const w=B.slice(1,-1).split(",").map(V=>Number(V.trim()));if(w.length>=3&&w.every(V=>!Number.isNaN(V))){const[V,A,N,Y]=w;return Y!==void 0?`rgba(${V}, ${A}, ${N}, ${Y})`:`rgb(${V}, ${A}, ${N})`}}return B}},m=a.computed(()=>{const C=Number(r==null?void 0:r.textSize),B=c(r==null?void 0:r.textColor),w={},V={},A={},N={};return!Number.isNaN(C)&&C&&(w.fontSize=`${C}px`,V.fontSize=`${C+1}px`,A.fontSize=`${C}px`,N.fontSize=`${C}px`),B&&(V.color=B,A.color=B,N.color=B),{item:w,label:V,value:A,empty:N}}),p=C=>pl.getComponent(C),v=C=>{if(!C)return;const B=C.querySelector("input, textarea, .el-input__inner");B&&typeof B.focus=="function"&&B.focus()},y=(C,B,w)=>{r.disabled||(s.value=B,a.nextTick(()=>{v(w.currentTarget)}))},u=()=>{s.value=null},x=C=>{const B=C!=null&&C.width&&C.width>0?C.width:1,V=`calc((100% - ${(B-1)*48}px) / ${B})`;return{flex:`0 0 ${V}`,maxWidth:V,minWidth:"0",boxSizing:"border-box"}};return(C,B)=>{const w=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",y3,[o.value.length?(a.openBlock(),a.createElementBlock("div",g3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(V,A)=>{var N,Y,b,L,T,k,_,U;return a.openBlock(),a.createElementBlock("div",{key:A,class:"static-form-item",style:a.normalizeStyle({...x(V),...m.value.item})},[a.createElementVNode("div",{class:"static-form-label",style:a.normalizeStyle(m.value.label)},a.toDisplayString(V.label)+": ",5),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(m.value.value),onClick:W=>y(V,A,W)},[s.value===A&&V.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(((N=V.field)==null?void 0:N.type)??"Input")),{key:0,modelValue:V.field.value,"onUpdate:modelValue":W=>V.field.value=W,isEdit:!0,disabled:(Y=V.field)==null?void 0:Y.disabled,content:((b=V.field)==null?void 0:b.contents)??[],optionUrl:V.field,originalValue:(L=V.field)==null?void 0:L.value,config:(T=V.field)==null?void 0:T.config,configModel:((k=V.field)==null?void 0:k.prop)??((_=V.field)==null?void 0:_.name),selectedTagList:((U=V.field)==null?void 0:U.selectValue)??[],onBlur:u,onBlurChange:u},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[V.isStatus?(a.openBlock(),a.createBlock(w,{key:0,type:V.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",k3,a.toDisplayString(V.value??"-"),1))],64))],12,b3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"static-form-empty",style:a.normalizeStyle(m.value.empty)}," 暂无数据 ",4))])}}}),kc=ql._export_sfc(x3,[["__scopeId","data-v-351e0bf9"]]),_3={class:"form-content"},w3={title:"选择标签"},C3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},S3={class:"col-operate-wrap"},E3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},D3={__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,p.value=!1,v.value=[]},o=l;a.computed(()=>{var ra;const he=(ra=me.value)==null?void 0:ra.split("/");return(he==null?void 0:he.some(Pe=>(Pe==null?void 0:Pe.includes("updateLoading"))||(Pe==null?void 0:Pe.includes("loading"))))?!1:X.value==="view"});const s=r,c=a.ref([]),m=a.ref(!1),p=a.ref(!1),v=a.ref([]),{getFileExtension:y}=_i.useThreeSystem(),u=a.ref(),x=a.ref(!1),C=a.ref(!1),B=$.useUnit($.pinia),{chooseTitle:w}=$.storeToRefs(B),V=a.ref([]),A=a.ref(),N=a.ref(!1),Y=a.ref([]),b=ac($.pinia),L=Ct($.pinia),T=a.ref(!1),k=a.ref(),_=a.ref(),U=a.ref(),W=$.useLoginState($.pinia),{loginUserInfo:se}=$.storeToRefs(W),Ce=a.ref(),Ie=a.ref(!0),De=$.useModelComp($.pinia),{tableViewContents:le,itemData:we,isEdit:X,routeToChildPath:ue,lockingPage:Ge}=$.storeToRefs(De),za=a.ref(null),re=a.ref(!1),E=a.ref(!1),ae=$.useMenuState(),{activeMenuPath:me}=$.storeToRefs(ae),ce=pa.useOriginalState($.pinia),{originalPath:Ne}=$.storeToRefs(ce),{compType:va,hasEditable:Sa}=Ws.useRole(),Wa=()=>!Sa(o.config,{type:va.FORM});a.computed(()=>me.value==="设备管理/试验设备"&&o.compName==="设备概要");const Q=a.ref([]),na=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Ve=async he=>{E.value=he,await Fa("disabled",null,he,!0)},xa=async he=>{await Fa("operable",null,he,!0)};a.watch(()=>me.value,async()=>{c.value=[],v.value=[]},{deep:!0,immediate:!0});const He=()=>{a.nextTick(()=>{Ja()})},Te=he=>{var Qe;c.value=(Qe=c.value)==null?void 0:Qe.map(ra=>({...ra,isFormColHidden:!(he!=null&&he.includes(ra.label))}))};a.onUnmounted(()=>{za.value=null});const Re=he=>{s("clickTrigger",he)},Je=async he=>{var Qe,ra,Pe,_a,Le,ya;if(he===""){let Xe="";(Qe=c.value)==null||Qe.forEach(sa=>{sa!=null&&sa.isMain&&(Xe=sa==null?void 0:sa.value)});let wa=await pa.getItemData(ue.value,sessionStorage.getItem("systemKey"),"");Xe=((ya=(Le=(_a=(Pe=(ra=wa==null?void 0:wa[0])==null?void 0:ra.compData)==null?void 0:Pe.find(sa=>(sa==null?void 0:sa.key)==="mainRouters"))==null?void 0:_a.contents)==null?void 0:Le[0])==null?void 0:ya.routerContent)+Ne.value+Xe;let Ga=await pa.getItemData(Xe,sessionStorage.getItem("systemKey"),"");N.value=!0,Y.value=Ga==null?void 0:Ga.filter(sa=>(sa==null?void 0:sa.comp)!=="methodButton"),s("routeUrl",Y.value)}},Ja=()=>{var Qe;const he=(Qe=za.value)==null?void 0:Qe.$el;he&&Ra.Sortable.create(he,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:ra=>{const{oldIndex:Pe,newIndex:_a}=ra;if(Pe===_a)return;const Le=c.value.splice(Pe,1)[0];c.value.splice(_a,0,Le)}})},Fa=async(he,Qe,ra,Pe=!1)=>{try{De.setRefreshCurStructure(!1)}catch{ol.ElMessage.error("编辑处理失败")}},P=async(he,Qe)=>{await Fa()},F=async(he,Qe)=>{he&&await Fa()},J=async(he,Qe,ra)=>{await Fa(Qe,ra,he,!1)},ne=(he,Qe)=>{Ce.value===Qe?Ie.value=!1:Ie.value=!0,Ce.value=Qe==null?void 0:Qe.changeProp},te=async he=>{var ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa,Oa,qe,Ya,ba,oe;let Qe=[];if((ra=he==null?void 0:he.toString())!=null&&ra.includes(".urdf")){if(he.includes(",")){ol.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:he,extension:y(he)}],p.value=!0,m.value=!0;return}if((Pe=he==null?void 0:he.toString())!=null&&Pe.includes(".stl")||(_a=he==null?void 0:he.toString())!=null&&_a.includes(".STL")||(Le=he==null?void 0:he.toString())!=null&&Le.includes(".obj")||(ya=he==null?void 0:he.toString())!=null&&ya.includes(".mtl")){const Ue=((Xe=he==null?void 0:he.toString())==null?void 0:Xe.split(",")).map(Ke=>({url:Ke,extension:y(Ke)}));v.value=Ue,p.value=!1,m.value=!0;return}if((wa=he==null?void 0:he.toString())!=null&&wa.includes(".stl")||(ve=he==null?void 0:he.toString())!=null&&ve.includes(".STL")||(Ga=he==null?void 0:he.toString())!=null&&Ga.includes(".obj")||(sa=he==null?void 0:he.toString())!=null&&sa.includes(".mtl")){let Se,Ue=[],Ke={};if(Array.isArray(he)?Se=he:Se=he==null?void 0:he.split(","),Se==null||Se.forEach(Ca=>{Ca.includes(".mtl")?Ue.push(Ca):Ke.blob=Ke.blob?Ke.blob+","+Ca:Ca}),(Ue==null?void 0:Ue.length)>0&&(Ke.mtlBlobs=Ue),(qe=(Oa=Object.values(Ke))==null?void 0:Oa[0])!=null&&qe.includes("http:"))Qe.push(Ke);else{const Ca=new Blob([Ke.blob],{type:"application/octet-stream;charset=UTF-8"});let Be=URL.createObjectURL(Ca),sl="";(Ya=he==null?void 0:he.split("/"))==null||Ya.forEach((Ea,Sl)=>{var ml;Sl===((ml=he==null?void 0:he.split("/"))==null?void 0:ml.length)-1&&(sl=Ea)}),(ba=Ke.blob)!=null&&ba.includes(".stl")&&(sl=(sl==null?void 0:sl.replaceAll(">",""))+".urdf"),A.value=[{name:sl,blobUrl:Be}],C.value=!0}}else{const Se=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Ue=await ol.axios.get(he,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Se.close()}),Ke=new Blob([Ue.data],{type:"application/octet-stream;charset=UTF-8"});let Ca=URL.createObjectURL(Ke),Be="";(oe=he==null?void 0:he.split("/"))==null||oe.forEach((sl,Ea)=>{var Sl;Ea===((Sl=he==null?void 0:he.split("/"))==null?void 0:Sl.length)-1&&(Be=sl)}),A.value=[{name:Be,blobUrl:Ca}],C.value=!0}(Qe==null?void 0:Qe.length)>0&&L.setBlobUrls(Qe)},ga=()=>{C.value=!1},ta=he=>{var Le,ya,Xe,wa;const Qe=(ya=(Le=pl.safeClone(o.itemData))==null?void 0:Le.find(ve=>(ve==null?void 0:ve.key)==="formContent"))==null?void 0:ya.contents,ra=pl.safeClone(he.content);let Pe={};ra&&((Xe=Object.values(ra))==null?void 0:Xe.length)>0&&((wa=Object.values(ra))==null||wa.forEach((ve,Ga)=>{Pe[Qe[Ga].key]=ve}));const _a={content:Pe,index:o==null?void 0:o.index,buttonName:he==null?void 0:he.buttonName};s("change",_a)};a.computed(()=>"http://222.92.178.198:62001");const Oe=async he=>{var Oa,qe,Ya,ba,oe,Se,Ue,Ke,Ca,Be,sl,Ea,Sl,ml,Fe,Pa;if(!he)return;(qe=(Oa=o==null?void 0:o.itemData)==null?void 0:Oa.find(je=>(je==null?void 0:je.key)==="parentFormPath"))==null||qe.contents;let Qe=le.value;(Qe==null?void 0:Qe.length)>0&&(Qe=Qe==null?void 0:Qe.map(je=>{var ea,Ze,la,q;let xe=(ea=je==null?void 0:je.key)==null?void 0:ea.split("/");return(o==null?void 0:o.compName)===(xe==null?void 0:xe[0])&&(Ze=c.value)!=null&&Ze.find(oa=>(oa==null?void 0:oa.prop)===(xe==null?void 0:xe[1]))&&(je.value=(q=(la=c.value)==null?void 0:la.find(oa=>(oa==null?void 0:oa.prop)===(xe==null?void 0:xe[1])))==null?void 0:q.value),je}),De.setTableViewContents(Qe));const ra=pl.safeClone(o.itemData);let Pe=ra==null?void 0:ra.map(je=>{var xe;return(je==null?void 0:je.key)==="formContent"&&((xe=je.contents)==null||xe.map((ea,Ze)=>{var la,q,oa,ka,ye,Ee,qa,pe,fl,al,_l,Ha,Xa,Ba,Za,Va,Wl,Kl,$l;return ea.type=(q=(la=c.value)==null?void 0:la.find(Fl=>(Fl==null?void 0:Fl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:q.type,ea.options=ea!=null&&ea.options?ea.options:((ye=(ka=(oa=ea==null?void 0:ea.key)==null?void 0:oa.split("$"))==null?void 0:ka[1])==null?void 0:ye.length)>0?(fl=(pe=Du((qa=(Ee=ea==null?void 0:ea.key)==null?void 0:Ee.split("$"))==null?void 0:qa[1]))==null?void 0:pe.split(","))==null?void 0:fl.map(Fl=>({label:Fl,value:Fl})):[],(al=ea==null?void 0:ea.key)!=null&&al.includes("$")&&(ea.key=(Ha=(_l=ea==null?void 0:ea.key)==null?void 0:_l.split("$"))==null?void 0:Ha[0]),ea.signature=(Ba=(Xa=c.value)==null?void 0:Xa.find(Fl=>(Fl==null?void 0:Fl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:Ba.signature,ea.isLoginUser=(Va=(Za=c.value)==null?void 0:Za.find(Fl=>(Fl==null?void 0:Fl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:Va.isLoginUser,ea.value=(Wl=Object.values(he))==null?void 0:Wl[Ze],ea.isFormColHidden=($l=(Kl=c.value)==null?void 0:Kl.find(Fl=>(Fl==null?void 0:Fl.prop)===(ea==null?void 0:ea.prop)))==null?void 0:$l.isFormColHidden,ea})),je}),_a=c.value,Le=(ba=(Ya=pl.safeClone(Pe))==null?void 0:Ya.find(je=>(je==null?void 0:je.key)==="formContent"))==null?void 0:ba.contents;if(_a=_a==null?void 0:_a.map(je=>{var xe,ea;return(je==null?void 0:je.type)==="Select"&&((xe=je==null?void 0:je.allSelectionContents)==null?void 0:xe.length)>0&&(je.contactValue=he),je.value=(ea=Le==null?void 0:Le.find((Ze,la)=>((Ze==null?void 0:Ze.id)??la)===(je==null?void 0:je.id)))==null?void 0:ea.value,je}),!Ie.value){s("contentChange",{contents:Pe,index:o.index});return}let ya="",Xe=(Ue=(Se=(oe=pl.safeClone(Pe))==null?void 0:oe.find(je=>(je==null?void 0:je.key)==="formContent"))==null?void 0:Se.contents)==null?void 0:Ue.find((je,xe)=>{var ea,Ze,la;return(je==null?void 0:je.label)===Ce.value||xe.toString()===((la=(Ze=(ea=Ce.value)==null?void 0:ea.split("t"))==null?void 0:Ze[1])==null?void 0:la.toString())}),wa=(Ke=Xe==null?void 0:Xe.optionUrl)==null?void 0:Ke.menuSelect,ve=!0;if((sl=(Be=(Ca=pl.safeClone(Pe))==null?void 0:Ca.find(je=>(je==null?void 0:je.key)==="formContent"))==null?void 0:Be.contents)==null||sl.forEach(je=>{var xe,ea,Ze,la,q,oa;ve&&((Ze=(ea=(xe=je==null?void 0:je.optionUrl)==null?void 0:xe.groupSelect)==null?void 0:ea[1])!=null&&Ze.includes("["))&&(ya=(q=(la=je==null?void 0:je.optionUrl)==null?void 0:la.groupSelect)==null?void 0:q[1],JSON.stringify(wa)===JSON.stringify((oa=je==null?void 0:je.optionUrl)==null?void 0:oa.menuSelect)&&(ve=!1))}),(Ea=Xe==null?void 0:Xe.optionUrl)!=null&&Ea.menuSelect&&Ie.value){let je=await vt(Xe),xe,ea=(Sl=Xe==null?void 0:Xe.optionUrl)==null?void 0:Sl.menuSelect;if(je==null||je.forEach(Ze=>{var la,q,oa,ka,ye,Ee,qa,pe,fl,al;ya===((q=(la=Xe==null?void 0:Xe.optionUrl)==null?void 0:la.groupSelect)==null?void 0:q[1])&&((ye=(ka=(oa=Xe==null?void 0:Xe.optionUrl)==null?void 0:oa.groupSelect)==null?void 0:ka[1])!=null&&ye.includes("["))&&((al=pl.safeClone(Ze))==null?void 0:al[(fl=(pe=(qa=(Ee=Xe==null?void 0:Xe.optionUrl)==null?void 0:Ee.groupSelect)==null?void 0:qa[1])==null?void 0:pe.replaceAll("[",""))==null?void 0:fl.replaceAll("]","")])===(Xe==null?void 0:Xe.value)&&(xe=Ze)}),xe){let Ze=pl.safeClone(_a);Ze=Ze==null?void 0:Ze.map(q=>{var oa,ka,ye,Ee,qa,pe,fl,al,_l,Ha,Xa;return(xe!=null&&xe[q==null?void 0:q.label]||xe!=null&&xe[(Ee=(ye=(ka=(oa=q==null?void 0:q.optionUrl)==null?void 0:oa.groupSelect)==null?void 0:ka[1])==null?void 0:ye.replaceAll("[",""))==null?void 0:Ee.replaceAll("]","")])&&((fl=(pe=(qa=q==null?void 0:q.optionUrl)==null?void 0:qa.groupSelect)==null?void 0:pe[1])!=null&&fl.includes("["))&&ea!=null&&ea.every(Ba=>{var Za,Va;return(Va=(Za=q==null?void 0:q.optionUrl)==null?void 0:Za.menuSelect)==null?void 0:Va.includes(Ba)})&&(q.value=(xe==null?void 0:xe[q==null?void 0:q.label])||(xe==null?void 0:xe[(Xa=(Ha=(_l=(al=q==null?void 0:q.optionUrl)==null?void 0:al.groupSelect)==null?void 0:_l[1])==null?void 0:Ha.replaceAll("[",""))==null?void 0:Xa.replaceAll("]","")]),Array.isArray(q.value)&&q.value.every(Ba=>(Ba==null?void 0:Ba.url)&&(Ba==null?void 0:Ba.name))&&(q.type="Upload")),q}),Ze=Ze==null?void 0:Ze.map(q=>{var oa,ka,ye;return(oa=q==null?void 0:q.optionUrl)!=null&&oa.oldMenuSelect&&(q.optionUrl.menuSelect=(ye=(ka=pl.safeClone(q))==null?void 0:ka.optionUrl)==null?void 0:ye.oldMenuSelect),q}),c.value=pl.safeClone(Ze);let la=pl.safeClone(Ze);la=la==null?void 0:la.map(q=>{var oa,ka,ye,Ee,qa,pe;return(ka=(oa=q==null?void 0:q.optionUrl)==null?void 0:oa.menuSelect)!=null&&ka.some(fl=>fl==null?void 0:fl.includes("["))&&(q.optionUrl.oldMenuSelect=(Ee=(ye=pl.safeClone(q))==null?void 0:ye.optionUrl)==null?void 0:Ee.menuSelect,q.optionUrl.menuSelect=(pe=(qa=q==null?void 0:q.optionUrl)==null?void 0:qa.menuSelect)==null?void 0:pe.map(fl=>{var al,_l,Ha,Xa;if(fl!=null&&fl.includes("[")){let Ba=(_l=(al=fl==null?void 0:fl.replaceAll("[","").replaceAll("]",""))==null?void 0:al.split(":"))==null?void 0:_l[1];fl=(Xa=(Ha=pl.safeClone(Ze))==null?void 0:Ha.find(Za=>(Za==null?void 0:Za.label)===Ba))==null?void 0:Xa.value}return fl})),q}),c.value=la}else c.value=_a;Pe=Pe==null?void 0:Pe.map(Ze=>{var la;return(Ze==null?void 0:Ze.key)==="formContent"&&(Ze.contents=(la=Ze.contents)==null?void 0:la.map(q=>{var oa,ka,ye,Ee;return q.value=((ka=(oa=c.value)==null?void 0:oa.find(qa=>(qa==null?void 0:qa.label)===(q==null?void 0:q.key)))==null?void 0:ka.value)??(q==null?void 0:q.value),q.type=((Ee=(ye=c.value)==null?void 0:ye.find(qa=>(qa==null?void 0:qa.prop)===(q==null?void 0:q.key)))==null?void 0:Ee.type)??(q==null?void 0:q.type),q})),Ze})}Ie.value=!1,s("contentChange",{contents:Pe,index:o.index});let Ga=[],sa=[];if((Fe=pl.safeClone((ml=Pe==null?void 0:Pe.find(je=>(je==null?void 0:je.key)==="formContent"))==null?void 0:ml.contents))==null||Fe.forEach(je=>{var xe;Array.isArray(je==null?void 0:je.value)&&((xe=je==null?void 0:je.value)!=null&&xe.find(ea=>{var Ze;return(Ze=ea==null?void 0:ea.url)==null?void 0:Ze.includes(".obj")}))&&(sa=je==null?void 0:je.value)}),(sa==null?void 0:sa.length)>0){const je=(Pa=pl.safeClone(sa))==null?void 0:Pa.filter(xe=>{var ea;return(ea=xe==null?void 0:xe.url)==null?void 0:ea.includes(".obj")});je==null||je.forEach(xe=>{var Ze,la,q,oa;const ea=(Ze=sa==null?void 0:sa.filter(ka=>{var ye;return(ka==null?void 0:ka.name)===(xe==null?void 0:xe.name)&&((ye=ka==null?void 0:ka.url)==null?void 0:ye.includes(".mtl"))}))==null?void 0:Ze.map(ka=>ka==null?void 0:ka.url);Ga.push({objUrl:xe==null?void 0:xe.url,mtlUrls:((la=sa==null?void 0:sa.filter(ka=>{var ye;return(ka==null?void 0:ka.name)===(xe==null?void 0:xe.name)&&((ye=ka==null?void 0:ka.url)==null?void 0:ye.includes(".mtl"))}))==null?void 0:la.length)===1?(oa=(q=sa==null?void 0:sa.filter(ka=>{var ye;return(ka==null?void 0:ka.name)===(xe==null?void 0:xe.name)&&((ye=ka==null?void 0:ka.url)==null?void 0:ye.includes(".mtl"))}))==null?void 0:q[0])==null?void 0:oa.url:ea})}),L.setObjUrl(Ga)}},_e=(he,Qe,ra)=>{let Pe="";const _a=Qe==null?void 0:Qe.map(Le=>{var ya;return(ya=Le==null?void 0:Le.value)==null?void 0:ya.pageData});return _a==null||_a.forEach(Le=>{var ya;(Le==null?void 0:Le.name)===(he==null?void 0:he[0])&&((ya=Le==null?void 0:Le.compData)==null||ya.forEach(Xe=>{var wa;(Xe==null?void 0:Xe.key)==="formContent"&&((wa=Xe==null?void 0:Xe.contents)==null||wa.forEach(ve=>{var Ga;(ve==null?void 0:ve.prop)===(he==null?void 0:he[1])&&(Pe=(ve==null?void 0:ve.value)===""?pa.judgeContents((Ga=pl.safeClone(ve))==null?void 0:Ga.optionUrl,ra):ve==null?void 0:ve.value)}))}))}),Pe},Da=(he,Qe,ra,Pe)=>{var Xe,wa;let _a="",Le="";(Xe=pl.safeClone(Qe))==null||Xe.forEach((ve,Ga)=>{ve!=null&&ve.includes("[")?Le=Le+Ne.value+he[Ga]:Le=Le===""?Le+ve:Le+"/"+ve});let ya=(wa=Pe[Le])==null?void 0:wa.map(ve=>{var Ga;return(Ga=ve==null?void 0:ve.value)==null?void 0:Ga.pageData});return ya==null||ya.forEach(ve=>{var Ga;(ve==null?void 0:ve.name)===(ra==null?void 0:ra[0])&&((Ga=ve==null?void 0:ve.compData)==null||Ga.forEach(sa=>{var Oa;(sa==null?void 0:sa.key)==="formContent"&&((Oa=sa==null?void 0:sa.contents)==null||Oa.forEach(qe=>{(qe==null?void 0:qe.prop)===(ra==null?void 0:ra[1])&&(_a=qe==null?void 0:qe.value)}))}))}),_a};return a.watch(()=>o.itemData,async()=>{var Ga,sa,Oa,qe,Ya,ba,oe,Se,Ue,Ke,Ca,Be,sl,Ea,Sl,ml,Fe,Pa,je,xe,ea;const he=(Ga=o.itemData)==null?void 0:Ga.find(Ze=>(Ze==null?void 0:Ze.key)==="formContent"),Qe=(sa=pl.safeClone(o.itemData))==null?void 0:sa.find(Ze=>(Ze==null?void 0:Ze.key)==="formButton"),ra=(Oa=pl.safeClone(o.itemData))==null?void 0:Oa.find(Ze=>(Ze==null?void 0:Ze.key)==="formFlex"),Pe=(qe=pl.safeClone(o.itemData))==null?void 0:qe.find(Ze=>(Ze==null?void 0:Ze.key)==="formWrap"),_a=(Ya=pl.safeClone(o.itemData))==null?void 0:Ya.find(Ze=>(Ze==null?void 0:Ze.key)==="enableWrap"),Le=(ba=pl.safeClone(o.itemData))==null?void 0:ba.find(Ze=>(Ze==null?void 0:Ze.key)==="textSize"),ya=(oe=pl.safeClone(o.itemData))==null?void 0:oe.find(Ze=>(Ze==null?void 0:Ze.key)==="textRGBA");(Pe==null?void 0:Pe.contents)==="纵向"?x.value=!1:x.value=!0;const Xe=Number(Le==null?void 0:Le.contents);k.value=Number.isNaN(Xe)?void 0:Xe,_.value=ya==null?void 0:ya.contents;const wa=_a==null?void 0:_a.contents;if(wa===void 0?T.value=ro.BLOCK:typeof wa=="boolean"?T.value=wa?ro.ORDINARY:ro.BLOCK:T.value=wa,U.value=typeof(ra==null?void 0:ra.contents)!="boolean"?!(!(ra!=null&&ra.contents)===""||((Se=ra==null?void 0:ra.contents)==null?void 0:Se.toUpperCase())==="VERTICAL"):ra==null?void 0:ra.contents,((Ue=he==null?void 0:he.contents)==null?void 0:Ue.length)>0&&Array.isArray(he==null?void 0:he.contents)){let Ze=o.allMapContents;const la=(Ca=(Ke=pl.safeClone(he))==null?void 0:Ke.contents)==null?void 0:Ca.map((pe,fl)=>{var kr,wr,Sr,dn,Jr,pn,Xr,qr,fn,tn,Dr,Zr,Nr;let al=(pe==null?void 0:pe.label)??(pe==null?void 0:pe.key)??"";pe==null||pe.type;let _l=(pe==null?void 0:pe.options)??[];if((kr=pe==null?void 0:pe.key)!=null&&kr.includes("$")&&(al=(wr=pl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:wr[0],((dn=(Sr=pl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:Sr[1])==null?void 0:dn.length)>0)){const[Il,Wr]=(pn=(Jr=pl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:Jr[1])==null?void 0:pn.split(/[()]/);(Xr=pa.FormType.find(Br=>(Br==null?void 0:Br.key)===Il))==null||Xr.value,((qr=Wr==null?void 0:Wr.split(","))==null?void 0:qr.length)>0&&(_l=(fn=Wr==null?void 0:Wr.split(","))==null?void 0:fn.map(Br=>({label:Br,value:Br})))}let Ha=pe==null?void 0:pe.options;((tn=pe==null?void 0:pe.optionUrl)==null?void 0:tn.selectRelateType)==="自定义绑定"&&(Ha=(Zr=(Dr=pe==null?void 0:pe.optionUrl)==null?void 0:Dr.defaultSelect)==null?void 0:Zr.map(Il=>({label:Il,value:Il})));let Xa=(pe==null?void 0:pe.menuPath)??[],Ba=(pe==null?void 0:pe.groups)??[],Za=(pe==null?void 0:pe.columns)??[],Va=!1,Wl=(pe==null?void 0:pe.isFormColHidden)??!1,Kl="",$l=pe!=null&&pe.value?pe.value:(Ha==null?void 0:Ha.length)>0?(Nr=Ha==null?void 0:Ha[0])==null?void 0:Nr.value:(pe==null?void 0:pe.value)??"",Fl=!1,gr="Input";return((Ha==null?void 0:Ha.length)>0||(Xa==null?void 0:Xa.length)>0)&&(gr="Select"),(Array.isArray(Kl)&&(Kl!=null&&Kl.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url)))||Array.isArray($l)&&($l!=null&&$l.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url))))&&(gr="upload"),pe!=null&&pe.isMainUrl&&(gr="Url"),{label:al??"",name:al??"t"+fl,prop:al??pl.safeClone(pe==null?void 0:pe.key),type:(pe==null?void 0:pe.type)??gr,value:(pe==null?void 0:pe.type)==="Date"&&$l===""?new Date:$l,id:(pe==null?void 0:pe.id)??fl,contents:(Ha==null?void 0:Ha.length)>0?Ha:_l??[],width:(pe==null?void 0:pe.width)??1,isLoginUser:Va,config:pe==null?void 0:pe.config,optionUrl:(pe==null?void 0:pe.optionUrl)??pe,isFormColHidden:Wl,signature:Fl,isMain:pe==null?void 0:pe.isMain,required:(pe==null?void 0:pe.required)??!1,isMainUrl:pe==null?void 0:pe.isMainUrl,operable:(pe==null?void 0:pe.operable)??!1,disabled:(pe==null?void 0:pe.disabled)??!1,isSync:pe==null?void 0:pe.isSync,menus:Xa,groups:Ba,words:Za,allSelectionContents:pe==null?void 0:pe.allContents,filterContent:pe==null?void 0:pe.filterContents}}),q=la==null?void 0:la.map(pe=>pe==null?void 0:pe.value);let oa="";q==null||q.forEach(pe=>{pe!==""&&pe!==void 0&&(oa=oa===""?pe:oa+"/"+pe)}),b.setSelectArray(q),b.setSelectString(oa);let ka=(Be=pl.safeClone(la))==null?void 0:Be.map(pe=>(pe!=null&&pe.value&&pa.IsJson(pe==null?void 0:pe.value)&&Array.isArray(JSON.parse(pe==null?void 0:pe.value))&&(pe.value=JSON.parse(pe.value)),pe)),ye={};ka==null||ka.forEach(pe=>{ye[pe.label]=pe==null?void 0:pe.value}),ka=ka==null?void 0:ka.map(pe=>{var fl,al,_l,Ha,Xa,Ba,Za,Va,Wl;if((pe==null?void 0:pe.type)==="Select"&&((fl=pe==null?void 0:pe.allSelectionContents)==null?void 0:fl.length)>0&&(pe.contactValue=ye),(_l=(al=pe==null?void 0:pe.optionUrl)==null?void 0:al.menuSelect)!=null&&_l.some(Kl=>Kl==null?void 0:Kl.includes("["))){let Kl="";pe.optionUrl.oldMenuSelect=(Xa=(Ha=pl.safeClone(pe))==null?void 0:Ha.optionUrl)==null?void 0:Xa.menuSelect,pe.optionUrl.menuSelect=(Za=(Ba=pe==null?void 0:pe.optionUrl)==null?void 0:Ba.menuSelect)==null?void 0:Za.map($l=>{var Fl,gr,rr,kr,wr,Sr;if($l!=null&&$l.includes("[")){let dn=(gr=(Fl=$l==null?void 0:$l.replaceAll("[","").replaceAll("]",""))==null?void 0:Fl.split(":"))==null?void 0:gr[1];Kl=_e((rr=$l==null?void 0:$l.replaceAll("[","").replaceAll("]",""))==null?void 0:rr.split(":"),Ze==null?void 0:Ze[me.value],Ze),$l=((wr=(kr=pl.safeClone(ka))==null?void 0:kr.find(Jr=>(Jr==null?void 0:Jr.label)===dn))==null?void 0:wr.value)||_e((Sr=$l==null?void 0:$l.replaceAll("[","").replaceAll("]",""))==null?void 0:Sr.split(":"),Ze==null?void 0:Ze[me.value],Ze)}return $l}),Kl!==""&&pe.value===""&&(pe.value=Da(pe.optionUrl.menuSelect,pe.optionUrl.oldMenuSelect,(Va=pe==null?void 0:pe.optionUrl)==null?void 0:Va.groupSelect,Ze),Array.isArray(pe.value)&&((Wl=pe.value)!=null&&Wl.every($l=>$l==null?void 0:$l.url))&&(pe.type="UPLOAD"))}return pe}),c.value=ka,E.value=((sl=c.value)==null?void 0:sl.every(pe=>pe==null?void 0:pe.disabled))||Ge.value===me.value,re.value=(Ea=c.value)==null?void 0:Ea.every(pe=>pe==null?void 0:pe.operable),Q.value=(Sl=c.value)==null?void 0:Sl.map(pe=>pe==null?void 0:pe.label);let Ee=[],qa=[];if((ml=pl.safeClone(c.value))==null||ml.forEach(pe=>{var fl;Array.isArray(pe==null?void 0:pe.value)&&((fl=pe==null?void 0:pe.value)!=null&&fl.find(al=>{var _l;return(_l=al==null?void 0:al.url)==null?void 0:_l.includes(".obj")}))&&(qa=pe==null?void 0:pe.value)}),(qa==null?void 0:qa.length)>0){const pe=(Fe=pl.safeClone(qa))==null?void 0:Fe.filter(fl=>{var al;return(al=fl==null?void 0:fl.url)==null?void 0:al.includes(".obj")});pe==null||pe.forEach(fl=>{var _l,Ha,Xa,Ba;const al=(_l=qa==null?void 0:qa.filter(Za=>{var Va;return(Za==null?void 0:Za.name)===(fl==null?void 0:fl.name)&&((Va=Za==null?void 0:Za.url)==null?void 0:Va.includes(".mtl"))}))==null?void 0:_l.map(Za=>Za==null?void 0:Za.url);Ee.push({objUrl:fl==null?void 0:fl.url,mtlUrls:((Ha=qa==null?void 0:qa.filter(Za=>{var Va;return(Za==null?void 0:Za.name)===(fl==null?void 0:fl.name)&&((Va=Za==null?void 0:Za.url)==null?void 0:Va.includes(".mtl"))}))==null?void 0:Ha.length)===1?(Ba=(Xa=qa==null?void 0:qa.filter(Za=>{var Va;return(Za==null?void 0:Za.name)===(fl==null?void 0:fl.name)&&((Va=Za==null?void 0:Za.url)==null?void 0:Va.includes(".mtl"))}))==null?void 0:Xa[0])==null?void 0:Ba.url:al})}),L.setObjUrl(Ee)}(Pa=pl.safeClone(c.value))==null||Pa.forEach(pe=>{var fl,al,_l,Ha,Xa,Ba,Za,Va,Wl,Kl,$l,Fl,gr;if((al=(fl=pe==null?void 0:pe.value)==null?void 0:fl.toString())!=null&&al.includes(".stl")||(Ha=(_l=pe==null?void 0:pe.value)==null?void 0:_l.toString())!=null&&Ha.includes(".STL")||(Ba=(Xa=pe==null?void 0:pe.value)==null?void 0:Xa.toString())!=null&&Ba.includes(".obj")||(Va=(Za=pe==null?void 0:pe.value)==null?void 0:Za.toString())!=null&&Va.includes(".mtl")||(Kl=(Wl=pe==null?void 0:pe.value)==null?void 0:Wl.toString())!=null&&Kl.includes(".urdf")){let rr={},kr=[],wr;Array.isArray(pe==null?void 0:pe.value)?wr=pe==null?void 0:pe.value:wr=($l=pe==null?void 0:pe.value)==null?void 0:$l.split(","),wr==null||wr.forEach(Sr=>{Sr.includes(".mtl")?kr.push(Sr):rr.blob=rr.blob==="undefined"?Sr:rr.blob+","+Sr}),(kr==null?void 0:kr.length)>0&&(rr.mtlBlobs=kr),(gr=(Fl=Object.values(rr))==null?void 0:Fl[0])!=null&&gr.includes("http:")}})}else c.value=[];let ve=le.value;if((ve==null?void 0:ve.length)>0&&(ve=ve==null?void 0:ve.map(Ze=>{var q,oa,ka,ye;let la=(q=Ze==null?void 0:Ze.key)==null?void 0:q.split("/");return(o==null?void 0:o.compName)===(la==null?void 0:la[0])&&(oa=c.value)!=null&&oa.find(Ee=>(Ee==null?void 0:Ee.prop)===(la==null?void 0:la[1]))&&(Ze.value=(ye=(ka=c.value)==null?void 0:ka.find(Ee=>(Ee==null?void 0:Ee.prop)===(la==null?void 0:la[1])))==null?void 0:ye.value),Ze}),De.setTableViewContents(ve)),o!=null&&o.formRules)u.value=o==null?void 0:o.formRules;else{let Ze={};(je=pl.safeClone(c).value)==null||je.forEach(la=>{((la==null?void 0:la.isMain)===!0||(la==null?void 0:la.required)===!0)&&(Ze[(la==null?void 0:la.prop)??(la==null?void 0:la.name)]=[{required:!0,message:`${(la==null?void 0:la.label)||(la==null?void 0:la.prop)||(la==null?void 0:la.name)}不能为空`}])}),u.value=Ze}if(((xe=Qe==null?void 0:Qe.contents)==null?void 0:xe.length)>0){const Ze=[];(ea=Qe==null?void 0:Qe.contents)==null||ea.forEach((la,q)=>{(la==null?void 0:la.label)!==""&&Ze.push({label:(la==null?void 0:la.label)??"",id:(la==null?void 0:la.id)??q,type:(la==null?void 0:la.type)??"",background:la==null?void 0:la.background})}),V.value=Ze}else V.value=[]},{deep:!0,immediate:!0}),a.watch(()=>Ge.value,he=>{E.value=he===me.value},{immediate:!0}),(he,Qe)=>{var Xe,wa;const ra=a.resolveComponent("svg-icon"),Pe=a.resolveComponent("el-switch"),_a=a.resolveComponent("el-checkbox"),Le=a.resolveComponent("el-popover"),ya=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",_3,[T.value===a.unref(ro).TEXT?(a.openBlock(),a.createBlock(kc,{key:0,itemData:l.itemData,compName:l.compName,fields:c.value,textSize:k.value,textColor:_.value,disabled:E.value||Wa()},null,8,["itemData","compName","fields","textSize","textColor","disabled"])):T.value===a.unref(ro).BLOCK?(a.openBlock(),a.createBlock(of,{key:1,items:(wa=(Xe=c.value)==null?void 0:Xe.filter(ve=>!(ve!=null&&ve.isFormColHidden)))==null?void 0:wa.map(ve=>({label:ve==null?void 0:ve.label,value:ve==null?void 0:ve.value,width:(ve==null?void 0:ve.width)??1,field:ve})),textSize:k.value,textColor:_.value,disabled:E.value||Wa()},null,8,["items","textSize","textColor","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":T.value===a.unref(ro).ORDINARY})},[a.createVNode(pl.ssForm,{rowContents:c.value,formRules:u.value,buttonValue:V.value,isRowFlex:!1,isEnableWrap:!0,textSize:k.value,textColor:_.value,onOnButtonClick:ta,onChange:Oe,formDisabled:E.value||Wa(),formLabelsOperable:re.value,isButtonRow:x.value,onPreview:te,onBlurChange:ne,onHandleColEditChange:P,onHandleColTypeChange:F,onRouteUrl:Je,onClickTrigger:Re},{operateCol:a.withCtx(({renderColumns:ve,formDisabled:Ga,formLabelsOperable:sa})=>[a.createVNode(Le,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:He},{reference:a.withCtx(()=>[a.createElementVNode("span",w3,[a.createVNode(ra,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",C3,[Qe[1]||(Qe[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(Pe,{"model-value":Ga,"active-text":"禁用","inactive-text":"",onChange:Ve,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(Pe,{"model-value":sa,"active-text":"编辑所有标签","inactive-text":"",onChange:xa},null,8,["model-value"]),Qe[2]||(Qe[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(ya,{modelValue:Q.value,"onUpdate:modelValue":Qe[0]||(Qe[0]=Oa=>Q.value=Oa),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:za,onChange:Te},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ve,Oa=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:Oa.label},[a.createVNode(_a,{value:Oa.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(Oa.label),1)]),_:2},1032,["value"]),a.createVNode(Le,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(ra,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var qe;return[a.createElementVNode("div",S3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((qe=Object.keys(Oa))==null?void 0:qe.filter(Ya=>{var ba;return(ba=na.value)==null?void 0:ba.find(oe=>(oe==null?void 0:oe.value)===Ya)}),Ya=>{var ba,oe;return a.openBlock(),a.createElementBlock("div",{key:Ya},[a.createVNode(pl._sfc_main$1,{value:Oa==null?void 0:Oa[Ya],"active-text":(oe=(ba=na.value)==null?void 0:ba.find(Se=>(Se==null?void 0:Se.value)===Ya))==null?void 0:oe.label,inactiveText:"",onChange:Se=>J(Se,Ya,Oa)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",E3,[a.createVNode(ra,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","formDisabled","formLabelsOperable","isButtonRow"])],2)),C.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:3,fileDataList:A.value,onDestroy:ga},null,8,["fileDataList"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:4,visible:m.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(_i.ThreeViewerHost,{files:v.value,onGetAnimationData:he.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},ys=ql._export_sfc(D3,[["__scopeId","data-v-c4708f41"]]),Ti=a.ref(0),xc=l=>{var r;return!l||(l==null?void 0:l.length)===0?[]:(r=$.cloneDeep(l))==null?void 0:r.map(o=>(Ti.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)??Ti.value,children:xc(o==null?void 0:o.children)},o))},N3=l=>{var n;return(n=$.cloneDeep(l))==null?void 0:n.map(o=>(Ti.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)??Ti.value,children:xc(o==null?void 0:o.children)},o))},_c=(l,r)=>{var n;return l!=null&&l.find(o=>(o==null?void 0:o.id)===r)?(n=$.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=_c(o==null?void 0:o.children,r),o)),l)},wc=(l,r)=>{var n;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(r==null?void 0:r.id))?(n=$.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=wc(o==null?void 0:o.children,r),o)),l)},Cc=(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=$.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=Cc(o==null?void 0:o.children,r),o)),l)},Sc=(l,r)=>{var n;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(r==null?void 0:r.id))?(n=$.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=Sc(o==null?void 0:o.children,r),o)),l)},Ql=[{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"}],B3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],T3=[{label:"新增",value:"add"}],Mn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:T3},{key:"background",label:"按钮背景色",type:"Color"}],On=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:B3},{key:"textColor",label:"按钮颜色",type:"Color"}],A3={class:"table-header-child"},z3={class:"table-header-child-main"},M3={class:"table-header-child-content"},O3={class:"table-header-child-content-item"},I3={class:"fix-button"},L3={key:0},$3={class:"form-content"},R3={__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=pa.useTableComp($.pinia),{tableIndex:p}=$.storeToRefs(m);a.ref(0);const v=a.ref(""),y=a.ref([]),u=a.ref([]),x=b=>{var T;s.value=!0;let L=[];Ql==null||Ql.forEach(k=>{let _=$.cloneDeep(p.value)+1;m.setTableIndex(_),L.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:b[k.key],id:p.value,contents:k==null?void 0:k.options})}),b!=null&&b.children&&((T=b==null?void 0:b.children)==null?void 0:T.length)>0&&L.push({children:b==null?void 0:b.children,isFormColHidden:!0}),v.value=b==null?void 0:b.id,y.value=L,u.value=L},C=b=>{o("fixChange",$.cloneDeep(b))},B=b=>{o("deleteChange",$.cloneDeep(b))},w=b=>{s.value=!0;let L=[];Ql==null||Ql.forEach(T=>{let k=$.cloneDeep(p.value)+1;m.setTableIndex(k),L.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:"",id:p.value,contents:T==null?void 0:T.options})}),c.value=b==null?void 0:b.id,y.value=L,u.value=L},V=b=>{let L=$.cloneDeep(u.value);L=L==null?void 0:L.map(T=>(T.children||(T.value=b==null?void 0:b[T.name]),T)),u.value=L},A=()=>{var L,T;y.value=u.value;let b={};if(v.value!=="")b.id=v.value,(L=y.value)==null||L.forEach(k=>{const _=Ql==null?void 0:Ql.find(U=>(U==null?void 0:U.label)===(k==null?void 0:k.label));_?b[_.key]=k.value:k!=null&&k.children&&k.children.length>0&&(b.children=k.children)}),s.value=!1,o("fixChange",{contents:$.cloneDeep(b),id:c.value,type:"fix"});else{let k=$.cloneDeep(p.value)+1;m.setTableIndex(k),b.id="id"+p.value,(T=y.value)==null||T.forEach(_=>{const U=Ql==null?void 0:Ql.find(W=>(W==null?void 0:W.label)===(_==null?void 0:_.label));U?b[U.key]=_.value:_!=null&&_.children&&_.children.length>0&&(b.children=_.children)}),s.value=!1,o("fixChange",{contents:$.cloneDeep(b),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},N=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},Y=b=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",b),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(b,L)=>{const T=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",A3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(k,_)=>(a.openBlock(),a.createElementBlock("div",z3,[a.createElementVNode("div",M3,[a.createElementVNode("div",O3,a.toDisplayString(k.label),1),a.createElementVNode("div",I3,[a.createVNode(T,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>w(k)},null,8,["onClick"]),a.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>x(k)},null,8,["onClick"]),a.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>Y(k)},null,8,["onClick"])])]),k!=null&&k.children&&k.children.length>0?(a.openBlock(),a.createElementBlock("div",L3,[a.createVNode(Ec,{tableChildContents:k==null?void 0:k.children,onDeleteChange:B,onFixChange:C},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:N,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",$3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:V},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:N,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:A},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},V3=ql._export_sfc(R3,[["__scopeId","data-v-e0fef72d"]]),P3={class:"table-header-child"},F3={class:"table-header-child-main"},j3={class:"table-header-child-content"},H3={class:"table-header-child-content-item"},U3={class:"fix-button"},q3={key:0},W3={class:"form-content"},K3={class:"dialog-footer"},Y3={__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=pa.useTableComp($.pinia),{tableIndex:p}=$.storeToRefs(m),v=a.ref(""),y=a.ref([]),u=a.ref([]),x=b=>{o("fixChange",$.cloneDeep(b))},C=b=>{var T;s.value=!0;let L=[];Ql==null||Ql.forEach(k=>{let _=$.cloneDeep(p.value)+1;m.setTableIndex(_),L.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:b[k.key],id:p.value,contents:k==null?void 0:k.options})}),b!=null&&b.children&&((T=b==null?void 0:b.children)==null?void 0:T.length)>0&&L.push({children:b==null?void 0:b.children,isFormColHidden:!0}),v.value=b==null?void 0:b.id,y.value=L,u.value=L},B=b=>{s.value=!0;let L=[];Ql==null||Ql.forEach(T=>{let k=$.cloneDeep(p.value)+1;m.setTableIndex(k),L.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:"",id:p.value,contents:T==null?void 0:T.options})}),c.value=b==null?void 0:b.id,y.value=L,u.value=L},w=b=>{let L=$.cloneDeep(u.value);L=L==null?void 0:L.map(T=>(T.children||(T.value=b==null?void 0:b[T.name]),T)),u.value=L},V=()=>{var L,T;y.value=u.value;let b={};if(v.value!=="")b.id=v.value,(L=y.value)==null||L.forEach(k=>{const _=Ql==null?void 0:Ql.find(U=>(U==null?void 0:U.label)===(k==null?void 0:k.label));_?b[_.key]=k.value:k!=null&&k.children&&k.children.length>0&&(b.children=k.children)}),s.value=!1,o("fixChange",{contents:$.cloneDeep(b),id:c.value,type:"fix"});else{let k=$.cloneDeep(p.value)+1;m.setTableIndex(k),b.id="idChild"+p.value,(T=y.value)==null||T.forEach(_=>{const U=Ql==null?void 0:Ql.find(W=>(W==null?void 0:W.label)===(_==null?void 0:_.label));U?b[U.key]=_.value:_!=null&&_.children&&_.children.length>0&&(b.children=_.children)}),s.value=!1,o("fixChange",{contents:$.cloneDeep(b),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},A=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},N=b=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",b),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Y=b=>{o("deleteChange",b)};return(b,L)=>{const T=a.resolveComponent("svg-icon"),k=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",P3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(_,U)=>(a.openBlock(),a.createElementBlock("div",F3,[a.createElementVNode("div",j3,[a.createElementVNode("div",H3,a.toDisplayString(_.label),1),a.createElementVNode("div",U3,[a.createVNode(T,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>B(_)},null,8,["onClick"]),a.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>C(_)},null,8,["onClick"]),a.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>N(_)},null,8,["onClick"])])]),_!=null&&_.children&&_.children.length>0?(a.openBlock(),a.createElementBlock("div",q3,[a.createVNode(V3,{tableChildContents:_==null?void 0:_.children,onDeleteChange:Y,onFixChange:x},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:A,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",W3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:w},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",K3,[a.createVNode(k,{onClick:A,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>L[0]||(L[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(k,{class:"ok-button button",onClick:V,id:"themeButton"},{default:a.withCtx(()=>L[1]||(L[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Ec=ql._export_sfc(Y3,[["__scopeId","data-v-ebd68fa1"]]),G3={class:"table-operate-content"},J3={class:"table-operate-item"},X3={class:"operate-title"},Z3={class:"operate-content"},Q3={class:"fix-content"},e1={class:"fix-content-label"},a1={class:"fix-button"},l1={key:0},r1={class:"operate-title"},n1={class:"operate-content"},o1={class:"fix-content"},i1={class:"fix-content-label"},s1={class:"fix-button"},c1={class:"operate-title"},u1={class:"operate-content"},d1={class:"fix-content"},p1={class:"fix-content-label"},f1={class:"fix-button"},h1={class:"operate-title"},v1={class:"operate-content"},m1={class:"fix-content"},y1={class:"fix-content-label"},g1={class:"fix-button"},b1={class:"operate-content"},k1={style:{display:"flex","justify-content":"space-between"}},x1={class:"form-content"},_1={class:"dialog-footer"},w1={class:"form-content"},C1={class:"dialog-footer"},S1={class:"form-content"},E1={class:"dialog-footer"},D1={class:"form-content"},N1={class:"dialog-footer"},B1={__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),p=a.ref([]),v=a.ref(!1),y=a.ref([]),u=a.ref(!1),x=a.ref([]),C=a.ref(""),B=a.ref(""),w=a.ref([]),V=a.ref([]),A=a.ref([]),N=a.ref([]),Y=a.ref(!1),b=a.ref([]),L=a.ref([]),T=a.ref(0),k=a.ref([]),_=a.ref([]),U=a.ref([]),W=()=>{Y.value=!0;let P=[];Mn==null||Mn.forEach(F=>{T.value++,P.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:(F==null?void 0:F.key)==="background"?"var(--ssComponent-primary-color)":"",id:T.value,contents:F==null?void 0:F.options})}),b.value=P,L.value=P},se=()=>{var F,J,ne;m.value=!0;let P=[];(ne=(J=(F=pa.FormContent)==null?void 0:F.find(te=>(te==null?void 0:te.key)==="Input"))==null?void 0:J.value)==null||ne.forEach(te=>{T.value++,P.push({label:te==null?void 0:te.label,name:(te==null?void 0:te.name)||(te==null?void 0:te.label),type:te.type,value:(te==null?void 0:te.label)==="类型"?"Input":"",id:T.value,contents:te==null?void 0:te.options})}),k.value=P,_.value=P},Ce=P=>{P||(k.value=_.value)},Ie=async P=>{var F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra;if((P==null?void 0:P.类型)!==((J=(F=_.value)==null?void 0:F.find(Pe=>(Pe==null?void 0:Pe.label)==="类型"))==null?void 0:J.value)){let Pe=[],_a=await((ga=(te=(ne=pa.FormContent)==null?void 0:ne.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:te.value)==null?void 0:ga.value)?await((he=(Da=(_e=pa.FormContent)==null?void 0:_e.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:Da.value)==null?void 0:he.value):(Oe=(ta=pa.FormContent)==null?void 0:ta.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:Oe.value;if(_a==null||_a.forEach(Le=>{T.value++,Pe.push({label:Le==null?void 0:Le.label,name:(Le==null?void 0:Le.name)||(Le==null?void 0:Le.label),type:Le.type,value:Le!=null&&Le.属性名?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):(P==null?void 0:P[Le.label])??"",id:T.value,contents:Le==null?void 0:Le.options,prop:(Le==null?void 0:Le.prop)||(Le==null?void 0:Le.name)||(Le==null?void 0:Le.label)})}),P!=null&&P.菜单选项&&((Qe=P==null?void 0:P.菜单选项)==null?void 0:Qe.length)>0){const Le=await pa.menuToContentType(P==null?void 0:P.菜单选项);Pe=Pe==null?void 0:Pe.map(ya=>((ya==null?void 0:ya.name)==="组信息选项"&&(ya.contents=Le),ya))}_.value=await pa.selectToBase($.cloneDeep(Pe)),k.value=await pa.selectToBase($.cloneDeep(Pe))}else{let Pe=$.cloneDeep(k.value);if(Pe=Pe==null?void 0:Pe.map(_a=>(_a.value=P==null?void 0:P[_a.name],_a)),P!=null&&P.菜单选项&&((ra=P==null?void 0:P.菜单选项)==null?void 0:ra.length)>0){const _a=await pa.menuToContentType(P==null?void 0:P.菜单选项);Pe=Pe==null?void 0:Pe.map(Le=>((Le==null?void 0:Le.name)==="组信息选项"&&(Le.contents=_a),Le))}Pe=pa.formToOptionsContents(Pe),_.value=await pa.selectToBase($.cloneDeep(Pe))}},De=async P=>{await Ie(P),k.value=_.value},le=(P,F)=>{if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="selectRelateType"){const J=F==null?void 0:F.optionUrl;return(J==null?void 0:J.selectRelateType)||F[P.key]}if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="menuSelect"){const J=F==null?void 0:F.optionUrl;return(J==null?void 0:J.menuSelect)||F[P.key]}if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="groupSelect"){const J=F==null?void 0:F.optionUrl;return(J==null?void 0:J.groupSelect)||F[P.key]}if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="originalContent")return(F==null?void 0:F.value)||F[P.key];if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="multiple"){const J=F[P.key];return Ys(J)?J:P.default}return(P==null?void 0:P.label)==="类型"&&F[P.key]===""?"Input":(P==null?void 0:P.key)==="isFormColHidden"&&!F[P.key]?!1:F[P.key]},we=async P=>{var ne,te,ga,ta,Oe,_e,Da,he,Qe;m.value=!0;let F=[];const J=await((ga=(te=(ne=pa.FormContent)==null?void 0:ne.find(ra=>(ra==null?void 0:ra.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:te.value)==null?void 0:ga.value)?await((he=(Da=(_e=pa.FormContent)==null?void 0:_e.find(ra=>(ra==null?void 0:ra.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:Da.value)==null?void 0:he.value):(Oe=(ta=pa.FormContent)==null?void 0:ta.find(ra=>(ra==null?void 0:ra.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:Oe.value;if(J==null||J.forEach(ra=>{T.value++,F.push({label:ra==null?void 0:ra.label,name:(ra==null?void 0:ra.name)||(ra==null?void 0:ra.label),type:ra.type,value:(ra==null?void 0:ra.label)==="属性名"?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):le(ra,P),id:T.value,contents:ra==null?void 0:ra.options})}),P!=null&&P.menuSelect&&((Qe=P==null?void 0:P.menuSelect)==null?void 0:Qe.length)>0){const ra=await pa.menuToContentType(P==null?void 0:P.menuSelect);F=F==null?void 0:F.map(Pe=>((Pe==null?void 0:Pe.name)==="组信息选项"&&(Pe.contents=ra),Pe))}C.value=P==null?void 0:P.id,k.value=await pa.selectToBase(pa.formToOptionsContents(F)),_.value=await pa.selectToBase(pa.formToOptionsContents(F))},X=P=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,J;U.value=(F=$.cloneDeep(U.value))==null?void 0:F.filter(ne=>(ne==null?void 0:ne.id)!==(P==null?void 0:P.id)),o("change",(J=$.cloneDeep(n.originalItemContents))==null?void 0:J.map(ne=>((ne==null?void 0:ne.key)==="tableToForm"&&(ne.contents=U.value),ne))),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ue=()=>{m.value=!1,k.value=[],C.value=""},Ge=async()=>{var ne,te,ga,ta,Oe,_e,Da,he,Qe,ra;k.value=_.value;let P={};C.value!==""?P.id=C.value:(T.value++,P.id="id"+T.value);let F=await((ga=(te=(ne=pa.FormContent)==null?void 0:ne.find(Pe=>{var _a,Le;return(Pe==null?void 0:Pe.key)===(((Le=(_a=k.value)==null?void 0:_a.find(ya=>(ya==null?void 0:ya.label)==="类型"))==null?void 0:Le.value)??"label")}))==null?void 0:te.value)==null?void 0:ga.value)??((Oe=(ta=pa.FormContent)==null?void 0:ta.find(Pe=>{var _a,Le;return(Pe==null?void 0:Pe.key)===(((Le=(_a=k.value)==null?void 0:_a.find(ya=>(ya==null?void 0:ya.label)==="类型"))==null?void 0:Le.value)??"label")}))==null?void 0:Oe.value);if((_e=k.value)==null||_e.forEach(Pe=>{const _a=F==null?void 0:F.find(Le=>(Le==null?void 0:Le.label)===(Pe==null?void 0:Pe.label));_a&&(P[_a.key]=Pe.value)}),P.name=P.label,(Da=U.value)!=null&&Da.find(Pe=>Pe.id===P.id))U.value=(he=U.value)==null?void 0:he.map(Pe=>(Pe.id===P.id&&(Pe=P),Pe));else{let Pe=$.cloneDeep(U.value);U.value||(U.value=[]),Pe.push(P),U.value=Pe}U.value=U.value.map(({id:Pe,..._a})=>_a),m.value=!1,C.value="";let J=$.cloneDeep(n.originalItemContents);(Qe=$.cloneDeep(n.originalItemContents))!=null&&Qe.find(Pe=>(Pe==null?void 0:Pe.key)==="tableToForm")?J=(ra=$.cloneDeep(n.originalItemContents))==null?void 0:ra.map(Pe=>((Pe==null?void 0:Pe.key)==="tableToForm"&&(Pe.contents=U.value),Pe)):J.push({key:"tableToForm",contents:U.value}),o("change",J)},za=P=>{Y.value=!0;let F=[];Mn==null||Mn.forEach(J=>{T.value++,F.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:P[J.key],id:T.value,contents:J==null?void 0:J.options})}),C.value=P==null?void 0:P.id,b.value=F,L.value=F};a.watch(()=>u.value,()=>{var F,J;let P=$.cloneDeep(n.originalItemContents);(F=$.cloneDeep(n.originalItemContents))!=null&&F.find(ne=>(ne==null?void 0:ne.key)==="page")?P=(J=$.cloneDeep(n.originalItemContents))==null?void 0:J.map(ne=>((ne==null?void 0:ne.key)==="page"&&(ne.contents=u.value),ne)):P.push({key:"page",contents:u.value}),o("change",P)},{deep:!0});const re=P=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,J;V.value=(F=$.cloneDeep(V.value))==null?void 0:F.filter(ne=>(ne==null?void 0:ne.id)!==(P==null?void 0:P.id)),o("change",(J=$.cloneDeep(n.originalItemContents))==null?void 0:J.map(ne=>((ne==null?void 0:ne.key)==="extraButton"&&(ne.contents=V.value),ne))),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},E=()=>{var J,ne,te,ga,ta;b.value=L.value;let P={};if(C.value!==""?P.id=C.value:(T.value++,P.id="id"+T.value),(J=b.value)==null||J.forEach(Oe=>{const _e=Mn==null?void 0:Mn.find(Da=>(Da==null?void 0:Da.label)===(Oe==null?void 0:Oe.label));_e?P[_e.key]=Oe.value:Oe!=null&&Oe.children&&Oe.children.length>0&&(P.children=Oe.children)}),(ne=V.value)!=null&&ne.find(Oe=>Oe.id===P.id))V.value=(te=V.value)==null?void 0:te.map(Oe=>(Oe.id===P.id&&(Oe=P),Oe));else{let Oe=$.cloneDeep(V.value)??[];Oe.push(P),V.value=Oe}Y.value=!1,C.value="";let F=$.cloneDeep(n.originalItemContents);(ga=$.cloneDeep(n.originalItemContents))!=null&&ga.find(Oe=>(Oe==null?void 0:Oe.key)==="extraButton")?F=(ta=$.cloneDeep(n.originalItemContents))==null?void 0:ta.map(Oe=>((Oe==null?void 0:Oe.key)==="extraButton"&&(Oe.contents=V.value),Oe)):F.push({key:"extraButton",contents:V.value}),o("change",F)},ae=P=>{let F=$.cloneDeep(L.value);F=F==null?void 0:F.map(J=>(J.children||(J.value=P==null?void 0:P[J.name]),J)),L.value=F},me=()=>{Y.value=!1,b.value=[],C.value=""},ce=P=>{v.value=!0;let F=[];On==null||On.forEach(J=>{T.value++,F.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:P[J.key],id:T.value,contents:J==null?void 0:J.options})}),C.value=P==null?void 0:P.id,A.value=F,N.value=F},Ne=P=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,J;w.value=(F=$.cloneDeep(w.value))==null?void 0:F.filter(ne=>(ne==null?void 0:ne.id)!==(P==null?void 0:P.id)),o("change",(J=$.cloneDeep(n.originalItemContents))==null?void 0:J.map(ne=>((ne==null?void 0:ne.key)==="rowButton"&&(ne.contents=w.value),ne))),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},va=()=>{c.value=!0;let P=[];Ql==null||Ql.forEach(F=>{T.value++,P.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:T.value,contents:F==null?void 0:F.options})}),y.value=P,x.value=P},Sa=()=>{v.value=!0;let P=[];On==null||On.forEach(F=>{T.value++,P.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:T.value,contents:F==null?void 0:F.options})}),A.value=P,N.value=P},Wa=P=>{let F=$.cloneDeep(N.value);F=F==null?void 0:F.map(J=>(J.children||(J.value=P==null?void 0:P[J.name]),J)),N.value=F},Q=()=>{var J,ne,te,ga,ta;A.value=N.value;let P={};if(C.value!==""?P.id=C.value:(T.value++,P.id="id"+T.value),(J=A.value)==null||J.forEach(Oe=>{const _e=On==null?void 0:On.find(Da=>(Da==null?void 0:Da.label)===(Oe==null?void 0:Oe.label));_e?P[_e.key]=Oe.value:Oe!=null&&Oe.children&&Oe.children.length>0&&(P.children=Oe.children)}),(ne=w.value)!=null&&ne.find(Oe=>Oe.id===P.id))w.value=(te=w.value)==null?void 0:te.map(Oe=>(Oe.id===P.id&&(Oe=P),Oe));else{let Oe=$.cloneDeep(w.value);Oe.push(P),w.value=Oe}v.value=!1,C.value="";let F=$.cloneDeep(n.originalItemContents);(ga=$.cloneDeep(n.originalItemContents))!=null&&ga.find(Oe=>(Oe==null?void 0:Oe.key)==="rowButton")?F=(ta=$.cloneDeep(n.originalItemContents))==null?void 0:ta.map(Oe=>((Oe==null?void 0:Oe.key)==="rowButton"&&(Oe.contents=w.value),Oe)):F.push({key:"rowButton",contents:w.value}),o("change",F)},na=()=>{v.value=!1,C.value="",N.value=[],A.value=[]},Ve=P=>{c.value=!0;let F=[];Ql==null||Ql.forEach(J=>{T.value++,F.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:"",id:T.value,contents:J==null?void 0:J.options})}),y.value=F,B.value=P==null?void 0:P.id,x.value=F},xa=P=>{var F;p.value=_c($.cloneDeep(p.value),P==null?void 0:P.id),o("change",(F=$.cloneDeep(n.originalItemContents))==null?void 0:F.map(J=>{var ne;return(J==null?void 0:J.key)==="header"&&(J.contents=(ne=p.value)!=null&&ne.some(te=>te==null?void 0:te.children)?[p.value]:p.value),J}))},He=P=>{var J,ne,te;P.type==="fix"?P.id!==""?p.value=Cc(p.value,P):p.value=wc(p.value,P==null?void 0:P.contents):p.value=Sc(p.value,P),p.value=(J=p.value)!=null&&J.some(ga=>ga==null?void 0:ga.children)?[p.value]:p.value,C.value="";let F=$.cloneDeep(n.originalItemContents);(ne=$.cloneDeep(n.originalItemContents))!=null&&ne.find(ga=>(ga==null?void 0:ga.key)==="header")?F=(te=$.cloneDeep(n.originalItemContents))==null?void 0:te.map(ga=>((ga==null?void 0:ga.key)==="header"&&(ga.contents=p.value),ga)):F.push({key:"header",contents:p.value}),o("change",F)},Te=P=>{var J;c.value=!0;let F=[];Ql==null||Ql.forEach(ne=>{T.value++,F.push({label:ne==null?void 0:ne.label,name:ne==null?void 0:ne.label,type:ne.type,value:P[ne.key],id:T.value,contents:ne==null?void 0:ne.options})}),P!=null&&P.children&&((J=P==null?void 0:P.children)==null?void 0:J.length)>0&&F.push({children:P==null?void 0:P.children,isFormColHidden:!0}),C.value=P==null?void 0:P.id,B.value="",y.value=F,x.value=F},Re=P=>{let F=$.cloneDeep(x.value);F=F==null?void 0:F.map(J=>(J.children||(J.value=P==null?void 0:P[J.name]),J)),x.value=F},Je=()=>{c.value=!1,C.value="",B.value="",x.value=[]},Ja=()=>{var J,ne,te,ga,ta,Oe;y.value=x.value;let P={};if(C.value!==""?P.id=C.value:(T.value++,P.id="id"+T.value),(J=y.value)==null||J.forEach(_e=>{const Da=Ql==null?void 0:Ql.find(he=>(he==null?void 0:he.label)===(_e==null?void 0:_e.label));Da?P[Da.key]=_e.value:_e!=null&&_e.children&&_e.children.length>0&&(P.children=_e.children)}),(ne=p.value)!=null&&ne.find(_e=>_e.id===P.id))p.value=(te=p.value)==null?void 0:te.map(_e=>(_e.id===P.id&&(_e=P),_e));else{let _e=$.cloneDeep(p.value)??[];B.value===""?_e.push(P):_e=_e==null?void 0:_e.map(Da=>(Da.id===B.value&&(Da.children||(Da.children=[]),Da.children.push(P)),Da)),p.value=_e}p.value=(ga=p.value)!=null&&ga.some(_e=>_e==null?void 0:_e.children)?[p.value]:p.value,c.value=!1,C.value="",B.value="";let F=$.cloneDeep(n.originalItemContents);(ta=$.cloneDeep(n.originalItemContents))!=null&&ta.find(_e=>(_e==null?void 0:_e.key)==="header")?F=(Oe=$.cloneDeep(n.originalItemContents))==null?void 0:Oe.map(_e=>((_e==null?void 0:_e.key)==="header"&&(_e.contents=p.value),_e)):F.push({key:"header",contents:p.value}),o("change",F)},Fa=P=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,J;p.value=(F=$.cloneDeep(p.value))==null?void 0:F.filter(ne=>(ne==null?void 0:ne.id)!==(P==null?void 0:P.id)),o("change",(J=$.cloneDeep(n.originalItemContents))==null?void 0:J.map(ne=>{var te;return(ne==null?void 0:ne.key)==="header"&&(ne.contents=(te=p.value)!=null&&te.some(ga=>ga==null?void 0:ga.children)?[p.value]:p.value),ne})),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>n.originalItemContents,()=>{var P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(s.value=$.cloneDeep(n.originalItemContents),p.value=(F=(P=s.value)==null?void 0:P.find(ve=>(ve==null?void 0:ve.key)==="header"))==null?void 0:F.contents,w.value=(ne=(J=s.value)==null?void 0:J.find(ve=>(ve==null?void 0:ve.key)==="rowButton"))==null?void 0:ne.contents,V.value=(ga=(te=s.value)==null?void 0:te.find(ve=>(ve==null?void 0:ve.key)==="extraButton"))==null?void 0:ga.contents,u.value=(Oe=(ta=s.value)==null?void 0:ta.find(ve=>(ve==null?void 0:ve.key)==="page"))!=null&&Oe.contents?!!((Da=(_e=s.value)==null?void 0:_e.find(ve=>(ve==null?void 0:ve.key)==="page"))!=null&&Da.contents):!1,U.value=(Qe=(he=s.value)==null?void 0:he.find(ve=>(ve==null?void 0:ve.key)==="tableToForm"))==null?void 0:Qe.contents,p.value=(ra=p.value)==null?void 0:ra.map((ve,Ga)=>(Array.isArray(ve)?ve=N3(ve):ve={label:(ve==null?void 0:ve.label)??"",prop:(ve==null?void 0:ve.label)==="操作"?"operate":ve==null?void 0:ve.prop,width:ve!=null&&ve.width?parseInt(ve.width):"",fixed:(ve==null?void 0:ve.fixed)??void 0,sortable:(ve==null?void 0:ve.sortable)??!1,align:(ve==null?void 0:ve.align)??"left",showOverflowTooltip:(ve==null?void 0:ve.showOverflowTooltip)??!0,isNotDrag:(ve==null?void 0:ve.isNotDrag)??!1,isEditCol:(ve==null?void 0:ve.isEditCol)??!1,isOperate:(ve==null?void 0:ve.isOperate)??!1,id:(ve==null?void 0:ve.id)??Ga,formMenuSelect:(ve==null?void 0:ve.formMenuSelect)??void 0,groupSelect:(ve==null?void 0:ve.groupSelect)??void 0},ve)),p.value=(Pe=p.value)!=null&&Pe.every(ve=>Array.isArray(ve))?(_a=p.value)==null?void 0:_a[0]:p.value,w.value=(Le=w.value)==null?void 0:Le.map((ve,Ga)=>ve={label:(ve==null?void 0:ve.label)??"",type:(ve==null?void 0:ve.type)??"",textColor:(ve==null?void 0:ve.textColor)??"#000000",id:(ve==null?void 0:ve.id)??Ga}),V.value=(ya=V.value)==null?void 0:ya.map((ve,Ga)=>ve={label:(ve==null?void 0:ve.label)??"",type:(ve==null?void 0:ve.type)??"",background:(ve==null?void 0:ve.background)??"var(--ssComponent-primary-color)",id:(ve==null?void 0:ve.id)??Ga}),U.value)U.value=(wa=U.value)==null?void 0:wa.map(ve=>{T.value++;let Ga=ve;return Ga.id=T.value,Ga});else{let ve=[];const Ga=(Xe=pa.getColumnChild($.cloneDeep(p.value)))==null?void 0:Xe.filter(sa=>(sa==null?void 0:sa.prop)!=="operate");Ga==null||Ga.forEach(sa=>{var Oa;T.value++,ve.push({label:sa==null?void 0:sa.label,name:(sa==null?void 0:sa.prop)||(sa==null?void 0:sa.label),type:sa!=null&&sa.groupSelect?"Select":"Input",value:"",id:T.value,contents:sa==null?void 0:sa.options,menuSelect:sa==null?void 0:sa.formMenuSelect,groupSelect:(Oa=sa==null?void 0:sa.groupSelect)==null?void 0:Oa.split(":"),selectRelateType:"关联绑定列"})}),U.value=ve}},{deep:!0,immediate:!0}),(P,F)=>{const J=a.resolveComponent("svg-icon"),ne=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",G3,[a.createElementVNode("div",J3,[a.createElementVNode("div",X3,[F[2]||(F[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(ne,{class:"icon-content",onClick:va,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[1]||(F[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",Z3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(te,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",Q3,[a.createElementVNode("div",e1,a.toDisplayString(te==null?void 0:te.label),1),a.createElementVNode("div",a1,[a.createVNode(J,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>Ve(te)},null,8,["onClick"]),a.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>Te(te)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>Fa(te)},null,8,["onClick"])])]),te!=null&&te.children&&te.children.length>0?(a.openBlock(),a.createElementBlock("div",l1,[a.createVNode(Ec,{tableChildContents:te==null?void 0:te.children,onDeleteChange:xa,onFixChange:He},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",r1,[F[4]||(F[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(ne,{class:"icon-content",id:"themeButton",onClick:Sa},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[3]||(F[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",n1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,(te,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",o1,[a.createElementVNode("div",i1,a.toDisplayString(te==null?void 0:te.label),1),a.createElementVNode("div",s1,[a.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ta=>ce(te)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>Ne(te)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",c1,[F[6]||(F[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(ne,{class:"icon-content",id:"themeButton",onClick:W},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[5]||(F[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",u1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(V.value,(te,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",d1,[a.createElementVNode("div",p1,a.toDisplayString(te==null?void 0:te.label),1),a.createElementVNode("div",f1,[a.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ta=>za(te)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>re(te)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",h1,[F[8]||(F[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(ne,{class:"icon-content",id:"themeButton",onClick:se},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[7]||(F[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",v1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(U.value,(te,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",m1,[a.createElementVNode("div",y1,a.toDisplayString(te==null?void 0:te.label),1),a.createElementVNode("div",g1,[a.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ta=>we(te)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ta=>X(te)},null,8,["onClick"])])])]))),128))]),F[10]||(F[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",b1,[a.createElementVNode("div",k1,[F[9]||(F[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=te=>u.value=te)},null,8,["modelValue"])])])]),a.createVNode(vr.ssDialog,{visible:c.value,onBeforeDestroy:Je,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",x1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:Re},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",_1,[a.createVNode(ne,{onClick:Je,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[11]||(F[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(ne,{class:"ok-button button",onClick:Ja,id:"themeButton"},{default:a.withCtx(()=>F[12]||(F[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:v.value,onBeforeDestroy:na,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",w1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:A.value,key:A.value,isEnableWrap:!0,onChange:Wa},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",C1,[a.createVNode(ne,{onClick:na,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[13]||(F[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(ne,{class:"ok-button button",onClick:Q,id:"themeButton"},{default:a.withCtx(()=>F[14]||(F[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:Y.value,onBeforeDestroy:me,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",S1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:ae},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",E1,[a.createVNode(ne,{onClick:me,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[15]||(F[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(ne,{class:"ok-button button",onClick:E,id:"themeButton"},{default:a.withCtx(()=>F[16]||(F[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:m.value,onBeforeDestroy:ue,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",D1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:Ie,onChangeVisible:Ce,onBlurChange:De},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",N1,[a.createVNode(ne,{onClick:ue,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[17]||(F[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(ne,{class:"ok-button button",onClick:Ge,id:"themeButton"},{default:a.withCtx(()=>F[18]||(F[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},T1=ql._export_sfc(B1,[["__scopeId","data-v-7a6b87b5"]]),A1=$.useModelComp($.pinia),{pageMapState:z1}=$.storeToRefs(A1),M1=$.useMenuState($.pinia),{activeMenuPath:O1}=$.storeToRefs(M1),I1=a.ref(24),L1=a.ref(6),$1=a.ref(70),R1=a.ref(.18),V1=a.ref(45),P1=(l,r,n,o)=>{var s,c,m,p,v,y,u,x,C,B,w,V,A,N,Y,b;return{x:((c=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:c.x)||r%2*12,y:((p=(m=l==null?void 0:l.value)==null?void 0:m.tableData)==null?void 0:p.y)||r,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||I1.value,h:((x=(u=l==null?void 0:l.value)==null?void 0:u.tableData)==null?void 0:x.h)||n,minW:((B=(C=l==null?void 0:l.value)==null?void 0:C.tableData)==null?void 0:B.minW)||L1.value,minH:((V=(w=l==null?void 0:l.value)==null?void 0:w.tableData)==null?void 0:V.minH)||R1.value,maxH:((N=(A=l==null?void 0:l.value)==null?void 0:A.tableData)==null?void 0:N.maxH)||V1.value,i:((b=(Y=l==null?void 0:l.value)==null?void 0:Y.tableData)==null?void 0:b.i)||r,id:(l==null?void 0:l.id)||r+"",component:o}},F1=(l,r)=>{var o,s,c,m,p,v,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(C=>(C==null?void 0:C.key)==="tableContents"))==null?void 0:c.contents)==null?void 0:m.length)===0)return 2}else((p=l==null?void 0:l.comp)==null?void 0:p.toUpperCase())==="FORM"&&(n=((u=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(C=>(C==null?void 0:C.key)==="formContent"))==null?void 0:y.contents)==null?void 0:u.length)/5);return n*2},Dc=(l,r,n)=>{var m,p;const o=(p=(m=z1.value)==null?void 0:m[O1.value])==null?void 0:p.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=o==null?void 0:o.find(v=>{var y,u,x;return((x=(u=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:u.component)==null?void 0:x.id)===l.id}),c=F1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>Dc(v,y))),{...P1(s,r,c,l)}},j1=(l,r)=>{if((l==null?void 0:l.length)===0)return[];const n=$.cloneDeep(l);return Array.isArray(l)?n==null?void 0:n.map((o,s)=>Dc(o,s)):[]},H1=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}]}]}}),U1=(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}),q1=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,p=>{var u;const v=H1(n==null?void 0:n.optionItems),y=p?(u=v[p==null?void 0:p.toUpperCase()])==null?void 0:u[n==null?void 0:n.target]:[];s.value=y==null?void 0:y.map(x=>{for(const[C,B]of Object.entries((n==null?void 0:n.comp)||{}))if((x==null?void 0:x.prop)===C)return{...x,value:B};return x})},{immediate:!0});const c=p=>pl.getComponent(p),m=p=>{var v,y;(p==null?void 0:p.prop)==="layout"&&(p==null?void 0:p.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(u=>{var x;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(x=u==null?void 0:u.options)==null?void 0:x.map(C=>({...C,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(C=>({...C,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:p==null?void 0:p.prop})};return(p,v)=>{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":C=>x.value=C,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:C=>m(x)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),W1=ql._export_sfc(q1,[["__scopeId","data-v-6c233914"]]),K1=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=N=>N==null?void 0:N.reduce((Y,b)=>(Y[b==null?void 0:b.prop]=b==null?void 0:b.rule,Y),{}),p=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)"}]})),v=a.ref([]),y=a.ref(""),u=(N,Y,b)=>{var k;let L=[];(n==null?void 0:n.activeTabName)==="任务配置"?(L=[{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:N},{label:"按钮名称",value:"按钮名称",children:Y}]},{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)==="任务关联"&&(L=[{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(_=>({label:_==null?void 0:_.任务名称,value:_==null?void 0:_.任务名称}))},{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 T;return b&&(b==null?void 0:b.length)>0?T=[...L,...x(N,Y,b)]:T=L,T},x=(N,Y,b)=>{const L=[{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 b?L==null?void 0:L.filter(T=>b==null?void 0:b.includes(T==null?void 0:T.prop)):L},C=(N,Y)=>{var _,U,W,se,Ce,Ie,De,le,we;const b=((Ce=(se=(W=(U=(_=n==null?void 0:n.comp)==null?void 0:_.compData)==null?void 0:U.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:W.contents)==null?void 0:se.filter(X=>(X==null?void 0:X.label)!=="操作"))==null?void 0:Ce.map(X=>({value:X==null?void 0:X.prop,label:X.label})))||[],L=/button/i,T=((we=(le=(De=(Ie=n==null?void 0:n.comp)==null?void 0:Ie.compData)==null?void 0:De.filter(X=>L.test(X==null?void 0:X.key)))==null?void 0:le.flatMap(X=>X==null?void 0:X.contents))==null?void 0:we.map(X=>({value:X==null?void 0:X.label,label:X.label})))||[],k=u(b,T,N);v.value=Y?U1(k,Y):k,N&&(N==null?void 0:N.length)>0&&c.value.push(...N==null?void 0:N.map(X=>({prop:X,rule:s})))};a.onMounted(()=>{C(null,n==null?void 0:n.extendItem)});const B=N=>{const Y=N==null?void 0:N[y.value];if(y.value==="执行任务"){if(!(Y!=null&&Y.join("/")))return;const b=Y==null?void 0:Y.join("/");C(b==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:b==="进度设置/进度条"?["进度关键词"]:null,N)}},w=N=>{o("change",{target:n==null?void 0:n.target,extendConfigs:N})},V=(N,Y)=>{y.value=Y==null?void 0:Y.changeProp,B(N)},A=N=>{o("onButtonClick",N)};return(N,Y)=>(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:p.value.formRules,buttonValue:p.value.buttonValue,onChange:w,onBlurChange:V,onOnButtonClick:A},null,8,["rowContents","formRules","buttonValue"]))}}),Y1=ql._export_sfc(K1,[["__scopeId","data-v-7c660c1f"]]),G1={};function J1(l,r){return null}const X1=ql._export_sfc(G1,[["render",J1]]),Z1={class:"form-operate-content"},Q1={class:"form-operate-item"},e2={class:"operate-title"},a2={class:"operate-content"},l2={class:"fix-content"},r2={class:"fix-button"},n2={class:"operate-title"},o2={class:"operate-content"},i2={class:"fix-content"},t2={class:"fix-button"},s2={style:{display:"flex","justify-content":"space-between"}},c2={class:"form-content"},u2={class:"dialog-footer"},d2={class:"form-content"},p2={__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([]),p=a.ref(!1),v=a.ref([]),y=a.ref([]),u=a.ref(""),x=a.ref(!1),C=a.ref(0),B=a.ref([]),w=a.ref([]),V=(le,we)=>{if((we==null?void 0:we.type)=="Select"&&(le==null?void 0:le.key)==="selectRelateType"){const X=we==null?void 0:we.optionUrl;return(X==null?void 0:X.selectRelateType)||we[le.key]}if((we==null?void 0:we.type)=="Select"&&(le==null?void 0:le.key)==="menuSelect"){const X=we==null?void 0:we.optionUrl;return(X==null?void 0:X.menuSelect)||we[le.key]}if((we==null?void 0:we.type)=="Select"&&(le==null?void 0:le.key)==="groupSelect"){const X=we==null?void 0:we.optionUrl;return(X==null?void 0:X.groupSelect)||we[le.key]}if((we==null?void 0:we.type)=="Select"&&(le==null?void 0:le.key)==="originalContent")return(we==null?void 0:we.value)||we[le.key];if((we==null?void 0:we.type)=="Select"&&(le==null?void 0:le.key)==="multiple"){const X=we[le.key];return Ys(X)?X:le.default}return(le==null?void 0:le.label)==="类型"&&we[le.key]===""?"Input":(le==null?void 0:le.key)==="isFormColHidden"&&!we[le.key]?!1:we[le.key]},A=async le=>{var ue,Ge,za,re,E,ae;s.value=!0;let we=[];const X=await((za=(Ge=(ue=pa.FormContent)==null?void 0:ue.find(me=>(me==null?void 0:me.key)===((le==null?void 0:le.type)===""?"Input":le==null?void 0:le.type)))==null?void 0:Ge.value)==null?void 0:za.value)??((E=(re=pa.FormContent)==null?void 0:re.find(me=>(me==null?void 0:me.key)===((le==null?void 0:le.type)===""?"Input":le==null?void 0:le.type)))==null?void 0:E.value);if(X==null||X.forEach(me=>{C.value++,we.push({label:me==null?void 0:me.label,name:me==null?void 0:me.label,type:me.type,prop:me==null?void 0:me.prop,value:V(me,le),id:C.value,contents:me==null?void 0:me.options,width:(le==null?void 0:le.width)??1})}),le!=null&&le.menuSelect&&((ae=le==null?void 0:le.menuSelect)==null?void 0:ae.length)>0){const me=await pa.menuToContentType(le==null?void 0:le.menuSelect);we=we==null?void 0:we.map(ce=>((ce==null?void 0:ce.name)==="组信息选项"&&(ce.contents=me),ce))}u.value=le==null?void 0:le.id,c.value=await pa.selectToBase(pa.formToOptionsContents(we)),m.value=await pa.selectToBase(pa.formToOptionsContents(we))},N=le=>{var X;p.value=!0;let we=[];(X=pa.FormButton)==null||X.forEach(ue=>{C.value++,we.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)==="类型"&&le[ue.key]===""?"normal":le[ue.key],id:C.value,contents:ue==null?void 0:ue.options})}),B.value=we,w.value=we,u.value=le==null?void 0:le.id};a.watch(()=>x.value,()=>{var we,X;let le=$.cloneDeep(n.originalItemContents);(we=$.cloneDeep(n.originalItemContents))!=null&&we.find(ue=>(ue==null?void 0:ue.key)==="enableWrap")?le=(X=$.cloneDeep(n.originalItemContents))==null?void 0:X.map(ue=>((ue==null?void 0:ue.key)==="enableWrap"&&(ue.contents=!x.value),ue)):le.push({key:"enableWrap",contents:!x.value}),o("change",le)},{deep:!0});const Y=()=>{var X,ue,Ge,za,re;B.value=w.value;let le={};if(u.value!==""?le.id=u.value:(C.value++,le.id="id"+C.value),(X=B.value)==null||X.forEach(E=>{var me;const ae=(me=pa.FormButton)==null?void 0:me.find(ce=>(ce==null?void 0:ce.label)===(E==null?void 0:E.label));ae&&(le[ae.key]=E.value)}),(ue=v.value)!=null&&ue.find(E=>E.id===le.id))v.value=(Ge=v.value)==null?void 0:Ge.map(E=>(E.id===le.id&&(E=le),E));else{let E=$.cloneDeep(v.value);v.value||(v.value=[]),E.push(le),v.value=E}p.value=!1,u.value="";let we=$.cloneDeep(n.originalItemContents);(za=$.cloneDeep(n.originalItemContents))!=null&&za.find(E=>(E==null?void 0:E.key)==="formButton")?we=(re=$.cloneDeep(n.originalItemContents))==null?void 0:re.map(E=>((E==null?void 0:E.key)==="formButton"&&(E.contents=v.value),E)):we.push({key:"formButton",contents:v.value}),o("change",we)},b=le=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var we,X;y.value=(we=$.cloneDeep(y.value))==null?void 0:we.filter(ue=>(ue==null?void 0:ue.id)!==(le==null?void 0:le.id)),o("change",(X=$.cloneDeep(n.originalItemContents))==null?void 0:X.map(ue=>((ue==null?void 0:ue.key)==="formContent"&&(ue.contents=y.value),ue))),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},L=le=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var we,X;v.value=(we=$.cloneDeep(v.value))==null?void 0:we.filter(ue=>(ue==null?void 0:ue.id)!==(le==null?void 0:le.id)),o("change",(X=$.cloneDeep(n.originalItemContents))==null?void 0:X.map(ue=>((ue==null?void 0:ue.key)==="formButton"&&(ue.contents=v.value),ue))),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},T=()=>{var we;p.value=!0;let le=[];(we=pa.FormButton)==null||we.forEach(X=>{C.value++,le.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:(X==null?void 0:X.label)==="类型"?"normal":"",id:C.value,contents:X==null?void 0:X.options})}),B.value=le,w.value=le},k=()=>{var we,X,ue;s.value=!0;let le=[];(ue=(X=(we=pa.FormContent)==null?void 0:we.find(Ge=>(Ge==null?void 0:Ge.key)==="Input"))==null?void 0:X.value)==null||ue.forEach(Ge=>{C.value++,le.push({label:Ge==null?void 0:Ge.label,name:Ge==null?void 0:Ge.label,type:Ge.type,value:(Ge==null?void 0:Ge.label)==="类型"?"Input":"",id:C.value,contents:Ge==null?void 0:Ge.options})}),c.value=le,m.value=le},_=le=>{let we=$.cloneDeep(w.value);we=we==null?void 0:we.map(X=>(X.value=le==null?void 0:le[X.name],X)),w.value=we},U=le=>{const we=le.find(Ge=>(Ge==null?void 0:Ge.name)==="类型");if((we==null?void 0:we.value)!="Select")return;const X=le.find(Ge=>(Ge==null?void 0:Ge.name)==="多选"),ue=le.find(Ge=>(Ge==null?void 0:Ge.name)==="初始值");X!=null&&X.value&&wi.isString(ue.value)&&(ue.value=[ue.value]),!(X!=null&&X.value)&&!wi.isString(ue.value)&&(ue.value="")},W=async le=>{var we,X,ue,Ge,za,re,E,ae,me,ce,Ne,va;if((le==null?void 0:le.类型)!==((X=(we=m.value)==null?void 0:we.find(Sa=>(Sa==null?void 0:Sa.label)==="类型"))==null?void 0:X.value)){let Sa=[];const Wa=await((za=(Ge=(ue=pa.FormContent)==null?void 0:ue.find(Q=>(Q==null?void 0:Q.key)===((le==null?void 0:le.类型)===""?"Input":le==null?void 0:le.类型)))==null?void 0:Ge.value)==null?void 0:za.value)?await((ce=(me=(ae=pa.FormContent)==null?void 0:ae.find(Q=>(Q==null?void 0:Q.key)===((le==null?void 0:le.类型)===""?"Input":le==null?void 0:le.类型)))==null?void 0:me.value)==null?void 0:ce.value):(E=(re=pa.FormContent)==null?void 0:re.find(Q=>(Q==null?void 0:Q.key)===((le==null?void 0:le.类型)===""?"Input":le==null?void 0:le.类型)))==null?void 0:E.value;if(Wa==null||Wa.forEach(Q=>{var Ve,xa;C.value++;const na=Eu(Q==null?void 0:Q.default)?(le==null?void 0:le[Q.label])??Q.value??"":Q==null?void 0:Q.default;Sa.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:na,prop:Q==null?void 0:Q.prop,id:C.value,contents:Q==null?void 0:Q.options,width:((xa=(Ve=m.value)==null?void 0:Ve[0])==null?void 0:xa.width)??1})}),le!=null&&le.菜单选项&&((Ne=le==null?void 0:le.菜单选项)==null?void 0:Ne.length)>0){const Q=await pa.menuToContentType(le==null?void 0:le.菜单选项);Sa=Sa==null?void 0:Sa.map(na=>((na==null?void 0:na.name)==="组信息选项"&&(na.contents=Q),na))}U(Sa),m.value=await pa.selectToBase($.cloneDeep(Sa)),c.value=await pa.selectToBase($.cloneDeep(Sa))}else{let Sa=$.cloneDeep(m.value);if(Sa=Sa==null?void 0:Sa.map(Wa=>(Wa.value=le==null?void 0:le[Wa.name],Wa)),le!=null&&le.菜单选项&&((va=le==null?void 0:le.菜单选项)==null?void 0:va.length)>0){const Wa=await pa.menuToContentType(le==null?void 0:le.菜单选项);Sa=Sa==null?void 0:Sa.map(Q=>((Q==null?void 0:Q.name)==="组信息选项"&&(Q.contents=Wa),Q))}Sa=pa.formToOptionsContents(Sa),U(Sa),m.value=await pa.selectToBase($.cloneDeep(Sa))}},se=le=>{le||(c.value=m.value)},Ce=async le=>{await W(le),c.value=m.value},Ie=Ra.debounce(async()=>{var ue,Ge,za,re,E,ae,me,ce,Ne,va,Sa,Wa;c.value=m.value;let le={};le.width=((Ge=(ue=c.value)==null?void 0:ue[0])==null?void 0:Ge.width)??1,u.value!==""?le.id=u.value:(C.value++,le.id="id"+C.value);let we=await((E=(re=(za=pa.FormContent)==null?void 0:za.find(Q=>{var na,Ve;return(Q==null?void 0:Q.key)===(((Ve=(na=c.value)==null?void 0:na.find(xa=>(xa==null?void 0:xa.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:re.value)==null?void 0:E.value)??((me=(ae=pa.FormContent)==null?void 0:ae.find(Q=>{var na,Ve;return(Q==null?void 0:Q.key)===(((Ve=(na=c.value)==null?void 0:na.find(xa=>(xa==null?void 0:xa.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:me.value);if((ce=c.value)==null||ce.forEach(Q=>{const na=we==null?void 0:we.find(Ve=>(Ve==null?void 0:Ve.label)===(Q==null?void 0:Q.label));na&&(le[na.key]=Q.value)}),le.width=le.width?le.width:1,le.key=le==null?void 0:le.label,le.isFormColHidden=le==null?void 0:le.isFormColHidden,(Ne=y.value)!=null&&Ne.find(Q=>Q.id===le.id))y.value=(va=y.value)==null?void 0:va.map(Q=>(Q.id===le.id&&(Q=le),Q));else{let Q=$.cloneDeep(y.value);Q.push(le),y.value=Q}y.value=y.value.map(({id:Q,...na})=>na),s.value=!1,u.value="";let X=$.cloneDeep(n.originalItemContents);(Sa=$.cloneDeep(n.originalItemContents))!=null&&Sa.find(Q=>(Q==null?void 0:Q.key)==="formContent")?X=(Wa=$.cloneDeep(n.originalItemContents))==null?void 0:Wa.map(Q=>((Q==null?void 0:Q.key)==="formContent"&&(Q.contents=y.value),Q)):X.push({key:"formContent",contents:y.value}),o("change",X)},300),De=()=>{s.value=!1,p.value=!1,u.value="",m.value=[],w.value=[]};return a.watch(()=>n.originalItemContents,()=>{var we,X,ue,Ge,za,re;if(!n.originalItemContents||n.originalItemContents.length===0)return;const le=$.cloneDeep(n.originalItemContents);y.value=((we=le==null?void 0:le.find(E=>(E==null?void 0:E.key)==="formContent"))==null?void 0:we.contents)??[],v.value=((X=le==null?void 0:le.find(E=>(E==null?void 0:E.key)==="formButton"))==null?void 0:X.contents)??[],x.value=(ue=le==null?void 0:le.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&ue.contents?!((Ge=le==null?void 0:le.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&Ge.contents):!0,y.value=(za=$.cloneDeep(y.value))==null?void 0:za.map((E,ae)=>{var ce;let me=E;return me.id=(E==null?void 0:E.id)??ae,E!=null&&E.label||(E.label=(E==null?void 0:E.key)??(E==null?void 0:E.label)??""),E!=null&&E.type||(E.type=(E==null?void 0:E.type)??""),E.contents=((ce=E==null?void 0:E.options)==null?void 0:ce.length)===0?(E==null?void 0:E.contents)??"":E==null?void 0:E.options,me}),y.value=pa.formToOptionsContents(y.value),v.value=(re=v.value)==null?void 0:re.map((E,ae)=>E={label:(E==null?void 0:E.label)??"",type:(E==null?void 0:E.type)??"",background:(E==null?void 0:E.background)??"var(--ssComponent-primary-color)",id:ae})},{deep:!0,immediate:!0}),(le,we)=>{const X=a.resolveComponent("svg-icon"),ue=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",Z1,[a.createElementVNode("div",Q1,[a.createElementVNode("div",e2,[we[2]||(we[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:k},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[we[1]||(we[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",a2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ge,za)=>(a.openBlock(),a.createElementBlock("div",{key:za},[a.createElementVNode("div",l2,[a.createElementVNode("div",null,a.toDisplayString(Ge.label),1),a.createElementVNode("div",r2,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:re=>A(Ge)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:re=>b(Ge)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",n2,[we[4]||(we[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:T},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[we[3]||(we[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",o2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(Ge,za)=>(a.openBlock(),a.createElementBlock("div",{key:za},[a.createElementVNode("div",i2,[a.createElementVNode("div",null,a.toDisplayString(Ge.label),1),a.createElementVNode("div",t2,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:re=>N(Ge)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:re=>L(Ge)},null,8,["onClick"])])])]))),128))]),we[6]||(we[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",s2,[we[5]||(we[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:x.value,"onUpdate:modelValue":we[0]||(we[0]=Ge=>x.value=Ge)},null,8,["modelValue"])])]),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",c2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:W,onChangeVisible:se,onBlurChange:Ce},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",u2,[a.createVNode(ue,{onClick:De,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>we[7]||(we[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(ue,{class:"ok-button button",onClick:a.unref(Ie),id:"themeButton"},{default:a.withCtx(()=>we[8]||(we[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:p.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",d2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:B.value,key:B.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:De,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:Y},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},gs=ql._export_sfc(p2,[["__scopeId","data-v-20850524"]]),f2={class:"step-module content"},h2={class:"module-data"},v2={class:"step-module layout"},m2={class:"form-content"},y2=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"}]),p=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),u=a.ref([]),x=A=>{var N;y.value=A,o("change",(N=w())==null?void 0:N.compData)},C=(A,N)=>{var Y,b;switch(A){case"create":(Y=c.value)==null||Y.forEach(L=>{L.value=""}),v.value="create",p.visible=!0;break;case"update":(b=c.value)==null||b.forEach(L=>{L.value=N[L==null?void 0:L.prop]}),v.value="update",p.visible=!0;break;case"delete":u.value.splice(N,1),v.value="delete";break}},B=A=>{var N,Y,b;if((A==null?void 0:A.buttonName)==="确认"){const L=$.cloneDeep(A==null?void 0:A.content);switch(Object.keys(L).forEach(T=>{L[T]===""&&delete L[T]}),v.value){case"create":u.value.push({...L,index:((N=u.value)==null?void 0:N.length)+1});break;case"update":u.value=(Y=u.value)==null?void 0:Y.map(T=>T.index===(L==null?void 0:L.index)?{...T,title:L==null?void 0:L.title,description:L==null?void 0:L.description}:T);break}o("change",(b=w())==null?void 0:b.compData),p.visible=!1}else p.visible=!1},w=()=>({comp:"Step",compData:[{key:"stepList",contents:u.value},{key:"stepConfig",contents:y.value}]}),V=()=>{p.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,A=>{var N,Y;A&&(y.value=((N=A==null?void 0:A.find(b=>b.key==="stepConfig"))==null?void 0:N.contents)??{},u.value=((Y=A==null?void 0:A.find(b=>b.key==="stepList"))==null?void 0:Y.contents)??[])},{immediate:!0}),(A,N)=>{const Y=a.resolveComponent("svg-icon"),b=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",f2,[N[2]||(N[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(b,{class:"module-icon",id:"themeButton",onClick:N[0]||(N[0]=L=>C("create"))},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[N[1]||(N[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",h2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(L,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString(L==null?void 0:L.title),1),a.createElementVNode("div",null,[a.createVNode(b,{type:"primary",size:"small",onClick:k=>C("update",{...L,index:T+1})},{default:a.withCtx(()=>N[3]||(N[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(b,{type:"danger",size:"small",onClick:k=>C("delete",T)},{default:a.withCtx(()=>N[4]||(N[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",v2,[N[5]||(N[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:s.value,onChange:x},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:V,width:p.width},{default:a.withCtx(()=>[a.createElementVNode("div",m2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:B},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),g2=ql._export_sfc(y2,[["__scopeId","data-v-7dbd17f2"]]),b2={class:"step-module content"},k2={class:"module-data"},x2={class:"step-module layout"},_2={class:"form-content"},w2=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([]),p=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),u=a.reactive({visible:!1,width:"40%",title:"时间线"}),x=A=>{var N;c.value=A,o("change",(N=w())==null?void 0:N.compData)},C=(A,N)=>{var Y,b;switch(A){case"create":(Y=v.value)==null||Y.forEach(L=>{L.value=""}),s.value="create",u.visible=!0;break;case"update":(b=v.value)==null||b.forEach(L=>{L.value=N[L==null?void 0:L.prop]}),s.value="update",u.visible=!0;break;case"delete":m.value.splice(N,1),s.value="delete";break}},B=A=>{var N,Y,b,L;if((A==null?void 0:A.buttonName)==="确认"){const T=$.cloneDeep(A==null?void 0:A.content);switch(Object.keys(T).forEach(k=>{T[k]===""&&delete T[k]}),s.value){case"create":(Y=m.value)==null||Y.push({...T,index:((N=m.value)==null?void 0:N.length)+1});break;case"update":m.value=(b=m.value)==null?void 0:b.map(k=>k.index===(T==null?void 0:T.index)?{...k,content:T==null?void 0:T.content,timestamp:T==null?void 0:T.timestamp}:k);break}o("change",(L=w())==null?void 0:L.compData),u.visible=!1}else u.visible=!1},w=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:m.value},{key:"timeLineConfig",contents:c.value}]}),V=()=>{u.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,A=>{var N,Y;A&&(c.value=((N=A==null?void 0:A.find(b=>b.key==="timeLineConfig"))==null?void 0:N.contents)??{},m.value=((Y=A==null?void 0:A.find(b=>b.key==="timeLineList"))==null?void 0:Y.contents)??[])},{immediate:!0}),(A,N)=>{const Y=a.resolveComponent("svg-icon"),b=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",b2,[N[2]||(N[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(b,{class:"module-icon",id:"themeButton",onClick:N[0]||(N[0]=L=>C("create"))},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[N[1]||(N[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",k2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(L,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString(L==null?void 0:L.content),1),a.createElementVNode("div",null,[a.createVNode(b,{type:"primary",size:"small",onClick:k=>C("update",{...L,index:T+1})},{default:a.withCtx(()=>N[3]||(N[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(b,{type:"danger",size:"small",onClick:k=>C("delete",T)},{default:a.withCtx(()=>N[4]||(N[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",x2,[N[5]||(N[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:p.value,onChange:x},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:V,width:u.width},{default:a.withCtx(()=>[a.createElementVNode("div",_2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:B},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),C2=ql._export_sfc(w2,[["__scopeId","data-v-39ffc861"]]),S2={};function E2(l,r){return a.openBlock(),a.createElementBlock("div")}const D2=ql._export_sfc(S2,[["render",E2]]),N2={class:"extra-content"},B2={key:0},T2={key:1},A2={class:"dialog-footer"},z2={__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,p=a.ref(!1),v=a.ref({}),y=a.ref({}),u=a.ref();a.watch(()=>[n.itemData],()=>{var L;const b=$.cloneDeep(n.itemData);s.value=(L=$.cloneDeep(b))==null?void 0:L.map(T=>{var k;if(T.key==="extra"){let _=[];(k=T.value)==null||k.forEach(U=>{var W;_.push((W=Object.values(U))==null?void 0:W[0])}),T.value=_}return T})},{deep:!0,immediate:!0});const x=(b,L,T,k)=>{var U;let _={};((U=b==null?void 0:b[0])==null?void 0:U.contents)==="详情"&&(p.value=!0,_[L]=b,c.value=b==null?void 0:b.filter(W=>(W==null?void 0:W.key)!=="tableContentName"),v.value=_,y.value=T,u.value=k.id)},C=b=>{var W,se,Ce,Ie;const L=(se=(W=Object.values($.cloneDeep(v.value)))==null?void 0:W[0])==null?void 0:se.filter(De=>(De==null?void 0:De.key)==="tableContentName"),T=(Ie=(Ce=Object.values($.cloneDeep(v.value)))==null?void 0:Ce[0])==null?void 0:Ie.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),k=T==null?void 0:T.map((De,le)=>{var we;return le===b.index&&(De==null?void 0:De.comp)==="Table"&&(De.compData=(we=De.compData)==null?void 0:we.map(X=>{var ue,Ge;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(Ge=(ue=b.content)==null?void 0:ue.map(za=>{let re={};for(let E in za)E!=="id"&&(re[E]=za[E]);return re}))==null?void 0:Ge.map(za=>Object.values(za))),X})),De});k.unshift(L==null?void 0:L[0]);let _=$.cloneDeep(v.value),U={};for(let De in _)U[De]=k;v.value=U},B=()=>{p.value=!1,v.value={},y.value={},u.value=void 0,o.value++},w=b=>{var W,se,Ce,Ie;const L=(se=(W=Object.values($.cloneDeep(v.value)))==null?void 0:W[0])==null?void 0:se.filter(De=>(De==null?void 0:De.key)==="tableContentName"),T=(Ie=(Ce=Object.values($.cloneDeep(v.value)))==null?void 0:Ce[0])==null?void 0:Ie.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),k=T==null?void 0:T.map((De,le)=>(le===b.index&&(De.compData=b.contents),De));k.unshift(L==null?void 0:L[0]);let _=$.cloneDeep(v.value),U={};for(let De in _)U[De]=k;v.value=U},V=()=>{var L,T;let b={};for(let k in y.value)k===((L=Object.keys(v.value))==null?void 0:L[0])?b[k]=(T=Object.values(v.value))==null?void 0:T[0]:b[k]=y.value[k];m("change",{buttonName:"编辑",index:u.value,singleContent:b},"methodData"),p.value=!1,v.value={},y.value={},u.value=void 0},A=()=>{p.value=!1,v.value={},y.value={},u.value=void 0},N=b=>{m("change",b,"methodData")},Y=b=>Bo(b);return(b,L)=>{const T=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",N2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(k,_)=>(a.openBlock(),a.createElementBlock("div",{key:o.value},[(k==null?void 0:k.key)==="extra"?(a.openBlock(),a.createElementBlock("div",B2)):(a.openBlock(),a.createElementBlock("div",T2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Y(k.comp)),{itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,key:_,index:(k==null?void 0:k.id)??_,onContentClick:x,onChange:N},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(vr.ssDialog,{visible:p.value,onBeforeDestroy:A},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(k,_)=>(a.openBlock(),a.createElementBlock("div",{key:_,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Y(k.comp)),{itemData:k==null?void 0:k.compData,onChange:C,childItemData:k==null?void 0:k.itemChildData,key:_,onContentChange:w,index:(k==null?void 0:k.id)??_,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",A2,[a.createVNode(T,{class:"cancel-button footer-button",onClick:B,id:"themeBorderButton"},{default:a.withCtx(()=>L[0]||(L[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(T,{class:"confirm-button footer-button",onClick:V,id:"themeButton"},{default:a.withCtx(()=>L[1]||(L[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},M2=ql._export_sfc(z2,[["__scopeId","data-v-2d9c5ab2"]]),O2={key:0,class:"method-content"},I2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const r=a.ref([]),n=pa.useOriginalState($.pinia),{originalPath:o}=$.storeToRefs(n),s=l,c=a.ref(!1),m=a.ref(),p=pa.useTableComp($.pinia),{multipleTableConst:v}=$.storeToRefs(p),y=$.useModelComp($.pinia),u=a.ref(!1),x=$.useMenuState($.pinia),C=$.useLoginState($.pinia),{itemData:B,isEdit:w,routeToChildPath:V,tableViewContents:A,lockingPage:N,payloadTypes:Y}=$.storeToRefs(y),{activeMenuPath:b,platform:L,childMenu:T}=$.storeToRefs(x),{loginUserInfo:k}=$.storeToRefs(C),_=a.ref(!1),U=async()=>{var re,E;(re=r.value)!=null&&re.find(ae=>(ae==null?void 0:ae.buttonName)==="保存")&&await X((E=r.value)==null?void 0:E.find(ae=>(ae==null?void 0:ae.buttonName)==="保存")),await pa.onSaveBack()};a.watch(()=>B.value,async()=>{w.value==="view"&&!_.value&&await za($.cloneDeep(s.itemData)),_.value=!1},{deep:!0});const W=()=>{c.value=!1,m.value=void 0},se=re=>re.map(E=>{const ae={};for(const me in E){const ce=E[me];if(me.includes(v.value)){const Ne=me.split(v.value);let va=ae;Ne.forEach((Sa,Wa)=>{Wa===Ne.length-1?va[Sa]=ce:(va[Sa]||(va[Sa]={}),va=va[Sa])})}else ae[me]=ce}return ae}),Ce=async(re,E,ae=[])=>{var ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa;let me=(ce=$.cloneDeep(E))==null?void 0:ce.filter(P=>(P==null?void 0:P.comp)!=="methodButton");if(re!=null&&re.includes("[")){let P=(Q=(Wa=(Sa=(va=(Ne=$.cloneDeep(re))==null?void 0:Ne.split("["))==null?void 0:va[1])==null?void 0:Sa.split("]"))==null?void 0:Wa[0])==null?void 0:Q.split(":"),F="";if(P!=null&&P[0]){let J=(na=me==null?void 0:me.find(ne=>(ne==null?void 0:ne.name)===(P==null?void 0:P[0])))==null?void 0:na.compData;if(!J){let ne=(Ve=re==null?void 0:re.split("["))==null?void 0:Ve[0],te=await pa.getItemData(ne,sessionStorage.getItem("systemKey"),"",!1,"","",ae);J=(xa=te==null?void 0:te.find(ga=>(ga==null?void 0:ga.name)===(P==null?void 0:P[0])))==null?void 0:xa.compData}J==null||J.forEach(ne=>{var te,ga,ta,Oe,_e,Da;if((ne==null?void 0:ne.key)==="formContent")(te=ne==null?void 0:ne.contents)==null||te.forEach(he=>{var Qe;(he==null?void 0:he.key)===(P==null?void 0:P[1])&&(Array.isArray(he==null?void 0:he.value)?F=he==null?void 0:he.value:F=(Qe=he==null?void 0:he.value)==null?void 0:Qe.toString())});else if((ne==null?void 0:ne.key)==="tableContents"){let he=[],Qe=(ga=J==null?void 0:J.find(Pe=>(Pe==null?void 0:Pe.key)==="header"))==null?void 0:ga.contents,ra=(P==null?void 0:P[1])??"";if(Qe!=null&&Qe.every(Pe=>Array.isArray(Pe))){let Pe=pa.getColumnChild((_e=Qe==null?void 0:Qe[0])==null?void 0:_e.filter(_a=>(_a==null?void 0:_a.label)!=="操作"));(Da=ne.contents)==null||Da.forEach(_a=>{let Le={};_a=_a==null?void 0:_a.filter(ya=>!(ya!=null&&ya.id)),Pe==null||Pe.forEach((ya,Xe)=>{let wa=_a[Xe];typeof _a[Xe]=="number"&&(wa=_a[Xe].toString()),(ra===""||ra===ya.prop)&&(Le[ya.prop]=wa)}),he.push(Le)}),he=se(he)}else{let Pe=(ta=Qe==null?void 0:Qe.map(_a=>_a==null?void 0:_a.label))==null?void 0:ta.filter(_a=>_a!=="操作");(Oe=ne.contents)==null||Oe.forEach(_a=>{let Le={};_a=_a==null?void 0:_a.filter(ya=>!(ya!=null&&ya.id)),Pe==null||Pe.forEach((ya,Xe)=>{let wa=_a[Xe];typeof _a[Xe]=="number"&&(wa=_a[Xe].toString()),(ra===""||ra===ya)&&(Le[ya]=wa)}),he.push(Le)})}F=he}})}return F}else if(re!=null&&re.includes("/")){let P={};return(He=$.cloneDeep(me))==null||He.forEach((F,J)=>{var ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa;if((F==null?void 0:F.comp)==="Table"){let Oa=Array.isArray((ga=(te=(ne=F==null?void 0:F.compData)==null?void 0:ne.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:te.contents)==null?void 0:ga[0])?(Da=(_e=(Oe=(ta=F==null?void 0:F.compData)==null?void 0:ta.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:Oe.contents)==null?void 0:_e[0])==null?void 0:Da.some(oe=>oe==null?void 0:oe.children):[],qe=(ra=(Qe=(he=F==null?void 0:F.compData)==null?void 0:he.find(oe=>(oe==null?void 0:oe.key)==="tableContents"))==null?void 0:Qe.contents)==null?void 0:ra.map(oe=>(oe!=null&&oe.find(Se=>Se==null?void 0:Se.id)&&(oe=oe.slice(1)),oe)),Ya=(Xe=(ya=(Le=(_a=(Pe=F==null?void 0:F.compData)==null?void 0:Pe.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:_a.contents)==null?void 0:Le[0])==null?void 0:ya[0])==null?void 0:Xe.label,ba=(ve=(wa=F==null?void 0:F.compData)==null?void 0:wa.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:ve.contents;if(Oa)(Oa==null?void 0:Oa.length)===0?P[F.name]=P!=null&&P[F.name]?P[F.name]:pa.tableToForm(qe,ba):P[Ya]=pa.tableToForm(qe,ba);else{const oe=[];ba=ba.slice(1,ba.length-1),ba==null||ba.forEach((Se,Ue)=>{qe==null||qe.forEach(Ke=>{oe.push({key:Se.label+Ke[0],value:Ke[Ue+1]})})}),P["form"+J]=oe}}else{const Oa=(sa=(Ga=F.compData)==null?void 0:Ga.find(Ya=>(Ya==null?void 0:Ya.key)==="formContent"))==null?void 0:sa.contents;P!=null&&P.form||(P.form=[]);const qe=[];Oa==null||Oa.forEach(Ya=>{Ya.key!==""&&(Ya={key:(Ya==null?void 0:Ya.key)??(Ya==null?void 0:Ya.label),value:Ya==null?void 0:Ya.value},qe.push(Ya))}),P.form=[...qe,...$.cloneDeep(P==null?void 0:P.form)]}}),P}else{if(re==="createInsofDataApi"){let P=(Te=$.cloneDeep(E))==null?void 0:Te[0];return P={comp:(Re=$.cloneDeep(P))==null?void 0:Re.comp,compData:(Je=$.cloneDeep(P))==null?void 0:Je.compData,name:(Ja=$.cloneDeep(P))==null?void 0:Ja.name,isShow:(Fa=$.cloneDeep(P))==null?void 0:Fa.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:b.value},value:{pageData:P}}}return re}},Ie=async(re,E,ae)=>{var Ne,va,Sa;let me=await pa.getItemData(E,sessionStorage.getItem("systemKey"),""),ce=me==null?void 0:me.find(Wa=>(Wa==null?void 0:Wa.name)===(ae==null?void 0:ae[0]));if(ce){if((ce==null?void 0:ce.comp)==="Table"){let Wa={};for(let Re in $.cloneDeep(re))$.cloneDeep(re)[Re]!=="loginUser"?Wa[Re]=$.cloneDeep(re)[Re]:Wa[Re]=((Ne=k.value)==null?void 0:Ne.account)||((va=k.value)==null?void 0:va.账号);let Q=[],na=Wa;Array.isArray(re)||(na=[Wa]),na==null||na.forEach(Re=>{Q.push({[Re[ae[1]]]:Re})});let Ve=[],xa=Q==null?void 0:Q.map(Re=>{var Je;return(Je=Object.keys(Re))==null?void 0:Je[0]});me==null||me.forEach(Re=>{var Je;(Re==null?void 0:Re.name)===(ae==null?void 0:ae[0])&&((Je=Re==null?void 0:Re.compData)==null||Je.forEach(Ja=>{var Fa;(Ja==null?void 0:Ja.key)==="tableContents"&&((Fa=Ja==null?void 0:Ja.contents)==null||Fa.forEach(P=>{P!=null&&P.some(F=>xa.includes(F))&&Ve.push({[P.find(F=>F.id).id]:P.find(F=>xa.includes(F))})}))}))});let He=Ve==null?void 0:Ve.map(Re=>{var Je;return(Je=Object.keys(Re))==null?void 0:Je[0]}),Te=[];if(He==null||He.forEach(Re=>{var Fa;let Je=(Fa=Ve==null?void 0:Ve.find(P=>{var F;return((F=Object.keys(P))==null?void 0:F[0].toString())===Re.toString()}))==null?void 0:Fa[Re],Ja=Q==null?void 0:Q.find(P=>{var F;return((F=Object.keys(P))==null?void 0:F[0])===Je});Te.push({id:parseInt(Re),value:{tableData:Ja[Je]}})}),(Te==null?void 0:Te.length)>0)return Te}else if((ce==null?void 0:ce.comp)==="Form"){let Wa=$.cloneDeep(ce);Wa.compData=(Sa=Wa.compData)==null?void 0:Sa.map(Ve=>{var xa;return(Ve==null?void 0:Ve.key)==="formContent"&&(Ve.contents=(xa=Ve.contents)==null?void 0:xa.map(He=>((He==null?void 0:He.key)===(ae==null?void 0:ae[1])&&(He.value=(re==null?void 0:re[He==null?void 0:He.prop])||re),He))),Ve});let Q={};for(let Ve in Wa)Ve!=="id"&&(Q[Ve]=Wa[Ve]);let na=[];if(na.push({id:ce==null?void 0:ce.id,keyType:ae==null?void 0:ae[1],value:{pageData:Q}}),(na==null?void 0:na.length)>0)return na}}},De=async(re,E,ae)=>{var Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te;let me=await pa.getItemData(E,sessionStorage.getItem("systemKey"),""),ce=me==null?void 0:me.find(Re=>(Re==null?void 0:Re.name)===(ae==null?void 0:ae[0]));if(ce){if((ce==null?void 0:ce.comp)==="Table"){let Re={};for(let Je in $.cloneDeep(re))$.cloneDeep(re)[Je]!=="loginUser"?Re[Je]=$.cloneDeep(re)[Je]:Re[Je]=((Ne=k.value)==null?void 0:Ne.account)||((va=k.value)==null?void 0:va.账号);await yr.createInsofDataApi({key:{type:"data",pageKey:E,tableId:ce==null?void 0:ce.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Re}})}else if((ce==null?void 0:ce.comp)==="Form"){let Re=$.cloneDeep(ce),Je=Object.keys(re),Ja="";(Wa=(Sa=$.cloneDeep(Re))==null?void 0:Sa.compData)==null||Wa.forEach(te=>{var ga,ta;(te==null?void 0:te.key)==="formContent"&&((ta=(ga=$.cloneDeep(te))==null?void 0:ga.contents)==null||ta.forEach(Oe=>{var _e;Je.includes(Oe==null?void 0:Oe.key)&&(Oe==null?void 0:Oe.value)===((_e=k.value)==null?void 0:_e.姓名)&&(Ja=Oe==null?void 0:Oe.key)}))});let Fa=[];(Q=Object.values(re[Ja]))==null||Q.forEach(te=>{te!=null&&te.includes("(")&&Fa.push(te)}),Fa=[...new Set(Fa)];const P=Fa==null?void 0:Fa.map(async te=>{var Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga;let ga="";(_a=(Pe=(ra=(Qe=(he=(Da=$.cloneDeep(te))==null?void 0:Da.split("("))==null?void 0:he[1])==null?void 0:Qe.split(")"))==null?void 0:ra[0])==null?void 0:Pe.split(":"))==null||_a.forEach(sa=>{ga=ga===""?ga+sa.replaceAll("'",""):ga+"/"+sa.replaceAll("'","")});let ta=[];(Ga=(ve=(wa=(Xe=(ya=(Le=$.cloneDeep(te))==null?void 0:Le.split("<"))==null?void 0:ya[1])==null?void 0:Xe.split(">"))==null?void 0:wa[0])==null?void 0:ve.split(":"))==null||Ga.forEach(sa=>{ta.push(sa.replaceAll("'",""))});const Oe=await pa.getItemData(ga,sessionStorage.getItem("systemKey"),"");let _e="";return Oe==null||Oe.forEach(sa=>{var Oa;sa.name===(ta==null?void 0:ta[0])&&((Oa=sa==null?void 0:sa.compData)==null||Oa.forEach(qe=>{var Ya;(qe==null?void 0:qe.key)==="formContent"&&((Ya=qe.contents)==null||Ya.forEach(ba=>{(ba==null?void 0:ba.key)===(ta==null?void 0:ta[1])&&(_e=ba==null?void 0:ba.value)}))}))}),{[te]:_e}}),F=await Promise.all(P);Re.compData=(Ve=(na=$.cloneDeep(Re))==null?void 0:na.compData)==null?void 0:Ve.map(te=>{var ga,ta;return(te==null?void 0:te.key)==="formContent"&&(te.contents=(ta=(ga=$.cloneDeep(te))==null?void 0:ga.contents)==null?void 0:ta.map(Oe=>{var _e,Da,he,Qe;return(_e=re[Ja])!=null&&_e[Oe==null?void 0:Oe.key]&&(re[Ja][Oe==null?void 0:Oe.key].includes("(")?Oe.value=(Da=F==null?void 0:F.find(ra=>{var Pe;return((Pe=Object.keys(ra))==null?void 0:Pe[0])===re[Ja][Oe==null?void 0:Oe.key]}))==null?void 0:Da[re[Ja][Oe==null?void 0:Oe.key]]:Oe.value=(Qe=(he=$.cloneDeep(re))==null?void 0:he[Ja])==null?void 0:Qe[Oe==null?void 0:Oe.key]),Oe})),te});const J=await yr.getInsofDataApi({key:{type:"structure",pageKey:E,systemKey:sessionStorage.getItem("systemKey")}});let ne="";((xa=J==null?void 0:J.data)==null?void 0:xa.type)==="success"&&((Te=(He=J==null?void 0:J.data)==null?void 0:He.result)==null||Te.forEach(te=>{var ga,ta;((ta=(ga=te==null?void 0:te.value)==null?void 0:ga.pageData)==null?void 0:ta.name)===(ae==null?void 0:ae[0])&&(ne=te.id)}),await yr.updateInsofDataApi({id:ne,value:{pageData:Re}}))}}},le=(re,E="",ae={})=>{for(const[me,ce]of Object.entries(re)){const Ne=E?`${E}.${me}`:me;ce!==null&&typeof ce=="object"&&!Array.isArray(ce)&&Object.prototype.toString.call(ce)!=="[object Date]"?le(ce,Ne,ae):ae[Ne]=ce}return ae},we=async(re,E,ae,me)=>{var va,Sa,Wa,Q,na,Ve,xa,He,Te,Re,Je,Ja,Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe;let ce=await pa.getItemData(E,sessionStorage.getItem("systemKey"),""),Ne=ce==null?void 0:ce.find(ra=>(ra==null?void 0:ra.name)===(ae==null?void 0:ae[0]));if(Ne){if(!(ae!=null&&ae[1])&&(Ne==null?void 0:Ne.comp)==="Table"){let ra={},Pe=[],_a=(Sa=(va=Ne==null?void 0:Ne.compData)==null?void 0:va.find(Xe=>(Xe==null?void 0:Xe.key)==="header"))==null?void 0:Sa.contents;_a!=null&&_a.every(Xe=>Array.isArray(Xe))?Pe=(Q=pa.getColumnChild((Wa=_a==null?void 0:_a[0])==null?void 0:Wa.filter(Xe=>(Xe==null?void 0:Xe.label)!=="操作")))==null?void 0:Q.map(Xe=>Xe==null?void 0:Xe.prop):Pe=_a==null?void 0:_a.map(Xe=>Xe==null?void 0:Xe.label);for(let Xe in $.cloneDeep(re))if($.cloneDeep(re)[Xe]!=="loginUser"){let wa=le($.cloneDeep(re)[Xe]),ve={};for(let Ga in wa)if(Pe!=null&&Pe.find(sa=>sa===Ga))ve[Ga]=wa[Ga];else if(Pe!=null&&Pe.find(sa=>(sa==null?void 0:sa.toUpperCase())===(Ga==null?void 0:Ga.toUpperCase()))){let sa=Pe==null?void 0:Pe.find(Oa=>(Oa==null?void 0:Oa.toUpperCase())===(Ga==null?void 0:Ga.toUpperCase()));ve[sa]=wa[Ga]}ra[Xe]=ve}else ra[Xe]=((na=k.value)==null?void 0:na.account)||((Ve=k.value)==null?void 0:Ve.账号);let Le=await yr.getInsofDataApi({keyLikes:{tableId:Ne==null?void 0:Ne.id}});if(((He=(xa=Le==null?void 0:Le.data)==null?void 0:xa.result)==null?void 0:He.length)>0){let Xe=(Re=(Te=Le==null?void 0:Le.data)==null?void 0:Te.result)==null?void 0:Re.map(wa=>wa==null?void 0:wa.id);(Xe==null?void 0:Xe.length)>0&&await yr.batchDeleteInsofDataApi({ids:Xe})}let ya=[];if((Je=Ne==null?void 0:Ne.compData)!=null&&Je.find(Xe=>(Xe==null?void 0:Xe.key)==="pageColumn")&&((P=(Fa=(Ja=Ne==null?void 0:Ne.compData)==null?void 0:Ja.find(Xe=>(Xe==null?void 0:Xe.key)==="pageColumn"))==null?void 0:Fa.contents)!=null&&P.includes("["))){const Xe=await yr.getInsofDataApi({id:Ne==null?void 0:Ne.tableId});let wa=((te=(ne=(J=(F=Xe==null?void 0:Xe.data)==null?void 0:F.result)==null?void 0:J[0])==null?void 0:ne.key)==null?void 0:te.pageKey)??"";(ga=Object.values(ra))==null||ga.forEach(ve=>{ya.push({key:{type:"data",pageKey:wa,tableId:Ne==null?void 0:Ne.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ve}})})}else(ta=Object.values(ra))==null||ta.forEach(Xe=>{ya.push({key:{type:"data",pageKey:E,tableId:Ne==null?void 0:Ne.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Xe}})});(ya==null?void 0:ya.length)>0&&await yr.batchAddInsofDataApi({dataList:ya})}else if(!(ae!=null&&ae[1])&&(Ne==null?void 0:Ne.comp)==="Form"){let ra=$.cloneDeep(Ne);ra.compData=(_e=(Oe=$.cloneDeep(ra))==null?void 0:Oe.compData)==null?void 0:_e.map(Le=>{var ya,Xe;return(Le==null?void 0:Le.key)==="formContent"&&(Le.contents=(Xe=(ya=$.cloneDeep(Le))==null?void 0:ya.contents)==null?void 0:Xe.map(wa=>{var ve,Ga;return(ve=$.cloneDeep(re))!=null&&ve[wa==null?void 0:wa.key]&&(wa.value=(Ga=$.cloneDeep(re))==null?void 0:Ga[wa==null?void 0:wa.key]),wa})),Le});const Pe=await yr.getInsofDataApi({key:{type:"structure",pageKey:E,systemKey:sessionStorage.getItem("systemKey")}});let _a="";((Da=Pe==null?void 0:Pe.data)==null?void 0:Da.type)==="success"&&((Qe=(he=Pe==null?void 0:Pe.data)==null?void 0:he.result)==null||Qe.forEach(Le=>{var ya,Xe;((Xe=(ya=Le==null?void 0:Le.value)==null?void 0:ya.pageData)==null?void 0:Xe.name)===(ae==null?void 0:ae[0])&&(_a=Le.id)}),await yr.updateInsofDataApi({id:_a,value:{pageData:ra}}))}}},X=async re=>{var E,ae,me,ce,Ne,va,Sa,Wa,Q,na,Ve,xa,He,Te;x.setImportLoading(!0);try{if(re.api){let Re=new WeakMap,Je=await pa.getItemData((T==null?void 0:T.value)===""?b.value:T==null?void 0:T.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re),Ja="";if(Je=Je==null?void 0:Je.map(ta=>{var Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa;if((ta==null?void 0:ta.comp)==="Form")ta.compData=(Oe=ta.compData)==null?void 0:Oe.map(ve=>{var Ga;return(ve==null?void 0:ve.key)==="formContent"&&(ve.contents=(Ga=ve.contents)==null?void 0:Ga.map(sa=>{var Oa;if((sa==null?void 0:sa.value)===""&&(sa==null?void 0:sa.type)==="Select"){let qe=pa.judgeContents((Oa=$.cloneDeep(sa))==null?void 0:Oa.optionUrl,Re);sa.value=sa.value||qe}return sa})),ve});else if((ta==null?void 0:ta.comp)==="Table"&&(_e=ta.compData)!=null&&_e.find(ve=>(ve==null?void 0:ve.key)==="pageColumn")){let ve=(he=(Da=ta.compData)==null?void 0:Da.find(qe=>(qe==null?void 0:qe.key)==="pageColumn"))==null?void 0:he.contents,Ga=((ra=(Qe=ta.compData)==null?void 0:Qe.find(qe=>(qe==null?void 0:qe.key)==="pageGroup"))==null?void 0:ra.contents)??"",sa=(Le=(_a=(Pe=ve==null?void 0:ve.split("["))==null?void 0:Pe[1])==null?void 0:_a.split("]"))==null?void 0:Le[0];Ja=((ya=ve==null?void 0:ve.split("["))==null?void 0:ya[0])+((wa=(Xe=A.value)==null?void 0:Xe.find(qe=>(qe==null?void 0:qe.key)===sa))==null?void 0:wa.value)}return ta}),!(Ja===""||Ja==="")){const ta=await pa.getItemData(Ja,sessionStorage.getItem("systemKey"),"",!1,"","",Re);Je=Je==null?void 0:Je.map(Oe=>{var _e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga;if((Oe==null?void 0:Oe.comp)==="Table"&&(_e=Oe.compData)!=null&&_e.find(sa=>(sa==null?void 0:sa.key)==="pageColumn")){let sa=(he=(Da=Oe.compData)==null?void 0:Da.find(oe=>(oe==null?void 0:oe.key)==="pageColumn"))==null?void 0:he.contents,Oa=((ra=(Qe=Oe.compData)==null?void 0:Qe.find(oe=>(oe==null?void 0:oe.key)==="pageGroup"))==null?void 0:ra.contents)??"",qe=(Le=(_a=(Pe=sa==null?void 0:sa.split("["))==null?void 0:Pe[1])==null?void 0:_a.split("]"))==null?void 0:Le[0],Ya=((ya=sa==null?void 0:sa.split("["))==null?void 0:ya[0])+((wa=(Xe=A.value)==null?void 0:Xe.find(oe=>(oe==null?void 0:oe.key)===qe))==null?void 0:wa.value),ba=(ve=ta==null?void 0:ta.find(oe=>(oe==null?void 0:oe.name)===(Oa===""?s==null?void 0:s.compName:Oa)))==null?void 0:ve.compData;Oe.compData=(Ga=Oe.compData)==null?void 0:Ga.map(oe=>{var Se;return(oe==null?void 0:oe.key)==="tableContents"&&(oe.contents=(Se=ba==null?void 0:ba.find(Ue=>(Ue==null?void 0:Ue.key)==="tableContents"))==null?void 0:Se.contents),oe})}return Oe})}let Fa={};if(((ae=(E=re==null?void 0:re.extraValues)==null?void 0:E.input)==null?void 0:ae.length)>0){const ta=(ce=(me=re==null?void 0:re.extraValues)==null?void 0:me.input)==null?void 0:ce.map(async Oe=>{var _e;ue!=null&&ue.find(Da=>Da===Oe)?Fa=await Ce(Oe,Je):Fa[Object.keys(Oe)[0]]=await Ce((_e=Object.values(Oe))==null?void 0:_e[0],Je,Re)});await Promise.all(ta)}else Fa=await Ce("/",Je);let P=!1;(va=(Ne=re==null?void 0:re.extraValues)==null?void 0:Ne.output)==null||va.forEach(ta=>{var Oe,_e;(_e=(Oe=Object.values(ta))==null?void 0:Oe[0])!=null&&_e.includes(".doc")&&(P=!0)});let F;if(P){const ta=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});F=await ol.axios.post(re.api,Fa,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ta.close()})}else F=await ol.axios.post(re.api,Fa,{headers:{"Content-Type":"application/json"}});let J=(na=(Q=(Wa=(Sa=$.cloneDeep(re))==null?void 0:Sa.extraValues)==null?void 0:Wa.output)==null?void 0:Q.map(ta=>{var Oe,_e,Da,he,Qe,ra,Pe,_a,Le,ya,Xe,wa,ve,Ga,sa,Oa;if(!((_e=(Oe=Object.values(ta))==null?void 0:Oe[0])!=null&&_e.includes(".doc"))){let qe=(ya=(Le=(_a=(he=$.cloneDeep((Da=Object.values(ta))==null?void 0:Da[0]))==null?void 0:he.split("["))==null?void 0:_a[((Pe=(ra=$.cloneDeep((Qe=Object.values(ta))==null?void 0:Qe[0]))==null?void 0:ra.split("["))==null?void 0:Pe.length)-1])==null?void 0:Le.split("]"))==null?void 0:ya[0],Ya=qe==null?void 0:qe.split(":"),ba=(ve=$.cloneDeep((Xe=Object.values(ta))==null?void 0:Xe[0]))==null?void 0:ve.substring(0,$.cloneDeep((wa=Object.values(ta))==null?void 0:wa[0]).lastIndexOf("["));if(ba=(sa=$.cloneDeep(ba))==null?void 0:sa.slice(0,((Ga=$.cloneDeep(ba))==null?void 0:Ga.length)-1),ba!=null&&ba.includes("[")){let oe="";if((Oa=pa.contentTransArrayToAll(ba,"/"))==null||Oa.forEach(Se=>{var Ue,Ke,Ca,Be,sl,Ea,Sl;if(!(Se!=null&&Se.includes("[")))oe=oe===""?oe+Se.replaceAll("/",""):oe+"/"+Se.replaceAll("/","");else{let ml=$.cloneDeep(Se).slice(1,((Ue=$.cloneDeep(Se))==null?void 0:Ue.length)-1),Fe=(Ea=(sl=(Be=(Ca=(Ke=$.cloneDeep(ml))==null?void 0:Ke.split("["))==null?void 0:Ca[1])==null?void 0:Be.split("]"))==null?void 0:sl[0])==null?void 0:Ea.split(":"),Pa="",je=(Sl=Je==null?void 0:Je.find(xe=>(xe==null?void 0:xe.name)===(Fe==null?void 0:Fe[0])))==null?void 0:Sl.compData;je==null||je.forEach(xe=>{var ea;(xe==null?void 0:xe.key)==="formContent"&&((ea=xe==null?void 0:xe.contents)==null||ea.forEach(Ze=>{(Ze==null?void 0:Ze.key)===(Fe==null?void 0:Fe[1])&&(Pa=Ze==null?void 0:Ze.value)}))}),oe=oe===""?oe+Pa.replaceAll("/",""):oe+"/"+Pa.replaceAll("/","")}}),ba=oe,ba[(ba==null?void 0:ba.length)-1]!=="/")return ba}}}))==null?void 0:na.filter(ta=>ta);J=[...new Set($.cloneDeep(J))];let ne=J==null?void 0:J.map(async ta=>{let Oe=await pa.getItemData(ta,sessionStorage.getItem("systemKey"),"",!1,"","",Re);if((Oe==null?void 0:Oe.length)===0)return await pa.getParentContents(ta)});await Promise.all(ne);let te=[],ga=(He=(xa=(Ve=$.cloneDeep(re))==null?void 0:Ve.extraValues)==null?void 0:xa.output)==null?void 0:He.map(async ta=>{var _a,Le,ya,Xe,wa,ve,Ga,sa,Oa,qe,Ya,ba,oe,Se,Ue,Ke,Ca,Be,sl,Ea,Sl,ml,Fe,Pa,je,xe,ea,Ze,la,q,oa,ka,ye,Ee,qa,pe,fl,al,_l,Ha,Xa,Ba,Za,Va,Wl,Kl,$l,Fl,gr,rr,kr,wr,Sr,dn,Jr,pn,Xr,qr,fn,tn,Dr,Zr,Nr,Il,Wr,Br,mn,so,Gn,$n;if((Le=(_a=Object.values(ta))==null?void 0:_a[0])!=null&&Le.includes(".doc")){var Oe=new Blob([F.data],{type:"application/octet-stream;charset=UTF-8"}),_e=F.headers["content-disposition"],Da=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),he=Da.exec(_e),Qe=he==null?void 0:he[1],ra=document.createElement("a"),Pe=window.URL.createObjectURL(Oe);m.value=[{name:Qe,blobUrl:Pe}],c.value=!0}else{let yn=(qe=(Oa=(sa=(Xe=$.cloneDeep((ya=Object.values(ta))==null?void 0:ya[0]))==null?void 0:Xe.split("["))==null?void 0:sa[((Ga=(ve=$.cloneDeep((wa=Object.values(ta))==null?void 0:wa[0]))==null?void 0:ve.split("["))==null?void 0:Ga.length)-1])==null?void 0:Oa.split("]"))==null?void 0:qe[0],Xl=yn==null?void 0:yn.split(":"),xr=(oe=$.cloneDeep((Ya=Object.values(ta))==null?void 0:Ya[0]))==null?void 0:oe.substring(0,$.cloneDeep((ba=Object.values(ta))==null?void 0:ba[0]).lastIndexOf("["));if(xr!=null&&xr.includes("[")?xr=(Ue=$.cloneDeep(xr))==null?void 0:Ue.slice(0,((Se=$.cloneDeep(xr))==null?void 0:Se.length)-1):xr===""&&(xr=b.value),xr=xr.replaceAll("<","[").replaceAll(">","]"),xr!=null&&xr.includes("[")){let Hl="";(Ke=pa.contentTransArrayToAll(xr,"/"))==null||Ke.forEach((Ml,cr)=>{var ar,Pl,zr,Mr,gn,Qr,Jn,Dn,Xn,bn,Nn;if(!(Ml!=null&&Ml.includes("[")))Hl=Hl===""?Hl+Ml.replaceAll("/",""):Hl+"/"+Ml.replaceAll("/","");else{let Rn="",Kr="";(ar=$.cloneDeep(Ml))!=null&&ar.includes("]")?(Rn=$.cloneDeep(Ml).slice(1,((Pl=$.cloneDeep(Ml))==null?void 0:Pl.length)-1),Kr=(Jn=(Qr=(gn=(Mr=(zr=$.cloneDeep(Rn))==null?void 0:zr.split("["))==null?void 0:Mr[1])==null?void 0:gn.split("]"))==null?void 0:Qr[0])==null?void 0:Jn.split(":")):(Rn=$.cloneDeep(Ml).slice(1,(Dn=$.cloneDeep(Ml))==null?void 0:Dn.length),Kr=(Xn=$.cloneDeep(Rn))==null?void 0:Xn.split("/"));let Bn="",kn=(bn=Je==null?void 0:Je.find(Pr=>(Pr==null?void 0:Pr.name)===(Kr==null?void 0:Kr[0])))==null?void 0:bn.compData;kn==null||kn.forEach(Pr=>{var Vn;(Pr==null?void 0:Pr.key)==="formContent"&&((Vn=Pr==null?void 0:Pr.contents)==null||Vn.forEach(hn=>{(hn==null?void 0:hn.key)===(Kr==null?void 0:Kr[1])&&(Bn=hn==null?void 0:hn.value)}))}),((Nn=pa.contentTransArrayToAll(xr,"/"))==null?void 0:Nn.length)-1!==cr?Hl=Hl===""?Hl+Bn.replaceAll("/",""):Hl+"/"+Bn.replaceAll("/",""):Hl=Hl+o.value+Bn.replaceAll("/","")}}),(Ca=b.value)!=null&&Ca.includes(Hl)?xr=b.value:xr=Hl}let Rl=$.cloneDeep((Be=Object.keys(ta))==null?void 0:Be[0]);if(((sl=F==null?void 0:F.data)==null?void 0:sl.statusCode)===200||((Ea=F==null?void 0:F.data)==null?void 0:Ea.code)===200){if(((ml=(Sl=F==null?void 0:F.data)==null?void 0:Sl.data)!=null&&ml[Rl]||(Pa=(Fe=F==null?void 0:F.data)==null?void 0:Fe.result)!=null&&Pa[Rl])&&(Xl==null?void 0:Xl.length)===1)return await we(((xe=(je=F==null?void 0:F.data)==null?void 0:je.data)==null?void 0:xe[Rl])||((Ze=(ea=F==null?void 0:F.data)==null?void 0:ea.result)==null?void 0:Ze[Rl]),$.cloneDeep(xr),Xl,Ja);if((q=(la=F==null?void 0:F.data)==null?void 0:la.data)!=null&&q[Rl]||(ka=(oa=F==null?void 0:F.data)==null?void 0:oa.result)!=null&&ka[Rl]){let Hl=await Ie(((Ee=(ye=F==null?void 0:F.data)==null?void 0:ye.data)==null?void 0:Ee[Rl])||((pe=(qa=F==null?void 0:F.data)==null?void 0:qa.result)==null?void 0:pe[Rl]),$.cloneDeep(xr),Xl);return Hl&&(te=[...te,...Hl]),Hl}else{if(!((fl=F==null?void 0:F.data)!=null&&fl.data)){let Hl=await pa.getItemData(b.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re);Hl=Hl==null?void 0:Hl.map(cr=>{var ar;return(cr==null?void 0:cr.name)===(Xl==null?void 0:Xl[0])&&(cr.compData=(ar=cr.compData)==null?void 0:ar.map(Pl=>{var zr;return(Pl==null?void 0:Pl.key)==="formContent"&&(Pl.contents=(zr=Pl.contents)==null?void 0:zr.map(Mr=>{var gn,Qr;return(Mr==null?void 0:Mr.key)===(Xl==null?void 0:Xl[1])&&(Mr.value=(Qr=(gn=F==null?void 0:F.data)==null?void 0:gn.result)==null?void 0:Qr[Rl==null?void 0:Rl.replaceAll(":","")]),Mr})),Pl})),cr});let Ml=[];(al=Hl==null?void 0:Hl.filter(cr=>(cr==null?void 0:cr.comp)==="Form"))==null||al.forEach(async cr=>{let ar={};for(let Pl in cr)Pl!=="id"&&(ar[Pl]=cr[Pl]);Ml.push({id:cr==null?void 0:cr.id,value:{pageData:ar}})}),(Ml==null?void 0:Ml.length)>0&&await yr.batchUpdateInsofDataApi({dataList:Ml});return}if((Xl==null?void 0:Xl.length)===1){const Hl=(Xa=(Ha=(_l=F==null?void 0:F.data)==null?void 0:_l.data)==null?void 0:Ha.path)==null?void 0:Xa.path;let Ml="";(Kl=(Wl=(Va=(Za=(Ba=Hl==null?void 0:Hl.split("("))==null?void 0:Ba[1])==null?void 0:Za.split(")"))==null?void 0:Va[0])==null?void 0:Wl.split(":"))==null||Kl.forEach(Pl=>{var zr,Mr;Ml=Ml===""?Ml+((zr=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:zr.trim()):Ml+"/"+((Mr=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:Mr.trim())});let cr=[(kr=(rr=(gr=(Fl=($l=Hl==null?void 0:Hl.split("<"))==null?void 0:$l[1])==null?void 0:Fl.split(">"))==null?void 0:gr[0])==null?void 0:rr.replaceAll("'",""))==null?void 0:kr.trim()],ar;return(dn=(Sr=(wr=F==null?void 0:F.data)==null?void 0:wr.data)==null?void 0:Sr.data)!=null&&dn[Xl==null?void 0:Xl[0]]?ar=await we((Xr=(pn=(Jr=F==null?void 0:F.data)==null?void 0:Jr.data)==null?void 0:pn.data)==null?void 0:Xr[Xl==null?void 0:Xl[0]],Ml,Xl,Ja):ar=await De((fn=(qr=F==null?void 0:F.data)==null?void 0:qr.data)==null?void 0:fn.data,Ml,cr,Re),ar}else{const Hl=(Zr=(Dr=(tn=F==null?void 0:F.data)==null?void 0:tn.data)==null?void 0:Dr.path)==null?void 0:Zr.path;let Ml="";return(mn=(Br=(Wr=(Il=(Nr=Hl==null?void 0:Hl.split("("))==null?void 0:Nr[1])==null?void 0:Il.split(")"))==null?void 0:Wr[0])==null?void 0:Br.split(":"))==null||mn.forEach(ar=>{var Pl,zr;Ml=Ml===""?Ml+((Pl=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:Pl.trim()):Ml+"/"+((zr=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:zr.trim())}),await Ie(($n=(Gn=(so=F==null?void 0:F.data)==null?void 0:so.data)==null?void 0:Gn.data)==null?void 0:$n[Xl==null?void 0:Xl[0]],Ml,Xl)}}}}});if(await Promise.all(ga),(te==null?void 0:te.length)>0){let ta=[];te==null||te.forEach(Da=>{ta!=null&&ta.find(he=>{var Qe,ra,Pe,_a;return((ra=(Qe=he==null?void 0:he.value)==null?void 0:Qe.pageData)==null?void 0:ra.name)===((_a=(Pe=Da==null?void 0:Da.value)==null?void 0:Pe.pageData)==null?void 0:_a.name)})||ta.push(Da)});let Oe=[];ta==null||ta.forEach(Da=>{var ra,Pe,_a,Le;let he=$.cloneDeep(Da);he.value.pageData.compData=(ra=he.value.pageData.compData)==null?void 0:ra.map(ya=>{var Xe;return(ya==null?void 0:ya.key)==="formContent"&&(ya.contents=(Xe=ya.contents)==null?void 0:Xe.map(wa=>{var Ga,sa,Oa,qe;let ve=(Ga=$.cloneDeep(te))==null?void 0:Ga.find(Ya=>(Ya==null?void 0:Ya.keyType)===(wa==null?void 0:wa.key));if(ve){let Ya=(qe=(Oa=(sa=ve.value.pageData.compData)==null?void 0:sa.find(ba=>(ba==null?void 0:ba.key)==="formContent"))==null?void 0:Oa.contents)==null?void 0:qe.find(ba=>(ba==null?void 0:ba.key)===(wa==null?void 0:wa.key));wa.value=Ya==null?void 0:Ya.value}return wa})),ya}),Oe.push({id:he==null?void 0:he.id,value:he==null?void 0:he.value});let Qe=[];(Le=(_a=(Pe=he==null?void 0:he.value)==null?void 0:Pe.pageData)==null?void 0:_a.compData)==null||Le.forEach(ya=>{var Xe;(ya==null?void 0:ya.key)==="formContent"&&((Xe=ya==null?void 0:ya.contents)==null||Xe.forEach(wa=>{var ve,Ga,sa,Oa,qe,Ya;if((Ga=(ve=wa==null?void 0:wa.optionUrl)==null?void 0:ve.menuSelect)!=null&&Ga.find(ba=>ba==null?void 0:ba.includes("[")))if(Qe!=null&&Qe.find(ba=>{var oe,Se,Ue;return((oe=ba==null?void 0:ba.key)==null?void 0:oe.join(","))===((Ue=(Se=wa==null?void 0:wa.optionUrl)==null?void 0:Se.menuSelect)==null?void 0:Ue.join(","))})){let ba=(sa=Qe==null?void 0:Qe.find(oe=>{var Se,Ue,Ke;return((Se=oe==null?void 0:oe.key)==null?void 0:Se.join(","))===((Ke=(Ue=wa==null?void 0:wa.optionUrl)==null?void 0:Ue.menuSelect)==null?void 0:Ke.join(","))}))==null?void 0:sa.value;ba.push({key:wa==null?void 0:wa.prop,groups:(Oa=wa==null?void 0:wa.optionUrl)==null?void 0:Oa.groupSelect,value:wa==null?void 0:wa.value}),Qe=Qe==null?void 0:Qe.map(oe=>{var Se,Ue,Ke;return((Se=oe==null?void 0:oe.key)==null?void 0:Se.join(","))===((Ke=(Ue=wa==null?void 0:wa.optionUrl)==null?void 0:Ue.menuSelect)==null?void 0:Ke.join(","))&&(oe.value=ba),oe})}else Qe.push({key:(qe=wa==null?void 0:wa.optionUrl)==null?void 0:qe.menuSelect,value:[{key:wa==null?void 0:wa.prop,groups:(Ya=wa==null?void 0:wa.optionUrl)==null?void 0:Ya.groupSelect,value:wa==null?void 0:wa.value}]})}))}),(Qe==null?void 0:Qe.length)>0&&(Qe=Qe==null?void 0:Qe.map(ya=>{var wa;let Xe="";return(wa=ya==null?void 0:ya.key)==null||wa.forEach(ve=>{var Ga;if(!(ve!=null&&ve.includes("[")))Xe=Xe===""?Xe+ve:Xe+"/"+ve;else{let sa="",Oa=(Ga=ve==null?void 0:ve.replaceAll("[","").replaceAll("]",""))==null?void 0:Ga.split(":");Je==null||Je.forEach(qe=>{var Ya;(qe==null?void 0:qe.name)===(Oa==null?void 0:Oa[0])&&((Ya=qe==null?void 0:qe.compData)==null||Ya.forEach(ba=>{var oe;(ba==null?void 0:ba.key)==="formContent"&&((oe=ba==null?void 0:ba.contents)==null||oe.forEach(Se=>{(Se==null?void 0:Se.prop)===(Oa==null?void 0:Oa[1])&&(sa=Se==null?void 0:Se.value)}))}))}),Xe=Xe+o.value+sa}}),ya.key=Xe,ya})),Qe==null||Qe.forEach(ya=>{var Ga,sa,Oa;let Xe=(Ga=Re[ya.key])==null?void 0:Ga.find(qe=>{var Ya,ba,oe,Se,Ue,Ke,Ca;return((ba=(Ya=qe==null?void 0:qe.value)==null?void 0:Ya.pageData)==null?void 0:ba.name)===((Ue=(Se=(oe=ya==null?void 0:ya.value)==null?void 0:oe[0])==null?void 0:Se.groups)==null?void 0:Ue[0])&&((Ca=(Ke=qe==null?void 0:qe.value)==null?void 0:Ke.pageData)==null?void 0:Ca.name)!==void 0}),wa=Xe==null?void 0:Xe.id,ve=(sa=Xe==null?void 0:Xe.value)==null?void 0:sa.pageData;ve.compData=(Oa=ve.compData)==null?void 0:Oa.map(qe=>{var Ya;return(qe==null?void 0:qe.key)==="formContent"&&(qe.contents=(Ya=qe.contents)==null?void 0:Ya.map(ba=>{var Se;let oe=(Se=ya.value)==null?void 0:Se.find(Ue=>(Ue==null?void 0:Ue.key)===(ba==null?void 0:ba.prop));return oe&&(ba.value=oe.value),ba})),qe}),Oe.push({id:wa,value:{pageData:ve}})})});let _e=(Te=$.cloneDeep(te))==null?void 0:Te[0];(Oe==null?void 0:Oe.length)>0&&await yr.batchUpdateInsofDataApi({dataList:Oe})}y.setFreshContent(!0)}x.setImportLoading(!1)}catch{ol.ElMessage.error("方法执行错误,请查看方法!"),x.setImportLoading(!1)}_.value=!0},ue=["createInsofDataApi"],Ge=Ra.debounce(async re=>{X(re)},100),za=async re=>{var va,Sa,Wa;const E=$.cloneDeep(re);let ae,me=new WeakMap;re!=null&&re[0].path&&(ae=await(E==null?void 0:E.map(async(Q,na)=>{var Fa,P,F,J,ne,te,ga,ta,Oe,_e,Da,he,Qe,ra,Pe,_a;const xa=(Fa=me[Q==null?void 0:Q.path])==null?void 0:Fa.filter(Le=>{var ya;return((ya=Le==null?void 0:Le.key)==null?void 0:ya.type)==="data"});let He="";const Te=await pa.getItemData(b.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,me);xa==null||xa.forEach(Le=>{var ya,Xe,wa,ve,Ga;((Xe=(ya=Le==null?void 0:Le.value)==null?void 0:ya.tableData)==null?void 0:Xe.算法名称)===((wa=E==null?void 0:E[na])==null?void 0:wa.method)&&(He=(Ga=(ve=Le==null?void 0:Le.value)==null?void 0:ve.tableData)==null?void 0:Ga.算法体)});const Re=await pa.getItemData(Q==null?void 0:Q.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,me);let Je="",Ja=(ne=(J=(F=(P=Re==null?void 0:Re[0])==null?void 0:P.compData)==null?void 0:F.find(Le=>(Le==null?void 0:Le.key)==="header"))==null?void 0:J.contents)==null?void 0:ne.findIndex(Le=>(Le==null?void 0:Le.prop)==="算法体");return(ga=(te=Re==null?void 0:Re[0])==null?void 0:te.compData)==null||ga.forEach(Le=>{var ya;(Le==null?void 0:Le.key)==="tableContents"&&((ya=Le==null?void 0:Le.contents)==null||ya.forEach(Xe=>{Xe!=null&&Xe.find(wa=>wa===(Q==null?void 0:Q.method))&&(Je=Xe[Ja])}))}),{buttonName:((ta=E==null?void 0:E[na])==null?void 0:ta.method)||((Da=(_e=(Oe=xa==null?void 0:xa[0])==null?void 0:Oe.value)==null?void 0:_e.tableData)==null?void 0:Da.算法名称),api:(He===""?(ra=(Qe=(he=xa==null?void 0:xa[0])==null?void 0:he.value)==null?void 0:Qe.tableData)==null?void 0:ra.算法体:He)||Je,content:Te==null?void 0:Te.filter(Le=>Le.comp!=="methodButton"),extraContent:(Pe=$.cloneDeep(Q.value))==null?void 0:Pe.slice(1),methodName:(Q==null?void 0:Q.path)??"",extraValues:(_a=E==null?void 0:E[na])==null?void 0:_a.data}})));const ce=E==null?void 0:E.map(async Q=>{var Re,Je,Ja,Fa,P,F;const na=(Re=resAll.data.result)==null?void 0:Re.filter(J=>{var ne,te,ga;return((ne=J==null?void 0:J.key)==null?void 0:ne.parentTable)===""&&((te=J==null?void 0:J.key)==null?void 0:te.type)==="method"&&((ga=J==null?void 0:J.key)==null?void 0:ga.methodName)===J.method}),Ve=na==null?void 0:na[0],xa=(Je=resAll.data.result)==null?void 0:Je.filter(J=>{var ne,te;return((ne=J==null?void 0:J.key)==null?void 0:ne.type)==="methodData"&&((te=J==null?void 0:J.key)==null?void 0:te.tableId)===(Ve==null?void 0:Ve.id)}),He=await pa.getItemData(b.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,me),Te=xa==null?void 0:xa[0];return{buttonName:(Ja=Ve==null?void 0:Ve.key)==null?void 0:Ja.methodKey,api:(P=(Fa=Te==null?void 0:Te.value)==null?void 0:Fa.tableData)==null?void 0:P[0],content:He==null?void 0:He.filter(J=>J.comp!=="methodButton"),extraContent:(F=$.cloneDeep(Q.value))==null?void 0:F.slice(1),methodName:(Q==null?void 0:Q.method)??""}}),Ne=(va=re==null?void 0:re[0])!=null&&va.path&&((Sa=re==null?void 0:re[0])==null?void 0:Sa.path)!==""?await Promise.all(ae):await Promise.all(ce);r.value=Ne==null?void 0:Ne.filter(Q=>Q==null?void 0:Q.extraContent),(Wa=r.value)==null||Wa.forEach(Q=>{var na;Q.api===""&&((na=Q.content)==null||na.forEach(Ve=>{var xa;Ve.comp=="Table"&&y.setExtraContents(pa.methodTableToContent(Ve.compData,(xa=Q.extraContent)==null?void 0:xa[0]))}))})};return a.watch(()=>s.itemData,async()=>{w.value=="view"&&!_.value&&await za($.cloneDeep(s.itemData)),_.value=!1},{immediate:!0,deep:!0}),(re,E)=>{var ae,me,ce;return a.unref(w)!=="edit"?(a.openBlock(),a.createElementBlock("div",O2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ae=r.value)==null?void 0:ae.filter(Ne=>(Ne==null?void 0:Ne.buttonName)!=="保存"),Ne=>{var va;return a.openBlock(),a.createElementBlock("div",null,[Ne.api!==""?(a.openBlock(),a.createBlock(a.unref(es._sfc_main),{key:0,disabled:a.unref(N)===a.unref(b)&&!((va=Ne==null?void 0:Ne.buttonName)!=null&&va.includes("预览")),class:"calculator-content",modelValue:Ne.buttonName,onClickTrigger:Sa=>a.unref(Ge)(Ne),loading:u.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(V)!==""&&((ce=a.unref(b))==null?void 0:ce[((me=a.unref(b))==null?void 0:me.length)-1])!==a.unref(o)?(a.openBlock(),a.createBlock(a.unref(es._sfc_main),{key:0,class:"calculator-content",onClickTrigger:U,modelValue:"保存"})):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:W},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},L2=ql._export_sfc(I2,[["__scopeId","data-v-063aa9af"]]),$2={};function R2(l,r){return" 567 "}const V2=ql._export_sfc($2,[["render",R2]]),P2={class:"module content"},F2={class:"module data"},j2={class:"module layout"},H2={class:"form-content"},U2=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"}]),p=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),u=a.ref([]),x=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:u.value},{key:"signConfig",contents:y.value}]}),C=A=>{var N;y.value=$.cloneDeep(A),o("change",(N=x())==null?void 0:N.compData)},B=A=>{var N,Y;if((A==null?void 0:A.buttonName)==="确认"){const b=$.cloneDeep(A==null?void 0:A.content);switch(c.value){case"create":u.value.push({...b,index:((N=u.value)==null?void 0:N.length)+1});break}o("change",(Y=x())==null?void 0:Y.compData),s.visible=!1}else s.visible=!1},w=(A,N)=>{var Y,b;switch(A){case"create":(Y=v.value)==null||Y.forEach(L=>{L.value=""}),c.value="create",s.visible=!0;break;case"update":(b=v.value)==null||b.forEach(L=>{L.value=N[L==null?void 0:L.prop]}),c.value="update",s.visible=!0;break;case"delete":u.value.splice(N,1),c.value="delete";break}},V=()=>{s.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,A=>{var N,Y;A&&(y.value=((N=A==null?void 0:A.find(b=>b.key==="signConfig"))==null?void 0:N.contents)??{},u.value=((Y=A==null?void 0:A.find(b=>b.key==="signTypeList"))==null?void 0:Y.contents)??[])},{immediate:!0}),(A,N)=>{const Y=a.resolveComponent("svg-icon"),b=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",P2,[N[2]||(N[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(b,{class:"module-icon",id:"themeButton",onClick:N[0]||(N[0]=L=>w("create"))},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[N[1]||(N[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",F2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(L,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString(L==null?void 0:L.label),1),a.createElementVNode("div",null,[a.createVNode(b,{type:"primary",size:"small",onClick:k=>w("update",{...L,index:T+1})},{default:a.withCtx(()=>N[3]||(N[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(b,{type:"danger",size:"small",onClick:k=>w("delete",T)},{default:a.withCtx(()=>N[4]||(N[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",j2,[a.createVNode(pl.ssForm,{rowContents:p.value,onChange:C},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:V,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",H2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:B},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),q2=ql._export_sfc(U2,[["__scopeId","data-v-487e0536"]]),W2=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,C;return(x=n==null?void 0:n.stepConfig)!=null&&x.allowTrigger?s.value:(C=n==null?void 0:n.stepConfig)==null?void 0:C.active}),m=(x,C)=>{s.value=C-1,o("clickStep",x,C)};a.onMounted(()=>{var x;o("clickStep",(x=n==null?void 0:n.stepList)==null?void 0:x[0],0)});const p=x=>pl.getComponent(x),v=()=>{var C;const x=(C=n==null?void 0:n.stepList)==null?void 0:C.find((B,w)=>w+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,C)=>{var V,A,N,Y,b;const B=a.resolveComponent("el-step"),w=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(w,{direction:(V=l.stepConfig)==null?void 0:V.direction,active:c.value,"finish-status":"success",simple:(A=l.stepConfig)==null?void 0:A.simple,"align-center":((N=l.stepConfig)==null?void 0:N.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,(L,T)=>(a.openBlock(),a.createBlock(B,{key:T,class:"step-item",onClick:k=>m(L,T+1)},{title:a.withCtx(()=>[a.renderSlot(x.$slots,"title",{title:L==null?void 0:L.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(x.$slots,"description",{descriptions:L==null?void 0:L.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(Y=l.stepConfig)!=null&&Y.allowTrigger&&((b=l.stepConfig)!=null&&b.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),(L,T)=>(a.openBlock(),a.createElementBlock("div",{key:T,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(L==null?void 0:L.type)),{modelValue:L.value,"onUpdate:modelValue":k=>L.value=k,onClickTrigger:y,onChangeTrigger:u,content:L==null?void 0:L.content},a.createSlots({_:2},[a.renderList(x.$slots,(k,_)=>({name:_,fn:a.withCtx(U=>[a.renderSlot(x.$slots,_,a.mergeProps({ref_for:!0},U||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),K2=ql._export_sfc(W2,[["__scopeId","data-v-fdbd6832"]]),Y2=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=(p,v)=>{o("clickStep",p,v)};return a.watch(()=>n==null?void 0:n.itemData,p=>{var x,C,B,w;s.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let v=((x=p==null?void 0:p.find(V=>(V==null?void 0:V.key)==="stepName"))==null?void 0:x.contents)??[],y=[];(B=(C=p==null?void 0:p.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:C.contents)==null||B.forEach(V=>{y.push({label:V==null?void 0:V.label,prop:V==null?void 0:V.prop,name:V==null?void 0:V.prop,type:"text",disabled:!0})});let u=((w=p==null?void 0:p.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:w.contents)??[];v=v==null?void 0:v.map((V,A)=>{let N=y==null?void 0:y.map(Y=>{var b;return{...Y,value:(b=u==null?void 0:u[A])==null?void 0:b[Y==null?void 0:Y.prop]}});return{title:V,description:N}}),c.value=v},{immediate:!0,deep:!0}),(p,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(K2,{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(pl.ssForm,{ref:"formRef",rowContents:u,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),G2=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})}}}),J2=ql._export_sfc(G2,[["__scopeId","data-v-4172a886"]]),X2={class:"line-content"},Z2={class:"line-time"},Q2=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(p=>(p==null?void 0:p.key)==="timeLineList"))==null?void 0:c.contents,n.value=(m=s==null?void 0:s.find(p=>(p==null?void 0:p.key)==="timeLineConfig"))==null?void 0:m.contents},{immediate:!0}),(s,c)=>(a.openBlock(),a.createBlock(J2,{activities:o.value,timeLineConfig:n.value},{content:a.withCtx(({content:m,timestamp:p})=>[a.createElementVNode("span",X2,a.toDisplayString(m),1),a.createElementVNode("span",Z2,a.toDisplayString(p),1)]),_:1},8,["activities","timeLineConfig"]))}}),eh=ql._export_sfc(Q2,[["__scopeId","data-v-b4d9deed"]]),ah={class:"tabs-content"},lh=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=C=>{o("change",C)},m=(C,B)=>{o("contentChange",C,B)},p=C=>{o("pageChange",C)},v=C=>{o("rowClick",C)},y=(C,B)=>{o("routeUrl",C,B)},u=C=>{o("clickTrigger",C)},x=(C,B)=>{o("clickMainKey",C,B)};return(C,B)=>{var w,V;return a.openBlock(),a.createElementBlock("div",ah,[(w=s.value)!=null&&w.length?(a.openBlock(),a.createBlock(pl.ssTab,{tabsContents:s.value,key:(V=s.value)==null?void 0:V.length},{pane:a.withCtx(({tab:A,index:N})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(A==null?void 0:A.comp)),{related:A==null?void 0:A.relatedTables,compNames:n==null?void 0:n.compNames,compName:A==null?void 0:A.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:l.isDevMode,itemData:A==null?void 0:A.compData,childItemData:A==null?void 0:A.itemChildData,onChange:c,index:(A==null?void 0:A.id)??N,config:{showIndex:A==null?void 0:A.showIndex,allowMove:A==null?void 0:A.allowMove,viewport:A==null?void 0:A.viewport},onContentChange:m,onPageChange:p,onRowClick:v,onRouteUrl:y,parentTableId:A==null?void 0:A.tableId,allMapContents:l.allMapContents,children:A==null?void 0:A.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)])}}}),rh=ql._export_sfc(lh,[["__scopeId","data-v-ded4e0d9"]]),nh={class:"type-select"},oh=["onClick"],ih={class:"list-icon"},th={__name:"modelSelect",setup(l){const r=Yn($.pinia),{itemData:n}=$.storeToRefs(r),o=s=>{const c=$.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",nh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Gc),(p,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>o(p)},[a.createElementVNode("div",ih,[a.createVNode(m,{name:p.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(p.name),1)],8,oh)]))),128))])}}},sh=ql._export_sfc(th,[["__scopeId","data-v-91799bf8"]]),ch={class:"fill-content"},uh={class:"operate-content"},dh={class:"collapse-title-content"},ph={class:"collapse-title-item"},fh={key:1},hh=["onClick"],vh={class:"icon-content"},mh={key:0,class:"edit-content"},yh=["onClick"],gh={class:"comp-child"},bh={__name:"modelFill",setup(l){const r=Yn($.pinia),{itemData:n,originalData:o}=$.storeToRefs(r),s=a.ref([]);a.ref([]);const c=a.ref([]),m=a.ref([]),p=B=>{var V;let w=(V=$.cloneDeep(m.value))==null?void 0:V.map((A,N)=>(B===N&&(A.content=!0),A));m.value=w},v=B=>{var V;let w=(V=$.cloneDeep(m.value))==null?void 0:V.map((A,N)=>(B===N&&(A.content=!1),A));m.value=w,s.value=$.cloneDeep(n.value)},y=(B,w)=>{var Y;let V=(Y=$.cloneDeep(m.value))==null?void 0:Y.map((b,L)=>(B===L&&(b.content=!1),b));m.value=V;const A=$.cloneDeep(n.value),N=A==null?void 0:A.filter((b,L)=>(L===B&&(b.name=w),b));r.setOriginalData(N),r.setItemData(N)};a.watch(()=>n.value,()=>{var B,w,V;!n.value||((B=n.value)==null?void 0:B.length)===0?s.value=[]:s.value=(w=$.cloneDeep(n.value))==null?void 0:w.filter(A=>(A==null?void 0:A.comp)!=="methodButton"),c.value=s.value,m.value=(V=$.cloneDeep(c.value))==null?void 0:V.map((A,N)=>({id:N,content:!1}))},{deep:!0,immediate:!0});const u=B=>Bo(B),x=(B,w,V)=>{var N,Y;if(!B)return;let A=$.cloneDeep(n.value);A=(N=A==null?void 0:A.map((b,L)=>(L===V&&(b.compData=B),b)))==null?void 0:N.filter(b=>(b==null?void 0:b.comp)!=="methodButton"),m.value=(Y=$.cloneDeep(A))==null?void 0:Y.map((b,L)=>({id:L,content:!1})),r.setOriginalData(A),r.setItemData(A)},C=B=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const w=$.cloneDeep(n.value),V=w==null?void 0:w.filter((A,N)=>N!==B);r.setOriginalData(V),r.setItemData(V),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(B,w)=>{const V=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",ch,[w[1]||(w[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",uh,[a.createVNode(Ks.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:A,index:N})=>{var Y,b,L,T,k,_,U,W,se,Ce;return[a.createElementVNode("div",dh,[a.createElementVNode("div",ph,[(b=(Y=m.value)==null?void 0:Y.find(Ie=>Ie.id===N))!=null&&b.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:A.name&&A.name!==""?"8px":"0px"})},a.toDisplayString(A.name),5)),(T=(L=m.value)==null?void 0:L.find(Ie=>Ie.id===N))!=null&&T.content?(a.openBlock(),a.createElementBlock("div",fh,[a.createVNode(pl.ssInput,{modelValue:A.name,"onUpdate:modelValue":Ie=>A.name=Ie,onClick:w[0]||(w[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(_=(k=m.value)==null?void 0:k.find(Ie=>Ie.id===N))!=null&&_.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(Ie=>p(N),["stop"]),class:"icon-content"},[a.createVNode(V,{name:"Edit",style:{width:"16px",height:"16px"}})],8,hh))]),a.createElementVNode("div",vh,[(W=(U=m.value)==null?void 0:U.find(Ie=>Ie.id===N))!=null&&W.content?(a.openBlock(),a.createElementBlock("div",mh,[a.createVNode(V,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Ie=>v(N),["stop"])},null,8,["onClick"]),a.createVNode(V,{name:"Save",onClick:a.withModifiers(Ie=>y(N,A.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(Ce=(se=m.value)==null?void 0:se.find(Ie=>Ie.id===N))!=null&&Ce.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(Ie=>C(N),["stop"]),class:"icon-content"},[a.createVNode(V,{name:"Delete",style:{width:"16px",height:"16px"}})],8,yh))])])]}),content:a.withCtx(({item:A,index:N})=>{var Y,b;return[a.createElementVNode("div",gh,[a.createTextVNode(a.toDisplayString(u(A.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(A.comp+"Operate")),{itemContents:A==null?void 0:A.compData,originalItemContents:(b=(Y=c.value)==null?void 0:Y.find((L,T)=>T===N))==null?void 0:b.compData,onChange:L=>x(L,A,N)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},kh=ql._export_sfc(bh,[["__scopeId","data-v-a46a44b9"]]),xh={key:0,class:"show-content"},_h={style:{display:"flex"}},wh={__name:"modelShow",setup(l){const r=Yn($.pinia),{itemData:n}=$.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=$.cloneDeep(n.value)},{deep:!0,immediate:!0});const s=c=>Bo(c);return(c,m)=>{var p;return((p=o.value)==null?void 0:p.length)>0?(a.openBlock(),a.createElementBlock("div",xh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",_h,a.toDisplayString(v.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},Ch=ql._export_sfc(wh,[["__scopeId","data-v-3f3e863e"]]),Sh={class:"tabs-header"},Eh={class:"tabs-list"},Dh={class:"tab-name"},Nh={class:"tab-actions"},Bh=["onClick"],Th=["onClick"],Ah=["onClick"],zh={class:"model-operate"},Mh={class:"model-select",style:{display:"unset"}},Oh={class:"existing-components"},Ih={class:"component-list"},Lh=["onClick"],$h={class:"component-info"},Rh={class:"component-type"},Vh={class:"component-name"},Ph={class:"model-fill"},Fh={__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(""),p=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),u=a.ref(-1),x=a.ref(new WeakMap),C=a.ref(null),B=Yn($.pinia),{itemData:w}=$.storeToRefs(B),V=()=>{m.value="新增标签页",p.value.title="",v.value=-1,c.value=!0},A=re=>{m.value="修改标签页",p.value.title=s.value[re].title,v.value=re,c.value=!0},N=re=>{const E=L(re);x.value.delete(E),s.value.splice(re,1),za()},Y=()=>{if(p.value.title.trim()){if(v.value===-1){const re={title:p.value.title,value:p.value.title,label:p.value.title,children:[],id:b()};s.value.push(re)}else s.value[v.value].title=p.value.title,s.value[v.value].value=p.value.title,s.value[v.value].label=p.value.title;c.value=!1,za()}},b=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,L=re=>{const E=s.value[re];return E.id||(E.id=b()),E.id},T=re=>{var me;u.value=re;const E=L(re);C.value=$.cloneDeep(w.value);let ae=x.value.get(E);!ae&&((me=s.value[re].children)==null?void 0:me.length)>0&&(ae=W(s.value[re].children)),ae?B.setItemData($.cloneDeep(ae)):B.setItemData([]),y.value=!0},k=a.computed(()=>{const re=$.useModelComp($.pinia),E=$.storeToRefs(re).itemData.value;return console.log("可用组件数据",E),!E||!Array.isArray(E)?[]:E.filter(ae=>{var me;if(ae.comp==="Tabs"&&u.value>=0){const ce=L(u.value);if((me=ae.compData)==null?void 0:me.some(va=>{var Sa;return va.key==="stepList"&&((Sa=va.contents)==null?void 0:Sa.some(Wa=>Wa.id===ce))}))return!1}return!0})}),_=re=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[re]||re,U=re=>{var E;try{const ae=$.cloneDeep(re);ae.id=Date.now()+Math.random(),ae.comp==="Tabs"&&((E=ae.compData)==null||E.forEach(ce=>{ce.key==="stepList"&&ce.contents&&ce.contents.forEach(Ne=>{Ne.id=b()})}));const me=$.cloneDeep(w.value);me.push(ae),B.setItemData(me)}catch(ae){console.error("添加组件失败:",ae)}},W=re=>re.map(E=>{var ae;switch(E.type){case"form":return{comp:"Form",name:E.value||"表单",compData:se(E.content)};case"table":return{comp:"Table",name:E.value||"表格",compData:Ce(E.content)};default:return{comp:"Unknown",name:E.value||"",compData:((ae=E.content)==null?void 0:ae.originalData)||[]}}}),se=re=>{if(!re)return[];const E=[];return re.rowContents&&E.push({key:"formContent",contents:re.rowContents}),re.buttonValue&&E.push({key:"formButton",contents:re.buttonValue}),typeof re.isEnableWrap<"u"&&E.push({key:"enableWrap",contents:re.isEnableWrap}),E},Ce=re=>[],Ie=()=>{if(u.value>=0&&u.value<s.value.length){const re=L(u.value);x.value.set(re,$.cloneDeep(w.value)),s.value[u.value].children=we(w.value),console.log("保存后的数据",we(w.value))}y.value=!1,u.value=-1,C.value=null,za()},De=()=>{C.value&&B.setItemData($.cloneDeep(C.value)),y.value=!1,u.value=-1,C.value=null},le=()=>{y.value&&De()},we=re=>{if(!Array.isArray(re))throw new Error("sourceData must be an array");return re.map((E,ae)=>{if(!E||typeof E!="object")return E;const{comp:me,name:ce,compData:Ne}=E;switch(me){case"Form":return{type:"form",content:X(Ne||[]),value:"表单"};case"Table":return{type:"table",content:ue(Ne||[]),value:"表格"};default:return{type:"xxx",content:Ge(Ne||[]),value:""}}})},X=re=>{const E={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},ae={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return re.forEach((me,ce)=>{if(!me||typeof me!="object"){console.warn(`Invalid config at index ${ce}:`,me);return}const{key:Ne,contents:va}=me,Sa=ae[Ne];if(!Sa){console.warn(`Unknown Form config key: ${Ne}`);return}Ne==="enableWrap"?E[Sa]=!!va:E[Sa]=Array.isArray(va)?va:[]}),E},ue=re=>{const E={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},ae={header:"columns",tableContents:"tableData"};return re.forEach((me,ce)=>{if(!me||typeof me!="object"){console.warn(`Invalid config at index ${ce}:`,me);return}const{key:Ne,contents:va}=me,Sa=ae[Ne];if(!Sa){console.warn(`Unknown Table config key: ${Ne}`);return}E[Sa]=Array.isArray(va)?va:[]}),E},Ge=re=>(console.log("Default conversion logic - to be implemented"),{originalData:re,processed:!1,componentType:"unknown"}),za=()=>{const re=[{key:"stepList",contents:s.value}];o("change",re)};return a.watch(()=>n.itemContents,re=>{if(re&&re.length>0){const E=re.find(ae=>ae.key==="stepList");E&&E.contents&&(s.value=E.contents.map(ae=>({title:ae.title||"",value:ae.value||ae.title||"",label:ae.label||ae.title||"",children:ae.children||[],id:ae.id||b()})))}},{immediate:!0,deep:!0}),(re,E)=>{const ae=a.resolveComponent("svg-icon"),me=a.resolveComponent("el-input"),ce=a.resolveComponent("el-form-item"),Ne=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Sh,[E[6]||(E[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:V},[a.createVNode(ae,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),E[5]||(E[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",Eh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(va,Sa)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:Sa},[a.createElementVNode("span",Dh,a.toDisplayString(va.title),1),a.createElementVNode("div",Nh,[a.createElementVNode("button",{onClick:Wa=>A(Sa)},"修改标题",8,Bh),a.createElementVNode("button",{onClick:Wa=>T(Sa)},"布局调整",8,Th),a.createElementVNode("button",{onClick:Wa=>N(Sa)},"删除",8,Ah)])]))),128))]),a.createVNode(vr.ssDialog,{modelValue:c.value,"onUpdate:modelValue":E[2]||(E[2]=va=>c.value=va),title:m.value,onBeforeDestroy:E[3]||(E[3]=va=>c.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:E[1]||(E[1]=va=>c.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:Y},"确定")]),default:a.withCtx(()=>[a.createVNode(Ne,{model:p.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(ce,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(me,{modelValue:p.value.title,"onUpdate:modelValue":E[0]||(E[0]=va=>p.value.title=va),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(vr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":E[4]||(E[4]=va=>y.value=va),title:"布局调整",fullScreen:"",onBeforeDestroy:le},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:De},"取消"),a.createElementVNode("button",{onClick:Ie},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",zh,[a.createElementVNode("div",Mh,[a.createVNode(sh),a.createElementVNode("div",Oh,[E[8]||(E[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",Ih,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,va=>(a.openBlock(),a.createElementBlock("div",{key:va.id,class:"component-item",onClick:Sa=>U(va)},[a.createElementVNode("div",$h,[a.createElementVNode("span",Rh,a.toDisplayString(_(va.comp)),1),a.createElementVNode("span",Vh,a.toDisplayString(va.name),1)]),E[7]||(E[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Lh))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:re.innerWidth},[a.createVNode(Ch)])),a.createElementVNode("div",Ph,[a.createVNode(kh)])])]),_:1},8,["modelValue"])])}}},jh=ql._export_sfc(Fh,[["__scopeId","data-v-9096ed0d"]]);function Hh(){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 Uh(l){return{type:"line",...l}}function qh(){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 Wh(l){return{type:"bar",barWidth:"60%",...l}}function Kh(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function Yh(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Ln={line:{initBaseoptions:Hh,initSeries:Uh},bar:{initBaseoptions:qh,initSeries:Wh},pie:{initBaseoptions:Kh,initSeries:Yh}},bs=$.useMenuState($.pinia),Nc=(l,r)=>{var u;const n=[],o=[],{group:s,nameCol:c,valueCol:m}=r||{},p=l==null?void 0:l.find(x=>{const{name:C}=x;return C===s});if(!p)return{names:n,values:o};const v=(u=p==null?void 0:p.compData)==null?void 0:u.find(x=>{const{key:C}=x;return C==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(x=>{const C=x==null?void 0:x[0];let B=!1;ol.isObject(C)&&(C!=null&&C.id)&&(B=!0);let w=c,V=m;B&&(w=w+1,V=V+1);const A=x==null?void 0:x[w],N=x==null?void 0:x[V];n.push(A),o.push(N)}),{names:n,values:o}},Gh=async l=>{const{menu:r,mainKey:n,detailGroup:o,detailNameCol:s,detailValueCol:c,isSelfDetail:m}=l||{};let p=null;const v=sessionStorage.getItem("systemKey");if(m&&bs.activeMenuPath&&(p=await pa.getItemData(`${bs.activeMenuPath}`,v,"")),!m){const y=r==null?void 0:r.join("/");p=await pa.getItemData(`${y}^${n}`,v,"")}return Nc(p,{group:o,nameCol:s,valueCol:c})},Jh=async l=>{const{menu:r,group:n,nameCol:o,valueCol:s}=l||{},c=r==null?void 0:r.join("/"),m=sessionStorage.getItem("systemKey"),p=await pa.getItemData(c,m,"");return Nc(p,{group:n,nameCol:o,valueCol:s})},Dt=async(l,r)=>{const n={names:[],values:[]},{menu:o,group:s,nameCol:c,valueCol:m}=l||{};if(!o.length||!s)return n;const{mainKey:p,group:v,nameCol:y,valueCol:u,isSelfDetail:x}=r||{};return p&&v&&pl.isNumber(y)&&pl.isNumber(u)?await Gh({menu:o,mainKey:p,detailGroup:v,detailNameCol:y,detailValueCol:u,isSelfDetail:x}):pl.isNumber(c)&&pl.isNumber(m)?await Jh({menu:o,group:s,nameCol:c,valueCol:m}):n},Xh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:o,title:s}=l||{},c=Ln==null?void 0:Ln[o];if(!c)return;const{initBaseoptions:m,initSeries:p}=c,v=m();v.title.text=s??"";const{names:y,values:u}=await Dt(r,n);if(!y||!u)return v;v.xAxis.data=y;const x=p({data:u});return v.series.push(x),v},Zh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:o,title:s}=l||{},c=Ln==null?void 0:Ln[o];if(!c)return;const{initBaseoptions:m,initSeries:p}=c,v=m();v.title.text=s??"";const{names:y,values:u}=await Dt(r,n);if(!y||!u)return v;v.xAxis.data=y;const x=p({data:u});return v.series.push(x),v},Qh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:o,title:s}=l||{},c=Ln==null?void 0:Ln[o];if(!c)return;const{initBaseoptions:m,initSeries:p}=c,v=m();v.title.text=s??"";const{names:y,values:u}=await Dt(r,n);if(!y||!u)return v;const x=[];for(let B=0;B<y.length;B++){const w=y[B],V=u[B];x.push({name:w,value:V})}const C=p({data:x});return v.series.push(C),v},e4=async(l=[])=>{var m,p,v;const r=((m=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:m.contents)??{},n=((p=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:p.contents)??{},o=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=r;let c={};return s==="line"&&(c=await Xh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:o})),s==="bar"&&(c=await Zh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:o})),s==="pie"&&(c=await Qh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:o})),c},a4=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 e4(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(wu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),l4=ql._export_sfc(a4,[["__scopeId","data-v-d4c081e8"]]),r4={class:"chart-module layout"},n4={class:"chart-module content"},o4={class:"chart-module content"},i4={class:"form-content"},t4={class:"dialog-footer"},s4={class:"form-content"},c4={class:"dialog-footer"},u4={class:"form-content"},d4={class:"dialog-footer"},p4=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:""}],p=a.ref({}),v=()=>{var He;c.value=m(),(He=c.value)==null||He.forEach(Te=>{var Je;const Re=Te==null?void 0:Te.prop;Te.value=(Je=p==null?void 0:p.value)==null?void 0:Je[Re]}),s.visible=!0},y=He=>{p.value=He},u=()=>{var He;s.visible=!1,o("change",(He=Ve())==null?void 0:He.compData)},x=a.reactive({visible:!1,width:"840",title:"数据配置"}),C=a.ref([]),B=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],w=a.ref({}),V=()=>{const He=C.value,Te=$.cloneDeep(He);return Te==null||Te.forEach(Re=>{var Ja;const Je=Re==null?void 0:Re.prop;Re.value=(Ja=w.value)==null?void 0:Ja[Je]}),Te},A=He=>{var Re;w.value=He;const Te=V();C.value=Te,o("change",(Re=Ve())==null?void 0:Re.compData)},N=async()=>{const He=await pa.getMenusContent(),Te=V();Te==null||Te.forEach(Re=>{(Re==null?void 0:Re.prop)==="menu"&&(Re.contents=He)}),C.value=Te,x.visible=!0,await va(w.value.menu),await Q(w.value.group)},Y=a.reactive({visible:!1,width:"840",title:"详情页配置"}),b=a.ref([]),L=()=>[{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:[]}],T=a.ref({}),k=()=>{const He=b.value,Te=$.cloneDeep(He);return Te==null||Te.forEach(Re=>{var Ja;const Je=Re==null?void 0:Re.prop;Re.value=(Ja=T.value)==null?void 0:Ja[Je]}),Te},_=He=>{var Re;T.value=He;const Te=k();b.value=Te,o("change",(Re=Ve())==null?void 0:Re.compData)},U=async()=>{await le();const He=$.cloneDeep(W.value),Te=k();Te==null||Te.forEach(Re=>{var Ja;const Je=Re==null?void 0:Re.prop;Re.value=(Ja=T==null?void 0:T.value)==null?void 0:Ja[Je],Je==="mainKey"&&(Re.contents=He)}),b.value=Te,Y.visible=!0},W=a.ref([]),se=a.ref([]),Ce=a.ref({}),Ie=a.ref({}),De=()=>{const{compData:He}=me.value||{},Te=He==null?void 0:He.find(J=>{const{key:ne}=J;return ne==="header"}),Re=(Te==null?void 0:Te.contents)||[],Je=Re==null?void 0:Re.filter((J,ne)=>{const{label:te}=J;return te!=="操作"}),Ja=Je==null?void 0:Je.findIndex((J,ne)=>{const{isMainKey:te}=J;return te});if(Ja<0)return[];const Fa=He==null?void 0:He.find(J=>{const{key:ne}=J;return ne==="tableContents"}),P=(Fa==null?void 0:Fa.contents)||[];return P==null?void 0:P.map(J=>{const ne=J==null?void 0:J[0];let te=Ja;ol.isObject(ne)&&(ne!=null&&ne.id)&&(te=te+1);const ga=J==null?void 0:J[te];return{label:ga,value:ga}})},le=async()=>{const He=await De();W.value=He},we=async He=>{const Te=sessionStorage.getItem("systemKey");return await pa.getItemData(He,Te,"")},X=async He=>{const Te=He;se.value=Te==null?void 0:Te.map(Re=>{const{name:Je}=Re;return Ce.value[Je]=Re,{label:Je,value:Je}})},ue=He=>{const{comp:Te,compData:Re}=Ie.value||{};if(Te==="Table"){let Je=k();Je=Je.filter(Ja=>{const{prop:Fa}=Ja;return Fa!=="formItems"}),Sa(Je,Re),b.value=Je}},Ge=async()=>{var Re,Je;const He=(Re=T==null?void 0:T.value)==null?void 0:Re.mainKey,Te=(Je=w==null?void 0:w.value)==null?void 0:Je.menu;if(He){const Fa=`${Te==null?void 0:Te.join("/")}^${He}`,P=await we(Fa);await X(P);const F=k();F==null||F.forEach(J=>{(J==null?void 0:J.prop)==="group"&&(J.contents=se.value)}),b.value=F}};a.watch(()=>{var He;return(He=T==null?void 0:T.value)==null?void 0:He.mainKey},async(He,Te)=>{He!=Te&&He&&await Ge()});const za=async He=>{const Te=Ce.value[He];Ie.value=Te,await ue()};a.watch(()=>{var He;return(He=T==null?void 0:T.value)==null?void 0:He.group},async(He,Te)=>{He!=Te&&He&&za(He)});const re=async()=>{var Te;await Ge();const He=(Te=T.value)==null?void 0:Te.group;await za(He)},E=a.ref([]),ae=a.ref({}),me=a.ref({}),ce=async He=>{const Te=He==null?void 0:He.join("/"),Re=sessionStorage.getItem("systemKey");return await pa.getItemData(Te,Re,"")},Ne=async He=>{const Te=await ce(He);E.value=Te==null?void 0:Te.map(Re=>{const{name:Je}=Re;return ae.value[Je]=Re,{label:Je,value:Je}})},va=async(He,Te)=>{await Ne(He);const Re=V();Re==null||Re.forEach(Je=>{(Je==null?void 0:Je.prop)==="group"&&(Je.contents=E.value)}),C.value=Re};a.watch(()=>{var He;return(He=w==null?void 0:w.value)==null?void 0:He.menu},async(He,Te)=>{const Re=He==null?void 0:He.join("/"),Je=Te==null?void 0:Te.join("/");Re!=Je&&await va(He)});const Sa=(He,Te)=>{const Re=Te==null?void 0:Te.find(P=>{const{key:F}=P;return F==="header"}),Je=(Re==null?void 0:Re.contents)||[],Ja=Je==null?void 0:Je.filter((P,F)=>{const{label:J}=P;return J!=="操作"}),Fa=Ja==null?void 0:Ja.map((P,F)=>{const{label:J}=P;return{label:J,value:F}});He==null||He.forEach(P=>{const F=P==null?void 0:P.prop;(F==="nameCol"||F==="valueCol")&&(P.contents=Fa)})},Wa=He=>{const{comp:Te,compData:Re}=me.value||{};if(Te==="Table"){w.value.formItems=[];let Je=V();Je=Je.filter(Ja=>{const{prop:Fa}=Ja;return Fa!=="formItems"}),Sa(Je,Re),C.value=Je}},Q=async He=>{const Te=ae.value[He];me.value=Te,await Wa()};a.watch(()=>{var He;return(He=w==null?void 0:w.value)==null?void 0:He.group},async(He,Te)=>{He!=Te&&Q(He)});const na=async()=>{var Re,Je;const He=(Re=w.value)==null?void 0:Re.menu;await va(He);const Te=(Je=w.value)==null?void 0:Je.group;await Q(Te)},Ve=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:p.value},{key:"chartDataConfig",contents:w.value},{key:"chartDetailConfig",contents:T.value}]}),xa=()=>{s.visible=!1,x.visible=!1,Y.visible=!1};return a.onMounted(async()=>{var Te,Re,Je;C.value=B(),b.value=L();const He=n==null?void 0:n.itemContents;p.value=((Te=He==null?void 0:He.find(Ja=>Ja.key==="chartBaseConfig"))==null?void 0:Te.contents)??{},w.value=((Re=He==null?void 0:He.find(Ja=>Ja.key==="chartDataConfig"))==null?void 0:Re.contents)??{},await na(),T.value=((Je=He==null?void 0:He.find(Ja=>Ja.key==="chartDetailConfig"))==null?void 0:Je.contents)??{},await re()}),(He,Te)=>{const Re=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",r4,[Te[4]||(Te[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Te[0]||(Te[0]=Je=>v())},{default:a.withCtx(()=>Te[3]||(Te[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",n4,[Te[6]||(Te[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Te[1]||(Te[1]=Je=>N())},{default:a.withCtx(()=>Te[5]||(Te[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",o4,[Te[8]||(Te[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Te[2]||(Te[2]=Je=>U())},{default:a.withCtx(()=>Te[7]||(Te[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:xa,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",i4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",t4,[a.createVNode(Re,{class:"cancel-button button",onClick:xa,id:"themeBorderButton"},{default:a.withCtx(()=>Te[9]||(Te[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode(Re,{class:"ok-button button",onClick:u,id:"themeButton"},{default:a.withCtx(()=>Te[10]||(Te[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:x.visible,title:x.title,onBeforeDestroy:xa,width:x.width},{default:a.withCtx(()=>[a.createElementVNode("div",s4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:A},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",c4,[a.createVNode(Re,{class:"cancel-button button",onClick:xa,id:"themeBorderButton"},{default:a.withCtx(()=>Te[11]||(Te[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(Re,{class:"ok-button button",onClick:xa,id:"themeButton"},{default:a.withCtx(()=>Te[12]||(Te[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:Y.visible,title:Y.title,onBeforeDestroy:xa,width:Y.width},{default:a.withCtx(()=>[a.createElementVNode("div",u4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",d4,[a.createVNode(Re,{class:"cancel-button button",onClick:xa,id:"themeBorderButton"},{default:a.withCtx(()=>Te[13]||(Te[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(Re,{class:"ok-button button",onClick:xa,id:"themeButton"},{default:a.withCtx(()=>Te[14]||(Te[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),f4=ql._export_sfc(p4,[["__scopeId","data-v-fe119645"]]),h4={class:"layout"},v4=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(()=>$.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:C}=x;return C==="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:C}=x;return C==="children"});return y==null?void 0:y.contents}),p=a.computed(()=>{let y=$.cloneDeep(m.value)||[];const u=y.length;let x=0;const C=[];if(y=y.map(B=>{const w=B.span;return w?(B.span=Number(w),x=x+B.span):C.push(B),B}),x<24){const B=Math.floor((24-x)/u);C.forEach(w=>{w.span=B})}return y}),v=y=>{n("rowClick",y)};return(y,u)=>{var B;const x=a.resolveComponent("el-col"),C=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",h4,[a.createVNode(C,{style:a.normalizeStyle({height:(B=c.value)==null?void 0:B.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(w,V)=>(a.openBlock(),a.createBlock(x,{span:w==null?void 0:w.span},{default:a.withCtx(()=>{var A;return[a.unref(No)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(w.comp)),{key:a.unref(Kn),compName:w.name,index:(w==null?void 0:w.id)??V,height:(A=c.value)==null?void 0:A.height,itemData:w==null?void 0:w.compData,childItemData:w==null?void 0:w.itemChildData,onChange:a.unref(Di),onContentChange:a.unref(Ni),onPageChange:a.unref(Bi),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),m4=ql._export_sfc(v4,[["__scopeId","data-v-ab9a36ed"]]),y4={class:"layout-operate"},g4={class:"layout-module"},b4={class:"collapse-title-item"},k4={class:"collapse-title"},x4={class:"icon-content"},_4=["onClick"],w4={class:"comp-child"},C4=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(()=>{V()});const s=a.ref({}),c=a.ref({}),m=a.ref([]),p=T=>[{label:"高度",prop:"height",type:"input",value:T==null?void 0:T.height}],v=T=>{c.value=T,o("change",L(),!0)},y=a.ref([]),u=a.ref([]),x=T=>[{label:"占比",prop:"span",type:"input",value:T==null?void 0:T.span}],C=a.computed(()=>{const T=n==null?void 0:n.itemContents;return $.cloneDeep(T)}),B=a.computed(()=>{const T=C==null?void 0:C.value,k=T==null?void 0:T.find(_=>{const{key:U}=_;return U==="baseConfig"});return k==null?void 0:k.contents}),w=a.computed(()=>{const T=C==null?void 0:C.value,k=T==null?void 0:T.find(_=>{const{key:U}=_;return U==="children"});return k==null?void 0:k.contents}),V=()=>{var T;s.value=C.value||{},y.value=(w==null?void 0:w.value)||[],m.value=p(),m.value=(T=m.value)==null?void 0:T.map(k=>{var U;const{prop:_}=k;return k.value=(U=B.value)==null?void 0:U[_],k})};a.watch(()=>{var T;return(T=w==null?void 0:w.value)==null?void 0:T.length},()=>{var T;y.value=(w==null?void 0:w.value)||[],u.value=(T=w.value)==null?void 0:T.map(k=>x(k))},{immediate:!0});const A=(T,k)=>{const _=$.cloneDeep(w==null?void 0:w.value);_[k].span=T.span,y.value=_,o("change",L(),!0)},N=T=>Bo(T),Y=(T,k,_)=>{if(!T)return;const U=$.cloneDeep(w==null?void 0:w.value);U[_]&&(U[_].compData=T,y.value=U,o("change",L(),!0))},b=T=>{nn.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let k=$.cloneDeep(w==null?void 0:w.value);k=k==null?void 0:k.filter((_,U)=>T!==U),y.value=k,o("change",L(),!0),ol.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},L=()=>({compData:[{key:"baseConfig",contents:c.value},{key:"children",contents:y==null?void 0:y.value}]});return(T,k)=>{const _=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",y4,[a.createElementVNode("div",g4,[k[1]||(k[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(pl.ssForm,{rowContents:m.value,isEnableWrap:!0,onChange:k[0]||(k[0]=U=>v(U))},null,8,["rowContents"])])]),a.createVNode(Ks.default,{class:"collapse-content",collapseContents:w.value},{title:a.withCtx(({item:U,index:W})=>[a.createElementVNode("div",b4,[a.createElementVNode("div",k4,a.toDisplayString(U.name),1),a.createElementVNode("div",x4,[a.createElementVNode("div",{onClick:a.withModifiers(se=>b(W),["stop"]),class:"icon-content"},[a.createVNode(_,{name:"Delete",style:{width:"16px",height:"16px"}})],8,_4)])])]),content:a.withCtx(({item:U,index:W})=>[a.createElementVNode("div",w4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:u.value[W],key:W,isEnableWrap:!0,onChange:se=>A(se,W)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(N(U.comp+"Operate")),{itemContents:U==null?void 0:U.compData,originalItemContents:U.compData,onChange:se=>Y(se,U,W)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),S4=ql._export_sfc(C4,[["__scopeId","data-v-ba05456e"]]),E4=typeof window<"u";var ks;E4&&((ks=window==null?void 0:window.navigator)!=null&&ks.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rn(l){return l==null}function Bc(){}const D4=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(D4)));function N4(){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 xs(l,r=16){if(typeof l!="function")return Bc;const n=(...c)=>{l(...c)};if(r<=0)return Tc(n);let o=0,s;return function(...c){const m=Date.now(),p=m-o;clearTimeout(s),p>=r?(o=m,n(...c)):s=setTimeout(()=>{o=Date.now(),n(...c)},Math.max(0,r-p))}}function B4(l,r=100){if(typeof l!="function")return Bc;const n=(...s)=>{l(...s)};if(r<=0)return Tc(n);let o;return function(...s){clearTimeout(o),o=setTimeout(()=>{n(...s)},r)}}function Tc(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 Po=new Set,Ac=new WeakMap;function T4(){Po.forEach(l=>{l(...Ac.get(l))}),Po.clear()}function jr(l,...r){if(typeof l!="function")return l;Ac.set(l,r),!Po.has(l)&&(Po.add(l),Po.size===1&&Promise.resolve().then(T4))}const zc=Symbol("LAYOUT_KEY"),Mc=Symbol("EMITTER_KEY");function A4(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 kt(l){const r=Array(l.length);for(let n=0,o=l.length;n<o;n++)r[n]=z4(l[n]);return r}function z4(l){return{...l}}function Oc(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 _o(l,r,n){const o=Lc(l),s=$c(l),c=Array(l.length);for(let m=0,p=s.length;m<p;m++){let v=s[m];v.static||(v=M4(o,v,r,n),o.push(v)),c[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return c}function M4(l,r,n,o){if(n)for(;r.y>0&&!Fo(l,r);)r.y--;else if(o){const c=o[r.i].y;for(;r.y>c&&!Fo(l,r);)r.y--}let s;for(;s=Fo(l,r);)r.y=s.y+s.h;return r}function O4(l,r){const n=Lc(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(;Fo(n,c);)c.y++}return l}function _s(l,r){for(let n=0,o=l.length;n<o;n++)if(l[n].i===r)return l[n]}function Fo(l,r){for(let n=0,o=l.length;n<o;n++)if(Oc(l[n],r))return l[n]}function Ic(l,r){return l.filter(n=>Oc(n,r))}function Lc(l){return l.filter(r=>r.static)}function xt(l,r,n,o,s=!1,c=!1){if(r.static)return l;const m=r.x,p=r.y,v=o&&r.y>o;typeof n=="number"&&(r.x=n),typeof o=="number"&&(r.y=o),r.moved=!0;let y=$c(l);v&&(y=y.reverse());const u=Ic(y,r);if(c&&u.length)return r.x=m,r.y=p,r.moved=!1,l;for(let x=0,C=u.length;x<C;x++){const B=u[x];B.moved||r.y>B.y&&r.y-B.y>B.h/4||(B.static?l=ws(l,B,r,s):l=ws(l,r,B,s))}return l}function ws(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),!Fo(l,s))return xt(l,n,void 0,s.y,!1)}return xt(l,n,void 0,n.y+1,!1)}function I4(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 L4(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 $4(l,r,n,o){return{top:l+"px",left:r+"px",width:n+"px",height:o+"px",position:"absolute"}}function R4(l,r,n,o){return{top:l+"px",right:r+"px",width:n+"px",height:o+"px",position:"absolute"}}function $c(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 V4(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 p=0;p<n.length;p++)if(typeof m[n[p]]!="number")throw new Error("VueGridLayout: "+r+"["+s+"]."+n[p]+" 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 P4(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 Cs(l){return F4(l)}function F4(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 Ss(l,r,n,o){return j4(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 j4(l){return typeof l=="number"&&!Number.isNaN(l)}function H4(l,r){const n=Vc(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 Rc(l,r){if(!r[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return r[l]}function U4(l,r,n,o,s,c,m){if(r[o])return kt(r[o]);let p=l;const v=Vc(n),y=v.slice(v.indexOf(o));for(let u=0,x=y.length;u<x;u++){const C=y[u];if(r[C]){p=r[C];break}}return p=kt(p||[]),_o(O4(p,{cols:c}),m)}function Vc(l){return Object.keys(l).sort((r,n)=>l[r]-l[n])}let q4="auto";function W4(){return typeof document<"u"}function Es(){return W4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):q4}var Ro={exports:{}},K4=Ro.exports,Ds;function Y4(){return Ds||(Ds=1,function(l,r){(function(n,o){l.exports=o()})(K4,function(){function n(t,i){var f=Object.keys(t);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(t);i&&(g=g.filter(function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable})),f.push.apply(f,g)}return f}function o(t){for(var i=1;i<arguments.length;i++){var f=arguments[i]!=null?arguments[i]:{};i%2?n(Object(f),!0).forEach(function(g){v(t,g,f[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(f)):n(Object(f)).forEach(function(g){Object.defineProperty(t,g,Object.getOwnPropertyDescriptor(f,g))})}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 f=0;f<i.length;f++){var g=i[f];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(t,V(g.key),g)}}function p(t,i,f){return i&&m(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t,i,f){return(i=V(i))in t?Object.defineProperty(t,i,{value:f,enumerable:!0,configurable:!0,writable:!0}):t[i]=f,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(f,g){return f.__proto__=g,f},x(t,i)}function C(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(t){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var f,g=u(t);if(i){var S=u(this).constructor;f=Reflect.construct(g,arguments,S)}else f=g.apply(this,arguments);return function(I,H){if(H&&(typeof H=="object"||typeof H=="function"))return H;if(H!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(I)}(this,f)}}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,i,f){var g=function(I,H){for(;!Object.prototype.hasOwnProperty.call(I,H)&&(I=u(I))!==null;);return I}(t,i);if(g){var S=Object.getOwnPropertyDescriptor(g,i);return S.get?S.get.call(arguments.length<3?t:f):S.value}},w.apply(this,arguments)}function V(t){var i=function(f,g){if(typeof f!="object"||f===null)return f;var S=f[Symbol.toPrimitive];if(S!==void 0){var I=S.call(f,g);if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(t,"string");return typeof i=="symbol"?i:i+""}var A=function(t){return!(!t||!t.Window)&&t instanceof t.Window},N=void 0,Y=void 0;function b(t){N=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(i)===i&&(t=t.wrap(t)),Y=t}function L(t){return A(t)?t:(t.ownerDocument||t).defaultView||Y.window}typeof window<"u"&&window&&b(window);var T=function(t){return!!t&&s(t)==="object"},k=function(t){return typeof t=="function"},_={window:function(t){return t===Y||A(t)},docFrag:function(t){return T(t)&&t.nodeType===11},object:T,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=L(t)||Y;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 T(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return T(t)&&t.length!==void 0&&k(t.splice)}};function U(t){var i=t.interaction;if(i.prepared.name==="drag"){var f=i.prepared.axis;f==="x"?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):f==="y"&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function W(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="drag"){var g=f.prepared.axis;if(g==="x"||g==="y"){var S=g==="x"?"y":"x";i.page[S]=f.coords.start.page[S],i.client[S]=f.coords.start.client[S],i.delta[S]=0}}}var se={id:"actions/drag",install:function(t){var i=t.actions,f=t.Interactable,g=t.defaults;f.prototype.draggable=se.draggable,i.map.drag=se,i.methodDict.drag="draggable",g.actions.drag=se.defaults},listeners:{"interactions:before-action-move":U,"interactions:action-resume":U,"interactions:action-move":W,"auto-start:check":function(t){var i=t.interaction,f=t.interactable,g=t.buttons,S=f.options.drag;if(S&&S.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(g&f.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:S.lockAxis==="start"?S.startAxis:S.lockAxis},!1}},draggable:function(t){return _.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):_.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:U,move:W,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},Ce=se,Ie={init:function(t){var i=t;Ie.document=i.document,Ie.DocumentFragment=i.DocumentFragment||De,Ie.SVGElement=i.SVGElement||De,Ie.SVGSVGElement=i.SVGSVGElement||De,Ie.SVGElementInstance=i.SVGElementInstance||De,Ie.Element=i.Element||De,Ie.HTMLElement=i.HTMLElement||Ie.Element,Ie.Event=i.Event,Ie.Touch=i.Touch||De,Ie.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 De(){}var le=Ie,we={init:function(t){var i=le.Element,f=t.navigator||{};we.supportsTouch="ontouchstart"in t||_.func(t.DocumentTouch)&&le.document instanceof t.DocumentTouch,we.supportsPointerEvent=f.pointerEnabled!==!1&&!!le.PointerEvent,we.isIOS=/iP(hone|od|ad)/.test(f.platform),we.isIOS7=/iP(hone|od|ad)/.test(f.platform)&&/OS 7[^\d]/.test(f.appVersion),we.isIe9=/MSIE 9/.test(f.userAgent),we.isOperaMobile=f.appName==="Opera"&&we.supportsTouch&&/Presto/.test(f.userAgent),we.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",we.pEventTypes=we.supportsPointerEvent?le.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,we.wheelEvent=le.document&&"onmousewheel"in le.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},X=we;function ue(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function Ge(t,i){for(;_.element(t);){if(re(t,i))return t;t=za(t)}return null}function za(t){var i=t.parentNode;if(_.docFrag(i)){for(;(i=i.host)&&_.docFrag(i););return i}return i}function re(t,i){return Y!==N&&(i=i.replace(/\/deep\//g," ")),t[X.prefixedMatchesSelector](i)}var E=function(t){return t.parentNode||t.host};function ae(t,i){for(var f,g=[],S=t;(f=E(S))&&S!==i&&f!==S.ownerDocument;)g.unshift(S),S=f;return g}function me(t,i,f){for(;_.element(t);){if(re(t,i))return!0;if((t=za(t))===f)return re(t,i)}return!1}function ce(t){return t.correspondingUseElement||t}function Ne(t){var i=t instanceof le.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 va(t){var i,f=Ne(t);if(!X.isIOS7&&f){var g={x:(i=(i=L(t))||Y).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};f.left+=g.x,f.right+=g.x,f.top+=g.y,f.bottom+=g.y}return f}function Sa(t){for(var i=[];t;)i.push(t),t=za(t);return i}function Wa(t){return!!_.string(t)&&(le.document.querySelector(t),!0)}function Q(t,i){for(var f in i)t[f]=i[f];return t}function na(t,i,f){return t==="parent"?za(f):t==="self"?i.getRect(f):Ge(f,t)}function Ve(t,i,f,g){var S=t;return _.string(S)?S=na(S,i,f):_.func(S)&&(S=S.apply(void 0,g)),_.element(S)&&(S=va(S)),S}function xa(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function He(t){return!t||"x"in t&&"y"in t||((t=Q({},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 Te(t,i,f){t.left&&(i.left+=f.x),t.right&&(i.right+=f.x),t.top&&(i.top+=f.y),t.bottom&&(i.bottom+=f.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function Re(t,i,f){var g=f&&t.options[f];return xa(Ve(g&&g.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function Je(t,i){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(de){return!0},g=arguments.length>3?arguments[3]:void 0;if(g=g||{},_.string(t)&&t.search(" ")!==-1&&(t=Ja(t)),_.array(t))return t.forEach(function(de){return Je(de,i,f,g)}),g;if(_.object(t)&&(i=t,t=""),_.func(i)&&f(t))g[t]=g[t]||[],g[t].push(i);else if(_.array(i))for(var S=0,I=i;S<I.length;S++){var H=I[S];Je(t,H,f,g)}else if(_.object(i))for(var G in i)Je(Ja(G).map(function(de){return"".concat(t).concat(de)}),i[G],f,g);return g}function Ja(t){return t.trim().split(/ +/)}var Fa=function(t,i){return Math.sqrt(t*t+i*i)},P=["webkit","moz"];function F(t,i){t.__set||(t.__set={});var f=function(S){if(P.some(function(I){return S.indexOf(I)===0}))return 1;typeof t[S]!="function"&&S!=="__set"&&Object.defineProperty(t,S,{get:function(){return S in t.__set?t.__set[S]:t.__set[S]=i[S]},set:function(I){t.__set[S]=I},configurable:!0})};for(var g in i)f(g);return t}function J(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 ne(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function te(t){return t instanceof le.Event||t instanceof le.Touch}function ga(t,i,f){return t=t||"page",(f=f||{}).x=i[t+"X"],f.y=i[t+"Y"],f}function ta(t,i){return i=i||{x:0,y:0},X.isOperaMobile&&te(t)?(ga("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ga("page",t,i),i}function Oe(t){return _.number(t.pointerId)?t.pointerId:t.identifier}function _e(t,i,f){var g=i.length>1?he(i):i[0];ta(g,t.page),function(S,I){I=I||{},X.isOperaMobile&&te(S)?ga("screen",S,I):ga("client",S,I)}(g,t.client),t.timeStamp=f}function Da(t){var i=[];return _.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 he(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},f=0;f<t.length;f++){var g=t[f];for(var S in i)i[S]+=g[S]}for(var I in i)i[I]/=t.length;return i}function Qe(t){if(!t.length)return null;var i=Da(t),f=Math.min(i[0].pageX,i[1].pageX),g=Math.min(i[0].pageY,i[1].pageY),S=Math.max(i[0].pageX,i[1].pageX),I=Math.max(i[0].pageY,i[1].pageY);return{x:f,y:g,left:f,top:g,right:S,bottom:I,width:S-f,height:I-g}}function ra(t,i){var f=i+"X",g=i+"Y",S=Da(t),I=S[0][f]-S[1][f],H=S[0][g]-S[1][g];return Fa(I,H)}function Pe(t,i){var f=i+"X",g=i+"Y",S=Da(t),I=S[1][f]-S[0][f],H=S[1][g]-S[0][g];return 180*Math.atan2(H,I)/Math.PI}function _a(t){return _.string(t.pointerType)?t.pointerType:_.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof le.Touch?"touch":"mouse"}function Le(t){var i=_.func(t.composedPath)?t.composedPath():t.path;return[ce(i?i[0]:t.target),ce(t.currentTarget)]}var ya=function(){function t(i){c(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return p(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(ya.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Xe=function(t,i){for(var f=0;f<i.length;f++){var g=i[f];t.push(g)}return t},wa=function(t){return Xe([],t)},ve=function(t,i){for(var f=0;f<t.length;f++)if(i(t[f],f,t))return f;return-1},Ga=function(t,i){return t[ve(t,i)]},sa=function(t){y(f,t);var i=B(f);function f(g,S,I){var H;c(this,f),(H=i.call(this,S._interaction)).dropzone=void 0,H.dragEvent=void 0,H.relatedTarget=void 0,H.draggable=void 0,H.propagationStopped=!1,H.immediatePropagationStopped=!1;var G=I==="dragleave"?g.prev:g.cur,de=G.element,Me=G.dropzone;return H.type=I,H.target=de,H.currentTarget=de,H.dropzone=Me,H.dragEvent=S,H.relatedTarget=S.target,H.draggable=S.interactable,H.timeStamp=S.timeStamp,H}return p(f,[{key:"reject",value:function(){var g=this,S=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&S.cur.dropzone===this.dropzone&&S.cur.element===this.target)if(S.prev.dropzone=this.dropzone,S.prev.element=this.target,S.rejected=!0,S.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var I=S.activeDrops,H=ve(I,function(de){var Me=de.dropzone,ge=de.element;return Me===g.dropzone&&ge===g.target});S.activeDrops.splice(H,1);var G=new f(S,this.dragEvent,"dropdeactivate");G.dropzone=this.dropzone,G.target=this.target,this.dropzone.fire(G)}else this.dropzone.fire(new f(S,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}(ya);function Oa(t,i){for(var f=0,g=t.slice();f<g.length;f++){var S=g[f],I=S.dropzone,H=S.element;i.dropzone=I,i.target=H,I.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function qe(t,i){for(var f=function(I,H){for(var G=[],de=0,Me=I.interactables.list;de<Me.length;de++){var ge=Me[de];if(ge.options.drop.enabled){var aa=ge.options.drop.accept;if(!(_.element(aa)&&aa!==H||_.string(aa)&&!re(H,aa)||_.func(aa)&&!aa({dropzone:ge,draggableElement:H})))for(var La=0,tl=ge.getAllElements();La<tl.length;La++){var rl=tl[La];rl!==H&&G.push({dropzone:ge,element:rl,rect:ge.getRect(rl)})}}}return G}(t,i),g=0;g<f.length;g++){var S=f[g];S.rect=S.dropzone.getRect(S.element)}return f}function Ya(t,i,f){for(var g=t.dropState,S=t.interactable,I=t.element,H=[],G=0,de=g.activeDrops;G<de.length;G++){var Me=de[G],ge=Me.dropzone,aa=Me.element,La=Me.rect,tl=ge.dropCheck(i,f,S,I,aa,La);H.push(tl?aa:null)}var rl=function(cl){for(var Cl,ul,Bl,Ol=[],Yl=0;Yl<cl.length;Yl++){var Nl=cl[Yl],jl=cl[Cl];if(Nl&&Yl!==Cl)if(jl){var Ir=E(Nl),mr=E(jl);if(Ir!==Nl.ownerDocument)if(mr!==Nl.ownerDocument)if(Ir!==mr){Ol=Ol.length?Ol:ae(jl);var Fr=void 0;if(jl instanceof le.HTMLElement&&Nl instanceof le.SVGElement&&!(Nl instanceof le.SVGSVGElement)){if(Nl===mr)continue;Fr=Nl.ownerSVGElement}else Fr=Nl;for(var en=ae(Fr,jl.ownerDocument),sn=0;en[sn]&&en[sn]===Ol[sn];)sn++;var fo=[en[sn-1],en[sn],Ol[sn]];if(fo[0])for(var An=fo[0].lastChild;An;){if(An===fo[1]){Cl=Yl,Ol=en;break}if(An===fo[2])break;An=An.previousSibling}}else Bl=jl,(parseInt(L(ul=Nl).getComputedStyle(ul).zIndex,10)||0)>=(parseInt(L(Bl).getComputedStyle(Bl).zIndex,10)||0)&&(Cl=Yl);else Cl=Yl}else Cl=Yl}return Cl}(H);return g.activeDrops[rl]||null}function ba(t,i,f){var g=t.dropState,S={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return f.type==="dragstart"&&(S.activate=new sa(g,f,"dropactivate"),S.activate.target=null,S.activate.dropzone=null),f.type==="dragend"&&(S.deactivate=new sa(g,f,"dropdeactivate"),S.deactivate.target=null,S.deactivate.dropzone=null),g.rejected||(g.cur.element!==g.prev.element&&(g.prev.dropzone&&(S.leave=new sa(g,f,"dragleave"),f.dragLeave=S.leave.target=g.prev.element,f.prevDropzone=S.leave.dropzone=g.prev.dropzone),g.cur.dropzone&&(S.enter=new sa(g,f,"dragenter"),f.dragEnter=g.cur.element,f.dropzone=g.cur.dropzone)),f.type==="dragend"&&g.cur.dropzone&&(S.drop=new sa(g,f,"drop"),f.dropzone=g.cur.dropzone,f.relatedTarget=g.cur.element),f.type==="dragmove"&&g.cur.dropzone&&(S.move=new sa(g,f,"dropmove"),f.dropzone=g.cur.dropzone)),S}function oe(t,i){var f=t.dropState,g=f.activeDrops,S=f.cur,I=f.prev;i.leave&&I.dropzone.fire(i.leave),i.enter&&S.dropzone.fire(i.enter),i.move&&S.dropzone.fire(i.move),i.drop&&S.dropzone.fire(i.drop),i.deactivate&&Oa(g,i.deactivate),f.prev.dropzone=S.dropzone,f.prev.element=S.element}function Se(t,i){var f=t.interaction,g=t.iEvent,S=t.event;if(g.type==="dragmove"||g.type==="dragend"){var I=f.dropState;i.dynamicDrop&&(I.activeDrops=qe(i,f.element));var H=g,G=Ya(f,H,S);I.rejected=I.rejected&&!!G&&G.dropzone===I.cur.dropzone&&G.element===I.cur.element,I.cur.dropzone=G&&G.dropzone,I.cur.element=G&&G.element,I.events=ba(f,0,H)}}var Ue={id:"actions/drop",install:function(t){var i=t.actions,f=t.interactStatic,g=t.Interactable,S=t.defaults;t.usePlugin(Ce),g.prototype.dropzone=function(I){return function(H,G){if(_.object(G)){if(H.options.drop.enabled=G.enabled!==!1,G.listeners){var de=Je(G.listeners),Me=Object.keys(de).reduce(function(aa,La){return aa[/^(enter|leave)/.test(La)?"drag".concat(La):/^(activate|deactivate|move)/.test(La)?"drop".concat(La):La]=de[La],aa},{}),ge=H.options.drop.listeners;ge&&H.off(ge),H.on(Me),H.options.drop.listeners=Me}return _.func(G.ondrop)&&H.on("drop",G.ondrop),_.func(G.ondropactivate)&&H.on("dropactivate",G.ondropactivate),_.func(G.ondropdeactivate)&&H.on("dropdeactivate",G.ondropdeactivate),_.func(G.ondragenter)&&H.on("dragenter",G.ondragenter),_.func(G.ondragleave)&&H.on("dragleave",G.ondragleave),_.func(G.ondropmove)&&H.on("dropmove",G.ondropmove),/^(pointer|center)$/.test(G.overlap)?H.options.drop.overlap=G.overlap:_.number(G.overlap)&&(H.options.drop.overlap=Math.max(Math.min(1,G.overlap),0)),"accept"in G&&(H.options.drop.accept=G.accept),"checker"in G&&(H.options.drop.checker=G.checker),H}return _.bool(G)?(H.options.drop.enabled=G,H):H.options.drop}(this,I)},g.prototype.dropCheck=function(I,H,G,de,Me,ge){return function(aa,La,tl,rl,cl,Cl,ul){var Bl=!1;if(!(ul=ul||aa.getRect(Cl)))return!!aa.options.drop.checker&&aa.options.drop.checker(La,tl,Bl,aa,Cl,rl,cl);var Ol=aa.options.drop.overlap;if(Ol==="pointer"){var Yl=Re(rl,cl,"drag"),Nl=ta(La);Nl.x+=Yl.x,Nl.y+=Yl.y;var jl=Nl.x>ul.left&&Nl.x<ul.right,Ir=Nl.y>ul.top&&Nl.y<ul.bottom;Bl=jl&&Ir}var mr=rl.getRect(cl);if(mr&&Ol==="center"){var Fr=mr.left+mr.width/2,en=mr.top+mr.height/2;Bl=Fr>=ul.left&&Fr<=ul.right&&en>=ul.top&&en<=ul.bottom}return mr&&_.number(Ol)&&(Bl=Math.max(0,Math.min(ul.right,mr.right)-Math.max(ul.left,mr.left))*Math.max(0,Math.min(ul.bottom,mr.bottom)-Math.max(ul.top,mr.top))/(mr.width*mr.height)>=Ol),aa.options.drop.checker&&(Bl=aa.options.drop.checker(La,tl,Bl,aa,Cl,rl,cl)),Bl}(this,I,H,G,de,Me,ge)},f.dynamicDrop=function(I){return _.bool(I)?(t.dynamicDrop=I,f):t.dynamicDrop},Q(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,S.actions.drop=Ue.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;i.prepared.name==="drag"&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var f=t.interaction,g=(t.event,t.iEvent);if(f.prepared.name==="drag"){var S=f.dropState;S.activeDrops=[],S.events={},S.activeDrops=qe(i,f.element),S.events=ba(f,0,g),S.events.activate&&(Oa(S.activeDrops,S.events.activate),i.fire("actions/drop:start",{interaction:f,dragEvent:g}))}},"interactions:action-move":Se,"interactions:after-action-move":function(t,i){var f=t.interaction,g=t.iEvent;if(f.prepared.name==="drag"){var S=f.dropState;oe(f,S.events),i.fire("actions/drop:move",{interaction:f,dragEvent:g}),S.events={}}},"interactions:action-end":function(t,i){if(t.interaction.prepared.name==="drag"){var f=t.interaction,g=t.iEvent;Se(t,i),oe(f,f.dropState.events),i.fire("actions/drop:end",{interaction:f,dragEvent:g})}},"interactions:stop":function(t){var i=t.interaction;if(i.prepared.name==="drag"){var f=i.dropState;f&&(f.activeDrops=null,f.events=null,f.cur.dropzone=null,f.cur.element=null,f.prev.dropzone=null,f.prev.element=null,f.rejected=!1)}}},getActiveDrops:qe,getDrop:Ya,getDropEvents:ba,fireDropEvents:oe,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ke=Ue;function Ca(t){var i=t.interaction,f=t.iEvent,g=t.phase;if(i.prepared.name==="gesture"){var S=i.pointers.map(function(Me){return Me.pointer}),I=g==="start",H=g==="end",G=i.interactable.options.deltaSource;if(f.touches=[S[0],S[1]],I)f.distance=ra(S,G),f.box=Qe(S),f.scale=1,f.ds=0,f.angle=Pe(S,G),f.da=0,i.gesture.startDistance=f.distance,i.gesture.startAngle=f.angle;else if(H||i.pointers.length<2){var de=i.prevEvent;f.distance=de.distance,f.box=de.box,f.scale=de.scale,f.ds=0,f.angle=de.angle,f.da=0}else f.distance=ra(S,G),f.box=Qe(S),f.scale=f.distance/i.gesture.startDistance,f.angle=Pe(S,G),f.ds=f.scale-i.gesture.scale,f.da=f.angle-i.gesture.angle;i.gesture.distance=f.distance,i.gesture.angle=f.angle,_.number(f.scale)&&f.scale!==1/0&&!isNaN(f.scale)&&(i.gesture.scale=f.scale)}}var Be={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,f=t.Interactable,g=t.defaults;f.prototype.gesturable=function(S){return _.object(S)?(this.options.gesture.enabled=S.enabled!==!1,this.setPerAction("gesture",S),this.setOnEvents("gesture",S),this):_.bool(S)?(this.options.gesture.enabled=S,this):this.options.gesture},i.map.gesture=Be,i.methodDict.gesture="gesturable",g.actions.gesture=Be.defaults},listeners:{"interactions:action-start":Ca,"interactions:action-move":Ca,"interactions:action-end":Ca,"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}},sl=Be;function Ea(t,i,f,g,S,I,H){if(!i)return!1;if(i===!0){var G=_.number(I.width)?I.width:I.right-I.left,de=_.number(I.height)?I.height:I.bottom-I.top;if(H=Math.min(H,Math.abs((t==="left"||t==="right"?G:de)/2)),G<0&&(t==="left"?t="right":t==="right"&&(t="left")),de<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var Me=G>=0?I.left:I.right;return f.x<Me+H}if(t==="top"){var ge=de>=0?I.top:I.bottom;return f.y<ge+H}if(t==="right")return f.x>(G>=0?I.right:I.left)-H;if(t==="bottom")return f.y>(de>=0?I.bottom:I.top)-H}return!!_.element(g)&&(_.element(i)?i===g:me(g,i,S))}function Sl(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.resizeAxes){var g=i;f.interactable.options.resize.square?(f.resizeAxes==="y"?g.delta.x=g.delta.y:g.delta.y=g.delta.x,g.axes="xy"):(g.axes=f.resizeAxes,f.resizeAxes==="x"?g.delta.y=0:f.resizeAxes==="y"&&(g.delta.x=0))}}var ml,Fe,Pa={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,f=t.browser,g=t.Interactable,S=t.defaults;Pa.cursors=function(I){return I.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(f),Pa.defaultMargin=f.supportsTouch||f.supportsPointerEvent?20:10,g.prototype.resizable=function(I){return function(H,G,de){return _.object(G)?(H.options.resize.enabled=G.enabled!==!1,H.setPerAction("resize",G),H.setOnEvents("resize",G),_.string(G.axis)&&/^x$|^y$|^xy$/.test(G.axis)?H.options.resize.axis=G.axis:G.axis===null&&(H.options.resize.axis=de.defaults.actions.resize.axis),_.bool(G.preserveAspectRatio)?H.options.resize.preserveAspectRatio=G.preserveAspectRatio:_.bool(G.square)&&(H.options.resize.square=G.square),H):_.bool(G)?(H.options.resize.enabled=G,H):H.options.resize}(this,I,t)},i.map.resize=Pa,i.methodDict.resize="resizable",S.actions.resize=Pa.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(i){var f=i.iEvent,g=i.interaction;if(g.prepared.name==="resize"&&g.prepared.edges){var S=f,I=g.rect;g._rects={start:Q({},I),corrected:Q({},I),previous:Q({},I),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},S.edges=g.prepared.edges,S.rect=g._rects.corrected,S.deltaRect=g._rects.delta}})(t),Sl(t)},"interactions:action-move":function(t){(function(i){var f=i.iEvent,g=i.interaction;if(g.prepared.name==="resize"&&g.prepared.edges){var S=f,I=g.interactable.options.resize.invert,H=I==="reposition"||I==="negate",G=g.rect,de=g._rects,Me=de.start,ge=de.corrected,aa=de.delta,La=de.previous;if(Q(La,ge),H){if(Q(ge,G),I==="reposition"){if(ge.top>ge.bottom){var tl=ge.top;ge.top=ge.bottom,ge.bottom=tl}if(ge.left>ge.right){var rl=ge.left;ge.left=ge.right,ge.right=rl}}}else ge.top=Math.min(G.top,Me.bottom),ge.bottom=Math.max(G.bottom,Me.top),ge.left=Math.min(G.left,Me.right),ge.right=Math.max(G.right,Me.left);for(var cl in ge.width=ge.right-ge.left,ge.height=ge.bottom-ge.top,ge)aa[cl]=ge[cl]-La[cl];S.edges=g.prepared.edges,S.rect=ge,S.deltaRect=aa}})(t),Sl(t)},"interactions:action-end":function(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.prepared.edges){var g=i;g.edges=f.prepared.edges,g.rect=f._rects.corrected,g.deltaRect=f._rects.delta}},"auto-start:check":function(t){var i=t.interaction,f=t.interactable,g=t.element,S=t.rect,I=t.buttons;if(S){var H=Q({},i.coords.cur.page),G=f.options.resize;if(G&&G.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(I&G.mouseButtons)!=0)){if(_.object(G.edges)){var de={left:!1,right:!1,top:!1,bottom:!1};for(var Me in de)de[Me]=Ea(Me,G.edges[Me],H,i._latestPointer.eventTarget,g,S,G.margin||Pa.defaultMargin);de.left=de.left&&!de.right,de.top=de.top&&!de.bottom,(de.left||de.right||de.top||de.bottom)&&(t.action={name:"resize",edges:de})}else{var ge=G.axis!=="y"&&H.x>S.right-Pa.defaultMargin,aa=G.axis!=="x"&&H.y>S.bottom-Pa.defaultMargin;(ge||aa)&&(t.action={name:"resize",axes:(ge?"x":"")+(aa?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,f=t.axis,g=t.name,S=Pa.cursors,I=null;if(f)I=S[g+f];else if(i){for(var H="",G=0,de=["top","bottom","left","right"];G<de.length;G++){var Me=de[G];i[Me]&&(H+=Me)}I=S[H]}return I},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},je=Pa,xe={id:"actions",install:function(t){t.usePlugin(sl),t.usePlugin(je),t.usePlugin(Ce),t.usePlugin(Ke)}},ea=0,Ze={request:function(t){return ml(t)},cancel:function(t){return Fe(t)},init:function(t){if(ml=t.requestAnimationFrame,Fe=t.cancelAnimationFrame,!ml)for(var i=["ms","moz","webkit","o"],f=0;f<i.length;f++){var g=i[f];ml=t["".concat(g,"RequestAnimationFrame")],Fe=t["".concat(g,"CancelAnimationFrame")]||t["".concat(g,"CancelRequestAnimationFrame")]}ml=ml&&ml.bind(t),Fe=Fe&&Fe.bind(t),ml||(ml=function(S){var I=Date.now(),H=Math.max(0,16-(I-ea)),G=t.setTimeout(function(){S(I+H)},H);return ea=I+H,G},Fe=function(S){return clearTimeout(S)})}},la={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){la.isScrolling=!0,Ze.cancel(la.i),t.autoScroll=la,la.interaction=t,la.prevTime=la.now(),la.i=Ze.request(la.scroll)},stop:function(){la.isScrolling=!1,la.interaction&&(la.interaction.autoScroll=null),Ze.cancel(la.i)},scroll:function(){var t=la.interaction,i=t.interactable,f=t.element,g=t.prepared.name,S=i.options[g].autoScroll,I=q(S.container,i,f),H=la.now(),G=(H-la.prevTime)/1e3,de=S.speed*G;if(de>=1){var Me={x:la.x*de,y:la.y*de};if(Me.x||Me.y){var ge=oa(I);_.window(I)?I.scrollBy(Me.x,Me.y):I&&(I.scrollLeft+=Me.x,I.scrollTop+=Me.y);var aa=oa(I),La={x:aa.x-ge.x,y:aa.y-ge.y};(La.x||La.y)&&i.fire({type:"autoscroll",target:f,interactable:i,delta:La,interaction:t,container:I})}la.prevTime=H}la.isScrolling&&(Ze.cancel(la.i),la.i=Ze.request(la.scroll))},check:function(t,i){var f;return(f=t.options[i].autoScroll)==null?void 0:f.enabled},onInteractionMove:function(t){var i=t.interaction,f=t.pointer;if(i.interacting()&&la.check(i.interactable,i.prepared.name))if(i.simulation)la.x=la.y=0;else{var g,S,I,H,G=i.interactable,de=i.element,Me=i.prepared.name,ge=G.options[Me].autoScroll,aa=q(ge.container,G,de);if(_.window(aa))H=f.clientX<la.margin,g=f.clientY<la.margin,S=f.clientX>aa.innerWidth-la.margin,I=f.clientY>aa.innerHeight-la.margin;else{var La=Ne(aa);H=f.clientX<La.left+la.margin,g=f.clientY<La.top+la.margin,S=f.clientX>La.right-la.margin,I=f.clientY>La.bottom-la.margin}la.x=S?1:H?-1:0,la.y=I?1:g?-1:0,la.isScrolling||(la.margin=ge.margin,la.speed=ge.speed,la.start(i))}}};function q(t,i,f){return(_.string(t)?na(t,i,f):t)||L(f)}function oa(t){return _.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var ka={id:"auto-scroll",install:function(t){var i=t.defaults,f=t.actions;t.autoScroll=la,la.now=function(){return t.now()},f.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=la.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,la.stop(),la.interaction&&(la.interaction=null)},"interactions:stop":la.stop,"interactions:action-move":function(t){return la.onInteractionMove(t)}}},ye=ka;function Ee(t,i){var f=!1;return function(){return f||(Y.console.warn(i),f=!0),t.apply(this,arguments)}}function qa(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function pe(t){return _.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function fl(t){return _.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var al={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(f,g,S,I){var H=function(G,de,Me,ge,aa){var La=G.getRect(ge),tl=de.buttons||{0:1,1:4,3:8,4:16}[de.button],rl={action:null,interactable:G,interaction:Me,element:ge,rect:La,buttons:tl};return aa.fire("auto-start:check",rl),rl.action}(this,g,S,I,t);return this.options.actionChecker?this.options.actionChecker(f,g,H,this,I,S):H},i.prototype.ignoreFrom=Ee(function(f){return this._backCompatOption("ignoreFrom",f)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=Ee(function(f){return this._backCompatOption("allowFrom",f)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=fl,i.prototype.styleCursor=pe}};function _l(t,i,f,g,S){return i.testIgnoreAllow(i.options[t.name],f,g)&&i.options[t.name].enabled&&Za(i,f,t,S)?t:null}function Ha(t,i,f,g,S,I,H){for(var G=0,de=g.length;G<de;G++){var Me=g[G],ge=S[G],aa=Me.getAction(i,f,t,ge);if(aa){var La=_l(aa,Me,ge,I,H);if(La)return{action:La,interactable:Me,element:ge}}}return{action:null,interactable:null,element:null}}function Xa(t,i,f,g,S){var I=[],H=[],G=g;function de(ge){I.push(ge),H.push(G)}for(;_.element(G);){I=[],H=[],S.interactables.forEachMatch(G,de);var Me=Ha(t,i,f,I,H,g,S);if(Me.action&&!Me.interactable.options[Me.action.name].manualStart)return Me;G=za(G)}return{action:null,interactable:null,element:null}}function Ba(t,i,f){var g=i.action,S=i.interactable,I=i.element;g=g||{name:null},t.interactable=S,t.element=I,qa(t.prepared,g),t.rect=S&&g.name?S.getRect(I):null,Kl(t,f),f.fire("autoStart:prepared",{interaction:t})}function Za(t,i,f,g){var S=t.options,I=S[f.name].max,H=S[f.name].maxPerElement,G=g.autoStart.maxInteractions,de=0,Me=0,ge=0;if(!(I&&H&&G))return!1;for(var aa=0,La=g.interactions.list;aa<La.length;aa++){var tl=La[aa],rl=tl.prepared.name;if(tl.interacting()&&(++de>=G||tl.interactable===t&&((Me+=rl===f.name?1:0)>=I||tl.element===i&&(ge++,rl===f.name&&ge>=H))))return!1}return G>0}function Va(t,i){return _.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function Wl(t,i,f){var g=f.autoStart.cursorElement;g&&g!==t&&(g.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,f.autoStart.cursorElement=i?t:null}function Kl(t,i){var f=t.interactable,g=t.element,S=t.prepared;if(t.pointerType==="mouse"&&f&&f.options.styleCursor){var I="";if(S.name){var H=f.options[S.name].cursorChecker;I=_.func(H)?H(S,f,g,t._interacting):i.actions.map[S.name].getCursor(S)}Wl(t.element,I||"",i)}else i.autoStart.cursorElement&&Wl(i.autoStart.cursorElement,"",i)}var $l={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,f=t.defaults;t.usePlugin(al),f.base.actionChecker=null,f.base.styleCursor=!0,Q(f.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(g){return Va(g,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:Za,cursorElement:null}},listeners:{"interactions:down":function(t,i){var f=t.interaction,g=t.pointer,S=t.event,I=t.eventTarget;f.interacting()||Ba(f,Xa(f,g,S,I,i),i)},"interactions:move":function(t,i){(function(f,g){var S=f.interaction,I=f.pointer,H=f.event,G=f.eventTarget;S.pointerType!=="mouse"||S.pointerIsDown||S.interacting()||Ba(S,Xa(S,I,H,G,g),g)})(t,i),function(f,g){var S=f.interaction;if(S.pointerIsDown&&!S.interacting()&&S.pointerWasMoved&&S.prepared.name){g.fire("autoStart:before-start",f);var I=S.interactable,H=S.prepared.name;H&&I&&(I.options[H].manualStart||!Za(I,S.element,S.prepared,g)?S.stop():(S.start(S.prepared,I,S.element),Kl(S,g)))}}(t,i)},"interactions:stop":function(t,i){var f=t.interaction,g=f.interactable;g&&g.options.styleCursor&&Wl(f.element,"",i)}},maxInteractions:Va,withinInteractionLimit:Za,validateAction:_l},Fl=$l,gr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var f=t.interaction,g=t.eventTarget,S=t.dx,I=t.dy;if(f.prepared.name==="drag"){var H=Math.abs(S),G=Math.abs(I),de=f.interactable.options.drag,Me=de.startAxis,ge=H>G?"x":H<G?"y":"xy";if(f.prepared.axis=de.lockAxis==="start"?ge[0]:de.lockAxis,ge!=="xy"&&Me!=="xy"&&Me!==ge){f.prepared.name=null;for(var aa=g,La=function(rl){if(rl!==f.interactable){var cl=f.interactable.options.drag;if(!cl.manualStart&&rl.testIgnoreAllow(cl,aa,g)){var Cl=rl.getAction(f.downPointer,f.downEvent,f,aa);if(Cl&&Cl.name==="drag"&&function(ul,Bl){if(!Bl)return!1;var Ol=Bl.options.drag.startAxis;return ul==="xy"||Ol==="xy"||Ol===ul}(ge,rl)&&Fl.validateAction(Cl,rl,aa,g,i))return rl}}};_.element(aa);){var tl=i.interactables.forEachMatch(aa,La);if(tl){f.prepared.name="drag",f.interactable=tl,f.element=aa;break}aa=za(aa)}}}}}};function rr(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var f=t.interactable.options;return f[i].hold||f[i].delay}var kr={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(Fl),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,f=rr(i);f>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},f))},"interactions:move":function(t){var i=t.interaction,f=t.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!f&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;rr(i)>0&&(i.prepared.name=null)}},getHoldDuration:rr},wr=kr,Sr={id:"auto-start",install:function(t){t.usePlugin(Fl),t.usePlugin(wr),t.usePlugin(gr)}},dn=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):_.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Jr(t){var i=t.interaction,f=t.event;i.interactable&&i.interactable.checkAndPreventDefault(f)}var pn={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=dn,i.prototype.checkAndPreventDefault=function(f){return function(g,S,I){var H=g.options.preventDefault;if(H!=="never")if(H!=="always"){if(S.events.supportsPassive&&/^touch(start|move)$/.test(I.type)){var G=L(I.target).document,de=S.getDocOptions(G);if(!de||!de.events||de.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(I.type)||_.element(I.target)&&re(I.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||I.preventDefault()}else I.preventDefault()}(this,t,f)},t.interactions.docEvents.push({type:"dragstart",listener:function(f){for(var g=0,S=t.interactions.list;g<S.length;g++){var I=S[g];if(I.element&&(I.element===f.target||ue(I.element,f.target)))return void I.interactable.checkAndPreventDefault(f)}}})},listeners:["down","move","up","cancel"].reduce(function(t,i){return t["interactions:".concat(i)]=Jr,t},{})};function Xr(t,i){if(i.phaselessTypes[t])return!0;for(var f in i.map)if(t.indexOf(f)===0&&t.substr(f.length)in i.phases)return!0;return!1}function qr(t){var i={};for(var f in t){var g=t[f];_.plainObject(g)?i[f]=qr(g):_.array(g)?i[f]=wa(g):i[f]=g}return i}var fn=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=tn(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return p(t,[{key:"start",value:function(i,f){var g,S,I=i.phase,H=this.interaction,G=function(Me){var ge=Me.interactable.options[Me.prepared.name],aa=ge.modifiers;return aa&&aa.length?aa:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(La){var tl=ge[La];return tl&&tl.enabled&&{options:tl,methods:tl._methods}}).filter(function(La){return!!La})}(H);this.prepareStates(G),this.startEdges=Q({},H.edges),this.edges=Q({},this.startEdges),this.startOffset=(g=H.rect,S=f,g?{left:S.x-g.left,top:S.y-g.top,right:g.right-S.x,bottom:g.bottom-S.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var de=this.fillArg({phase:I,pageCoords:f,preEnd:!1});return this.result=tn(),this.startAll(de),this.result=this.setAll(de)}},{key:"fillArg",value:function(i){var f=this.interaction;return i.interaction=f,i.interactable=f.interactable,i.element=f.element,i.rect||(i.rect=f.rect),i.edges||(i.edges=this.startEdges),i.startOffset=this.startOffset,i}},{key:"startAll",value:function(i){for(var f=0,g=this.states;f<g.length;f++){var S=g[f];S.methods.start&&(i.state=S,S.methods.start(i))}}},{key:"setAll",value:function(i){var f=i.phase,g=i.preEnd,S=i.skipModifiers,I=i.rect,H=i.edges;i.coords=Q({},i.pageCoords),i.rect=Q({},I),i.edges=Q({},H);for(var G=S?this.states.slice(S):this.states,de=tn(i.coords,i.rect),Me=0;Me<G.length;Me++){var ge,aa=G[Me],La=aa.options,tl=Q({},i.coords),rl=null;(ge=aa.methods)!=null&&ge.set&&this.shouldDo(La,g,f)&&(i.state=aa,rl=aa.methods.set(i),Te(i.edges,i.rect,{x:i.coords.x-tl.x,y:i.coords.y-tl.y})),de.eventProps.push(rl)}Q(this.edges,i.edges),de.delta.x=i.coords.x-i.pageCoords.x,de.delta.y=i.coords.y-i.pageCoords.y,de.rectDelta.left=i.rect.left-I.left,de.rectDelta.right=i.rect.right-I.right,de.rectDelta.top=i.rect.top-I.top,de.rectDelta.bottom=i.rect.bottom-I.bottom;var cl=this.result.coords,Cl=this.result.rect;if(cl&&Cl){var ul=de.rect.left!==Cl.left||de.rect.right!==Cl.right||de.rect.top!==Cl.top||de.rect.bottom!==Cl.bottom;de.changed=ul||cl.x!==de.coords.x||cl.y!==de.coords.y}return de}},{key:"applyToInteraction",value:function(i){var f=this.interaction,g=i.phase,S=f.coords.cur,I=f.coords.start,H=this.result,G=this.startDelta,de=H.delta;g==="start"&&Q(this.startDelta,H.delta);for(var Me=0,ge=[[I,G],[S,de]];Me<ge.length;Me++){var aa=ge[Me],La=aa[0],tl=aa[1];La.page.x+=tl.x,La.page.y+=tl.y,La.client.x+=tl.x,La.client.y+=tl.y}var rl=this.result.rectDelta,cl=i.rect||f.rect;cl.left+=rl.left,cl.right+=rl.right,cl.top+=rl.top,cl.bottom+=rl.bottom,cl.width=cl.right-cl.left,cl.height=cl.bottom-cl.top}},{key:"setAndApply",value:function(i){var f=this.interaction,g=i.phase,S=i.preEnd,I=i.skipModifiers,H=this.setAll(this.fillArg({preEnd:S,phase:g,pageCoords:i.modifiedCoords||f.coords.cur.page}));if(this.result=H,!H.changed&&(!I||I<this.states.length)&&f.interacting())return!1;if(i.modifiedCoords){var G=f.coords.cur.page,de={x:i.modifiedCoords.x-G.x,y:i.modifiedCoords.y-G.y};H.coords.x+=de.x,H.coords.y+=de.y,H.delta.x+=de.x,H.delta.y+=de.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var f=i.interaction,g=i.event,S=this.states;if(S&&S.length){for(var I=!1,H=0;H<S.length;H++){var G=S[H];i.state=G;var de=G.options,Me=G.methods,ge=Me.beforeEnd&&Me.beforeEnd(i);if(ge)return this.endResult=ge,!1;I=I||!I&&this.shouldDo(de,!0,i.phase,!0)}I&&f.move({event:g,preEnd:!0})}}},{key:"stop",value:function(i){var f=i.interaction;if(this.states&&this.states.length){var g=Q({states:this.states,interactable:f.interactable,element:f.element,rect:null},i);this.fillArg(g);for(var S=0,I=this.states;S<I.length;S++){var H=I[S];g.state=H,H.methods.stop&&H.methods.stop(g)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var f=0;f<i.length;f++){var g=i[f],S=g.options,I=g.methods,H=g.name;this.states.push({options:S,methods:I,index:f,name:H})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var f=i.interaction,g=f.coords,S=f.rect,I=f.modification;if(I.result){for(var H=I.startDelta,G=I.result,de=G.delta,Me=G.rectDelta,ge=0,aa=[[g.start,H],[g.cur,de]];ge<aa.length;ge++){var La=aa[ge],tl=La[0],rl=La[1];tl.page.x-=rl.x,tl.page.y-=rl.y,tl.client.x-=rl.x,tl.client.y-=rl.y}S.left-=Me.left,S.right-=Me.right,S.top-=Me.top,S.bottom-=Me.bottom}}},{key:"shouldDo",value:function(i,f,g,S){return!(!i||i.enabled===!1||S&&!i.endOnly||i.endOnly&&!f||g==="start"&&!i.setStart)}},{key:"copyFrom",value:function(i){this.startOffset=i.startOffset,this.startDelta=i.startDelta,this.startEdges=i.startEdges,this.edges=i.edges,this.states=i.states.map(function(f){return qr(f)}),this.result=tn(Q({},i.result.coords),Q({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function tn(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Dr(t,i){var f=t.defaults,g={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},S=function(I){var H=I||{};for(var G in H.enabled=H.enabled!==!1,f)G in H||(H[G]=f[G]);var de={options:H,methods:g,name:i,enable:function(){return H.enabled=!0,de},disable:function(){return H.enabled=!1,de}};return de};return i&&typeof i=="string"&&(S._defaults=f,S._methods=g),S}function Zr(t){var i=t.iEvent,f=t.interaction.modification.result;f&&(i.modifiers=f.eventProps)}var Nr={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new fn(i)},"interactions:before-action-start":function(t){var i=t.interaction,f=t.interaction.modification;f.start(t,i.coords.start.page),i.edges=f.edges,f.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,f=i.modification,g=f.setAndApply(t);return i.edges=f.edges,g},"interactions:before-action-end":function(t){var i=t.interaction,f=i.modification,g=f.beforeEnd(t);return i.edges=f.startEdges,g},"interactions:action-start":Zr,"interactions:action-move":Zr,"interactions:action-end":Zr,"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)}}},Il=Nr,Wr={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Br=function(t){y(f,t);var i=B(f);function f(g,S,I,H,G,de,Me){var ge;c(this,f),(ge=i.call(this,g)).relatedTarget=null,ge.screenX=void 0,ge.screenY=void 0,ge.button=void 0,ge.buttons=void 0,ge.ctrlKey=void 0,ge.shiftKey=void 0,ge.altKey=void 0,ge.metaKey=void 0,ge.page=void 0,ge.client=void 0,ge.delta=void 0,ge.rect=void 0,ge.x0=void 0,ge.y0=void 0,ge.t0=void 0,ge.dt=void 0,ge.duration=void 0,ge.clientX0=void 0,ge.clientY0=void 0,ge.velocity=void 0,ge.speed=void 0,ge.swipe=void 0,ge.axes=void 0,ge.preEnd=void 0,G=G||g.element;var aa=g.interactable,La=(aa&&aa.options||Wr).deltaSource,tl=Re(aa,G,I),rl=H==="start",cl=H==="end",Cl=rl?C(ge):g.prevEvent,ul=rl?g.coords.start:cl?{page:Cl.page,client:Cl.client,timeStamp:g.coords.cur.timeStamp}:g.coords.cur;return ge.page=Q({},ul.page),ge.client=Q({},ul.client),ge.rect=Q({},g.rect),ge.timeStamp=ul.timeStamp,cl||(ge.page.x-=tl.x,ge.page.y-=tl.y,ge.client.x-=tl.x,ge.client.y-=tl.y),ge.ctrlKey=S.ctrlKey,ge.altKey=S.altKey,ge.shiftKey=S.shiftKey,ge.metaKey=S.metaKey,ge.button=S.button,ge.buttons=S.buttons,ge.target=G,ge.currentTarget=G,ge.preEnd=de,ge.type=Me||I+(H||""),ge.interactable=aa,ge.t0=rl?g.pointers[g.pointers.length-1].downTime:Cl.t0,ge.x0=g.coords.start.page.x-tl.x,ge.y0=g.coords.start.page.y-tl.y,ge.clientX0=g.coords.start.client.x-tl.x,ge.clientY0=g.coords.start.client.y-tl.y,ge.delta=rl||cl?{x:0,y:0}:{x:ge[La].x-Cl[La].x,y:ge[La].y-Cl[La].y},ge.dt=g.coords.delta.timeStamp,ge.duration=ge.timeStamp-ge.t0,ge.velocity=Q({},g.coords.velocity[La]),ge.speed=Fa(ge.velocity.x,ge.velocity.y),ge.swipe=cl||H==="inertiastart"?ge.getSwipe():null,ge}return p(f,[{key:"getSwipe",value:function(){var g=this._interaction;if(g.prevEvent.speed<600||this.timeStamp-g.prevEvent.timeStamp>150)return null;var S=180*Math.atan2(g.prevEvent.velocityY,g.prevEvent.velocityX)/Math.PI;S<0&&(S+=360);var I=112.5<=S&&S<247.5,H=202.5<=S&&S<337.5;return{up:H,down:!H&&22.5<=S&&S<157.5,left:I,right:!I&&(292.5<=S||S<67.5),angle:S,speed:g.prevEvent.speed,velocity:{x:g.prevEvent.velocityX,y:g.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),f}(ya);Object.defineProperties(Br.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 mn=p(function t(i,f,g,S,I){c(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=f,this.event=g,this.downTime=S,this.downTarget=I}),so=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),Gn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),$n=0,yn=function(){function t(i){var f=this,g=i.pointerType,S=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=Ee(function(ge){this.move(ge)},"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=$n++,this._scopeFire=S,this.pointerType=g;var I=this;this._proxy={};var H=function(ge){Object.defineProperty(f._proxy,ge,{get:function(){return I[ge]}})};for(var G in so)H(G);var de=function(ge){Object.defineProperty(f._proxy,ge,{value:function(){return I[ge].apply(I,arguments)}})};for(var Me in Gn)de(Me);this._scopeFire("interactions:new",{interaction:this})}return p(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,f,g){var S=this.updatePointer(i,f,g,!0),I=this.pointers[S];this._scopeFire("interactions:down",{pointer:i,event:f,eventTarget:g,pointerIndex:S,pointerInfo:I,type:"down",interaction:this})}},{key:"start",value:function(i,f,g){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!f.options[i.name].enabled)&&(qa(this.prepared,i),this.interactable=f,this.element=g,this.rect=f.getRect(g),this.edges=this.prepared.edges?Q({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(i,f,g){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,f,g,!1);var S,I,H=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(S=this.coords.cur.client.x-this.coords.start.client.x,I=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Fa(S,I)>this.pointerMoveTolerance);var G,de,Me,ge=this.getPointerIndex(i),aa={pointer:i,pointerIndex:ge,pointerInfo:this.pointers[ge],event:f,type:"move",eventTarget:g,dx:S,dy:I,duplicate:H,interaction:this};H||(G=this.coords.velocity,de=this.coords.delta,Me=Math.max(de.timeStamp/1e3,.001),G.page.x=de.page.x/Me,G.page.y=de.page.y/Me,G.client.x=de.client.x/Me,G.client.y=de.client.y/Me,G.timeStamp=Me),this._scopeFire("interactions:move",aa),H||this.simulation||(this.interacting()&&(aa.type=null,this.move(aa)),this.pointerWasMoved&&J(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||ne(this.coords.delta),(i=Q({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},i||{})).phase="move",this._doPhase(i)}},{key:"pointerUp",value:function(i,f,g,S){var I=this.getPointerIndex(i);I===-1&&(I=this.updatePointer(i,f,g,!1));var H=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(H),{pointer:i,pointerIndex:I,pointerInfo:this.pointers[I],event:f,eventTarget:g,type:H,curEventTarget:S,interaction:this}),this.simulation||this.end(f),this.removePointer(i,f)}},{key:"documentBlur",value:function(i){this.end(i),this._scopeFire("interactions:blur",{event:i,type:"blur",interaction:this})}},{key:"end",value:function(i){var f;this._ending=!0,i=i||this._latestPointer.event,this.interacting()&&(f=this._doPhase({event:i,interaction:this,phase:"end"})),this._ending=!1,f===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(i){var f=Oe(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:ve(this.pointers,function(g){return g.id===f})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,f,g,S){var I,H,G,de=Oe(i),Me=this.getPointerIndex(i),ge=this.pointers[Me];return S=S!==!1&&(S||/(down|start)$/i.test(f.type)),ge?ge.pointer=i:(ge=new mn(de,i,f,null,null),Me=this.pointers.length,this.pointers.push(ge)),_e(this.coords.cur,this.pointers.map(function(aa){return aa.pointer}),this._now()),I=this.coords.delta,H=this.coords.prev,G=this.coords.cur,I.page.x=G.page.x-H.page.x,I.page.y=G.page.y-H.page.y,I.client.x=G.client.x-H.client.x,I.client.y=G.client.y-H.client.y,I.timeStamp=G.timeStamp-H.timeStamp,S&&(this.pointerIsDown=!0,ge.downTime=this.coords.cur.timeStamp,ge.downTarget=g,F(this.downPointer,i),this.interacting()||(J(this.coords.start,this.coords.cur),J(this.coords.prev,this.coords.cur),this.downEvent=f,this.pointerWasMoved=!1)),this._updateLatestPointer(i,f,g),this._scopeFire("interactions:update-pointer",{pointer:i,event:f,eventTarget:g,down:S,pointerInfo:ge,pointerIndex:Me,interaction:this}),Me}},{key:"removePointer",value:function(i,f){var g=this.getPointerIndex(i);if(g!==-1){var S=this.pointers[g];this._scopeFire("interactions:remove-pointer",{pointer:i,event:f,eventTarget:null,pointerIndex:g,pointerInfo:S,interaction:this}),this.pointers.splice(g,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,f,g){this._latestPointer.pointer=i,this._latestPointer.event=f,this._latestPointer.eventTarget=g}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,f,g,S){return new Br(this,i,this.prepared.name,f,this.element,g,S)}},{key:"_fireEvent",value:function(i){var f;(f=this.interactable)==null||f.fire(i),(!this.prevEvent||i.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=i)}},{key:"_doPhase",value:function(i){var f=i.event,g=i.phase,S=i.preEnd,I=i.type,H=this.rect;if(H&&g==="move"&&(Te(this.edges,H,this.coords.delta[this.interactable.options.deltaSource]),H.width=H.right-H.left,H.height=H.bottom-H.top),this._scopeFire("interactions:before-action-".concat(g),i)===!1)return!1;var G=i.iEvent=this._createPreparedEvent(f,g,S,I);return this._scopeFire("interactions:action-".concat(g),i),g==="start"&&(this.prevEvent=G),this._fireEvent(G),this._scopeFire("interactions:after-action-".concat(g),i),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Xl(t){xr(t.interaction)}function xr(t){if(!function(f){return!(!f.offset.pending.x&&!f.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Hl(t.coords.cur,i),Hl(t.coords.delta,i),Te(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Rl(t){var i=t.x,f=t.y;this.offset.pending.x+=i,this.offset.pending.y+=f,this.offset.total.x+=i,this.offset.total.y+=f}function Hl(t,i){var f=t.page,g=t.client,S=i.x,I=i.y;f.x+=S,f.y+=I,g.x+=S,g.y+=I}Gn.offsetBy="";var Ml={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Rl},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&&(Hl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Xl,"interactions:before-action-move":Xl,"interactions:before-action-end":function(t){var i=t.interaction;if(xr(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}}},cr=Ml,ar=function(){function t(i){c(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return p(t,[{key:"start",value:function(i){var f=this.interaction,g=Pl(f);if(!g||!g.enabled)return!1;var S=f.coords.velocity.client,I=Fa(S.x,S.y),H=this.modification||(this.modification=new fn(f));if(H.copyFrom(f.modification),this.t0=f._now(),this.allowResume=g.allowResume,this.v0=I,this.currentOffset={x:0,y:0},this.startCoords=f.coords.cur.page,this.modifierArg=H.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-f.coords.cur.timeStamp<50&&I>g.minSpeed&&I>g.endSpeed)this.startInertia();else{if(H.result=H.setAll(this.modifierArg),!H.result.changed)return!1;this.startSmoothEnd()}return f.modification.result.rect=null,f.offsetBy(this.targetOffset),f._doPhase({interaction:f,event:i,phase:"inertiastart"}),f.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),f.modification.result.rect=null,this.active=!0,f.simulation=this,!0}},{key:"startInertia",value:function(){var i=this,f=this.interaction.coords.velocity.client,g=Pl(this.interaction),S=g.resistance,I=-Math.log(g.endSpeed/this.v0)/S;this.targetOffset={x:(f.x-I)/S,y:(f.y-I)/S},this.te=I,this.lambda_v0=S/this.v0,this.one_ve_v0=1-g.endSpeed/this.v0;var H=this.modification,G=this.modifierArg;G.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},H.result=H.setAll(G),H.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+H.result.delta.x,y:this.targetOffset.y+H.result.delta.y}),this.onNextFrame(function(){return i.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var i=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return i.smoothEndTick()})}},{key:"onNextFrame",value:function(i){var f=this;this.timeout=Ze.request(function(){f.active&&i()})}},{key:"inertiaTick",value:function(){var i,f,g,S,I,H,G,de=this,Me=this.interaction,ge=Pl(Me).resistance,aa=(Me._now()-this.t0)/1e3;if(aa<this.te){var La,tl=1-(Math.exp(-ge*aa)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,f=0,g=this.targetOffset.x,S=this.targetOffset.y,I=this.modifiedOffset.x,H=this.modifiedOffset.y,La={x:Mr(G=tl,i,g,I),y:Mr(G,f,S,H)}):La={x:this.targetOffset.x*tl,y:this.targetOffset.y*tl};var rl={x:La.x-this.currentOffset.x,y:La.y-this.currentOffset.y};this.currentOffset.x+=rl.x,this.currentOffset.y+=rl.y,Me.offsetBy(rl),Me.move(),this.onNextFrame(function(){return de.inertiaTick()})}else Me.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,f=this.interaction,g=f._now()-this.t0,S=Pl(f).smoothEndDuration;if(g<S){var I={x:gn(g,0,this.targetOffset.x,S),y:gn(g,0,this.targetOffset.y,S)},H={x:I.x-this.currentOffset.x,y:I.y-this.currentOffset.y};this.currentOffset.x+=H.x,this.currentOffset.y+=H.y,f.offsetBy(H),f.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return i.smoothEndTick()})}else f.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(i){var f=i.pointer,g=i.event,S=i.eventTarget,I=this.interaction;I.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),I.updatePointer(f,g,S,!0),I._doPhase({interaction:I,event:g,phase:"resume"}),J(I.coords.prev,I.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Ze.cancel(this.timeout)}}]),t}();function Pl(t){var i=t.interactable,f=t.prepared;return i&&i.options&&f.name&&i.options[f.name].inertia}var zr={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(cr),t.usePlugin(Il),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 ar(i)},"interactions:before-action-end":function(t){var i=t.interaction,f=t.event;return(!i._interacting||i.simulation||!i.inertia.start(f))&&null},"interactions:down":function(t){var i=t.interaction,f=t.eventTarget,g=i.inertia;if(g.active)for(var S=f;_.element(S);){if(S===i.element){g.resume(t);break}S=za(S)}},"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":Zr,"interactions:action-inertiastart":Zr,"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 Mr(t,i,f,g){var S=1-t;return S*S*i+2*S*t*f+t*t*g}function gn(t,i,f,g){return-f*(t/=g)*(t-2)+i}var Qr=zr;function Jn(t,i){for(var f=0;f<i.length;f++){var g=i[f];if(t.immediatePropagationStopped)break;g(t)}}var Dn=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=Q({},i||{})}return p(t,[{key:"fire",value:function(i){var f,g=this.global;(f=this.types[i.type])&&Jn(i,f),!i.propagationStopped&&g&&(f=g[i.type])&&Jn(i,f)}},{key:"on",value:function(i,f){var g=Je(i,f);for(i in g)this.types[i]=Xe(this.types[i]||[],g[i])}},{key:"off",value:function(i,f){var g=Je(i,f);for(i in g){var S=this.types[i];if(S&&S.length)for(var I=0,H=g[i];I<H.length;I++){var G=H[I],de=S.indexOf(G);de!==-1&&S.splice(de,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),Xn=function(){function t(i){c(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,F(this,i)}return p(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function bn(t){return _.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function Nn(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Rn={id:"events",install:function(t){var i,f=[],g={},S=[],I={add:H,remove:G,addDelegate:function(ge,aa,La,tl,rl){var cl=bn(rl);if(!g[La]){g[La]=[];for(var Cl=0;Cl<S.length;Cl++){var ul=S[Cl];H(ul,La,de),H(ul,La,Me,!0)}}var Bl=g[La],Ol=Ga(Bl,function(Yl){return Yl.selector===ge&&Yl.context===aa});Ol||(Ol={selector:ge,context:aa,listeners:[]},Bl.push(Ol)),Ol.listeners.push({func:tl,options:cl})},removeDelegate:function(ge,aa,La,tl,rl){var cl,Cl=bn(rl),ul=g[La],Bl=!1;if(ul)for(cl=ul.length-1;cl>=0;cl--){var Ol=ul[cl];if(Ol.selector===ge&&Ol.context===aa){for(var Yl=Ol.listeners,Nl=Yl.length-1;Nl>=0;Nl--){var jl=Yl[Nl];if(jl.func===tl&&Nn(jl.options,Cl)){Yl.splice(Nl,1),Yl.length||(ul.splice(cl,1),G(aa,La,de),G(aa,La,Me,!0)),Bl=!0;break}}if(Bl)break}}},delegateListener:de,delegateUseCapture:Me,delegatedEvents:g,documents:S,targets:f,supportsOptions:!1,supportsPassive:!1};function H(ge,aa,La,tl){if(ge.addEventListener){var rl=bn(tl),cl=Ga(f,function(Cl){return Cl.eventTarget===ge});cl||(cl={eventTarget:ge,events:{}},f.push(cl)),cl.events[aa]||(cl.events[aa]=[]),Ga(cl.events[aa],function(Cl){return Cl.func===La&&Nn(Cl.options,rl)})||(ge.addEventListener(aa,La,I.supportsOptions?rl:rl.capture),cl.events[aa].push({func:La,options:rl}))}}function G(ge,aa,La,tl){if(ge.addEventListener&&ge.removeEventListener){var rl=ve(f,function(Ir){return Ir.eventTarget===ge}),cl=f[rl];if(cl&&cl.events)if(aa!=="all"){var Cl=!1,ul=cl.events[aa];if(ul){if(La==="all"){for(var Bl=ul.length-1;Bl>=0;Bl--){var Ol=ul[Bl];G(ge,aa,Ol.func,Ol.options)}return}for(var Yl=bn(tl),Nl=0;Nl<ul.length;Nl++){var jl=ul[Nl];if(jl.func===La&&Nn(jl.options,Yl)){ge.removeEventListener(aa,La,I.supportsOptions?Yl:Yl.capture),ul.splice(Nl,1),ul.length===0&&(delete cl.events[aa],Cl=!0);break}}}Cl&&!Object.keys(cl.events).length&&f.splice(rl,1)}else for(aa in cl.events)cl.events.hasOwnProperty(aa)&&G(ge,aa,"all")}}function de(ge,aa){for(var La=bn(aa),tl=new Xn(ge),rl=g[ge.type],cl=Le(ge)[0],Cl=cl;_.element(Cl);){for(var ul=0;ul<rl.length;ul++){var Bl=rl[ul],Ol=Bl.selector,Yl=Bl.context;if(re(Cl,Ol)&&ue(Yl,cl)&&ue(Yl,Cl)){var Nl=Bl.listeners;tl.currentTarget=Cl;for(var jl=0;jl<Nl.length;jl++){var Ir=Nl[jl];Nn(Ir.options,La)&&Ir.func(tl)}}}Cl=za(Cl)}}function Me(ge){return de(ge,!0)}return(i=t.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return I.supportsOptions=!0},get passive(){return I.supportsPassive=!0}}),t.events=I,I}},Kr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,f=Kr.methodOrder;i<f.length;i++){var g=f[i],S=Kr[g](t);if(S)return S}return null},simulationResume:function(t){var i=t.pointerType,f=t.eventType,g=t.eventTarget,S=t.scope;if(!/down|start/i.test(f))return null;for(var I=0,H=S.interactions.list;I<H.length;I++){var G=H[I],de=g;if(G.simulation&&G.simulation.allowResume&&G.pointerType===i)for(;de;){if(de===G.element)return G;de=za(de)}}return null},mouseOrPen:function(t){var i,f=t.pointerId,g=t.pointerType,S=t.eventType,I=t.scope;if(g!=="mouse"&&g!=="pen")return null;for(var H=0,G=I.interactions.list;H<G.length;H++){var de=G[H];if(de.pointerType===g){if(de.simulation&&!Bn(de,f))continue;if(de.interacting())return de;i||(i=de)}}if(i)return i;for(var Me=0,ge=I.interactions.list;Me<ge.length;Me++){var aa=ge[Me];if(!(aa.pointerType!==g||/down/i.test(S)&&aa.simulation))return aa}return null},hasPointer:function(t){for(var i=t.pointerId,f=0,g=t.scope.interactions.list;f<g.length;f++){var S=g[f];if(Bn(S,i))return S}return null},idle:function(t){for(var i=t.pointerType,f=0,g=t.scope.interactions.list;f<g.length;f++){var S=g[f];if(S.pointers.length===1){var I=S.interactable;if(I&&(!I.options.gesture||!I.options.gesture.enabled))continue}else if(S.pointers.length>=2)continue;if(!S.interacting()&&i===S.pointerType)return S}return null}};function Bn(t,i){return t.pointers.some(function(f){return f.id===i})}var kn=Kr,Pr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Vn(t,i){return function(f){var g=i.interactions.list,S=_a(f),I=Le(f),H=I[0],G=I[1],de=[];if(/^touch/.test(f.type)){i.prevTouchTime=i.now();for(var Me=0,ge=f.changedTouches;Me<ge.length;Me++){var aa=ge[Me],La={pointer:aa,pointerId:Oe(aa),pointerType:S,eventType:f.type,eventTarget:H,curEventTarget:G,scope:i},tl=hn(La);de.push([La.pointer,La.eventTarget,La.curEventTarget,tl])}}else{var rl=!1;if(!X.supportsPointerEvent&&/mouse/.test(f.type)){for(var cl=0;cl<g.length&&!rl;cl++)rl=g[cl].pointerType!=="mouse"&&g[cl].pointerIsDown;rl=rl||i.now()-i.prevTouchTime<500||f.timeStamp===0}if(!rl){var Cl={pointer:f,pointerId:Oe(f),pointerType:S,eventType:f.type,curEventTarget:G,eventTarget:H,scope:i},ul=hn(Cl);de.push([Cl.pointer,Cl.eventTarget,Cl.curEventTarget,ul])}}for(var Bl=0;Bl<de.length;Bl++){var Ol=de[Bl],Yl=Ol[0],Nl=Ol[1],jl=Ol[2];Ol[3][t](Yl,f,Nl,jl)}}}function hn(t){var i=t.pointerType,f=t.scope,g={interaction:kn.search(t),searchDetails:t};return f.fire("interactions:find",g),g.interaction||f.interactions.new({pointerType:i})}function To(t,i){var f=t.doc,g=t.scope,S=t.options,I=g.interactions.docEvents,H=g.events,G=H[i];for(var de in g.browser.isIOS&&!S.events&&(S.events={passive:!1}),H.delegatedEvents)G(f,de,H.delegateListener),G(f,de,H.delegateUseCapture,!0);for(var Me=S&&S.events,ge=0;ge<I.length;ge++){var aa=I[ge];G(f,aa.type,aa.listener,Me)}}var Oi={id:"core/interactions",install:function(t){for(var i={},f=0;f<Pr.length;f++){var g=Pr[f];i[g]=Vn(g,t)}var S,I=X.pEventTypes;function H(){for(var G=0,de=t.interactions.list;G<de.length;G++){var Me=de[G];if(Me.pointerIsDown&&Me.pointerType==="touch"&&!Me._interacting)for(var ge=function(){var tl=La[aa];t.documents.some(function(rl){return ue(rl.doc,tl.downTarget)})||Me.removePointer(tl.pointer,tl.event)},aa=0,La=Me.pointers;aa<La.length;aa++)ge()}}(S=le.PointerEvent?[{type:I.down,listener:H},{type:I.down,listener:i.pointerDown},{type:I.move,listener:i.pointerMove},{type:I.up,listener:i.pointerUp},{type:I.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:H},{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(G){for(var de=0,Me=t.interactions.list;de<Me.length;de++)Me[de].documentBlur(G)}}),t.prevTouchTime=0,t.Interaction=function(G){y(Me,G);var de=B(Me);function Me(){return c(this,Me),de.apply(this,arguments)}return p(Me,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(ge){t.interactions.pointerMoveTolerance=ge}},{key:"_now",value:function(){return t.now()}}]),Me}(yn),t.interactions={list:[],new:function(G){G.scopeFire=function(Me,ge){return t.fire(Me,ge)};var de=new t.Interaction(G);return t.interactions.list.push(de),de},listeners:i,docEvents:S,pointerMoveTolerance:1},t.usePlugin(pn)},listeners:{"scope:add-document":function(t){return To(t,"add")},"scope:remove-document":function(t){return To(t,"remove")},"interactable:unset":function(t,i){for(var f=t.interactable,g=i.interactions.list.length-1;g>=0;g--){var S=i.interactions.list[g];S.interactable===f&&(S.stop(),i.fire("interactions:destroy",{interaction:S}),S.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(g,1))}}},onDocSignal:To,doOnInteractions:Vn,methodNames:Pr},Ii=Oi,xn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(xn||{}),Li=function(){function t(i,f,g,S){c(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Dn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=f.actions,this.target=i,this._context=f.context||g,this._win=L(Wa(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=S,this.set(f)}return p(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,f){return _.func(f.onstart)&&this.on("".concat(i,"start"),f.onstart),_.func(f.onmove)&&this.on("".concat(i,"move"),f.onmove),_.func(f.onend)&&this.on("".concat(i,"end"),f.onend),_.func(f.oninertiastart)&&this.on("".concat(i,"inertiastart"),f.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,f,g){var S,I=this,H=(S=this._actions.map[i])==null?void 0:S.filterEventType,G=function(de){return(H==null||H(de))&&Xr(de,I._actions)};(_.array(f)||_.object(f))&&this._onOff(xn.Off,i,f,void 0,G),(_.array(g)||_.object(g))&&this._onOff(xn.On,i,g,void 0,G)}},{key:"setPerAction",value:function(i,f){var g=this._defaults;for(var S in f){var I=S,H=this.options[i],G=f[I];I==="listeners"&&this.updatePerActionListeners(i,H.listeners,G),_.array(G)?H[I]=wa(G):_.plainObject(G)?(H[I]=Q(H[I]||{},qr(G)),_.object(g.perAction[I])&&"enabled"in g.perAction[I]&&(H[I].enabled=G.enabled!==!1)):_.bool(G)&&_.object(g.perAction[I])?H[I].enabled=G:H[I]=G}}},{key:"getRect",value:function(i){return i=i||(_.element(this.target)?this.target:null),_.string(this.target)&&(i=i||this._context.querySelector(this.target)),va(i)}},{key:"rectChecker",value:function(i){var f=this;return _.func(i)?(this.getRect=function(g){var S=Q({},i.apply(f,g));return"width"in S||(S.width=S.right-S.left,S.height=S.bottom-S.top),S},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,f){if(Wa(f)||_.object(f)){for(var g in this.options[i]=f,this._actions.map)this.options[g][i]=f;return this}return this.options[i]}},{key:"origin",value:function(i){return this._backCompatOption("origin",i)}},{key:"deltaSource",value:function(i){return i==="page"||i==="client"?(this.options.deltaSource=i,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var i=this.target;return _.string(i)?Array.from(this._context.querySelectorAll(i)):_.func(i)&&i.getAllElements?i.getAllElements():_.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||ue(this._context,i)}},{key:"testIgnoreAllow",value:function(i,f,g){return!this.testIgnore(i.ignoreFrom,f,g)&&this.testAllow(i.allowFrom,f,g)}},{key:"testAllow",value:function(i,f,g){return!i||!!_.element(g)&&(_.string(i)?me(g,i,f):!!_.element(i)&&ue(i,g))}},{key:"testIgnore",value:function(i,f,g){return!(!i||!_.element(g))&&(_.string(i)?me(g,i,f):!!_.element(i)&&ue(i,g))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,f,g,S,I){_.object(f)&&!_.array(f)&&(S=g,g=null);var H=Je(f,g,I);for(var G in H){G==="wheel"&&(G=X.wheelEvent);for(var de=0,Me=H[G];de<Me.length;de++){var ge=Me[de];Xr(G,this._actions)?this.events[i===xn.On?"on":"off"](G,ge):_.string(this.target)?this._scopeEvents[i===xn.On?"addDelegate":"removeDelegate"](this.target,this._context,G,ge,S):this._scopeEvents[i===xn.On?"add":"remove"](this.target,G,ge,S)}}return this}},{key:"on",value:function(i,f,g){return this._onOff(xn.On,i,f,g)}},{key:"off",value:function(i,f,g){return this._onOff(xn.Off,i,f,g)}},{key:"set",value:function(i){var f=this._defaults;for(var g in _.object(i)||(i={}),this.options=qr(f.base),this._actions.methodDict){var S=g,I=this._actions.methodDict[S];this.options[S]={},this.setPerAction(S,Q(Q({},f.perAction),f.actions[S])),this[I](i[S])}for(var H in i)H!=="getRect"?_.func(this[H])&&this[H](i[H]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(_.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var f=this._scopeEvents.delegatedEvents[i],g=f.length-1;g>=0;g--){var S=f[g],I=S.selector,H=S.context,G=S.listeners;I===this.target&&H===this._context&&f.splice(g,1);for(var de=G.length-1;de>=0;de--)this._scopeEvents.removeDelegate(this.target,this._context,i,G[de][0],G[de][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),$i=function(){function t(i){var f=this;c(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(g){var S=g.interactable,I=S.target,H=_.string(I)?f.selectorMap[I]:I[f.scope.id],G=ve(H,function(de){return de===S});H.splice(G,1)}})}return p(t,[{key:"new",value:function(i,f){f=Q(f||{},{actions:this.scope.actions});var g=new this.scope.Interactable(i,f,this.scope.document,this.scope.events);return this.scope.addDocument(g._doc),this.list.push(g),_.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(g)):(g.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(g)),this.scope.fire("interactable:new",{target:i,options:f,interactable:g,win:this.scope._win}),g}},{key:"getExisting",value:function(i,f){var g=f&&f.context||this.scope.document,S=_.string(i),I=S?this.selectorMap[i]:i[this.scope.id];if(I)return Ga(I,function(H){return H._context===g&&(S||H.inContext(i))})}},{key:"forEachMatch",value:function(i,f){for(var g=0,S=this.list;g<S.length;g++){var I=S[g],H=void 0;if((_.string(I.target)?_.element(i)&&re(i,I.target):i===I.target)&&I.inContext(i)&&(H=f(I)),H!==void 0)return H}}}]),t}(),Wo=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=X,this.defaults=qr(Wr),this.Eventable=Dn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(g){var S=function I(H,G){var de=g.interactables.getExisting(H,G);return de||((de=g.interactables.new(H,G)).events.global=I.globalEvents),de};return S.getPointerAverage=he,S.getTouchBBox=Qe,S.getTouchDistance=ra,S.getTouchAngle=Pe,S.getElementRect=va,S.getElementClientRect=Ne,S.matchesSelector=re,S.closest=Ge,S.globalEvents={},S.version="1.10.27",S.scope=g,S.use=function(I,H){return this.scope.usePlugin(I,H),this},S.isSet=function(I,H){return!!this.scope.interactables.get(I,H&&H.context)},S.on=Ee(function(I,H,G){if(_.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),_.array(I)){for(var de=0,Me=I;de<Me.length;de++){var ge=Me[de];this.on(ge,H,G)}return this}if(_.object(I)){for(var aa in I)this.on(aa,I[aa],H);return this}return Xr(I,this.scope.actions)?this.globalEvents[I]?this.globalEvents[I].push(H):this.globalEvents[I]=[H]:this.scope.events.add(this.scope.document,I,H,{options:G}),this},"The interact.on() method is being deprecated"),S.off=Ee(function(I,H,G){if(_.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),_.array(I)){for(var de=0,Me=I;de<Me.length;de++){var ge=Me[de];this.off(ge,H,G)}return this}if(_.object(I)){for(var aa in I)this.off(aa,I[aa],H);return this}var La;return Xr(I,this.scope.actions)?I in this.globalEvents&&(La=this.globalEvents[I].indexOf(H))!==-1&&this.globalEvents[I].splice(La,1):this.scope.events.remove(this.scope.document,I,H,G),this},"The interact.off() method is being deprecated"),S.debug=function(){return this.scope},S.supportsTouch=function(){return X.supportsTouch},S.supportsPointerEvent=function(){return X.supportsPointerEvent},S.stop=function(){for(var I=0,H=this.scope.interactions.list;I<H.length;I++)H[I].stop();return this},S.pointerMoveTolerance=function(I){return _.number(I)?(this.scope.interactions.pointerMoveTolerance=I,this):this.scope.interactions.pointerMoveTolerance},S.addDocument=function(I,H){this.scope.addDocument(I,H)},S.removeDocument=function(I){this.scope.removeDocument(I)},S}(this),this.InteractEvent=Br,this.Interactable=void 0,this.interactables=new $i(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(g){return i.removeDocument(g.target)};var f=this;this.Interactable=function(g){y(I,g);var S=B(I);function I(){return c(this,I),S.apply(this,arguments)}return p(I,[{key:"_defaults",get:function(){return f.defaults}},{key:"set",value:function(H){return w(u(I.prototype),"set",this).call(this,H),f.fire("interactable:set",{options:H,interactable:this}),this}},{key:"unset",value:function(){w(u(I.prototype),"unset",this).call(this);var H=f.interactables.list.indexOf(this);H<0||(f.interactables.list.splice(H,1),f.fire("interactable:unset",{interactable:this}))}}]),I}(Li)}return p(t,[{key:"addListeners",value:function(i,f){this.listenerMaps.push({id:f,map:i})}},{key:"fire",value:function(i,f){for(var g=0,S=this.listenerMaps;g<S.length;g++){var I=S[g].map[i];if(I&&I(f,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(f,g){return f.isInitialized=!0,_.window(g)&&b(g),le.init(g),X.init(g),Ze.init(g),f.window=g,f.document=g.document,f.usePlugin(Ii),f.usePlugin(Rn),f}(this,i)}},{key:"pluginIsInstalled",value:function(i){var f=i.id;return f?!!this._plugins.map[f]:this._plugins.list.indexOf(i)!==-1}},{key:"usePlugin",value:function(i,f){if(!this.isInitialized)return this;if(this.pluginIsInstalled(i))return this;if(i.id&&(this._plugins.map[i.id]=i),this._plugins.list.push(i),i.install&&i.install(this,f),i.listeners&&i.before){for(var g=0,S=this.listenerMaps.length,I=i.before.reduce(function(G,de){return G[de]=!0,G[Ko(de)]=!0,G},{});g<S;g++){var H=this.listenerMaps[g].id;if(H&&(I[H]||I[Ko(H)]))break}this.listenerMaps.splice(g,0,{id:i.id,map:i.listeners})}else i.listeners&&this.listenerMaps.push({id:i.id,map:i.listeners});return this}},{key:"addDocument",value:function(i,f){if(this.getDocIndex(i)!==-1)return!1;var g=L(i);f=f?Q({},f):{},this.documents.push({doc:i,options:f}),this.events.documents.push(i),i!==this.document&&this.events.add(g,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:g,scope:this,options:f})}},{key:"removeDocument",value:function(i){var f=this.getDocIndex(i),g=L(i),S=this.documents[f].options;this.events.remove(g,"unload",this.onWindowUnload),this.documents.splice(f,1),this.events.documents.splice(f,1),this.fire("scope:remove-document",{doc:i,window:g,scope:this,options:S})}},{key:"getDocIndex",value:function(i){for(var f=0;f<this.documents.length;f++)if(this.documents[f].doc===i)return f;return-1}},{key:"getDocOptions",value:function(i){var f=this.getDocIndex(i);return f===-1?null:this.documents[f].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function Ko(t){return t&&t.replace(/\/.*$/,"")}var Yo=new Wo,Or=Yo.interactStatic,Ri=typeof globalThis<"u"?globalThis:window;Yo.init(Ri);var Ao=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(g){var S=g[0],I=g[1];return S in t||I in t}),f=function(g,S){for(var I=t.range,H=t.limits,G=H===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:H,de=t.offset,Me=de===void 0?{x:0,y:0}:de,ge={range:I,grid:t,x:null,y:null},aa=0;aa<i.length;aa++){var La=i[aa],tl=La[0],rl=La[1],cl=Math.round((g-Me.x)/t[tl]),Cl=Math.round((S-Me.y)/t[rl]);ge[tl]=Math.max(G.left,Math.min(G.right,cl*t[tl]+Me.x)),ge[rl]=Math.max(G.top,Math.min(G.bottom,Cl*t[rl]+Me.y))}return ge};return f.grid=t,f.coordFields=i,f}}),Vi={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=Q(i.snappers||{},Ao),i.createSnapGrid=i.snappers.grid}},zo=Vi,Go={start:function(t){var i=t.state,f=t.rect,g=t.edges,S=t.pageCoords,I=i.options,H=I.ratio,G=I.enabled,de=i.options,Me=de.equalDelta,ge=de.modifiers;H==="preserve"&&(H=f.width/f.height),i.startCoords=Q({},S),i.startRect=Q({},f),i.ratio=H,i.equalDelta=Me;var aa=i.linkedEdges={top:g.top||g.left&&!g.bottom,left:g.left||g.top&&!g.right,bottom:g.bottom||g.right&&!g.top,right:g.right||g.bottom&&!g.left};if(i.xIsPrimaryAxis=!(!g.left&&!g.right),i.equalDelta){var La=(aa.left?1:-1)*(aa.top?1:-1);i.edgeSign={x:La,y:La}}else i.edgeSign={x:aa.left?-1:1,y:aa.top?-1:1};if(G!==!1&&Q(g,aa),ge!=null&&ge.length){var tl=new fn(t.interaction);tl.copyFrom(t.interaction.modification),tl.prepareStates(ge),i.subModification=tl,tl.startAll(o({},t))}},set:function(t){var i=t.state,f=t.rect,g=t.coords,S=i.linkedEdges,I=Q({},g),H=i.equalDelta?Jo:Pi;if(Q(t.edges,S),H(i,i.xIsPrimaryAxis,g,f),!i.subModification)return null;var G=Q({},f);Te(S,G,{x:g.x-I.x,y:g.y-I.y});var de=i.subModification.setAll(o(o({},t),{},{rect:G,edges:S,pageCoords:g,prevCoords:g,prevRect:G})),Me=de.delta;return de.changed&&(H(i,Math.abs(Me.x)>Math.abs(Me.y),de.coords,de.rect),Q(g,de.coords)),de.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Jo(t,i,f){var g=t.startCoords,S=t.edgeSign;i?f.y=g.y+(f.x-g.x)*S.y:f.x=g.x+(f.y-g.y)*S.x}function Pi(t,i,f,g){var S=t.startRect,I=t.startCoords,H=t.ratio,G=t.edgeSign;if(i){var de=g.width/H;f.y=I.y+(de-S.height)*G.y}else{var Me=g.height*H;f.x=I.x+(Me-S.width)*G.x}}var Fi=Dr(Go,"aspectRatio"),Xo=function(){};Xo._defaults={};var _n=Xo;function wn(t,i,f){return _.func(t)?Ve(t,i.interactable,i.element,[f.x,f.y,i]):Ve(t,i.interactable,i.element)}var Pn={start:function(t){var i=t.rect,f=t.startOffset,g=t.state,S=t.interaction,I=t.pageCoords,H=g.options,G=H.elementRect,de=Q({left:0,top:0,right:0,bottom:0},H.offset||{});if(i&&G){var Me=wn(H.restriction,S,I);if(Me){var ge=Me.right-Me.left-i.width,aa=Me.bottom-Me.top-i.height;ge<0&&(de.left+=ge,de.right+=ge),aa<0&&(de.top+=aa,de.bottom+=aa)}de.left+=f.left-i.width*G.left,de.top+=f.top-i.height*G.top,de.right+=f.right-i.width*(1-G.right),de.bottom+=f.bottom-i.height*(1-G.bottom)}g.offset=de},set:function(t){var i=t.coords,f=t.interaction,g=t.state,S=g.options,I=g.offset,H=wn(S.restriction,f,i);if(H){var G=function(de){return!de||"left"in de&&"top"in de||((de=Q({},de)).left=de.x||0,de.top=de.y||0,de.right=de.right||de.left+de.width,de.bottom=de.bottom||de.top+de.height),de}(H);i.x=Math.max(Math.min(G.right-I.right,i.x),G.left+I.left),i.y=Math.max(Math.min(G.bottom-I.bottom,i.y),G.top+I.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ji=Dr(Pn,"restrict"),Zo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Qo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ei(t,i){for(var f=0,g=["top","left","bottom","right"];f<g.length;f++){var S=g[f];S in t||(t[S]=i[S])}return t}var Fn={noInner:Zo,noOuter:Qo,start:function(t){var i,f=t.interaction,g=t.startOffset,S=t.state,I=S.options;I&&(i=xa(wn(I.offset,f,f.coords.start.page))),i=i||{x:0,y:0},S.offset={top:i.y+g.top,left:i.x+g.left,bottom:i.y-g.bottom,right:i.x-g.right}},set:function(t){var i=t.coords,f=t.edges,g=t.interaction,S=t.state,I=S.offset,H=S.options;if(f){var G=Q({},i),de=wn(H.inner,g,G)||{},Me=wn(H.outer,g,G)||{};ei(de,Zo),ei(Me,Qo),f.top?i.y=Math.min(Math.max(Me.top+I.top,G.y),de.top+I.top):f.bottom&&(i.y=Math.max(Math.min(Me.bottom+I.bottom,G.y),de.bottom+I.bottom)),f.left?i.x=Math.min(Math.max(Me.left+I.left,G.x),de.left+I.left):f.right&&(i.x=Math.max(Math.min(Me.right+I.right,G.x),de.right+I.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Zn=Dr(Fn,"restrictEdges"),ai=Q({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Pn.defaults),li=Dr({start:Pn.start,set:Pn.set,defaults:ai},"restrictRect"),Qn={width:-1/0,height:-1/0},Hi={width:1/0,height:1/0},ri=Dr({start:function(t){return Fn.start(t)},set:function(t){var i=t.interaction,f=t.state,g=t.rect,S=t.edges,I=f.options;if(S){var H=He(wn(I.min,i,t.coords))||Qn,G=He(wn(I.max,i,t.coords))||Hi;f.options={endOnly:I.endOnly,inner:Q({},Fn.noInner),outer:Q({},Fn.noOuter)},S.top?(f.options.inner.top=g.bottom-H.height,f.options.outer.top=g.bottom-G.height):S.bottom&&(f.options.inner.bottom=g.top+H.height,f.options.outer.bottom=g.top+G.height),S.left?(f.options.inner.left=g.right-H.width,f.options.outer.left=g.right-G.width):S.right&&(f.options.inner.right=g.left+H.width,f.options.outer.right=g.left+G.width),Fn.set(t),f.options=I}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Tn={start:function(t){var i,f=t.interaction,g=t.interactable,S=t.element,I=t.rect,H=t.state,G=t.startOffset,de=H.options,Me=de.offsetWithOrigin?function(La){var tl=La.interaction.element,rl=xa(Ve(La.state.options.origin,null,null,[tl])),cl=rl||Re(La.interactable,tl,La.interaction.prepared.name);return cl}(t):{x:0,y:0};if(de.offset==="startCoords")i={x:f.coords.start.page.x,y:f.coords.start.page.y};else{var ge=Ve(de.offset,g,S,[f]);(i=xa(ge)||{x:0,y:0}).x+=Me.x,i.y+=Me.y}var aa=de.relativePoints;H.offsets=I&&aa&&aa.length?aa.map(function(La,tl){return{index:tl,relativePoint:La,x:G.left-I.width*La.x+i.x,y:G.top-I.height*La.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,f=t.coords,g=t.state,S=g.options,I=g.offsets,H=Re(i.interactable,i.element,i.prepared.name),G=Q({},f),de=[];S.offsetWithOrigin||(G.x-=H.x,G.y-=H.y);for(var Me=0,ge=I;Me<ge.length;Me++)for(var aa=ge[Me],La=G.x-aa.x,tl=G.y-aa.y,rl=0,cl=S.targets.length;rl<cl;rl++){var Cl=S.targets[rl],ul=void 0;(ul=_.func(Cl)?Cl(La,tl,i._proxy,aa,rl):Cl)&&de.push({x:(_.number(ul.x)?ul.x:La)+aa.x,y:(_.number(ul.y)?ul.y:tl)+aa.y,range:_.number(ul.range)?ul.range:S.range,source:Cl,index:rl,offset:aa})}for(var Bl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ol=0;Ol<de.length;Ol++){var Yl=de[Ol],Nl=Yl.range,jl=Yl.x-G.x,Ir=Yl.y-G.y,mr=Fa(jl,Ir),Fr=mr<=Nl;Nl===1/0&&Bl.inRange&&Bl.range!==1/0&&(Fr=!1),Bl.target&&!(Fr?Bl.inRange&&Nl!==1/0?mr/Nl<Bl.distance/Bl.range:Nl===1/0&&Bl.range!==1/0||mr<Bl.distance:!Bl.inRange&&mr<Bl.distance)||(Bl.target=Yl,Bl.distance=mr,Bl.range=Nl,Bl.inRange=Fr,Bl.delta.x=jl,Bl.delta.y=Ir)}return Bl.inRange&&(f.x=Bl.target.x,f.y=Bl.target.y),g.closest=Bl,Bl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ui=Dr(Tn,"snap"),co={start:function(t){var i=t.state,f=t.edges,g=i.options;if(!f)return null;t.state={options:{targets:null,relativePoints:[{x:f.left?0:1,y:f.top?0:1}],offset:g.offset||"self",origin:{x:0,y:0},range:g.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Tn.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,f=t.state,g=t.coords,S=f.options,I=f.offsets,H={x:g.x-I[0].x,y:g.y-I[0].y};f.options=Q({},S),f.options.targets=[];for(var G=0,de=S.targets||[];G<de.length;G++){var Me=de[G],ge=void 0;if(ge=_.func(Me)?Me(H.x,H.y,i):Me){for(var aa=0,La=f.targetFields;aa<La.length;aa++){var tl=La[aa],rl=tl[0],cl=tl[1];if(rl in ge||cl in ge){ge.x=ge[rl],ge.y=ge[cl];break}}f.options.targets.push(ge)}}var Cl=Tn.set(t);return f.options=S,Cl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},qi=Dr(co,"snapSize"),Mo={aspectRatio:Fi,restrictEdges:Zn,restrict:ji,restrictRect:li,restrictSize:ri,snapEdges:Dr({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],co.start(t)):null},set:co.set,defaults:Q(qr(co.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ui,snapSize:qi,spring:_n,avoid:_n,transform:_n,rubberband:_n},Wi={id:"modifiers",install:function(t){var i=t.interactStatic;for(var f in t.usePlugin(Il),t.usePlugin(zo),i.modifiers=Mo,Mo){var g=Mo[f],S=g._defaults,I=g._methods;S._methods=I,t.defaults.perAction[f]=S}}},Ki=Wi,ni=function(t){y(f,t);var i=B(f);function f(g,S,I,H,G,de){var Me;if(c(this,f),F(C(Me=i.call(this,G)),I),I!==S&&F(C(Me),S),Me.timeStamp=de,Me.originalEvent=I,Me.type=g,Me.pointerId=Oe(S),Me.pointerType=_a(S),Me.target=H,Me.currentTarget=null,g==="tap"){var ge=G.getPointerIndex(S);Me.dt=Me.timeStamp-G.pointers[ge].downTime;var aa=Me.timeStamp-G.tapTime;Me.double=!!G.prevTap&&G.prevTap.type!=="doubletap"&&G.prevTap.target===Me.target&&aa<500}else g==="doubletap"&&(Me.dt=S.timeStamp-G.tapTime,Me.double=!0);return Me}return p(f,[{key:"_subtractOrigin",value:function(g){var S=g.x,I=g.y;return this.pageX-=S,this.pageY-=I,this.clientX-=S,this.clientY-=I,this}},{key:"_addOrigin",value:function(g){var S=g.x,I=g.y;return this.pageX+=S,this.pageY+=I,this.clientX+=S,this.clientY+=I,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),f}(ya),jn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=jn,t.defaults.actions.pointerEvents=jn.defaults,Q(t.actions.phaselessTypes,jn.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.down,f=t.pointerInfo;!i&&f.hold||(f.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var f=t.interaction,g=t.pointer,S=t.event,I=t.eventTarget;t.duplicate||f.pointerIsDown&&!f.pointerWasMoved||(f.pointerIsDown&&Oo(t),Cn({interaction:f,pointer:g,event:S,eventTarget:I,type:"move"},i))},"interactions:down":function(t,i){(function(f,g){for(var S=f.interaction,I=f.pointer,H=f.event,G=f.eventTarget,de=f.pointerIndex,Me=S.pointers[de].hold,ge=Sa(G),aa={interaction:S,pointer:I,event:H,eventTarget:G,type:"hold",targets:[],path:ge,node:null},La=0;La<ge.length;La++){var tl=ge[La];aa.node=tl,g.fire("pointerEvents:collect-targets",aa)}if(aa.targets.length){for(var rl=1/0,cl=0,Cl=aa.targets;cl<Cl.length;cl++){var ul=Cl[cl].eventable.options.holdDuration;ul<rl&&(rl=ul)}Me.duration=rl,Me.timeout=setTimeout(function(){Cn({interaction:S,eventTarget:G,pointer:I,event:H,type:"hold"},g)},rl)}})(t,i),Cn(t,i)},"interactions:up":function(t,i){Oo(t),Cn(t,i),function(f,g){var S=f.interaction,I=f.pointer,H=f.event,G=f.eventTarget;S.pointerWasMoved||Cn({interaction:S,eventTarget:G,pointer:I,event:H,type:"tap"},g)}(t,i)},"interactions:cancel":function(t,i){Oo(t),Cn(t,i)}},PointerEvent:ni,fire:Cn,collectEventTargets:oi,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Cn(t,i){var f=t.interaction,g=t.pointer,S=t.event,I=t.eventTarget,H=t.type,G=t.targets,de=G===void 0?oi(t,i):G,Me=new ni(H,g,S,I,f,i.now());i.fire("pointerEvents:new",{pointerEvent:Me});for(var ge={interaction:f,pointer:g,event:S,eventTarget:I,targets:de,type:H,pointerEvent:Me},aa=0;aa<de.length;aa++){var La=de[aa];for(var tl in La.props||{})Me[tl]=La.props[tl];var rl=Re(La.eventable,La.node);if(Me._subtractOrigin(rl),Me.eventable=La.eventable,Me.currentTarget=La.node,La.eventable.fire(Me),Me._addOrigin(rl),Me.immediatePropagationStopped||Me.propagationStopped&&aa+1<de.length&&de[aa+1].node!==Me.currentTarget)break}if(i.fire("pointerEvents:fired",ge),H==="tap"){var cl=Me.double?Cn({interaction:f,pointer:g,event:S,eventTarget:I,type:"doubletap"},i):Me;f.prevTap=cl,f.tapTime=cl.timeStamp}return Me}function oi(t,i){var f=t.interaction,g=t.pointer,S=t.event,I=t.eventTarget,H=t.type,G=f.getPointerIndex(g),de=f.pointers[G];if(H==="tap"&&(f.pointerWasMoved||!de||de.downTarget!==I))return[];for(var Me=Sa(I),ge={interaction:f,pointer:g,event:S,eventTarget:I,type:H,path:Me,targets:[],node:null},aa=0;aa<Me.length;aa++){var La=Me[aa];ge.node=La,i.fire("pointerEvents:collect-targets",ge)}return H==="hold"&&(ge.targets=ge.targets.filter(function(tl){var rl,cl;return tl.eventable.options.holdDuration===((rl=f.pointers[G])==null||(cl=rl.hold)==null?void 0:cl.duration)})),ge.targets}function Oo(t){var i=t.interaction,f=t.pointerIndex,g=i.pointers[f].hold;g&&g.timeout&&(clearTimeout(g.timeout),g.timeout=null)}var Yi=Object.freeze({__proto__:null,default:jn});function uo(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Gi={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(jn);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)]=uo,t},{"pointerEvents:new":function(t){var i=t.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var f=t.interaction,g=t.pointerEvent,S=t.eventTarget,I=t.targets;if(g.type==="hold"&&I.length){var H=I[0].eventable.options.holdRepeatInterval;H<=0||(f.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:f,eventTarget:S,type:"hold",pointer:g,event:g},i)},H))}}})},Ji=Gi,Xi={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(g){return Q(this.events.options,g),this};var f=i.prototype._backCompatOption;i.prototype._backCompatOption=function(g,S){var I=f.call(this,g,S);return I===this&&(this.events.options[g]=S),I}},listeners:{"pointerEvents:collect-targets":function(t,i){var f=t.targets,g=t.node,S=t.type,I=t.eventTarget;i.interactables.forEachMatch(g,function(H){var G=H.events,de=G.options;G.types[S]&&G.types[S].length&&H.testIgnoreAllow(de,g,I)&&f.push({node:g,eventable:G,props:{interactable:H}})})},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(f){return i.getRect(f)}},"interactable:set":function(t,i){var f=t.interactable,g=t.options;Q(f.events.options,i.pointerEvents.defaults),Q(f.events.options,g.pointerEvents||{})}}},Zi=Xi,ii={id:"pointer-events",install:function(t){t.usePlugin(Yi),t.usePlugin(Ji),t.usePlugin(Zi)}},po=ii,Qi={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(f){return function(g,S,I){for(var H=g.getAllElements(),G=I.window.Promise,de=G?[]:null,Me=function(){var aa=H[ge],La=g.getRect(aa);if(!La)return 1;var tl,rl=Ga(I.interactions.list,function(ul){return ul.interacting()&&ul.interactable===g&&ul.element===aa&&ul.prepared.name===S.name});if(rl)rl.move(),de&&(tl=rl._reflowPromise||new G(function(ul){rl._reflowResolve=ul}));else{var cl=He(La),Cl=function(ul){return{coords:ul,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:cl.x,y:cl.y},client:{x:cl.x,y:cl.y},timeStamp:I.now()});tl=function(ul,Bl,Ol,Yl,Nl){var jl=ul.interactions.new({pointerType:"reflow"}),Ir={interaction:jl,event:Nl,pointer:Nl,eventTarget:Ol,phase:"reflow"};jl.interactable=Bl,jl.element=Ol,jl.prevEvent=Nl,jl.updatePointer(Nl,Nl,Ol,!0),ne(jl.coords.delta),qa(jl.prepared,Yl),jl._doPhase(Ir);var mr=ul.window,Fr=mr.Promise,en=Fr?new Fr(function(sn){jl._reflowResolve=sn}):void 0;return jl._reflowPromise=en,jl.start(Yl,Bl,Ol),jl._interacting?(jl.move(Ir),jl.end(Nl)):(jl.stop(),jl._reflowResolve()),jl.removePointer(Nl,Nl),en}(I,g,aa,S,Cl)}de&&de.push(tl)},ge=0;ge<H.length&&!Me();ge++);return de&&G.all(de).then(function(){return g})}(this,f,t)}},listeners:{"interactions:stop":function(t,i){var f=t.interaction;f.pointerType==="reflow"&&(f._reflowResolve&&f._reflowResolve(),function(g,S){g.splice(g.indexOf(S),1)}(i.interactions.list,f))}}},et=Qi;if(Or.use(pn),Or.use(cr),Or.use(po),Or.use(Qr),Or.use(Ki),Or.use(Sr),Or.use(xe),Or.use(ye),Or.use(et),Or.default=Or,s(l)==="object"&&l)try{l.exports=Or}catch{}return Or.default=Or,Or})}(Ro,Ro.exports)),Ro.exports}var G4=Y4();const Ns=In.getDefaultExportFromCjs(G4),Ai=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(zc),m=a.inject(Mc);if(!c)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const p=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,u=!1,x=NaN,C=NaN,B=NaN,w=NaN,V=-1,A=-1,N=-1,Y=-1,b=o.x,L=o.y,T=o.w,k=o.h;const _=a.ref(),U=a.reactive({i:a.toRef(o,"i"),state:v,wrapper:_,calcXY:Ve});function W(te){Je(te)}function se(){Ja()}function Ce(te){rn(o.isDraggable)&&(v.draggable=te)}function Ie(te){rn(o.isResizable)&&(v.resizable=te)}function De(te){rn(o.isBounded)&&(v.bounded=te)}function le(te){v.transformScale=te}function we(te){v.rowHeight=te}function X(te){v.maxRows=te}function ue(){v.rtl=Es()==="rtl",Ja()}function Ge(te){v.cols=Math.floor(te)}c.increaseItem(U),a.onBeforeMount(()=>{v.rtl=Es()==="rtl"}),a.onMounted(()=>{c.responsive&&c.lastBreakpoint?v.cols=Rc(c.lastBreakpoint,c.cols):v.cols=c.colNum,v.rowHeight=c.rowHeight,v.containerWidth=c.width!==null?c.width:100,v.margin=c.margin!==void 0?c.margin.map(Number):[10,10],v.maxRows=c.maxRows,rn(o.isDraggable)?v.draggable=c.isDraggable:v.draggable=o.isDraggable,rn(o.isResizable)?v.resizable=c.isResizable:v.resizable=o.isResizable,rn(o.isBounded)?v.bounded=c.isBounded:v.bounded=o.isBounded,v.transformScale=c.transformScale,v.useCssTransforms=c.useCssTransforms,v.useStyleCursor=c.useStyleCursor,a.watchEffect(()=>{b=o.x,L=o.y,k=o.h,T=o.w,jr(va)}),m.on("updateWidth",W),m.on("compact",se),m.on("setDraggable",Ce),m.on("setResizable",Ie),m.on("setBounded",De),m.on("setTransformScale",le),m.on("setRowHeight",we),m.on("setMaxRows",X),m.on("directionchange",ue),m.on("setColNum",Ge)}),a.onBeforeUnmount(()=>{m.off("updateWidth",W),m.off("compact",se),m.off("setDraggable",Ce),m.off("setResizable",Ie),m.off("setBounded",De),m.off("setTransformScale",le),m.off("setRowHeight",we),m.off("setMaxRows",X),m.off("directionchange",ue),m.off("setColNum",Ge),p.value&&(p.value.unset(),p.value=null),c.decreaseItem(U)}),r({state:v,wrapper:_});const za=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,re=a.computed(()=>v.resizable&&!o.static),E=a.computed(()=>c.isMirrored?!v.rtl:v.rtl),ae=a.computed(()=>(v.draggable||v.resizable)&&!o.static),me=P4("item"),ce=a.computed(()=>({[me.b()]:!0,[me.bm("resizable")]:re.value,[me.bm("static")]:o.static,[me.bm("resizing")]:v.isResizing,[me.bm("dragging")]:v.isDragging,[me.bm("transform")]:v.useCssTransforms,[me.bm("rtl")]:E.value,[me.bm("no-touch")]:za&&ae.value})),Ne=a.computed(()=>[me.be("resizer"),E.value&&me.bem("resizer","rtl")].filter(Boolean));a.watch(()=>o.isDraggable,te=>{v.draggable=te}),a.watch(()=>o.static,()=>{jr(F),jr(ne)}),a.watch(()=>v.draggable,()=>{jr(F)}),a.watch(()=>o.isResizable,te=>{v.resizable=te}),a.watch(()=>o.isBounded,te=>{v.bounded=te}),a.watch(()=>v.resizable,()=>{jr(ne)}),a.watch(()=>v.rowHeight,()=>{jr(va),jr(Sa)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{jr(ne),jr(va),jr(Sa)}),a.watch([()=>o.minH,()=>o.maxH,()=>o.minW,()=>o.maxW],()=>{jr(ne)}),a.watch(E,()=>{jr(ne),jr(va)}),a.watch([()=>c.margin,()=>c.margin[0],()=>c.margin[1]],()=>{const te=c.margin;!te||te[0]===v.margin[0]&&te[1]===v.margin[1]||(v.margin=te.map(Number),jr(va),jr(Sa))});function va(){o.x+o.w>v.cols?(b=0,T=o.w>v.cols?v.cols:o.w):(b=o.x,T=o.w);const te=na(b,L,T,k);v.isDragging&&(te.top=v.dragging.top,E.value?te.right=v.dragging.left:te.left=v.dragging.left),v.isResizing&&(te.width=v.resizing.width,te.height=v.resizing.height);let ga;v.useCssTransforms?E.value?ga=L4(te.top,te.right,te.width,te.height):ga=I4(te.top,te.left,te.width,te.height):E.value?ga=R4(te.top,te.right,te.width,te.height):ga=$4(te.top,te.left,te.width,te.height),v.style=ga}function Sa(){const te={};for(const ga of["width","height"]){const ta=v.style[ga].match(/^(\d+)px$/);if(!ta)return;te[ga]=ta[1]}s("container-resized",o.i,o.h,o.w,te.height,te.width)}function Wa(te){if(o.static)return;const ga=te.type;if(ga==="resizestart"&&v.isResizing||ga!=="resizestart"&&!v.isResizing)return;const ta=Cs(te);if(rn(ta))return;const{x:Oe,y:_e}=ta,Da={width:0,height:0};let he;switch(ga){case"resizestart":{ne(),V=T,A=k,he=na(b,L,T,k),Da.width=he.width,Da.height=he.height,v.resizing=Da,v.isResizing=!0;break}case"resizemove":{!te.edges.right&&!te.edges.left&&(B=Oe),!te.edges.top&&!te.edges.bottom&&(w=_e);const Qe=Ss(B,w,Oe,_e);E.value?Da.width=v.resizing.width-Qe.deltaX/v.transformScale:Da.width=v.resizing.width+Qe.deltaX/v.transformScale,Da.height=v.resizing.height+Qe.deltaY/v.transformScale,v.resizing=Da;break}case"resizeend":{he=na(b,L,T,k),Da.width=he.width,Da.height=he.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}he=Re(Da.height,Da.width),he.w<o.minW&&(he.w=o.minW),he.w>o.maxW&&(he.w=o.maxW),he.h<o.minH&&(he.h=o.minH),he.h>o.maxH&&(he.h=o.maxH),he.h<1&&(he.h=1),he.w<1&&(he.w=1),B=Oe,w=_e,(T!==he.w||k!==he.h)&&s("resize",o.i,he.h,he.w,Da.height,Da.width),te.type==="resizeend"&&(V!==T||A!==k)&&s("resized",o.i,he.h,he.w,Da.height,Da.width),m.emit("resizeEvent",te.type,o.i,b,L,he.h,he.w)}function Q(te){if(o.static||v.isResizing)return;const ga=te.type;if(ga==="dragstart"&&v.isDragging||ga!=="dragstart"&&!v.isDragging)return;const ta=Cs(te);if(rn(ta))return;const{x:Oe,y:_e}=ta,Da=te.target;if(!Da.offsetParent)return;const he={top:0,left:0};switch(ga){case"dragstart":{N=b,Y=L;const ra=Da.offsetParent.getBoundingClientRect(),Pe=Da.getBoundingClientRect(),_a=Pe.left/v.transformScale,Le=ra.left/v.transformScale,ya=Pe.right/v.transformScale,Xe=ra.right/v.transformScale,wa=Pe.top/v.transformScale,ve=ra.top/v.transformScale;E.value?he.left=(ya-Xe)*-1:he.left=_a-Le,he.top=wa-ve,v.dragging=he,v.isDragging=!0;break}case"dragmove":{const ra=Ss(x,C,Oe,_e);if(E.value?he.left=v.dragging.left-ra.deltaX/v.transformScale:he.left=v.dragging.left+ra.deltaX/v.transformScale,he.top=v.dragging.top+ra.deltaY/v.transformScale,v.bounded){const Pe=Da.offsetParent.clientHeight-He(o.h,v.rowHeight,v.margin[1]);he.top=Te(he.top,0,Pe);const _a=xa(),Le=v.containerWidth-He(o.w,_a,v.margin[0]);he.left=Te(he.left,0,Le)}v.dragging=he;break}case"dragend":{const ra=Da.offsetParent.getBoundingClientRect(),Pe=Da.getBoundingClientRect(),_a=Pe.left/v.transformScale,Le=ra.left/v.transformScale,ya=Pe.right/v.transformScale,Xe=ra.right/v.transformScale,wa=Pe.top/v.transformScale,ve=ra.top/v.transformScale;E.value?he.left=(ya-Xe)*-1:he.left=_a-Le,he.top=wa-ve,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let Qe;E.value,Qe=Ve(he.top,he.left),x=Oe,C=_e,(b!==Qe.x||L!==Qe.y)&&s("move",o.i,Qe.x,Qe.y),te.type==="dragend"&&(N!==b||Y!==L)&&s("moved",o.i,Qe.x,Qe.y),m.emit("dragEvent",te.type,o.i,Qe.x,Qe.y,k,T)}function na(te,ga,ta,Oe){const _e=xa();let Da;return E.value?Da={right:Math.round(_e*te+(te+1)*v.margin[0]),top:Math.round(v.rowHeight*ga+(ga+1)*v.margin[1]),width:ta===1/0?ta:Math.round(_e*ta+Math.max(0,ta-1)*v.margin[0]),height:Oe===1/0?Oe:Math.round(v.rowHeight*Oe+Math.max(0,Oe-1)*v.margin[1])}:Da={left:Math.round(_e*te+(te+1)*v.margin[0]),top:Math.round(v.rowHeight*ga+(ga+1)*v.margin[1]),width:ta===1/0?ta:Math.round(_e*ta+Math.max(0,ta-1)*v.margin[0]),height:Oe===1/0?Oe:Math.round(v.rowHeight*Oe+Math.max(0,Oe-1)*v.margin[1])},Da}function Ve(te,ga){const ta=xa();let Oe=Math.round((ga-v.margin[0])/(ta+v.margin[0])),_e=Math.round((te-v.margin[1])/(v.rowHeight+v.margin[1]));return Oe=Math.max(Math.min(Oe,v.cols-T),0),_e=Math.max(Math.min(_e,v.maxRows-k),0),{x:Oe,y:_e}}function xa(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function He(te,ga,ta){return Number.isFinite(te)?Math.round(ga*te+Math.max(0,te-1)*ta):te}function Te(te,ga,ta){return Math.max(Math.min(te,ta),ga)}function Re(te,ga,ta=!1){const Oe=xa();let _e=Math.round((ga+v.margin[0])/(Oe+v.margin[0])),Da=0;return ta?Da=Math.ceil((te+v.margin[1])/(v.rowHeight+v.margin[1])):Da=Math.round((te+v.margin[1])/(v.rowHeight+v.margin[1])),_e=Math.max(Math.min(_e,v.cols-b),0),Da=Math.max(Math.min(Da,v.maxRows-L),0),{w:_e,h:Da}}function Je(te,ga){v.containerWidth=te}function Ja(){va()}function Fa(){!p.value&&_.value&&(p.value=Ns(_.value),v.useStyleCursor||p.value.styleCursor(!1))}const P=xs(Q);function F(){if(Fa(),!!p.value)if(v.draggable&&!o.static){const te={ignoreFrom:o.dragIgnoreFrom,allowFrom:o.dragAllowFrom,...o.dragOption};p.value.draggable(te),y||(y=!0,p.value.on("dragstart dragmove dragend",ga=>{ga.type==="dragmove"?P(ga):Q(ga)}))}else p.value.draggable({enabled:!1})}const J=xs(Wa);function ne(){if(Fa(),!!p.value)if(v.resizable&&!o.static){const te=na(0,0,o.maxW,o.maxH),ga=na(0,0,o.minW,o.minH),ta={edges:{left:E.value?`.${Ne.value[0]}`:!1,right:E.value?!1:`.${Ne.value[0]}`,bottom:`.${Ne.value[0]}`,top:!1},ignoreFrom:o.resizeIgnoreFrom,restrictSize:{min:{height:ga.height*v.transformScale,width:ga.width*v.transformScale},max:{height:te.height*v.transformScale,width:te.width*v.transformScale}},...o.resizeOption};o.preserveAspectRatio&&(ta.modifiers=[Ns.modifiers.aspectRatio({ratio:"preserve"})]),p.value.resizable(ta),u||(u=!0,p.value.on("resizestart resizemove resizeend",Oe=>{Oe.type==="resizemove"?J(Oe):Wa(Oe)}))}else p.value.resizable({enabled:!1})}return(te,ga)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:_,class:a.normalizeClass(ce.value),style:a.normalizeStyle(v.style)},[a.renderSlot(te.$slots,"default"),re.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(Ne.value)},null,2)):a.createCommentVNode("",!0)],6))}}),to=typeof window<"u";var Bs;to&&(Bs=window==null?void 0:window.navigator)!=null&&Bs.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ts(l){return l!=null}function As(){}const J4=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(J4)));const X4=to&&("ontouchstart"in window||Q4()>0),Z4=X4?"pointerdown":"click";function Q4(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function e6(l,r,n=window.Event){const{type:o,bubbles:s=!1,cancelable:c=!1,...m}=r;if(!Ts(o)||o==="")return!1;let p;return Ts(n)?p=new n(o,{bubbles:s,cancelable:c}):(p=document.createEvent("HTMLEvents"),p.initEvent(o,s,c)),Object.assign(p,m),l.dispatchEvent(p)}const a6="clickoutside",l6=new Set;to&&document.addEventListener(Z4,l=>{const r=l.target,n=l.composedPath&&l.composedPath();l6.forEach(o=>{o!==r&&(n?!n.includes(o):!o.contains(r))&&(!o.__transferElement||o.__transferElement!==r&&!o.__transferElement.contains(r))&&e6(o,{type:a6})})},!0);const r6=[["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 ki;if(to){for(const l of r6)if(l[1]in document){ki=l;break}}a.computed(()=>!1);const n6=new Set,o6=new WeakMap;if(to&&ki){const l=ki[2],r=ki[4];document.addEventListener(r,()=>{if(n6.forEach(n=>{n.value=!1}),document[l]){const n=o6.get(document[l]);n&&(n.value=!0)}},!1)}const Pc=new Map;Pc.set("x",0);Pc.set("y",0);var oo=[],i6=function(){return oo.some(function(l){return l.activeTargets.length>0})},t6=function(){return oo.some(function(l){return l.skippedTargets.length>0})},zs="ResizeObserver loop completed with undelivered notifications.",s6=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:zs}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=zs),window.dispatchEvent(l)},qo;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qo||(qo={}));var io=function(l){return Object.freeze(l)},c6=function(){function l(r,n){this.inlineSize=r,this.blockSize=n,io(this)}return l}(),Fc=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,io(this)}return l.prototype.toJSON=function(){var r=this,n=r.x,o=r.y,s=r.top,c=r.right,m=r.bottom,p=r.left,v=r.width,y=r.height;return{x:n,y:o,top:s,right:c,bottom:m,left:p,width:v,height:y}},l.fromRect=function(r){return new l(r.x,r.y,r.width,r.height)},l}(),Nt=function(l){return l instanceof SVGElement&&"getBBox"in l},jc=function(l){if(Nt(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)},Ms=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)},u6=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},jo=typeof window<"u"?window:{},mi=new WeakMap,Os=/auto|scroll/,d6=/^tb|vertical/,p6=/msie|trident/i.test(jo.navigator&&jo.navigator.userAgent),En=function(l){return parseFloat(l||"0")},Eo=function(l,r,n){return l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=!1),new c6((n?r:l)||0,(n?l:r)||0)},Is=io({devicePixelContentBoxSize:Eo(),borderBoxSize:Eo(),contentBoxSize:Eo(),contentRect:new Fc(0,0,0,0)}),Hc=function(l,r){if(r===void 0&&(r=!1),mi.has(l)&&!r)return mi.get(l);if(jc(l))return mi.set(l,Is),Is;var n=getComputedStyle(l),o=Nt(l)&&l.ownerSVGElement&&l.getBBox(),s=!p6&&n.boxSizing==="border-box",c=d6.test(n.writingMode||""),m=!o&&Os.test(n.overflowY||""),p=!o&&Os.test(n.overflowX||""),v=o?0:En(n.paddingTop),y=o?0:En(n.paddingRight),u=o?0:En(n.paddingBottom),x=o?0:En(n.paddingLeft),C=o?0:En(n.borderTopWidth),B=o?0:En(n.borderRightWidth),w=o?0:En(n.borderBottomWidth),V=o?0:En(n.borderLeftWidth),A=x+y,N=v+u,Y=V+B,b=C+w,L=p?l.offsetHeight-b-l.clientHeight:0,T=m?l.offsetWidth-Y-l.clientWidth:0,k=s?A+Y:0,_=s?N+b:0,U=o?o.width:En(n.width)-k-T,W=o?o.height:En(n.height)-_-L,se=U+A+T+Y,Ce=W+N+L+b,Ie=io({devicePixelContentBoxSize:Eo(Math.round(U*devicePixelRatio),Math.round(W*devicePixelRatio),c),borderBoxSize:Eo(se,Ce,c),contentBoxSize:Eo(U,W,c),contentRect:new Fc(x,v,U,W)});return mi.set(l,Ie),Ie},Uc=function(l,r,n){var o=Hc(l,n),s=o.borderBoxSize,c=o.contentBoxSize,m=o.devicePixelContentBoxSize;switch(r){case qo.DEVICE_PIXEL_CONTENT_BOX:return m;case qo.BORDER_BOX:return s;default:return c}},f6=function(){function l(r){var n=Hc(r);this.target=r,this.contentRect=n.contentRect,this.borderBoxSize=io([n.borderBoxSize]),this.contentBoxSize=io([n.contentBoxSize]),this.devicePixelContentBoxSize=io([n.devicePixelContentBoxSize])}return l}(),qc=function(l){if(jc(l))return 1/0;for(var r=0,n=l.parentNode;n;)r+=1,n=n.parentNode;return r},h6=function(){var l=1/0,r=[];oo.forEach(function(c){if(c.activeTargets.length!==0){var m=[];c.activeTargets.forEach(function(p){var v=new f6(p.target),y=qc(p.target);m.push(v),p.lastReportedSize=Uc(p.target,p.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},Ls=function(l){oo.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(n){n.isActive()&&(qc(n.target)>l?r.activeTargets.push(n):r.skippedTargets.push(n))})})},v6=function(){var l=0;for(Ls(l);i6();)l=h6(),Ls(l);return t6()&&s6(),l>0},tt,Wc=[],m6=function(){return Wc.splice(0).forEach(function(l){return l()})},y6=function(l){if(!tt){var r=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return m6()}).observe(n,o),tt=function(){n.textContent="".concat(r?r--:r++)}}Wc.push(l),tt()},g6=function(l){y6(function(){requestAnimationFrame(l)})},xi=0,b6=function(){return!!xi},k6=250,x6={attributes:!0,characterData:!0,childList:!0,subtree:!0},$s=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Rs=function(l){return l===void 0&&(l=0),Date.now()+l},st=!1,_6=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=k6),!st){st=!0;var o=Rs(r);g6(function(){var s=!1;try{s=v6()}finally{if(st=!1,r=o-Rs(),!b6())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,x6)};document.body?n():jo.addEventListener("DOMContentLoaded",n)},l.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),$s.forEach(function(n){return jo.addEventListener(n,r.listener,!0)}))},l.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),$s.forEach(function(n){return jo.removeEventListener(n,r.listener,!0)}),this.stopped=!0)},l}(),_t=new _6,Vs=function(l){!xi&&l>0&&_t.start(),xi+=l,!xi&&_t.stop()},w6=function(l){return!Nt(l)&&!u6(l)&&getComputedStyle(l).display==="inline"},C6=function(){function l(r,n){this.target=r,this.observedBox=n||qo.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var r=Uc(this.target,this.observedBox,!0);return w6(this.target)&&(this.lastReportedSize=r),this.lastReportedSize.inlineSize!==r.inlineSize||this.lastReportedSize.blockSize!==r.blockSize},l}(),S6=function(){function l(r,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=n}return l}(),yi=new WeakMap,Ps=function(l,r){for(var n=0;n<l.length;n+=1)if(l[n].target===r)return n;return-1},gi=function(){function l(){}return l.connect=function(r,n){var o=new S6(r,n);yi.set(r,o)},l.observe=function(r,n,o){var s=yi.get(r),c=s.observationTargets.length===0;Ps(s.observationTargets,n)<0&&(c&&oo.push(s),s.observationTargets.push(new C6(n,o&&o.box)),Vs(1),_t.schedule())},l.unobserve=function(r,n){var o=yi.get(r),s=Ps(o.observationTargets,n),c=o.observationTargets.length===1;s>=0&&(c&&oo.splice(oo.indexOf(o),1),o.observationTargets.splice(s,1),Vs(-1))},l.disconnect=function(r){var n=this,o=yi.get(r);o.observationTargets.slice().forEach(function(s){return n.unobserve(r,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},l}(),E6=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.");gi.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(!Ms(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");gi.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(!Ms(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");gi.unobserve(this,r)},l.prototype.disconnect=function(){gi.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const zi=new WeakMap;function D6(l){var r;for(let n=0,o=l.length;n<o;++n){const s=l[n],c=zi.get(s.target);if(typeof c=="function"){const{inlineSize:m,blockSize:p}=((r=s.borderBoxSize)==null?void 0:r[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;c(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:m??v,height:p??y}))}}}const Kc=new(to&&window.ResizeObserver||E6)(D6);function Fs(l,r){zi.set(l,r),Kc.observe(l)}function js(l){zi.has(l)&&(Kc.unobserve(l),zi.delete(l))}function N6(l={}){let r=As;const n=a.watch(()=>a.unref(l.target),s=>{r(),!(!s||typeof l.onResize!="function")&&(Fs(s,l.onResize),r=()=>{js(s),r=As})},{immediate:!0}),o=()=>{n(),r()};return a.getCurrentScope()&&a.onScopeDispose(o),{observeResize:Fs,unobserveResize:js,unobserve:o}}const B6=a.ref(!1);a.computed(()=>B6.value);const Hs="__theme_style__",ct="__theme_observer__",Us=a.reactive(new Map),qs=new Map;a.watch(Us,()=>{if(!to)return;qs.clear();const l=document.head.querySelector(`#${Hs}`);l&&document.head.removeChild(l);const r=document.createElement("style");let n=`.${ct} { width: 1px }`,o=1;for(const[s,[c,m]]of Us.entries())n+=` html.${c} .${ct}, .${m} .${ct} { width: ${++o}px }`,qs.set(o,s);r.textContent=n,r.id=Hs,document.head.appendChild(r)});const Yc=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,p=a.ref(o.layout),v=a.ref(),{observeResize:y,unobserveResize:u}=N6(),x=N4();x.on("resizeEvent",C),x.on("dragEvent",B),a.onBeforeMount(()=>{s("layout-before-mount",p.value)}),a.onMounted(()=>{s("layout-mounted",p.value),a.nextTick(()=>{V4(p.value),c.originalLayout=p.value,a.nextTick(()=>{W(),v.value&&y(v.value,B4(b,16)),_o(p.value,o.verticalCompact),s("layout-updated",p.value),Y(),b()})})}),a.onBeforeUnmount(()=>{x.clearAll(),v.value&&u(v.value)});function C(Ce,Ie,De,le,we,X){_(Ce,Ie,De,le,we,X)}function B(Ce,Ie,De,le,we,X){k(Ce,Ie,De,le,we,X)}a.watch(()=>c.width,(Ce,Ie)=>{a.nextTick(()=>{x.emit("updateWidth",Ce),Ie===-1&&a.nextTick(()=>{s("layout-ready",p.value)}),Y()})}),a.watch(()=>[o.layout,o.layout.length],()=>{p.value=o.layout,N()}),a.watch(()=>o.colNum,Ce=>{x.emit("setColNum",Ce)}),a.watch(()=>o.rowHeight,Ce=>{x.emit("setRowHeight",Ce)}),a.watch(()=>o.isDraggable,Ce=>{x.emit("setDraggable",Ce)}),a.watch(()=>o.isResizable,Ce=>{x.emit("setResizable",Ce)}),a.watch(()=>o.isBounded,Ce=>{x.emit("setBounded",Ce)}),a.watch(()=>o.transformScale,Ce=>{x.emit("setTransformScale",Ce)}),a.watch(()=>o.responsive,Ce=>{Ce||(s("update:layout",c.originalLayout),x.emit("setColNum",o.colNum)),b()}),a.watch(()=>o.maxRows,Ce=>{x.emit("setMaxRows",Ce)}),a.watch([()=>o.margin,()=>o.margin[1]],Y),a.provide(zc,a.reactive({...a.toRefs(o),...a.toRefs(c),increaseItem:w,decreaseItem:V})),a.provide(Mc,x),r({state:c,getItem:A,resizeEvent:_,dragEvent:k,layoutUpdate:N});function w(Ce){m.set(Ce.i,Ce)}function V(Ce){m.delete(Ce.i)}function A(Ce){return m.get(Ce)}function N(){if(!rn(p.value)&&!rn(c.originalLayout)){if(p.value.length!==c.originalLayout.length){const Ce=se(p.value,c.originalLayout);if(Ce.length>0)if(p.value.length>c.originalLayout.length)c.originalLayout=c.originalLayout.concat(Ce);else{const Ie=new Set(Ce.map(De=>De.i));c.originalLayout=c.originalLayout.filter(De=>!Ie.has(De.i))}c.lastLayoutLength=p.value.length,W()}_o(p.value,o.verticalCompact),x.emit("updateWidth",c.width),Y(),s("layout-updated",p.value)}}function Y(){c.mergedStyle={height:L()}}function b(){v.value&&(c.width=v.value.offsetWidth),x.emit("resizeEvent")}function L(){if(!o.autoSize)return;const Ce=parseFloat(o.margin[1]);return A4(p.value)*(o.rowHeight+Ce)+Ce+"px"}let T;function k(Ce,Ie,De,le,we,X){let ue=_s(p.value,Ie);rn(ue)&&(ue={h:0,w:0,x:0,y:0,i:""}),Ce==="dragstart"&&!o.verticalCompact&&(T=p.value.reduce((Ge,{i:za,x:re,y:E})=>({...Ge,[za]:{x:re,y:E}}),{})),Ce==="dragmove"||Ce==="dragstart"?(c.placeholder.i=Ie,c.placeholder.x=ue.x,c.placeholder.y=ue.y,c.placeholder.w=X,c.placeholder.h=we,a.nextTick(()=>{c.isDragging=!0}),x.emit("updateWidth",c.width)):a.nextTick(()=>{c.isDragging=!1}),p.value=xt(p.value,ue,De,le,!0,o.preventCollision),o.restoreOnDrag?(ue.static=!0,_o(p.value,o.verticalCompact,T),ue.static=!1):_o(p.value,o.verticalCompact),x.emit("compact"),Y(),Ce==="dragend"&&(T=void 0,s("layout-updated",p.value))}function _(Ce,Ie,De,le,we,X){let ue=_s(p.value,Ie);rn(ue)&&(ue={h:0,w:0,x:0,y:0,i:""});let Ge;if(o.preventCollision){const za=Ic(p.value,{...ue,w:X,h:we}).filter(re=>re.i!==ue.i);if(Ge=za.length>0,Ge){let re=1/0,E=1/0;za.forEach(ae=>{ae.x>ue.x&&(re=Math.min(re,ae.x)),ae.y>ue.y&&(E=Math.min(E,ae.y))}),Number.isFinite(re)&&(ue.w=re-ue.x),Number.isFinite(E)&&(ue.h=E-ue.y)}}Ge||(ue.w=X,ue.h=we),Ce==="resizestart"||Ce==="resizemove"?(c.placeholder.i=Ie,c.placeholder.x=De,c.placeholder.y=le,c.placeholder.w=ue.w,c.placeholder.h=ue.h,a.nextTick(()=>{c.isDragging=!0}),x.emit("updateWidth",c.width)):Ce&&a.nextTick(()=>{c.isDragging=!1}),o.responsive&&U(),_o(p.value,o.verticalCompact),x.emit("compact"),Y(),Ce==="resizeend"&&s("layout-updated",p.value)}function U(){const Ce=H4(o.breakpoints,c.width);if(Ce===c.lastBreakpoint)return;const Ie=Rc(Ce,o.cols);!rn(c.lastBreakpoint)&&!c.layouts[c.lastBreakpoint]&&(c.layouts[c.lastBreakpoint]=kt(p.value));const De=U4(c.originalLayout,c.layouts,o.breakpoints,Ce,c.lastBreakpoint,Ie,o.verticalCompact);c.layouts[Ce]=De,c.lastBreakpoint!==Ce&&s("breakpoint-changed",Ce,De),p.value=De,s("update:layout",De),c.lastBreakpoint=Ce,x.emit("setColNum",Ie)}function W(){c.layouts=Object.assign({},o.responsiveLayouts)}function se(Ce,Ie){const De=new Set(Ie.map(ue=>ue.i)),le=new Set(Ce.map(ue=>ue.i)),we=Ce.filter(ue=>!De.has(ue.i)),X=Ie.filter(ue=>!le.has(ue.i));return we.concat(X)}return(Ce,Ie)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(c.mergedStyle)},[Ce.$slots.default?a.renderSlot(Ce.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,De=>(a.openBlock(),a.createBlock(Ai,a.mergeProps({key:De.i,ref_for:!0},De),{default:a.withCtx(()=>[a.renderSlot(Ce.$slots,"item",{item:De})]),_:2},1040))),128)),a.withDirectives(a.createVNode(Ai,{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 T6={key:0,class:"item-view-group"},A6={key:0,class:"item-view-group"},z6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:r}){const n=$.useModelComp($.pinia),{isEdit:o}=$.storeToRefs(n),s=Yn($.pinia),c=r,m=l,p=a.ref(""),v=a.computed(()=>m==null?void 0:m.children),y=a.computed(()=>{var N,Y,b,L;return((N=m==null?void 0:m.children)==null?void 0:N.length)>0&&((Y=m==null?void 0:m.children)!=null&&Y.every(T=>T==null?void 0:T.layout))?(L=(b=m==null?void 0:m.children)==null?void 0:b[0])==null?void 0:L.layout:"vertical"}),u=N=>{p.value=N,c("radioChange",N)},x=a.computed(()=>{var N,Y;return((Y=(N=m==null?void 0:m.children)==null?void 0:N[0])==null?void 0:Y.isGridLayout)||!1}),C=a.ref((m==null?void 0:m.level)+1),B=a.computed(()=>{if(!(m!=null&&m.children)||!Array.isArray(m.children)||m.children.length<2)return!1;const N=m.children.some(b=>(b==null?void 0:b.name)==="测量系统配置表"&&(b==null?void 0:b.comp)==="ParentItem"),Y=m.children.some(b=>(b==null?void 0:b.name)==="测量系统传递表"&&(b==null?void 0:b.comp)==="ParentItem");return N&&Y}),w=a.computed(()=>{var Y,b,L,T,k,_;let N=(Y=m==null?void 0:m.children)==null?void 0:Y.filter(U=>U==null?void 0:U.choice);if(s.setSelectTab((b=N==null?void 0:N[0])==null?void 0:b.choiceName),(p==null?void 0:p.value)!=="")return(L=m==null?void 0:m.children)==null?void 0:L.filter(U=>!(U!=null&&U.choiceName)||(U==null?void 0:U.choiceName)===(p==null?void 0:p.value));{let U=(k=(T=m==null?void 0:m.children)==null?void 0:T.find(W=>W==null?void 0:W.choice))==null?void 0:k.choiceName;return(_=m==null?void 0:m.children)==null?void 0:_.filter(W=>!(W!=null&&W.choiceName)||(W==null?void 0:W.choiceName)===U)}});a.watch(()=>m==null?void 0:m.children,()=>{B.value},{deep:!0});const V=N=>{c("rowClick",N)},A=(N,Y)=>{c("routeUrl",N,Y)};return(N,Y)=>x.value?(a.openBlock(),a.createBlock(a.unref(Yc),{key:0,layout:v.value,"onUpdate:layout":Y[0]||(Y[0]=b=>v.value=b),"is-draggable":a.unref(o)==="edit","is-resizable":a.unref(o)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(b,L)=>(a.openBlock(),a.createBlock(a.unref(Ai),{key:b.i,x:b.x,y:b.y,"min-h":b.minH,"max-h":b.maxH,"min-w":b.minW,w:b.w,h:b.h,i:b.i},{default:a.withCtx(()=>{var T,k,_,U,W,se,Ce,Ie,De,le,we,X,ue,Ge;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:L===((T=m==null?void 0:m.children)==null?void 0:T.length)-1?"0px":"24px"})},[((_=(k=b==null?void 0:b.component)==null?void 0:k.comp)==null?void 0:_.toUpperCase())!=="TABLE"&&((U=b==null?void 0:b.component)!=null&&U.name)?(a.openBlock(),a.createElementBlock("div",T6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(C.value.toString())-1)*12+"px",fontWeight:600-(C.value-1)*100>=400?600-(C.value-1)*100:400,fontSize:17-C.value>=14?17-C.value+"px":"14px"})},a.toDisplayString((W=b==null?void 0:b.component)==null?void 0:W.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)((se=b==null?void 0:b.component)==null?void 0:se.comp)),{pageLayout:y.value,config:{showIndex:(Ce=a.unref(er)[L])==null?void 0:Ce.showIndex,allowMove:(Ie=a.unref(er)[L])==null?void 0:Ie.allowMove,viewport:(De=a.unref(er)[L])==null?void 0:De.viewport,status:(le=a.unref(er)[L])==null?void 0:le.status},related:b==null?void 0:b.relatedTables,compName:b==null?void 0:b.component.name,compNames:a.unref(fc),itemData:(we=b==null?void 0:b.component)==null?void 0:we.compData,childItemData:(X=b==null?void 0:b.component)==null?void 0:X.itemChildData,key:a.unref(Kn),cacheNewData:a.unref(pc),onChange:a.unref(Di),index:(b==null?void 0:b.id)??L,onContentChange:a.unref(Ni),onPageChange:a.unref(Bi),parentTableId:(ue=b==null?void 0:b.component)==null?void 0:ue.tableId,allMapContents:a.unref(yt),children:(Ge=b==null?void 0:b.component)==null?void 0:Ge.children,level:C.value,onRowClick:V,onRouteUrl:A,onClickTrigger:a.unref(hc),onClickMainKey:a.unref(vc),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(w.value,(b,L)=>{var T,k;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(b==null?void 0:b.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(L)===((T=m==null?void 0:m.children)==null?void 0:T.length)-1?"0px":"24px"})},[((k=b==null?void 0:b.comp)==null?void 0:k.toUpperCase())!=="TABLE"&&b.name?(a.openBlock(),a.createElementBlock("div",A6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(C.value.toString())>1?"12px":"0px",fontWeight:600-(C.value-1)*100>=400?600-(C.value-1)*100:400,fontSize:17-C.value>=14?17-C.value+"px":"14px"})},a.toDisplayString(b.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(b.comp)),{compName:b.name,config:{showIndex:b==null?void 0:b.showIndex,allowMove:b==null?void 0:b.allowMove,viewport:b==null?void 0:b.viewport,status:b==null?void 0:b.status},itemData:b==null?void 0:b.compData,related:b==null?void 0:b.relatedTables,childItemData:b==null?void 0:b.itemChildData,key:a.unref(Kn),onChange:a.unref(Di),index:(b==null?void 0:b.id)??L,onContentChange:a.unref(Ni),onPageChange:a.unref(Bi),parentTableId:b==null?void 0:b.tableId,allMapContents:a.unref(yt),children:b==null?void 0:b.children,level:C.value,onRowClick:V,onRouteUrl:A,onRadioChange:u},null,40,["compName","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),M6=ql._export_sfc(z6,[["__scopeId","data-v-822d7221"]]),O6={class:"radio-group-container"},I6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:r}){const n=l,o=r,s=a.ref(),c=Yn($.pinia),{selectTab:m}=$.storeToRefs(c);a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=m.value},{immediate:!0,deep:!0});const p=v=>{s.value=v,o("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",O6,[a.createVNode(pl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=u=>s.value=u),content:n==null?void 0:n.itemData,onChange:p},null,8,["modelValue","content"])]))}}),L6=ql._export_sfc(I6,[["__scopeId","data-v-177d64c3"]]),Gc=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"}]),$6={TABLE:bc,FORM:ys,STATICFORM:kc,TABLEOPERATE:T1,TABLESTYLE:W1,TABLEEXTEND:Y1,TABLEINTERACTION:X1,FORMOPERATE:gs,FOLD:D2,CALCULATOR:M2,METHODBUTTON:L2,AVATARUPLOAD:Qt.ssAvatar,SIGNATURE:Qt.ssSignature,FORMTOP:ys,STEP:Y2,STEPOPERATE:g2,TIMELINE:eh,TIMELINEOPERATE:C2,FORMTOPOPERATE:gs,SIGNATUREOPERATE:q2,AVATARUPLOADOPERATE:V2,TABS:rh,TABSOPERATE:jh,CHART:l4,CHARTOPERATE:f4,LAYOUT:m4,LAYOUTOPERATE:S4,PARENTITEM:M6,RADIO:L6};function Bo(l){return $6[l==null?void 0:l.toUpperCase()]||null}exports.De=Yc;exports.activeStepInfo=wo;exports.addContents=Ho;exports.addVisibleDialog=Et;exports.affixItems=n0;exports.allMapContents=yt;exports.analyzeFilter=Co;exports.analyzeForm=Md;exports.analyzeQuoteForm=zd;exports.analyzeTable=Id;exports.cacheNewData=pc;exports.clickMainKey=vc;exports.clickSavePage=r0;exports.clickStep=yc;exports.clickTrigger=hc;exports.compId=Kn;exports.compNames=fc;exports.compShow=No;exports.createRobotContent=oc;exports.existLayouts=p0;exports.fixChangeValue=wt;exports.generateLayouts=j1;exports.getComponent=Bo;exports.getComponents=Uo;exports.getPageData=Vr;exports.getSliceContLength=g0;exports.gridRowHeight=$1;exports.isStepLayout=gc;exports.onBack=a0;exports.onButtonChange=s0;exports.onChange=Di;exports.onClick=l0;exports.onClickStep=f0;exports.onContentChange=Ni;exports.onExtendTaskEnd=d0;exports.onOk=c0;exports.onPageBack=v0;exports.onPageChange=Bi;exports.onSelectFixContent=e0;exports.renderShowItems=uc;exports.robotFile=Tf;exports.showItems=er;exports.sliceTableLength=dc;exports.slotContent=Gc;exports.ssTable=bc;exports.st=Ai;exports.stepItems=b0;exports.tabChange=h0;exports.toolBar=u0;exports.useFormComp=Ct;exports.useModelLoader=af;exports.verifyButton=m0;
|