ss-component-new 1.3.396 → 1.3.397
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-yJD7bhKG.cjs → array-BeiAnQ7u.cjs} +1 -1
- package/dist/{array-DcgEvQGR.js → array-J01YdqTj.js} +2 -2
- package/dist/{index-DEvjKdoD.js → index--MBv3SKn.js} +123 -121
- package/dist/{index-CXgP601i.js → index-3n7HSyMn.js} +1 -1
- package/dist/{index-ZI0xap1-.js → index-B-J6KxCu.js} +1 -1
- package/dist/{index-DUkXne6A.js → index-B2YJj-Rl.js} +3 -3
- package/dist/{index-CYFaaawR.cjs → index-BRSZXUul.cjs} +1 -1
- package/dist/{index-_wfmTDrB.js → index-BTc2EFRy.js} +7 -7
- package/dist/{index-CRBA70n7.js → index-BdQf8GBq.js} +2 -2
- package/dist/{index-BMf7JP6C.js → index-BnsODy0k.js} +1 -1
- package/dist/{index-D-wiX6e1.js → index-C9-M7eSO.js} +1 -1
- package/dist/{index-D3aDnQRM.cjs → index-CEpMuew1.cjs} +1 -1
- package/dist/{index-CxX46hux.js → index-CExKbgR4.js} +2 -2
- package/dist/{index-Ct8J0kpy.cjs → index-CVNj1AVQ.cjs} +1 -1
- package/dist/{index-DFAZ5d-u.js → index-CX95WulZ.js} +1 -1
- package/dist/{index-CXwObsPn.cjs → index-Cqr15Iso.cjs} +1 -1
- package/dist/{index-CfogSd6g.cjs → index-CuWlzIW9.cjs} +1 -1
- package/dist/{index-Dk-OrDH5.cjs → index-D52hmZUW.cjs} +1 -1
- package/dist/{index-trvsWOX5.cjs → index-D8Y2h9Y9.cjs} +2 -2
- package/dist/{index-Dtqxw_Ic.cjs → index-DK-4SkBX.cjs} +1 -1
- package/dist/{index-VNfUHnWG.js → index-DVzt0wlK.js} +1 -1
- package/dist/{index-C2lzN6Ua.cjs → index-DWCosOoV.cjs} +1 -1
- package/dist/{index-C3Ma6NBG.cjs → index-DoMvE7AD.cjs} +1 -1
- package/dist/{index-BjvdUT2a.js → index-DxtWLMHm.js} +2 -2
- package/dist/{index-CCjrYW1D.cjs → index-SD2_V22_.cjs} +1 -1
- package/dist/{index-BWBEb1mN.cjs → index-tacuKRcf.cjs} +1 -1
- package/dist/{main-CiTgVPyI.cjs → main-DEfQEbsh.cjs} +1 -1
- package/dist/{main-BCpt82pT.js → main-DmUREn0Z.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BhRBK9Ap.cjs → threeModel-BDZaYS7H.cjs} +1 -1
- package/dist/{threeModel-C86Ojv4v.js → threeModel-fHPx4HmT.js} +1 -1
- package/dist/{threeSceneView-BhAsTEaz.cjs → threeSceneView-B6-37y6u.cjs} +1 -1
- package/dist/{threeSceneView-C-3k133X.js → threeSceneView-ggH8sk99.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-BDlMrw9l.cjs → threeSceneViewForCPMPIP-C6p_1D9W.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DnMNxWUi.js → threeSceneViewForCPMPIP-DOTn4nZh.js} +1 -1
- package/dist/{threeViewerHost-BGAwHjkY.cjs → threeViewerHost-CG91M374.cjs} +1 -1
- package/dist/{threeViewerHost-CusquD7T.js → threeViewerHost-D9iZKYW6.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Nu=Object.defineProperty;var Au=(a,l,n)=>l in a?Nu(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n;var Yr=(a,l,n)=>Au(a,typeof l!="symbol"?l+"":l,n);const e=require("vue"),Ua=require("./request-Dl8yi2iS.cjs"),A=require("./index-Pve69buQ.cjs"),al=require("./index-D3aDnQRM.cjs"),de=require("./index-kSKXfPuW.cjs"),Zl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Bl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ch7zA-Cn.cjs"),Dr=require("./index-BOkUwKV5.cjs"),So=require("./threeViewerHost-BGAwHjkY.cjs"),Mr=require("./index-DmwxzDGW.cjs"),ls=require("./index-CYFaaawR.cjs"),Ys=require("./index-DuvMoFSU.cjs");;/* empty css */const Eo=require("./isString-CGrvcmBw.cjs"),rs=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Js=require("./index-BVaHwt5f.cjs"),zu=require("./index-EQOt3OdY.cjs"),Mn=require("./MTLLoader-BPfB7u4m.cjs"),Mu=require("./URDFLoader-BKLZ4URk.cjs");var Iu="[object Boolean]";function Xs(a){return a===!0||a===!1||Ua.isObjectLike(a)&&Ua.baseGetTag(a)==Iu}function Ou(a){return a===void 0}const Lu=a=>a.match(/\((.*)\)/)[1],Ru={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,n=e.ref(null),r=e.ref(!1),o=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{r.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>o.value,()=>{e.nextTick(()=>{var s,h;(h=(s=n.value)==null?void 0:s.updatePopper)==null||h.call(s)})},{deep:!0,immediate:!0}),(s,h)=>{const c=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(c,{visible:r.value,"onUpdate:visible":h[0]||(h[0]=p=>r.value=p),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:o})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},$u=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,n=e.computed(()=>{var p,m,g,u,D,M;const r=l.value??"";let o=(p=l==null?void 0:l.columnContent)==null?void 0:p.filter;if(o=(m=de.analyzeSplitToContent(o,","))==null?void 0:m.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k)),o=o==null?void 0:o.find(k=>(k==null?void 0:k[0])==="("),(o==null?void 0:o[0])==="("&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=o==null?void 0:o.split("||"),!o)return{backgroundColor:void 0,color:void 0};let s=(u=(g=l==null?void 0:l.columnContent)==null?void 0:g.options)==null?void 0:u.findIndex(k=>(k==null?void 0:k.value)===r);s=o==null?void 0:o[s],s=de.analyzeSplitToContent(s,","),s=s==null?void 0:s.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k));let h=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextBackRGBA"));h?h=de.rgbaToColor((D=h==null?void 0:h.split("="))==null?void 0:D[1]):h=void 0;let c=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextRGBA"));return c?c=de.rgbaToColor((M=c==null?void 0:c.split("="))==null?void 0:M[1]):c=void 0,{backgroundColor:h,color:c}});return(r,o)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(n.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Vu=Zl._export_sfc($u,[["__scopeId","data-v-3290070b"]]);function Pu(a,l,n,r={}){if(!a||!l||!n||n.length!==4)return;const o=a.getContext("2d");if(!o)return;const{color:s="rgba(255, 235, 59, 0.3)",strokeWidth:h=2,fillOpacity:c=.2}=r,p=a.getBoundingClientRect(),m=l.getBoundingClientRect(),g=l.naturalWidth,u=l.naturalHeight,D=m.width/g,M=m.height/u,k=Math.min(D,M),K=g*k,I=u*k,H=(p.width-K)/2,L=(p.height-I)/2,E=n.map(([w,b])=>{const _=H+w*K,$=L+b*I;return{x:_,y:$}});o.clearRect(0,0,a.width,a.height),o.beginPath(),o.moveTo(E[0].x,E[0].y);for(let w=1;w<E.length;w++)o.lineTo(E[w].x,E[w].y);o.closePath();const x=s.replace(/[\d.]+\)$/,`${c})`);o.fillStyle=x,o.fill(),o.strokeStyle=s.replace(/[\d.]+\)$/,"1)"),o.lineWidth=h,o.stroke()}function xi(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ns(a,l){if(!a||!l)return null;const n=a[l];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Fu={key:0,class:"ocr-img-preview-root"},ju={class:"ocr-img-preview-window"},Hu={key:0,class:"img-preview-body"},Uu={class:"img-preview-header"},qu={class:"img-header-left"},Wu={class:"img-name"},Ku={key:0,class:"img-header-right"},Gu={class:"img-index"},Yu={key:0,class:"img-thumb-list"},Ju=["onClick"],Xu={key:1,class:"thumb-placeholder"},Zu={class:"thumb-name"},Qu={class:"img-preview-container"},ed={key:0,class:"img-placeholder"},ad={key:2,class:"img-placeholder"},ld={key:0},rd={key:1},nd={key:1,class:"img-placeholder"},id=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const n=a,r=l,o=e.computed({get:()=>n.visible,set:N=>r("update:visible",N)});let s=!1,h="",c=0,p=0,m=0,g=0,u=0,D=0,M=null;const k=N=>{var U,De;const ie=(De=(U=N==null?void 0:N.target)==null?void 0:U.closest)==null?void 0:De.call(U,".ocr-img-preview-window");return ie||document.querySelector(".ocr-img-preview-window")},K=N=>{if(!N||N==="none")return{tx:0,ty:0};let ie=N.match(/matrix\(([^)]+)\)/);if(ie){const U=ie[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[4])||0,ty:(U==null?void 0:U[5])||0}}if(ie=N.match(/matrix3d\(([^)]+)\)/),ie){const U=ie[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[12])||0,ty:(U==null?void 0:U[13])||0}}return ie=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),ie?{tx:Number(ie[1])||0,ty:Number(ie[2])||0}:{tx:0,ty:0}},I=(N,ie,U)=>{N.style.transform=`translate(${ie}px, ${U}px)`},H=N=>{const ie=k(N);if(!ie)return;s=!0,M=ie,h="move",c=N.clientX,p=N.clientY;const U=window.getComputedStyle(ie),{tx:De,ty:Oe}=K(U.transform);u=De,D=Oe,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},L=(N,ie)=>{const U=k(N);if(!U)return;s=!0,M=U,h=ie,c=N.clientX,p=N.clientY;const De=U.getBoundingClientRect();m=De.width,g=De.height;const Oe=window.getComputedStyle(U),{tx:Fe,ty:ea}=K(Oe.transform);u=Fe,D=ea,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},E=N=>{if(!s||!M)return;const ie=N.clientX-c,U=N.clientY-p,De=360,Oe=420;let Fe=m,ea=g,Ba=u,ee=D;if(h==="move"){Ba=u+ie,ee=D+U,I(M,Ba,ee);return}if(h.includes("right")&&(Fe=Math.max(De,m+ie)),h.includes("bottom")&&(ea=Math.max(Oe,g+U)),h.includes("left")){const ua=m-ie;ua<De?(Fe=De,Ba=u+(m-De)):(Fe=ua,Ba=u+ie)}if(h.includes("top")){const ua=g-U;ua<Oe?(ea=Oe,ee=D+(g-Oe)):(ea=ua,ee=D+U)}M.style.width=`${Fe}px`,M.style.height=`${ea}px`,I(M,Ba,ee)},x=()=>{s=!1,h="",M=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)},w=e.ref([]),b=e.ref(!1);e.watch(()=>n.images,async N=>{if(!Array.isArray(N)||N.length===0){w.value=[];return}b.value=!0;const ie=[];for(const U of N)if(U.url&&!U.url.startsWith("blob:")&&!U.url.startsWith("http"))try{const De=await Bl.downloadFile(U.url),Oe=URL.createObjectURL(De);ie.push({...U,blobUrl:Oe})}catch(De){console.error(`Failed to load image for preview: ${U.url}`,De),ie.push({...U,blobUrl:""})}else ie.push({...U,blobUrl:U.url});w.value=ie,b.value=!1},{deep:!0,immediate:!0});const _=e.ref(0),$=e.ref(null),V=e.ref(null),ne=e.computed(()=>w.value[_.value]||null),X=()=>{if(!w.value.length){_.value=0;return}if(n.defaultImageName){const N=w.value.findIndex(ie=>(ie==null?void 0:ie.name)===n.defaultImageName);_.value=N>=0?N:0}else _.value=0},me=N=>{if(!w.value.length)return;const ie=Math.max(0,Math.min(N,w.value.length-1));_.value=ie},Me=()=>me(_.value-1),F=()=>me(_.value+1),te=N=>{if(!N)return;const ie=w.value.findIndex(U=>(U==null?void 0:U.name)===N);ie>=0&&(_.value=ie)},Z=()=>{if(!V.value)return;const N=V.value.parentElement;if(!N)return;const ie=N.getBoundingClientRect();V.value.width=ie.width,V.value.height=ie.height},se=()=>{var De,Oe;if(!V.value||!$.value||!n.focusedFieldName){V.value&&xi(V.value);return}const N=(De=$.value.$el)==null?void 0:De.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{se()})};return}const ie=((Oe=ne.value)==null?void 0:Oe.name)||"",U=ns(n.fieldMeta,n.focusedFieldName);if(!U){xi(V.value);return}if(U.imageName!==ie){xi(V.value);return}Z(),Pu(V.value,N,U.bboxNorm)},Be=()=>{e.nextTick(()=>{Z(),se()})};e.watch(()=>n.focusedFieldName,()=>{if(!o.value)return;const N=ns(n.fieldMeta,n.focusedFieldName);N!=null&&N.imageName&&te(N.imageName),e.nextTick(()=>{se()})}),e.watch(()=>{var N;return(N=ne.value)==null?void 0:N.name},()=>{o.value&&e.nextTick(()=>{V.value&&xi(V.value),se()})}),e.watch(()=>n.visible,N=>{N?(X(),e.nextTick(()=>{Z(),se()})):V.value&&xi(V.value)}),e.watch(()=>n.defaultImageName,()=>{o.value&&X()});let Ve=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&(Ve=new ResizeObserver(()=>{Z(),e.nextTick(()=>{se()})}),(N=V.value)!=null&&N.parentElement&&Ve.observe(V.value.parentElement))}),e.onUnmounted(()=>{Ve&&(Ve.disconnect(),Ve=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)});const he=()=>{V.value&&xi(V.value),r("update:visible",!1),r("close")};return(N,ie)=>{var ea,Ba;const U=e.resolveComponent("el-button"),De=e.resolveComponent("el-image"),Oe=e.resolveComponent("Loading"),Fe=e.resolveComponent("el-icon");return o.value?(e.openBlock(),e.createElementBlock("div",Fu,[ie[12]||(ie[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",ju,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(H,["stop"])},[ie[8]||(ie[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:he},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:ie[0]||(ie[0]=e.withModifiers(ee=>L(ee,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:ie[1]||(ie[1]=e.withModifiers(ee=>L(ee,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:ie[2]||(ie[2]=e.withModifiers(ee=>L(ee,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:ie[3]||(ie[3]=e.withModifiers(ee=>L(ee,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:ie[4]||(ie[4]=e.withModifiers(ee=>L(ee,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:ie[5]||(ie[5]=e.withModifiers(ee=>L(ee,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:ie[6]||(ie[6]=e.withModifiers(ee=>L(ee,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:ie[7]||(ie[7]=e.withModifiers(ee=>L(ee,"bottom-right"),["stop"]))},null,32),ne.value?(e.openBlock(),e.createElementBlock("div",Hu,[e.createElementVNode("div",Uu,[e.createElementVNode("div",qu,[e.createElementVNode("span",Wu,e.toDisplayString(ne.value.name?ne.value.name+(ne.value.url&&ne.value.url.lastIndexOf(".")!==-1?ne.value.url.substring(ne.value.url.lastIndexOf(".")):""):""),1)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Ku,[e.createVNode(U,{size:"small",disabled:_.value===0,onClick:Me},{default:e.withCtx(()=>ie[9]||(ie[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Gu,e.toDisplayString(_.value+1)+" / "+e.toDisplayString(w.value.length),1),e.createVNode(U,{size:"small",disabled:_.value===w.value.length-1,onClick:F},{default:e.withCtx(()=>ie[10]||(ie[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Yu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(ee,ua)=>(e.openBlock(),e.createElementBlock("div",{key:(ee.name||"")+"-"+ua,class:e.normalizeClass(["img-thumb-item",{active:ua===_.value}]),onClick:ue=>me(ua)},[ee!=null&&ee.blobUrl?(e.openBlock(),e.createBlock(De,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Xu,"加载失败")),e.createElementVNode("div",Zu,e.toDisplayString(ee.name||"-"),1)],10,Ju))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Qu,[b.value?(e.openBlock(),e.createElementBlock("div",ed,[e.createVNode(Fe,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Oe)]),_:1}),ie[11]||(ie[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(ea=ne.value)!=null&&ea.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(De,{ref_key:"imageRef",ref:$,src:ne.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[ne.value.blobUrl],onLoad:Be},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:V,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",ad,[(Ba=ne.value)!=null&&Ba.url?(e.openBlock(),e.createElementBlock("span",ld,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",rd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",nd,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),od=Zl._export_sfc(id,[["__scopeId","data-v-48a4ecb1"]]),td={class:"cert-preview-body"},sd={key:0,class:"pdf-preview-container"},cd={class:"thumbs"},ud=["onClick"],dd={class:"thumb-img"},pd=["src"],fd={key:1,class:"thumb-loading"},hd={class:"thumb-title"},vd={class:"viewer"},md={key:0,class:"viewer-img-wrap"},yd=["src"],gd={key:1,class:"viewer-loading"},bd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(""),s=e.ref(""),h=e.computed(()=>(n.versions||[]).find(k=>String(k.versionId)===String(o.value))),c=e.ref({}),p=e.ref(""),m=e.ref("证书附件.pdf"),g=()=>{try{Object.values(c.value||{}).forEach(k=>{k&&URL.revokeObjectURL(k)}),p.value&&URL.revokeObjectURL(p.value)}catch{}c.value={},p.value=""},u=async k=>{if(!k||k.fileType==="pdf")return;const K=Array.isArray(k.images)?k.images:[];for(const I of K){const H=I==null?void 0:I.url;if(!(!H||c.value[H]))try{const L=await A.platformDownloadFile({url:H}),E=URL.createObjectURL(L.data);c.value={...c.value,[H]:E}}catch{}}},D=async k=>{var I;if(!k||k.fileType!=="pdf"){p.value="";return}const K=k.sourceUrl||"";if(!K){p.value="";return}if(p.value){try{URL.revokeObjectURL(p.value)}catch{}p.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:K,versionId:k==null?void 0:k.versionId,certNo:k==null?void 0:k.certNo});const H=await A.platformDownloadFile({url:K});console.log("[CertificatePreview] PDF响应:",{url:K,status:H==null?void 0:H.status,size:(I=H==null?void 0:H.data)==null?void 0:I.size});const L=URL.createObjectURL(H.data);p.value=L;const E=k.certNo?String(k.certNo):"";m.value=E?`${E}.pdf`:"证书附件.pdf"}catch(H){console.error("[CertificatePreview] PDF加载失败:",{url:K,error:H}),p.value=""}};e.watch(()=>n.visible,async k=>{var I;if(!k){g();return}const K=(I=n.versions)==null?void 0:I[0];o.value=(K==null?void 0:K.versionId)||"",await u(K),await D(K)},{immediate:!0}),e.watch(()=>o.value,async()=>{var K,I;const k=h.value;if(!k){s.value="",p.value="";return}if(k.fileType==="pdf"){s.value="",await D(k);return}p.value="",s.value=((I=(K=k.images)==null?void 0:K[0])==null?void 0:I.url)||"",await u(k)},{immediate:!0});const M=()=>{r("update:visible",!1),g()};return e.onBeforeUnmount(()=>{g()}),(k,K)=>{const I=e.resolveComponent("el-empty"),H=e.resolveComponent("el-tab-pane"),L=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{"model-value":k.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:M},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:M},{default:e.withCtx(()=>K[1]||(K[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[k.versions&&k.versions.length>0?(e.openBlock(),e.createBlock(L,{key:0,modelValue:o.value,"onUpdate:modelValue":K[0]||(K[0]=w=>o.value=w),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.versions,w=>(e.openBlock(),e.createBlock(H,{key:w.versionId,name:w.versionId,label:w.label},{default:e.withCtx(()=>[e.createElementVNode("div",td,[w.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",sd,[p.value?(e.openBlock(),e.createBlock(al.SsFilePreview,{key:1,fileName:m.value,blobUrl:p.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(I,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",cd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.images||[],b=>(e.openBlock(),e.createElementBlock("div",{key:b.url,class:e.normalizeClass(["thumb",{active:b.url===s.value}]),onClick:_=>s.value=b.url},[e.createElementVNode("div",dd,[c.value[b.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value[b.url]},null,8,pd)):(e.openBlock(),e.createElementBlock("div",fd,"加载中"))]),e.createElementVNode("div",hd,e.toDisplayString(b.name),1)],10,ud))),128))]),e.createElementVNode("div",vd,[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value[s.value]?(e.openBlock(),e.createElementBlock("div",md,[e.createElementVNode("img",{class:"viewer-img",src:c.value[s.value]},null,8,yd)])):(e.openBlock(),e.createElementBlock("div",gd,"加载中"))],64)):(e.openBlock(),e.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),kd=Zl._export_sfc(bd,[["__scopeId","data-v-220703c0"]]),xd={class:"ocr-candidate-wrap"},wd={class:"ocr-candidate-left"},_d={key:1},Sd={key:0},Ed={key:1},Cd={key:2},Dd={key:3},Bd={key:0,class:"ocr-candidate-right"},Td={class:"ocr-candidate-actions"},Nd={key:1},Ad={class:"dialog-footer"},zd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const n=(_=[])=>{const $=[],V=ne=>{(ne||[]).forEach(X=>{if(!X)return;const me=X.children||X.childrens||X.columns;Array.isArray(me)&&me.length>0?V(me):$.push(X)})};return V(_),$},r=a,o=l,s=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowAdd)!==!1}),h=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowReplace)!==!1}),c=_=>{if(!_)return[];if(Array.isArray(_))return _;if(typeof _=="string")try{const $=JSON.parse(_);return Array.isArray($)?$:[]}catch{return[]}return[]},p=_=>{o("preview-file",_)},m=e.ref([]),g=e.ref(0),u=e.ref("");e.watch(()=>r.candidates,_=>{var $,V;m.value=(_||[]).map(ne=>({...ne,...(ne==null?void 0:ne.ocrRow)||{},selectedTargetId:(ne==null?void 0:ne.selectedTargetId)||"",__decision:ne==null?void 0:ne.__decision})),g.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>r.visible,_=>{var $,V;_&&(g.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||"")});const D=e.computed(()=>{var $;const _=Number(g.value||0);return(($=m.value||[])==null?void 0:$[_])||null}),M=e.computed(()=>(n(r.columns||[])||[]).filter(V=>V&&V.prop).filter(V=>V.type!=="operate"&&V.label!=="操作"&&V.prop!=="operate")),k=e.computed(()=>M.value.filter(_=>_.label!=="证书附件"&&_.prop!=="证书附件")),K=_=>{if(!_)return;const $=(m.value||[]).findIndex(V=>(V==null?void 0:V.idx)===(_==null?void 0:_.idx));$>-1&&(g.value=$,u.value=(_==null?void 0:_.selectedTargetId)||"")},I=_=>{if(!_){u.value="";return}u.value=String((_==null?void 0:_.id)??"")},H=(_,$="")=>{const V=Number(g.value||0),ne=m.value||[],X=ne[V];X&&(X.__decision=_,X.selectedTargetId=$,u.value=$,m.value=[...ne])},L=()=>H("skip",""),E=()=>H("add",""),x=()=>{if(!u.value){Ua.ElMessage.warning("请先选择要替换的目标记录");return}H("replace",u.value)},w=()=>{o("update:visible",!1)},b=()=>{const _=m.value||[];if(_.find(V=>(V==null?void 0:V.__decision)==="replace"&&!(V!=null&&V.selectedTargetId))){Ua.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}o("submit",_),o("update:visible",!1)};return(_,$)=>{const V=e.resolveComponent("el-table-column"),ne=e.resolveComponent("svg-icon"),X=e.resolveComponent("el-table"),me=e.resolveComponent("el-button"),Me=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Dr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:w},{default:e.withCtx(()=>{var F,te;return[e.createElementVNode("div",xd,[e.createElementVNode("div",wd,[$[0]||($[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(X,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:K},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,Z=>(e.openBlock(),e.createBlock(V,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:e.withCtx(({row:se})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[Z.prop]).length>0?(e.openBlock(),e.createBlock(ne,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>p({row:se,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",_d,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(V,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:Z})=>[e.createTextVNode(e.toDisplayString(((Z==null?void 0:Z.candidates)||[]).length),1)]),_:1}),e.createVNode(V,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:Z})=>[(Z==null?void 0:Z.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Sd,"替换")):(Z==null?void 0:Z.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Ed,"新增")):(Z==null?void 0:Z.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Cd,"跳过")):(e.openBlock(),e.createElementBlock("span",Dd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Bd,[$[4]||($[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Td,[e.createVNode(me,{id:"themeBorderButton",onClick:L},{default:e.withCtx(()=>$[1]||($[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(me,{id:"themeBorderButton",onClick:E,disabled:!s.value},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(me,{class:"ok-button",id:"themeButton",onClick:x,disabled:!h.value||!u.value},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((F=D.value)==null?void 0:F.candidates)||[]).length===0?(e.openBlock(),e.createBlock(Me,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(X,{data:((te=D.value)==null?void 0:te.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,Z=>(e.openBlock(),e.createBlock(V,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:e.withCtx(({row:se})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[Z.prop]).length>0?(e.openBlock(),e.createBlock(ne,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>p({row:se,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Nd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Ad,[e.createVNode(me,{id:"themeBorderButton",onClick:w},{default:e.withCtx(()=>$[5]||($[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(me,{class:"ok-button",id:"themeButton",onClick:b},{default:e.withCtx(()=>$[6]||($[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Md=Zl._export_sfc(zd,[["__scopeId","data-v-89e0489c"]]),Id={class:"ocr-preview-content"},Od={class:"ocr-preview-tip"},Ld={class:"ocr-preview-table"},Rd={style:{display:"flex","align-items":"center",gap:"8px"}},$d={class:"dialog-footer"},Vd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]),s=e.ref([]),h=e.ref([]);e.watch(()=>n.visible,M=>{M&&(o.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),s.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),h.value=[...n.ocrSelectedFields])});const c=(M,k)=>{const K=[...h.value];if(k)K.includes(M)||K.push(M);else{const I=K.indexOf(M);I>-1&&K.splice(I,1)}h.value=K,r("update:ocrSelectedFields",K)},p=(M,k,K)=>{r("fieldChange",{rowIndex:M,prop:k,value:K})},m=()=>{r("update:ocrPreviewData",o.value),r("confirm",o.value),r("update:visible",!1)},g=()=>{r("update:visible",!1)},u=M=>typeof M!="number"?"-":`${(M*100).toFixed(1)}%`,D=M=>typeof M!="number"?"#606266":M>=.9?"#67c23a":M>=.7?"#e6a23c":"#f56c6c";return(M,k)=>{const K=e.resolveComponent("el-alert"),I=e.resolveComponent("el-table-column"),H=e.resolveComponent("el-checkbox"),L=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),x=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Dr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:g,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[e.createElementVNode("div",Od,[e.createVNode(K,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Ld,[e.createVNode(E,{data:o.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,w=>(e.openBlock(),e.createBlock(I,{key:w.prop,prop:w.prop,"min-width":w.minWidth||230,"class-name":w.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Rd,[w.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(H,{key:0,"model-value":h.value.includes(w.prop),onChange:b=>c(w.prop,b),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(w.label),1)])]),default:e.withCtx(({row:b,$index:_})=>[w.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:D(b[w.prop]),fontWeight:500})},e.toDisplayString(u(b[w.prop])),5)):(e.openBlock(),e.createBlock(L,{key:1,modelValue:b[w.prop],"onUpdate:modelValue":$=>b[w.prop]=$,size:"small",placeholder:"请输入"+w.label,onChange:$=>p(_,w.prop,$)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",$d,[e.createVNode(x,{onClick:g,id:"themeBorderButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(x,{class:"ok-button",onClick:m,id:"themeButton"},{default:e.withCtx(()=>k[2]||(k[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Pd=Zl._export_sfc(Vd,[["__scopeId","data-v-df66eb1f"]]),ni=a=>{var r;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let n=(r=de.analyzeSplitToContent(l,","))==null?void 0:r.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),fn(o)));return n=n==null?void 0:n.join(","),n};function Zs(a){return Ua.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function Fd(a){return Ua.axios.get(a,{responseType:"blob"})}let Kl="$R",jd="http://222.92.178.198:55002/AIRobot",tt=["Form","BarChart","FormText","FormBlock"];const Qs=a=>{var n,r;let l=(r=de.analyzeSplitToContent(a,"@"))==null?void 0:r[((n=de.analyzeSplitToContent(a,"@"))==null?void 0:n.length)-1];return!!(tt!=null&&tt.some(o=>l==null?void 0:l.includes(o)))},Hd=async(a,l,n,r)=>{var s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua;let o=a;if(Qs(o==null?void 0:o[0])){let ue=Jd(o),sa=(s=ue==null?void 0:ue.filter)==null?void 0:s.join(","),Se=[];(h=ue==null?void 0:ue.hideContents)==null||h.forEach(Ke=>{if(Ke){const ca=Ke;ca&&Se.push(`(HideGroup=Yes, prop=${ca})`)}});let oe=(c=ue==null?void 0:ue.formContents)==null?void 0:c.filter(Ke=>{var ca;return(ca=Ke==null?void 0:Ke.filters)==null?void 0:ca.includes("@ShowHide=Hide")});(oe==null?void 0:oe.length)>0&&(oe==null||oe.forEach(Ke=>{if(Ke){const ca=Ke==null?void 0:Ke.prop;ca&&Se.push(`(Hide=Yes, prop=${ca})`)}}));let ze=(r==null?void 0:r.menuFilter)??[];return Array.isArray(ze)||(ze=ze?[ze]:[]),ze=[...ze,...Se],{key:"Form",name:ue==null?void 0:ue.groupName,value:ue==null?void 0:ue.formContents,contents:Array.isArray((p=ue==null?void 0:ue.contents)==null?void 0:p[0])&&((g=(m=ue==null?void 0:ue.contents)==null?void 0:m[0])!=null&&g.every(Ke=>Array.isArray(Ke)))?[(D=(u=ue==null?void 0:ue.contents)==null?void 0:u[0])==null?void 0:D[n]]:[ue==null?void 0:ue.contents],filter:"("+sa+")",menuFilter:ze,groupFilter:ue==null?void 0:ue.groupFilters}}else if(((M=o==null?void 0:o[0])==null?void 0:M[0])!=="&"){let ue=lc(o,r),sa="";(k=ue==null?void 0:ue.tableFilter)!=null&&k.includes(Kl)?ue.tableFilter=(K=ue==null?void 0:ue.tableFilter)==null?void 0:K.replace(Kl,""):sa=(L=(H=(I=ue==null?void 0:ue.tableFilter)==null?void 0:I.replace("(",Kl))==null?void 0:H.split(Kl))==null?void 0:L[0];let Se=[];ue!=null&&ue.tableFilter&&((E=de.analyzeSplitToContent(ue==null?void 0:ue.tableFilter,","))==null||E.forEach(ze=>{ze!=null&&ze.includes("@ShowHide=Hide")&&Se.push("HideGroup=Yes")}));let oe=(r==null?void 0:r.menuFilter)??[];return Array.isArray(oe)||(oe=oe?[oe]:[]),oe=[...oe,...Se],{key:"Table",name:ue==null?void 0:ue.groupName,tableColumns:ue==null?void 0:ue.tableColumns,assistColumn:ue==null?void 0:ue.columns,tableContents:l===1?ue==null?void 0:ue.tableContents:(w=(x=ue==null?void 0:ue.tableContents)==null?void 0:x[n])!=null&&w.every(ze=>Array.isArray(ze))?(b=ue==null?void 0:ue.tableContents)==null?void 0:b[n]:[(_=ue==null?void 0:ue.tableContents)==null?void 0:_[n]],filter:ue==null?void 0:ue.tableFilter,menuFilter:oe,quotePage:sa!==""?((ne=(V=($=sa==null?void 0:sa.replace("*",Kl))==null?void 0:$.split(Kl))==null?void 0:V[0])==null?void 0:ne.replaceAll(":","/"))??"":void 0,quoteGroup:sa!==""?((se=(Z=(te=(F=(Me=(me=(X=sa==null?void 0:sa.replace("*",Kl))==null?void 0:X.split(Kl))==null?void 0:me[1])==null?void 0:Me.replace("{",Kl))==null?void 0:F.split(Kl))==null?void 0:te[0])==null?void 0:Z.split(":"))==null?void 0:se.filter(ze=>ze!==""))??[]:[],relatedQuotes:ue==null?void 0:ue.relatedQuotes,fatherSyncContents:ue==null?void 0:ue.fatherSyncContents,sonSyncContents:ue==null?void 0:ue.sonSyncContents}}else{let ue=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],sa=o==null?void 0:o[0];sa=sa==null?void 0:sa.slice(1,sa==null?void 0:sa.length),sa=de.analyzeSplitToContent(sa,":"),sa=sa==null?void 0:sa[(sa==null?void 0:sa.length)-1];let Se=[];Se.push("1");let oe=sa==null?void 0:sa.replace("(",Kl);oe=(Be=oe==null?void 0:oe.split(Kl))==null?void 0:Be[0],Se.push(oe);let ze=sa==null?void 0:sa.replace("(",Kl);if(ze=(Ve=ze==null?void 0:ze.split(Kl))==null?void 0:Ve[1],ze=(N=(he=ze==null?void 0:ze.replace(")",Kl))==null?void 0:he.split(Kl))==null?void 0:N[0],(U=(ie=ze==null?void 0:ze.replace(",",Kl))==null?void 0:ie.split(Kl))==null||U.forEach(Ke=>{Se.push(Ke)}),Se.push(""),Se.push(""),(De=Se==null?void 0:Se[2])!=null&&De.includes(".xlsx")||(Oe=Se==null?void 0:Se[2])!=null&&Oe.includes(".xls"))try{let Ke=jd+"/"+(Se==null?void 0:Se[2]),ca=await Fd(Ke),Ya=`生成js函数名称为${Se==null?void 0:Se[1]}的函数,规则为:`+(Se==null?void 0:Se[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((ca==null?void 0:ca.status)===200){let R=ca==null?void 0:ca.data;const j=new FormData;j.append("file",R,Se==null?void 0:Se[2]),j.append("query",Ya);let J=await Zs(j);J=(Ba=(ea=(Fe=J==null?void 0:J.data)==null?void 0:Fe.data)==null?void 0:ea.response)==null?void 0:Ba.replace("generateResult",Se==null?void 0:Se[1]),Se[Se.length-2]=J,Se[Se.length-1]=[{name:(ua=(ee=Se==null?void 0:Se[2])==null?void 0:ee.split("."))==null?void 0:ua[0],url:Ke}]}}catch{}return Se=[Se],{key:"Method",name:[],tableContents:Se,tableColumns:ue}}},Ud=(a,l)=>{var r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se;let n=(o=(r=de.analyzeSplitToContent(a,"="))==null?void 0:r.filter(oe=>oe!=="="))==null?void 0:o.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])==="="&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe));if(Qs(n==null?void 0:n[1])){let oe=Yd(n),ze=(c=(h=(s=oe==null?void 0:oe.filter)==null?void 0:s.replace("@",Kl))==null?void 0:h.split(Kl))==null?void 0:c[0],Ke=(g=(m=(p=oe==null?void 0:oe.filter)==null?void 0:p.replace("(",Kl))==null?void 0:m.split(Kl))==null?void 0:g[1],ca=(M=(D=(u=oe==null?void 0:oe.filter)==null?void 0:u.replace("(",Kl))==null?void 0:D.split(Kl))==null?void 0:M[0];ca="@"+((k=ca==null?void 0:ca.split("@"))==null?void 0:k[1]),Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1),Ke=(I=(K=de.analyzeSplitToContent(Ke,","))==null?void 0:K.map(R=>(R=ca+R,R)))==null?void 0:I.join("");let Ya=ze+"("+Ke+")";return{key:"Form",name:oe==null?void 0:oe.group,filter:Ya,formPage:((E=(L=(H=ze==null?void 0:ze.replace("*",Kl))==null?void 0:H.split(Kl))==null?void 0:L[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((ne=(V=($=(_=(b=(w=(x=ze==null?void 0:ze.replace("*",Kl))==null?void 0:x.split(Kl))==null?void 0:w[1])==null?void 0:b.replace("{",Kl))==null?void 0:_.split(Kl))==null?void 0:$[0])==null?void 0:V.split(":"))==null?void 0:ne.filter(R=>R!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let oe=lc(n,l,n==null?void 0:n[1]),ze="";(X=oe==null?void 0:oe.tableFilter)!=null&&X.includes(Kl)?oe.tableFilter=(me=oe==null?void 0:oe.tableFilter)==null?void 0:me.replace(Kl,""):ze=(te=(F=(Me=oe==null?void 0:oe.tableFilter)==null?void 0:Me.replace("(",Kl))==null?void 0:F.split(Kl))==null?void 0:te[0];let Ke=(Be=(se=(Z=oe==null?void 0:oe.tableFilter)==null?void 0:Z.replace("(",Kl))==null?void 0:se.split(Kl))==null?void 0:Be[0];Ke=[{menus:(he=(Ve=Ke==null?void 0:Ke.split("*"))==null?void 0:Ve[0])==null?void 0:he.replaceAll(":","/"),groups:((ie=(N=Ke==null?void 0:Ke.split("*"))==null?void 0:N[1])==null?void 0:ie.split(":"))??[]}];let ca=(Oe=(De=(U=oe==null?void 0:oe.tableFilter)==null?void 0:U.replace("(",Kl))==null?void 0:De.split(Kl))==null?void 0:Oe[1];(ca==null?void 0:ca[(ca==null?void 0:ca.length)-1])===")"&&(ca=ca==null?void 0:ca.slice(0,(ca==null?void 0:ca.length)-1));let Ya=[];oe!=null&&oe.tableFilter&&((Fe=de.analyzeSplitToContent(oe==null?void 0:oe.tableFilter,","))==null||Fe.forEach(j=>{j!=null&&j.includes("@ShowHide=Hide")&&Ya.push("HideGroup=Yes")}));let R=(l==null?void 0:l.menuFilter)??[];return Array.isArray(R)||(R=R?[R]:[]),R=[...R,...Ya],{key:"Table",name:oe==null?void 0:oe.groupName,filter:oe==null?void 0:oe.tableFilter,tableColumns:oe==null?void 0:oe.tableColumns,quotePage:ze!==""?((ee=(Ba=(ea=ze==null?void 0:ze.replace("*",Kl))==null?void 0:ea.split(Kl))==null?void 0:Ba[0])==null?void 0:ee.replaceAll(":","/"))??"":void 0,quoteGroup:ze!==""?((Se=(sa=(ue=(ua=ze==null?void 0:ze.replace("*",Kl))==null?void 0:ua.split(Kl))==null?void 0:ue[1])==null?void 0:sa.split(":"))==null?void 0:Se.filter(j=>j!==""))??[]:[],menuFilter:R,relatedQuotes:Ke,fatherSyncContents:(oe==null?void 0:oe.fatherSyncContents)??[],sonSyncContents:(oe==null?void 0:oe.sonSyncContents)??[]}}},qd=async(a,l)=>{let n=[],r=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(o,s)=>{let h=[];o=o==null?void 0:o.map(async c=>{var p,m;if(h.push(c),((p=de.analyzeSplitToContent(a,"="))==null?void 0:p.length)<=2){if(((m=de.analyzeSplitToContent(a,"="))==null?void 0:m.length)!==0){const g=await Hd(de.analyzeSplitToContent(a,"="),r,s,c);h.push(g)}}else h.push(Ud(a,c))}),await Promise.all(o),n.push(h)}),await Promise.all(l),n};let Fi="/",Wd="$",gn="$R";const ec=a=>{var n,r,o;let l="";if((a==null?void 0:a.length)>1){let s=a==null?void 0:a.filter((h,c)=>c!==0);s=s==null?void 0:s.join(""),s=de.analyzerSplitToWord(s,")"),(s==null?void 0:s.length)!==1?(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"?s=s==null?void 0:s.join(""):s=(n=s==null?void 0:s.filter((h,c)=>c!==(s==null?void 0:s.length)-1))==null?void 0:n.join(""):s=s==null?void 0:s[0],l="("+s,((o=a==null?void 0:a[0])==null?void 0:o[((r=a==null?void 0:a[0])==null?void 0:r.length)-2])==="@"&&(l="@"+l)}return{filter:l}},ac=(a,l=[])=>{let n=(a==null?void 0:a.map(s=>{var h,c;return(c=s==null?void 0:s.key)==null?void 0:c.slice(1,(h=s==null?void 0:s.key)==null?void 0:h.length)}))??[],r=[];n==null||n.forEach(s=>{var h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me;if(s===""&&(s="算法库:通用算法"),s!=null&&s.includes(Wd)){let Me="",F=!0,te=de.analyzerSplitToWord(s,"(");(te==null?void 0:te.length)>1&&(Me="("+((h=de.analyzerSplitToWord(te==null?void 0:te[1],")"))==null?void 0:h[0]),((p=te==null?void 0:te[0])==null?void 0:p[((c=te==null?void 0:te[0])==null?void 0:c.length)-2])==="@"&&(Me="@"+Me));let Z=s;Z=Z==null?void 0:Z.replace(Me,""),Me=fn(Me),Me=(m=de.analyzeSplitToContent(Me,","))==null?void 0:m.map(ie=>((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),ie)),Me!=null&&Me.includes("@ShowHide=Hide")&&(F=!1);let se=(g=Z==null?void 0:Z.replace("$",gn))==null?void 0:g.split(gn),Be=se==null?void 0:se[1],Ve=se==null?void 0:se[0];Ve!=null&&Ve.includes("[")&&(Ve=(D=(u=Ve==null?void 0:Ve.replace("[",gn))==null?void 0:u.split(gn))==null?void 0:D[0],Be=Be+":["+((K=(k=(M=se==null?void 0:se[0])==null?void 0:M.replace("[",gn))==null?void 0:k.split(gn))==null?void 0:K[1])),Ve=(H=(I=Ve==null?void 0:Ve.replaceAll(":","/"))==null?void 0:I.replaceAll("{",""))==null?void 0:H.replaceAll("}",""),(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])!=="/"&&(Ve=Ve+"/"),Be=((L=Ve==null?void 0:Ve.split("/"))==null?void 0:L[0])+":"+Be;let N="";if(!(Be!=null&&Be.includes("[")))N=Be==null?void 0:Be.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:Me,fatherPath:Ve});else{let ie=(x=(E=Be==null?void 0:Be.replace("[",gn))==null?void 0:E.split(gn))==null?void 0:x[1];ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1),ie=(w=de.analyzeSplitToContent(ie,","))==null?void 0:w.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)),ie==null||ie.forEach(U=>{var De,Oe;N=((Oe=(De=Be==null?void 0:Be.replace("[",gn))==null?void 0:De.split(gn))==null?void 0:Oe[0])+U,N=N==null?void 0:N.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:Me,fatherPath:Ve})})}}else{let Me="",F=!0,te=de.analyzerSplitToWord(s,"(");(te==null?void 0:te.length)>1&&(Me=(b=ec(te))==null?void 0:b.filter);let Z=s;if(Z=Z==null?void 0:Z.replace(Me,""),(Me==null?void 0:Me[0])==="("){Me=Me==null?void 0:Me.slice(1,(Me==null?void 0:Me.length)-1);let Be=[];(_=de.analyzeSplitToContent(Me,","))==null||_.forEach(Ve=>{(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])==="("&&(Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])!=="@"&&(Ve="@"+Ve),Be.push(fn(Ve))}),Me=Be==null?void 0:Be.join(",")}else Me=fn(Me);Me=($=de.analyzeSplitToContent(Me,","))==null?void 0:$.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)),Me!=null&&Me.includes("@ShowHide=Hide")&&(F=!1),(Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])==="}"&&(Z=Z+":"),Z=(V=Z==null?void 0:Z.replaceAll("{",""))==null?void 0:V.replaceAll("}","");let se="";if(Z!=null&&Z.includes("[")){let Be=(ne=Z==null?void 0:Z.replace("[",gn))==null?void 0:ne.split(gn),Ve=Be==null?void 0:Be[1];Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1),(me=(X=de.analyzeSplitToContent(Ve,","))==null?void 0:X.map(he=>((he==null?void 0:he[(he==null?void 0:he.length)-1])===","&&(he=he==null?void 0:he.slice(0,(he==null?void 0:he.length)-1)),he)))==null||me.forEach(he=>{se=(Be==null?void 0:Be[0])+he,se=se==null?void 0:se.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:Me})})}else se=Z==null?void 0:Z.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:Me})}});let o=A.cloneDeep(r);return(l==null?void 0:l.length)>0&&(o=l),o=o==null?void 0:o.filter(s=>{var h,c,p,m;return!(s!=null&&s.fatherPath)&&((c=(h=s==null?void 0:s.path)==null?void 0:h.split(Fi))==null?void 0:c.length)>1&&((m=(p=s==null?void 0:s.path)==null?void 0:p.split(Fi))==null?void 0:m[1])===""}),o=o==null?void 0:o.map(s=>{var h;return s.path=(h=s.path)==null?void 0:h.replace(Fi,""),s.path}),(o==null?void 0:o.length)>0&&(r=r==null?void 0:r.map(s=>{var c,p,m,g,u,D,M;let h=o==null?void 0:o.find(k=>{var K;return(K=s==null?void 0:s.path)==null?void 0:K.includes(k)});return!(s!=null&&s.fatherPath)&&h&&!((c=s==null?void 0:s.path)!=null&&c.includes(Fi))&&!(o!=null&&o.find(k=>(s==null?void 0:s.path)===k))&&(s.path=h+Fi+((M=(m=(p=s==null?void 0:s.path)==null?void 0:p.split(h))==null?void 0:m[1])==null?void 0:M.slice(1,(D=(u=(g=s==null?void 0:s.path)==null?void 0:g.split(h))==null?void 0:u[1])==null?void 0:D.length))),s})),r},Kd=(a,l)=>ac([{key:a}],l),Gd=async(a,l)=>{const n=[],r=Kd(a==null?void 0:a.key,l);return r&&(r==null?void 0:r.length)>0&&(r==null||r.forEach(s=>{n.push([{key:"path",value:s==null?void 0:s.path,parentPath:(s==null?void 0:s.parentPath)??"",isShow:s==null?void 0:s.isShow,menuFilter:s==null?void 0:s.filter}])})),await qd(a==null?void 0:a.value,n)};let kl="$R",Hi="[Any]";const Yd=a=>{var h,c;let l={},r=a==null?void 0:a[0];(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),l.group=r;let o=a==null?void 0:a[1],s;return o!=null&&o.includes("{")?s=(c=(h=o==null?void 0:o.replaceAll("{",""))==null?void 0:h.replaceAll("}",""))==null?void 0:c.replaceAll(Hi,""):s=o==null?void 0:o.replaceAll(Hi,""),(s==null?void 0:s[0])==="$"&&(s=s==null?void 0:s.slice(1,s==null?void 0:s.length)),l.filter=s,l},Jd=a=>{var D,M,k,K,I,H;let l=[],n=[],r=[],o=[],s=[],h=[],c="",p=a==null?void 0:a[0];(p==null?void 0:p[0])==="*"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length));let m=de.analyzeSplitToContent(p,":");(D=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])!=="{"&&(L==null?void 0:L[0])!=="["))==null||D.forEach(L=>{var x,w,b;(L==null?void 0:L[(L==null?void 0:L.length)-1])===":"&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1));let E=de.analyzerSplitToWord(L,"(");if((E==null?void 0:E.length)>1){c=(x=ec(E))==null?void 0:x.filter;let _=L==null?void 0:L.replace(c,"");if(r.push(_),(c==null?void 0:c[0])==="("){c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1);let $=[];(w=de.analyzeSplitToContent(c,","))==null||w.forEach(V=>{(V==null?void 0:V[(V==null?void 0:V.length)-1])===","&&(V=V==null?void 0:V.slice(0,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])==="("&&(V=V==null?void 0:V.slice(1,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])!=="@"&&(V="@"+V),$.push(fn(V))}),c=$==null?void 0:$.join(",")}else c=fn(c);c=(b=de.analyzeSplitToContent(c,","))==null?void 0:b.map($=>(($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),$)),c!=null&&c.includes("@ShowHide=Hide")&&h.push(_),o=[...o,...c]}else r.push(E==null?void 0:E[0])});let g=(M=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="{"))==null?void 0:M[0],u=(k=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="["))==null?void 0:k[0];return l=Di(u??""),l!=null&&l.every(L=>Array.isArray(L))&&(l=[l]),(g==null?void 0:g[(g==null?void 0:g.length)-1])===":"&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),s=(K=de.analyzeSplitToContent(g,"@"))==null?void 0:K[1],s="@"+s,g=g==null?void 0:g.replace(s,""),s=fn(s),s=(I=de.analyzeSplitToContent(s,","))==null?void 0:I.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),(g==null?void 0:g[0])==="{"&&(g=g==null?void 0:g.slice(1,(g==null?void 0:g.length)-1)),g=(H=de.analyzeSplitToContent(g,","))==null?void 0:H.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),g==null||g.forEach((L,E)=>{var F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya;let x=[],w=[],b=!1,_,$=[],V=[],ne=[],X="Input",me=[],Me=[];if(L!=null&&L.includes("==")){_=(F=L==null?void 0:L.split("=="))==null?void 0:F[0];let aa=(te=L==null?void 0:L.split("=="))==null?void 0:te[1],ce="";((Z=de.analyzeSplitToContent(aa,"$"))==null?void 0:Z.length)>1&&((se=de.analyzeSplitToContent(aa,"$"))==null?void 0:se[0])!=="$"?(ce=(Be=de.analyzeSplitToContent(aa,"$"))==null?void 0:Be[0],ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)):((Ve=de.analyzeSplitToContent(aa,"}"))==null?void 0:Ve.length)>1&&(ce=(he=de.analyzeSplitToContent(aa,"}"))==null?void 0:he[1]);let ga=aa==null?void 0:aa.replace(ce,"");(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(N=de.analyzeSplitToContent(ce,","))==null||N.forEach(Je=>{var Ca;(Je==null?void 0:Je[0])!=="@"&&(Je="@"+Je),(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));let Na=fn(Je);(Ca=de.analyzeSplitToContent(Na,","))==null||Ca.forEach(la=>{(la==null?void 0:la[(la==null?void 0:la.length)-1])===","&&(la=la==null?void 0:la.slice(0,(la==null?void 0:la.length)-1)),x.push(la)})}),(ga==null?void 0:ga[0])==="$"&&(ga=ga==null?void 0:ga.slice(1,ga==null?void 0:ga.length));let Ae=(ie=ga==null?void 0:ga.replace("*",kl))==null?void 0:ie.split(kl);$=(U=Ae==null?void 0:Ae[0])==null?void 0:U.split(":"),V=(Oe=(De=de.analyzeSplitToContent(Ae==null?void 0:Ae[1],":"))==null?void 0:De.filter((Je,Na)=>{var Ca,la;return Na!==((la=(Ca=Ae==null?void 0:Ae[1])==null?void 0:Ca.split(":"))==null?void 0:la.length)-1}))==null?void 0:Oe.map(Je=>((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)),ne=(ea=(Fe=de.analyzeSplitToContent(Ae==null?void 0:Ae[1],":"))==null?void 0:Fe.filter((Je,Na)=>{var Ca,la;return Na===((la=(Ca=Ae==null?void 0:Ae[1])==null?void 0:Ca.split(":"))==null?void 0:la.length)-1}))==null?void 0:ea[0],ne=(ee=(Ba=ne==null?void 0:ne.replaceAll("{",""))==null?void 0:Ba.replaceAll("}",""))==null?void 0:ee.split(":"),X="Select"}else if(((ua=de.analyzeSplitToContent(L,"="))==null?void 0:ua.length)>1)if(X="Select",_=(sa=(ue=L==null?void 0:L.replace("=",kl))==null?void 0:ue.split(kl))==null?void 0:sa[0],!(L!=null&&L.includes("If")))me=(oe=(Se=L==null?void 0:L.replace("=",kl))==null?void 0:Se.split(kl))==null?void 0:oe[1],me=me==null?void 0:me.split("||");else{let aa=(Ke=(ze=L==null?void 0:L.replace("=",kl))==null?void 0:ze.split(kl))==null?void 0:Ke[1];Me=(ca=de.analyzeSplitToContent(aa,")"))==null?void 0:ca.filter(ce=>!(ce!=null&&ce.includes("If"))),Me=Me==null?void 0:Me.map(ce=>((ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),ce=ce==null?void 0:ce.split("||"),ce)),w=(Ya=de.analyzeSplitToContent(aa,")"))==null?void 0:Ya.filter(ce=>ce==null?void 0:ce.includes("If")),w=w==null?void 0:w.map(ce=>((ce==null?void 0:ce[0])==="|"&&(ce=ce==null?void 0:ce.slice(2,ce==null?void 0:ce.length)),(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(ce==null?void 0:ce[0])!=="@"&&(ce="@"+ce),ce))}else if(((R=de.analyzeSplitToContent(L,"@"))==null?void 0:R.length)>1){_=(j=de.analyzeSplitToContent(L,"@"))==null?void 0:j[0],(_==null?void 0:_[(_==null?void 0:_.length)-1])==="@"&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1));let aa="@"+((J=de.analyzeSplitToContent(L,"@"))==null?void 0:J[1]);aa=fn(aa),x=(ve=de.analyzeSplitToContent(aa,","))==null?void 0:ve.map(ce=>((ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===","&&(ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)),ce)),x!=null&&x.find(ce=>ce==null?void 0:ce.includes("@Type"))&&(X=(ya=(pe=x==null?void 0:x.find(ce=>ce==null?void 0:ce.includes("@Type")))==null?void 0:pe.split("="))==null?void 0:ya[1])}else _=L;x!=null&&x.includes("@ShowHide=Hide")&&(b=!0),n.push({prop:_,label:_,value:"",menuPath:$,groups:V,columns:ne,type:X,options:me,allContents:Me,filters:x,width:g==null?void 0:g.length,isFormColHidden:b,filterContents:w})}),{groupName:r,groupFilters:o,formContents:n,contents:l,filter:s,hideContents:h}},Di=a=>{var r,o;if(!a||typeof a!="string")return[];let l=[],n=a.slice(1,(a==null?void 0:a.length)-1);if((n==null?void 0:n[0])!=="[")(r=de.analyzeSplitToContent(n,","))==null||r.forEach(s=>{(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)),l.push(s??"")});else{let s=[];(o=de.analyzeSplitToContent(n,","))==null||o.forEach(h=>{(h==null?void 0:h[(h==null?void 0:h.length)-1])===","&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),s.push(Di(h))}),l=s}return l},ft=(a,l)=>{var H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa;let n,r=[],o=[],s=[],h=[],c=[],p=[],m=[],g="Input",u,D="",M="",k="",K=[],I="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(n=(H=a==null?void 0:a.split("=="))==null?void 0:H[0],u=(L=a==null?void 0:a.split("=="))==null?void 0:L[0],g="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((w=(x=(E=a==null?void 0:a.replace("=",kl))==null?void 0:E.split(kl))==null?void 0:x[1])!=null&&w.includes("If")))if(n=de.analyzeSplitToContent(a,"@"),n=n==null?void 0:n[0],(n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=(_=(b=n==null?void 0:n.replace("=",kl))==null?void 0:b.split(kl))==null?void 0:_[0],n!=null&&n.includes("&")&&(n=(V=($=n==null?void 0:n.replace("&",kl))==null?void 0:$.split(kl))==null?void 0:V[0]),u=n,((ne=de.analyzeSplitToContent(a,"@"))==null?void 0:ne.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Qe=(X=de.analyzeSplitToContent(a,"@"))==null?void 0:X[1];if((Qe==null?void 0:Qe[0])!=="@"&&(Qe="@"+Qe),Qe=fn(Qe),M=Qe,M!=null&&M.includes("@Type")){let He=de.analyzeSplitToContent(M,",");He=He==null?void 0:He.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)),He=(me=He==null?void 0:He.filter(qe=>qe==null?void 0:qe.includes("@Type")))==null?void 0:me[0],g=(Me=He==null?void 0:He.split("="))==null?void 0:Me[1]}else g="Input"}}else if(a!=null&&a.includes("||")){let Qe=[];r=(Z=(te=(F=de.analyzeSplitToContent(a,"="))==null?void 0:F[1])==null?void 0:te.split("||"))==null?void 0:Z.map(qe=>{var ke,da,La,dl;let fe=qe;if(fe!=null&&fe.includes("@")){let Ol="@"+((da=(ke=fe==null?void 0:fe.replace("@",kl))==null?void 0:ke.split(kl))==null?void 0:da[1]);fe=(dl=(La=fe==null?void 0:fe.replace("@",kl))==null?void 0:La.split(kl))==null?void 0:dl[0],Ol=ni(Ol),Qe.push(Ol)}return{label:fe==null?void 0:fe.replaceAll("'",""),value:fe==null?void 0:fe.replaceAll("'","")}}),(Qe==null?void 0:Qe.length)>0&&(M="("+(Qe==null?void 0:Qe.join("||"))+")");let He=(se=de.analyzeSplitToContent(a,"="))==null?void 0:se[0];if(He!=null&&He.includes("@")){(He==null?void 0:He[(He==null?void 0:He.length)-1])==="="&&(He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1));let qe=(Be=de.analyzeSplitToContent(He,"@"))==null?void 0:Be[1];qe="@"+qe,qe=ni(qe),M=M===""?qe:qe+","+M}}else g="Input",D=(N=(he=(Ve=a==null?void 0:a.replace("=",kl))==null?void 0:Ve.split(kl))==null?void 0:he[1])==null?void 0:N.replaceAll("'","");else if((U=(ie=de.analyzeSplitToContent(a,"="))==null?void 0:ie[1])!=null&&U.includes("||")){let Qe=(De=de.analyzeSplitToContent(a,"="))==null?void 0:De[0];if((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!=null&&Qe.includes("@")){let ke=(Oe=de.analyzeSplitToContent(Qe,"@"))==null?void 0:Oe[1];ke="@"+ke,M=ni(ke),n=(ee=(Fe=de.analyzeSplitToContent(Qe,"@"))==null?void 0:Fe[0])==null?void 0:ee.slice(0,((Ba=(ea=de.analyzeSplitToContent(Qe,"@"))==null?void 0:ea[0])==null?void 0:Ba.length)-1),u=(Se=(ua=de.analyzeSplitToContent(Qe,"@"))==null?void 0:ua[0])==null?void 0:Se.slice(0,((sa=(ue=de.analyzeSplitToContent(Qe,"@"))==null?void 0:ue[0])==null?void 0:sa.length)-1)}else n=Qe,u=Qe;let He=(oe=de.analyzeSplitToContent(a,"="))==null?void 0:oe[1];He=de.analyzeSplitToContent(He,")");let qe=He==null?void 0:He.filter(ke=>!(ke!=null&&ke.includes("If")));qe==null||qe.forEach(ke=>{(ke==null?void 0:ke[0])==="("&&(ke=ke==null?void 0:ke.slice(1,(ke==null?void 0:ke.length)-1)),o==null||o.push(ke==null?void 0:ke.split("||"))});let fe=He==null?void 0:He.filter(ke=>ke==null?void 0:ke.includes("If"));fe=fe==null?void 0:fe.map(ke=>((ke==null?void 0:ke[0])==="|"&&(ke==null?void 0:ke[1])==="|"&&(ke=ke==null?void 0:ke.slice(2,ke==null?void 0:ke.length)),(ke==null?void 0:ke[0])==="("&&(ke=ke==null?void 0:ke.slice(1,(ke==null?void 0:ke.length)-1)),(ke==null?void 0:ke[0])!=="@"&&(ke="@"+ke),ke)),s=fe}else{let Qe=a==null?void 0:a.split("=="),He=(ze=Qe==null?void 0:Qe.filter(qe=>(qe==null?void 0:qe.includes("$"))&&(qe==null?void 0:qe[0])!=="{"))==null?void 0:ze[0];if(He&&!(He!=null&&He.includes("&"))){let qe=(Ke=He==null?void 0:He.replace("*",kl))==null?void 0:Ke.split(kl),fe=(qe==null?void 0:qe[0])===""?l==null?void 0:l.value:qe==null?void 0:qe[0];(fe==null?void 0:fe[0])==="("&&(fe=(ca=de.analyzeSplitToContent(fe,")"))==null?void 0:ca[1]),fe=(R=(Ya=fe==null?void 0:fe.replaceAll("{",""))==null?void 0:Ya.replaceAll("}",""))==null?void 0:R.replaceAll(Hi,""),(fe==null?void 0:fe[0])==="$"&&(fe=(j=fe==null?void 0:fe.slice(1,fe==null?void 0:fe.length))==null?void 0:j.replaceAll(":","/")),h=fe==null?void 0:fe.split("/");let ke=(ve=(J=qe==null?void 0:qe[1])==null?void 0:J.replace("{",kl))==null?void 0:ve.split(kl),da=ke==null?void 0:ke[0];(da==null?void 0:da[(da==null?void 0:da.length)-1])===":"&&(da=da==null?void 0:da.slice(0,(da==null?void 0:da.length)-1)),c=da==null?void 0:da.split(":"),p=(ce=(aa=(ya=(pe=ke==null?void 0:ke[1])==null?void 0:pe.replace("}",kl))==null?void 0:ya.split(kl))==null?void 0:aa[0])==null?void 0:ce.split(":");let La="";((ga=de.analyzeSplitToContent(He,")"))==null?void 0:ga.length)>1&&(La=(Ae=de.analyzeSplitToContent(He,")"))==null?void 0:Ae[0]),La&&La!==""&&((La==null?void 0:La[0])!=="@"&&(La="@"+La),M=ni(La))}if(Qe!=null&&Qe.some(qe=>(qe==null?void 0:qe[0])==="&")){let qe=(Je=Qe==null?void 0:Qe.filter(da=>(da==null?void 0:da[0])==="&"))==null?void 0:Je[0];(qe==null?void 0:qe[0])==="&"&&(qe=qe==null?void 0:qe.slice(1,qe==null?void 0:qe.length)),k=(Ca=(Na=qe==null?void 0:qe.replace("(",kl))==null?void 0:Na.split(kl))==null?void 0:Ca[0];let fe=(la=de.analyzeSplitToContent(qe,")"))==null?void 0:la[0];fe=(va=($a=fe==null?void 0:fe.replace("(",kl))==null?void 0:$a.split(kl))==null?void 0:va[1],fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1),(fe==null?void 0:fe[0])==="{"&&(fe=fe==null?void 0:fe.slice(1,fe==null?void 0:fe.length)),(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)),K=fe==null?void 0:fe.split(",");let ke=(W=de.analyzeSplitToContent(qe,")"))==null?void 0:W[1];ke&&ke!==""&&(I=ni(ke))}else if(!He&&((Te=Qe==null?void 0:Qe.filter(qe=>(qe==null?void 0:qe[0])==="{"))==null?void 0:Te.length)>0){let qe=Qe==null?void 0:Qe[(Qe==null?void 0:Qe.length)-1];qe=qe==null?void 0:qe.slice(1,(qe==null?void 0:qe.length)-1),qe=de.analyzeSplitToContent(qe,","),qe=qe==null?void 0:qe.map(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)),qe=qe==null?void 0:qe.map(fe=>{var ke,da,La,dl;if(fe=fe==null?void 0:fe.replaceAll("$",""),fe!=null&&fe.includes("{")){let Ol="";fe=fe==null?void 0:fe.replaceAll("{","");let sl=fe==null?void 0:fe.split("}");Ol=((da=(ke=sl==null?void 0:sl[0])==null?void 0:ke.split(":"))==null?void 0:da[0])+":"+(sl==null?void 0:sl[1]),fe=Ol,fe=fe+":"}if(fe!=null&&fe.includes(Hi)){let Ol="",sl=fe==null?void 0:fe.split(Hi);Ol=((dl=(La=sl==null?void 0:sl[0])==null?void 0:La.split(":"))==null?void 0:dl[0])+":"+(sl==null?void 0:sl[1]),fe=Ol,fe=fe+":"}return fe=fe==null?void 0:fe.replaceAll(":","/"),fe}),m=qe}else!((Ie=Qe==null?void 0:Qe[1])!=null&&Ie.includes("$"))&&((we=Qe==null?void 0:Qe[1])==null?void 0:we[0])!=="("&&p.push(Qe==null?void 0:Qe[1])}else n=(wa=a==null?void 0:a.split("&"))==null?void 0:wa[0],u=(oa=a==null?void 0:a.split("&"))==null?void 0:oa[0];return{label:n,prop:u,options:r,allContents:o,filterContents:s,menus:h,groups:c,words:p,align:"center",formType:g,filter:M,functionName:k,functionRelatedWords:K,calculatorFilter:I,relatedPages:m,value:D}},Co=(a,l)=>{var r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z;let n=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((h=(s=(o=(r=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:r.replace(":",kl))==null?void 0:o.split(kl))==null?void 0:s[0])!=null&&h.includes(","))){let se=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),Be=(c=se==null?void 0:se.replace(":",kl))==null?void 0:c.split(kl);if(((p=de.analyzeSplitToContent(Be==null?void 0:Be[1],"="))==null?void 0:p.length)===1){let Ve=Be==null?void 0:Be[0],he=[];(u=de.analyzeSplitToContent((g=Be==null?void 0:Be[1])==null?void 0:g.slice(1,((m=Be==null?void 0:Be[1])==null?void 0:m.length)-1),","))==null||u.forEach(N=>{var ie,U;((ie=de.analyzeSplitToContent(N,"="))==null?void 0:ie.length)>1?((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),he=[...he,...Co(N,l)]):((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),he.push((U=Co(N,l))==null?void 0:U[0]))}),n==null||n.push({label:Ve,prop:Ve,children:he,align:"center"})}else{let Ve=[];if(((D=de.analyzeSplitToContent(se,"="))==null?void 0:D.length)>=2){let N=(M=de.analyzeSplitToContent(se,"="))==null?void 0:M[1],ie=(k=de.analyzeSplitToContent(N,"/"))==null?void 0:k.map(U=>((U==null?void 0:U[(U==null?void 0:U.length)-1])==="/"&&(U=U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1)),U));Ve=ie==null?void 0:ie.map(U=>(U=Di(U),U))}let he=(x=(E=(L=(H=(I=(K=se==null?void 0:se.replace("{",kl))==null?void 0:K.split(kl))==null?void 0:I[1])==null?void 0:H.replace("}",kl))==null?void 0:L.split(kl))==null?void 0:E[0])==null?void 0:x.split(",");he==null||he.forEach((N,ie)=>{(Ve==null?void 0:Ve.length)>0&&ie===0?n==null||n.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:Ve==null?void 0:Ve.map(U=>{let De={};return he==null||he.forEach((Oe,Fe)=>{De[Oe]=U==null?void 0:U[Fe]}),De}),options:Ve==null?void 0:Ve.map(U=>({label:U==null?void 0:U[0],value:U==null?void 0:U[0]})),mainKey:!0}):n==null||n.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((w=de.analyzeSplitToContent(a,"="))==null?void 0:w.length)===2&&((_=(b=de.analyzeSplitToContent(a,"="))==null?void 0:b[1])==null?void 0:_[0])==="["){let se=[];if((($=de.analyzeSplitToContent(a,"="))==null?void 0:$.length)>=2){let Ve=(V=de.analyzeSplitToContent(a,"="))==null?void 0:V[1],he=(X=(ne=de.analyzeSplitToContent(Ve,"|"))==null?void 0:ne.filter(N=>N!=="|"))==null?void 0:X.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));se=he==null?void 0:he.map(N=>(N=Di(N),N))}let Be=(Me=(me=a==null?void 0:a.replace("}",kl))==null?void 0:me.split(kl))==null?void 0:Me[0];Be=(F=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length))==null?void 0:F.split(","),Be==null||Be.forEach((Ve,he)=>{(se==null?void 0:se.length)>0&&he===0?n==null||n.push({label:Ve,prop:Ve,align:"center",formType:"Select",relatedContents:se==null?void 0:se.map(N=>{let ie={};return Be==null||Be.forEach((U,De)=>{ie[U]=N==null?void 0:N[De]}),ie}),options:se==null?void 0:se.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):n==null||n.push({label:Ve,prop:Ve,align:"center"})})}else(te=de.analyzeSplitToContent(a,","))==null||te.forEach(se=>{var Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va;if((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?void 0:se[0])==="{"){let W=de.analyzeSplitToContent(se,"="),Te=W==null?void 0:W[(W==null?void 0:W.length)-1],Ie=[],we=[],wa=[],oa="",Qe="",He=[],qe=[],fe=(Be=Te==null?void 0:Te.replace("*",kl))==null?void 0:Be.split(kl),ke=(fe==null?void 0:fe[0])===""?l==null?void 0:l.value:fe==null?void 0:fe[0];ke=de.analyzeSplitToContent(ke,")");let da="";if((ke==null?void 0:ke.length)>1&&((Ve=ke==null?void 0:ke[0])==null?void 0:Ve[0])!=="&"&&(da=ke==null?void 0:ke[0],(da==null?void 0:da[0])!=="@"&&(da="@"+da),Qe=da??""),ke=(he=ke==null?void 0:ke.filter(sl=>(sl==null?void 0:sl[0])==="$"))==null?void 0:he[0],((N=de.analyzeSplitToContent(ke,"}"))==null?void 0:N.length)>1&&((U=(ie=de.analyzeSplitToContent(ke,"}"))==null?void 0:ie[1])==null?void 0:U[0])==="("&&(da=(De=de.analyzeSplitToContent(ke,"}"))==null?void 0:De[1],(da==null?void 0:da[0])!=="@"&&(da="@"+da),Qe!==""&&(Qe=Qe+","),Qe=Qe+da),(Oe=ke==null?void 0:ke.slice(1,(ke==null?void 0:ke.length)-1))!=null&&Oe.includes("$")||(ke=(Fe=de.analyzeSplitToContent(ke,"}"))==null?void 0:Fe[0]),(ke==null?void 0:ke[0])==="$"&&(ke=(ea=ke==null?void 0:ke.replace("{",""))==null?void 0:ea.replace("}",":"),ke=(Ba=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length))==null?void 0:Ba.replaceAll(":","/")),ke!=null&&ke.includes("$")){let sl=(ee=ke==null?void 0:ke.split("$"))==null?void 0:ee[0];sl=(ua=sl==null?void 0:sl.split("/"))==null?void 0:ua[0],ke=sl+"/"+((ue=ke==null?void 0:ke.split("$"))==null?void 0:ue[1])+"/"}Ie=(ke==null?void 0:ke.split("/"))??[];let La=(Se=(sa=fe==null?void 0:fe[1])==null?void 0:sa.replace("{",kl))==null?void 0:Se.split(kl);if((Ke=(ze=(oe=fe==null?void 0:fe[1])==null?void 0:oe.split("(@"))==null?void 0:ze[0])!=null&&Ke.includes("&&")||(R=(Ya=(ca=fe==null?void 0:fe[1])==null?void 0:ca.split("@"))==null?void 0:Ya[0])!=null&&R.includes("&&")){let sl=(j=fe==null?void 0:fe[1])!=null&&j.includes("(@")?(pe=(ve=(J=fe==null?void 0:fe[1])==null?void 0:J.split("(@"))==null?void 0:ve[0])==null?void 0:pe.split("&&"):(ce=(aa=(ya=fe==null?void 0:fe[1])==null?void 0:ya.split("@"))==null?void 0:aa[0])==null?void 0:ce.split("&&");He=sl==null?void 0:sl.map(Fa=>{var Vl,zl;return(Fa==null?void 0:Fa[0])==="*"&&(Fa=Fa==null?void 0:Fa.slice(1,Fa==null?void 0:Fa.length)),Fa=(zl=(Vl=Fa==null?void 0:Fa.replace("{",kl))==null?void 0:Vl.split(kl))==null?void 0:zl[0],(Fa==null?void 0:Fa[(Fa==null?void 0:Fa.length)-1])===":"&&(Fa=Fa==null?void 0:Fa.slice(0,(Fa==null?void 0:Fa.length)-1)),Fa=Fa==null?void 0:Fa.split(":"),Fa});let Fl=[];sl==null||sl.forEach((Fa,Vl)=>{var zl,Aa;(Fa==null?void 0:Fa[0])==="*"&&(Fa=Fa==null?void 0:Fa.slice(1,Fa==null?void 0:Fa.length)),Fa=(Aa=(zl=Fa==null?void 0:Fa.replace("{",kl))==null?void 0:zl.split(kl))==null?void 0:Aa[1],(Fa==null?void 0:Fa[(Fa==null?void 0:Fa.length)-1])==="}"&&(Fa=Fa==null?void 0:Fa.slice(0,(Fa==null?void 0:Fa.length)-1)),Fa=Fa==null?void 0:Fa.split(","),Fl.push(Vl===0?(Fa==null?void 0:Fa.length)-1:Fa==null?void 0:Fa.length),qe=[...qe,...Fa]}),Fl=(ga=de.prefixSum(Fl))==null?void 0:ga.map(Fa=>Fa==null?void 0:Fa.total),He=He==null?void 0:He.map((Fa,Vl)=>({number:Fl==null?void 0:Fl[Vl],contents:Fa}))}let dl=La==null?void 0:La[0];(dl==null?void 0:dl[(dl==null?void 0:dl.length)-1])===":"&&(dl=dl==null?void 0:dl.slice(0,(dl==null?void 0:dl.length)-1)),we=(dl==null?void 0:dl.split(":"))??[],wa=((Ca=(Na=(Je=(Ae=La==null?void 0:La[1])==null?void 0:Ae.replace("}",kl))==null?void 0:Je.split(kl))==null?void 0:Na[0])==null?void 0:Ca.split(","))??[];let Ol=($a=W==null?void 0:W[0])==null?void 0:$a.slice(1,((la=W==null?void 0:W[0])==null?void 0:la.length)-2);Qe&&Qe!==""&&(oa=ni(Qe)),(va=Ol==null?void 0:Ol.split(","))==null||va.forEach((sl,Fl)=>{var Fa,Vl,zl,Aa,rl;((Fa=de.analyzeSplitToContent(sl,"@"))==null?void 0:Fa.length)>1&&(sl=(Vl=de.analyzeSplitToContent(sl,"@"))==null?void 0:Vl[0],(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))),n.push({label:sl,prop:sl,align:"center",menus:Ie,groups:(He==null?void 0:He.length)===0?we:(zl=He==null?void 0:He.find(nl=>(nl==null?void 0:nl.number)>=Fl))==null?void 0:zl.contents,words:(qe==null?void 0:qe.length)===0?(Aa=wa==null?void 0:wa[Fl])==null?void 0:Aa.split(":"):(rl=qe==null?void 0:qe[Fl])==null?void 0:rl.split(":"),formType:(Ie==null?void 0:Ie.length)>0?"Select":"Input",mainKey:Fl===0,filter:oa,isMainPath:(He==null?void 0:He.findIndex(nl=>(nl==null?void 0:nl.number)>=Fl))===0})})}else n.push({label:se,prop:se,align:"center"})});else{let se=(Z=de.analyzeSplitToContent(a,","))==null?void 0:Z.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));se==null||se.forEach(Be=>{n.push(ft(Be,l))})}return n},Xd=(a,l)=>{var h,c,p,m,g;let n=a;if(!a)return;let r="";((h=de.analyzeSplitToContent(a,"}"))==null?void 0:h.length)>1&&(n=(c=de.analyzeSplitToContent(a,"}"))==null?void 0:c[0],r=(p=de.analyzeSplitToContent(a,"}"))==null?void 0:p[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let o=[],s=[];return o.push({label:"排序",prop:"sort"}),o.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=de.analyzeSplitToContent(n,","))==null||m.forEach(u=>{var D;(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?void 0:u[0])==="{"?(D=Co(u,l))==null||D.forEach(M=>{o.push(M)}):o.push(ft(u,l))}),o!=null&&o.some(u=>{var D;return(D=u==null?void 0:u.prop)==null?void 0:D.includes("@")})&&(o=o==null?void 0:o.filter(u=>{var D;return!((D=u==null?void 0:u.prop)!=null&&D.includes("@"))})),r!==""&&((r==null?void 0:r[0])=="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),(g=de.analyzeSplitToContent(r,","))==null||g.forEach(u=>{var D;(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?void 0:u[0])==="{"?(D=Co(u,l))==null||D.forEach(M=>{s.push(M)}):s.push(ft(u,l))})),{columns:o,secondColumns:s}},fn=a=>{var l,n,r,o,s;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let h=(n=(l=a==null?void 0:a.replace("(",kl))==null?void 0:l.split(kl))==null?void 0:n[1],c=(o=(r=a==null?void 0:a.replace("(",kl))==null?void 0:r.split(kl))==null?void 0:o[0];return h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1),h=(s=de.analyzeSplitToContent(h,","))==null?void 0:s.map(p=>((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)),(p==null?void 0:p[0])==="("&&(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1)),c+p)),h=h==null?void 0:h.join(","),a!=null&&a.includes("@Quote")&&(h!=null&&h.includes("@QuoteType")||(h=h===""?h+"@QuoteType=Manual":h+",@QuoteType=Manual"),h!=null&&h.includes("@QuoteSonSync")||(h=h===""?h+"@QuoteSonSync=No":h+",@QuoteSonSync=No"),h!=null&&h.includes("@QuoteFatherSync")||(h=h===""?h+"@QuoteFatherSync=Yes":h+",@QuoteFatherSync=Yes")),h}},is=a=>{let l=a==null?void 0:a.map(n=>{var r,o;return{menus:n==null?void 0:n.menus,content:((r=n==null?void 0:n.menus)==null?void 0:r.join("/"))+kl+((o=n==null?void 0:n.groups)==null?void 0:o.join("/"))}});return l=l==null?void 0:l.filter(n=>{var r;return(n==null?void 0:n.menus)&&((r=n==null?void 0:n.menus)==null?void 0:r.length)>0}),l=l==null?void 0:l.map(n=>n==null?void 0:n.content),l=[...new Set(l)],l=l==null?void 0:l.map(n=>{var r,o;return{menus:(r=n==null?void 0:n.split(kl))==null?void 0:r[0],groups:((o=n==null?void 0:n.split(kl))==null?void 0:o[1])??[]}}),l},os=a=>{var n;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(n=de.analyzeSplitToContent(l,","))==null?void 0:n.map(r=>((r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])!=="@"&&(r="@"+r),r=fn(r),r)),l==null?void 0:l.join(",")},lc=(a,l,n="")=>{var L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va;let r=[],o=[],s=[],h="",c="",p="",m=[],g=[],u=[],D="";if(((L=a==null?void 0:a[0])==null?void 0:L[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((w=a==null?void 0:a[0])==null?void 0:w[0])!=="*"&&((b=a==null?void 0:a[0])==null?void 0:b[0])!=="$"&&(h=(_=de.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:_[0],(h==null?void 0:h[0])!=="@"&&(h="@"+h),h=ni(h),p=($=de.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[1],(p==null?void 0:p[0])==="$"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length)),p=p==null?void 0:p.replaceAll(":","/"));let k=de.analyzeSplitToContent(a==null?void 0:a[0],":");if(r=(V=k==null?void 0:k.filter(W=>(W==null?void 0:W[0])!=="{"&&(W==null?void 0:W[0])!=="["))==null?void 0:V.join(""),c=(ne=a==null?void 0:a[0])==null?void 0:ne.replace(r,""),(r==null?void 0:r[0])==="("&&(r=""),D=(X=k==null?void 0:k.filter(W=>(W==null?void 0:W[0])!=="["))==null?void 0:X.join(""),D=(me=a==null?void 0:a[0])==null?void 0:me.replace(D,""),c=c==null?void 0:c.replace(D,""),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),((Me=de.analyzeSplitToContent(c,"@"))==null?void 0:Me.length)>1&&(h=(F=de.analyzeSplitToContent(c,"@"))==null?void 0:F[1],(h==null?void 0:h[(h==null?void 0:h.length)-1])===":"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),h="@"+h,h=fn(h),c=(te=de.analyzeSplitToContent(c,"@"))==null?void 0:te[0],c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),((Z=de.analyzeSplitToContent(r,"@"))==null?void 0:Z.length)>1){h!==""&&(h=h+",");let W=(se=de.analyzeSplitToContent(r,"@"))==null?void 0:se[1];W="@"+W,W=fn(W),h=h+W,r=(Be=de.analyzeSplitToContent(r,"@"))==null?void 0:Be[0]}if((r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=r===""?[]:r==null?void 0:r.split(":"),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),n!==""){let W=(Ve=de.analyzeSplitToContent(n,")"))==null?void 0:Ve[0],Te=(he=de.analyzeSplitToContent(n,"@"))==null?void 0:he[1];p=(ie=(N=de.analyzeSplitToContent(n,"@"))==null?void 0:N[0])==null?void 0:ie.replace(W,""),(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)),W=os(W),Te=os(Te);let Ie=W??"";if(Ie!==""&&(Ie=Ie+","),Ie=Ie+Te,(Ie==null?void 0:Ie[(Ie==null?void 0:Ie.length)-1])===","&&(Ie=Ie==null?void 0:Ie.slice(0,(Ie==null?void 0:Ie.length)-1)),Ie!==""&&h!==""&&(h=h+","),h=h+Ie,(p==null?void 0:p[0])==="$"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length)),p=(U=de.analyzeSplitToContent(p,":"))==null?void 0:U.filter((we,wa)=>{var oa;return!((we==null?void 0:we[0])==="{"&&wa===((oa=de.analyzeSplitToContent(p,":"))==null?void 0:oa.length)-1)}),p=p==null?void 0:p.join(""),(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)),h!=null&&h.includes("@Sync")||(h=h===""?h+"@Sync=(Yes,Yes)":h+",@Sync=(Yes,Yes)"),p!=null&&p.includes("$")){let we=(Oe=(De=p==null?void 0:p.replace("*",kl))==null?void 0:De.split(kl))==null?void 0:Oe[1],wa=(ea=(Fe=p==null?void 0:p.replace("*",kl))==null?void 0:Fe.split(kl))==null?void 0:ea[0];wa=wa==null?void 0:wa.split("$"),wa=((ee=(Ba=wa==null?void 0:wa[0])==null?void 0:Ba.split(":"))==null?void 0:ee[0])+":"+(wa==null?void 0:wa[1])+":",p=wa+"*"+we}else p=(ua=p==null?void 0:p.replaceAll("{",""))==null?void 0:ua.replaceAll("}","")}h!==""&&h&&(h="("+h+")"),h=p+h,((ue=de.analyzeSplitToContent(c,"}"))==null?void 0:ue.length)>1&&(c=(sa=de.analyzeSplitToContent(c,"}"))==null?void 0:sa.filter(W=>(W==null?void 0:W[0])!=="@"),c=c==null?void 0:c.join(""));let K=Xd(c,l);s=c===""?[]:(K==null?void 0:K.columns)??[],u=de.getColumnChild(s);let I=de.getColumnChild(s);s!=null&&s.some(W=>{var Te;return Array.isArray(W==null?void 0:W.children)&&((Te=W==null?void 0:W.children)==null?void 0:Te.length)>0})&&(s=[s]),o=D?Di(D):[],!(o!=null&&o.every(W=>Array.isArray(W)))&&(o==null?void 0:o.length)>0&&(o=[o]),(o==null?void 0:o.length)>0&&(Array.isArray(o==null?void 0:o[0])&&((Se=o==null?void 0:o[0])!=null&&Se.every(W=>Array.isArray(W)))?o=o==null?void 0:o.map((W,Te)=>(W=W.map((Ie,we)=>(Ie.unshift("{}"),Ie.unshift((we+1).toString()),Ie)),W)):o=o==null?void 0:o.map((W,Te)=>(W.unshift("{}"),W.unshift((Te+1).toString()),W))),K!=null&&K.secondColumns&&((oe=K==null?void 0:K.secondColumns)==null?void 0:oe.length)>0&&((o==null?void 0:o.length)>0?o=o==null?void 0:o.map((W,Te)=>{var Ie,we;return Array.isArray(W==null?void 0:W[0])?W=W==null?void 0:W.map((wa,oa)=>{var Qe,He;return wa.unshift((He=(Qe=K==null?void 0:K.secondColumns)==null?void 0:Qe[oa])==null?void 0:He.prop),wa}):W.unshift((we=(Ie=K==null?void 0:K.secondColumns)==null?void 0:Ie[Te])==null?void 0:we.prop),W}):o=(ze=K==null?void 0:K.secondColumns)==null?void 0:ze.map((W,Te)=>(W=[W==null?void 0:W.label],W.push(Te),W)),s.unshift({label:"",prop:"disabled",sortable:!1})),u=u==null?void 0:u.map(W=>{var Te,Ie;return{menus:W==null?void 0:W.menus,content:((Te=W==null?void 0:W.menus)==null?void 0:Te.join("/"))+kl+((Ie=W==null?void 0:W.groups)==null?void 0:Ie.join("/"))}});let H=[];if(((ca=(Ke=h==null?void 0:h.replace("(",kl))==null?void 0:Ke.split(kl))==null?void 0:ca[0])!==""&&(H=(R=(Ya=h==null?void 0:h.replace("(",kl))==null?void 0:Ya.split(kl))==null?void 0:R[0],H=[H],H=H==null?void 0:H.map(W=>{var Ie,we,wa;let Te=W==null?void 0:W.split("*");return{menus:(Ie=Te==null?void 0:Te[0])==null?void 0:Ie.split(":"),content:((we=Te==null?void 0:Te[0])==null?void 0:we.replaceAll(":","/"))+kl+((wa=Te==null?void 0:Te[1])==null?void 0:wa.replaceAll(":","/"))}}),u=[...u,...H]),u=u==null?void 0:u.filter(W=>{var Te;return(W==null?void 0:W.menus)&&((Te=W==null?void 0:W.menus)==null?void 0:Te.length)>0}),u=u==null?void 0:u.map(W=>W==null?void 0:W.content),u=[...new Set(u)],u=u==null?void 0:u.map(W=>{var Te,Ie;return{menus:(Te=W==null?void 0:W.split(kl))==null?void 0:Te[0],groups:((Ie=W==null?void 0:W.split(kl))==null?void 0:Ie[1])??[]}}),m=I==null?void 0:I.filter(W=>{var Te;return(W==null?void 0:W.filter)&&((Te=W==null?void 0:W.filter)==null?void 0:Te.includes("@Sync"))}),(m==null?void 0:m.length)>0&&(m=m==null?void 0:m.filter(W=>{var Te,Ie,we,wa;return(wa=(we=(Ie=(Te=de.analyzeSplitToContent(W==null?void 0:W.filter,","))==null?void 0:Te.find(oa=>oa==null?void 0:oa.includes("@Sync")))==null?void 0:Ie.split(","))==null?void 0:we[0])==null?void 0:wa.includes("Yes")}),m=is(m)),g=I==null?void 0:I.filter(W=>{var Te;return(W==null?void 0:W.filter)&&((Te=W==null?void 0:W.filter)==null?void 0:Te.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(W=>{var Te,Ie,we,wa;return(wa=(we=(Ie=(Te=de.analyzeSplitToContent(W==null?void 0:W.filter,","))==null?void 0:Te.find(oa=>oa==null?void 0:oa.includes("@Sync")))==null?void 0:Ie.split(","))==null?void 0:we[1])==null?void 0:wa.includes("Yes")}),g=is(g)),h!==""&&(h!=null&&h.includes("@Sync"))&&(h==null?void 0:h[0])!=="("){let W=(j=h==null?void 0:h.replace("(",kl))==null?void 0:j.split(kl),Te=W==null?void 0:W[1];if(Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1),Te=de.analyzeSplitToContent(Te,","),(pe=(ve=(J=Te==null?void 0:Te.find(Ie=>Ie==null?void 0:Ie.includes("@Sync")))==null?void 0:J.split(","))==null?void 0:ve[0])!=null&&pe.includes("Yes")){let Ie=W==null?void 0:W[0];Ie=[{menus:(aa=(ya=Ie==null?void 0:Ie.split("*"))==null?void 0:ya[0])==null?void 0:aa.replaceAll(":","/"),groups:((ga=(ce=Ie==null?void 0:Ie.split("*"))==null?void 0:ce[1])==null?void 0:ga.split(":"))??[]}],m=[...m,...Ie]}if((Na=(Je=(Ae=Te==null?void 0:Te.find(Ie=>Ie==null?void 0:Ie.includes("@Sync")))==null?void 0:Ae.split(","))==null?void 0:Je[1])!=null&&Na.includes("Yes")){let Ie=W==null?void 0:W[0];Ie=[{menus:(la=(Ca=Ie==null?void 0:Ie.split("*"))==null?void 0:Ca[0])==null?void 0:la.replaceAll(":","/"),groups:((va=($a=Ie==null?void 0:Ie.split("*"))==null?void 0:$a[1])==null?void 0:va.split(":"))??[]}],g=[...g,...Ie]}}return{groupName:r,tableColumns:s,tableFilter:h,tableContents:o,columns:(K==null?void 0:K.secondColumns)??[],relatedQuotes:u,fatherSyncContents:m,sonSyncContents:g}},rc=(a,l)=>(a=a==null?void 0:a.map((n,r)=>{var o,s,h,c;if(Array.isArray(n))n=n==null?void 0:n.map(p=>{var m,g,u,D;return p!=null&&p.isMainPath||(((m=p==null?void 0:p.children)==null?void 0:m.length)>0?p.children=rc(p.children,l):((g=p==null?void 0:p.menus)==null?void 0:g.length)>0&&!((u=n==null?void 0:n[0])!=null&&u.isMainPath)&&(p.menus=(D=p.menus)==null?void 0:D.map((M,k)=>{var K,I;return((K=p.menus)==null?void 0:K.length)-1===k&&M===""&&(l==null?void 0:l.parentContent)+"/"!==((I=p.menus)==null?void 0:I.join("/"))&&(M=l==null?void 0:l.value),p}),p.bindMenus=p.menus)),p});else{if(r===0&&((o=n.menus)==null?void 0:o.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((s=n.menus)==null?void 0:s.length)>0&&!((h=a==null?void 0:a[0])!=null&&h.isMainPath)&&(n.menus=(c=n.menus)==null?void 0:c.map((p,m)=>{var g,u;return((g=n.menus)==null?void 0:g.length)-1===m&&p===""&&(l==null?void 0:l.parentContent)+"/"!==((u=n.menus)==null?void 0:u.join("/"))&&(p=l==null?void 0:l.value),p}),n.bindMenus=n.menus)}return n}),a),Zd=(a,l)=>(a=a==null?void 0:a.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=rc(n.contents,l)),n)),a),ht=(a,l)=>{let n=a;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(r=>(r=ht(r,l),r)):n=n==null?void 0:n.map(r=>{var o,s;return r!=null&&r.children&&((o=r==null?void 0:r.children)==null?void 0:o.length)>0?r.children=ht(r==null?void 0:r.children,l):r!=null&&r.words&&((s=r==null?void 0:r.words)==null?void 0:s.length)>0&&(l!=null&&l.find(h=>{var c,p,m,g;return((g=(c=r==null?void 0:r.prop)==null?void 0:c.split("."))==null?void 0:g[((m=(p=r==null?void 0:r.prop)==null?void 0:p.split("."))==null?void 0:m.length)-1])===h}))&&(r.mainKey=!0),r}),n};let kr="$R";const Qd=A.useUnit(A.pinia),{selectTitle:Qr}=A.storeToRefs(Qd),ep=A.useMenuState(A.pinia),{localFiles:ap}=A.storeToRefs(ep),bn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixColumn",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ri=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ri||{});const lp=a=>{var l,n,r,o,s;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let h=a==null?void 0:a.contents,c=a==null?void 0:a.filter;(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(l=de.analyzeSplitToContent(c,","))==null?void 0:l.map(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)),m)),c=c==null?void 0:c[1],(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(n=de.analyzeSplitToContent(c,","))==null?void 0:n.map(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)),m));let p=(s=(o=(r=ap.value)==null?void 0:r.filter(m=>{var g;return(m==null?void 0:m.path)===((g=a==null?void 0:a.groupName)==null?void 0:g[0])}))==null?void 0:o[0])==null?void 0:s.children;return p=(p==null?void 0:p.filter(m=>c==null?void 0:c.find(g=>g===(m==null?void 0:m.name))))??[],h.push({key:"backGround",contents:p}),h}return a==null?void 0:a.contents},rp=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},np=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{size:l}):a==null?void 0:a.contents},ip=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const n=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(n)?a==null?void 0:a.filter:n}),l}return a==null?void 0:a.contents},op=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},tp=a=>{var n;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(r=>{var o;return(r==null?void 0:r.key)==="tableContents"&&(r.contents=(o=r.contents)==null?void 0:o.slice(0,parseInt(a==null?void 0:a.filter))),r})},sp=async a=>{var l,n,r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(Z=>((Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=de.shuffle(Z.contents)),Z));if((a==null?void 0:a.filter)==="Auto"){let te=(r=(n=a==null?void 0:a.contents)==null?void 0:n.find(De=>(De==null?void 0:De.key)==="header"))==null?void 0:r.contents;Array.isArray(te==null?void 0:te[0])&&(te=te==null?void 0:te[0]),te=de.getColumnChild(te);let Z=te==null?void 0:te.filter(De=>(De==null?void 0:De.filter)&&(De==null?void 0:De.filter)!==""),se=new Map,Be=[];Z==null||Z.forEach(De=>{var Oe,Fe;se.get((Oe=De==null?void 0:De.menus)==null?void 0:Oe.join("/"))||(se.set((Fe=De==null?void 0:De.menus)==null?void 0:Fe.join("/"),De),Be.push(De))});let Ve=(s=(o=Qr==null?void 0:Qr.value)==null?void 0:o.find(De=>(De==null?void 0:De.condition)==="child"))==null?void 0:s.value,he=Be==null?void 0:Be.map(De=>{var Oe,Fe,ea;return De=(Oe=De==null?void 0:De.menus)==null?void 0:Oe.join("/"),(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&((ea=(Fe=Qr==null?void 0:Qr.value)==null?void 0:Fe.find(Ba=>(Ba==null?void 0:Ba.condition)==="child"))==null?void 0:ea.parentContent)+"/"!==De?De=De+Ve:(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&(De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1)),De}),N=Be==null?void 0:Be.map(De=>De==null?void 0:De.groups),ie=he==null?void 0:he.map(async De=>{let Oe=await Jr(De,!1);return{path:De,contents:Oe}});ie=await Promise.all(ie);let U=ie==null?void 0:ie.map((De,Oe)=>{var ea,Ba,ee,ua,ue,sa,Se;let Fe=(ea=De==null?void 0:De.contents)==null?void 0:ea.filter(oe=>{var ze,Ke;return(oe==null?void 0:oe.name)===((Ke=N==null?void 0:N[Oe])==null?void 0:Ke[((ze=N==null?void 0:N[Oe])==null?void 0:ze.length)-1])});return Fe=(ua=(ee=(Ba=Fe==null?void 0:Fe[0])==null?void 0:Ba.compData)==null?void 0:ee.find(oe=>(oe==null?void 0:oe.key)==="tableContents"))==null?void 0:ua.contents,(De==null?void 0:De.path)===((sa=(ue=Qr==null?void 0:Qr.value)==null?void 0:ue.find(oe=>(oe==null?void 0:oe.condition)==="child"))==null?void 0:sa.parentContent)&&(Fe=((Se=Fe==null?void 0:Fe.map(oe=>{for(let ze in oe)if(oe[ze]===Ve)return oe}))==null?void 0:Se.filter(oe=>oe))??[]),Fe??[]});if(U=U==null?void 0:U.map(De=>(De=De==null?void 0:De.map(Oe=>{var ea;let Fe={};for(let Ba in Oe)if(Z!=null&&Z.find(ee=>{var ua,ue;return((ue=(ua=ee==null?void 0:ee.words)==null?void 0:ua[0])==null?void 0:ue.replaceAll("'",""))===Ba})){let ee=(ea=Z==null?void 0:Z.find(ua=>{var ue,sa;return((sa=(ue=ua==null?void 0:ua.words)==null?void 0:ue[0])==null?void 0:sa.replaceAll("'",""))===Ba}))==null?void 0:ea.prop;Fe[ee]=Oe==null?void 0:Oe[Ba]}return Fe}),De)),U=de.cartesianProduct(U),Array.isArray(U==null?void 0:U[0])&&(U=U==null?void 0:U[0]),(U==null?void 0:U.length)>0&&((u=(c=(h=Z==null?void 0:Z[0])==null?void 0:h.menus)==null?void 0:c.join("/"))==null?void 0:u[((g=(m=(p=Z==null?void 0:Z[0])==null?void 0:p.menus)==null?void 0:m.join("/"))==null?void 0:g.length)-1])==="/")return(D=a==null?void 0:a.contents)==null?void 0:D.map(Oe=>{var Fe;return(Oe==null?void 0:Oe.key)==="tableContents"&&(U==null?void 0:U.length)>0&&(Oe.contents=((Fe=Oe.contents)==null?void 0:Fe.length)>0?Oe.contents:U),Oe})}if((a==null?void 0:a.filter)==="Manual"){let te=[],Z=[],se=(k=(M=a==null?void 0:a.contents)==null?void 0:M.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:k.contents;(se==null?void 0:se[(se==null?void 0:se.length)-1])===")"?se=(I=(K=se==null?void 0:se.replace("(",kr))==null?void 0:K.split(kr))==null?void 0:I[0]:se="",se!==""&&(te=((L=(H=se==null?void 0:se.split("*"))==null?void 0:H[0])==null?void 0:L.split(":"))??[],Z=((_=(b=(w=(x=(E=se==null?void 0:se.split("*"))==null?void 0:E[1])==null?void 0:x.replace("{",kr))==null?void 0:w.split(kr))==null?void 0:b[0])==null?void 0:_.split(":"))??[]);let Be=(V=($=a==null?void 0:a.contents)==null?void 0:$.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:V.contents;Be=(X=(ne=Be==null?void 0:Be.replace("(",kr))==null?void 0:ne.split(kr))==null?void 0:X[1],Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1);let Ve=(me=a==null?void 0:a.contents)==null?void 0:me.map(N=>{var ie,U,De,Oe,Fe,ea,Ba,ee,ua;return(N==null?void 0:N.key)==="header"&&((ie=N==null?void 0:N.contents)!=null&&ie.every(ue=>(ue==null?void 0:ue.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((U=N==null?void 0:N.contents)==null?void 0:U[0])?N.contents=(De=N==null?void 0:N.contents)==null?void 0:De.map((ue,sa)=>{var Se,oe,ze;return ue!=null&&ue.isMainPath||(sa===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=te,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?Z:ue.groups,ue.words=((oe=ue.words)==null?void 0:oe.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||((ze=ue==null?void 0:ue.menus)==null?void 0:ze.length)===0)&&(ue.menus=te)):(ue.mainKey=!1,ue.bindMenus=te)),ue}):Array.isArray((Oe=N==null?void 0:N.contents)==null?void 0:Oe[0])&&((Ba=(ea=(Fe=N==null?void 0:N.contents)==null?void 0:Fe[0])==null?void 0:ea.filter(()=>(te==null?void 0:te.length)>0))==null?void 0:Ba.length)>0&&(N.contents[0]=(ua=(ee=N==null?void 0:N.contents)==null?void 0:ee[0])==null?void 0:ua.map((ue,sa)=>{var Se,oe,ze;return ue!=null&&ue.isMainPath||(sa===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=te,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?Z:ue.groups,ue.words=((oe=ue.words)==null?void 0:oe.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||Array.isArray(ue==null?void 0:ue.menus)&&((ze=ue==null?void 0:ue.menus)==null?void 0:ze.length)===0)&&(te==null?void 0:te.length)>0&&(ue.menus=te)):(ue.mainKey=!1,ue.bindMenus=te)),ue}))),N}),he=(Me=Ve==null?void 0:Ve.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:Me.contents;if(Array.isArray(he==null?void 0:he[0])&&(he=he==null?void 0:he[0]),he=de.getColumnChild(he),he!=null&&he.some(N=>{var ie,U;return((U=N==null?void 0:N.menus)==null?void 0:U[((ie=N==null?void 0:N.menus)==null?void 0:ie.length)-1])===""})){let N=(F=Qr==null?void 0:Qr.value)==null?void 0:F.find(ie=>(ie==null?void 0:ie.condition)==="child");Ve=Zd(Ve,N)}return Ve}if((a==null?void 0:a.filter)==="Chart"){let te=a==null?void 0:a.contents;return te.push({key:"newType",contents:"Chart"}),te}return a==null?void 0:a.contents},cp=async a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}return a==null?void 0:a.contents},up=a=>{var r,o,s,h,c,p,m,g,u,D,M,k;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((o=(r=l==null?void 0:l.replace(":",kr))==null?void 0:r.split(kr))==null?void 0:o[1])),l=(s=l==null?void 0:l.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(c=(h=l==null?void 0:l.split("="))==null?void 0:h[1])!=null&&c.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let K=(p=l==null?void 0:l.split("="))==null?void 0:p[0],I=(m=l==null?void 0:l.split("="))==null?void 0:m[1];(g=I==null?void 0:I.slice(1,I==null?void 0:I.length))!=null&&g.includes("$")&&(I=(M=(D=(u=Qr==null?void 0:Qr.value)==null?void 0:u.filter(H=>(H==null?void 0:H.condition)==="child"))==null?void 0:D[0])==null?void 0:M.value),l=K+"="+I}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let n=de.calculatorAndToOr(l);if((n==null?void 0:n.length)>0){let K=[];return n==null||n.forEach(H=>{let L={};for(let E in H){let x=E;x!=null&&x.includes("[")||(L[x]=H[E])}K.push(L)}),(k=a==null?void 0:a.contents)==null?void 0:k.map(H=>{var E,x,w;let L=(x=(E=a==null?void 0:a.contents)==null?void 0:E.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:x.contents;if(L=(w=de.getEqualChild(L))==null?void 0:w.filter(b=>(b==null?void 0:b.label)!=="操作"),(H==null?void 0:H.key)==="tableContents"){let _=de.tableToForm(H==null?void 0:H.contents,L);K==null||K.forEach($=>{var V,ne;for(let X in $)!((V=_==null?void 0:_[0])!=null&&V.find(me=>{var Me;return(me==null?void 0:me.key)===X||((Me=me==null?void 0:me.key)==null?void 0:Me.includes(X))}))&&!(_!=null&&_.find(me=>{var Me;return(me==null?void 0:me.key)===X||((Me=me==null?void 0:me.key)==null?void 0:Me.includes(X))}))||(((ne=$[X])==null?void 0:ne[0])!=="!"?_=_==null?void 0:_.filter(me=>{var Me,F;return((Me=me==null?void 0:me.find(te=>{var Z;return(te==null?void 0:te.key)===X||((Z=te==null?void 0:te.key)==null?void 0:Z.includes(X))}))==null?void 0:Me.value)===$[X]||Array.isArray($==null?void 0:$[X])&&((F=$==null?void 0:$[X])==null?void 0:F.find(te=>{var Z;return((Z=me==null?void 0:me.find(se=>{var Be;return(se==null?void 0:se.key)===X||((Be=se==null?void 0:se.key)==null?void 0:Be.includes(X))}))==null?void 0:Z.value)===te}))}):_=_==null?void 0:_.filter(me=>{var Me;return((Me=me==null?void 0:me.find(F=>{var te;return(F==null?void 0:F.key)===X||((te=F==null?void 0:F.key)==null?void 0:te.includes(X))}))==null?void 0:Me.value)!==$[X]}))}),(_==null?void 0:_.length)===0?H.contents=[]:H.contents=_==null?void 0:_.map($=>{let V={};return $==null||$.forEach(ne=>{V[ne==null?void 0:ne.key]=ne==null?void 0:ne.value}),V})}return H})}return a==null?void 0:a.contents},dp=a=>a==null?void 0:a.contents,pp=a=>a==null?void 0:a.contents,fp=a=>{var l,n,r,o;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let s=(r=(n=a==null?void 0:a.filter)==null?void 0:n.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:r.split(",");return(o=a==null?void 0:a.contents)==null?void 0:o.map(c=>((c==null?void 0:c.key)==="header"&&(c.contents=ht(c.contents,s)),c))}return a==null?void 0:a.contents},hp=a=>{var n,r,o,s,h;let l=(a==null?void 0:a.filter)??"";if(l!==""){let c=(r=(n=l==null?void 0:l.replace("(",kr))==null?void 0:n.split(kr))==null?void 0:r[1];c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1),(c==null?void 0:c[(c==null?void 0:c.length)-1])===")"&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(o=de.analyzeSplitToContent(c,","))==null?void 0:o.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));let p=c==null?void 0:c[0];(p==null?void 0:p[0])==="("&&(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1));let m=(c==null?void 0:c[1])??"Up",g=(s=a==null?void 0:a.contents)==null?void 0:s.map(u=>{var D,M;return m==="Up"?(u==null?void 0:u.key)==="extraButton"&&(u.contents=(D=p==null?void 0:p.split(","))==null?void 0:D.map(k=>({label:k,prop:k}))):m==="Line"&&(u==null?void 0:u.key)==="rowButton"&&(u.contents=(M=p==null?void 0:p.split(","))==null?void 0:M.map(k=>({label:k,prop:k}))),u});if(m==="Bottom"||m==="Down"){let u=(h=p==null?void 0:p.split(","))==null?void 0:h.map(D=>({label:D,prop:D}));g.push({key:"bottomButton",contents:u})}return g}return a==null?void 0:a.contents},vp=a=>a==null?void 0:a.contents,mp=a=>{var n;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(n=a==null?void 0:a.contents)==null?void 0:n.map(o=>{var s;return(o==null?void 0:o.key)==="rowButton"&&(o.contents=(s=l==null?void 0:l.split(","))==null?void 0:s.map(h=>({label:h,prop:h}))),o}):a==null?void 0:a.contents},yp=a=>{var n;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let r=a==null?void 0:a.contents,o=(n=l==null?void 0:l.split(","))==null?void 0:n.map(s=>({label:s,prop:s}));return r.push({key:"bottomButton",contents:o}),r}return a==null?void 0:a.contents},gp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(n=>{var r;return(n==null?void 0:n.key)==="formContent"&&(n.contents=(r=n.contents)==null?void 0:r.map(o=>(o.isNoClick=!0,o))),n}),l!=null&&l.find(n=>(n==null?void 0:n.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(n=>(n==null?void 0:n.key)!=="extraButton"&&(n==null?void 0:n.key)!=="rowButton")),l}return a==null?void 0:a.contents},bp=a=>{var l;if(a!=null&&a.filter){const n=parseInt(a==null?void 0:a.filter);return!n||Number.isNaN(n)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s;return(o==null?void 0:o.key)==="formContent"&&(o.contents=(s=o.contents)==null?void 0:s.map(h=>(h.width=n,h))),o})}return a==null?void 0:a.contents},kp=a=>{var l,n,r,o;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const s=parseInt(a==null?void 0:a.filter);return!s||Number.isNaN(s)?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(c=>{var p;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(p=c.contents)==null?void 0:p.map(m=>(m.width=s,m))),c})}if(((r=a==null?void 0:a.filter)==null?void 0:r[0])==="["){let s=Di(a==null?void 0:a.filter),h=Array.isArray(s)?s.map(p=>parseInt(p)).filter(p=>!!p&&!Number.isNaN(p)):[];return h.length?(o=a==null?void 0:a.contents)==null?void 0:o.map(p=>{if((p==null?void 0:p.key)==="formContent"){const m=p.contents??[];p.contents=m.map((g,u)=>{const D=u+1;let M=0,k=0;for(let I=0;I<h.length;I++){if(k+=h[I],D<=k){M=I;break}I===h.length-1&&(M=h.length-1)}const K=h[M]||h[h.length-1]||1;return g.width=K,g})}return p}):a==null?void 0:a.contents}return a==null?void 0:a.contents},xp=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s,h,c;return(o==null?void 0:o.key)==="header"&&(Array.isArray((s=o==null?void 0:o.contents)==null?void 0:s[0])?o.contents[0]=(c=o.contents[0])==null?void 0:c.map(p=>(n!=null&&n.find(m=>m===(p==null?void 0:p.prop))&&(p.fixed="left"),p)):o.contents=(h=o.contents)==null?void 0:h.map(p=>(n!=null&&n.find(m=>m===(p==null?void 0:p.prop))&&(p.fixed="left"),p))),o})}return a==null?void 0:a.contents},wp=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.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 r=s=>(n!=null&&n.find(h=>h===(s==null?void 0:s.prop))&&(s.required=!0),s!=null&&s.children&&Array.isArray(s.children)&&(s.children=s.children.map(h=>r(h))),s);return(l=a==null?void 0:a.contents)==null?void 0:l.map(s=>{var h,c,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((h=s==null?void 0:s.contents)==null?void 0:h[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(m=>r(m)):s.contents=(c=s.contents)==null?void 0:c.map(m=>r(m))),s})}return a==null?void 0:a.contents},_p=async a=>{var r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E;const l=A.useUnit(A.pinia),{chooseTitle:n}=A.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let x=await Jr(((o=(r=n==null?void 0:n.value)==null?void 0:r[0])==null?void 0:o.parentContent)??((h=(s=n==null?void 0:n.value)==null?void 0:s[0])==null?void 0:h.relatedContent),!1),w=(p=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:p.value;(g=(m=x==null?void 0:x[0])==null?void 0:m.compData)!=null&&g.find(V=>(V==null?void 0:V.key)==="header")?x=(u=x==null?void 0:x[0])==null?void 0:u.compData:x=(M=(D=x==null?void 0:x.filter(V=>{var ne;return(ne=V==null?void 0:V.compData)==null?void 0:ne.find(X=>(X==null?void 0:X.key)==="header")}))==null?void 0:D[0])==null?void 0:M.compData;let b=(k=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:k.contents;Array.isArray(b==null?void 0:b[0])&&(b=b==null?void 0:b[0]),b=((K=b==null?void 0:b.find(V=>V==null?void 0:V.isMainKey))==null?void 0:K.prop)??((I=b==null?void 0:b[0])==null?void 0:I.prop);let _=(L=(H=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:H.contents)==null?void 0:L.find(V=>(V==null?void 0:V[b])===w);return(E=a==null?void 0:a.contents)==null?void 0:E.map(V=>{var ne;return(V==null?void 0:V.key)==="formContent"&&(V.contents=(ne=V.contents)==null?void 0:ne.map(X=>(X.value=_==null?void 0:_[X==null?void 0:X.prop],X))),V})}return a==null?void 0:a.contents},Sp=a=>{var l,n,r,o,s;if((l=a==null?void 0:a.extra)!=null&&l.row){let h=a==null?void 0:a.filter;if(h!=null&&h.includes("*")&&(h="({"+((r=(n=h==null?void 0:h.replace("{",kr))==null?void 0:n.split(kr))==null?void 0:r[1])),h=(o=h==null?void 0:h.replaceAll("{",""))==null?void 0:o.replaceAll("}",""),(h==null?void 0:h[0])!=="("&&(h="("+h+")"),h.slice(1,(h==null?void 0:h.length)-1)==="undefined")return a==null?void 0:a.contents;let c=de.calculatorAndToOr(h),p=c==null?void 0:c[0],m=(s=a==null?void 0:a.extra)==null?void 0:s.row,g=[];for(let u in p)(p==null?void 0:p[u])===(m==null?void 0:m[u])?g.push(!0):g.push(!1);return g!=null&&g.every(u=>u===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},Ep=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Cp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Dp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Bp=a=>{var l;if(a!=null&&a.filter){let n=a==null?void 0:a.contents,r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=(l=de.analyzeSplitToContent(r,","))==null?void 0:l.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o)),n.push({key:"stepName",contents:r}),n}return a==null?void 0:a.contents},Tp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},nc={onNumSlice:tp,onRandomContents:sp,onConditionContents:up,onFatherPaceContents:dp,onPaceContents:pp,onMainTagContents:fp,onButtonContents:hp,onPamButtonContents:vp,onRowButtonContents:mp,onRelated:_p,onRowNum:kp,onFixRow:xp,onReqItem:wp,onBottomButtonContents:yp,onConditionContent:Sp,onTabs:Ep,onSinChoice:Cp,onTextSize:ip,onTextRGBA:op,onPosition:rp,onSize:np,onShowType:Dp,onStepName:Bp,onStep:Tp,onInterfaceTypeContents:cp,onBackGround:lp,onMaxColumn:bp,onEditRead:gp},Np=async(a,l,n="")=>{var h,c,p,m,g,u,D,M,k,K,I,H;let r="";if(((h=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:h.contents)!==""&&(r=(c=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:c.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(m=(p=r==null?void 0:r.replace("(",kr))==null?void 0:p.split(kr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(g=de.analyzeSplitToContent(r,","))==null?void 0:g.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L!=null&&L.includes("(")||(L=L==null?void 0:L.replaceAll(":","=")),L)),s=a;for(let L in o){let E,x="";E=(M=(D=(u=o==null?void 0:o[L])==null?void 0:u.replace("=",kr))==null?void 0:D.split(kr))==null?void 0:M[0],x=(I=(K=(k=o==null?void 0:o[L])==null?void 0:k.replace("=",kr))==null?void 0:K.split(kr))==null?void 0:I[1];let w=(H=bn==null?void 0:bn.find(b=>(b==null?void 0:b.key)===E))==null?void 0:H.value;if(w){const b=nc[w];s=await b({contents:s,filter:x,extra:l,groupName:n})}}return s},Et=async(a,l,n="")=>{var c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne;let r="";if(((c=a==null?void 0:a.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(p=a==null?void 0:a.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:p.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(g=(m=r==null?void 0:r.replace("(",kr))==null?void 0:m.split(kr))==null?void 0:g[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=de.analyzeSplitToContent(r,","))==null?void 0:u.map(X=>((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&&X.includes("(")||(X=X==null?void 0:X.replaceAll(":","=")),X)),s=a,h=new Map;o==null||o.forEach(X=>{var Me,F,te;let me=(Me=X==null?void 0:X.split("="))==null?void 0:Me[0];if(me==="@MainPam"&&h.get(me)){let Z=h.get(me);Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1);let se=(te=(F=X==null?void 0:X.replace("{",kr))==null?void 0:F.split(kr))==null?void 0:te[1];se=Z+","+se,h.set(me,se)}else me==="@Button"&&h.get(me)?h.set(X,X):h.set(me,X)}),o=Array.from(h.values()),o=o==null?void 0:o.sort((X,me)=>{var Me,F;return((Me=bn==null?void 0:bn.find(te=>me==null?void 0:me.includes(te==null?void 0:te.key)))==null?void 0:Me.order)-((F=bn==null?void 0:bn.find(te=>X==null?void 0:X.includes(te==null?void 0:te.key)))==null?void 0:F.order)});for(let X in o){let me,Me="";(D=o==null?void 0:o[X])!=null&&D.includes("(")&&((M=o==null?void 0:o[X])!=null&&M.includes("@If"))?(me=(I=(K=(k=o==null?void 0:o[X])==null?void 0:k.replace("(",kr))==null?void 0:K.split(kr))==null?void 0:I[0],Me="("+((E=(L=(H=o==null?void 0:o[X])==null?void 0:H.replace("(",kr))==null?void 0:L.split(kr))==null?void 0:E[1])):(me=(b=(w=(x=o==null?void 0:o[X])==null?void 0:x.replace("=",kr))==null?void 0:w.split(kr))==null?void 0:b[0],Me=(V=($=(_=o==null?void 0:o[X])==null?void 0:_.replace("=",kr))==null?void 0:$.split(kr))==null?void 0:V[1]);let F=(ne=bn==null?void 0:bn.find(te=>(te==null?void 0:te.key)===me))==null?void 0:ne.value;if(F){const te=nc[F];s=await te({contents:s,filter:Me,extra:l,groupName:n})}}return s},ic=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const n=l.slice(1,-1).split(",").map(r=>Number(r.trim()));return n.length<2||n.some(r=>Number.isNaN(r))?null:[n[0],n[1]]},oc=(a,l)=>{var K,I,H,L,E;const n=Array.isArray(a)?a:[],r=n.find(x=>(x==null?void 0:x.key)==="formContent"),o=Array.isArray(r==null?void 0:r.contents)?r.contents:[],s=((K=n.find(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"))==null?void 0:K.contents)??{},h=(o==null?void 0:o[0])??{};let c=((I=l==null?void 0:l.position)==null?void 0:I[0])??(s==null?void 0:s._positionStartRow)??(h==null?void 0:h._positionStartRow),p=((H=l==null?void 0:l.position)==null?void 0:H[1])??(s==null?void 0:s._positionRowSpan)??(h==null?void 0:h._positionRowSpan);(!c||Number.isNaN(c)||c<1)&&(c=1),(!p||Number.isNaN(p)||p<1)&&(p=1);let m=((L=l==null?void 0:l.size)==null?void 0:L[0])??(s==null?void 0:s._sizeStart)??(h==null?void 0:h._sizeStart),g=((E=l==null?void 0:l.size)==null?void 0:E[1])??(s==null?void 0:s._sizeEnd)??(h==null?void 0:h._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(g===void 0||Number.isNaN(g))&&(g=1),m=Math.max(0,Math.min(1,m)),g=Math.max(0,Math.min(1,g)),g<=m&&(m=0,g=1);const u=g-m,D=Math.max(1,Math.round(1/u));let M=n.map(x=>{if((x==null?void 0:x.key)!=="formContent")return x;const w=Array.isArray(x==null?void 0:x.contents)?x.contents:[];return{...x,contents:w.map(b=>({...b,width:D,_positionStartRow:c,_positionRowSpan:p,_sizeStart:m,_sizeEnd:g}))}});const k={_positionStartRow:c,_positionRowSpan:p,_sizeStart:m,_sizeEnd:g};return M.some(x=>(x==null?void 0:x.key)==="_gridLayoutMeta")?M=M.map(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"?{...x,contents:k}:x):M.push({key:"_gridLayoutMeta",contents:k}),M};let po="$R";const Ap=A.useUnit(A.pinia),{selectTitle:zp}=A.storeToRefs(Ap);let Mp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Ip=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Op=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Lp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ts=async(a,l,n=!0)=>{let r=[],o=a==null?void 0:a.map(async s=>{var u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa,Qe,He,qe,fe,ke,da,La,dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll;let h=(k=(M=(D=(u=s==null?void 0:s.contents)==null?void 0:u.find(Ne=>{var Ue;return(Ue=Ne==null?void 0:Ne.key)==null?void 0:Ue.includes("struct")}))==null?void 0:D.value)==null?void 0:M[0])==null?void 0:k.类型,c=Object.values(s==null?void 0:s.name);c=c==null?void 0:c.reverse();let p=(K=s==null?void 0:s.contents)==null?void 0:K.map(Ne=>Ne==null?void 0:Ne.key),m={comp:h,isShow:s==null?void 0:s.is_show,name:c==null?void 0:c[0],id:s==null?void 0:s.object_id,order_no:s==null?void 0:s.order_no,relatedTables:p,menuFilter:(I=s==null?void 0:s.filter)==null?void 0:I.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(H=s==null?void 0:s.filter)==null?void 0:H.fatherSyncs,relatedQuotes:(L=s==null?void 0:s.filter)==null?void 0:L.quotes,sonSyncContents:(E=s==null?void 0:s.filter)==null?void 0:E.sonSyncs,nameContents:(x=A.cloneDeep(c))==null?void 0:x.reverse()};for(let Ne in c)parseInt(Ne)>=1&&(m[`name${parseInt(Ne)-1}`]=c[Ne]);let g=Array.isArray((w=s==null?void 0:s.filter)==null?void 0:w.menuFilter)?(b=s==null?void 0:s.filter)==null?void 0:b.menuFilter:[];if(((_=g==null?void 0:g.filter(Ne=>Ne==null?void 0:Ne.includes("@Filter")))==null?void 0:_.length)>0){let Ne=g==null?void 0:g.filter(Le=>Le==null?void 0:Le.includes("@Filter"));Ne=Ne==null?void 0:Ne[0],Ne=(V=($=Ne==null?void 0:Ne.replace("(",po))==null?void 0:$.split(po))==null?void 0:V[1],Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1),Ne!=null&&Ne.includes("*")&&(Ne=(X=(ne=Ne==null?void 0:Ne.replace("{",po))==null?void 0:ne.split(po))==null?void 0:X[1],Ne=Ne==null?void 0:Ne.replace("}","")),Ne=de.calculatorAndToOr(Ne);let Ue=(l==null?void 0:l.originPath)??"";(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));let na=await Jr(Ue,!1),re=(me=na==null?void 0:na.filter(Le=>(Le==null?void 0:Le.comp)==="Table"))==null?void 0:me[0];re=(F=(Me=re==null?void 0:re.compData)==null?void 0:Me.find(Le=>(Le==null?void 0:Le.key)==="tableContents"))==null?void 0:F.contents;let ia=(Z=(te=zp.value)==null?void 0:te.find(Le=>(Le==null?void 0:Le.condition)==="child"))==null?void 0:Z.value;re=(se=re==null?void 0:re.map(Le=>{for(let ja in Le)if((Le==null?void 0:Le[ja])===ia)return Le}))==null?void 0:se.filter(Le=>Le),re=re==null?void 0:re[0],Ne=Ne==null?void 0:Ne[0];let Va=[];for(let Le in Ne){let ja="";Ua.isObject(re)&&(ja=(Ve=(Be=Object.keys(re))==null?void 0:Be.filter(Ma=>Ma==null?void 0:Ma.includes("."+Le)))==null?void 0:Ve[0]),ja!==""&&(re!=null&&re[ja])&&(Ne==null?void 0:Ne[Le])===(re==null?void 0:re[ja])||re!=null&&re[Le]&&(Ne==null?void 0:Ne[Le])===(re==null?void 0:re[Le])?Va.push(!0):Va.push(!1)}if(Va!=null&&Va.some(Le=>Le===!1)&&((N=l==null?void 0:l.originPath)==null?void 0:N[((he=l==null?void 0:l.originPath)==null?void 0:he.length)-1])!=="/")return}if(h==="Table"||h==="Method"){!n&&((ie=m==null?void 0:m.fatherSyncContents)==null?void 0:ie.length)>0;let Ne=((U=s==null?void 0:s.contents)==null?void 0:U.find(We=>{var pa;return(pa=We==null?void 0:We.key)==null?void 0:pa.includes("content")}))||[],Ue=[];m.comp="Table",Ne.value=(De=Ne==null?void 0:Ne.value)==null?void 0:De.sort((We,pa)=>parseInt(We==null?void 0:We.id)-parseInt(pa==null?void 0:pa.id)),Ne.value=(Oe=Ne==null?void 0:Ne.value)==null?void 0:Oe.map(We=>{let pa={};for(let ma in We)JSON.stringify(We==null?void 0:We[ma])==="{}"?pa[ma]="":pa[ma]=We==null?void 0:We[ma];return pa}),Ue.push({key:"tableContents",contents:Ne==null?void 0:Ne.value});let na=(ua=(ee=(Ba=(ea=(Fe=s==null?void 0:s.contents)==null?void 0:Fe.find(We=>{var pa;return(pa=We==null?void 0:We.key)==null?void 0:pa.includes("struct")}))==null?void 0:ea.value)==null?void 0:Ba[0])==null?void 0:ee.结构)==null?void 0:ua.contents;Array.isArray(na==null?void 0:na[0])?na[0]=(ue=na==null?void 0:na[0])==null?void 0:ue.filter(We=>(We==null?void 0:We.prop)!=="sort"&&(We==null?void 0:We.prop)!=="relatedId"):na=na==null?void 0:na.filter(We=>(We==null?void 0:We.prop)!=="sort"&&(We==null?void 0:We.prop)!=="relatedId"),Ue.push({key:"header",contents:na}),Ue.push({key:"filter",contents:(Ke=(ze=(oe=(Se=(sa=s==null?void 0:s.contents)==null?void 0:sa.find(We=>{var pa;return(pa=We==null?void 0:We.key)==null?void 0:pa.includes("struct")}))==null?void 0:Se.value)==null?void 0:oe[0])==null?void 0:ze.引用)==null?void 0:Ke.contents});let re=Mp,ia=A.cloneDeep(Ip);h==="Method"&&ia.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(na==null?void 0:na[0])&&((ca=na==null?void 0:na[0])==null?void 0:ca.prop)==="disabled"&&(re=Op,ia=Lp);const Va=["推力","真空","压力","温度","流量"],Le=m.name;Le&&Va.includes(Le)&&(re=[...re],re.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ja=[];if(!Array.isArray(na==null?void 0:na[0])&&(na!=null&&na.some(We=>{var pa;return(We==null?void 0:We.calculatorFilter)&&((pa=We==null?void 0:We.calculatorFilter)==null?void 0:pa.includes("Manual"))}))){let We=(Ya=na==null?void 0:na.map(pa=>pa==null?void 0:pa.calculatorFilter))==null?void 0:Ya.filter(pa=>pa&&(pa==null?void 0:pa.includes("Manual")));We==null||We.forEach(pa=>{var ka;let ma=de.analyzeSplitToContent(pa,",");if(ma=ma==null?void 0:ma.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===","&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Extent"))&&(_e==null?void 0:_e.includes("Row")))&&(ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Button"))&&(_e==null?void 0:_e.includes(","))))){let _e=ma==null?void 0:ma.find(Tl=>Tl==null?void 0:Tl.includes("@FunctionButton"));_e=(ka=_e==null?void 0:_e.split("="))==null?void 0:ka[1],_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1),_e=_e==null?void 0:_e.split(","),_e=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1],ja.push(_e)}}),ja=[...new Set(ja)],ja=ja==null?void 0:ja.map(pa=>({label:pa,prop:pa,type:"methodButton"}))}else if(Array.isArray(na==null?void 0:na[0])&&((R=de.getColumnChild(na==null?void 0:na[0]))!=null&&R.some(We=>{var pa;return(We==null?void 0:We.calculatorFilter)&&((pa=We==null?void 0:We.calculatorFilter)==null?void 0:pa.includes("Manual"))}))){let We=(J=(j=de.getColumnChild(na==null?void 0:na[0]))==null?void 0:j.map(pa=>pa==null?void 0:pa.calculatorFilter))==null?void 0:J.filter(pa=>pa&&(pa==null?void 0:pa.includes("Manual")));We==null||We.forEach(pa=>{var ka;let ma=de.analyzeSplitToContent(pa,",");if(ma=ma==null?void 0:ma.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===","&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Extent"))&&(_e==null?void 0:_e.includes("Row")))&&(ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Button"))&&(_e==null?void 0:_e.includes(","))))){let _e=ma==null?void 0:ma.find(Tl=>Tl==null?void 0:Tl.includes("@FunctionButton"));_e=(ka=_e==null?void 0:_e.split("="))==null?void 0:ka[1],_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1),_e=_e==null?void 0:_e.split(","),_e=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1],ja.push(_e)}}),ja=[...new Set(ja)],ja=ja==null?void 0:ja.map(pa=>({label:pa,prop:pa,type:"methodButton"}))}if(Ue.push({key:"extraButton",contents:re}),Ue.push({key:"rowButton",contents:[...ia,...ja]}),m.compData=await Et(Ue,l,m==null?void 0:m.nameContents),(ve=m.compData)!=null&&ve.find(We=>(We==null?void 0:We.key)==="tab")&&(m.tab=(ya=(pe=m.compData)==null?void 0:pe.find(We=>(We==null?void 0:We.key)==="tab"))==null?void 0:ya.contents),(aa=m.compData)!=null&&aa.find(We=>(We==null?void 0:We.key)==="step")&&(m.step=(ga=(ce=m.compData)==null?void 0:ce.find(We=>(We==null?void 0:We.key)==="step"))==null?void 0:ga.contents),(Ae=m.compData)!=null&&Ae.find(We=>(We==null?void 0:We.key)==="choice")&&(m.choice=(Na=(Je=m.compData)==null?void 0:Je.find(We=>(We==null?void 0:We.key)==="choice"))==null?void 0:Na.contents),(Ca=m.compData)!=null&&Ca.find(We=>(We==null?void 0:We.key)==="newType")){let We=($a=(la=m.compData)==null?void 0:la.find(pa=>(pa==null?void 0:pa.key)==="newType"))==null?void 0:$a.contents;m.comp=We,m.compData=(va=m.compData)==null?void 0:va.filter(pa=>(pa==null?void 0:pa.key)!=="newType")}let Ma="",il=(W=m==null?void 0:m.compData)==null?void 0:W.filter(We=>(We==null?void 0:We.key)==="fixType");(il==null?void 0:il.length)>0&&n&&(Ma=(Te=il==null?void 0:il[0])==null?void 0:Te.contents,m.comp=Ma)}else if(h==="Form"){let Ne=[],Ue=(wa=(we=(Ie=s==null?void 0:s.contents)==null?void 0:Ie.find(Le=>{var ja;return(ja=Le==null?void 0:Le.key)==null?void 0:ja.includes("content")}))==null?void 0:we.value)==null?void 0:wa[0],na=[],re=Array.isArray((oa=s==null?void 0:s.filter)==null?void 0:oa.menuFilter)?(Qe=s==null?void 0:s.filter)==null?void 0:Qe.menuFilter:[];re==null||re.forEach(Le=>{if(Le!=null&&Le.includes("@Param(Hide=Yes, prop=")||Le!=null&&Le.includes("(Hide=Yes, prop=")){const ja=Le==null?void 0:Le.match(/prop=([^,)]+)/);ja!=null&&ja[1]&&na.push(ja==null?void 0:ja[1])}});let ia=(da=(ke=(fe=(qe=(He=s==null?void 0:s.contents)==null?void 0:He.find(Le=>{var ja;return(ja=Le==null?void 0:Le.key)==null?void 0:ja.includes("struct")}))==null?void 0:qe.value)==null?void 0:fe[0])==null?void 0:ke.结构)==null?void 0:da.contents,Va=(La=ia==null?void 0:ia.map(Le=>(Le.value=Ue==null?void 0:Ue[Le==null?void 0:Le.prop],Le)))==null?void 0:La.filter(Le=>(Le==null?void 0:Le.prop)!=="sort"&&(Le==null?void 0:Le.prop)!=="relatedId");Va=Va==null?void 0:Va.map(Le=>(na!=null&&na.includes(Le==null?void 0:Le.prop)&&(Le.isHideInForm=!0),Le)),Ne.push({key:"filter",contents:(Fa=(Fl=(sl=(Ol=(dl=s==null?void 0:s.contents)==null?void 0:dl.find(Le=>{var ja;return(ja=Le==null?void 0:Le.key)==null?void 0:ja.includes("struct")}))==null?void 0:Ol.value)==null?void 0:sl[0])==null?void 0:Fl.引用)==null?void 0:Fa.contents}),Ne.push({key:"formContent",contents:Va}),Ne.push({key:"paramHideProps",contents:na}),m.compData=await Np(Ne,l,m==null?void 0:m.nameContents),(Vl=m.compData)!=null&&Vl.find(Le=>(Le==null?void 0:Le.key)==="tab")&&(m.tab=(Aa=(zl=m.compData)==null?void 0:zl.find(Le=>(Le==null?void 0:Le.key)==="tab"))==null?void 0:Aa.contents),(rl=m.compData)!=null&&rl.find(Le=>(Le==null?void 0:Le.key)==="step")&&(m.step=(ul=(nl=m.compData)==null?void 0:nl.find(Le=>(Le==null?void 0:Le.key)==="step"))==null?void 0:ul.contents),(Ra=m.compData)!=null&&Ra.find(Le=>(Le==null?void 0:Le.key)==="choice")&&(m.choice=(ll=(cl=m.compData)==null?void 0:cl.find(Le=>(Le==null?void 0:Le.key)==="choice"))==null?void 0:ll.contents)}return m});return r=await Promise.all(o),r},Rp=A.useLoginState(A.pinia),{loginUserInfo:wi}=A.storeToRefs(Rp),vt=async(a,l,n="Manual",r=[])=>{var p;let o=a,s;Array.isArray(l==null?void 0:l[0])?s=de.getColumnChild(l==null?void 0:l[0]):s=l;let h=(p=s==null?void 0:s.filter(m=>{var g;return(m==null?void 0:m.calculatorFilter)&&((g=m==null?void 0:m.calculatorFilter)==null?void 0:g.includes(n))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:p.map(m=>({prop:m==null?void 0:m.prop,label:m==null?void 0:m.label,methods:m==null?void 0:m.calculatorFilter,functionName:m==null?void 0:m.functionName,functionRelatedWords:m==null?void 0:m.functionRelatedWords})),c=o==null?void 0:o.map(async m=>(m=await Hp(m,h,s,n,o,r),m));return c=await Promise.all(c),c},$p=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(h=>{var c;if(l!=null&&l[h]){let p=l==null?void 0:l[h];s=s?p?Bl.isEqual(p.toString(),s.toString()):void 0:p}else{let p=(c=o==null?void 0:o.find(g=>(g==null?void 0:g.label)===h))==null?void 0:c.prop,m=(l==null?void 0:l[p])??0;s=s?m?Bl.isEqual(m.toString(),s.toString()):void 0:m}}),l[r]=s===void 0?void 0:s?1:0,l},Er=a=>{const[l,n,r]=A.cloneDeep(a).split(":").map(Number);let o=+a;return!a||!(a!=null&&a.includes(":"))?o:(l??0)*3600+(n??0)*60+(r??0)},Fn=a=>{const l=s=>s.toString().padStart(2,"0"),n=Math.floor(a/3600),r=Math.floor(a%3600/60),o=a%60;return`${l(n)}:${l(r)}:${parseInt(l(o))}`},Vp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K,I,H;if(l!=null&&l[p]){if(s==="Row")if(!((g=((m=l==null?void 0:l[p])==null?void 0:m.toString())??"")!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let L=+(l==null?void 0:l[p]);c=c+L}else c=Er(c.toString())+Er((D=l==null?void 0:l[p])==null?void 0:D.toString()),c=Fn(c)}else if(s==="Row"){let L=(M=o==null?void 0:o.find(E=>(E==null?void 0:E.label)===p))==null?void 0:M.prop;if(!((K=Number.isNaN(l==null?void 0:l[L])?"":(k=l==null?void 0:l[L])==null?void 0:k.toString())!=null&&K.includes(":"))&&!((I=c==null?void 0:c.toString())!=null&&I.includes(":"))){let E=+((l==null?void 0:l[L])??0);c=c+E}else c=Er(c==null?void 0:c.toString())+Er((H=(l==null?void 0:l[L])??0)==null?void 0:H.toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u+D},0)}return l[r]=c,l},Pp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K;if(l!=null&&l[p]){if(s==="Row")if(!((g=(m=l==null?void 0:l[p])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[p]);c=c===0?c+I:c-I}else c=c===0?Er(c.toString())+Er(l==null?void 0:l[p].toString()):Er(c.toString())-Er(l==null?void 0:l[p].toString()),c=Fn(c)}else if(s==="Row"){let I=(D=o==null?void 0:o.find(H=>(H==null?void 0:H.label)===p))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((K=c==null?void 0:c.toString())!=null&&K.includes(":"))){let H=+((l==null?void 0:l[I])??0);c=c===0?c+H:c-H}else c=c===0?Er(c.toString())+Er(((l==null?void 0:l[I])??0).toString()):Er(c.toString())-Er(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u-D},0)}return l[r]=c,l},Fp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K;if(l!=null&&l[p]){if(s==="Row")if(!((g=(m=l==null?void 0:l[p])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[p]);c=c===0?c+I:c*I}else c=c===0?Er(c.toString())+Er(l==null?void 0:l[p].toString()):Er(c.toString())*Er(l==null?void 0:l[p].toString()),c=Fn(c)}else if(s==="Row"){let I=(D=o==null?void 0:o.find(H=>(H==null?void 0:H.label)===p))==null?void 0:D.prop;if(!(l!=null&&l[I]))c=void 0;else if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((K=c==null?void 0:c.toString())!=null&&K.includes(":"))){let H=+((l==null?void 0:l[I])??0);c=c===0?c+H:c*H}else c=c===0?Er(c.toString())+Er(((l==null?void 0:l[I])??0).toString()):Er(c.toString())*Er(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u*D},0)}return l[r]=c,l},jp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K;if(l!=null&&l[p]){if(s==="Row")if(!((g=(m=l==null?void 0:l[p])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[p]);c=c===0?c+I:c/I}else c=c===0?Er(c.toString())+Er(l==null?void 0:l[p].toString()):Er(c.toString())/Er(l==null?void 0:l[p].toString()),c=Fn(c)}else if(s==="Row"){let I=(D=o==null?void 0:o.find(H=>(H==null?void 0:H.label)===p))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((K=c==null?void 0:c.toString())!=null&&K.includes(":"))){let H=+((l==null?void 0:l[I])??0);c=c===0?c+H:c/H}else c=c===0?Er(c.toString())+Er(((l==null?void 0:l[I])??0).toString()):Er(c.toString())/Er(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u/D},0)}return l[r]=c.toFixed(2),l},fo={Sum:Vp,Substract:Pp,Multiple:Fp,Divide:jp,Compare:$p},Hp=async(a,l,n,r="Auto",o,s=[])=>{var g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F;let h=a,c=[],p=await A.getPageDataApi({platId:parseInt((g=wi==null?void 0:wi.value)==null?void 0:g.plat_id),pageName:"menu"});p=(M=(D=(u=p==null?void 0:p.data)==null?void 0:u.result)==null?void 0:D.filter(te=>(te==null?void 0:te.property_name)===""))==null?void 0:M[0];let m=[];if(p!=null&&p.object_name){p=p==null?void 0:p.object_name;let te=await A.getPageDataApi({platId:parseInt((k=wi==null?void 0:wi.value)==null?void 0:k.plat_id),pageName:p});te=(E=(L=(H=(I=(K=te==null?void 0:te.data)==null?void 0:K.result)==null?void 0:I[0])==null?void 0:H.contents)==null?void 0:L.find(Z=>{var se;return(se=Z==null?void 0:Z.key)==null?void 0:se.includes("content")}))==null?void 0:E.value,c=(x=te==null?void 0:te.map(Z=>({functionName:Z==null?void 0:Z.函数名称,functionContent:Z==null?void 0:Z.输出值})))==null?void 0:x.filter(Z=>(Z==null?void 0:Z.functionContent)!==""),c==null||c.forEach(Z=>{m.push(Z.functionName),fo[Z.functionName]=new Function("return "+Z.functionContent)()})}if((l==null?void 0:l.length)===0)return h;for(let te in l){let Z=(w=l==null?void 0:l[te])==null?void 0:w.functionName;const se=fo==null?void 0:fo[Z];let Be=(b=l==null?void 0:l[te])==null?void 0:b.methods;if(Be=de.analyzeSplitToContent(Be,","),console.log(Be),(_=Be==null?void 0:Be.find(Ve=>Ve==null?void 0:Ve.includes("@FunctionType")))!=null&&_.includes(r)||(Be==null?void 0:Be.length)===0){let Ve=((ne=(V=($=Be==null?void 0:Be.find(he=>he==null?void 0:he.includes("@FunctionExtent")))==null?void 0:$.replace(":","="))==null?void 0:V.split("="))==null?void 0:ne[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(he=>he===Z)){let he="";try{let ie=(X=l==null?void 0:l[te])==null?void 0:X.functionRelatedWords,U=(s==null?void 0:s.length)>0?s==null?void 0:s.map(Oe=>{var Fe;return Oe==null?void 0:Oe[(Fe=l==null?void 0:l[te])==null?void 0:Fe.prop]}):["0"];U=U==null?void 0:U.map(Oe=>Oe==null?void 0:Oe.slice((Oe==null?void 0:Oe.length)-5,Oe==null?void 0:Oe.length)),U=U==null?void 0:U.map(Oe=>de.isNumber(parseInt(Oe))&&parseInt(Oe)?parseInt(Oe):0);let De=Math.max(...U);ie=ie==null?void 0:ie.map(Oe=>{if(Oe!=null&&Oe.includes("'"))return Oe==null?void 0:Oe.replaceAll("'","");if(Oe!=null&&Oe.includes("@"))return De+1;{let Fe=Object.keys(h);return Oe=(h==null?void 0:h[Oe])??(h==null?void 0:h[Fe==null?void 0:Fe.find(ea=>ea==null?void 0:ea.includes("."+Oe))]),Oe}}),he=se(...ie)}catch(ie){Ua.ElMessage.warning("关联数据出现错误,"+ie.message)}let N=(me=l==null?void 0:l[te])==null?void 0:me.prop;h[N]=he}else h=se({contents:h,valueString:(Me=l==null?void 0:l[te])==null?void 0:Me.functionRelatedWords,prop:(F=l==null?void 0:l[te])==null?void 0:F.prop,headers:n,typeString:Ve,allContents:o})}}return h},Up=A.useLoginState(A.pinia),{loginUserInfo:en}=A.storeToRefs(Up),qp=A.useMenuState(A.pinia),{activeMenuPath:ss,currentMenuPath:ho}=A.storeToRefs(qp),tc=A.useUnit(A.pinia);let cs="$R";const{selectTitle:Ei}=A.storeToRefs(tc),sc=async(a,l)=>{var h,c,p,m,g,u,D,M,k,K,I,H,L;let n=ss.value,r="",o=((h=Ei==null?void 0:Ei.value)==null?void 0:h.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(n=l?n:(c=a==null?void 0:a[0])==null?void 0:c.object_name,r=(p=a==null?void 0:a[0])==null?void 0:p.father_name);let s=[];if(r!==""){let E=r;(E==null?void 0:E[(E==null?void 0:E.length)-1])==="/"&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1));let x=await Jr(E,!1);x=(m=x==null?void 0:x[0])==null?void 0:m.compData;let w=(g=x==null?void 0:x.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:g.contents;w=((u=w==null?void 0:w.find(_=>_==null?void 0:_.isMainKey))==null?void 0:u.prop)??((D=w==null?void 0:w[0])==null?void 0:D.prop);let b=(k=(M=x==null?void 0:x.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:k.map(_=>({label:_==null?void 0:_[w],value:_==null?void 0:_[w]}));s=(K=r==null?void 0:r.split("/"))==null?void 0:K.map(_=>(_===""?o?(o.isShow=!0,_=o):_={value:_,condition:"child",options:b,parentContent:(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"?r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1):r,isShow:!0}:_={condition:"parent",value:_.trim(),isShow:!0},_))}if(n!==""){let E=(I=n==null?void 0:n.split("/"))==null?void 0:I.map(x=>(x={condition:"normal",value:x.trim(),isShow:!0},x));((H=E==null?void 0:E[0])==null?void 0:H.value)===((L=s==null?void 0:s[0])==null?void 0:L.value)&&(E=E==null?void 0:E.filter((x,w)=>w!==0)),s=[...s??[],...E??[]]}r===""&&o&&((o==null?void 0:o.parentContent)!==ss.value&&(o.isShow=!1),(o==null?void 0:o.value)!==""&&s.push(o)),tc.setSelectTitle(s)},Wp=async a=>{var s,h,c,p,m,g,u,D,M;let l=await A.getPageDataApi({platId:parseInt((s=en==null?void 0:en.value)==null?void 0:s.plat_id),pageName:"menu"}),n=(h=l==null?void 0:l.data)==null?void 0:h.result,r=(g=(m=(p=(c=a==null?void 0:a.filter(k=>(k==null?void 0:k.comp)==="Table"))==null?void 0:c[0])==null?void 0:p.compData)==null?void 0:m.find(k=>(k==null?void 0:k.key)==="filter"))==null?void 0:g.contents;r=(M=(D=(u=r==null?void 0:r.replace("(",cs))==null?void 0:u.split(cs))==null?void 0:D[0])==null?void 0:M.replaceAll(":","/");let o=n==null?void 0:n.filter(k=>{var K;return(k==null?void 0:k.object_name)===ho.value+"/"||((K=ho.value)==null?void 0:K.includes(r))&&r+"/"===(k==null?void 0:k.object_name)});return(o==null?void 0:o.length)>0&&(a=a==null?void 0:a.map(k=>{var K;return(k==null?void 0:k.comp)==="Table"&&(k.compData=(K=k==null?void 0:k.compData)==null?void 0:K.map(I=>{var H,L,E;return(I==null?void 0:I.key)==="header"&&(Array.isArray((H=I.contents)==null?void 0:H[0])?I.contents[0]=(E=I.contents[0])==null?void 0:E.map((x,w)=>{var b;return w===0&&(x.isExistChild=!0,(b=ho.value)!=null&&b.includes(r)&&(x.fatherPath=r)),x}):I.contents=(L=I.contents)==null?void 0:L.map((x,w)=>{var b;return w===0&&(x.isExistChild=!0,(b=ho.value)!=null&&b.includes(r)&&(x.fatherPath=r)),x})),I})),k})),a},Jr=async(a,l,n={})=>{var h,c,p,m,g,u,D,M,k,K,I,H;let r=await A.getPageDataApi({platId:parseInt((h=en==null?void 0:en.value)==null?void 0:h.plat_id),pageName:a}),o=(c=r==null?void 0:r.data)==null?void 0:c.result;if((o==null?void 0:o.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==a){let L=await A.getPageDataApi({platId:parseInt((p=en==null?void 0:en.value)==null?void 0:p.plat_id),pageName:n==null?void 0:n.originPath});if(((g=(m=L==null?void 0:L.data)==null?void 0:m.result)==null?void 0:g.length)>0){let E=await ts((u=L==null?void 0:L.data)==null?void 0:u.result,n,!1);E=E==null?void 0:E.map(async b=>{var V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya;let _=[],$=(V=Object.keys(b))==null?void 0:V.filter(R=>(R==null?void 0:R.includes("name"))&&R!=="nameContents");for(let R in b)$!=null&&$.find(j=>j===R)&&_.push(b==null?void 0:b[R]);if(_=_.reverse(),(b==null?void 0:b.comp)==="Table"){let R=(me=(X=(ne=b==null?void 0:b.compData)==null?void 0:ne.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:X.contents)==null?void 0:me.map(J=>{let ve={};for(let pe in J)pe!=="id"&&pe!=="create_time"&&pe!=="update_time"&&pe!=="sort"&&pe!=="create_user_id"&&pe!=="update_user_id"&&pe!=="department_id"&&pe!=="relatedId"&&(ve[pe]=J==null?void 0:J[pe]);return J=Object.values(ve),J}),j=(F=(Me=b==null?void 0:b.compData)==null?void 0:Me.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:F.contents;if(Array.isArray(j==null?void 0:j[0])?(j[0].push({label:"排序",prop:"sort"}),j[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(te=j[0])!=null&&te.find(J=>(J==null?void 0:J.prop)==="disabled")&&(j[0]=(Z=j[0])==null?void 0:Z.filter(J=>(J==null?void 0:J.prop)!=="disabled"),j[0].unshift({label:"",prop:"disabled",sortable:!1}))):(j||(j=[]),j.push({label:"排序",prop:"sort"}),j.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),j!=null&&j.find(J=>(J==null?void 0:J.prop)==="disabled")&&(j=j==null?void 0:j.filter(J=>(J==null?void 0:J.prop)!=="disabled"),j.unshift({label:"",prop:"disabled",sortable:!1}))),j!=null&&j.some(J=>{var ve;return(J==null?void 0:J.calculatorFilter)&&((ve=J==null?void 0:J.calculatorFilter)==null?void 0:ve.includes("Auto"))})&&(R=await vt(R,j,"Auto"),R=R==null?void 0:R.map(J=>Object.values(J))),b!=null&&b.fatherSyncContents){Array.isArray((se=b==null?void 0:b.fatherSyncContents)==null?void 0:se[0])&&(b.fatherSyncContents=(Be=b==null?void 0:b.fatherSyncContents)==null?void 0:Be[0]);let J=(Ve=Ei.value)==null?void 0:Ve.find(ve=>(ve==null?void 0:ve.condition)==="child");b.fatherSyncContents=(he=b==null?void 0:b.fatherSyncContents)==null?void 0:he.map(ve=>{var pe,ya,aa,ce,ga,Ae;return((ya=ve==null?void 0:ve.menus)==null?void 0:ya[((pe=ve==null?void 0:ve.menus)==null?void 0:pe.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((ce=ve==null?void 0:ve.menus)==null?void 0:ce[((aa=ve==null?void 0:ve.menus)==null?void 0:aa.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ae=ve.menus)==null?void 0:Ae.slice(0,((ga=ve.menus)==null?void 0:ga.length)-1)),ve})}if(b!=null&&b.sonSyncContents){Array.isArray((N=b==null?void 0:b.sonSyncContents)==null?void 0:N[0])&&(b.sonSyncContents=(ie=b==null?void 0:b.sonSyncContents)==null?void 0:ie[0]);let J=(U=Ei.value)==null?void 0:U.find(ve=>(ve==null?void 0:ve.condition)==="child");b.sonSyncContents=(De=b==null?void 0:b.sonSyncContents)==null?void 0:De.map(ve=>{var pe,ya,aa,ce,ga,Ae;return((ya=ve==null?void 0:ve.menus)==null?void 0:ya[((pe=ve==null?void 0:ve.menus)==null?void 0:pe.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((ce=ve==null?void 0:ve.menus)==null?void 0:ce[((aa=ve==null?void 0:ve.menus)==null?void 0:aa.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ae=ve.menus)==null?void 0:Ae.slice(0,((ga=ve.menus)==null?void 0:ga.length)-1)),ve})}if(b!=null&&b.relatedQuotes){Array.isArray((Oe=b==null?void 0:b.relatedQuotes)==null?void 0:Oe[0])&&(b.relatedQuotes=(Fe=b==null?void 0:b.relatedQuotes)==null?void 0:Fe[0]);let J=(ea=Ei.value)==null?void 0:ea.find(ve=>(ve==null?void 0:ve.condition)==="child");b.relatedQuotes=(Ba=b==null?void 0:b.relatedQuotes)==null?void 0:Ba.map(ve=>{var pe,ya,aa,ce,ga,Ae;return((ya=ve==null?void 0:ve.menus)==null?void 0:ya[((pe=ve==null?void 0:ve.menus)==null?void 0:pe.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((ce=ve==null?void 0:ve.menus)==null?void 0:ce[((aa=ve==null?void 0:ve.menus)==null?void 0:aa.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ae=ve.menus)==null?void 0:Ae.slice(0,((ga=ve.menus)==null?void 0:ga.length)-1)),ve})}b={filter:(ua=(ee=b==null?void 0:b.compData)==null?void 0:ee.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:ua.contents,key:b==null?void 0:b.comp,name:_,tableColumns:j,tableContents:R,menuFilter:b==null?void 0:b.menuFilter,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}else{let R=(Se=(sa=(ue=b==null?void 0:b.compData)==null?void 0:ue.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:sa.contents)==null?void 0:Se.map(J=>(J==null?void 0:J.value)??"");R=[R];let j=(Ke=(ze=(oe=b==null?void 0:b.compData)==null?void 0:oe.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:ze.contents)==null?void 0:Ke.map(J=>(J.value="",J));b={contents:R,filter:(Ya=(ca=b==null?void 0:b.compData)==null?void 0:ca.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:Ya.contents,key:b==null?void 0:b.comp,name:_,value:j,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}return b.isShow=!1,b}),E=await Promise.all(E);let x=[{key:"menuPath",contents:[{path:a,fatherPath:(k=(M=(D=L==null?void 0:L.data)==null?void 0:D.result)==null?void 0:M[0])==null?void 0:k.father_name,isShow:!1}]},{key:a,contents:E}];await A.createPlatFormDataApi({platId:parseInt((K=en==null?void 0:en.value)==null?void 0:K.plat_id),changeData:x});let w=await A.getPageDataApi({platId:parseInt((I=en==null?void 0:en.value)==null?void 0:I.plat_id),pageName:a});o=(H=w==null?void 0:w.data)==null?void 0:H.result}}l&&await sc(o,!!(n!=null&&n.originPath));let s=await ts(o,n);return l&&(s=await Wp(s)),s==null?void 0:s.filter(L=>L)},us=async a=>{var r,o,s,h,c,p,m,g,u,D,M;let l=(r=a==null?void 0:a.menus)==null?void 0:r.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((s=(o=a.value)==null?void 0:o.split(" "))==null?void 0:s[0]));let n=await Jr(l,!1);if(n=(h=n==null?void 0:n.filter(k=>{var K,I;return(k==null?void 0:k.name)===((I=a==null?void 0:a.groups)==null?void 0:I[((K=a==null?void 0:a.groups)==null?void 0:K.length)-1])}))==null?void 0:h[0],(p=(c=n==null?void 0:n.compData)==null?void 0:c.find(k=>(k==null?void 0:k.key)==="tableContents"))!=null&&p.contents){n=(g=(m=n==null?void 0:n.compData)==null?void 0:m.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:g.contents;let k=((u=a==null?void 0:a.words)==null?void 0:u[0])??(a==null?void 0:a.prop);return n=n==null?void 0:n.filter(K=>{var I,H,L,E;return(K==null?void 0:K[a!=null&&a.endChildMenu?k:(I=a==null?void 0:a.words)==null?void 0:I[0]])===(a!=null&&a.relatedWords&&((H=a==null?void 0:a.relatedWords)==null?void 0:H.length)>0?(E=(L=a.value)==null?void 0:L.split(" "))==null?void 0:E[0]:a.value)}),n==null?void 0:n[0]}else{let k=(M=(D=n==null?void 0:n.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:M.contents,K={};return k==null||k.forEach(I=>{K[I.prop]=I.value}),K}},Kp={key:0,class:"extra-button-content"},Gp={class:"table-operator-wrap"},Yp={key:0,class:"extra-button-filter"},Jp={key:1,class:"extra-header"},Xp=["onClick"],Zp={class:"table-op-text"},Qp={class:"table-op-text"},ef={class:"drop-menu",style:{width:"120px"}},af=["onClick"],lf={key:0},rf={key:1},nf=["onClick"],of={class:"table-op-text"},tf={key:1,class:"extra-button-content tabs-button-wrapper"},sf={class:"table-operator-wrap"},cf={class:"extra-button-filter"},uf={key:0,class:"extra-header"},df={class:"table-op-action"},pf={class:"table-op-text"},ff={class:"drop-menu",style:{width:"120px"}},hf={key:0},vf={key:1},mf=["onClick"],yf={class:"table-op-text"},gf={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const n=l,r=a,o=()=>{const $=(r==null?void 0:r.menuFilter)||[];return Array.isArray($)&&($==null?void 0:$.some(V=>{const ne=typeof V=="string"?V:JSON.stringify(V);return ne==null?void 0:ne.includes("HideGroup=Yes")}))},s=e.ref(""),h=e.ref(!1),c=e.ref(!1),p=e.ref([]),m=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),g=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function u($,V){return $.map(ne=>{const X={...ne};return V.forEach(me=>{delete X[me]}),X})}function D($){if(!$||$.t!=="n")return($==null?void 0:$.v)??"";const V=$.v;if($.z){const ne=String($.z).toLowerCase(),X=["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 F of X)if(ne.includes(F))return M(V);const me=/[ymdhms]/.test(ne),Me=/^[0#\.\,\s]+$/.test(ne.replace(/[\\\/\-:]/g,""));if(me&&!Me)return M(V)}if(V>=1&&V<=73050){if(V<5e3)return V;if(V>=5e3&&V<4e4){const ne=Math.floor((V-25569)/365.25)+1970;return ne>=1970&&ne<=2e3&&$.z&&/[ymd]/.test(String($.z).toLowerCase())?M(V):V}if(V>=4e4)return M(V)}return V}function M($){if(typeof $!="number")return $;try{const V=new Date(($-25569)*86400*1e3);if(isNaN(V.getTime()))return $;const ne=V.getFullYear(),X=String(V.getMonth()+1).padStart(2,"0"),me=String(V.getDate()).padStart(2,"0");return`${ne}-${X}-${me}`}catch{return $}}const k=$=>{const V=$.raw;if(!V)return;const ne=new FileReader;ne.onload=X=>{try{const me=new Uint8Array(X.target.result),Me=de.readSync(me,{type:"array"}),F=Me.SheetNames[0],te=Me.Sheets[F],se=de.utils.decode_range(te["!ref"]).e.c+1,Be=new Array(se).fill(""),Ve=[];for(const De in te){if(De[0]==="!")continue;const{r:Oe,c:Fe}=de.utils.decode_cell(De),ea=te[De];let Ba=D(ea);if((Ba==null||Ba==="")&&(Ba=""),Oe===0)Be[Fe]=Ba;else{if(!Ve[Oe-1]){Ve[Oe-1]={};for(let ee=0;ee<se;ee++)Ve[Oe-1][`col_${ee}`]=""}Ve[Oe-1][`col_${Fe}`]=Ba}}for(let De=0;De<se;De++)Be[De]===void 0&&(Be[De]="");const he=[];for(let De=0;De<Be.length;De++)(!Be[De]||Be[De].toString().trim()==="")&&he.push(De);let N,ie;(he==null?void 0:he.length)>0?(Ua.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=Be.filter((De,Oe)=>!he.includes(Oe)),ie=u(Ve,he==null?void 0:he.map(De=>`col_${De}`))):(N=Be,ie=Ve);const U=Ve==null?void 0:Ve[0];if(!(U!=null&&U.hasOwnProperty("col_0")))return Ua.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",N,ie)}catch(me){throw Ua.ElMessage.error(me.message),new Error(me.message)}},ne.readAsArrayBuffer(V)},K=$=>{var ne;const V=(ne=p.value)==null?void 0:ne.reduce((X,me,Me)=>(Me===0?X[me.label]=$:X[me.label]=me==null?void 0:me.value,X),{});n("filter",V,$,!0)},I=($,V={})=>{n("buttonClick",$,"",V)},H=$=>{var V,ne;p.value=(ne=(V=de.getColumnChild(A.cloneDeep($)))==null?void 0:V.filter(X=>(X==null?void 0:X.label)!==""&&(X==null?void 0:X.label)!=="操作"))==null?void 0:ne.map(X=>({label:(X==null?void 0:X.label)??"",value:"",name:(X==null?void 0:X.prop)??"",isFormColHidden:X==null?void 0:X.isTableColHidden,width:2,prop:(X==null?void 0:X.prop)??""}))},L=e.ref(!1),E=$=>{var V;if(($==null?void 0:$.buttonName)==="确认"&&(n("filter",$==null?void 0:$.content),L.value=($==null?void 0:$.content)&&Object.values($==null?void 0:$.content).length>0),($==null?void 0:$.buttonName)==="清空"){const ne=A.cloneDeep($==null?void 0:$.content);for(const X in ne)ne[X]="";p.value=(V=p.value)==null?void 0:V.map(X=>({...X,value:""})),n("filter",ne),L.value=!1}h.value=!1},x=()=>{h.value=!h.value,c.value=!0},w=()=>{var V,ne;p.value=(V=p.value)==null?void 0:V.map(X=>({...X,value:""}));const $=(ne=p.value)==null?void 0:ne.reduce((X,me)=>(X[me.label]=me.value,X),{});n("filter",$)},b=e.ref(null);let _;return _=$=>{var me;if(!h.value)return;const V=(me=b==null?void 0:b.value)==null?void 0:me.$el,ne=V==null?void 0:V.contains($.target);let X=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Me=>{Me.contains($.target)&&(X=!0)}),!ne&&!X&&(h.value=!1)},e.onMounted(()=>{document.addEventListener("click",_),H(r.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",_)}),e.watch(()=>r.columns,()=>{H(r.columns)},{deep:!0,immediate:!0}),($,V)=>{var te,Z,se,Be,Ve,he,N,ie;const ne=e.resolveComponent("el-icon"),X=e.resolveComponent("svg-icon"),me=e.resolveComponent("el-input"),Me=e.resolveComponent("el-upload"),F=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Kp,[o()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(r==null?void 0:r.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((r==null?void 0:r.level)-1)*12+"px",fontWeight:600-((r==null?void 0:r.level)-1)*100>=400?600-((r==null?void 0:r.level)-1)*100:400,fontSize:17-(r==null?void 0:r.level)>=14?17-(r==null?void 0:r.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Gp,[r!=null&&r.filterShow?(e.openBlock(),e.createElementBlock("div",Yp,[e.createVNode(Ru,{trigger:"contextmenu",ref_key:"popOverRef",ref:b,title:"",width:800,placement:"bottom-start",isVisible:h.value,"onUpdate:isVisible":V[4]||(V[4]=U=>h.value=U)},{reference:e.withCtx(()=>{var U,De,Oe,Fe;return[e.createVNode(me,{modelValue:s.value,"onUpdate:modelValue":V[0]||(V[0]=ea=>s.value=ea),style:{"min-width":"80px"},placeholder:L.value?(Oe=(De=(U=a.filterValues)==null?void 0:U.filter(ea=>ea))==null?void 0:De.slice(0,3))==null?void 0:Oe.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:K,disabled:((Fe=p.value)==null?void 0:Fe.length)===0},{suffix:e.withCtx(()=>{var ea,Ba;return[!s.value&&((Ba=(ea=a.filterValues)==null?void 0:ea.filter(ee=>ee))!=null&&Ba.join("/"))?(e.openBlock(),e.createBlock(ne,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(X,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:V[1]||(V[1]=e.withModifiers(()=>{},["stop"])),onKeyup:V[2]||(V[2]=e.withModifiers(()=>{},["stop"])),onKeypress:V[3]||(V[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,buttonValue:m.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:m.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((te=a.buttons)==null?void 0:te.length)>0?(e.openBlock(),e.createElementBlock("div",Jp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=a.buttons)==null?void 0:Z.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Oe;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:ea=>I(U==null?void 0:U.label)},[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Zp,e.toDisplayString(U==null?void 0:U.label),1)],10,Xp)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(al._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Qp,e.toDisplayString(U==null?void 0:U.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",ef,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>{var ea,Ba;return e.openBlock(),e.createElementBlock("div",{key:Fe==null?void 0:Fe.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:ee=>!a.lockingPage&&I(Fe==null?void 0:Fe.label)},[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(ea=Fe==null?void 0:Fe.label)!=null&&ea.includes("选中")?(e.openBlock(),e.createElementBlock("span",lf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ba=Fe==null?void 0:Fe.label)!=null&&Ba.includes("全部")?(e.openBlock(),e.createElementBlock("span",rf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,af)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Fe=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(X,{class:"table-op-icon",name:((Oe=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Oe.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",of,e.toDisplayString(U==null?void 0:U.label),1)],10,nf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",tf,[e.createElementVNode("div",sf,[e.createElementVNode("div",cf,[e.createVNode(me,{modelValue:s.value,"onUpdate:modelValue":V[5]||(V[5]=U=>s.value=U),style:{"min-width":"80px"},placeholder:L.value?(Ve=(Be=(se=a.filterValues)==null?void 0:se.filter(U=>U))==null?void 0:Be.slice(0,3))==null?void 0:Ve.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:K,disabled:((he=p.value)==null?void 0:he.length)===0},{suffix:e.withCtx(()=>{var U,De;return[!s.value&&((De=(U=a.filterValues)==null?void 0:U.filter(Oe=>Oe))!=null&&De.join("/"))?(e.openBlock(),e.createBlock(ne,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(X,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((N=a.buttons)==null?void 0:N.length)>0?(e.openBlock(),e.createElementBlock("div",uf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ie=a.buttons)==null?void 0:ie.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Oe;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",df,[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",pf,e.toDisplayString(U==null?void 0:U.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(al._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(F,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Fe;return[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(U==null?void 0:U.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",ff,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>(e.openBlock(),e.createBlock(F,{key:Fe==null?void 0:Fe.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:ea=>I(Fe==null?void 0:Fe.label)},{default:e.withCtx(()=>{var ea,Ba;return[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(ea=Fe==null?void 0:Fe.label)!=null&&ea.includes("选中")?(e.openBlock(),e.createElementBlock("span",hf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ba=Fe==null?void 0:Fe.label)!=null&&Ba.includes("全部")?(e.openBlock(),e.createElementBlock("span",vf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Fe=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(X,{class:"table-op-icon",name:(Oe=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Oe.icon},null,8,["name"]),e.createElementVNode("span",yf,e.toDisplayString(U==null?void 0:U.label),1)],10,mf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},bf=Zl._export_sfc(gf,[["__scopeId","data-v-44a17652"]]),kf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,n)=>{const r=e.resolveComponent("el-table-column"),o=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(o,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,s=>{var h;return e.openBlock(),e.createBlock(r,{key:s==null?void 0:s.prop,label:s==null?void 0:s.label,prop:s==null?void 0:s.prop,fixed:(s==null?void 0:s.prop)==="operate"?"right":s==null?void 0:s.fixed,align:(s==null?void 0:s.align)??"left","show-overflow-tooltip":(s==null?void 0:s.showOverflowTooltip)??!0,width:s==null?void 0:s.width,"min-width":(s==null?void 0:s.minWidth)||((s==null?void 0:s.prop)==="operate"?80:(((h=s==null?void 0:s.label)==null?void 0:h.length)*2||4)*27)},{default:e.withCtx(c=>[e.renderSlot(l.$slots,"content",{row:c.row,column:c.column,$index:c.$index,scope:c}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,(p,m)=>(e.openBlock(),e.createBlock(al._sfc_main$2,{key:m,column:p,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(g,u)=>({name:u,fn:e.withCtx(({row:D,slotData:M,item:k,column:K})=>[e.renderSlot(l.$slots,u,e.mergeProps({ref_for:!0},M??D,{item:k??p,slotData:M??D,row:D,column:K,columnProp:p}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class xf extends Bl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,n,r,o){const s=this,h=new Bl.FileLoader(s.manager);h.setPath(s.path),h.setResponseType("arraybuffer"),h.setRequestHeader(s.requestHeader),h.setWithCredentials(s.withCredentials),h.load(l,function(c){try{n(s.parse(c))}catch(p){o?o(p):console.error(p),s.manager.itemError(l)}},r,o)}_getDataView(l,n,r,o){switch(r){case"F":return o===8?l.getFloat64(n,this.littleEndian):l.getFloat32(n,this.littleEndian);case"I":return o===1?l.getInt8(n):o===2?l.getInt16(n,this.littleEndian):l.getInt32(n,this.littleEndian);case"U":return o===1?l.getUint8(n):o===2?l.getUint16(n,this.littleEndian):l.getUint32(n,this.littleEndian)}}parse(l){function n(M,k){const K=M.length,I=new Uint8Array(k);let H=0,L=0,E,x,w;do if(E=M[H++],E<32){if(E++,L+E>k)throw new Error("Output buffer is not large enough");if(H+E>K)throw new Error("Invalid compressed data");do I[L++]=M[H++];while(--E)}else{if(x=E>>5,w=L-((E&31)<<8)-1,H>=K)throw new Error("Invalid compressed data");if(x===7&&(x+=M[H++],H>=K))throw new Error("Invalid compressed data");if(w-=M[H++],L+x+2>k)throw new Error("Output buffer is not large enough");if(w<0)throw new Error("Invalid compressed data");if(w>=L)throw new Error("Invalid compressed data");do I[L++]=I[w++];while(--x+2)}while(H<K);return I}function r(M){const k={},K=new Uint8Array(M);let I="",H="",L=0,E=!1;const x=K.length;for(;L<x&&E===!1;){const $=String.fromCharCode(K[L++]);$===`
|
|
1
|
+
"use strict";var Nu=Object.defineProperty;var Au=(a,l,n)=>l in a?Nu(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n;var Yr=(a,l,n)=>Au(a,typeof l!="symbol"?l+"":l,n);const e=require("vue"),Ua=require("./request-Dl8yi2iS.cjs"),A=require("./index-Pve69buQ.cjs"),al=require("./index-CEpMuew1.cjs"),de=require("./index-kSKXfPuW.cjs"),Zl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Bl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ch7zA-Cn.cjs"),Dr=require("./index-BOkUwKV5.cjs"),So=require("./threeViewerHost-CG91M374.cjs"),Mr=require("./index-DmwxzDGW.cjs"),ls=require("./index-BRSZXUul.cjs"),Ys=require("./index-DuvMoFSU.cjs");;/* empty css */const Eo=require("./isString-CGrvcmBw.cjs"),rs=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Js=require("./index-BVaHwt5f.cjs"),zu=require("./index-EQOt3OdY.cjs"),Mn=require("./MTLLoader-BPfB7u4m.cjs"),Mu=require("./URDFLoader-BKLZ4URk.cjs");var Iu="[object Boolean]";function Xs(a){return a===!0||a===!1||Ua.isObjectLike(a)&&Ua.baseGetTag(a)==Iu}function Ou(a){return a===void 0}const Lu=a=>a.match(/\((.*)\)/)[1],Ru={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,n=e.ref(null),r=e.ref(!1),o=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{r.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>o.value,()=>{e.nextTick(()=>{var s,h;(h=(s=n.value)==null?void 0:s.updatePopper)==null||h.call(s)})},{deep:!0,immediate:!0}),(s,h)=>{const c=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(c,{visible:r.value,"onUpdate:visible":h[0]||(h[0]=p=>r.value=p),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:o})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},$u=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,n=e.computed(()=>{var p,m,g,u,D,M;const r=l.value??"";let o=(p=l==null?void 0:l.columnContent)==null?void 0:p.filter;if(o=(m=de.analyzeSplitToContent(o,","))==null?void 0:m.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k)),o=o==null?void 0:o.find(k=>(k==null?void 0:k[0])==="("),(o==null?void 0:o[0])==="("&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=o==null?void 0:o.split("||"),!o)return{backgroundColor:void 0,color:void 0};let s=(u=(g=l==null?void 0:l.columnContent)==null?void 0:g.options)==null?void 0:u.findIndex(k=>(k==null?void 0:k.value)===r);s=o==null?void 0:o[s],s=de.analyzeSplitToContent(s,","),s=s==null?void 0:s.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k));let h=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextBackRGBA"));h?h=de.rgbaToColor((D=h==null?void 0:h.split("="))==null?void 0:D[1]):h=void 0;let c=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextRGBA"));return c?c=de.rgbaToColor((M=c==null?void 0:c.split("="))==null?void 0:M[1]):c=void 0,{backgroundColor:h,color:c}});return(r,o)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(n.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Vu=Zl._export_sfc($u,[["__scopeId","data-v-3290070b"]]);function Pu(a,l,n,r={}){if(!a||!l||!n||n.length!==4)return;const o=a.getContext("2d");if(!o)return;const{color:s="rgba(255, 235, 59, 0.3)",strokeWidth:h=2,fillOpacity:c=.2}=r,p=a.getBoundingClientRect(),m=l.getBoundingClientRect(),g=l.naturalWidth,u=l.naturalHeight,D=m.width/g,M=m.height/u,k=Math.min(D,M),K=g*k,I=u*k,H=(p.width-K)/2,L=(p.height-I)/2,E=n.map(([w,b])=>{const _=H+w*K,$=L+b*I;return{x:_,y:$}});o.clearRect(0,0,a.width,a.height),o.beginPath(),o.moveTo(E[0].x,E[0].y);for(let w=1;w<E.length;w++)o.lineTo(E[w].x,E[w].y);o.closePath();const x=s.replace(/[\d.]+\)$/,`${c})`);o.fillStyle=x,o.fill(),o.strokeStyle=s.replace(/[\d.]+\)$/,"1)"),o.lineWidth=h,o.stroke()}function xi(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ns(a,l){if(!a||!l)return null;const n=a[l];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Fu={key:0,class:"ocr-img-preview-root"},ju={class:"ocr-img-preview-window"},Hu={key:0,class:"img-preview-body"},Uu={class:"img-preview-header"},qu={class:"img-header-left"},Wu={class:"img-name"},Ku={key:0,class:"img-header-right"},Gu={class:"img-index"},Yu={key:0,class:"img-thumb-list"},Ju=["onClick"],Xu={key:1,class:"thumb-placeholder"},Zu={class:"thumb-name"},Qu={class:"img-preview-container"},ed={key:0,class:"img-placeholder"},ad={key:2,class:"img-placeholder"},ld={key:0},rd={key:1},nd={key:1,class:"img-placeholder"},id=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const n=a,r=l,o=e.computed({get:()=>n.visible,set:N=>r("update:visible",N)});let s=!1,h="",c=0,p=0,m=0,g=0,u=0,D=0,M=null;const k=N=>{var U,De;const ie=(De=(U=N==null?void 0:N.target)==null?void 0:U.closest)==null?void 0:De.call(U,".ocr-img-preview-window");return ie||document.querySelector(".ocr-img-preview-window")},K=N=>{if(!N||N==="none")return{tx:0,ty:0};let ie=N.match(/matrix\(([^)]+)\)/);if(ie){const U=ie[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[4])||0,ty:(U==null?void 0:U[5])||0}}if(ie=N.match(/matrix3d\(([^)]+)\)/),ie){const U=ie[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[12])||0,ty:(U==null?void 0:U[13])||0}}return ie=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),ie?{tx:Number(ie[1])||0,ty:Number(ie[2])||0}:{tx:0,ty:0}},I=(N,ie,U)=>{N.style.transform=`translate(${ie}px, ${U}px)`},H=N=>{const ie=k(N);if(!ie)return;s=!0,M=ie,h="move",c=N.clientX,p=N.clientY;const U=window.getComputedStyle(ie),{tx:De,ty:Oe}=K(U.transform);u=De,D=Oe,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},L=(N,ie)=>{const U=k(N);if(!U)return;s=!0,M=U,h=ie,c=N.clientX,p=N.clientY;const De=U.getBoundingClientRect();m=De.width,g=De.height;const Oe=window.getComputedStyle(U),{tx:Fe,ty:ea}=K(Oe.transform);u=Fe,D=ea,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},E=N=>{if(!s||!M)return;const ie=N.clientX-c,U=N.clientY-p,De=360,Oe=420;let Fe=m,ea=g,Ba=u,ee=D;if(h==="move"){Ba=u+ie,ee=D+U,I(M,Ba,ee);return}if(h.includes("right")&&(Fe=Math.max(De,m+ie)),h.includes("bottom")&&(ea=Math.max(Oe,g+U)),h.includes("left")){const ua=m-ie;ua<De?(Fe=De,Ba=u+(m-De)):(Fe=ua,Ba=u+ie)}if(h.includes("top")){const ua=g-U;ua<Oe?(ea=Oe,ee=D+(g-Oe)):(ea=ua,ee=D+U)}M.style.width=`${Fe}px`,M.style.height=`${ea}px`,I(M,Ba,ee)},x=()=>{s=!1,h="",M=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)},w=e.ref([]),b=e.ref(!1);e.watch(()=>n.images,async N=>{if(!Array.isArray(N)||N.length===0){w.value=[];return}b.value=!0;const ie=[];for(const U of N)if(U.url&&!U.url.startsWith("blob:")&&!U.url.startsWith("http"))try{const De=await Bl.downloadFile(U.url),Oe=URL.createObjectURL(De);ie.push({...U,blobUrl:Oe})}catch(De){console.error(`Failed to load image for preview: ${U.url}`,De),ie.push({...U,blobUrl:""})}else ie.push({...U,blobUrl:U.url});w.value=ie,b.value=!1},{deep:!0,immediate:!0});const _=e.ref(0),$=e.ref(null),V=e.ref(null),ne=e.computed(()=>w.value[_.value]||null),X=()=>{if(!w.value.length){_.value=0;return}if(n.defaultImageName){const N=w.value.findIndex(ie=>(ie==null?void 0:ie.name)===n.defaultImageName);_.value=N>=0?N:0}else _.value=0},me=N=>{if(!w.value.length)return;const ie=Math.max(0,Math.min(N,w.value.length-1));_.value=ie},Me=()=>me(_.value-1),F=()=>me(_.value+1),te=N=>{if(!N)return;const ie=w.value.findIndex(U=>(U==null?void 0:U.name)===N);ie>=0&&(_.value=ie)},Z=()=>{if(!V.value)return;const N=V.value.parentElement;if(!N)return;const ie=N.getBoundingClientRect();V.value.width=ie.width,V.value.height=ie.height},se=()=>{var De,Oe;if(!V.value||!$.value||!n.focusedFieldName){V.value&&xi(V.value);return}const N=(De=$.value.$el)==null?void 0:De.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{se()})};return}const ie=((Oe=ne.value)==null?void 0:Oe.name)||"",U=ns(n.fieldMeta,n.focusedFieldName);if(!U){xi(V.value);return}if(U.imageName!==ie){xi(V.value);return}Z(),Pu(V.value,N,U.bboxNorm)},Be=()=>{e.nextTick(()=>{Z(),se()})};e.watch(()=>n.focusedFieldName,()=>{if(!o.value)return;const N=ns(n.fieldMeta,n.focusedFieldName);N!=null&&N.imageName&&te(N.imageName),e.nextTick(()=>{se()})}),e.watch(()=>{var N;return(N=ne.value)==null?void 0:N.name},()=>{o.value&&e.nextTick(()=>{V.value&&xi(V.value),se()})}),e.watch(()=>n.visible,N=>{N?(X(),e.nextTick(()=>{Z(),se()})):V.value&&xi(V.value)}),e.watch(()=>n.defaultImageName,()=>{o.value&&X()});let Ve=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&(Ve=new ResizeObserver(()=>{Z(),e.nextTick(()=>{se()})}),(N=V.value)!=null&&N.parentElement&&Ve.observe(V.value.parentElement))}),e.onUnmounted(()=>{Ve&&(Ve.disconnect(),Ve=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)});const he=()=>{V.value&&xi(V.value),r("update:visible",!1),r("close")};return(N,ie)=>{var ea,Ba;const U=e.resolveComponent("el-button"),De=e.resolveComponent("el-image"),Oe=e.resolveComponent("Loading"),Fe=e.resolveComponent("el-icon");return o.value?(e.openBlock(),e.createElementBlock("div",Fu,[ie[12]||(ie[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",ju,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(H,["stop"])},[ie[8]||(ie[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:he},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:ie[0]||(ie[0]=e.withModifiers(ee=>L(ee,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:ie[1]||(ie[1]=e.withModifiers(ee=>L(ee,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:ie[2]||(ie[2]=e.withModifiers(ee=>L(ee,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:ie[3]||(ie[3]=e.withModifiers(ee=>L(ee,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:ie[4]||(ie[4]=e.withModifiers(ee=>L(ee,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:ie[5]||(ie[5]=e.withModifiers(ee=>L(ee,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:ie[6]||(ie[6]=e.withModifiers(ee=>L(ee,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:ie[7]||(ie[7]=e.withModifiers(ee=>L(ee,"bottom-right"),["stop"]))},null,32),ne.value?(e.openBlock(),e.createElementBlock("div",Hu,[e.createElementVNode("div",Uu,[e.createElementVNode("div",qu,[e.createElementVNode("span",Wu,e.toDisplayString(ne.value.name?ne.value.name+(ne.value.url&&ne.value.url.lastIndexOf(".")!==-1?ne.value.url.substring(ne.value.url.lastIndexOf(".")):""):""),1)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Ku,[e.createVNode(U,{size:"small",disabled:_.value===0,onClick:Me},{default:e.withCtx(()=>ie[9]||(ie[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Gu,e.toDisplayString(_.value+1)+" / "+e.toDisplayString(w.value.length),1),e.createVNode(U,{size:"small",disabled:_.value===w.value.length-1,onClick:F},{default:e.withCtx(()=>ie[10]||(ie[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Yu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(ee,ua)=>(e.openBlock(),e.createElementBlock("div",{key:(ee.name||"")+"-"+ua,class:e.normalizeClass(["img-thumb-item",{active:ua===_.value}]),onClick:ue=>me(ua)},[ee!=null&&ee.blobUrl?(e.openBlock(),e.createBlock(De,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Xu,"加载失败")),e.createElementVNode("div",Zu,e.toDisplayString(ee.name||"-"),1)],10,Ju))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Qu,[b.value?(e.openBlock(),e.createElementBlock("div",ed,[e.createVNode(Fe,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Oe)]),_:1}),ie[11]||(ie[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(ea=ne.value)!=null&&ea.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(De,{ref_key:"imageRef",ref:$,src:ne.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[ne.value.blobUrl],onLoad:Be},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:V,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",ad,[(Ba=ne.value)!=null&&Ba.url?(e.openBlock(),e.createElementBlock("span",ld,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",rd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",nd,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),od=Zl._export_sfc(id,[["__scopeId","data-v-48a4ecb1"]]),td={class:"cert-preview-body"},sd={key:0,class:"pdf-preview-container"},cd={class:"thumbs"},ud=["onClick"],dd={class:"thumb-img"},pd=["src"],fd={key:1,class:"thumb-loading"},hd={class:"thumb-title"},vd={class:"viewer"},md={key:0,class:"viewer-img-wrap"},yd=["src"],gd={key:1,class:"viewer-loading"},bd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(""),s=e.ref(""),h=e.computed(()=>(n.versions||[]).find(k=>String(k.versionId)===String(o.value))),c=e.ref({}),p=e.ref(""),m=e.ref("证书附件.pdf"),g=()=>{try{Object.values(c.value||{}).forEach(k=>{k&&URL.revokeObjectURL(k)}),p.value&&URL.revokeObjectURL(p.value)}catch{}c.value={},p.value=""},u=async k=>{if(!k||k.fileType==="pdf")return;const K=Array.isArray(k.images)?k.images:[];for(const I of K){const H=I==null?void 0:I.url;if(!(!H||c.value[H]))try{const L=await A.platformDownloadFile({url:H}),E=URL.createObjectURL(L.data);c.value={...c.value,[H]:E}}catch{}}},D=async k=>{var I;if(!k||k.fileType!=="pdf"){p.value="";return}const K=k.sourceUrl||"";if(!K){p.value="";return}if(p.value){try{URL.revokeObjectURL(p.value)}catch{}p.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:K,versionId:k==null?void 0:k.versionId,certNo:k==null?void 0:k.certNo});const H=await A.platformDownloadFile({url:K});console.log("[CertificatePreview] PDF响应:",{url:K,status:H==null?void 0:H.status,size:(I=H==null?void 0:H.data)==null?void 0:I.size});const L=URL.createObjectURL(H.data);p.value=L;const E=k.certNo?String(k.certNo):"";m.value=E?`${E}.pdf`:"证书附件.pdf"}catch(H){console.error("[CertificatePreview] PDF加载失败:",{url:K,error:H}),p.value=""}};e.watch(()=>n.visible,async k=>{var I;if(!k){g();return}const K=(I=n.versions)==null?void 0:I[0];o.value=(K==null?void 0:K.versionId)||"",await u(K),await D(K)},{immediate:!0}),e.watch(()=>o.value,async()=>{var K,I;const k=h.value;if(!k){s.value="",p.value="";return}if(k.fileType==="pdf"){s.value="",await D(k);return}p.value="",s.value=((I=(K=k.images)==null?void 0:K[0])==null?void 0:I.url)||"",await u(k)},{immediate:!0});const M=()=>{r("update:visible",!1),g()};return e.onBeforeUnmount(()=>{g()}),(k,K)=>{const I=e.resolveComponent("el-empty"),H=e.resolveComponent("el-tab-pane"),L=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{"model-value":k.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:M},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:M},{default:e.withCtx(()=>K[1]||(K[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[k.versions&&k.versions.length>0?(e.openBlock(),e.createBlock(L,{key:0,modelValue:o.value,"onUpdate:modelValue":K[0]||(K[0]=w=>o.value=w),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.versions,w=>(e.openBlock(),e.createBlock(H,{key:w.versionId,name:w.versionId,label:w.label},{default:e.withCtx(()=>[e.createElementVNode("div",td,[w.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",sd,[p.value?(e.openBlock(),e.createBlock(al.SsFilePreview,{key:1,fileName:m.value,blobUrl:p.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(I,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",cd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.images||[],b=>(e.openBlock(),e.createElementBlock("div",{key:b.url,class:e.normalizeClass(["thumb",{active:b.url===s.value}]),onClick:_=>s.value=b.url},[e.createElementVNode("div",dd,[c.value[b.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value[b.url]},null,8,pd)):(e.openBlock(),e.createElementBlock("div",fd,"加载中"))]),e.createElementVNode("div",hd,e.toDisplayString(b.name),1)],10,ud))),128))]),e.createElementVNode("div",vd,[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value[s.value]?(e.openBlock(),e.createElementBlock("div",md,[e.createElementVNode("img",{class:"viewer-img",src:c.value[s.value]},null,8,yd)])):(e.openBlock(),e.createElementBlock("div",gd,"加载中"))],64)):(e.openBlock(),e.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),kd=Zl._export_sfc(bd,[["__scopeId","data-v-220703c0"]]),xd={class:"ocr-candidate-wrap"},wd={class:"ocr-candidate-left"},_d={key:1},Sd={key:0},Ed={key:1},Cd={key:2},Dd={key:3},Bd={key:0,class:"ocr-candidate-right"},Td={class:"ocr-candidate-actions"},Nd={key:1},Ad={class:"dialog-footer"},zd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const n=(_=[])=>{const $=[],V=ne=>{(ne||[]).forEach(X=>{if(!X)return;const me=X.children||X.childrens||X.columns;Array.isArray(me)&&me.length>0?V(me):$.push(X)})};return V(_),$},r=a,o=l,s=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowAdd)!==!1}),h=e.computed(()=>{var _;return((_=D.value)==null?void 0:_.allowReplace)!==!1}),c=_=>{if(!_)return[];if(Array.isArray(_))return _;if(typeof _=="string")try{const $=JSON.parse(_);return Array.isArray($)?$:[]}catch{return[]}return[]},p=_=>{o("preview-file",_)},m=e.ref([]),g=e.ref(0),u=e.ref("");e.watch(()=>r.candidates,_=>{var $,V;m.value=(_||[]).map(ne=>({...ne,...(ne==null?void 0:ne.ocrRow)||{},selectedTargetId:(ne==null?void 0:ne.selectedTargetId)||"",__decision:ne==null?void 0:ne.__decision})),g.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>r.visible,_=>{var $,V;_&&(g.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||"")});const D=e.computed(()=>{var $;const _=Number(g.value||0);return(($=m.value||[])==null?void 0:$[_])||null}),M=e.computed(()=>(n(r.columns||[])||[]).filter(V=>V&&V.prop).filter(V=>V.type!=="operate"&&V.label!=="操作"&&V.prop!=="operate")),k=e.computed(()=>M.value.filter(_=>_.label!=="证书附件"&&_.prop!=="证书附件")),K=_=>{if(!_)return;const $=(m.value||[]).findIndex(V=>(V==null?void 0:V.idx)===(_==null?void 0:_.idx));$>-1&&(g.value=$,u.value=(_==null?void 0:_.selectedTargetId)||"")},I=_=>{if(!_){u.value="";return}u.value=String((_==null?void 0:_.id)??"")},H=(_,$="")=>{const V=Number(g.value||0),ne=m.value||[],X=ne[V];X&&(X.__decision=_,X.selectedTargetId=$,u.value=$,m.value=[...ne])},L=()=>H("skip",""),E=()=>H("add",""),x=()=>{if(!u.value){Ua.ElMessage.warning("请先选择要替换的目标记录");return}H("replace",u.value)},w=()=>{o("update:visible",!1)},b=()=>{const _=m.value||[];if(_.find(V=>(V==null?void 0:V.__decision)==="replace"&&!(V!=null&&V.selectedTargetId))){Ua.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}o("submit",_),o("update:visible",!1)};return(_,$)=>{const V=e.resolveComponent("el-table-column"),ne=e.resolveComponent("svg-icon"),X=e.resolveComponent("el-table"),me=e.resolveComponent("el-button"),Me=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Dr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:w},{default:e.withCtx(()=>{var F,te;return[e.createElementVNode("div",xd,[e.createElementVNode("div",wd,[$[0]||($[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(X,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:K},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,Z=>(e.openBlock(),e.createBlock(V,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:e.withCtx(({row:se})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[Z.prop]).length>0?(e.openBlock(),e.createBlock(ne,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>p({row:se,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",_d,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(V,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:Z})=>[e.createTextVNode(e.toDisplayString(((Z==null?void 0:Z.candidates)||[]).length),1)]),_:1}),e.createVNode(V,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:Z})=>[(Z==null?void 0:Z.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Sd,"替换")):(Z==null?void 0:Z.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Ed,"新增")):(Z==null?void 0:Z.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Cd,"跳过")):(e.openBlock(),e.createElementBlock("span",Dd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Bd,[$[4]||($[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Td,[e.createVNode(me,{id:"themeBorderButton",onClick:L},{default:e.withCtx(()=>$[1]||($[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(me,{id:"themeBorderButton",onClick:E,disabled:!s.value},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(me,{class:"ok-button",id:"themeButton",onClick:x,disabled:!h.value||!u.value},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((F=D.value)==null?void 0:F.candidates)||[]).length===0?(e.openBlock(),e.createBlock(Me,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(X,{data:((te=D.value)==null?void 0:te.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,Z=>(e.openBlock(),e.createBlock(V,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:e.withCtx(({row:se})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[Z.prop]).length>0?(e.openBlock(),e.createBlock(ne,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>p({row:se,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Nd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Ad,[e.createVNode(me,{id:"themeBorderButton",onClick:w},{default:e.withCtx(()=>$[5]||($[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(me,{class:"ok-button",id:"themeButton",onClick:b},{default:e.withCtx(()=>$[6]||($[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Md=Zl._export_sfc(zd,[["__scopeId","data-v-89e0489c"]]),Id={class:"ocr-preview-content"},Od={class:"ocr-preview-tip"},Ld={class:"ocr-preview-table"},Rd={style:{display:"flex","align-items":"center",gap:"8px"}},$d={class:"dialog-footer"},Vd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]),s=e.ref([]),h=e.ref([]);e.watch(()=>n.visible,M=>{M&&(o.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),s.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),h.value=[...n.ocrSelectedFields])});const c=(M,k)=>{const K=[...h.value];if(k)K.includes(M)||K.push(M);else{const I=K.indexOf(M);I>-1&&K.splice(I,1)}h.value=K,r("update:ocrSelectedFields",K)},p=(M,k,K)=>{r("fieldChange",{rowIndex:M,prop:k,value:K})},m=()=>{r("update:ocrPreviewData",o.value),r("confirm",o.value),r("update:visible",!1)},g=()=>{r("update:visible",!1)},u=M=>typeof M!="number"?"-":`${(M*100).toFixed(1)}%`,D=M=>typeof M!="number"?"#606266":M>=.9?"#67c23a":M>=.7?"#e6a23c":"#f56c6c";return(M,k)=>{const K=e.resolveComponent("el-alert"),I=e.resolveComponent("el-table-column"),H=e.resolveComponent("el-checkbox"),L=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),x=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Dr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:g,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[e.createElementVNode("div",Od,[e.createVNode(K,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Ld,[e.createVNode(E,{data:o.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,w=>(e.openBlock(),e.createBlock(I,{key:w.prop,prop:w.prop,"min-width":w.minWidth||230,"class-name":w.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Rd,[w.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(H,{key:0,"model-value":h.value.includes(w.prop),onChange:b=>c(w.prop,b),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(w.label),1)])]),default:e.withCtx(({row:b,$index:_})=>[w.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:D(b[w.prop]),fontWeight:500})},e.toDisplayString(u(b[w.prop])),5)):(e.openBlock(),e.createBlock(L,{key:1,modelValue:b[w.prop],"onUpdate:modelValue":$=>b[w.prop]=$,size:"small",placeholder:"请输入"+w.label,onChange:$=>p(_,w.prop,$)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",$d,[e.createVNode(x,{onClick:g,id:"themeBorderButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(x,{class:"ok-button",onClick:m,id:"themeButton"},{default:e.withCtx(()=>k[2]||(k[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Pd=Zl._export_sfc(Vd,[["__scopeId","data-v-df66eb1f"]]),ni=a=>{var r;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let n=(r=de.analyzeSplitToContent(l,","))==null?void 0:r.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),fn(o)));return n=n==null?void 0:n.join(","),n};function Zs(a){return Ua.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function Fd(a){return Ua.axios.get(a,{responseType:"blob"})}let Kl="$R",jd="http://222.92.178.198:55002/AIRobot",tt=["Form","BarChart","FormText","FormBlock"];const Qs=a=>{var n,r;let l=(r=de.analyzeSplitToContent(a,"@"))==null?void 0:r[((n=de.analyzeSplitToContent(a,"@"))==null?void 0:n.length)-1];return!!(tt!=null&&tt.some(o=>l==null?void 0:l.includes(o)))},Hd=async(a,l,n,r)=>{var s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua;let o=a;if(Qs(o==null?void 0:o[0])){let ue=Jd(o),sa=(s=ue==null?void 0:ue.filter)==null?void 0:s.join(","),Se=[];(h=ue==null?void 0:ue.hideContents)==null||h.forEach(Ke=>{if(Ke){const ca=Ke;ca&&Se.push(`(HideGroup=Yes, prop=${ca})`)}});let oe=(c=ue==null?void 0:ue.formContents)==null?void 0:c.filter(Ke=>{var ca;return(ca=Ke==null?void 0:Ke.filters)==null?void 0:ca.includes("@ShowHide=Hide")});(oe==null?void 0:oe.length)>0&&(oe==null||oe.forEach(Ke=>{if(Ke){const ca=Ke==null?void 0:Ke.prop;ca&&Se.push(`(Hide=Yes, prop=${ca})`)}}));let ze=(r==null?void 0:r.menuFilter)??[];return Array.isArray(ze)||(ze=ze?[ze]:[]),ze=[...ze,...Se],{key:"Form",name:ue==null?void 0:ue.groupName,value:ue==null?void 0:ue.formContents,contents:Array.isArray((p=ue==null?void 0:ue.contents)==null?void 0:p[0])&&((g=(m=ue==null?void 0:ue.contents)==null?void 0:m[0])!=null&&g.every(Ke=>Array.isArray(Ke)))?[(D=(u=ue==null?void 0:ue.contents)==null?void 0:u[0])==null?void 0:D[n]]:[ue==null?void 0:ue.contents],filter:"("+sa+")",menuFilter:ze,groupFilter:ue==null?void 0:ue.groupFilters}}else if(((M=o==null?void 0:o[0])==null?void 0:M[0])!=="&"){let ue=lc(o,r),sa="";(k=ue==null?void 0:ue.tableFilter)!=null&&k.includes(Kl)?ue.tableFilter=(K=ue==null?void 0:ue.tableFilter)==null?void 0:K.replace(Kl,""):sa=(L=(H=(I=ue==null?void 0:ue.tableFilter)==null?void 0:I.replace("(",Kl))==null?void 0:H.split(Kl))==null?void 0:L[0];let Se=[];ue!=null&&ue.tableFilter&&((E=de.analyzeSplitToContent(ue==null?void 0:ue.tableFilter,","))==null||E.forEach(ze=>{ze!=null&&ze.includes("@ShowHide=Hide")&&Se.push("HideGroup=Yes")}));let oe=(r==null?void 0:r.menuFilter)??[];return Array.isArray(oe)||(oe=oe?[oe]:[]),oe=[...oe,...Se],{key:"Table",name:ue==null?void 0:ue.groupName,tableColumns:ue==null?void 0:ue.tableColumns,assistColumn:ue==null?void 0:ue.columns,tableContents:l===1?ue==null?void 0:ue.tableContents:(w=(x=ue==null?void 0:ue.tableContents)==null?void 0:x[n])!=null&&w.every(ze=>Array.isArray(ze))?(b=ue==null?void 0:ue.tableContents)==null?void 0:b[n]:[(_=ue==null?void 0:ue.tableContents)==null?void 0:_[n]],filter:ue==null?void 0:ue.tableFilter,menuFilter:oe,quotePage:sa!==""?((ne=(V=($=sa==null?void 0:sa.replace("*",Kl))==null?void 0:$.split(Kl))==null?void 0:V[0])==null?void 0:ne.replaceAll(":","/"))??"":void 0,quoteGroup:sa!==""?((se=(Z=(te=(F=(Me=(me=(X=sa==null?void 0:sa.replace("*",Kl))==null?void 0:X.split(Kl))==null?void 0:me[1])==null?void 0:Me.replace("{",Kl))==null?void 0:F.split(Kl))==null?void 0:te[0])==null?void 0:Z.split(":"))==null?void 0:se.filter(ze=>ze!==""))??[]:[],relatedQuotes:ue==null?void 0:ue.relatedQuotes,fatherSyncContents:ue==null?void 0:ue.fatherSyncContents,sonSyncContents:ue==null?void 0:ue.sonSyncContents}}else{let ue=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],sa=o==null?void 0:o[0];sa=sa==null?void 0:sa.slice(1,sa==null?void 0:sa.length),sa=de.analyzeSplitToContent(sa,":"),sa=sa==null?void 0:sa[(sa==null?void 0:sa.length)-1];let Se=[];Se.push("1");let oe=sa==null?void 0:sa.replace("(",Kl);oe=(Be=oe==null?void 0:oe.split(Kl))==null?void 0:Be[0],Se.push(oe);let ze=sa==null?void 0:sa.replace("(",Kl);if(ze=(Ve=ze==null?void 0:ze.split(Kl))==null?void 0:Ve[1],ze=(N=(he=ze==null?void 0:ze.replace(")",Kl))==null?void 0:he.split(Kl))==null?void 0:N[0],(U=(ie=ze==null?void 0:ze.replace(",",Kl))==null?void 0:ie.split(Kl))==null||U.forEach(Ke=>{Se.push(Ke)}),Se.push(""),Se.push(""),(De=Se==null?void 0:Se[2])!=null&&De.includes(".xlsx")||(Oe=Se==null?void 0:Se[2])!=null&&Oe.includes(".xls"))try{let Ke=jd+"/"+(Se==null?void 0:Se[2]),ca=await Fd(Ke),Ya=`生成js函数名称为${Se==null?void 0:Se[1]}的函数,规则为:`+(Se==null?void 0:Se[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((ca==null?void 0:ca.status)===200){let R=ca==null?void 0:ca.data;const j=new FormData;j.append("file",R,Se==null?void 0:Se[2]),j.append("query",Ya);let J=await Zs(j);J=(Ba=(ea=(Fe=J==null?void 0:J.data)==null?void 0:Fe.data)==null?void 0:ea.response)==null?void 0:Ba.replace("generateResult",Se==null?void 0:Se[1]),Se[Se.length-2]=J,Se[Se.length-1]=[{name:(ua=(ee=Se==null?void 0:Se[2])==null?void 0:ee.split("."))==null?void 0:ua[0],url:Ke}]}}catch{}return Se=[Se],{key:"Method",name:[],tableContents:Se,tableColumns:ue}}},Ud=(a,l)=>{var r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se;let n=(o=(r=de.analyzeSplitToContent(a,"="))==null?void 0:r.filter(oe=>oe!=="="))==null?void 0:o.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])==="="&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe));if(Qs(n==null?void 0:n[1])){let oe=Yd(n),ze=(c=(h=(s=oe==null?void 0:oe.filter)==null?void 0:s.replace("@",Kl))==null?void 0:h.split(Kl))==null?void 0:c[0],Ke=(g=(m=(p=oe==null?void 0:oe.filter)==null?void 0:p.replace("(",Kl))==null?void 0:m.split(Kl))==null?void 0:g[1],ca=(M=(D=(u=oe==null?void 0:oe.filter)==null?void 0:u.replace("(",Kl))==null?void 0:D.split(Kl))==null?void 0:M[0];ca="@"+((k=ca==null?void 0:ca.split("@"))==null?void 0:k[1]),Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1),Ke=(I=(K=de.analyzeSplitToContent(Ke,","))==null?void 0:K.map(R=>(R=ca+R,R)))==null?void 0:I.join("");let Ya=ze+"("+Ke+")";return{key:"Form",name:oe==null?void 0:oe.group,filter:Ya,formPage:((E=(L=(H=ze==null?void 0:ze.replace("*",Kl))==null?void 0:H.split(Kl))==null?void 0:L[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((ne=(V=($=(_=(b=(w=(x=ze==null?void 0:ze.replace("*",Kl))==null?void 0:x.split(Kl))==null?void 0:w[1])==null?void 0:b.replace("{",Kl))==null?void 0:_.split(Kl))==null?void 0:$[0])==null?void 0:V.split(":"))==null?void 0:ne.filter(R=>R!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let oe=lc(n,l,n==null?void 0:n[1]),ze="";(X=oe==null?void 0:oe.tableFilter)!=null&&X.includes(Kl)?oe.tableFilter=(me=oe==null?void 0:oe.tableFilter)==null?void 0:me.replace(Kl,""):ze=(te=(F=(Me=oe==null?void 0:oe.tableFilter)==null?void 0:Me.replace("(",Kl))==null?void 0:F.split(Kl))==null?void 0:te[0];let Ke=(Be=(se=(Z=oe==null?void 0:oe.tableFilter)==null?void 0:Z.replace("(",Kl))==null?void 0:se.split(Kl))==null?void 0:Be[0];Ke=[{menus:(he=(Ve=Ke==null?void 0:Ke.split("*"))==null?void 0:Ve[0])==null?void 0:he.replaceAll(":","/"),groups:((ie=(N=Ke==null?void 0:Ke.split("*"))==null?void 0:N[1])==null?void 0:ie.split(":"))??[]}];let ca=(Oe=(De=(U=oe==null?void 0:oe.tableFilter)==null?void 0:U.replace("(",Kl))==null?void 0:De.split(Kl))==null?void 0:Oe[1];(ca==null?void 0:ca[(ca==null?void 0:ca.length)-1])===")"&&(ca=ca==null?void 0:ca.slice(0,(ca==null?void 0:ca.length)-1));let Ya=[];oe!=null&&oe.tableFilter&&((Fe=de.analyzeSplitToContent(oe==null?void 0:oe.tableFilter,","))==null||Fe.forEach(j=>{j!=null&&j.includes("@ShowHide=Hide")&&Ya.push("HideGroup=Yes")}));let R=(l==null?void 0:l.menuFilter)??[];return Array.isArray(R)||(R=R?[R]:[]),R=[...R,...Ya],{key:"Table",name:oe==null?void 0:oe.groupName,filter:oe==null?void 0:oe.tableFilter,tableColumns:oe==null?void 0:oe.tableColumns,quotePage:ze!==""?((ee=(Ba=(ea=ze==null?void 0:ze.replace("*",Kl))==null?void 0:ea.split(Kl))==null?void 0:Ba[0])==null?void 0:ee.replaceAll(":","/"))??"":void 0,quoteGroup:ze!==""?((Se=(sa=(ue=(ua=ze==null?void 0:ze.replace("*",Kl))==null?void 0:ua.split(Kl))==null?void 0:ue[1])==null?void 0:sa.split(":"))==null?void 0:Se.filter(j=>j!==""))??[]:[],menuFilter:R,relatedQuotes:Ke,fatherSyncContents:(oe==null?void 0:oe.fatherSyncContents)??[],sonSyncContents:(oe==null?void 0:oe.sonSyncContents)??[]}}},qd=async(a,l)=>{let n=[],r=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(o,s)=>{let h=[];o=o==null?void 0:o.map(async c=>{var p,m;if(h.push(c),((p=de.analyzeSplitToContent(a,"="))==null?void 0:p.length)<=2){if(((m=de.analyzeSplitToContent(a,"="))==null?void 0:m.length)!==0){const g=await Hd(de.analyzeSplitToContent(a,"="),r,s,c);h.push(g)}}else h.push(Ud(a,c))}),await Promise.all(o),n.push(h)}),await Promise.all(l),n};let Fi="/",Wd="$",gn="$R";const ec=a=>{var n,r,o;let l="";if((a==null?void 0:a.length)>1){let s=a==null?void 0:a.filter((h,c)=>c!==0);s=s==null?void 0:s.join(""),s=de.analyzerSplitToWord(s,")"),(s==null?void 0:s.length)!==1?(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"?s=s==null?void 0:s.join(""):s=(n=s==null?void 0:s.filter((h,c)=>c!==(s==null?void 0:s.length)-1))==null?void 0:n.join(""):s=s==null?void 0:s[0],l="("+s,((o=a==null?void 0:a[0])==null?void 0:o[((r=a==null?void 0:a[0])==null?void 0:r.length)-2])==="@"&&(l="@"+l)}return{filter:l}},ac=(a,l=[])=>{let n=(a==null?void 0:a.map(s=>{var h,c;return(c=s==null?void 0:s.key)==null?void 0:c.slice(1,(h=s==null?void 0:s.key)==null?void 0:h.length)}))??[],r=[];n==null||n.forEach(s=>{var h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me;if(s===""&&(s="算法库:通用算法"),s!=null&&s.includes(Wd)){let Me="",F=!0,te=de.analyzerSplitToWord(s,"(");(te==null?void 0:te.length)>1&&(Me="("+((h=de.analyzerSplitToWord(te==null?void 0:te[1],")"))==null?void 0:h[0]),((p=te==null?void 0:te[0])==null?void 0:p[((c=te==null?void 0:te[0])==null?void 0:c.length)-2])==="@"&&(Me="@"+Me));let Z=s;Z=Z==null?void 0:Z.replace(Me,""),Me=fn(Me),Me=(m=de.analyzeSplitToContent(Me,","))==null?void 0:m.map(ie=>((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),ie)),Me!=null&&Me.includes("@ShowHide=Hide")&&(F=!1);let se=(g=Z==null?void 0:Z.replace("$",gn))==null?void 0:g.split(gn),Be=se==null?void 0:se[1],Ve=se==null?void 0:se[0];Ve!=null&&Ve.includes("[")&&(Ve=(D=(u=Ve==null?void 0:Ve.replace("[",gn))==null?void 0:u.split(gn))==null?void 0:D[0],Be=Be+":["+((K=(k=(M=se==null?void 0:se[0])==null?void 0:M.replace("[",gn))==null?void 0:k.split(gn))==null?void 0:K[1])),Ve=(H=(I=Ve==null?void 0:Ve.replaceAll(":","/"))==null?void 0:I.replaceAll("{",""))==null?void 0:H.replaceAll("}",""),(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])!=="/"&&(Ve=Ve+"/"),Be=((L=Ve==null?void 0:Ve.split("/"))==null?void 0:L[0])+":"+Be;let N="";if(!(Be!=null&&Be.includes("[")))N=Be==null?void 0:Be.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:Me,fatherPath:Ve});else{let ie=(x=(E=Be==null?void 0:Be.replace("[",gn))==null?void 0:E.split(gn))==null?void 0:x[1];ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1),ie=(w=de.analyzeSplitToContent(ie,","))==null?void 0:w.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)),ie==null||ie.forEach(U=>{var De,Oe;N=((Oe=(De=Be==null?void 0:Be.replace("[",gn))==null?void 0:De.split(gn))==null?void 0:Oe[0])+U,N=N==null?void 0:N.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:Me,fatherPath:Ve})})}}else{let Me="",F=!0,te=de.analyzerSplitToWord(s,"(");(te==null?void 0:te.length)>1&&(Me=(b=ec(te))==null?void 0:b.filter);let Z=s;if(Z=Z==null?void 0:Z.replace(Me,""),(Me==null?void 0:Me[0])==="("){Me=Me==null?void 0:Me.slice(1,(Me==null?void 0:Me.length)-1);let Be=[];(_=de.analyzeSplitToContent(Me,","))==null||_.forEach(Ve=>{(Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])==="("&&(Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1)),(Ve==null?void 0:Ve[0])!=="@"&&(Ve="@"+Ve),Be.push(fn(Ve))}),Me=Be==null?void 0:Be.join(",")}else Me=fn(Me);Me=($=de.analyzeSplitToContent(Me,","))==null?void 0:$.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)),Me!=null&&Me.includes("@ShowHide=Hide")&&(F=!1),(Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])==="}"&&(Z=Z+":"),Z=(V=Z==null?void 0:Z.replaceAll("{",""))==null?void 0:V.replaceAll("}","");let se="";if(Z!=null&&Z.includes("[")){let Be=(ne=Z==null?void 0:Z.replace("[",gn))==null?void 0:ne.split(gn),Ve=Be==null?void 0:Be[1];Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1),(me=(X=de.analyzeSplitToContent(Ve,","))==null?void 0:X.map(he=>((he==null?void 0:he[(he==null?void 0:he.length)-1])===","&&(he=he==null?void 0:he.slice(0,(he==null?void 0:he.length)-1)),he)))==null||me.forEach(he=>{se=(Be==null?void 0:Be[0])+he,se=se==null?void 0:se.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:Me})})}else se=Z==null?void 0:Z.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:Me})}});let o=A.cloneDeep(r);return(l==null?void 0:l.length)>0&&(o=l),o=o==null?void 0:o.filter(s=>{var h,c,p,m;return!(s!=null&&s.fatherPath)&&((c=(h=s==null?void 0:s.path)==null?void 0:h.split(Fi))==null?void 0:c.length)>1&&((m=(p=s==null?void 0:s.path)==null?void 0:p.split(Fi))==null?void 0:m[1])===""}),o=o==null?void 0:o.map(s=>{var h;return s.path=(h=s.path)==null?void 0:h.replace(Fi,""),s.path}),(o==null?void 0:o.length)>0&&(r=r==null?void 0:r.map(s=>{var c,p,m,g,u,D,M;let h=o==null?void 0:o.find(k=>{var K;return(K=s==null?void 0:s.path)==null?void 0:K.includes(k)});return!(s!=null&&s.fatherPath)&&h&&!((c=s==null?void 0:s.path)!=null&&c.includes(Fi))&&!(o!=null&&o.find(k=>(s==null?void 0:s.path)===k))&&(s.path=h+Fi+((M=(m=(p=s==null?void 0:s.path)==null?void 0:p.split(h))==null?void 0:m[1])==null?void 0:M.slice(1,(D=(u=(g=s==null?void 0:s.path)==null?void 0:g.split(h))==null?void 0:u[1])==null?void 0:D.length))),s})),r},Kd=(a,l)=>ac([{key:a}],l),Gd=async(a,l)=>{const n=[],r=Kd(a==null?void 0:a.key,l);return r&&(r==null?void 0:r.length)>0&&(r==null||r.forEach(s=>{n.push([{key:"path",value:s==null?void 0:s.path,parentPath:(s==null?void 0:s.parentPath)??"",isShow:s==null?void 0:s.isShow,menuFilter:s==null?void 0:s.filter}])})),await qd(a==null?void 0:a.value,n)};let kl="$R",Hi="[Any]";const Yd=a=>{var h,c;let l={},r=a==null?void 0:a[0];(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),l.group=r;let o=a==null?void 0:a[1],s;return o!=null&&o.includes("{")?s=(c=(h=o==null?void 0:o.replaceAll("{",""))==null?void 0:h.replaceAll("}",""))==null?void 0:c.replaceAll(Hi,""):s=o==null?void 0:o.replaceAll(Hi,""),(s==null?void 0:s[0])==="$"&&(s=s==null?void 0:s.slice(1,s==null?void 0:s.length)),l.filter=s,l},Jd=a=>{var D,M,k,K,I,H;let l=[],n=[],r=[],o=[],s=[],h=[],c="",p=a==null?void 0:a[0];(p==null?void 0:p[0])==="*"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length));let m=de.analyzeSplitToContent(p,":");(D=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])!=="{"&&(L==null?void 0:L[0])!=="["))==null||D.forEach(L=>{var x,w,b;(L==null?void 0:L[(L==null?void 0:L.length)-1])===":"&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1));let E=de.analyzerSplitToWord(L,"(");if((E==null?void 0:E.length)>1){c=(x=ec(E))==null?void 0:x.filter;let _=L==null?void 0:L.replace(c,"");if(r.push(_),(c==null?void 0:c[0])==="("){c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1);let $=[];(w=de.analyzeSplitToContent(c,","))==null||w.forEach(V=>{(V==null?void 0:V[(V==null?void 0:V.length)-1])===","&&(V=V==null?void 0:V.slice(0,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])==="("&&(V=V==null?void 0:V.slice(1,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])!=="@"&&(V="@"+V),$.push(fn(V))}),c=$==null?void 0:$.join(",")}else c=fn(c);c=(b=de.analyzeSplitToContent(c,","))==null?void 0:b.map($=>(($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),$)),c!=null&&c.includes("@ShowHide=Hide")&&h.push(_),o=[...o,...c]}else r.push(E==null?void 0:E[0])});let g=(M=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="{"))==null?void 0:M[0],u=(k=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="["))==null?void 0:k[0];return l=Di(u??""),l!=null&&l.every(L=>Array.isArray(L))&&(l=[l]),(g==null?void 0:g[(g==null?void 0:g.length)-1])===":"&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),s=(K=de.analyzeSplitToContent(g,"@"))==null?void 0:K[1],s="@"+s,g=g==null?void 0:g.replace(s,""),s=fn(s),s=(I=de.analyzeSplitToContent(s,","))==null?void 0:I.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),(g==null?void 0:g[0])==="{"&&(g=g==null?void 0:g.slice(1,(g==null?void 0:g.length)-1)),g=(H=de.analyzeSplitToContent(g,","))==null?void 0:H.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),g==null||g.forEach((L,E)=>{var F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya;let x=[],w=[],b=!1,_,$=[],V=[],ne=[],X="Input",me=[],Me=[];if(L!=null&&L.includes("==")){_=(F=L==null?void 0:L.split("=="))==null?void 0:F[0];let aa=(te=L==null?void 0:L.split("=="))==null?void 0:te[1],ce="";((Z=de.analyzeSplitToContent(aa,"$"))==null?void 0:Z.length)>1&&((se=de.analyzeSplitToContent(aa,"$"))==null?void 0:se[0])!=="$"?(ce=(Be=de.analyzeSplitToContent(aa,"$"))==null?void 0:Be[0],ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)):((Ve=de.analyzeSplitToContent(aa,"}"))==null?void 0:Ve.length)>1&&(ce=(he=de.analyzeSplitToContent(aa,"}"))==null?void 0:he[1]);let ga=aa==null?void 0:aa.replace(ce,"");(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(N=de.analyzeSplitToContent(ce,","))==null||N.forEach(Je=>{var Ca;(Je==null?void 0:Je[0])!=="@"&&(Je="@"+Je),(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));let Na=fn(Je);(Ca=de.analyzeSplitToContent(Na,","))==null||Ca.forEach(la=>{(la==null?void 0:la[(la==null?void 0:la.length)-1])===","&&(la=la==null?void 0:la.slice(0,(la==null?void 0:la.length)-1)),x.push(la)})}),(ga==null?void 0:ga[0])==="$"&&(ga=ga==null?void 0:ga.slice(1,ga==null?void 0:ga.length));let Ae=(ie=ga==null?void 0:ga.replace("*",kl))==null?void 0:ie.split(kl);$=(U=Ae==null?void 0:Ae[0])==null?void 0:U.split(":"),V=(Oe=(De=de.analyzeSplitToContent(Ae==null?void 0:Ae[1],":"))==null?void 0:De.filter((Je,Na)=>{var Ca,la;return Na!==((la=(Ca=Ae==null?void 0:Ae[1])==null?void 0:Ca.split(":"))==null?void 0:la.length)-1}))==null?void 0:Oe.map(Je=>((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)),ne=(ea=(Fe=de.analyzeSplitToContent(Ae==null?void 0:Ae[1],":"))==null?void 0:Fe.filter((Je,Na)=>{var Ca,la;return Na===((la=(Ca=Ae==null?void 0:Ae[1])==null?void 0:Ca.split(":"))==null?void 0:la.length)-1}))==null?void 0:ea[0],ne=(ee=(Ba=ne==null?void 0:ne.replaceAll("{",""))==null?void 0:Ba.replaceAll("}",""))==null?void 0:ee.split(":"),X="Select"}else if(((ua=de.analyzeSplitToContent(L,"="))==null?void 0:ua.length)>1)if(X="Select",_=(sa=(ue=L==null?void 0:L.replace("=",kl))==null?void 0:ue.split(kl))==null?void 0:sa[0],!(L!=null&&L.includes("If")))me=(oe=(Se=L==null?void 0:L.replace("=",kl))==null?void 0:Se.split(kl))==null?void 0:oe[1],me=me==null?void 0:me.split("||");else{let aa=(Ke=(ze=L==null?void 0:L.replace("=",kl))==null?void 0:ze.split(kl))==null?void 0:Ke[1];Me=(ca=de.analyzeSplitToContent(aa,")"))==null?void 0:ca.filter(ce=>!(ce!=null&&ce.includes("If"))),Me=Me==null?void 0:Me.map(ce=>((ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),ce=ce==null?void 0:ce.split("||"),ce)),w=(Ya=de.analyzeSplitToContent(aa,")"))==null?void 0:Ya.filter(ce=>ce==null?void 0:ce.includes("If")),w=w==null?void 0:w.map(ce=>((ce==null?void 0:ce[0])==="|"&&(ce=ce==null?void 0:ce.slice(2,ce==null?void 0:ce.length)),(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(ce==null?void 0:ce[0])!=="@"&&(ce="@"+ce),ce))}else if(((R=de.analyzeSplitToContent(L,"@"))==null?void 0:R.length)>1){_=(j=de.analyzeSplitToContent(L,"@"))==null?void 0:j[0],(_==null?void 0:_[(_==null?void 0:_.length)-1])==="@"&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1));let aa="@"+((J=de.analyzeSplitToContent(L,"@"))==null?void 0:J[1]);aa=fn(aa),x=(ve=de.analyzeSplitToContent(aa,","))==null?void 0:ve.map(ce=>((ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===","&&(ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)),ce)),x!=null&&x.find(ce=>ce==null?void 0:ce.includes("@Type"))&&(X=(ya=(pe=x==null?void 0:x.find(ce=>ce==null?void 0:ce.includes("@Type")))==null?void 0:pe.split("="))==null?void 0:ya[1])}else _=L;x!=null&&x.includes("@ShowHide=Hide")&&(b=!0),n.push({prop:_,label:_,value:"",menuPath:$,groups:V,columns:ne,type:X,options:me,allContents:Me,filters:x,width:g==null?void 0:g.length,isFormColHidden:b,filterContents:w})}),{groupName:r,groupFilters:o,formContents:n,contents:l,filter:s,hideContents:h}},Di=a=>{var r,o;if(!a||typeof a!="string")return[];let l=[],n=a.slice(1,(a==null?void 0:a.length)-1);if((n==null?void 0:n[0])!=="[")(r=de.analyzeSplitToContent(n,","))==null||r.forEach(s=>{(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)),l.push(s??"")});else{let s=[];(o=de.analyzeSplitToContent(n,","))==null||o.forEach(h=>{(h==null?void 0:h[(h==null?void 0:h.length)-1])===","&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),s.push(Di(h))}),l=s}return l},ft=(a,l)=>{var H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa;let n,r=[],o=[],s=[],h=[],c=[],p=[],m=[],g="Input",u,D="",M="",k="",K=[],I="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(n=(H=a==null?void 0:a.split("=="))==null?void 0:H[0],u=(L=a==null?void 0:a.split("=="))==null?void 0:L[0],g="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((w=(x=(E=a==null?void 0:a.replace("=",kl))==null?void 0:E.split(kl))==null?void 0:x[1])!=null&&w.includes("If")))if(n=de.analyzeSplitToContent(a,"@"),n=n==null?void 0:n[0],(n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=(_=(b=n==null?void 0:n.replace("=",kl))==null?void 0:b.split(kl))==null?void 0:_[0],n!=null&&n.includes("&")&&(n=(V=($=n==null?void 0:n.replace("&",kl))==null?void 0:$.split(kl))==null?void 0:V[0]),u=n,((ne=de.analyzeSplitToContent(a,"@"))==null?void 0:ne.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Qe=(X=de.analyzeSplitToContent(a,"@"))==null?void 0:X[1];if((Qe==null?void 0:Qe[0])!=="@"&&(Qe="@"+Qe),Qe=fn(Qe),M=Qe,M!=null&&M.includes("@Type")){let He=de.analyzeSplitToContent(M,",");He=He==null?void 0:He.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)),He=(me=He==null?void 0:He.filter(qe=>qe==null?void 0:qe.includes("@Type")))==null?void 0:me[0],g=(Me=He==null?void 0:He.split("="))==null?void 0:Me[1]}else g="Input"}}else if(a!=null&&a.includes("||")){let Qe=[];r=(Z=(te=(F=de.analyzeSplitToContent(a,"="))==null?void 0:F[1])==null?void 0:te.split("||"))==null?void 0:Z.map(qe=>{var ke,da,La,dl;let fe=qe;if(fe!=null&&fe.includes("@")){let Ol="@"+((da=(ke=fe==null?void 0:fe.replace("@",kl))==null?void 0:ke.split(kl))==null?void 0:da[1]);fe=(dl=(La=fe==null?void 0:fe.replace("@",kl))==null?void 0:La.split(kl))==null?void 0:dl[0],Ol=ni(Ol),Qe.push(Ol)}return{label:fe==null?void 0:fe.replaceAll("'",""),value:fe==null?void 0:fe.replaceAll("'","")}}),(Qe==null?void 0:Qe.length)>0&&(M="("+(Qe==null?void 0:Qe.join("||"))+")");let He=(se=de.analyzeSplitToContent(a,"="))==null?void 0:se[0];if(He!=null&&He.includes("@")){(He==null?void 0:He[(He==null?void 0:He.length)-1])==="="&&(He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1));let qe=(Be=de.analyzeSplitToContent(He,"@"))==null?void 0:Be[1];qe="@"+qe,qe=ni(qe),M=M===""?qe:qe+","+M}}else g="Input",D=(N=(he=(Ve=a==null?void 0:a.replace("=",kl))==null?void 0:Ve.split(kl))==null?void 0:he[1])==null?void 0:N.replaceAll("'","");else if((U=(ie=de.analyzeSplitToContent(a,"="))==null?void 0:ie[1])!=null&&U.includes("||")){let Qe=(De=de.analyzeSplitToContent(a,"="))==null?void 0:De[0];if((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!=null&&Qe.includes("@")){let ke=(Oe=de.analyzeSplitToContent(Qe,"@"))==null?void 0:Oe[1];ke="@"+ke,M=ni(ke),n=(ee=(Fe=de.analyzeSplitToContent(Qe,"@"))==null?void 0:Fe[0])==null?void 0:ee.slice(0,((Ba=(ea=de.analyzeSplitToContent(Qe,"@"))==null?void 0:ea[0])==null?void 0:Ba.length)-1),u=(Se=(ua=de.analyzeSplitToContent(Qe,"@"))==null?void 0:ua[0])==null?void 0:Se.slice(0,((sa=(ue=de.analyzeSplitToContent(Qe,"@"))==null?void 0:ue[0])==null?void 0:sa.length)-1)}else n=Qe,u=Qe;let He=(oe=de.analyzeSplitToContent(a,"="))==null?void 0:oe[1];He=de.analyzeSplitToContent(He,")");let qe=He==null?void 0:He.filter(ke=>!(ke!=null&&ke.includes("If")));qe==null||qe.forEach(ke=>{(ke==null?void 0:ke[0])==="("&&(ke=ke==null?void 0:ke.slice(1,(ke==null?void 0:ke.length)-1)),o==null||o.push(ke==null?void 0:ke.split("||"))});let fe=He==null?void 0:He.filter(ke=>ke==null?void 0:ke.includes("If"));fe=fe==null?void 0:fe.map(ke=>((ke==null?void 0:ke[0])==="|"&&(ke==null?void 0:ke[1])==="|"&&(ke=ke==null?void 0:ke.slice(2,ke==null?void 0:ke.length)),(ke==null?void 0:ke[0])==="("&&(ke=ke==null?void 0:ke.slice(1,(ke==null?void 0:ke.length)-1)),(ke==null?void 0:ke[0])!=="@"&&(ke="@"+ke),ke)),s=fe}else{let Qe=a==null?void 0:a.split("=="),He=(ze=Qe==null?void 0:Qe.filter(qe=>(qe==null?void 0:qe.includes("$"))&&(qe==null?void 0:qe[0])!=="{"))==null?void 0:ze[0];if(He&&!(He!=null&&He.includes("&"))){let qe=(Ke=He==null?void 0:He.replace("*",kl))==null?void 0:Ke.split(kl),fe=(qe==null?void 0:qe[0])===""?l==null?void 0:l.value:qe==null?void 0:qe[0];(fe==null?void 0:fe[0])==="("&&(fe=(ca=de.analyzeSplitToContent(fe,")"))==null?void 0:ca[1]),fe=(R=(Ya=fe==null?void 0:fe.replaceAll("{",""))==null?void 0:Ya.replaceAll("}",""))==null?void 0:R.replaceAll(Hi,""),(fe==null?void 0:fe[0])==="$"&&(fe=(j=fe==null?void 0:fe.slice(1,fe==null?void 0:fe.length))==null?void 0:j.replaceAll(":","/")),h=fe==null?void 0:fe.split("/");let ke=(ve=(J=qe==null?void 0:qe[1])==null?void 0:J.replace("{",kl))==null?void 0:ve.split(kl),da=ke==null?void 0:ke[0];(da==null?void 0:da[(da==null?void 0:da.length)-1])===":"&&(da=da==null?void 0:da.slice(0,(da==null?void 0:da.length)-1)),c=da==null?void 0:da.split(":"),p=(ce=(aa=(ya=(pe=ke==null?void 0:ke[1])==null?void 0:pe.replace("}",kl))==null?void 0:ya.split(kl))==null?void 0:aa[0])==null?void 0:ce.split(":");let La="";((ga=de.analyzeSplitToContent(He,")"))==null?void 0:ga.length)>1&&(La=(Ae=de.analyzeSplitToContent(He,")"))==null?void 0:Ae[0]),La&&La!==""&&((La==null?void 0:La[0])!=="@"&&(La="@"+La),M=ni(La))}if(Qe!=null&&Qe.some(qe=>(qe==null?void 0:qe[0])==="&")){let qe=(Je=Qe==null?void 0:Qe.filter(da=>(da==null?void 0:da[0])==="&"))==null?void 0:Je[0];(qe==null?void 0:qe[0])==="&"&&(qe=qe==null?void 0:qe.slice(1,qe==null?void 0:qe.length)),k=(Ca=(Na=qe==null?void 0:qe.replace("(",kl))==null?void 0:Na.split(kl))==null?void 0:Ca[0];let fe=(la=de.analyzeSplitToContent(qe,")"))==null?void 0:la[0];fe=(va=($a=fe==null?void 0:fe.replace("(",kl))==null?void 0:$a.split(kl))==null?void 0:va[1],fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1),(fe==null?void 0:fe[0])==="{"&&(fe=fe==null?void 0:fe.slice(1,fe==null?void 0:fe.length)),(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)),K=fe==null?void 0:fe.split(",");let ke=(W=de.analyzeSplitToContent(qe,")"))==null?void 0:W[1];ke&&ke!==""&&(I=ni(ke))}else if(!He&&((Te=Qe==null?void 0:Qe.filter(qe=>(qe==null?void 0:qe[0])==="{"))==null?void 0:Te.length)>0){let qe=Qe==null?void 0:Qe[(Qe==null?void 0:Qe.length)-1];qe=qe==null?void 0:qe.slice(1,(qe==null?void 0:qe.length)-1),qe=de.analyzeSplitToContent(qe,","),qe=qe==null?void 0:qe.map(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)),qe=qe==null?void 0:qe.map(fe=>{var ke,da,La,dl;if(fe=fe==null?void 0:fe.replaceAll("$",""),fe!=null&&fe.includes("{")){let Ol="";fe=fe==null?void 0:fe.replaceAll("{","");let sl=fe==null?void 0:fe.split("}");Ol=((da=(ke=sl==null?void 0:sl[0])==null?void 0:ke.split(":"))==null?void 0:da[0])+":"+(sl==null?void 0:sl[1]),fe=Ol,fe=fe+":"}if(fe!=null&&fe.includes(Hi)){let Ol="",sl=fe==null?void 0:fe.split(Hi);Ol=((dl=(La=sl==null?void 0:sl[0])==null?void 0:La.split(":"))==null?void 0:dl[0])+":"+(sl==null?void 0:sl[1]),fe=Ol,fe=fe+":"}return fe=fe==null?void 0:fe.replaceAll(":","/"),fe}),m=qe}else!((Ie=Qe==null?void 0:Qe[1])!=null&&Ie.includes("$"))&&((we=Qe==null?void 0:Qe[1])==null?void 0:we[0])!=="("&&p.push(Qe==null?void 0:Qe[1])}else n=(wa=a==null?void 0:a.split("&"))==null?void 0:wa[0],u=(oa=a==null?void 0:a.split("&"))==null?void 0:oa[0];return{label:n,prop:u,options:r,allContents:o,filterContents:s,menus:h,groups:c,words:p,align:"center",formType:g,filter:M,functionName:k,functionRelatedWords:K,calculatorFilter:I,relatedPages:m,value:D}},Co=(a,l)=>{var r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z;let n=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((h=(s=(o=(r=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:r.replace(":",kl))==null?void 0:o.split(kl))==null?void 0:s[0])!=null&&h.includes(","))){let se=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),Be=(c=se==null?void 0:se.replace(":",kl))==null?void 0:c.split(kl);if(((p=de.analyzeSplitToContent(Be==null?void 0:Be[1],"="))==null?void 0:p.length)===1){let Ve=Be==null?void 0:Be[0],he=[];(u=de.analyzeSplitToContent((g=Be==null?void 0:Be[1])==null?void 0:g.slice(1,((m=Be==null?void 0:Be[1])==null?void 0:m.length)-1),","))==null||u.forEach(N=>{var ie,U;((ie=de.analyzeSplitToContent(N,"="))==null?void 0:ie.length)>1?((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),he=[...he,...Co(N,l)]):((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),he.push((U=Co(N,l))==null?void 0:U[0]))}),n==null||n.push({label:Ve,prop:Ve,children:he,align:"center"})}else{let Ve=[];if(((D=de.analyzeSplitToContent(se,"="))==null?void 0:D.length)>=2){let N=(M=de.analyzeSplitToContent(se,"="))==null?void 0:M[1],ie=(k=de.analyzeSplitToContent(N,"/"))==null?void 0:k.map(U=>((U==null?void 0:U[(U==null?void 0:U.length)-1])==="/"&&(U=U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1)),U));Ve=ie==null?void 0:ie.map(U=>(U=Di(U),U))}let he=(x=(E=(L=(H=(I=(K=se==null?void 0:se.replace("{",kl))==null?void 0:K.split(kl))==null?void 0:I[1])==null?void 0:H.replace("}",kl))==null?void 0:L.split(kl))==null?void 0:E[0])==null?void 0:x.split(",");he==null||he.forEach((N,ie)=>{(Ve==null?void 0:Ve.length)>0&&ie===0?n==null||n.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:Ve==null?void 0:Ve.map(U=>{let De={};return he==null||he.forEach((Oe,Fe)=>{De[Oe]=U==null?void 0:U[Fe]}),De}),options:Ve==null?void 0:Ve.map(U=>({label:U==null?void 0:U[0],value:U==null?void 0:U[0]})),mainKey:!0}):n==null||n.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((w=de.analyzeSplitToContent(a,"="))==null?void 0:w.length)===2&&((_=(b=de.analyzeSplitToContent(a,"="))==null?void 0:b[1])==null?void 0:_[0])==="["){let se=[];if((($=de.analyzeSplitToContent(a,"="))==null?void 0:$.length)>=2){let Ve=(V=de.analyzeSplitToContent(a,"="))==null?void 0:V[1],he=(X=(ne=de.analyzeSplitToContent(Ve,"|"))==null?void 0:ne.filter(N=>N!=="|"))==null?void 0:X.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));se=he==null?void 0:he.map(N=>(N=Di(N),N))}let Be=(Me=(me=a==null?void 0:a.replace("}",kl))==null?void 0:me.split(kl))==null?void 0:Me[0];Be=(F=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length))==null?void 0:F.split(","),Be==null||Be.forEach((Ve,he)=>{(se==null?void 0:se.length)>0&&he===0?n==null||n.push({label:Ve,prop:Ve,align:"center",formType:"Select",relatedContents:se==null?void 0:se.map(N=>{let ie={};return Be==null||Be.forEach((U,De)=>{ie[U]=N==null?void 0:N[De]}),ie}),options:se==null?void 0:se.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):n==null||n.push({label:Ve,prop:Ve,align:"center"})})}else(te=de.analyzeSplitToContent(a,","))==null||te.forEach(se=>{var Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va;if((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?void 0:se[0])==="{"){let W=de.analyzeSplitToContent(se,"="),Te=W==null?void 0:W[(W==null?void 0:W.length)-1],Ie=[],we=[],wa=[],oa="",Qe="",He=[],qe=[],fe=(Be=Te==null?void 0:Te.replace("*",kl))==null?void 0:Be.split(kl),ke=(fe==null?void 0:fe[0])===""?l==null?void 0:l.value:fe==null?void 0:fe[0];ke=de.analyzeSplitToContent(ke,")");let da="";if((ke==null?void 0:ke.length)>1&&((Ve=ke==null?void 0:ke[0])==null?void 0:Ve[0])!=="&"&&(da=ke==null?void 0:ke[0],(da==null?void 0:da[0])!=="@"&&(da="@"+da),Qe=da??""),ke=(he=ke==null?void 0:ke.filter(sl=>(sl==null?void 0:sl[0])==="$"))==null?void 0:he[0],((N=de.analyzeSplitToContent(ke,"}"))==null?void 0:N.length)>1&&((U=(ie=de.analyzeSplitToContent(ke,"}"))==null?void 0:ie[1])==null?void 0:U[0])==="("&&(da=(De=de.analyzeSplitToContent(ke,"}"))==null?void 0:De[1],(da==null?void 0:da[0])!=="@"&&(da="@"+da),Qe!==""&&(Qe=Qe+","),Qe=Qe+da),(Oe=ke==null?void 0:ke.slice(1,(ke==null?void 0:ke.length)-1))!=null&&Oe.includes("$")||(ke=(Fe=de.analyzeSplitToContent(ke,"}"))==null?void 0:Fe[0]),(ke==null?void 0:ke[0])==="$"&&(ke=(ea=ke==null?void 0:ke.replace("{",""))==null?void 0:ea.replace("}",":"),ke=(Ba=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length))==null?void 0:Ba.replaceAll(":","/")),ke!=null&&ke.includes("$")){let sl=(ee=ke==null?void 0:ke.split("$"))==null?void 0:ee[0];sl=(ua=sl==null?void 0:sl.split("/"))==null?void 0:ua[0],ke=sl+"/"+((ue=ke==null?void 0:ke.split("$"))==null?void 0:ue[1])+"/"}Ie=(ke==null?void 0:ke.split("/"))??[];let La=(Se=(sa=fe==null?void 0:fe[1])==null?void 0:sa.replace("{",kl))==null?void 0:Se.split(kl);if((Ke=(ze=(oe=fe==null?void 0:fe[1])==null?void 0:oe.split("(@"))==null?void 0:ze[0])!=null&&Ke.includes("&&")||(R=(Ya=(ca=fe==null?void 0:fe[1])==null?void 0:ca.split("@"))==null?void 0:Ya[0])!=null&&R.includes("&&")){let sl=(j=fe==null?void 0:fe[1])!=null&&j.includes("(@")?(pe=(ve=(J=fe==null?void 0:fe[1])==null?void 0:J.split("(@"))==null?void 0:ve[0])==null?void 0:pe.split("&&"):(ce=(aa=(ya=fe==null?void 0:fe[1])==null?void 0:ya.split("@"))==null?void 0:aa[0])==null?void 0:ce.split("&&");He=sl==null?void 0:sl.map(Fa=>{var Vl,zl;return(Fa==null?void 0:Fa[0])==="*"&&(Fa=Fa==null?void 0:Fa.slice(1,Fa==null?void 0:Fa.length)),Fa=(zl=(Vl=Fa==null?void 0:Fa.replace("{",kl))==null?void 0:Vl.split(kl))==null?void 0:zl[0],(Fa==null?void 0:Fa[(Fa==null?void 0:Fa.length)-1])===":"&&(Fa=Fa==null?void 0:Fa.slice(0,(Fa==null?void 0:Fa.length)-1)),Fa=Fa==null?void 0:Fa.split(":"),Fa});let Fl=[];sl==null||sl.forEach((Fa,Vl)=>{var zl,Aa;(Fa==null?void 0:Fa[0])==="*"&&(Fa=Fa==null?void 0:Fa.slice(1,Fa==null?void 0:Fa.length)),Fa=(Aa=(zl=Fa==null?void 0:Fa.replace("{",kl))==null?void 0:zl.split(kl))==null?void 0:Aa[1],(Fa==null?void 0:Fa[(Fa==null?void 0:Fa.length)-1])==="}"&&(Fa=Fa==null?void 0:Fa.slice(0,(Fa==null?void 0:Fa.length)-1)),Fa=Fa==null?void 0:Fa.split(","),Fl.push(Vl===0?(Fa==null?void 0:Fa.length)-1:Fa==null?void 0:Fa.length),qe=[...qe,...Fa]}),Fl=(ga=de.prefixSum(Fl))==null?void 0:ga.map(Fa=>Fa==null?void 0:Fa.total),He=He==null?void 0:He.map((Fa,Vl)=>({number:Fl==null?void 0:Fl[Vl],contents:Fa}))}let dl=La==null?void 0:La[0];(dl==null?void 0:dl[(dl==null?void 0:dl.length)-1])===":"&&(dl=dl==null?void 0:dl.slice(0,(dl==null?void 0:dl.length)-1)),we=(dl==null?void 0:dl.split(":"))??[],wa=((Ca=(Na=(Je=(Ae=La==null?void 0:La[1])==null?void 0:Ae.replace("}",kl))==null?void 0:Je.split(kl))==null?void 0:Na[0])==null?void 0:Ca.split(","))??[];let Ol=($a=W==null?void 0:W[0])==null?void 0:$a.slice(1,((la=W==null?void 0:W[0])==null?void 0:la.length)-2);Qe&&Qe!==""&&(oa=ni(Qe)),(va=Ol==null?void 0:Ol.split(","))==null||va.forEach((sl,Fl)=>{var Fa,Vl,zl,Aa,rl;((Fa=de.analyzeSplitToContent(sl,"@"))==null?void 0:Fa.length)>1&&(sl=(Vl=de.analyzeSplitToContent(sl,"@"))==null?void 0:Vl[0],(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))),n.push({label:sl,prop:sl,align:"center",menus:Ie,groups:(He==null?void 0:He.length)===0?we:(zl=He==null?void 0:He.find(nl=>(nl==null?void 0:nl.number)>=Fl))==null?void 0:zl.contents,words:(qe==null?void 0:qe.length)===0?(Aa=wa==null?void 0:wa[Fl])==null?void 0:Aa.split(":"):(rl=qe==null?void 0:qe[Fl])==null?void 0:rl.split(":"),formType:(Ie==null?void 0:Ie.length)>0?"Select":"Input",mainKey:Fl===0,filter:oa,isMainPath:(He==null?void 0:He.findIndex(nl=>(nl==null?void 0:nl.number)>=Fl))===0})})}else n.push({label:se,prop:se,align:"center"})});else{let se=(Z=de.analyzeSplitToContent(a,","))==null?void 0:Z.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));se==null||se.forEach(Be=>{n.push(ft(Be,l))})}return n},Xd=(a,l)=>{var h,c,p,m,g;let n=a;if(!a)return;let r="";((h=de.analyzeSplitToContent(a,"}"))==null?void 0:h.length)>1&&(n=(c=de.analyzeSplitToContent(a,"}"))==null?void 0:c[0],r=(p=de.analyzeSplitToContent(a,"}"))==null?void 0:p[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let o=[],s=[];return o.push({label:"排序",prop:"sort"}),o.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=de.analyzeSplitToContent(n,","))==null||m.forEach(u=>{var D;(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?void 0:u[0])==="{"?(D=Co(u,l))==null||D.forEach(M=>{o.push(M)}):o.push(ft(u,l))}),o!=null&&o.some(u=>{var D;return(D=u==null?void 0:u.prop)==null?void 0:D.includes("@")})&&(o=o==null?void 0:o.filter(u=>{var D;return!((D=u==null?void 0:u.prop)!=null&&D.includes("@"))})),r!==""&&((r==null?void 0:r[0])=="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),(g=de.analyzeSplitToContent(r,","))==null||g.forEach(u=>{var D;(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?void 0:u[0])==="{"?(D=Co(u,l))==null||D.forEach(M=>{s.push(M)}):s.push(ft(u,l))})),{columns:o,secondColumns:s}},fn=a=>{var l,n,r,o,s;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let h=(n=(l=a==null?void 0:a.replace("(",kl))==null?void 0:l.split(kl))==null?void 0:n[1],c=(o=(r=a==null?void 0:a.replace("(",kl))==null?void 0:r.split(kl))==null?void 0:o[0];return h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1),h=(s=de.analyzeSplitToContent(h,","))==null?void 0:s.map(p=>((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)),(p==null?void 0:p[0])==="("&&(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1)),c+p)),h=h==null?void 0:h.join(","),a!=null&&a.includes("@Quote")&&(h!=null&&h.includes("@QuoteType")||(h=h===""?h+"@QuoteType=Manual":h+",@QuoteType=Manual"),h!=null&&h.includes("@QuoteSonSync")||(h=h===""?h+"@QuoteSonSync=No":h+",@QuoteSonSync=No"),h!=null&&h.includes("@QuoteFatherSync")||(h=h===""?h+"@QuoteFatherSync=Yes":h+",@QuoteFatherSync=Yes")),h}},is=a=>{let l=a==null?void 0:a.map(n=>{var r,o;return{menus:n==null?void 0:n.menus,content:((r=n==null?void 0:n.menus)==null?void 0:r.join("/"))+kl+((o=n==null?void 0:n.groups)==null?void 0:o.join("/"))}});return l=l==null?void 0:l.filter(n=>{var r;return(n==null?void 0:n.menus)&&((r=n==null?void 0:n.menus)==null?void 0:r.length)>0}),l=l==null?void 0:l.map(n=>n==null?void 0:n.content),l=[...new Set(l)],l=l==null?void 0:l.map(n=>{var r,o;return{menus:(r=n==null?void 0:n.split(kl))==null?void 0:r[0],groups:((o=n==null?void 0:n.split(kl))==null?void 0:o[1])??[]}}),l},os=a=>{var n;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(n=de.analyzeSplitToContent(l,","))==null?void 0:n.map(r=>((r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])!=="@"&&(r="@"+r),r=fn(r),r)),l==null?void 0:l.join(",")},lc=(a,l,n="")=>{var L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va;let r=[],o=[],s=[],h="",c="",p="",m=[],g=[],u=[],D="";if(((L=a==null?void 0:a[0])==null?void 0:L[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((w=a==null?void 0:a[0])==null?void 0:w[0])!=="*"&&((b=a==null?void 0:a[0])==null?void 0:b[0])!=="$"&&(h=(_=de.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:_[0],(h==null?void 0:h[0])!=="@"&&(h="@"+h),h=ni(h),p=($=de.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[1],(p==null?void 0:p[0])==="$"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length)),p=p==null?void 0:p.replaceAll(":","/"));let k=de.analyzeSplitToContent(a==null?void 0:a[0],":");if(r=(V=k==null?void 0:k.filter(W=>(W==null?void 0:W[0])!=="{"&&(W==null?void 0:W[0])!=="["))==null?void 0:V.join(""),c=(ne=a==null?void 0:a[0])==null?void 0:ne.replace(r,""),(r==null?void 0:r[0])==="("&&(r=""),D=(X=k==null?void 0:k.filter(W=>(W==null?void 0:W[0])!=="["))==null?void 0:X.join(""),D=(me=a==null?void 0:a[0])==null?void 0:me.replace(D,""),c=c==null?void 0:c.replace(D,""),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),((Me=de.analyzeSplitToContent(c,"@"))==null?void 0:Me.length)>1&&(h=(F=de.analyzeSplitToContent(c,"@"))==null?void 0:F[1],(h==null?void 0:h[(h==null?void 0:h.length)-1])===":"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),h="@"+h,h=fn(h),c=(te=de.analyzeSplitToContent(c,"@"))==null?void 0:te[0],c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),((Z=de.analyzeSplitToContent(r,"@"))==null?void 0:Z.length)>1){h!==""&&(h=h+",");let W=(se=de.analyzeSplitToContent(r,"@"))==null?void 0:se[1];W="@"+W,W=fn(W),h=h+W,r=(Be=de.analyzeSplitToContent(r,"@"))==null?void 0:Be[0]}if((r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=r===""?[]:r==null?void 0:r.split(":"),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),n!==""){let W=(Ve=de.analyzeSplitToContent(n,")"))==null?void 0:Ve[0],Te=(he=de.analyzeSplitToContent(n,"@"))==null?void 0:he[1];p=(ie=(N=de.analyzeSplitToContent(n,"@"))==null?void 0:N[0])==null?void 0:ie.replace(W,""),(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)),W=os(W),Te=os(Te);let Ie=W??"";if(Ie!==""&&(Ie=Ie+","),Ie=Ie+Te,(Ie==null?void 0:Ie[(Ie==null?void 0:Ie.length)-1])===","&&(Ie=Ie==null?void 0:Ie.slice(0,(Ie==null?void 0:Ie.length)-1)),Ie!==""&&h!==""&&(h=h+","),h=h+Ie,(p==null?void 0:p[0])==="$"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length)),p=(U=de.analyzeSplitToContent(p,":"))==null?void 0:U.filter((we,wa)=>{var oa;return!((we==null?void 0:we[0])==="{"&&wa===((oa=de.analyzeSplitToContent(p,":"))==null?void 0:oa.length)-1)}),p=p==null?void 0:p.join(""),(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)),h!=null&&h.includes("@Sync")||(h=h===""?h+"@Sync=(Yes,Yes)":h+",@Sync=(Yes,Yes)"),p!=null&&p.includes("$")){let we=(Oe=(De=p==null?void 0:p.replace("*",kl))==null?void 0:De.split(kl))==null?void 0:Oe[1],wa=(ea=(Fe=p==null?void 0:p.replace("*",kl))==null?void 0:Fe.split(kl))==null?void 0:ea[0];wa=wa==null?void 0:wa.split("$"),wa=((ee=(Ba=wa==null?void 0:wa[0])==null?void 0:Ba.split(":"))==null?void 0:ee[0])+":"+(wa==null?void 0:wa[1])+":",p=wa+"*"+we}else p=(ua=p==null?void 0:p.replaceAll("{",""))==null?void 0:ua.replaceAll("}","")}h!==""&&h&&(h="("+h+")"),h=p+h,((ue=de.analyzeSplitToContent(c,"}"))==null?void 0:ue.length)>1&&(c=(sa=de.analyzeSplitToContent(c,"}"))==null?void 0:sa.filter(W=>(W==null?void 0:W[0])!=="@"),c=c==null?void 0:c.join(""));let K=Xd(c,l);s=c===""?[]:(K==null?void 0:K.columns)??[],u=de.getColumnChild(s);let I=de.getColumnChild(s);s!=null&&s.some(W=>{var Te;return Array.isArray(W==null?void 0:W.children)&&((Te=W==null?void 0:W.children)==null?void 0:Te.length)>0})&&(s=[s]),o=D?Di(D):[],!(o!=null&&o.every(W=>Array.isArray(W)))&&(o==null?void 0:o.length)>0&&(o=[o]),(o==null?void 0:o.length)>0&&(Array.isArray(o==null?void 0:o[0])&&((Se=o==null?void 0:o[0])!=null&&Se.every(W=>Array.isArray(W)))?o=o==null?void 0:o.map((W,Te)=>(W=W.map((Ie,we)=>(Ie.unshift("{}"),Ie.unshift((we+1).toString()),Ie)),W)):o=o==null?void 0:o.map((W,Te)=>(W.unshift("{}"),W.unshift((Te+1).toString()),W))),K!=null&&K.secondColumns&&((oe=K==null?void 0:K.secondColumns)==null?void 0:oe.length)>0&&((o==null?void 0:o.length)>0?o=o==null?void 0:o.map((W,Te)=>{var Ie,we;return Array.isArray(W==null?void 0:W[0])?W=W==null?void 0:W.map((wa,oa)=>{var Qe,He;return wa.unshift((He=(Qe=K==null?void 0:K.secondColumns)==null?void 0:Qe[oa])==null?void 0:He.prop),wa}):W.unshift((we=(Ie=K==null?void 0:K.secondColumns)==null?void 0:Ie[Te])==null?void 0:we.prop),W}):o=(ze=K==null?void 0:K.secondColumns)==null?void 0:ze.map((W,Te)=>(W=[W==null?void 0:W.label],W.push(Te),W)),s.unshift({label:"",prop:"disabled",sortable:!1})),u=u==null?void 0:u.map(W=>{var Te,Ie;return{menus:W==null?void 0:W.menus,content:((Te=W==null?void 0:W.menus)==null?void 0:Te.join("/"))+kl+((Ie=W==null?void 0:W.groups)==null?void 0:Ie.join("/"))}});let H=[];if(((ca=(Ke=h==null?void 0:h.replace("(",kl))==null?void 0:Ke.split(kl))==null?void 0:ca[0])!==""&&(H=(R=(Ya=h==null?void 0:h.replace("(",kl))==null?void 0:Ya.split(kl))==null?void 0:R[0],H=[H],H=H==null?void 0:H.map(W=>{var Ie,we,wa;let Te=W==null?void 0:W.split("*");return{menus:(Ie=Te==null?void 0:Te[0])==null?void 0:Ie.split(":"),content:((we=Te==null?void 0:Te[0])==null?void 0:we.replaceAll(":","/"))+kl+((wa=Te==null?void 0:Te[1])==null?void 0:wa.replaceAll(":","/"))}}),u=[...u,...H]),u=u==null?void 0:u.filter(W=>{var Te;return(W==null?void 0:W.menus)&&((Te=W==null?void 0:W.menus)==null?void 0:Te.length)>0}),u=u==null?void 0:u.map(W=>W==null?void 0:W.content),u=[...new Set(u)],u=u==null?void 0:u.map(W=>{var Te,Ie;return{menus:(Te=W==null?void 0:W.split(kl))==null?void 0:Te[0],groups:((Ie=W==null?void 0:W.split(kl))==null?void 0:Ie[1])??[]}}),m=I==null?void 0:I.filter(W=>{var Te;return(W==null?void 0:W.filter)&&((Te=W==null?void 0:W.filter)==null?void 0:Te.includes("@Sync"))}),(m==null?void 0:m.length)>0&&(m=m==null?void 0:m.filter(W=>{var Te,Ie,we,wa;return(wa=(we=(Ie=(Te=de.analyzeSplitToContent(W==null?void 0:W.filter,","))==null?void 0:Te.find(oa=>oa==null?void 0:oa.includes("@Sync")))==null?void 0:Ie.split(","))==null?void 0:we[0])==null?void 0:wa.includes("Yes")}),m=is(m)),g=I==null?void 0:I.filter(W=>{var Te;return(W==null?void 0:W.filter)&&((Te=W==null?void 0:W.filter)==null?void 0:Te.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(W=>{var Te,Ie,we,wa;return(wa=(we=(Ie=(Te=de.analyzeSplitToContent(W==null?void 0:W.filter,","))==null?void 0:Te.find(oa=>oa==null?void 0:oa.includes("@Sync")))==null?void 0:Ie.split(","))==null?void 0:we[1])==null?void 0:wa.includes("Yes")}),g=is(g)),h!==""&&(h!=null&&h.includes("@Sync"))&&(h==null?void 0:h[0])!=="("){let W=(j=h==null?void 0:h.replace("(",kl))==null?void 0:j.split(kl),Te=W==null?void 0:W[1];if(Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1),Te=de.analyzeSplitToContent(Te,","),(pe=(ve=(J=Te==null?void 0:Te.find(Ie=>Ie==null?void 0:Ie.includes("@Sync")))==null?void 0:J.split(","))==null?void 0:ve[0])!=null&&pe.includes("Yes")){let Ie=W==null?void 0:W[0];Ie=[{menus:(aa=(ya=Ie==null?void 0:Ie.split("*"))==null?void 0:ya[0])==null?void 0:aa.replaceAll(":","/"),groups:((ga=(ce=Ie==null?void 0:Ie.split("*"))==null?void 0:ce[1])==null?void 0:ga.split(":"))??[]}],m=[...m,...Ie]}if((Na=(Je=(Ae=Te==null?void 0:Te.find(Ie=>Ie==null?void 0:Ie.includes("@Sync")))==null?void 0:Ae.split(","))==null?void 0:Je[1])!=null&&Na.includes("Yes")){let Ie=W==null?void 0:W[0];Ie=[{menus:(la=(Ca=Ie==null?void 0:Ie.split("*"))==null?void 0:Ca[0])==null?void 0:la.replaceAll(":","/"),groups:((va=($a=Ie==null?void 0:Ie.split("*"))==null?void 0:$a[1])==null?void 0:va.split(":"))??[]}],g=[...g,...Ie]}}return{groupName:r,tableColumns:s,tableFilter:h,tableContents:o,columns:(K==null?void 0:K.secondColumns)??[],relatedQuotes:u,fatherSyncContents:m,sonSyncContents:g}},rc=(a,l)=>(a=a==null?void 0:a.map((n,r)=>{var o,s,h,c;if(Array.isArray(n))n=n==null?void 0:n.map(p=>{var m,g,u,D;return p!=null&&p.isMainPath||(((m=p==null?void 0:p.children)==null?void 0:m.length)>0?p.children=rc(p.children,l):((g=p==null?void 0:p.menus)==null?void 0:g.length)>0&&!((u=n==null?void 0:n[0])!=null&&u.isMainPath)&&(p.menus=(D=p.menus)==null?void 0:D.map((M,k)=>{var K,I;return((K=p.menus)==null?void 0:K.length)-1===k&&M===""&&(l==null?void 0:l.parentContent)+"/"!==((I=p.menus)==null?void 0:I.join("/"))&&(M=l==null?void 0:l.value),p}),p.bindMenus=p.menus)),p});else{if(r===0&&((o=n.menus)==null?void 0:o.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((s=n.menus)==null?void 0:s.length)>0&&!((h=a==null?void 0:a[0])!=null&&h.isMainPath)&&(n.menus=(c=n.menus)==null?void 0:c.map((p,m)=>{var g,u;return((g=n.menus)==null?void 0:g.length)-1===m&&p===""&&(l==null?void 0:l.parentContent)+"/"!==((u=n.menus)==null?void 0:u.join("/"))&&(p=l==null?void 0:l.value),p}),n.bindMenus=n.menus)}return n}),a),Zd=(a,l)=>(a=a==null?void 0:a.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=rc(n.contents,l)),n)),a),ht=(a,l)=>{let n=a;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(r=>(r=ht(r,l),r)):n=n==null?void 0:n.map(r=>{var o,s;return r!=null&&r.children&&((o=r==null?void 0:r.children)==null?void 0:o.length)>0?r.children=ht(r==null?void 0:r.children,l):r!=null&&r.words&&((s=r==null?void 0:r.words)==null?void 0:s.length)>0&&(l!=null&&l.find(h=>{var c,p,m,g;return((g=(c=r==null?void 0:r.prop)==null?void 0:c.split("."))==null?void 0:g[((m=(p=r==null?void 0:r.prop)==null?void 0:p.split("."))==null?void 0:m.length)-1])===h}))&&(r.mainKey=!0),r}),n};let kr="$R";const Qd=A.useUnit(A.pinia),{selectTitle:Qr}=A.storeToRefs(Qd),ep=A.useMenuState(A.pinia),{localFiles:ap}=A.storeToRefs(ep),bn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixColumn",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ri=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ri||{});const lp=a=>{var l,n,r,o,s;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let h=a==null?void 0:a.contents,c=a==null?void 0:a.filter;(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(l=de.analyzeSplitToContent(c,","))==null?void 0:l.map(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)),m)),c=c==null?void 0:c[1],(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(n=de.analyzeSplitToContent(c,","))==null?void 0:n.map(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)),m));let p=(s=(o=(r=ap.value)==null?void 0:r.filter(m=>{var g;return(m==null?void 0:m.path)===((g=a==null?void 0:a.groupName)==null?void 0:g[0])}))==null?void 0:o[0])==null?void 0:s.children;return p=(p==null?void 0:p.filter(m=>c==null?void 0:c.find(g=>g===(m==null?void 0:m.name))))??[],h.push({key:"backGround",contents:p}),h}return a==null?void 0:a.contents},rp=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},np=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{size:l}):a==null?void 0:a.contents},ip=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const n=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(n)?a==null?void 0:a.filter:n}),l}return a==null?void 0:a.contents},op=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},tp=a=>{var n;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(r=>{var o;return(r==null?void 0:r.key)==="tableContents"&&(r.contents=(o=r.contents)==null?void 0:o.slice(0,parseInt(a==null?void 0:a.filter))),r})},sp=async a=>{var l,n,r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(Z=>((Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=de.shuffle(Z.contents)),Z));if((a==null?void 0:a.filter)==="Auto"){let te=(r=(n=a==null?void 0:a.contents)==null?void 0:n.find(De=>(De==null?void 0:De.key)==="header"))==null?void 0:r.contents;Array.isArray(te==null?void 0:te[0])&&(te=te==null?void 0:te[0]),te=de.getColumnChild(te);let Z=te==null?void 0:te.filter(De=>(De==null?void 0:De.filter)&&(De==null?void 0:De.filter)!==""),se=new Map,Be=[];Z==null||Z.forEach(De=>{var Oe,Fe;se.get((Oe=De==null?void 0:De.menus)==null?void 0:Oe.join("/"))||(se.set((Fe=De==null?void 0:De.menus)==null?void 0:Fe.join("/"),De),Be.push(De))});let Ve=(s=(o=Qr==null?void 0:Qr.value)==null?void 0:o.find(De=>(De==null?void 0:De.condition)==="child"))==null?void 0:s.value,he=Be==null?void 0:Be.map(De=>{var Oe,Fe,ea;return De=(Oe=De==null?void 0:De.menus)==null?void 0:Oe.join("/"),(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&((ea=(Fe=Qr==null?void 0:Qr.value)==null?void 0:Fe.find(Ba=>(Ba==null?void 0:Ba.condition)==="child"))==null?void 0:ea.parentContent)+"/"!==De?De=De+Ve:(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&(De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1)),De}),N=Be==null?void 0:Be.map(De=>De==null?void 0:De.groups),ie=he==null?void 0:he.map(async De=>{let Oe=await Jr(De,!1);return{path:De,contents:Oe}});ie=await Promise.all(ie);let U=ie==null?void 0:ie.map((De,Oe)=>{var ea,Ba,ee,ua,ue,sa,Se;let Fe=(ea=De==null?void 0:De.contents)==null?void 0:ea.filter(oe=>{var ze,Ke;return(oe==null?void 0:oe.name)===((Ke=N==null?void 0:N[Oe])==null?void 0:Ke[((ze=N==null?void 0:N[Oe])==null?void 0:ze.length)-1])});return Fe=(ua=(ee=(Ba=Fe==null?void 0:Fe[0])==null?void 0:Ba.compData)==null?void 0:ee.find(oe=>(oe==null?void 0:oe.key)==="tableContents"))==null?void 0:ua.contents,(De==null?void 0:De.path)===((sa=(ue=Qr==null?void 0:Qr.value)==null?void 0:ue.find(oe=>(oe==null?void 0:oe.condition)==="child"))==null?void 0:sa.parentContent)&&(Fe=((Se=Fe==null?void 0:Fe.map(oe=>{for(let ze in oe)if(oe[ze]===Ve)return oe}))==null?void 0:Se.filter(oe=>oe))??[]),Fe??[]});if(U=U==null?void 0:U.map(De=>(De=De==null?void 0:De.map(Oe=>{var ea;let Fe={};for(let Ba in Oe)if(Z!=null&&Z.find(ee=>{var ua,ue;return((ue=(ua=ee==null?void 0:ee.words)==null?void 0:ua[0])==null?void 0:ue.replaceAll("'",""))===Ba})){let ee=(ea=Z==null?void 0:Z.find(ua=>{var ue,sa;return((sa=(ue=ua==null?void 0:ua.words)==null?void 0:ue[0])==null?void 0:sa.replaceAll("'",""))===Ba}))==null?void 0:ea.prop;Fe[ee]=Oe==null?void 0:Oe[Ba]}return Fe}),De)),U=de.cartesianProduct(U),Array.isArray(U==null?void 0:U[0])&&(U=U==null?void 0:U[0]),(U==null?void 0:U.length)>0&&((u=(c=(h=Z==null?void 0:Z[0])==null?void 0:h.menus)==null?void 0:c.join("/"))==null?void 0:u[((g=(m=(p=Z==null?void 0:Z[0])==null?void 0:p.menus)==null?void 0:m.join("/"))==null?void 0:g.length)-1])==="/")return(D=a==null?void 0:a.contents)==null?void 0:D.map(Oe=>{var Fe;return(Oe==null?void 0:Oe.key)==="tableContents"&&(U==null?void 0:U.length)>0&&(Oe.contents=((Fe=Oe.contents)==null?void 0:Fe.length)>0?Oe.contents:U),Oe})}if((a==null?void 0:a.filter)==="Manual"){let te=[],Z=[],se=(k=(M=a==null?void 0:a.contents)==null?void 0:M.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:k.contents;(se==null?void 0:se[(se==null?void 0:se.length)-1])===")"?se=(I=(K=se==null?void 0:se.replace("(",kr))==null?void 0:K.split(kr))==null?void 0:I[0]:se="",se!==""&&(te=((L=(H=se==null?void 0:se.split("*"))==null?void 0:H[0])==null?void 0:L.split(":"))??[],Z=((_=(b=(w=(x=(E=se==null?void 0:se.split("*"))==null?void 0:E[1])==null?void 0:x.replace("{",kr))==null?void 0:w.split(kr))==null?void 0:b[0])==null?void 0:_.split(":"))??[]);let Be=(V=($=a==null?void 0:a.contents)==null?void 0:$.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:V.contents;Be=(X=(ne=Be==null?void 0:Be.replace("(",kr))==null?void 0:ne.split(kr))==null?void 0:X[1],Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1);let Ve=(me=a==null?void 0:a.contents)==null?void 0:me.map(N=>{var ie,U,De,Oe,Fe,ea,Ba,ee,ua;return(N==null?void 0:N.key)==="header"&&((ie=N==null?void 0:N.contents)!=null&&ie.every(ue=>(ue==null?void 0:ue.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((U=N==null?void 0:N.contents)==null?void 0:U[0])?N.contents=(De=N==null?void 0:N.contents)==null?void 0:De.map((ue,sa)=>{var Se,oe,ze;return ue!=null&&ue.isMainPath||(sa===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=te,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?Z:ue.groups,ue.words=((oe=ue.words)==null?void 0:oe.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||((ze=ue==null?void 0:ue.menus)==null?void 0:ze.length)===0)&&(ue.menus=te)):(ue.mainKey=!1,ue.bindMenus=te)),ue}):Array.isArray((Oe=N==null?void 0:N.contents)==null?void 0:Oe[0])&&((Ba=(ea=(Fe=N==null?void 0:N.contents)==null?void 0:Fe[0])==null?void 0:ea.filter(()=>(te==null?void 0:te.length)>0))==null?void 0:Ba.length)>0&&(N.contents[0]=(ua=(ee=N==null?void 0:N.contents)==null?void 0:ee[0])==null?void 0:ua.map((ue,sa)=>{var Se,oe,ze;return ue!=null&&ue.isMainPath||(sa===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=te,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?Z:ue.groups,ue.words=((oe=ue.words)==null?void 0:oe.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||Array.isArray(ue==null?void 0:ue.menus)&&((ze=ue==null?void 0:ue.menus)==null?void 0:ze.length)===0)&&(te==null?void 0:te.length)>0&&(ue.menus=te)):(ue.mainKey=!1,ue.bindMenus=te)),ue}))),N}),he=(Me=Ve==null?void 0:Ve.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:Me.contents;if(Array.isArray(he==null?void 0:he[0])&&(he=he==null?void 0:he[0]),he=de.getColumnChild(he),he!=null&&he.some(N=>{var ie,U;return((U=N==null?void 0:N.menus)==null?void 0:U[((ie=N==null?void 0:N.menus)==null?void 0:ie.length)-1])===""})){let N=(F=Qr==null?void 0:Qr.value)==null?void 0:F.find(ie=>(ie==null?void 0:ie.condition)==="child");Ve=Zd(Ve,N)}return Ve}if((a==null?void 0:a.filter)==="Chart"){let te=a==null?void 0:a.contents;return te.push({key:"newType",contents:"Chart"}),te}return a==null?void 0:a.contents},cp=async a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}return a==null?void 0:a.contents},up=a=>{var r,o,s,h,c,p,m,g,u,D,M,k;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((o=(r=l==null?void 0:l.replace(":",kr))==null?void 0:r.split(kr))==null?void 0:o[1])),l=(s=l==null?void 0:l.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(c=(h=l==null?void 0:l.split("="))==null?void 0:h[1])!=null&&c.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let K=(p=l==null?void 0:l.split("="))==null?void 0:p[0],I=(m=l==null?void 0:l.split("="))==null?void 0:m[1];(g=I==null?void 0:I.slice(1,I==null?void 0:I.length))!=null&&g.includes("$")&&(I=(M=(D=(u=Qr==null?void 0:Qr.value)==null?void 0:u.filter(H=>(H==null?void 0:H.condition)==="child"))==null?void 0:D[0])==null?void 0:M.value),l=K+"="+I}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let n=de.calculatorAndToOr(l);if((n==null?void 0:n.length)>0){let K=[];return n==null||n.forEach(H=>{let L={};for(let E in H){let x=E;x!=null&&x.includes("[")||(L[x]=H[E])}K.push(L)}),(k=a==null?void 0:a.contents)==null?void 0:k.map(H=>{var E,x,w;let L=(x=(E=a==null?void 0:a.contents)==null?void 0:E.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:x.contents;if(L=(w=de.getEqualChild(L))==null?void 0:w.filter(b=>(b==null?void 0:b.label)!=="操作"),(H==null?void 0:H.key)==="tableContents"){let _=de.tableToForm(H==null?void 0:H.contents,L);K==null||K.forEach($=>{var V,ne;for(let X in $)!((V=_==null?void 0:_[0])!=null&&V.find(me=>{var Me;return(me==null?void 0:me.key)===X||((Me=me==null?void 0:me.key)==null?void 0:Me.includes(X))}))&&!(_!=null&&_.find(me=>{var Me;return(me==null?void 0:me.key)===X||((Me=me==null?void 0:me.key)==null?void 0:Me.includes(X))}))||(((ne=$[X])==null?void 0:ne[0])!=="!"?_=_==null?void 0:_.filter(me=>{var Me,F;return((Me=me==null?void 0:me.find(te=>{var Z;return(te==null?void 0:te.key)===X||((Z=te==null?void 0:te.key)==null?void 0:Z.includes(X))}))==null?void 0:Me.value)===$[X]||Array.isArray($==null?void 0:$[X])&&((F=$==null?void 0:$[X])==null?void 0:F.find(te=>{var Z;return((Z=me==null?void 0:me.find(se=>{var Be;return(se==null?void 0:se.key)===X||((Be=se==null?void 0:se.key)==null?void 0:Be.includes(X))}))==null?void 0:Z.value)===te}))}):_=_==null?void 0:_.filter(me=>{var Me;return((Me=me==null?void 0:me.find(F=>{var te;return(F==null?void 0:F.key)===X||((te=F==null?void 0:F.key)==null?void 0:te.includes(X))}))==null?void 0:Me.value)!==$[X]}))}),(_==null?void 0:_.length)===0?H.contents=[]:H.contents=_==null?void 0:_.map($=>{let V={};return $==null||$.forEach(ne=>{V[ne==null?void 0:ne.key]=ne==null?void 0:ne.value}),V})}return H})}return a==null?void 0:a.contents},dp=a=>a==null?void 0:a.contents,pp=a=>a==null?void 0:a.contents,fp=a=>{var l,n,r,o;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let s=(r=(n=a==null?void 0:a.filter)==null?void 0:n.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:r.split(",");return(o=a==null?void 0:a.contents)==null?void 0:o.map(c=>((c==null?void 0:c.key)==="header"&&(c.contents=ht(c.contents,s)),c))}return a==null?void 0:a.contents},hp=a=>{var n,r,o,s,h;let l=(a==null?void 0:a.filter)??"";if(l!==""){let c=(r=(n=l==null?void 0:l.replace("(",kr))==null?void 0:n.split(kr))==null?void 0:r[1];c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1),(c==null?void 0:c[(c==null?void 0:c.length)-1])===")"&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(o=de.analyzeSplitToContent(c,","))==null?void 0:o.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));let p=c==null?void 0:c[0];(p==null?void 0:p[0])==="("&&(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1));let m=(c==null?void 0:c[1])??"Up",g=(s=a==null?void 0:a.contents)==null?void 0:s.map(u=>{var D,M;return m==="Up"?(u==null?void 0:u.key)==="extraButton"&&(u.contents=(D=p==null?void 0:p.split(","))==null?void 0:D.map(k=>({label:k,prop:k}))):m==="Line"&&(u==null?void 0:u.key)==="rowButton"&&(u.contents=(M=p==null?void 0:p.split(","))==null?void 0:M.map(k=>({label:k,prop:k}))),u});if(m==="Bottom"||m==="Down"){let u=(h=p==null?void 0:p.split(","))==null?void 0:h.map(D=>({label:D,prop:D}));g.push({key:"bottomButton",contents:u})}return g}return a==null?void 0:a.contents},vp=a=>a==null?void 0:a.contents,mp=a=>{var n;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(n=a==null?void 0:a.contents)==null?void 0:n.map(o=>{var s;return(o==null?void 0:o.key)==="rowButton"&&(o.contents=(s=l==null?void 0:l.split(","))==null?void 0:s.map(h=>({label:h,prop:h}))),o}):a==null?void 0:a.contents},yp=a=>{var n;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let r=a==null?void 0:a.contents,o=(n=l==null?void 0:l.split(","))==null?void 0:n.map(s=>({label:s,prop:s}));return r.push({key:"bottomButton",contents:o}),r}return a==null?void 0:a.contents},gp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(n=>{var r;return(n==null?void 0:n.key)==="formContent"&&(n.contents=(r=n.contents)==null?void 0:r.map(o=>(o.isNoClick=!0,o))),n}),l!=null&&l.find(n=>(n==null?void 0:n.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(n=>(n==null?void 0:n.key)!=="extraButton"&&(n==null?void 0:n.key)!=="rowButton")),l}return a==null?void 0:a.contents},bp=a=>{var l;if(a!=null&&a.filter){const n=parseInt(a==null?void 0:a.filter);return!n||Number.isNaN(n)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s;return(o==null?void 0:o.key)==="formContent"&&(o.contents=(s=o.contents)==null?void 0:s.map(h=>(h.width=n,h))),o})}return a==null?void 0:a.contents},kp=a=>{var l,n,r,o;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const s=parseInt(a==null?void 0:a.filter);return!s||Number.isNaN(s)?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(c=>{var p;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(p=c.contents)==null?void 0:p.map(m=>(m.width=s,m))),c})}if(((r=a==null?void 0:a.filter)==null?void 0:r[0])==="["){let s=Di(a==null?void 0:a.filter),h=Array.isArray(s)?s.map(p=>parseInt(p)).filter(p=>!!p&&!Number.isNaN(p)):[];return h.length?(o=a==null?void 0:a.contents)==null?void 0:o.map(p=>{if((p==null?void 0:p.key)==="formContent"){const m=p.contents??[];p.contents=m.map((g,u)=>{const D=u+1;let M=0,k=0;for(let I=0;I<h.length;I++){if(k+=h[I],D<=k){M=I;break}I===h.length-1&&(M=h.length-1)}const K=h[M]||h[h.length-1]||1;return g.width=K,g})}return p}):a==null?void 0:a.contents}return a==null?void 0:a.contents},xp=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s,h,c;return(o==null?void 0:o.key)==="header"&&(Array.isArray((s=o==null?void 0:o.contents)==null?void 0:s[0])?o.contents[0]=(c=o.contents[0])==null?void 0:c.map(p=>(n!=null&&n.find(m=>m===(p==null?void 0:p.prop))&&(p.fixed="left"),p)):o.contents=(h=o.contents)==null?void 0:h.map(p=>(n!=null&&n.find(m=>m===(p==null?void 0:p.prop))&&(p.fixed="left"),p))),o})}return a==null?void 0:a.contents},wp=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.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 r=s=>(n!=null&&n.find(h=>h===(s==null?void 0:s.prop))&&(s.required=!0),s!=null&&s.children&&Array.isArray(s.children)&&(s.children=s.children.map(h=>r(h))),s);return(l=a==null?void 0:a.contents)==null?void 0:l.map(s=>{var h,c,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((h=s==null?void 0:s.contents)==null?void 0:h[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(m=>r(m)):s.contents=(c=s.contents)==null?void 0:c.map(m=>r(m))),s})}return a==null?void 0:a.contents},_p=async a=>{var r,o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E;const l=A.useUnit(A.pinia),{chooseTitle:n}=A.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let x=await Jr(((o=(r=n==null?void 0:n.value)==null?void 0:r[0])==null?void 0:o.parentContent)??((h=(s=n==null?void 0:n.value)==null?void 0:s[0])==null?void 0:h.relatedContent),!1),w=(p=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:p.value;(g=(m=x==null?void 0:x[0])==null?void 0:m.compData)!=null&&g.find(V=>(V==null?void 0:V.key)==="header")?x=(u=x==null?void 0:x[0])==null?void 0:u.compData:x=(M=(D=x==null?void 0:x.filter(V=>{var ne;return(ne=V==null?void 0:V.compData)==null?void 0:ne.find(X=>(X==null?void 0:X.key)==="header")}))==null?void 0:D[0])==null?void 0:M.compData;let b=(k=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:k.contents;Array.isArray(b==null?void 0:b[0])&&(b=b==null?void 0:b[0]),b=((K=b==null?void 0:b.find(V=>V==null?void 0:V.isMainKey))==null?void 0:K.prop)??((I=b==null?void 0:b[0])==null?void 0:I.prop);let _=(L=(H=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:H.contents)==null?void 0:L.find(V=>(V==null?void 0:V[b])===w);return(E=a==null?void 0:a.contents)==null?void 0:E.map(V=>{var ne;return(V==null?void 0:V.key)==="formContent"&&(V.contents=(ne=V.contents)==null?void 0:ne.map(X=>(X.value=_==null?void 0:_[X==null?void 0:X.prop],X))),V})}return a==null?void 0:a.contents},Sp=a=>{var l,n,r,o,s;if((l=a==null?void 0:a.extra)!=null&&l.row){let h=a==null?void 0:a.filter;if(h!=null&&h.includes("*")&&(h="({"+((r=(n=h==null?void 0:h.replace("{",kr))==null?void 0:n.split(kr))==null?void 0:r[1])),h=(o=h==null?void 0:h.replaceAll("{",""))==null?void 0:o.replaceAll("}",""),(h==null?void 0:h[0])!=="("&&(h="("+h+")"),h.slice(1,(h==null?void 0:h.length)-1)==="undefined")return a==null?void 0:a.contents;let c=de.calculatorAndToOr(h),p=c==null?void 0:c[0],m=(s=a==null?void 0:a.extra)==null?void 0:s.row,g=[];for(let u in p)(p==null?void 0:p[u])===(m==null?void 0:m[u])?g.push(!0):g.push(!1);return g!=null&&g.every(u=>u===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},Ep=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Cp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Dp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Bp=a=>{var l;if(a!=null&&a.filter){let n=a==null?void 0:a.contents,r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=(l=de.analyzeSplitToContent(r,","))==null?void 0:l.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o)),n.push({key:"stepName",contents:r}),n}return a==null?void 0:a.contents},Tp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},nc={onNumSlice:tp,onRandomContents:sp,onConditionContents:up,onFatherPaceContents:dp,onPaceContents:pp,onMainTagContents:fp,onButtonContents:hp,onPamButtonContents:vp,onRowButtonContents:mp,onRelated:_p,onRowNum:kp,onFixRow:xp,onReqItem:wp,onBottomButtonContents:yp,onConditionContent:Sp,onTabs:Ep,onSinChoice:Cp,onTextSize:ip,onTextRGBA:op,onPosition:rp,onSize:np,onShowType:Dp,onStepName:Bp,onStep:Tp,onInterfaceTypeContents:cp,onBackGround:lp,onMaxColumn:bp,onEditRead:gp},Np=async(a,l,n="")=>{var h,c,p,m,g,u,D,M,k,K,I,H;let r="";if(((h=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:h.contents)!==""&&(r=(c=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:c.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(m=(p=r==null?void 0:r.replace("(",kr))==null?void 0:p.split(kr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(g=de.analyzeSplitToContent(r,","))==null?void 0:g.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L!=null&&L.includes("(")||(L=L==null?void 0:L.replaceAll(":","=")),L)),s=a;for(let L in o){let E,x="";E=(M=(D=(u=o==null?void 0:o[L])==null?void 0:u.replace("=",kr))==null?void 0:D.split(kr))==null?void 0:M[0],x=(I=(K=(k=o==null?void 0:o[L])==null?void 0:k.replace("=",kr))==null?void 0:K.split(kr))==null?void 0:I[1];let w=(H=bn==null?void 0:bn.find(b=>(b==null?void 0:b.key)===E))==null?void 0:H.value;if(w){const b=nc[w];s=await b({contents:s,filter:x,extra:l,groupName:n})}}return s},Et=async(a,l,n="")=>{var c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne;let r="";if(((c=a==null?void 0:a.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(p=a==null?void 0:a.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:p.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(g=(m=r==null?void 0:r.replace("(",kr))==null?void 0:m.split(kr))==null?void 0:g[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=de.analyzeSplitToContent(r,","))==null?void 0:u.map(X=>((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&&X.includes("(")||(X=X==null?void 0:X.replaceAll(":","=")),X)),s=a,h=new Map;o==null||o.forEach(X=>{var Me,F,te;let me=(Me=X==null?void 0:X.split("="))==null?void 0:Me[0];if(me==="@MainPam"&&h.get(me)){let Z=h.get(me);Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1);let se=(te=(F=X==null?void 0:X.replace("{",kr))==null?void 0:F.split(kr))==null?void 0:te[1];se=Z+","+se,h.set(me,se)}else me==="@Button"&&h.get(me)?h.set(X,X):h.set(me,X)}),o=Array.from(h.values()),o=o==null?void 0:o.sort((X,me)=>{var Me,F;return((Me=bn==null?void 0:bn.find(te=>me==null?void 0:me.includes(te==null?void 0:te.key)))==null?void 0:Me.order)-((F=bn==null?void 0:bn.find(te=>X==null?void 0:X.includes(te==null?void 0:te.key)))==null?void 0:F.order)});for(let X in o){let me,Me="";(D=o==null?void 0:o[X])!=null&&D.includes("(")&&((M=o==null?void 0:o[X])!=null&&M.includes("@If"))?(me=(I=(K=(k=o==null?void 0:o[X])==null?void 0:k.replace("(",kr))==null?void 0:K.split(kr))==null?void 0:I[0],Me="("+((E=(L=(H=o==null?void 0:o[X])==null?void 0:H.replace("(",kr))==null?void 0:L.split(kr))==null?void 0:E[1])):(me=(b=(w=(x=o==null?void 0:o[X])==null?void 0:x.replace("=",kr))==null?void 0:w.split(kr))==null?void 0:b[0],Me=(V=($=(_=o==null?void 0:o[X])==null?void 0:_.replace("=",kr))==null?void 0:$.split(kr))==null?void 0:V[1]);let F=(ne=bn==null?void 0:bn.find(te=>(te==null?void 0:te.key)===me))==null?void 0:ne.value;if(F){const te=nc[F];s=await te({contents:s,filter:Me,extra:l,groupName:n})}}return s},ic=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const n=l.slice(1,-1).split(",").map(r=>Number(r.trim()));return n.length<2||n.some(r=>Number.isNaN(r))?null:[n[0],n[1]]},oc=(a,l)=>{var K,I,H,L,E;const n=Array.isArray(a)?a:[],r=n.find(x=>(x==null?void 0:x.key)==="formContent"),o=Array.isArray(r==null?void 0:r.contents)?r.contents:[],s=((K=n.find(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"))==null?void 0:K.contents)??{},h=(o==null?void 0:o[0])??{};let c=((I=l==null?void 0:l.position)==null?void 0:I[0])??(s==null?void 0:s._positionStartRow)??(h==null?void 0:h._positionStartRow),p=((H=l==null?void 0:l.position)==null?void 0:H[1])??(s==null?void 0:s._positionRowSpan)??(h==null?void 0:h._positionRowSpan);(!c||Number.isNaN(c)||c<1)&&(c=1),(!p||Number.isNaN(p)||p<1)&&(p=1);let m=((L=l==null?void 0:l.size)==null?void 0:L[0])??(s==null?void 0:s._sizeStart)??(h==null?void 0:h._sizeStart),g=((E=l==null?void 0:l.size)==null?void 0:E[1])??(s==null?void 0:s._sizeEnd)??(h==null?void 0:h._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(g===void 0||Number.isNaN(g))&&(g=1),m=Math.max(0,Math.min(1,m)),g=Math.max(0,Math.min(1,g)),g<=m&&(m=0,g=1);const u=g-m,D=Math.max(1,Math.round(1/u));let M=n.map(x=>{if((x==null?void 0:x.key)!=="formContent")return x;const w=Array.isArray(x==null?void 0:x.contents)?x.contents:[];return{...x,contents:w.map(b=>({...b,width:D,_positionStartRow:c,_positionRowSpan:p,_sizeStart:m,_sizeEnd:g}))}});const k={_positionStartRow:c,_positionRowSpan:p,_sizeStart:m,_sizeEnd:g};return M.some(x=>(x==null?void 0:x.key)==="_gridLayoutMeta")?M=M.map(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"?{...x,contents:k}:x):M.push({key:"_gridLayoutMeta",contents:k}),M};let po="$R";const Ap=A.useUnit(A.pinia),{selectTitle:zp}=A.storeToRefs(Ap);let Mp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Ip=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Op=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Lp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ts=async(a,l,n=!0)=>{let r=[],o=a==null?void 0:a.map(async s=>{var u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa,Qe,He,qe,fe,ke,da,La,dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll;let h=(k=(M=(D=(u=s==null?void 0:s.contents)==null?void 0:u.find(Ne=>{var Ue;return(Ue=Ne==null?void 0:Ne.key)==null?void 0:Ue.includes("struct")}))==null?void 0:D.value)==null?void 0:M[0])==null?void 0:k.类型,c=Object.values(s==null?void 0:s.name);c=c==null?void 0:c.reverse();let p=(K=s==null?void 0:s.contents)==null?void 0:K.map(Ne=>Ne==null?void 0:Ne.key),m={comp:h,isShow:s==null?void 0:s.is_show,name:c==null?void 0:c[0],id:s==null?void 0:s.object_id,order_no:s==null?void 0:s.order_no,relatedTables:p,menuFilter:(I=s==null?void 0:s.filter)==null?void 0:I.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(H=s==null?void 0:s.filter)==null?void 0:H.fatherSyncs,relatedQuotes:(L=s==null?void 0:s.filter)==null?void 0:L.quotes,sonSyncContents:(E=s==null?void 0:s.filter)==null?void 0:E.sonSyncs,nameContents:(x=A.cloneDeep(c))==null?void 0:x.reverse()};for(let Ne in c)parseInt(Ne)>=1&&(m[`name${parseInt(Ne)-1}`]=c[Ne]);let g=Array.isArray((w=s==null?void 0:s.filter)==null?void 0:w.menuFilter)?(b=s==null?void 0:s.filter)==null?void 0:b.menuFilter:[];if(((_=g==null?void 0:g.filter(Ne=>Ne==null?void 0:Ne.includes("@Filter")))==null?void 0:_.length)>0){let Ne=g==null?void 0:g.filter(Le=>Le==null?void 0:Le.includes("@Filter"));Ne=Ne==null?void 0:Ne[0],Ne=(V=($=Ne==null?void 0:Ne.replace("(",po))==null?void 0:$.split(po))==null?void 0:V[1],Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1),Ne!=null&&Ne.includes("*")&&(Ne=(X=(ne=Ne==null?void 0:Ne.replace("{",po))==null?void 0:ne.split(po))==null?void 0:X[1],Ne=Ne==null?void 0:Ne.replace("}","")),Ne=de.calculatorAndToOr(Ne);let Ue=(l==null?void 0:l.originPath)??"";(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));let na=await Jr(Ue,!1),re=(me=na==null?void 0:na.filter(Le=>(Le==null?void 0:Le.comp)==="Table"))==null?void 0:me[0];re=(F=(Me=re==null?void 0:re.compData)==null?void 0:Me.find(Le=>(Le==null?void 0:Le.key)==="tableContents"))==null?void 0:F.contents;let ia=(Z=(te=zp.value)==null?void 0:te.find(Le=>(Le==null?void 0:Le.condition)==="child"))==null?void 0:Z.value;re=(se=re==null?void 0:re.map(Le=>{for(let ja in Le)if((Le==null?void 0:Le[ja])===ia)return Le}))==null?void 0:se.filter(Le=>Le),re=re==null?void 0:re[0],Ne=Ne==null?void 0:Ne[0];let Va=[];for(let Le in Ne){let ja="";Ua.isObject(re)&&(ja=(Ve=(Be=Object.keys(re))==null?void 0:Be.filter(Ma=>Ma==null?void 0:Ma.includes("."+Le)))==null?void 0:Ve[0]),ja!==""&&(re!=null&&re[ja])&&(Ne==null?void 0:Ne[Le])===(re==null?void 0:re[ja])||re!=null&&re[Le]&&(Ne==null?void 0:Ne[Le])===(re==null?void 0:re[Le])?Va.push(!0):Va.push(!1)}if(Va!=null&&Va.some(Le=>Le===!1)&&((N=l==null?void 0:l.originPath)==null?void 0:N[((he=l==null?void 0:l.originPath)==null?void 0:he.length)-1])!=="/")return}if(h==="Table"||h==="Method"){!n&&((ie=m==null?void 0:m.fatherSyncContents)==null?void 0:ie.length)>0;let Ne=((U=s==null?void 0:s.contents)==null?void 0:U.find(We=>{var pa;return(pa=We==null?void 0:We.key)==null?void 0:pa.includes("content")}))||[],Ue=[];m.comp="Table",Ne.value=(De=Ne==null?void 0:Ne.value)==null?void 0:De.sort((We,pa)=>parseInt(We==null?void 0:We.id)-parseInt(pa==null?void 0:pa.id)),Ne.value=(Oe=Ne==null?void 0:Ne.value)==null?void 0:Oe.map(We=>{let pa={};for(let ma in We)JSON.stringify(We==null?void 0:We[ma])==="{}"?pa[ma]="":pa[ma]=We==null?void 0:We[ma];return pa}),Ue.push({key:"tableContents",contents:Ne==null?void 0:Ne.value});let na=(ua=(ee=(Ba=(ea=(Fe=s==null?void 0:s.contents)==null?void 0:Fe.find(We=>{var pa;return(pa=We==null?void 0:We.key)==null?void 0:pa.includes("struct")}))==null?void 0:ea.value)==null?void 0:Ba[0])==null?void 0:ee.结构)==null?void 0:ua.contents;Array.isArray(na==null?void 0:na[0])?na[0]=(ue=na==null?void 0:na[0])==null?void 0:ue.filter(We=>(We==null?void 0:We.prop)!=="sort"&&(We==null?void 0:We.prop)!=="relatedId"):na=na==null?void 0:na.filter(We=>(We==null?void 0:We.prop)!=="sort"&&(We==null?void 0:We.prop)!=="relatedId"),Ue.push({key:"header",contents:na}),Ue.push({key:"filter",contents:(Ke=(ze=(oe=(Se=(sa=s==null?void 0:s.contents)==null?void 0:sa.find(We=>{var pa;return(pa=We==null?void 0:We.key)==null?void 0:pa.includes("struct")}))==null?void 0:Se.value)==null?void 0:oe[0])==null?void 0:ze.引用)==null?void 0:Ke.contents});let re=Mp,ia=A.cloneDeep(Ip);h==="Method"&&ia.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(na==null?void 0:na[0])&&((ca=na==null?void 0:na[0])==null?void 0:ca.prop)==="disabled"&&(re=Op,ia=Lp);const Va=["推力","真空","压力","温度","流量"],Le=m.name;Le&&Va.includes(Le)&&(re=[...re],re.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ja=[];if(!Array.isArray(na==null?void 0:na[0])&&(na!=null&&na.some(We=>{var pa;return(We==null?void 0:We.calculatorFilter)&&((pa=We==null?void 0:We.calculatorFilter)==null?void 0:pa.includes("Manual"))}))){let We=(Ya=na==null?void 0:na.map(pa=>pa==null?void 0:pa.calculatorFilter))==null?void 0:Ya.filter(pa=>pa&&(pa==null?void 0:pa.includes("Manual")));We==null||We.forEach(pa=>{var ka;let ma=de.analyzeSplitToContent(pa,",");if(ma=ma==null?void 0:ma.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===","&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Extent"))&&(_e==null?void 0:_e.includes("Row")))&&(ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Button"))&&(_e==null?void 0:_e.includes(","))))){let _e=ma==null?void 0:ma.find(Tl=>Tl==null?void 0:Tl.includes("@FunctionButton"));_e=(ka=_e==null?void 0:_e.split("="))==null?void 0:ka[1],_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1),_e=_e==null?void 0:_e.split(","),_e=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1],ja.push(_e)}}),ja=[...new Set(ja)],ja=ja==null?void 0:ja.map(pa=>({label:pa,prop:pa,type:"methodButton"}))}else if(Array.isArray(na==null?void 0:na[0])&&((R=de.getColumnChild(na==null?void 0:na[0]))!=null&&R.some(We=>{var pa;return(We==null?void 0:We.calculatorFilter)&&((pa=We==null?void 0:We.calculatorFilter)==null?void 0:pa.includes("Manual"))}))){let We=(J=(j=de.getColumnChild(na==null?void 0:na[0]))==null?void 0:j.map(pa=>pa==null?void 0:pa.calculatorFilter))==null?void 0:J.filter(pa=>pa&&(pa==null?void 0:pa.includes("Manual")));We==null||We.forEach(pa=>{var ka;let ma=de.analyzeSplitToContent(pa,",");if(ma=ma==null?void 0:ma.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===","&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Extent"))&&(_e==null?void 0:_e.includes("Row")))&&(ma!=null&&ma.find(_e=>(_e==null?void 0:_e.includes("Button"))&&(_e==null?void 0:_e.includes(","))))){let _e=ma==null?void 0:ma.find(Tl=>Tl==null?void 0:Tl.includes("@FunctionButton"));_e=(ka=_e==null?void 0:_e.split("="))==null?void 0:ka[1],_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1),_e=_e==null?void 0:_e.split(","),_e=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1],ja.push(_e)}}),ja=[...new Set(ja)],ja=ja==null?void 0:ja.map(pa=>({label:pa,prop:pa,type:"methodButton"}))}if(Ue.push({key:"extraButton",contents:re}),Ue.push({key:"rowButton",contents:[...ia,...ja]}),m.compData=await Et(Ue,l,m==null?void 0:m.nameContents),(ve=m.compData)!=null&&ve.find(We=>(We==null?void 0:We.key)==="tab")&&(m.tab=(ya=(pe=m.compData)==null?void 0:pe.find(We=>(We==null?void 0:We.key)==="tab"))==null?void 0:ya.contents),(aa=m.compData)!=null&&aa.find(We=>(We==null?void 0:We.key)==="step")&&(m.step=(ga=(ce=m.compData)==null?void 0:ce.find(We=>(We==null?void 0:We.key)==="step"))==null?void 0:ga.contents),(Ae=m.compData)!=null&&Ae.find(We=>(We==null?void 0:We.key)==="choice")&&(m.choice=(Na=(Je=m.compData)==null?void 0:Je.find(We=>(We==null?void 0:We.key)==="choice"))==null?void 0:Na.contents),(Ca=m.compData)!=null&&Ca.find(We=>(We==null?void 0:We.key)==="newType")){let We=($a=(la=m.compData)==null?void 0:la.find(pa=>(pa==null?void 0:pa.key)==="newType"))==null?void 0:$a.contents;m.comp=We,m.compData=(va=m.compData)==null?void 0:va.filter(pa=>(pa==null?void 0:pa.key)!=="newType")}let Ma="",il=(W=m==null?void 0:m.compData)==null?void 0:W.filter(We=>(We==null?void 0:We.key)==="fixType");(il==null?void 0:il.length)>0&&n&&(Ma=(Te=il==null?void 0:il[0])==null?void 0:Te.contents,m.comp=Ma)}else if(h==="Form"){let Ne=[],Ue=(wa=(we=(Ie=s==null?void 0:s.contents)==null?void 0:Ie.find(Le=>{var ja;return(ja=Le==null?void 0:Le.key)==null?void 0:ja.includes("content")}))==null?void 0:we.value)==null?void 0:wa[0],na=[],re=Array.isArray((oa=s==null?void 0:s.filter)==null?void 0:oa.menuFilter)?(Qe=s==null?void 0:s.filter)==null?void 0:Qe.menuFilter:[];re==null||re.forEach(Le=>{if(Le!=null&&Le.includes("@Param(Hide=Yes, prop=")||Le!=null&&Le.includes("(Hide=Yes, prop=")){const ja=Le==null?void 0:Le.match(/prop=([^,)]+)/);ja!=null&&ja[1]&&na.push(ja==null?void 0:ja[1])}});let ia=(da=(ke=(fe=(qe=(He=s==null?void 0:s.contents)==null?void 0:He.find(Le=>{var ja;return(ja=Le==null?void 0:Le.key)==null?void 0:ja.includes("struct")}))==null?void 0:qe.value)==null?void 0:fe[0])==null?void 0:ke.结构)==null?void 0:da.contents,Va=(La=ia==null?void 0:ia.map(Le=>(Le.value=Ue==null?void 0:Ue[Le==null?void 0:Le.prop],Le)))==null?void 0:La.filter(Le=>(Le==null?void 0:Le.prop)!=="sort"&&(Le==null?void 0:Le.prop)!=="relatedId");Va=Va==null?void 0:Va.map(Le=>(na!=null&&na.includes(Le==null?void 0:Le.prop)&&(Le.isHideInForm=!0),Le)),Ne.push({key:"filter",contents:(Fa=(Fl=(sl=(Ol=(dl=s==null?void 0:s.contents)==null?void 0:dl.find(Le=>{var ja;return(ja=Le==null?void 0:Le.key)==null?void 0:ja.includes("struct")}))==null?void 0:Ol.value)==null?void 0:sl[0])==null?void 0:Fl.引用)==null?void 0:Fa.contents}),Ne.push({key:"formContent",contents:Va}),Ne.push({key:"paramHideProps",contents:na}),m.compData=await Np(Ne,l,m==null?void 0:m.nameContents),(Vl=m.compData)!=null&&Vl.find(Le=>(Le==null?void 0:Le.key)==="tab")&&(m.tab=(Aa=(zl=m.compData)==null?void 0:zl.find(Le=>(Le==null?void 0:Le.key)==="tab"))==null?void 0:Aa.contents),(rl=m.compData)!=null&&rl.find(Le=>(Le==null?void 0:Le.key)==="step")&&(m.step=(ul=(nl=m.compData)==null?void 0:nl.find(Le=>(Le==null?void 0:Le.key)==="step"))==null?void 0:ul.contents),(Ra=m.compData)!=null&&Ra.find(Le=>(Le==null?void 0:Le.key)==="choice")&&(m.choice=(ll=(cl=m.compData)==null?void 0:cl.find(Le=>(Le==null?void 0:Le.key)==="choice"))==null?void 0:ll.contents)}return m});return r=await Promise.all(o),r},Rp=A.useLoginState(A.pinia),{loginUserInfo:wi}=A.storeToRefs(Rp),vt=async(a,l,n="Manual",r=[])=>{var p;let o=a,s;Array.isArray(l==null?void 0:l[0])?s=de.getColumnChild(l==null?void 0:l[0]):s=l;let h=(p=s==null?void 0:s.filter(m=>{var g;return(m==null?void 0:m.calculatorFilter)&&((g=m==null?void 0:m.calculatorFilter)==null?void 0:g.includes(n))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:p.map(m=>({prop:m==null?void 0:m.prop,label:m==null?void 0:m.label,methods:m==null?void 0:m.calculatorFilter,functionName:m==null?void 0:m.functionName,functionRelatedWords:m==null?void 0:m.functionRelatedWords})),c=o==null?void 0:o.map(async m=>(m=await Hp(m,h,s,n,o,r),m));return c=await Promise.all(c),c},$p=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(h=>{var c;if(l!=null&&l[h]){let p=l==null?void 0:l[h];s=s?p?Bl.isEqual(p.toString(),s.toString()):void 0:p}else{let p=(c=o==null?void 0:o.find(g=>(g==null?void 0:g.label)===h))==null?void 0:c.prop,m=(l==null?void 0:l[p])??0;s=s?m?Bl.isEqual(m.toString(),s.toString()):void 0:m}}),l[r]=s===void 0?void 0:s?1:0,l},Er=a=>{const[l,n,r]=A.cloneDeep(a).split(":").map(Number);let o=+a;return!a||!(a!=null&&a.includes(":"))?o:(l??0)*3600+(n??0)*60+(r??0)},Fn=a=>{const l=s=>s.toString().padStart(2,"0"),n=Math.floor(a/3600),r=Math.floor(a%3600/60),o=a%60;return`${l(n)}:${l(r)}:${parseInt(l(o))}`},Vp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K,I,H;if(l!=null&&l[p]){if(s==="Row")if(!((g=((m=l==null?void 0:l[p])==null?void 0:m.toString())??"")!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let L=+(l==null?void 0:l[p]);c=c+L}else c=Er(c.toString())+Er((D=l==null?void 0:l[p])==null?void 0:D.toString()),c=Fn(c)}else if(s==="Row"){let L=(M=o==null?void 0:o.find(E=>(E==null?void 0:E.label)===p))==null?void 0:M.prop;if(!((K=Number.isNaN(l==null?void 0:l[L])?"":(k=l==null?void 0:l[L])==null?void 0:k.toString())!=null&&K.includes(":"))&&!((I=c==null?void 0:c.toString())!=null&&I.includes(":"))){let E=+((l==null?void 0:l[L])??0);c=c+E}else c=Er(c==null?void 0:c.toString())+Er((H=(l==null?void 0:l[L])??0)==null?void 0:H.toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u+D},0)}return l[r]=c,l},Pp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K;if(l!=null&&l[p]){if(s==="Row")if(!((g=(m=l==null?void 0:l[p])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[p]);c=c===0?c+I:c-I}else c=c===0?Er(c.toString())+Er(l==null?void 0:l[p].toString()):Er(c.toString())-Er(l==null?void 0:l[p].toString()),c=Fn(c)}else if(s==="Row"){let I=(D=o==null?void 0:o.find(H=>(H==null?void 0:H.label)===p))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((K=c==null?void 0:c.toString())!=null&&K.includes(":"))){let H=+((l==null?void 0:l[I])??0);c=c===0?c+H:c-H}else c=c===0?Er(c.toString())+Er(((l==null?void 0:l[I])??0).toString()):Er(c.toString())-Er(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u-D},0)}return l[r]=c,l},Fp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K;if(l!=null&&l[p]){if(s==="Row")if(!((g=(m=l==null?void 0:l[p])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[p]);c=c===0?c+I:c*I}else c=c===0?Er(c.toString())+Er(l==null?void 0:l[p].toString()):Er(c.toString())*Er(l==null?void 0:l[p].toString()),c=Fn(c)}else if(s==="Row"){let I=(D=o==null?void 0:o.find(H=>(H==null?void 0:H.label)===p))==null?void 0:D.prop;if(!(l!=null&&l[I]))c=void 0;else if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((K=c==null?void 0:c.toString())!=null&&K.includes(":"))){let H=+((l==null?void 0:l[I])??0);c=c===0?c+H:c*H}else c=c===0?Er(c.toString())+Er(((l==null?void 0:l[I])??0).toString()):Er(c.toString())*Er(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u*D},0)}return l[r]=c,l},jp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=de.getValueToObjectValue(l,de.getColumnContents(o))),n==null||n.forEach(p=>{var m,g,u,D,M,k,K;if(l!=null&&l[p]){if(s==="Row")if(!((g=(m=l==null?void 0:l[p])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[p]);c=c===0?c+I:c/I}else c=c===0?Er(c.toString())+Er(l==null?void 0:l[p].toString()):Er(c.toString())/Er(l==null?void 0:l[p].toString()),c=Fn(c)}else if(s==="Row"){let I=(D=o==null?void 0:o.find(H=>(H==null?void 0:H.label)===p))==null?void 0:D.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((K=c==null?void 0:c.toString())!=null&&K.includes(":"))){let H=+((l==null?void 0:l[I])??0);c=c===0?c+H:c/H}else c=c===0?Er(c.toString())+Er(((l==null?void 0:l[I])??0).toString()):Er(c.toString())/Er(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let p=[];n==null||n.forEach(m=>{let g=h==null?void 0:h.map(u=>{var D;return(u==null?void 0:u[m])??(u==null?void 0:u[(D=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});p=[...p,...g]}),c=p.reduce((m,g)=>{let u=0;Number.isNaN(m)||(u=+m);let D=0;return Number.isNaN(g)||(D=+g),u/D},0)}return l[r]=c.toFixed(2),l},fo={Sum:Vp,Substract:Pp,Multiple:Fp,Divide:jp,Compare:$p},Hp=async(a,l,n,r="Auto",o,s=[])=>{var g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F;let h=a,c=[],p=await A.getPageDataApi({platId:parseInt((g=wi==null?void 0:wi.value)==null?void 0:g.plat_id),pageName:"menu"});p=(M=(D=(u=p==null?void 0:p.data)==null?void 0:u.result)==null?void 0:D.filter(te=>(te==null?void 0:te.property_name)===""))==null?void 0:M[0];let m=[];if(p!=null&&p.object_name){p=p==null?void 0:p.object_name;let te=await A.getPageDataApi({platId:parseInt((k=wi==null?void 0:wi.value)==null?void 0:k.plat_id),pageName:p});te=(E=(L=(H=(I=(K=te==null?void 0:te.data)==null?void 0:K.result)==null?void 0:I[0])==null?void 0:H.contents)==null?void 0:L.find(Z=>{var se;return(se=Z==null?void 0:Z.key)==null?void 0:se.includes("content")}))==null?void 0:E.value,c=(x=te==null?void 0:te.map(Z=>({functionName:Z==null?void 0:Z.函数名称,functionContent:Z==null?void 0:Z.输出值})))==null?void 0:x.filter(Z=>(Z==null?void 0:Z.functionContent)!==""),c==null||c.forEach(Z=>{m.push(Z.functionName),fo[Z.functionName]=new Function("return "+Z.functionContent)()})}if((l==null?void 0:l.length)===0)return h;for(let te in l){let Z=(w=l==null?void 0:l[te])==null?void 0:w.functionName;const se=fo==null?void 0:fo[Z];let Be=(b=l==null?void 0:l[te])==null?void 0:b.methods;if(Be=de.analyzeSplitToContent(Be,","),console.log(Be),(_=Be==null?void 0:Be.find(Ve=>Ve==null?void 0:Ve.includes("@FunctionType")))!=null&&_.includes(r)||(Be==null?void 0:Be.length)===0){let Ve=((ne=(V=($=Be==null?void 0:Be.find(he=>he==null?void 0:he.includes("@FunctionExtent")))==null?void 0:$.replace(":","="))==null?void 0:V.split("="))==null?void 0:ne[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(he=>he===Z)){let he="";try{let ie=(X=l==null?void 0:l[te])==null?void 0:X.functionRelatedWords,U=(s==null?void 0:s.length)>0?s==null?void 0:s.map(Oe=>{var Fe;return Oe==null?void 0:Oe[(Fe=l==null?void 0:l[te])==null?void 0:Fe.prop]}):["0"];U=U==null?void 0:U.map(Oe=>Oe==null?void 0:Oe.slice((Oe==null?void 0:Oe.length)-5,Oe==null?void 0:Oe.length)),U=U==null?void 0:U.map(Oe=>de.isNumber(parseInt(Oe))&&parseInt(Oe)?parseInt(Oe):0);let De=Math.max(...U);ie=ie==null?void 0:ie.map(Oe=>{if(Oe!=null&&Oe.includes("'"))return Oe==null?void 0:Oe.replaceAll("'","");if(Oe!=null&&Oe.includes("@"))return De+1;{let Fe=Object.keys(h);return Oe=(h==null?void 0:h[Oe])??(h==null?void 0:h[Fe==null?void 0:Fe.find(ea=>ea==null?void 0:ea.includes("."+Oe))]),Oe}}),he=se(...ie)}catch(ie){Ua.ElMessage.warning("关联数据出现错误,"+ie.message)}let N=(me=l==null?void 0:l[te])==null?void 0:me.prop;h[N]=he}else h=se({contents:h,valueString:(Me=l==null?void 0:l[te])==null?void 0:Me.functionRelatedWords,prop:(F=l==null?void 0:l[te])==null?void 0:F.prop,headers:n,typeString:Ve,allContents:o})}}return h},Up=A.useLoginState(A.pinia),{loginUserInfo:en}=A.storeToRefs(Up),qp=A.useMenuState(A.pinia),{activeMenuPath:ss,currentMenuPath:ho}=A.storeToRefs(qp),tc=A.useUnit(A.pinia);let cs="$R";const{selectTitle:Ei}=A.storeToRefs(tc),sc=async(a,l)=>{var h,c,p,m,g,u,D,M,k,K,I,H,L;let n=ss.value,r="",o=((h=Ei==null?void 0:Ei.value)==null?void 0:h.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(n=l?n:(c=a==null?void 0:a[0])==null?void 0:c.object_name,r=(p=a==null?void 0:a[0])==null?void 0:p.father_name);let s=[];if(r!==""){let E=r;(E==null?void 0:E[(E==null?void 0:E.length)-1])==="/"&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1));let x=await Jr(E,!1);x=(m=x==null?void 0:x[0])==null?void 0:m.compData;let w=(g=x==null?void 0:x.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:g.contents;w=((u=w==null?void 0:w.find(_=>_==null?void 0:_.isMainKey))==null?void 0:u.prop)??((D=w==null?void 0:w[0])==null?void 0:D.prop);let b=(k=(M=x==null?void 0:x.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:k.map(_=>({label:_==null?void 0:_[w],value:_==null?void 0:_[w]}));s=(K=r==null?void 0:r.split("/"))==null?void 0:K.map(_=>(_===""?o?(o.isShow=!0,_=o):_={value:_,condition:"child",options:b,parentContent:(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"?r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1):r,isShow:!0}:_={condition:"parent",value:_.trim(),isShow:!0},_))}if(n!==""){let E=(I=n==null?void 0:n.split("/"))==null?void 0:I.map(x=>(x={condition:"normal",value:x.trim(),isShow:!0},x));((H=E==null?void 0:E[0])==null?void 0:H.value)===((L=s==null?void 0:s[0])==null?void 0:L.value)&&(E=E==null?void 0:E.filter((x,w)=>w!==0)),s=[...s??[],...E??[]]}r===""&&o&&((o==null?void 0:o.parentContent)!==ss.value&&(o.isShow=!1),(o==null?void 0:o.value)!==""&&s.push(o)),tc.setSelectTitle(s)},Wp=async a=>{var s,h,c,p,m,g,u,D,M;let l=await A.getPageDataApi({platId:parseInt((s=en==null?void 0:en.value)==null?void 0:s.plat_id),pageName:"menu"}),n=(h=l==null?void 0:l.data)==null?void 0:h.result,r=(g=(m=(p=(c=a==null?void 0:a.filter(k=>(k==null?void 0:k.comp)==="Table"))==null?void 0:c[0])==null?void 0:p.compData)==null?void 0:m.find(k=>(k==null?void 0:k.key)==="filter"))==null?void 0:g.contents;r=(M=(D=(u=r==null?void 0:r.replace("(",cs))==null?void 0:u.split(cs))==null?void 0:D[0])==null?void 0:M.replaceAll(":","/");let o=n==null?void 0:n.filter(k=>{var K;return(k==null?void 0:k.object_name)===ho.value+"/"||((K=ho.value)==null?void 0:K.includes(r))&&r+"/"===(k==null?void 0:k.object_name)});return(o==null?void 0:o.length)>0&&(a=a==null?void 0:a.map(k=>{var K;return(k==null?void 0:k.comp)==="Table"&&(k.compData=(K=k==null?void 0:k.compData)==null?void 0:K.map(I=>{var H,L,E;return(I==null?void 0:I.key)==="header"&&(Array.isArray((H=I.contents)==null?void 0:H[0])?I.contents[0]=(E=I.contents[0])==null?void 0:E.map((x,w)=>{var b;return w===0&&(x.isExistChild=!0,(b=ho.value)!=null&&b.includes(r)&&(x.fatherPath=r)),x}):I.contents=(L=I.contents)==null?void 0:L.map((x,w)=>{var b;return w===0&&(x.isExistChild=!0,(b=ho.value)!=null&&b.includes(r)&&(x.fatherPath=r)),x})),I})),k})),a},Jr=async(a,l,n={})=>{var h,c,p,m,g,u,D,M,k,K,I,H;let r=await A.getPageDataApi({platId:parseInt((h=en==null?void 0:en.value)==null?void 0:h.plat_id),pageName:a}),o=(c=r==null?void 0:r.data)==null?void 0:c.result;if((o==null?void 0:o.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==a){let L=await A.getPageDataApi({platId:parseInt((p=en==null?void 0:en.value)==null?void 0:p.plat_id),pageName:n==null?void 0:n.originPath});if(((g=(m=L==null?void 0:L.data)==null?void 0:m.result)==null?void 0:g.length)>0){let E=await ts((u=L==null?void 0:L.data)==null?void 0:u.result,n,!1);E=E==null?void 0:E.map(async b=>{var V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya;let _=[],$=(V=Object.keys(b))==null?void 0:V.filter(R=>(R==null?void 0:R.includes("name"))&&R!=="nameContents");for(let R in b)$!=null&&$.find(j=>j===R)&&_.push(b==null?void 0:b[R]);if(_=_.reverse(),(b==null?void 0:b.comp)==="Table"){let R=(me=(X=(ne=b==null?void 0:b.compData)==null?void 0:ne.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:X.contents)==null?void 0:me.map(J=>{let ve={};for(let pe in J)pe!=="id"&&pe!=="create_time"&&pe!=="update_time"&&pe!=="sort"&&pe!=="create_user_id"&&pe!=="update_user_id"&&pe!=="department_id"&&pe!=="relatedId"&&(ve[pe]=J==null?void 0:J[pe]);return J=Object.values(ve),J}),j=(F=(Me=b==null?void 0:b.compData)==null?void 0:Me.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:F.contents;if(Array.isArray(j==null?void 0:j[0])?(j[0].push({label:"排序",prop:"sort"}),j[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(te=j[0])!=null&&te.find(J=>(J==null?void 0:J.prop)==="disabled")&&(j[0]=(Z=j[0])==null?void 0:Z.filter(J=>(J==null?void 0:J.prop)!=="disabled"),j[0].unshift({label:"",prop:"disabled",sortable:!1}))):(j||(j=[]),j.push({label:"排序",prop:"sort"}),j.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),j!=null&&j.find(J=>(J==null?void 0:J.prop)==="disabled")&&(j=j==null?void 0:j.filter(J=>(J==null?void 0:J.prop)!=="disabled"),j.unshift({label:"",prop:"disabled",sortable:!1}))),j!=null&&j.some(J=>{var ve;return(J==null?void 0:J.calculatorFilter)&&((ve=J==null?void 0:J.calculatorFilter)==null?void 0:ve.includes("Auto"))})&&(R=await vt(R,j,"Auto"),R=R==null?void 0:R.map(J=>Object.values(J))),b!=null&&b.fatherSyncContents){Array.isArray((se=b==null?void 0:b.fatherSyncContents)==null?void 0:se[0])&&(b.fatherSyncContents=(Be=b==null?void 0:b.fatherSyncContents)==null?void 0:Be[0]);let J=(Ve=Ei.value)==null?void 0:Ve.find(ve=>(ve==null?void 0:ve.condition)==="child");b.fatherSyncContents=(he=b==null?void 0:b.fatherSyncContents)==null?void 0:he.map(ve=>{var pe,ya,aa,ce,ga,Ae;return((ya=ve==null?void 0:ve.menus)==null?void 0:ya[((pe=ve==null?void 0:ve.menus)==null?void 0:pe.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((ce=ve==null?void 0:ve.menus)==null?void 0:ce[((aa=ve==null?void 0:ve.menus)==null?void 0:aa.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ae=ve.menus)==null?void 0:Ae.slice(0,((ga=ve.menus)==null?void 0:ga.length)-1)),ve})}if(b!=null&&b.sonSyncContents){Array.isArray((N=b==null?void 0:b.sonSyncContents)==null?void 0:N[0])&&(b.sonSyncContents=(ie=b==null?void 0:b.sonSyncContents)==null?void 0:ie[0]);let J=(U=Ei.value)==null?void 0:U.find(ve=>(ve==null?void 0:ve.condition)==="child");b.sonSyncContents=(De=b==null?void 0:b.sonSyncContents)==null?void 0:De.map(ve=>{var pe,ya,aa,ce,ga,Ae;return((ya=ve==null?void 0:ve.menus)==null?void 0:ya[((pe=ve==null?void 0:ve.menus)==null?void 0:pe.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((ce=ve==null?void 0:ve.menus)==null?void 0:ce[((aa=ve==null?void 0:ve.menus)==null?void 0:aa.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ae=ve.menus)==null?void 0:Ae.slice(0,((ga=ve.menus)==null?void 0:ga.length)-1)),ve})}if(b!=null&&b.relatedQuotes){Array.isArray((Oe=b==null?void 0:b.relatedQuotes)==null?void 0:Oe[0])&&(b.relatedQuotes=(Fe=b==null?void 0:b.relatedQuotes)==null?void 0:Fe[0]);let J=(ea=Ei.value)==null?void 0:ea.find(ve=>(ve==null?void 0:ve.condition)==="child");b.relatedQuotes=(Ba=b==null?void 0:b.relatedQuotes)==null?void 0:Ba.map(ve=>{var pe,ya,aa,ce,ga,Ae;return((ya=ve==null?void 0:ve.menus)==null?void 0:ya[((pe=ve==null?void 0:ve.menus)==null?void 0:pe.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(J==null?void 0:J.value):((ce=ve==null?void 0:ve.menus)==null?void 0:ce[((aa=ve==null?void 0:ve.menus)==null?void 0:aa.length)-1])==="/"&&(J==null?void 0:J.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Ae=ve.menus)==null?void 0:Ae.slice(0,((ga=ve.menus)==null?void 0:ga.length)-1)),ve})}b={filter:(ua=(ee=b==null?void 0:b.compData)==null?void 0:ee.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:ua.contents,key:b==null?void 0:b.comp,name:_,tableColumns:j,tableContents:R,menuFilter:b==null?void 0:b.menuFilter,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}else{let R=(Se=(sa=(ue=b==null?void 0:b.compData)==null?void 0:ue.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:sa.contents)==null?void 0:Se.map(J=>(J==null?void 0:J.value)??"");R=[R];let j=(Ke=(ze=(oe=b==null?void 0:b.compData)==null?void 0:oe.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:ze.contents)==null?void 0:Ke.map(J=>(J.value="",J));b={contents:R,filter:(Ya=(ca=b==null?void 0:b.compData)==null?void 0:ca.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:Ya.contents,key:b==null?void 0:b.comp,name:_,value:j,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}return b.isShow=!1,b}),E=await Promise.all(E);let x=[{key:"menuPath",contents:[{path:a,fatherPath:(k=(M=(D=L==null?void 0:L.data)==null?void 0:D.result)==null?void 0:M[0])==null?void 0:k.father_name,isShow:!1}]},{key:a,contents:E}];await A.createPlatFormDataApi({platId:parseInt((K=en==null?void 0:en.value)==null?void 0:K.plat_id),changeData:x});let w=await A.getPageDataApi({platId:parseInt((I=en==null?void 0:en.value)==null?void 0:I.plat_id),pageName:a});o=(H=w==null?void 0:w.data)==null?void 0:H.result}}l&&await sc(o,!!(n!=null&&n.originPath));let s=await ts(o,n);return l&&(s=await Wp(s)),s==null?void 0:s.filter(L=>L)},us=async a=>{var r,o,s,h,c,p,m,g,u,D,M;let l=(r=a==null?void 0:a.menus)==null?void 0:r.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((s=(o=a.value)==null?void 0:o.split(" "))==null?void 0:s[0]));let n=await Jr(l,!1);if(n=(h=n==null?void 0:n.filter(k=>{var K,I;return(k==null?void 0:k.name)===((I=a==null?void 0:a.groups)==null?void 0:I[((K=a==null?void 0:a.groups)==null?void 0:K.length)-1])}))==null?void 0:h[0],(p=(c=n==null?void 0:n.compData)==null?void 0:c.find(k=>(k==null?void 0:k.key)==="tableContents"))!=null&&p.contents){n=(g=(m=n==null?void 0:n.compData)==null?void 0:m.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:g.contents;let k=((u=a==null?void 0:a.words)==null?void 0:u[0])??(a==null?void 0:a.prop);return n=n==null?void 0:n.filter(K=>{var I,H,L,E;return(K==null?void 0:K[a!=null&&a.endChildMenu?k:(I=a==null?void 0:a.words)==null?void 0:I[0]])===(a!=null&&a.relatedWords&&((H=a==null?void 0:a.relatedWords)==null?void 0:H.length)>0?(E=(L=a.value)==null?void 0:L.split(" "))==null?void 0:E[0]:a.value)}),n==null?void 0:n[0]}else{let k=(M=(D=n==null?void 0:n.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:M.contents,K={};return k==null||k.forEach(I=>{K[I.prop]=I.value}),K}},Kp={key:0,class:"extra-button-content"},Gp={class:"table-operator-wrap"},Yp={key:0,class:"extra-button-filter"},Jp={key:1,class:"extra-header"},Xp=["onClick"],Zp={class:"table-op-text"},Qp={class:"table-op-text"},ef={class:"drop-menu",style:{width:"120px"}},af=["onClick"],lf={key:0},rf={key:1},nf=["onClick"],of={class:"table-op-text"},tf={key:1,class:"extra-button-content tabs-button-wrapper"},sf={class:"table-operator-wrap"},cf={class:"extra-button-filter"},uf={key:0,class:"extra-header"},df={class:"table-op-action"},pf={class:"table-op-text"},ff={class:"drop-menu",style:{width:"120px"}},hf={key:0},vf={key:1},mf=["onClick"],yf={class:"table-op-text"},gf={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const n=l,r=a,o=()=>{const $=(r==null?void 0:r.menuFilter)||[];return Array.isArray($)&&($==null?void 0:$.some(V=>{const ne=typeof V=="string"?V:JSON.stringify(V);return ne==null?void 0:ne.includes("HideGroup=Yes")}))},s=e.ref(""),h=e.ref(!1),c=e.ref(!1),p=e.ref([]),m=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),g=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function u($,V){return $.map(ne=>{const X={...ne};return V.forEach(me=>{delete X[me]}),X})}function D($){if(!$||$.t!=="n")return($==null?void 0:$.v)??"";const V=$.v;if($.z){const ne=String($.z).toLowerCase(),X=["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 F of X)if(ne.includes(F))return M(V);const me=/[ymdhms]/.test(ne),Me=/^[0#\.\,\s]+$/.test(ne.replace(/[\\\/\-:]/g,""));if(me&&!Me)return M(V)}if(V>=1&&V<=73050){if(V<5e3)return V;if(V>=5e3&&V<4e4){const ne=Math.floor((V-25569)/365.25)+1970;return ne>=1970&&ne<=2e3&&$.z&&/[ymd]/.test(String($.z).toLowerCase())?M(V):V}if(V>=4e4)return M(V)}return V}function M($){if(typeof $!="number")return $;try{const V=new Date(($-25569)*86400*1e3);if(isNaN(V.getTime()))return $;const ne=V.getFullYear(),X=String(V.getMonth()+1).padStart(2,"0"),me=String(V.getDate()).padStart(2,"0");return`${ne}-${X}-${me}`}catch{return $}}const k=$=>{const V=$.raw;if(!V)return;const ne=new FileReader;ne.onload=X=>{try{const me=new Uint8Array(X.target.result),Me=de.readSync(me,{type:"array"}),F=Me.SheetNames[0],te=Me.Sheets[F],se=de.utils.decode_range(te["!ref"]).e.c+1,Be=new Array(se).fill(""),Ve=[];for(const De in te){if(De[0]==="!")continue;const{r:Oe,c:Fe}=de.utils.decode_cell(De),ea=te[De];let Ba=D(ea);if((Ba==null||Ba==="")&&(Ba=""),Oe===0)Be[Fe]=Ba;else{if(!Ve[Oe-1]){Ve[Oe-1]={};for(let ee=0;ee<se;ee++)Ve[Oe-1][`col_${ee}`]=""}Ve[Oe-1][`col_${Fe}`]=Ba}}for(let De=0;De<se;De++)Be[De]===void 0&&(Be[De]="");const he=[];for(let De=0;De<Be.length;De++)(!Be[De]||Be[De].toString().trim()==="")&&he.push(De);let N,ie;(he==null?void 0:he.length)>0?(Ua.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=Be.filter((De,Oe)=>!he.includes(Oe)),ie=u(Ve,he==null?void 0:he.map(De=>`col_${De}`))):(N=Be,ie=Ve);const U=Ve==null?void 0:Ve[0];if(!(U!=null&&U.hasOwnProperty("col_0")))return Ua.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",N,ie)}catch(me){throw Ua.ElMessage.error(me.message),new Error(me.message)}},ne.readAsArrayBuffer(V)},K=$=>{var ne;const V=(ne=p.value)==null?void 0:ne.reduce((X,me,Me)=>(Me===0?X[me.label]=$:X[me.label]=me==null?void 0:me.value,X),{});n("filter",V,$,!0)},I=($,V={})=>{n("buttonClick",$,"",V)},H=$=>{var V,ne;p.value=(ne=(V=de.getColumnChild(A.cloneDeep($)))==null?void 0:V.filter(X=>(X==null?void 0:X.label)!==""&&(X==null?void 0:X.label)!=="操作"))==null?void 0:ne.map(X=>({label:(X==null?void 0:X.label)??"",value:"",name:(X==null?void 0:X.prop)??"",isFormColHidden:X==null?void 0:X.isTableColHidden,width:2,prop:(X==null?void 0:X.prop)??""}))},L=e.ref(!1),E=$=>{var V;if(($==null?void 0:$.buttonName)==="确认"&&(n("filter",$==null?void 0:$.content),L.value=($==null?void 0:$.content)&&Object.values($==null?void 0:$.content).length>0),($==null?void 0:$.buttonName)==="清空"){const ne=A.cloneDeep($==null?void 0:$.content);for(const X in ne)ne[X]="";p.value=(V=p.value)==null?void 0:V.map(X=>({...X,value:""})),n("filter",ne),L.value=!1}h.value=!1},x=()=>{h.value=!h.value,c.value=!0},w=()=>{var V,ne;p.value=(V=p.value)==null?void 0:V.map(X=>({...X,value:""}));const $=(ne=p.value)==null?void 0:ne.reduce((X,me)=>(X[me.label]=me.value,X),{});n("filter",$)},b=e.ref(null);let _;return _=$=>{var me;if(!h.value)return;const V=(me=b==null?void 0:b.value)==null?void 0:me.$el,ne=V==null?void 0:V.contains($.target);let X=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Me=>{Me.contains($.target)&&(X=!0)}),!ne&&!X&&(h.value=!1)},e.onMounted(()=>{document.addEventListener("click",_),H(r.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",_)}),e.watch(()=>r.columns,()=>{H(r.columns)},{deep:!0,immediate:!0}),($,V)=>{var te,Z,se,Be,Ve,he,N,ie;const ne=e.resolveComponent("el-icon"),X=e.resolveComponent("svg-icon"),me=e.resolveComponent("el-input"),Me=e.resolveComponent("el-upload"),F=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Kp,[o()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(r==null?void 0:r.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((r==null?void 0:r.level)-1)*12+"px",fontWeight:600-((r==null?void 0:r.level)-1)*100>=400?600-((r==null?void 0:r.level)-1)*100:400,fontSize:17-(r==null?void 0:r.level)>=14?17-(r==null?void 0:r.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Gp,[r!=null&&r.filterShow?(e.openBlock(),e.createElementBlock("div",Yp,[e.createVNode(Ru,{trigger:"contextmenu",ref_key:"popOverRef",ref:b,title:"",width:800,placement:"bottom-start",isVisible:h.value,"onUpdate:isVisible":V[4]||(V[4]=U=>h.value=U)},{reference:e.withCtx(()=>{var U,De,Oe,Fe;return[e.createVNode(me,{modelValue:s.value,"onUpdate:modelValue":V[0]||(V[0]=ea=>s.value=ea),style:{"min-width":"80px"},placeholder:L.value?(Oe=(De=(U=a.filterValues)==null?void 0:U.filter(ea=>ea))==null?void 0:De.slice(0,3))==null?void 0:Oe.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:K,disabled:((Fe=p.value)==null?void 0:Fe.length)===0},{suffix:e.withCtx(()=>{var ea,Ba;return[!s.value&&((Ba=(ea=a.filterValues)==null?void 0:ea.filter(ee=>ee))!=null&&Ba.join("/"))?(e.openBlock(),e.createBlock(ne,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(X,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:V[1]||(V[1]=e.withModifiers(()=>{},["stop"])),onKeyup:V[2]||(V[2]=e.withModifiers(()=>{},["stop"])),onKeypress:V[3]||(V[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,buttonValue:m.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:m.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((te=a.buttons)==null?void 0:te.length)>0?(e.openBlock(),e.createElementBlock("div",Jp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=a.buttons)==null?void 0:Z.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Oe;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:ea=>I(U==null?void 0:U.label)},[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Zp,e.toDisplayString(U==null?void 0:U.label),1)],10,Xp)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(al._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",Qp,e.toDisplayString(U==null?void 0:U.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",ef,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>{var ea,Ba;return e.openBlock(),e.createElementBlock("div",{key:Fe==null?void 0:Fe.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:ee=>!a.lockingPage&&I(Fe==null?void 0:Fe.label)},[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(ea=Fe==null?void 0:Fe.label)!=null&&ea.includes("选中")?(e.openBlock(),e.createElementBlock("span",lf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ba=Fe==null?void 0:Fe.label)!=null&&Ba.includes("全部")?(e.openBlock(),e.createElementBlock("span",rf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,af)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Fe=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(X,{class:"table-op-icon",name:((Oe=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Oe.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",of,e.toDisplayString(U==null?void 0:U.label),1)],10,nf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",tf,[e.createElementVNode("div",sf,[e.createElementVNode("div",cf,[e.createVNode(me,{modelValue:s.value,"onUpdate:modelValue":V[5]||(V[5]=U=>s.value=U),style:{"min-width":"80px"},placeholder:L.value?(Ve=(Be=(se=a.filterValues)==null?void 0:se.filter(U=>U))==null?void 0:Be.slice(0,3))==null?void 0:Ve.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:K,disabled:((he=p.value)==null?void 0:he.length)===0},{suffix:e.withCtx(()=>{var U,De;return[!s.value&&((De=(U=a.filterValues)==null?void 0:U.filter(Oe=>Oe))!=null&&De.join("/"))?(e.openBlock(),e.createBlock(ne,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(X,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((N=a.buttons)==null?void 0:N.length)>0?(e.openBlock(),e.createElementBlock("div",uf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ie=a.buttons)==null?void 0:ie.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Oe;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Fe;return[e.createElementVNode("div",df,[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"]),e.createElementVNode("span",pf,e.toDisplayString(U==null?void 0:U.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(al._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(F,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Fe;return[e.createVNode(X,{class:"table-op-icon",name:(Fe=g==null?void 0:g.find(ea=>(ea==null?void 0:ea.label)===(U==null?void 0:U.label)))==null?void 0:Fe.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(U==null?void 0:U.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",ff,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Fe=>(e.openBlock(),e.createBlock(F,{key:Fe==null?void 0:Fe.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:ea=>I(Fe==null?void 0:Fe.label)},{default:e.withCtx(()=>{var ea,Ba;return[e.createTextVNode(e.toDisplayString(Fe==null?void 0:Fe.label),1),(ea=Fe==null?void 0:Fe.label)!=null&&ea.includes("选中")?(e.openBlock(),e.createElementBlock("span",hf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ba=Fe==null?void 0:Fe.label)!=null&&Ba.includes("全部")?(e.openBlock(),e.createElementBlock("span",vf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Fe=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(X,{class:"table-op-icon",name:(Oe=g==null?void 0:g.find(Fe=>(Fe==null?void 0:Fe.label)===(U==null?void 0:U.label)))==null?void 0:Oe.icon},null,8,["name"]),e.createElementVNode("span",yf,e.toDisplayString(U==null?void 0:U.label),1)],10,mf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},bf=Zl._export_sfc(gf,[["__scopeId","data-v-44a17652"]]),kf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,n)=>{const r=e.resolveComponent("el-table-column"),o=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(o,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,s=>{var h;return e.openBlock(),e.createBlock(r,{key:s==null?void 0:s.prop,label:s==null?void 0:s.label,prop:s==null?void 0:s.prop,fixed:(s==null?void 0:s.prop)==="operate"?"right":s==null?void 0:s.fixed,align:(s==null?void 0:s.align)??"left","show-overflow-tooltip":(s==null?void 0:s.showOverflowTooltip)??!0,width:s==null?void 0:s.width,"min-width":(s==null?void 0:s.minWidth)||((s==null?void 0:s.prop)==="operate"?80:(((h=s==null?void 0:s.label)==null?void 0:h.length)*2||4)*27)},{default:e.withCtx(c=>[e.renderSlot(l.$slots,"content",{row:c.row,column:c.column,$index:c.$index,scope:c}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,(p,m)=>(e.openBlock(),e.createBlock(al._sfc_main$2,{key:m,column:p,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(g,u)=>({name:u,fn:e.withCtx(({row:D,slotData:M,item:k,column:K})=>[e.renderSlot(l.$slots,u,e.mergeProps({ref_for:!0},M??D,{item:k??p,slotData:M??D,row:D,column:K,columnProp:p}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class xf extends Bl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,n,r,o){const s=this,h=new Bl.FileLoader(s.manager);h.setPath(s.path),h.setResponseType("arraybuffer"),h.setRequestHeader(s.requestHeader),h.setWithCredentials(s.withCredentials),h.load(l,function(c){try{n(s.parse(c))}catch(p){o?o(p):console.error(p),s.manager.itemError(l)}},r,o)}_getDataView(l,n,r,o){switch(r){case"F":return o===8?l.getFloat64(n,this.littleEndian):l.getFloat32(n,this.littleEndian);case"I":return o===1?l.getInt8(n):o===2?l.getInt16(n,this.littleEndian):l.getInt32(n,this.littleEndian);case"U":return o===1?l.getUint8(n):o===2?l.getUint16(n,this.littleEndian):l.getUint32(n,this.littleEndian)}}parse(l){function n(M,k){const K=M.length,I=new Uint8Array(k);let H=0,L=0,E,x,w;do if(E=M[H++],E<32){if(E++,L+E>k)throw new Error("Output buffer is not large enough");if(H+E>K)throw new Error("Invalid compressed data");do I[L++]=M[H++];while(--E)}else{if(x=E>>5,w=L-((E&31)<<8)-1,H>=K)throw new Error("Invalid compressed data");if(x===7&&(x+=M[H++],H>=K))throw new Error("Invalid compressed data");if(w-=M[H++],L+x+2>k)throw new Error("Output buffer is not large enough");if(w<0)throw new Error("Invalid compressed data");if(w>=L)throw new Error("Invalid compressed data");do I[L++]=I[w++];while(--x+2)}while(H<K);return I}function r(M){const k={},K=new Uint8Array(M);let I="",H="",L=0,E=!1;const x=K.length;for(;L<x&&E===!1;){const $=String.fromCharCode(K[L++]);$===`
|
|
2
2
|
`||$==="\r"?(H.trim().toLowerCase().startsWith("data")&&(E=!0),H=""):H+=$,I+=$}const w=I.search(/[\r\n]DATA\s(\S*)\s/i),b=/[\r\n]DATA\s(\S*)\s/i.exec(I.slice(w-1));if(k.data=b[1],k.headerLen=b[0].length+w,k.str=I.slice(0,k.headerLen),k.str=k.str.replace(/#.*/gi,""),k.version=/^VERSION (.*)/im.exec(k.str),k.fields=/^FIELDS (.*)/im.exec(k.str),k.size=/^SIZE (.*)/im.exec(k.str),k.type=/^TYPE (.*)/im.exec(k.str),k.count=/^COUNT (.*)/im.exec(k.str),k.width=/^WIDTH (.*)/im.exec(k.str),k.height=/^HEIGHT (.*)/im.exec(k.str),k.viewpoint=/^VIEWPOINT (.*)/im.exec(k.str),k.points=/^POINTS (.*)/im.exec(k.str),k.version!==null&&(k.version=parseFloat(k.version[1])),k.fields=k.fields!==null?k.fields[1].split(" "):[],k.type!==null&&(k.type=k.type[1].split(" ")),k.width!==null&&(k.width=parseInt(k.width[1])),k.height!==null&&(k.height=parseInt(k.height[1])),k.viewpoint!==null&&(k.viewpoint=k.viewpoint[1]),k.points!==null&&(k.points=parseInt(k.points[1],10)),k.points===null&&(k.points=k.width*k.height),k.size!==null&&(k.size=k.size[1].split(" ").map(function($){return parseInt($,10)})),k.count!==null)k.count=k.count[1].split(" ").map(function($){return parseInt($,10)});else{k.count=[];for(let $=0,V=k.fields.length;$<V;$++)k.count.push(1)}k.offset={};let _=0;for(let $=0,V=k.fields.length;$<V;$++)k.data==="ascii"?k.offset[k.fields[$]]=$:(k.offset[k.fields[$]]=_,_+=k.size[$]*k.count[$]);return k.rowSize=_,k}const o=r(l),s=[],h=[],c=[],p=[],m=[],g=new Bl.Color;if(o.data==="ascii"){const M=o.offset,I=new TextDecoder().decode(l).slice(o.headerLen).split(`
|
|
3
3
|
`);for(let H=0,L=I.length;H<L;H++){if(I[H]==="")continue;const E=I[H].split(" ");if(M.x!==void 0&&(s.push(parseFloat(E[M.x])),s.push(parseFloat(E[M.y])),s.push(parseFloat(E[M.z]))),M.rgb!==void 0){const x=o.fields.findIndex(X=>X==="rgb"),w=o.type[x],b=parseFloat(E[M.rgb]);let _=b;if(w==="F"){const X=new Float32Array(1);X[0]=b,_=new Int32Array(X.buffer)[0]}const $=(_>>16&255)/255,V=(_>>8&255)/255,ne=(_>>0&255)/255;g.setRGB($,V,ne,Bl.SRGBColorSpace),c.push(g.r,g.g,g.b)}M.normal_x!==void 0&&(h.push(parseFloat(E[M.normal_x])),h.push(parseFloat(E[M.normal_y])),h.push(parseFloat(E[M.normal_z]))),M.intensity!==void 0&&p.push(parseFloat(E[M.intensity])),M.label!==void 0&&m.push(parseInt(E[M.label]))}}if(o.data==="binary_compressed"){const M=new Uint32Array(l.slice(o.headerLen,o.headerLen+8)),k=M[0],K=M[1],I=n(new Uint8Array(l,o.headerLen+8,k),K),H=new DataView(I.buffer),L=o.offset;for(let E=0;E<o.points;E++){if(L.x!==void 0){const x=o.fields.indexOf("x"),w=o.fields.indexOf("y"),b=o.fields.indexOf("z");s.push(this._getDataView(H,o.points*L.x+o.size[x]*E,o.type[x],o.size[x])),s.push(this._getDataView(H,o.points*L.y+o.size[w]*E,o.type[w],o.size[w])),s.push(this._getDataView(H,o.points*L.z+o.size[b]*E,o.type[b],o.size[b]))}if(L.rgb!==void 0){const x=o.fields.indexOf("rgb"),w=H.getUint8(o.points*L.rgb+o.size[x]*E+2)/255,b=H.getUint8(o.points*L.rgb+o.size[x]*E+1)/255,_=H.getUint8(o.points*L.rgb+o.size[x]*E+0)/255;g.setRGB(w,b,_,Bl.SRGBColorSpace),c.push(g.r,g.g,g.b)}if(L.normal_x!==void 0){const x=o.fields.indexOf("normal_x"),w=o.fields.indexOf("normal_y"),b=o.fields.indexOf("normal_z");h.push(this._getDataView(H,o.points*L.normal_x+o.size[x]*E,o.type[x],o.size[x])),h.push(this._getDataView(H,o.points*L.normal_y+o.size[w]*E,o.type[w],o.size[w])),h.push(this._getDataView(H,o.points*L.normal_z+o.size[b]*E,o.type[b],o.size[b]))}if(L.intensity!==void 0){const x=o.fields.indexOf("intensity");p.push(this._getDataView(H,o.points*L.intensity+o.size[x]*E,o.type[x],o.size[x]))}if(L.label!==void 0){const x=o.fields.indexOf("label");m.push(H.getInt32(o.points*L.label+o.size[x]*E,this.littleEndian))}}}if(o.data==="binary"){const M=new DataView(l,o.headerLen),k=o.offset;for(let K=0,I=0;K<o.points;K++,I+=o.rowSize){if(k.x!==void 0){const H=o.fields.indexOf("x"),L=o.fields.indexOf("y"),E=o.fields.indexOf("z");s.push(this._getDataView(M,I+k.x,o.type[H],o.size[H])),s.push(this._getDataView(M,I+k.y,o.type[L],o.size[L])),s.push(this._getDataView(M,I+k.z,o.type[E],o.size[E]))}if(k.rgb!==void 0){const H=M.getUint8(I+k.rgb+2)/255,L=M.getUint8(I+k.rgb+1)/255,E=M.getUint8(I+k.rgb+0)/255;g.setRGB(H,L,E,Bl.SRGBColorSpace),c.push(g.r,g.g,g.b)}if(k.normal_x!==void 0){const H=o.fields.indexOf("normal_x"),L=o.fields.indexOf("normal_y"),E=o.fields.indexOf("normal_z");h.push(this._getDataView(M,I+k.normal_x,o.type[H],o.size[H])),h.push(this._getDataView(M,I+k.normal_y,o.type[L],o.size[L])),h.push(this._getDataView(M,I+k.normal_z,o.type[E],o.size[E]))}if(k.intensity!==void 0){const H=o.fields.indexOf("intensity");p.push(this._getDataView(M,I+k.intensity,o.type[H],o.size[H]))}k.label!==void 0&&m.push(M.getInt32(I+k.label,this.littleEndian))}}const u=new Bl.BufferGeometry;s.length>0&&u.setAttribute("position",new Bl.Float32BufferAttribute(s,3)),h.length>0&&u.setAttribute("normal",new Bl.Float32BufferAttribute(h,3)),c.length>0&&u.setAttribute("color",new Bl.Float32BufferAttribute(c,3)),p.length>0&&u.setAttribute("intensity",new Bl.Float32BufferAttribute(p,1)),m.length>0&&u.setAttribute("label",new Bl.Int32BufferAttribute(m,1)),u.computeBoundingSphere();const D=new Bl.PointsMaterial({size:.005});return c.length>0&&(D.vertexColors=!0),new Bl.Points(u,D)}}const wf=A.useModelComp(A.pinia),{systemPath:ds}=A.storeToRefs(wf),vo=e.ref(),ps=new WeakMap;function _f(a,l,n,r,o){const s=async D=>{try{const M=await A.platformDownloadFile({url:D});if(M.status!==200)throw new Error(`下载失败: ${M.status}`);return M.data}catch(M){throw console.error("addModelFromUrl失败:",M),M}},h=D=>new Promise((M,k)=>{const K=new FileReader;K.onload=I=>{try{const H=I.target.result,E=new Mn.MTLLoader().parse(H);E.preload(),M(E)}catch(H){k(H)}},K.onerror=()=>{k(new Error("MTL文件读取失败"))},K.readAsText(D)}),c=async D=>{const M={materials:{},create:function(k){return this.materials[k]?this.materials[k]:(console.warn(`Material '${k}' not found, using default material`),new Bl.MeshPhongMaterial({color:8947848,side:Bl.DoubleSide}))},getAsArray:function(){const k=[];for(const K in this.materials)k.push(this.materials[K]);return k},preload:function(){for(const k in this.materials)this.materials[k].map&&(this.materials[k].map.needsUpdate=!0)}};for(const k of D){const K=await h(k);Object.assign(M.materials,K.materials)}return M.preload(),M},p=async(D,M=[])=>new Promise((k,K)=>{const I=new FileReader;I.onload=async H=>{try{const L=H.target.result;let E=null;M&&M.length>0&&(M.length===1?E=await h(M[0]):E=await c(M));const x=new Mn.OBJLoader;E&&x.setMaterials(E);const w=x.parse(L);E||w.traverse(b=>{b.isMesh&&(b.material=new Bl.MeshPhongMaterial({color:8947848,side:Bl.DoubleSide}))}),k(w)}catch(L){K(L)}},I.onerror=()=>{K(new Error("OBJ文件读取失败"))},I.readAsText(D)}),m=async D=>{var M;try{n.value=!0;const{scene:k}=a();if(!k)throw new Error("Scene not initialized");o();const K=[];for(let I=0;I<D.length;I++){const H=D[I];r.value=`正在加载模型 ${I+1}/${D.length}...`;const L=await s(H.objUrl),E=((M=H.objUrl)==null?void 0:M.split("/").pop())||`model_${I}.obj`,x=new File([L],E,{type:L.type});let w=[];if(H.mtlUrls){const _=Array.isArray(H.mtlUrls)?H.mtlUrls:[H.mtlUrls];for(let $=0;$<_.length;$++){const V=_[$],ne=await s(V),X=(V==null?void 0:V.split("/").pop())||`material_${I}_${$}.mtl`,me=new File([ne],X,{type:ne.type});w.push(me)}}const b=await p(x,w);k.add(b),l.value.push(b),K.push(b)}return n.value=!1,K}catch(k){throw console.error("加载模型失败:",k),n.value=!1,k}},g=async(D,M,k=[],K=[])=>{let I;const H=D.toLowerCase();switch(H){case".txt":case".cpt":case".obj":const L=await M.text();if(H===".txt"||H===".cpt"){const ee=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,ue=[...L.matchAll(ee)].map(oe=>({x:parseFloat(oe[1]),y:parseFloat(oe[2]),z:parseFloat(oe[3])})),sa=new Bl.BufferGeometry,Se=ue.flatMap(oe=>[oe.x,oe.y,oe.z]);if(sa.setAttribute("position",new Bl.Float32BufferAttribute(Se,3)),H===".txt"){const oe=new Bl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});I=new Bl.Points(sa,oe)}else if(H===".cpt"){const oe=new Bl.LineBasicMaterial({color:"#5B5C99",linewidth:100});I=new Bl.Line(sa,oe)}}else if(H===".obj"){const ee=new Mn.OBJLoader;if(k&&k.length>0){const ua=new Mn.MTLLoader;for(const ue of k){const sa=await ue.text(),Se=ua.parse(sa);Se.preload(),ee.setMaterials(Se);break}}I=ee.parse(L),(!k||k.length===0)&&I.traverse(ua=>{ua.isMesh&&(ua.material=new Bl.MeshPhongMaterial({color:"#B3B3D4"})),ua instanceof Bl.Mesh&&(ua.material.side=Bl.DoubleSide)})}break;case".stl":const E=await M.arrayBuffer(),w=new Mn.STLLoader().parse(E),b=new Bl.MeshPhongMaterial({color:"#B3B3D4",side:Bl.DoubleSide});I=new Bl.Mesh(w,b);break;case".nc":const _=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],$={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},V=new Bl.Group,ne=_.map(ee=>new Promise((ua,ue)=>{new Mn.STLLoader().load(ds.value===""?`/model/${ee}`:`${ds.value}\\${ee}`,Se=>{const oe=new Bl.MeshPhongMaterial({color:$[ee]||"#B3B3D4",side:Bl.DoubleSide}),ze=new Bl.Mesh(Se,oe);ua(ze)},void 0,ue)}));try{(await Promise.all(ne)).forEach(ua=>V.add(ua)),I=V}catch(ee){throw console.error("加载NC文件对应的STL文件失败:",ee),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const X=new xf,me=new Bl.Group;try{const ee=await Ua.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ua=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"}),ue=await Ua.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),sa=new Blob([ue.data],{type:"application/octet-stream;charset=UTF-8"}),Se=await new Promise((ze,Ke)=>{const ca=URL.createObjectURL(ua);X.load(ca,Ya=>{const R=new Float32Array(Ya.geometry.attributes.position.count*3);for(let j=0;j<Ya.geometry.attributes.position.count;j++)R[j*3]=1,R[j*3+1]=0,R[j*3+2]=0;Ya.geometry.setAttribute("color",new Bl.BufferAttribute(R,3)),Ya.material.vertexColors=!0,Ya.scale.set(.3,.3,.3),URL.revokeObjectURL(ca),ze(Ya)},void 0,Ke)}),oe=await new Promise((ze,Ke)=>{const ca=URL.createObjectURL(sa);X.load(ca,Ya=>{const R=new Float32Array(Ya.geometry.attributes.position.count*3);for(let j=0;j<Ya.geometry.attributes.position.count;j++)R[j*3]=0,R[j*3+1]=1,R[j*3+2]=0;Ya.geometry.setAttribute("color",new Bl.BufferAttribute(R,3)),Ya.material.vertexColors=!0,Ya.scale.set(.3,.3,.3),URL.revokeObjectURL(ca),ze(Ya)},void 0,Ke)});me.add(Se),me.add(oe),I=me}catch(ee){throw console.error("PCD文件加载失败:",ee),new Error("无法加载PCD文件")}break;case".urdf":const Me=URL.createObjectURL(M),F=new Mu.URDFLoader,te="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",Z={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},se=new WeakMap,Be=new WeakMap,Ve=new WeakMap,he=async ee=>{if(se.has(ee))return console.log(`从缓存加载: ${ee}`),se.get(ee);try{const ua=await Ua.axios.get(`${te}/${ee}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),ue=new Blob([ua.data],{type:"application/octet-stream;charset=UTF-8"});return Z.enableCache&&se.set(ee,ue),ue}catch(ua){throw console.error(`加载文件失败: ${ee}`,ua),new Error(`无法加载文件: ${ee}`)}},N=(ee="default")=>{if(Be.has(ee))return Be.get(ee);const ua=new Bl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Bl.FrontSide});return Be.set(ee,ua),ua},ie=ee=>{try{ee.isBufferGeometry&&ee.mergeVertices&&ee.mergeVertices(),ee.computeVertexNormals&&ee.computeVertexNormals(),ee.computeBoundingSphere&&ee.computeBoundingSphere(),ee.deleteAttribute&&ee.deleteAttribute("uv2")}catch(ua){console.warn("几何体优化失败,使用原始几何体:",ua)}return ee},U=async(ee,ua,ue)=>{const sa=`stl_${ua}`;if(Ve.has(sa)){const Ke=Ve.get(sa);return new Bl.Mesh(Ke,N())}const Se=await ee.arrayBuffer();let ze=new Mn.STLLoader(ue).parse(Se);return ze=ie(ze),Ve.set(sa,ze),new Bl.Mesh(ze,N())},De=async(ee,ua,ue)=>{const sa=`obj_${ua}`;if(se.has(sa))return se.get(sa).clone();const Se=await ee.text(),oe=new Mn.OBJLoader(ue),ze=ua.replace(".obj",".mtl");try{const Ya=await(await he(ze)).text(),j=new Mn.MTLLoader(ue).parse(Ya);j.preload(),oe.setMaterials(j)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${ze}`)}const Ke=oe.parse(Se);return Ke.traverse(ca=>{ca.isMesh&&(ca.geometry=ie(ca.geometry),ca.castShadow=!0,ca.receiveShadow=!0,ca.renderOrder=1)}),se.set(sa,Ke),Ke},Oe=(ee,ua)=>{const ue=new Bl.LOD;if(ue.addLevel(ee,0),ee.geometry){const sa=ee.geometry.clone(),Se=new Bl.Mesh(sa,ee.material);ue.addLevel(Se,50)}return ue};let Fe=0,ea=0;const Ba=[];F.loadMeshCb=async(ee,ua,ue,sa,Se)=>{const oe=ee.split("/").pop(),ze=ue||(()=>{});Fe++;const Ke=new Promise(async(ca,Ya)=>{try{const R=await he(oe);if(!R||R.size===0)throw new Error(`文件为空: ${oe}`);const j=oe.split(".").pop().toLowerCase();let J;switch(j){case"stl":J=await U(R,oe,ua);break;case"obj":J=await De(R,oe,ua);break;default:throw new Error(`不支持的文件格式: ${j}`)}Z.enableLOD&&J.isMesh&&(J=Oe(J,oe)),ze(J),ea++,sa&&sa({loaded:ea,total:Fe,progress:ea/Fe}),ca(J)}catch(R){console.error(`mesh文件加载失败: ${oe}`,R);const j=new Bl.Group;ze(j),ca(j);const J=new Bl.BoxGeometry(.1,.1,.1),ve=new Bl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Bl.Mesh(J,ve)}});Ba.push(Ke)};try{if(!Me){vo.value=void 0;break}if(I=await F.loadAsync(Me),console.log(`URDF文件加载完成,等待${Fe}个mesh文件加载...`),Ba.length>0)try{await Promise.allSettled(Ba),console.log(`所有mesh文件处理完成,成功加载: ${ea}/${Fe}`)}catch(ue){console.warn("部分mesh文件加载失败,但继续显示模型",ue)}I.traverse(ue=>{ue.isMesh&&(ue.castShadow=!0,ue.receiveShadow=!0,ue.renderOrder=1,ue.material&&(ue.material.needsUpdate=!0))}),console.time("计算包围盒");const ee=new Bl.Box3;ee.expandByObject(I);const ua=`urdf_${Date.now()}`;I.userData.boundingBox=ee.clone(),I.userData.modelId=ua,ps.set(ua,{box:ee.clone(),center:ee.getCenter(new Bl.Vector3),size:ee.getSize(new Bl.Vector3),maxSize:Math.max(...ee.getSize(new Bl.Vector3).toArray())}),vo.value=I,console.log("URDF模型加载完成并优化")}catch(ee){console.error("URDF加载失败:",ee),vo.value=void 0}finally{Me&&URL.revokeObjectURL(Me)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return I};return{addModelsFromUrls:m,loadModelByDefaultPath:async D=>{console.log(D);try{n.value=!0,r.value="正在加载模型...";const{scene:M}=a();if(!M)throw new Error("Scene not initialized");o(),await new Promise(K=>setTimeout(K,100));const k=[];for(let K=0;K<D.length;K++){const I=D[K],H=await g(I.suffix,I.blob,I.mtlBlobs||[],I.meshFiles||[]);H&&(M.add(H),l.value.push(H),k.push(H))}return n.value=!1,r.value="",k}catch(M){throw console.error("加载模型失败:",M),n.value=!1,r.value="",M}},urdfModel:vo,modelBoundingBoxes:ps}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(a=>{var l=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,o,s,h,c,p=function(u,D){D.parentNode.insertBefore(u,D)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(u){console&&console.log(u)}}r=function(){var u,D=document.createElement("div");D.innerHTML=a._iconfont_svg_string_4827314,(D=D.getElementsByTagName("svg")[0])&&(D.setAttribute("aria-hidden","true"),D.style.position="absolute",D.style.width=0,D.style.height=0,D.style.overflow="hidden",D=D,(u=document.body).firstChild?p(D,u.firstChild):u.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),r()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(s=r,h=a.document,c=!1,g(),h.onreadystatechange=function(){h.readyState=="complete"&&(h.onreadystatechange=null,m())})}function m(){c||(c=!0,s())}function g(){try{h.documentElement.doScroll("left")}catch{return void setTimeout(g,50)}m()}})(window);const Sf=["onClick"],Ef=e.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(null),s=e.ref(null),h=e.computed(()=>{const x=Number(n==null?void 0:n.textSize),w=de.rgbaToColor(n==null?void 0:n.textColor),b={},_={};return!Number.isNaN(x)&&x&&(b.fontSize=`${x}px`,_.fontSize=`${x}px`),w&&(b.color=w,_.color=w),{label:b,value:_}}),c=e.ref(""),p=e.ref(""),m=e.ref(!1),g=async x=>{if(x){p.value&&(URL.revokeObjectURL(p.value),p.value="");try{const w=await A.platformDownloadFile({url:x}),b=new Blob([w==null?void 0:w.data],{type:(w==null?void 0:w.headers["content-type"])||"image/*"});p.value=URL.createObjectURL(b)}catch{p.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,x=>{x&&(c.value=x)},{immediate:!0}),e.watch(c,x=>{g(x)},{immediate:!0});const u=()=>{var x;(x=s.value)==null||x.click()},D=async x=>{var _,$,V;const w=x.target,b=(_=w==null?void 0:w.files)==null?void 0:_[0];if(!b){w.value="";return}m.value=!0;try{const ne=new FormData;ne.append("file",b);const X=await A.platformUploadFile(ne),me=(V=($=X==null?void 0:X.data)==null?void 0:$.result)==null?void 0:V.url;me?(c.value=me,r("update:backGroundImage",me),g(me),Ua.ElMessage.success("背景图片上传成功")):Ua.ElMessage.error("背景图片上传失败")}catch{Ua.ElMessage.error("背景图片上传失败")}finally{m.value=!1,w.value=""}},M=e.computed(()=>p.value?{backgroundImage:`url(${p.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),k=x=>al.getComponent(x),K=x=>{if(!x)return;const w=x.querySelector("input, textarea, .el-input__inner");w&&typeof w.focus=="function"&&w.focus()},I=(x,w,b)=>{n.disabled||x.field&&(o.value=w,e.nextTick(()=>{K(b.currentTarget)}))},H=()=>{o.value=null},L=x=>{var b;const w=((b=x==null?void 0:x.field)==null?void 0:b.value)??(x==null?void 0:x.value);return w==null||w===""?"-":w},E=x=>{const w=x!=null&&x.width&&x.width>0?x.width:1,_=`calc((100% - ${(w-1)*16}px) / ${w})`;return{flex:`0 0 ${_}`,maxWidth:_,minWidth:"140px",boxSizing:"border-box"}};return(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(M.value),onClick:w[2]||(w[2]=b=>(n==null?void 0:n.backGround)&&u())},[n!=null&&n.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:w[0]||(w[0]=e.withModifiers(b=>u(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:s,type:"file",accept:"image/*",style:{display:"none"},onChange:D},null,544),w[3]||(w[3]=e.createElementVNode("img",{src:al._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.items,(b,_)=>{var $,V,ne,X,me,Me,F,te;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:_,style:e.normalizeStyle(E(b)),onClick:w[1]||(w[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle(h.value.label)},e.toDisplayString(b==null?void 0:b.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(h.value.value),onClick:Z=>{var se;return(se=b.field)!=null&&se.isNoClick?null:I(b,_,Z)}},[o.value===_&&b.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k((($=b.field)==null?void 0:$.type)??"Input")),{key:0,modelValue:b.field.value,"onUpdate:modelValue":Z=>b.field.value=Z,isEdit:!0,disabled:(V=b.field)==null?void 0:V.disabled,content:((ne=b.field)==null?void 0:ne.contents)??[],optionUrl:b.field,originalValue:(X=b.field)==null?void 0:X.value,config:(me=b.field)==null?void 0:me.config,configModel:((Me=b.field)==null?void 0:Me.prop)??((F=b.field)==null?void 0:F.name),selectedTagList:((te=b.field)==null?void 0:te.selectValue)??[],onBlur:H,onBlurChange:H},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(L(b)),1)],64))],12,Sf)],4)}),128))],4))}}),Cf=Zl._export_sfc(Ef,[["__scopeId","data-v-d73001ab"]]),cc=A.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),Df={class:"calculator-content"},Bf={class:"calculator-child"},Tf={class:"calculator-child"},Nf=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),n=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(r,o)=>(e.openBlock(),e.createElementBlock("div",Df,[e.createElementVNode("div",Bf,[e.createVNode(al.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Tf,[e.createVNode(al.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Af=Zl._export_sfc(Nf,[["__scopeId","data-v-73db0fe7"]]),mt=(a,l)=>{let n=a,r=l;return Array.isArray(n)&&(n=n==null?void 0:n.map((o,s)=>{if(Array.isArray(o)){let h={};return o=o==null?void 0:o.forEach((c,p)=>{var m;(m=r==null?void 0:r[p])!=null&&m.prop?h[r[p].prop]=c:Array.isArray(c)&&(h.children=mt(c,r))}),Object.assign(h,{id:s})}else return o})),n},uc=(a,l,n)=>{let r=a,o=l;return r=r==null?void 0:r.map((s,h)=>{var c,p;return!Array.isArray(s)||!((c=o==null?void 0:o[h])!=null&&c.label)&&!n||(s.unshift(((p=o==null?void 0:o[h])==null?void 0:p.label)??""),s.some(m=>Array.isArray(m))&&(s=s==null?void 0:s.map(m=>{var g;return Array.isArray(m)&&(m=uc(m,(g=o==null?void 0:o[h])==null?void 0:g.children,n)),m}))),s}),r},zf=(a,l,n)=>{if(l==="")return a==null?void 0:a.filter(r=>(r==null?void 0:r.id)!==n);{const r=l.split("-");return Mf(a,r,n)}},Mf=(a,l,n)=>{let r=a,o=l;return(o==null?void 0:o.length)===0?r=r==null?void 0:r.filter(s=>s.id!==n):r=r==null?void 0:r.map(s=>(s.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),s=dc(s,o,n)),s)),r},dc=(a,l,n)=>{var s,h;let r=a,o=l;return(o==null?void 0:o.length)===0?r.children=(s=r.children)==null?void 0:s.filter(c=>c.id!==n):r.children=(h=r.children)==null?void 0:h.map(c=>(c.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),c=dc(c,o,n)),c)),r},If=(a,l,n)=>{if(l==="")return n;{const r=l.split("-");return Of(a,r,n)}},Of=(a,l,n)=>{let r=a,o=l;return(o==null?void 0:o.length)===0?r=n:r=r==null?void 0:r.map(s=>(s.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),s=pc(s,o,n)),s)),r},pc=(a,l,n)=>{var s;let r=a,o=l;return(o==null?void 0:o.length)===0?r.children=n:r.children=(s=r.children)==null?void 0:s.map(h=>(h.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),h=pc(h,o,n)),h)),r};class Lf{constructor(l={}){Yr(this,"url");Yr(this,"heartbeatInterval");Yr(this,"socket",null);Yr(this,"isConnected",!1);Yr(this,"heartTimer",null);Yr(this,"canvas",null);Yr(this,"ctx",null);Yr(this,"mainCamCutMode",0);Yr(this,"pMainShowStartX",0);Yr(this,"pMainShowStartY",0);Yr(this,"onLog");Yr(this,"onDevCount");Yr(this,"onResolution");Yr(this,"onCameraStatus");Yr(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,n,r){var h;(h=this.canvas)!=null&&h.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const o=document.createElement("canvas");o.style.border="solid 1px #A0A0A0",o.id="MainCamCanvas",o.width=n,o.height=r;const s=o.getContext("2d");if(!s)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(o),this.canvas=o,this.ctx=s}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,n)=>{const r=new WebSocket(this.url);r.binaryType="arraybuffer",r.onopen=()=>{this.socket=r,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},r.onerror=o=>{this.isConnected=!1,this.log("socket.onerror"),n(o)},r.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},r.onmessage=o=>{this.handleMessage(o)}})}destroy(){var l;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(l=this.canvas)!=null&&l.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(l=0){this.sendBytes(new Uint8Array([119,136,81,l]))}chooseResolution(l){if(!Array.isArray(l)||l.length===0)return null;const n=l.find(o=>o.width===2592&&o.height===1944);return n||[...l].sort((o,s)=>s.width*s.height-o.width*o.height)[0]||null}openCamera(l=0,n=1280,r=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const o=new Uint8Array(12);o[0]=119,o[1]=136,o[2]=1,o[3]=l,o[4]=this.canvas.width>>8&255,o[5]=this.canvas.width&255,o[6]=this.canvas.height>>8&255,o[7]=this.canvas.height&255,o[8]=n>>8&255,o[9]=n&255,o[10]=r>>8&255,o[11]=r&255,this.sendBytes(o)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const o=new Uint8Array(12);o[0]=119,o[1]=136,o[2]=16,o[3]=0,o[4]=0,o[5]=0,o[6]=0,o[7]=0,o[8]=1,o[9]=0,o[10]=0,o[11]=0,this.sendBytes(o)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(l){var n;(n=this.onLog)==null||n.call(this,l)}sendBytes(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(l.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(l){var o,s,h,c,p,m;const n=new Uint8Array(l.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 r=n[2];if(r===80){const g=n[3],u=n.length-4,D=new Uint8Array(u);for(let K=0;K<u;K++)D[K]=n[4+K];const k=decodeURIComponent(this.byteToString(D)).split("|");(o=this.onDevCount)==null||o.call(this,g,k);return}if(r===81){const g=n[3]||0,u=[];for(let D=0;D<g;D++){const M=(n[4+D*4+0]||0)*256+(n[4+D*4+1]||0),k=(n[4+D*4+2]||0)*256+(n[4+D*4+3]||0);u.push({width:M,height:k,text:`${M}*${k}`})}(s=this.onResolution)==null||s.call(this,g,u);return}if(r===1){n[3]===1&&((h=this.onCameraStatus)==null||h.call(this,"opened")),n[3]===3&&((c=this.onCameraStatus)==null||c.call(this,"closed"));return}if(r===16){if(n[3]===1){const u=n[4]*256+n[5],D=n[6]*65536+n[7]*256+n[8];let M="";if(u>0){const I=new Uint8Array(u);for(let H=0;H<u;H++)I[H]=n[9+H];M=decodeURIComponent(this.byteToString(I))}const k=new Uint8Array(D);for(let I=0;I<D;I++)k[I]=n[9+u+I];const K=this.uint8ArrayToString(k);(p=this.onPhoto)==null||p.call(this,{flag:0,imgPath:M,base64:K})}n[3]===2&&((m=this.onPhoto)==null||m.call(this,{flag:2,imgPath:"",base64:""}));return}if(r===204){if(!this.canvas||!this.ctx)return;const g=n[3]*256+n[4],u=n[5]*256+n[6];this.pMainShowStartX=n[7]*256+n[8],this.pMainShowStartY=n[9]*256+n[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const D=this.ctx.createImageData(g,u);let M=11;for(let k=0;k<D.data.length;k+=4)D.data[k+0]=n[M],D.data[k+1]=n[M+1],D.data[k+2]=n[M+2],D.data[k+3]=255,M+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}byteToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}}const Rf={style:{display:"flex",gap:"16px",height:"100%"}},$f={key:0,style:{color:"var(--el-text-color-secondary)"}},Vf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},Pf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Ff={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"}},jf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Hf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Uf=["src","onClick"],qf=["onClick"],Wf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Kf={class:"dialog-footer"},Gf=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(null),s=e.ref(!1),h=e.ref([]),c=e.ref(""),p=e.ref(!1),m=e.ref([]),g=new Lf({url:"ws://127.0.0.1:22225"});function u(V,ne){var Z;const X=V.split(","),me=((Z=X[0].match(/:(.*?);/))==null?void 0:Z[1])??"image/jpeg",Me=atob(X[1]);let F=Me.length;const te=new Uint8Array(F);for(;F--;)te[F]=Me.charCodeAt(F);return new File([te],ne,{type:me})}function D(){g.onLog=V=>{console.log("[GPY]",V)},g.onDevCount=(V,ne)=>{if(c.value+=`设备数量=${V},设备=${ne.join(",")}
|
|
4
4
|
`,V>0){c.value+=`检测到设备,正在获取分辨率...
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
`}},x=()=>{h.value.length>0?r("confirm",h.value.map(V=>V.file)):r("confirm",[])},w=V=>{V<0||V>=h.value.length||(h.value.splice(V,1),c.value+=`已删除一张图片(剩余 ${h.value.length} 张)
|
|
23
23
|
`)},b=V=>{if(!V)return;const ne=`gpy-preview-${Date.now()}.jpg`;m.value=[{name:ne,blobUrl:V}],p.value=!0},_=()=>{p.value=!1},$=()=>{k(),r("cancel")};return(V,ne)=>{const X=e.resolveComponent("el-input"),me=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Dr.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:$,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",Rf,[e.createElementVNode("div",{ref_key:"cameraBox",ref:o,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",$f,"初始化摄像头..."))],512),e.createElementVNode("div",Vf,[e.createElementVNode("div",Pf,[ne[0]||(ne[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",Ff,[h.value.length===0?(e.openBlock(),e.createElementBlock("div",jf,"暂无图片")):(e.openBlock(),e.createElementBlock("div",Hf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(Me,F)=>(e.openBlock(),e.createElementBlock("div",{key:Me.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[e.createElementVNode("img",{src:Me.url,onClick:te=>b(Me.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,Uf),e.createElementVNode("div",{onClick:te=>w(F),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,qf)]))),128))]))],512)]),e.createElementVNode("div",Wf,[ne[1]||(ne[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(X,{type:"textarea",value:c.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Kf,[e.createVNode(me,{onClick:K,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>ne[2]||(ne[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(me,{onClick:I,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>ne[3]||(ne[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(me,{onClick:H,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>ne[4]||(ne[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(me,{onClick:L,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>ne[5]||(ne[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(me,{onClick:E,disabled:!s.value,id:"themeButton"},{default:e.withCtx(()=>ne[6]||(ne[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),ne[9]||(ne[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(me,{onClick:x,disabled:h.value.length===0,id:"themeButton"},{default:e.withCtx(()=>ne[7]||(ne[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(me,{onClick:$,id:"themeBorderButton"},{default:e.withCtx(()=>ne[8]||(ne[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),p.value?(e.openBlock(),e.createBlock(al.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:_},null,8,["fileDataList"])):e.createCommentVNode("",!0)],64)}}}),Yf=Zl._export_sfc(Gf,[["__scopeId","data-v-24a2050a"]]),fs=A.useMenuState(A.pinia),Jf=async a=>{var s,h,c,p,m,g;let l=a==null?void 0:a.导入文件,n=a==null?void 0:a.函数参数,r=(s=l==null?void 0:l[0])==null?void 0:s.url,o="";if(!(r!=null&&r.includes("http"))||!(r!=null&&r.includes("https"))){fs.setContentLoading(!0);const u=await A.platformDownloadFile({url:r});let D=u==null?void 0:u.data;const M=new FormData;M.append("file",D,((h=l==null?void 0:l[0])==null?void 0:h.name)+"."+((c=r==null?void 0:r.split("."))==null?void 0:c[1])),M.append("query",n);let k=await Zs(M);k=(g=(m=(p=k==null?void 0:k.data)==null?void 0:p.data)==null?void 0:m.response)==null?void 0:g.replace("generateResult",a==null?void 0:a.函数名称),o=k,fs.setContentLoading(!1)}return o},Ct=A.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(a){this.objUrl=a},setBlobUrls(a){this.blobUrls=a}}}),Xf=A.useModelComp(A.pinia),{extraContents:sv}=A.storeToRefs(Xf),Zf=A.useLoginState(A.pinia),{extraUrl:ii}=A.storeToRefs(Zf);let fc=ii.value===""||!ii.value?"http://139.196.154.85:20015":ii.value;e.watch(()=>ii.value,()=>{fc=ii.value===""||!ii.value?"http://139.196.154.85:20015":ii.value},{deep:!0,immediate:!0});const Do={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},hs={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:fc+"/api/public/paddleOCR"};class Qf{constructor(l){Yr(this,"config");this.config={...hs,...l}}updateConfig(l){this.config={...this.config,...l}}getConfig(){return{...this.config}}validateFileSize(l){const n=this.config.maxSize*1024*1024;return l.size<=n}validateFileType(l){return l.type.startsWith("image/")||l.type==="application/pdf"}getAuthorizationToken(){const l=Ua.Local.get(Ua.accessTokenKey);return l?`Bearer ${l}`:""}buildOCRRequest(l,n){return{title:n,form:{OCR图片文件:l}}}async recognize(l,n){const r=this.getAuthorizationToken(),o=this.buildOCRRequest(l,n),s=this.config.apiUrl||hs.apiUrl||"";return(await Ua.axios.post(s,o,{headers:{"Content-Type":"application/json",Authorization:r}})).data}getFieldAliases(l){return Do[l]?Do[l]:[l]}extractTableHeaders(l){const n=[],r=new Set,o=h=>{const c=h==null?void 0:h.label;return!(!c||c==="操作"||c===this.config.columnName||(h==null?void 0:h.type)==="operate"||(h==null?void 0:h.prop)==="operate")},s=h=>{(h||[]).forEach(c=>{if(!c)return;const p=(c==null?void 0:c.children)||(c==null?void 0:c.child)||(c==null?void 0:c.columns);if(Array.isArray(p)&&p.length>0){s(p);return}if(o(c)){const m=c.label;if(!r.has(m)){r.add(m);const g=this.getFieldAliases(m);n.push(g)}}})};return s(l||[]),n}}function hc(a){return new Qf(a)}hc();const yt=async(a,l)=>{var h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b;let n=(c=(h=A.cloneDeep(a))==null?void 0:h.optionUrl)==null?void 0:c.menuSelect,r=[];n==null||n.forEach(_=>{});let o="",s=await de.menuToParent(n);if(s==null||s.forEach(_=>{var $,V,ne,X;(_==null?void 0:_.name)===(((X=(ne=(V=($=A.cloneDeep(a))==null?void 0:$.optionUrl)==null?void 0:V.groupSelect)==null?void 0:ne[0])==null?void 0:X.replaceAll("'",""))??"")&&(o=_==null?void 0:_.id)}),l){o=l;const _=await Mr.getInsofDataApi({id:o}),$=(u=(g=(m=(p=_==null?void 0:_.data)==null?void 0:p.result)==null?void 0:m[0])==null?void 0:g.key)==null?void 0:u.pageKey;s=await de.getItemData($,sessionStorage.getItem("systemKey"),"")}if(o!==""){let _;l?_=(D=s==null?void 0:s.find(ne=>(ne==null?void 0:ne.id)===l))==null?void 0:D.compData:_=(M=s==null?void 0:s.find(ne=>{var X,me,Me,F;return(ne==null?void 0:ne.name)===(((me=(X=a==null?void 0:a.groupSelect)==null?void 0:X.split(":"))==null?void 0:me[0])||((F=(Me=a==null?void 0:a.optionUrl)==null?void 0:Me.groupSelect)==null?void 0:F[0]))}))==null?void 0:M.compData;let $=(K=(k=_==null?void 0:_.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:k.contents)==null?void 0:K.map(ne=>ne==null?void 0:ne.label);(H=(I=_==null?void 0:_.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:I.contents)!=null&&H.every(ne=>Array.isArray(ne))&&($=(x=de.getColumnChild((E=(L=_==null?void 0:_.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:L.contents)==null?void 0:E[0]))==null?void 0:x.map(ne=>ne==null?void 0:ne.prop));let V=(b=(w=_==null?void 0:_.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:w.contents)==null?void 0:b.map(ne=>{if(Array.isArray(ne))ne=ne==null?void 0:ne.filter(X=>!(X!=null&&X.id));else{let X={};for(let me in ne)me!=="id"&&(X[me]=ne==null?void 0:ne[me]);ne=X}return ne});V==null||V.forEach(ne=>{Array.isArray(ne)?r.push(de.getValueToObjectValue(ne,$)):r.push(ne)})}return r},e0=A.useMenuState(A.pinia),{activeMenuPath:cv}=A.storeToRefs(e0),a0=A.useUnit(A.pinia),{chooseTitle:uv}=A.storeToRefs(a0),l0="col-operate",vc=a=>`${l0}-${a}`,r0=(a,l)=>{const n=new Map;a.forEach(o=>{const{prop:s}=o;n.set(s,o)});const r=o=>{Array.isArray(o)&&o.forEach(s=>{const{prop:h}=s||{},c=n.get(h);n0(c,s),Array.isArray(s==null?void 0:s.children)&&s.children.length>0&&r(s.children)})};return r(l),l},n0=(a,l)=>(a&&(l.sortable=a==null?void 0:a.sortable,l.filterable=a==null?void 0:a.filterable,l.showSummary=a==null?void 0:a.showSummary,l.operable=a==null?void 0:a.operable,l.fixed=a==null?void 0:a.fixed),l),i0=(a,l)=>{const{sortable:n=!1,filterable:r=!1,showSummary:o=!1,operable:s=!1,fixed:h=!1}=l||{};return{prop:a,sortable:n,filterable:r,showSummary:o,operable:s,fixed:h}},o0=async a=>{var s,h;if(!a)return;const l=vc(a),n=await Mr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:l}}),r=(s=n==null?void 0:n.data)==null?void 0:s.code,o=(h=n==null?void 0:n.data)==null?void 0:h.result;if(r==200)return o==null?void 0:o[0]},t0=async a=>{if(a)return[]},s0=async(a,l)=>{if(!a||!l)return;const n=vc(a);return await Mr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:l}})},c0=async(a,l)=>!a||!l?void 0:await Mr.updateInsofDataApi({id:a,value:{columns:l}}),vs=async(a,l)=>{const n=sessionStorage.getItem("systemKey");if(!a||!l||!n)return;const r=await o0(a);return r?await c0(r==null?void 0:r.id,l):await s0(a,l)};var xo={exports:{}},u0=xo.exports,ms;function d0(){return ms||(ms=1,function(a,l){(function(n,r){r()})(u0,function(){function n(m,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function r(m,g,u){var D=new XMLHttpRequest;D.open("GET",m),D.responseType="blob",D.onload=function(){p(D.response,g,u)},D.onerror=function(){console.error("could not download file")},D.send()}function o(m){var g=new XMLHttpRequest;g.open("HEAD",m,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function s(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(g)}}var h=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof A.commonjsGlobal=="object"&&A.commonjsGlobal.global===A.commonjsGlobal?A.commonjsGlobal:void 0,c=h.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=h.saveAs||(typeof window!="object"||window!==h?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(m,g,u){var D=h.URL||h.webkitURL,M=document.createElement("a");g=g||m.name||"download",M.download=g,M.rel="noopener",typeof m=="string"?(M.href=m,M.origin===location.origin?s(M):o(M.href)?r(m,g,u):s(M,M.target="_blank")):(M.href=D.createObjectURL(m),setTimeout(function(){D.revokeObjectURL(M.href)},4e4),setTimeout(function(){s(M)},0))}:"msSaveOrOpenBlob"in navigator?function(m,g,u){if(g=g||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(n(m,u),g);else if(o(m))r(m,g,u);else{var D=document.createElement("a");D.href=m,D.target="_blank",setTimeout(function(){s(D)})}}:function(m,g,u,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof m=="string")return r(m,g,u);var M=m.type==="application/octet-stream",k=/constructor/i.test(h.HTMLElement)||h.safari,K=/CriOS\/[\d]+/.test(navigator.userAgent);if((K||M&&k||c)&&typeof FileReader<"u"){var I=new FileReader;I.onloadend=function(){var E=I.result;E=K?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=E:location=E,D=null},I.readAsDataURL(m)}else{var H=h.URL||h.webkitURL,L=H.createObjectURL(m);D?D.location=L:location.href=L,D=null,setTimeout(function(){H.revokeObjectURL(L)},4e4)}});h.saveAs=p.saveAs=p,a.exports=p})}(xo)),xo.exports}d0();const Hn=A.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(a){this.itemData=a},setCurStructureCompIds(a){this.curStructureCompIds=a},setRefreshCurStructure(a){this.isRefreshCurStructure=a},setOriginalData(a){this.originalData=a},setExtraContents(a){this.extraContents=a},setNodeDev(a){this.nodeDev=a},setIsEdit(a){this.isEdit=a},setSelectTab(a){this.selectTab=a}}}),p0=A.useLoginState(A.pinia),{loginUserInfo:st}=A.storeToRefs(p0),f0=async a=>{var r,o,s;let l=await A.getAllTables({platId:parseInt((r=st==null?void 0:st.value)==null?void 0:r.plat_id),tableNames:[a]});return l=(s=(o=l==null?void 0:l.data)==null?void 0:o.result)==null?void 0:s[0],await sc(l,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:l}]}]},h0=A.useLoginState(),{loginUserInfo:vl}=A.storeToRefs(h0);let mo="$R";const zr=A.useModelComp(A.pinia),mc=e.ref(!1),{itemData:v0,itemGridData:li,curStructureCompIds:ys,isSubmitCurStructure:m0,routeToChildPath:y0,pageMapState:gt,itemExtendData:yo,refreshTable:gs}=A.storeToRefs(zr),Oo=Hn(A.pinia),$r=A.useMenuState(A.pinia),ur=e.shallowRef([]),{asideMenus:g0,activeTopMenuPath:b0,activeMenuPath:gl,platform:dv,buttonTriggerType:k0,currentMenuPath:an}=A.storeToRefs($r),hn=A.useUnit(A.pinia),{selectTitle:Pn,chooseTitle:Bo}=A.storeToRefs(hn);e.ref();const Bi=e.ref(!0),jn=e.ref(0),bt=e.ref([]);e.ref(!1);const Dt=e.ref(!1),Ki=e.ref(),yc=e.ref(),gc=e.ref(),x0=()=>{zr.setItemGridData([]),zr.setIsEdit("edit"),zr.setSubmitCurStructure(gl.value!=="/平台管理/菜单管理")},w0=()=>{zr.setIsEdit("view"),zr.setRefreshCurStructure(!0)},_0=async a=>{var o;let l=Pn.value,n=l==null?void 0:l.findIndex(s=>(s==null?void 0:s.value)===(a==null?void 0:a.value)),r=l==null?void 0:l.filter((s,h)=>h<=n);hn.setSelectTitle(al.safeClone(r)),r=(o=r==null?void 0:r.map(s=>s==null?void 0:s.value))==null?void 0:o.join("/"),$r.setActiveMenuPath(null),$r.setActiveMenuPath(r)},ct=async(a,l,n,r="contentConfig")=>{var o;try{if(!Array.isArray(a))return;let s,h;l==="create"?(s={dataList:a==null?void 0:a.map(p=>{var m;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n!=null&&n.startsWith("/")?n==null?void 0:n.substring(1):n,type:"structure",structureBelong:r,parentTable:"",version:1},value:{pageData:{...p,compData:(m=p==null?void 0:p.compData)==null?void 0:m.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},h=Mr.batchAddInsofDataApi):l==="update"?(s={dataList:a==null?void 0:a.map(p=>{var m;return{id:p==null?void 0:p.id,value:{pageData:{...p,compData:(m=p==null?void 0:p.compData)==null?void 0:m.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},h=Mr.batchUpdateInsofDataApi):l==="delete"&&(s={ids:a},h=Mr.batchDeleteInsofDataApi);const c=await h(s);if(((o=c==null?void 0:c.data)==null?void 0:o.code)===200)return c.data.result;throw Ua.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Ua.ElMessage.error("保存响应失败")}},bs=async(a,l,n,r)=>{var o,s,h,c,p,m,g,u,D,M,k;try{const K=(s=(o=a==null?void 0:a.results)==null?void 0:o.filter(w=>!(w!=null&&w.id)||typeof(w==null?void 0:w.id)=="string"))==null?void 0:s.map(w=>({key:{pageKey:a==null?void 0:a.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:l,relatedInfo:n},value:{tableData:w}})),I=(c=(h=a==null?void 0:a.results)==null?void 0:h.filter(w=>(w==null?void 0:w.id)&&typeof(w==null?void 0:w.id)=="number"))==null?void 0:c.map(w=>({id:w==null?void 0:w.id,value:{tableData:w}})),H=JSON.parse(JSON.stringify(a)),L=(p=H==null?void 0:H.results)==null?void 0:p.map(w=>w.id);let E;n?E=(u=(g=(m=gt.value)==null?void 0:m[gl.value])==null?void 0:g.filter(w=>{var b,_,$;return((b=w==null?void 0:w.key)==null?void 0:b.type)===l&&(($=(_=w==null?void 0:w.key)==null?void 0:_.relatedInfo)==null?void 0:$.target)===r}))==null?void 0:u.map(w=>w==null?void 0:w.id):E=(k=(M=(D=gt.value)==null?void 0:D[gl.value])==null?void 0:M.filter(w=>{var b;return((b=w==null?void 0:w.key)==null?void 0:b.type)===l}))==null?void 0:k.map(w=>w==null?void 0:w.id);const x=E==null?void 0:E.filter(w=>!(L!=null&&L.includes(w))&&typeof w=="number");(K==null?void 0:K.length)>0&&await Mr.batchAddInsofDataApi({dataList:K}),(I==null?void 0:I.length)>0&&await Mr.batchUpdateInsofDataApi({dataList:I}),(x==null?void 0:x.length)>0&&await Mr.batchDeleteInsofDataApi({ids:x})}catch(K){throw new Error(K)}},S0=async a=>{var m,g,u,D,M,k,K,I,H,L;$r.setContentLoading(!0);const l=JSON.parse(JSON.stringify(v0.value));if(!m0.value)return $r.setCacheStructures({key:k0.value,data:l}),Ua.ElMessage.success("已暂存");const n=l==null?void 0:l.map(E=>E.id),r=n.filter(E=>{var x;return!((x=ys.value)!=null&&x.includes(E))}),o=(m=ys.value)==null?void 0:m.filter(E=>!n.includes(E)),s=[...r,...o].filter(E=>typeof E!==null&&typeof E<"u"),h=l==null?void 0:l.filter(E=>!E.id),c=l==null?void 0:l.filter(E=>E.id);let p=[];if(s&&(s==null?void 0:s.length)>0&&p.push(ct(s,"delete",a)),h&&(h==null?void 0:h.length)>0&&p.push(ct(h,"create",a)),c&&(c==null?void 0:c.length)>0&&p.push(ct(c,"update",a)),li.value&&((g=li.value)!=null&&g.isDelete&&((D=(u=li.value)==null?void 0:u.results)==null?void 0:D.length)>0&&((k=(M=li.value)==null?void 0:M.results)!=null&&k.every(E=>typeof E=="number"))?await Mr.batchDeleteInsofDataApi({ids:(K=li.value)==null?void 0:K.results}):(console.log("itemGridData.value",li.value),p.push(await bs(li.value,"gridLayout")))),yo.value)for(const E in yo.value)p.push(await bs((I=yo.value)==null?void 0:I[E],"extend",{target:E,compId:(L=(H=yo.value)==null?void 0:H[E])==null?void 0:L.compId},E));await Promise.all(p).then(()=>{Ua.ElMessage.success("保存成功"),zr.setRefreshCurStructure(!0)}).catch(E=>{Ua.ElMessage.success(E)}),$r.setContentLoading(!1)},Gi=a=>Ti(a),E0=e.computed(()=>{var a;return(a=ur.value)==null?void 0:a.filter(l=>(l==null?void 0:l.affix)&&(l==null?void 0:l.affix)!=="default")}),bc=e.computed(()=>{var a;return(a=ur.value)==null?void 0:a.filter(l=>!(l!=null&&l.affix&&(l==null?void 0:l.affix)!=="default"))}),kc=e.ref(0),xc=e.ref(null),C0="ocr_committed_temp_ids_v1",D0=(a,l)=>`${C0}:${String(a??"")}:${String(l??"")}`,B0=(a,l,n)=>{try{const r=D0(a,l),o=sessionStorage.getItem(r),s=o?JSON.parse(o):[],h=Array.isArray(s)?s:[],c=Array.from(new Set([...h,...n||[]].map(p=>String(p)))).slice(-200);sessionStorage.setItem(r,JSON.stringify(c))}catch{}},To=async(a,l="data",n)=>{var o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E,x,w,b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa,Qe,He,qe,fe,ke,da,La,dl,Ol,sl,Fl,Fa,Vl,zl;let r=((h=(s=(o=Pn.value)==null?void 0:o.filter(Aa=>(Aa==null?void 0:Aa.condition)==="child"))==null?void 0:s[0])==null?void 0:h.value)??"";if((a==null?void 0:a.buttonName)==="新增"){let Aa=(c=a==null?void 0:a.fixContent)==null?void 0:c.map(Ne=>{let Ue={};for(let na in Ne)Array.isArray(Ne==null?void 0:Ne[na])?Ue[na]=JSON.stringify(Ne==null?void 0:Ne[na]):Ue[na]=Ne==null?void 0:Ne[na];return Ue}),rl=await A.quoteApi({platId:parseInt((p=vl==null?void 0:vl.value)==null?void 0:p.plat_id),type:"fatherSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});rl=(m=rl==null?void 0:rl.data)==null?void 0:m.result,rl=rl==null?void 0:rl.filter(Ne=>{var Ue,na;return!((Ne==null?void 0:Ne.fatherPath)!==""&&((na=(Ue=Ne==null?void 0:Ne.quote)==null?void 0:Ue[0])==null?void 0:na.menus)===(gl==null?void 0:gl.value))});let nl=rl==null?void 0:rl.map(Ne=>{var ia,Va;let Ue={},na=Aa==null?void 0:Aa[0],re;return Array.isArray((ia=Ne==null?void 0:Ne.struct)==null?void 0:ia[0])?re=de.getColumnChild((Va=Ne==null?void 0:Ne.struct)==null?void 0:Va[0]):re=Ne==null?void 0:Ne.struct,re=re==null?void 0:re.filter(Le=>(Le==null?void 0:Le.prop)!=="relatedId"),re==null||re.forEach(Le=>{var ja,Ma;Ue[Le.prop]=((ja=Le==null?void 0:Le.words)!=null&&ja[0]?(na==null?void 0:na[(Ma=Le==null?void 0:Le.words)==null?void 0:Ma[0]])??(na==null?void 0:na[Le==null?void 0:Le.prop]):na==null?void 0:na[Le==null?void 0:Le.prop])??""}),Ue.id="1",Ue.relatedId=`[${Ue.id}]`,delete Ue.sort,{tableName:"content_"+(Ne==null?void 0:Ne.id),tableContents:[Ue]}}),ul=[{tableName:(g=a==null?void 0:a.relatedContents)==null?void 0:g.find(Ne=>Ne==null?void 0:Ne.includes("content")),tableContents:Aa}];ul=[...ul,...nl];let Ra=await A.quoteApi({platId:parseInt((u=vl==null?void 0:vl.value)==null?void 0:u.plat_id),type:"sonSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});Ra=(M=(D=Ra==null?void 0:Ra.data)==null?void 0:D.result)==null?void 0:M.filter(Ne=>!(ul!=null&&ul.find(Ue=>(Ue==null?void 0:Ue.tableName)==="content_"+(Ne==null?void 0:Ne.id)))),Ra=Ra==null?void 0:Ra.filter(Ne=>{var Ue,na;return!((Ne==null?void 0:Ne.fatherPath)!==""&&((na=(Ue=Ne==null?void 0:Ne.quote)==null?void 0:Ue[0])==null?void 0:na.menus)===(gl==null?void 0:gl.value))});let cl=Ra==null?void 0:Ra.map(Ne=>{var ia,Va,Le,ja,Ma,il,We;let Ue={},na=Aa==null?void 0:Aa[0],re;return Array.isArray((ia=Ne==null?void 0:Ne.struct)==null?void 0:ia[0])?re=de.getColumnChild((Va=Ne==null?void 0:Ne.struct)==null?void 0:Va[0]):re=Ne==null?void 0:Ne.struct,re=re==null?void 0:re.filter(pa=>(pa==null?void 0:pa.prop)!=="relatedId"),((ja=(Le=re==null?void 0:re[0])==null?void 0:Le.words)!=null&&ja[0]?na!=null&&na[(il=(Ma=re==null?void 0:re[0])==null?void 0:Ma.words)==null?void 0:il[0]]:na!=null&&na[(We=re==null?void 0:re[0])==null?void 0:We.prop])?(re==null||re.forEach(pa=>{var ma,ka;Ue[pa.prop]=((ma=pa==null?void 0:pa.words)!=null&&ma[0]?(na==null?void 0:na[(ka=pa==null?void 0:pa.words)==null?void 0:ka[0]])??(na==null?void 0:na[pa==null?void 0:pa.prop]):na==null?void 0:na[pa==null?void 0:pa.prop])??""}),Ue.id="1",Ue.relatedId=`[${Ue.id}]`,delete Ue.sort):Ue=void 0,{tableName:"content_"+(Ne==null?void 0:Ne.id),tableContents:[Ue]}});cl=cl==null?void 0:cl.filter(Ne=>{var Ue;return!((Ue=Ne==null?void 0:Ne.tableContents)!=null&&Ue.every(na=>na===void 0))}),ul=[...ul,...cl],await A.pageBatchAddApi({platId:parseInt((k=vl==null?void 0:vl.value)==null?void 0:k.plat_id),changeContents:ul});let ll=[];ul==null||ul.forEach(Ne=>{var Ue;(Ue=Ne==null?void 0:Ne.tableContents)==null||Ue.forEach(na=>{ll.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(na),request_result:"{}",is_delete:!1,request_table:Ne==null?void 0:Ne.tableName,request_type:"add"})})}),await A.pageBatchAddApi({platId:parseInt((K=vl==null?void 0:vl.value)==null?void 0:K.plat_id),changeContents:[{tableName:"log",tableContents:ll}]})}if((a==null?void 0:a.buttonName)==="OCR批量新增"){const Aa=((a==null?void 0:a.ocrRows)||[]).map(Ra=>Ra==null?void 0:Ra.id).filter(Ra=>Ra!=null),rl=((a==null?void 0:a.ocrRows)||[]).map(Ra=>{const cl={...Ra};return delete cl._isOCRRow,delete cl._ocrTableId,Object.keys(cl).forEach(ll=>{/(^|\.)证书附件$/.test(ll)&&Array.isArray(cl[ll])&&(cl[ll]=JSON.stringify(cl[ll].map(Ne=>({url:(Ne==null?void 0:Ne.url)||"",name:(Ne==null?void 0:Ne.name)||(Ne==null?void 0:Ne.fileName)||"",fileName:(Ne==null?void 0:Ne.fileName)||(Ne==null?void 0:Ne.name)||""})).filter(Ne=>Ne.url||Ne.name)))}),cl});let nl=[{tableName:(I=a==null?void 0:a.relatedContents)==null?void 0:I.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:rl}];await A.pageBatchAddApi({platId:parseInt((H=vl==null?void 0:vl.value)==null?void 0:H.plat_id),changeContents:nl});let ul=[];nl==null||nl.forEach(Ra=>{var cl;(cl=Ra==null?void 0:Ra.tableContents)==null||cl.forEach(ll=>{ul.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ll),request_result:"{}",is_delete:!1,request_table:Ra==null?void 0:Ra.tableName,request_type:"ocrBatchAdd"})})}),await A.pageBatchAddApi({platId:parseInt((L=vl==null?void 0:vl.value)==null?void 0:L.plat_id),changeContents:[{tableName:"log",tableContents:ul}]}),B0(a==null?void 0:a.parentTableId,a==null?void 0:a.index,Aa)}if((a==null?void 0:a.buttonName)==="编辑"){const rl=((a==null?void 0:a.fixContent)||(a==null?void 0:a.singleContent)||[]||[]).map(re=>{const ia={...re};return delete ia._isOCRRow,delete ia._ocrTableId,delete ia._isTemp,delete ia.tableEditType,delete ia.index,ia});let nl=rl==null?void 0:rl.map(re=>{let ia={};for(let Va in re)Array.isArray(re==null?void 0:re[Va])?ia[Va]=JSON.stringify(re==null?void 0:re[Va]):ia[Va]=re==null?void 0:re[Va];return ia}),ul=await A.quoteApi({platId:parseInt((E=vl==null?void 0:vl.value)==null?void 0:E.plat_id),type:"fatherSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});ul=(x=ul==null?void 0:ul.data)==null?void 0:x.result,ul=ul==null?void 0:ul.filter(re=>{var ia,Va;return!((re==null?void 0:re.fatherPath)!==""&&((Va=(ia=re==null?void 0:re.quote)==null?void 0:ia[0])==null?void 0:Va.menus)===(gl==null?void 0:gl.value))});let Ra=(w=nl==null?void 0:nl[0])==null?void 0:w.id,cl=[{tableName:(b=a==null?void 0:a.relatedContents)==null?void 0:b.find(re=>re==null?void 0:re.includes("content")),tableContents:nl}],ll=(_=ul==null?void 0:ul.map(re=>{var Va,Le,ja,Ma,il;let ia=(Va=re==null?void 0:re.contents)==null?void 0:Va.filter(We=>{var pa,ma;return JSON.stringify(We==null?void 0:We.relatedId)!=="{}"&&(We==null?void 0:We.relatedId)!==""&&(We!=null&&We.relatedId)?(pa=We==null?void 0:We.relatedId)==null?void 0:pa.includes(parseInt(Ra)):(We==null?void 0:We.sort)===((ma=nl==null?void 0:nl[0])==null?void 0:ma.sort)});if((ia==null?void 0:ia.length)>0){let We=nl==null?void 0:nl[0];We={...We,id:(Le=ia==null?void 0:ia[0])==null?void 0:Le.id};let pa={},ma=We,ka;return Array.isArray((ja=re==null?void 0:re.struct)==null?void 0:ja[0])?ka=de.getColumnChild((Ma=re==null?void 0:re.struct)==null?void 0:Ma[0]):ka=re==null?void 0:re.struct,ka=ka==null?void 0:ka.filter(_e=>(_e==null?void 0:_e.prop)!=="relatedId"),ka==null||ka.forEach(_e=>{var Tl,Jl;pa[_e.prop]=((Tl=_e==null?void 0:_e.words)!=null&&Tl[0]?(ma==null?void 0:ma[(Jl=_e==null?void 0:_e.words)==null?void 0:Jl[0]])??(ma==null?void 0:ma[_e==null?void 0:_e.prop]):ma==null?void 0:ma[_e==null?void 0:_e.prop])??""}),pa.id=(il=ia==null?void 0:ia[0])==null?void 0:il.id,delete pa.sort,delete pa.relatedId,{tableName:"content_"+(re==null?void 0:re.id),tableContents:[pa]}}else return}))==null?void 0:_.filter(re=>re);cl=[...cl,...ll];let Ne=await A.quoteApi({platId:parseInt(($=vl==null?void 0:vl.value)==null?void 0:$.plat_id),type:"sonSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});Ne=(ne=(V=Ne==null?void 0:Ne.data)==null?void 0:V.result)==null?void 0:ne.filter(re=>!(cl!=null&&cl.find(ia=>(ia==null?void 0:ia.tableName)==="content_"+(re==null?void 0:re.id)))),Ne=Ne==null?void 0:Ne.filter(re=>{var ia,Va;return!((re==null?void 0:re.fatherPath)!==""&&((Va=(ia=re==null?void 0:re.quote)==null?void 0:ia[0])==null?void 0:Va.menus)===(gl==null?void 0:gl.value))});let Ue=(X=Ne==null?void 0:Ne.map(re=>{var Va,Le,ja,Ma,il;let ia=(Va=re==null?void 0:re.contents)==null?void 0:Va.filter(We=>{var pa,ma,ka;return JSON.stringify(We==null?void 0:We.relatedId)!=="{}"&&(We==null?void 0:We.relatedId)!==""&&(We!=null&&We.relatedId)?(pa=We==null?void 0:We.relatedId)==null?void 0:pa.includes(parseInt(Ra)):(We==null?void 0:We.sort)===((ma=nl==null?void 0:nl[0])==null?void 0:ma.sort)||(We==null?void 0:We.sort)===(parseInt(((ka=nl==null?void 0:nl[0])==null?void 0:ka.sort)??"0")+1).toString()});if((ia==null?void 0:ia.length)>0){let We=nl==null?void 0:nl[0];We={...We,id:(Le=ia==null?void 0:ia[0])==null?void 0:Le.id};let pa={},ma=We,ka;return Array.isArray((ja=re==null?void 0:re.struct)==null?void 0:ja[0])?ka=de.getColumnChild((Ma=re==null?void 0:re.struct)==null?void 0:Ma[0]):ka=re==null?void 0:re.struct,ka=ka==null?void 0:ka.filter(_e=>(_e==null?void 0:_e.prop)!=="relatedId"),ka==null||ka.forEach(_e=>{var Tl,Jl,rr,er;((Tl=_e==null?void 0:_e.words)!=null&&Tl[0]?(ma==null?void 0:ma[(Jl=_e==null?void 0:_e.words)==null?void 0:Jl[0]])??(ma==null?void 0:ma[_e==null?void 0:_e.prop]):ma!=null&&ma[_e==null?void 0:_e.prop])&&(pa[_e.prop]=((rr=_e==null?void 0:_e.words)!=null&&rr[0]?(ma==null?void 0:ma[(er=_e==null?void 0:_e.words)==null?void 0:er[0]])??(ma==null?void 0:ma[_e==null?void 0:_e.prop]):ma==null?void 0:ma[_e==null?void 0:_e.prop])??"")}),pa.id=(il=ia==null?void 0:ia[0])==null?void 0:il.id,delete pa.sort,delete pa.relatedId,{tableName:"content_"+(re==null?void 0:re.id),tableContents:[pa]}}else return}))==null?void 0:X.filter(re=>re);cl=[...cl,...Ue],await A.pageBatchUpdateApi({platId:parseInt((me=vl==null?void 0:vl.value)==null?void 0:me.plat_id),changeContents:cl});let na=[];cl==null||cl.forEach(re=>{var ia;(ia=re==null?void 0:re.tableContents)==null||ia.forEach(Va=>{na.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Va),request_result:"{}",is_delete:!1,request_table:re==null?void 0:re.tableName,request_type:"update"})})}),await A.pageBatchAddApi({platId:parseInt((Me=vl==null?void 0:vl.value)==null?void 0:Me.plat_id),changeContents:[{tableName:"log",tableContents:na}]})}if((a==null?void 0:a.buttonName)==="删除"){let Aa=[{tableName:(F=a==null?void 0:a.relatedContents)==null?void 0:F.find(Ne=>Ne==null?void 0:Ne.includes("content")),tableContents:a==null?void 0:a.fixContent}],rl=await A.quoteApi({platId:parseInt((te=vl==null?void 0:vl.value)==null?void 0:te.plat_id),type:"fatherSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});rl=(Z=rl==null?void 0:rl.data)==null?void 0:Z.result,rl=rl==null?void 0:rl.filter(Ne=>{var Ue,na;return!((Ne==null?void 0:Ne.fatherPath)!==""&&((na=(Ue=Ne==null?void 0:Ne.quote)==null?void 0:Ue[0])==null?void 0:na.menus)===(gl==null?void 0:gl.value))});let nl=(Be=(se=a==null?void 0:a.fixContent)==null?void 0:se[0])==null?void 0:Be.id,ul=(Ve=rl==null?void 0:rl.map(Ne=>{var na,re,ia,Va,Le,ja;let Ue=(na=Ne==null?void 0:Ne.contents)==null?void 0:na.filter(Ma=>{var il,We,pa;return JSON.stringify(Ma==null?void 0:Ma.relatedId)!=="{}"&&(Ma==null?void 0:Ma.relatedId)!==""&&(Ma!=null&&Ma.relatedId)?(il=Ma==null?void 0:Ma.relatedId)==null?void 0:il.includes(parseInt(nl)):(Ma==null?void 0:Ma.sort)===((pa=(We=a==null?void 0:a.fixContent)==null?void 0:We[0])==null?void 0:pa.sort)});if((Ue==null?void 0:Ue.length)>0){let Ma=(re=a==null?void 0:a.fixContent)==null?void 0:re[0];Ma={...Ma,id:(ia=Ue==null?void 0:Ue[0])==null?void 0:ia.id};let il={},We=Ma,pa;return Array.isArray((Va=Ne==null?void 0:Ne.struct)==null?void 0:Va[0])?pa=de.getColumnChild((Le=Ne==null?void 0:Ne.struct)==null?void 0:Le[0]):pa=Ne==null?void 0:Ne.struct,pa=pa==null?void 0:pa.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),pa==null||pa.forEach(ma=>{var ka,_e;il[ma.prop]=((ka=ma==null?void 0:ma.words)!=null&&ka[0]?(We==null?void 0:We[(_e=ma==null?void 0:ma.words)==null?void 0:_e[0]])??(We==null?void 0:We[ma==null?void 0:ma.prop]):We==null?void 0:We[ma==null?void 0:ma.prop])??""}),il.id=(ja=Ue==null?void 0:Ue[0])==null?void 0:ja.id,delete il.sort,delete il.relatedId,{tableName:"content_"+(Ne==null?void 0:Ne.id),tableContents:[il]}}else return}))==null?void 0:Ve.filter(Ne=>Ne);Aa=[...Aa,...ul];let Ra=await A.quoteApi({platId:parseInt((he=vl==null?void 0:vl.value)==null?void 0:he.plat_id),type:"sonSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});Ra=(ie=(N=Ra==null?void 0:Ra.data)==null?void 0:N.result)==null?void 0:ie.filter(Ne=>!(Aa!=null&&Aa.find(Ue=>(Ue==null?void 0:Ue.tableName)==="content_"+(Ne==null?void 0:Ne.id)))),Ra=Ra==null?void 0:Ra.filter(Ne=>{var Ue,na;return!((Ne==null?void 0:Ne.fatherPath)!==""&&((na=(Ue=Ne==null?void 0:Ne.quote)==null?void 0:Ue[0])==null?void 0:na.menus)===(gl==null?void 0:gl.value))});let cl=(U=Ra==null?void 0:Ra.map(Ne=>{var na,re,ia,Va,Le,ja;let Ue=(na=Ne==null?void 0:Ne.contents)==null?void 0:na.filter(Ma=>{var il,We,pa;return JSON.stringify(Ma==null?void 0:Ma.relatedId)!=="{}"&&(Ma==null?void 0:Ma.relatedId)!==""&&(Ma!=null&&Ma.relatedId)?(il=Ma==null?void 0:Ma.relatedId)==null?void 0:il.includes(parseInt(nl)):(Ma==null?void 0:Ma.sort)===((pa=(We=a==null?void 0:a.fixContent)==null?void 0:We[0])==null?void 0:pa.sort)});if((Ue==null?void 0:Ue.length)>0){let Ma=(re=a==null?void 0:a.fixContent)==null?void 0:re[0];Ma={...Ma,id:(ia=Ue==null?void 0:Ue[0])==null?void 0:ia.id};let il={},We=Ma,pa;return Array.isArray((Va=Ne==null?void 0:Ne.struct)==null?void 0:Va[0])?pa=de.getColumnChild((Le=Ne==null?void 0:Ne.struct)==null?void 0:Le[0]):pa=Ne==null?void 0:Ne.struct,pa=pa==null?void 0:pa.filter(ma=>(ma==null?void 0:ma.prop)!=="relatedId"),pa==null||pa.forEach(ma=>{var ka,_e;il[ma.prop]=((ka=ma==null?void 0:ma.words)!=null&&ka[0]?(We==null?void 0:We[(_e=ma==null?void 0:ma.words)==null?void 0:_e[0]])??(We==null?void 0:We[ma==null?void 0:ma.prop]):We==null?void 0:We[ma==null?void 0:ma.prop])??""}),il.id=(ja=Ue==null?void 0:Ue[0])==null?void 0:ja.id,delete il.sort,delete il.relatedId,{tableName:"content_"+(Ne==null?void 0:Ne.id),tableContents:[il]}}else return}))==null?void 0:U.filter(Ne=>Ne);Aa=[...Aa,...cl],await A.pageBatchDeleteApi({platId:parseInt((De=vl==null?void 0:vl.value)==null?void 0:De.plat_id),changeContents:Aa});let ll=[];Aa==null||Aa.forEach(Ne=>{var Ue;(Ue=Ne==null?void 0:Ne.tableContents)==null||Ue.forEach(na=>{ll.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(na),request_result:"{}",is_delete:!1,request_table:Ne==null?void 0:Ne.tableName,request_type:"delete"})})}),await A.pageBatchAddApi({platId:parseInt((Oe=vl==null?void 0:vl.value)==null?void 0:Oe.plat_id),changeContents:[{tableName:"log",tableContents:ll}]})}if((a==null?void 0:a.buttonName)==="复制新增"){let Aa=await A.getPageDataApi({platId:parseInt((Fe=vl==null?void 0:vl.value)==null?void 0:Fe.plat_id),pageName:"menu"});if(Aa=(ea=Aa==null?void 0:Aa.data)==null?void 0:ea.result,Aa!=null&&Aa.find(rl=>(rl==null?void 0:rl.father_name)===gl.value+"/")){gc.value=a,yc.value=Aa==null?void 0:Aa.filter(ul=>(ul==null?void 0:ul.father_name)===gl.value+"/");let rl=(ee=(Ba=a==null?void 0:a.columns)==null?void 0:Ba.find(ul=>ul==null?void 0:ul.mainKey))==null?void 0:ee.prop,nl=(ue=(ua=a==null?void 0:a.fixContent)==null?void 0:ua[0])==null?void 0:ue[rl];Dt.value=!0,Ki.value=[{prop:rl,label:rl,name:rl,value:nl}]}else{let rl=(sa=a==null?void 0:a.fixContent)==null?void 0:sa.map(Ra=>{let cl={};for(let ll in Ra)Array.isArray(Ra==null?void 0:Ra[ll])?cl[ll]=JSON.stringify(Ra==null?void 0:Ra[ll]):cl[ll]=Ra==null?void 0:Ra[ll];return cl.relatedId="",cl}),nl=[{tableName:(Se=a==null?void 0:a.relatedContents)==null?void 0:Se.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:rl}];await A.pageBatchAddApi({platId:parseInt((oe=vl==null?void 0:vl.value)==null?void 0:oe.plat_id),changeContents:nl});let ul=[];nl==null||nl.forEach(Ra=>{var cl;(cl=Ra==null?void 0:Ra.tableContents)==null||cl.forEach(ll=>{ul.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ll),request_result:"{}",is_delete:!1,request_table:Ra==null?void 0:Ra.tableName,request_type:"copyAdd"})})}),await A.pageBatchAddApi({platId:parseInt((ze=vl==null?void 0:vl.value)==null?void 0:ze.plat_id),changeContents:[{tableName:"log",tableContents:ul}]})}}if((a==null?void 0:a.buttonName)==="methodButton"){let Aa=((Ya=(ca=(Ke=a==null?void 0:a.columns)==null?void 0:Ke.map(re=>re==null?void 0:re.filter))==null?void 0:ca.filter(re=>re!==""))==null?void 0:Ya[0])??"";Aa=de.analyzeSplitToContent(Aa,","),Aa=(Aa==null?void 0:Aa.find(re=>re==null?void 0:re.includes("@Filter")))??"";let rl=(R=a==null?void 0:a.fixContent)==null?void 0:R.map(re=>{let ia={};for(let Va in re)Array.isArray(re==null?void 0:re[Va])?ia[Va]=JSON.stringify(re==null?void 0:re[Va]):ia[Va]=re==null?void 0:re[Va];return ia}),nl=await A.quoteApi({platId:parseInt((j=vl==null?void 0:vl.value)==null?void 0:j.plat_id),type:"fatherSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});nl=(J=nl==null?void 0:nl.data)==null?void 0:J.result,nl=nl==null?void 0:nl.filter(re=>{var ia,Va;return!((re==null?void 0:re.fatherPath)!==""&&((Va=(ia=re==null?void 0:re.quote)==null?void 0:ia[0])==null?void 0:Va.menus)===(gl==null?void 0:gl.value))});let ul=(pe=(ve=a==null?void 0:a.columns)==null?void 0:ve[0])==null?void 0:pe.prop,Ra=(ya=rl==null?void 0:rl[0])==null?void 0:ya[ul],cl=[{tableName:(aa=a==null?void 0:a.relatedContents)==null?void 0:aa.find(re=>re==null?void 0:re.includes("content")),tableContents:rl}],ll=(ce=nl==null?void 0:nl.map(re=>{var Va,Le,ja,Ma,il;let ia=(Va=re==null?void 0:re.contents)==null?void 0:Va.filter(We=>{var pa;return(pa=Object.values(We))==null?void 0:pa.find(ma=>ma===Ra)});if((ia==null?void 0:ia.length)>0){let We=rl==null?void 0:rl[0];We={...We,id:(Le=ia==null?void 0:ia[0])==null?void 0:Le.id};let pa={},ma=We,ka;return Array.isArray((ja=re==null?void 0:re.struct)==null?void 0:ja[0])?ka=de.getColumnChild((Ma=re==null?void 0:re.struct)==null?void 0:Ma[0]):ka=re==null?void 0:re.struct,ka=ka==null?void 0:ka.filter(_e=>(_e==null?void 0:_e.prop)!=="relatedId"),ka==null||ka.forEach(_e=>{var Tl,Jl;pa[_e.prop]=((Tl=_e==null?void 0:_e.words)!=null&&Tl[0]?(ma==null?void 0:ma[(Jl=_e==null?void 0:_e.words)==null?void 0:Jl[0]])??(ma==null?void 0:ma[_e==null?void 0:_e.prop]):ma==null?void 0:ma[_e==null?void 0:_e.prop])??""}),pa.id=(il=ia==null?void 0:ia[0])==null?void 0:il.id,delete pa.sort,{tableName:"content_"+(re==null?void 0:re.id),tableContents:[pa]}}else return}))==null?void 0:ce.filter(re=>re);cl=[...cl,...ll];let Ne=await A.quoteApi({platId:parseInt((ga=vl==null?void 0:vl.value)==null?void 0:ga.plat_id),type:"sonSyncs",related:[{menus:r!==""?gl.value+"/"+r:gl.value,groups:a==null?void 0:a.name}]});if(Ne=(Je=(Ae=Ne==null?void 0:Ne.data)==null?void 0:Ae.result)==null?void 0:Je.filter(re=>!(cl!=null&&cl.find(ia=>(ia==null?void 0:ia.tableName)==="content_"+(re==null?void 0:re.id)))),Ne=Ne==null?void 0:Ne.filter(re=>{var ia,Va;return!((re==null?void 0:re.fatherPath)!==""&&((Va=(ia=re==null?void 0:re.quote)==null?void 0:ia[0])==null?void 0:Va.menus)===(gl==null?void 0:gl.value))}),Aa&&Aa!==""){(Aa==null?void 0:Aa[(Aa==null?void 0:Aa.length)-1])===","&&(Aa=Aa==null?void 0:Aa.slice(0,(Aa==null?void 0:Aa.length)-1)),Aa=(Ca=(Na=Aa==null?void 0:Aa.replace("(",mo))==null?void 0:Na.split(mo))==null?void 0:Ca[1],Aa=Aa==null?void 0:Aa.slice(0,(Aa==null?void 0:Aa.length)-1),(Aa==null?void 0:Aa[0])==="*"&&(Aa="{"+(($a=(la=Aa==null?void 0:Aa.replace("{",mo))==null?void 0:la.split(mo))==null?void 0:$a[1])),Aa=(va=Aa==null?void 0:Aa.replaceAll("{",""))==null?void 0:va.replaceAll("}","");let re=de.calculatorAndToOr(Aa);re=re==null?void 0:re[0];let ia;if((W=Object.values(re))!=null&&W.some(Va=>(Va==null?void 0:Va[0])==="*")){let Va=(Ie=(Te=Pn.value)==null?void 0:Te.find(Le=>(Le==null?void 0:Le.condition)==="child"))!=null&&Ie.value?(an==null?void 0:an.value)+"/"+((wa=(we=Pn.value)==null?void 0:we.find(Le=>(Le==null?void 0:Le.condition)==="child"))==null?void 0:wa.value):an==null?void 0:an.value;ia=await Jr(Va,!1)}for(let Va in re)if(((oa=re==null?void 0:re[Va])==null?void 0:oa[0])==="*"){let Le=(fe=(qe=(He=re[Va])==null?void 0:He.slice(1,(Qe=re[Va])==null?void 0:Qe.length))==null?void 0:qe.split(":"))==null?void 0:fe[0],ja=(da=(ke=re[Va])==null?void 0:ke.split(":"))==null?void 0:da[1],Ma=(La=ia==null?void 0:ia.filter(il=>(il==null?void 0:il.name)===Le))==null?void 0:La[0];Ma=(Ol=(dl=Ma==null?void 0:Ma.compData)==null?void 0:dl.find(il=>(il==null?void 0:il.key)==="tableContents"))==null?void 0:Ol.contents,Ma=(sl=Ma==null?void 0:Ma[0])==null?void 0:sl[ja],re[Va]=Ma}Aa=((Fl=Object.values(re))==null?void 0:Fl[0])??""}let Ue=(Fa=Ne==null?void 0:Ne.map(re=>{var Va,Le,ja,Ma,il;let ia=(Va=re==null?void 0:re.contents)==null?void 0:Va.filter(We=>{var pa;return(pa=Object.values(We))==null?void 0:pa.find(ma=>ma===(Aa===""?Ra:Aa))});if((ia==null?void 0:ia.length)>0){let We=rl==null?void 0:rl[0];We={...We,id:(Le=ia==null?void 0:ia[0])==null?void 0:Le.id};let pa={},ma=We,ka;return Array.isArray((ja=re==null?void 0:re.struct)==null?void 0:ja[0])?ka=de.getColumnChild((Ma=re==null?void 0:re.struct)==null?void 0:Ma[0]):ka=re==null?void 0:re.struct,ka=ka==null?void 0:ka.filter(_e=>(_e==null?void 0:_e.prop)!=="relatedId"),ka==null||ka.forEach(_e=>{var Jl,rr,er,pr;let Tl=(Jl=a==null?void 0:a.columns)==null?void 0:Jl.find(Gl=>{var Re,jl,fr;return((jl=(Re=Gl==null?void 0:Gl.words)==null?void 0:Re[0])==null?void 0:jl.replaceAll("'",""))===(_e==null?void 0:_e.prop)&&((fr=Gl==null?void 0:Gl.functionRelatedWords)==null?void 0:fr.length)>0});Tl=(rr=Tl==null?void 0:Tl.prop)==null?void 0:rr.replaceAll("'",""),pa[_e.prop]=((er=_e==null?void 0:_e.words)!=null&&er[0]?(ma==null?void 0:ma[(pr=_e==null?void 0:_e.words)==null?void 0:pr[0]])??(ma==null?void 0:ma[_e==null?void 0:_e.prop])??(ma==null?void 0:ma[Tl]):(ma==null?void 0:ma[_e==null?void 0:_e.prop])??(ma==null?void 0:ma[Tl]))??void 0}),pa.id=(il=ia==null?void 0:ia[0])==null?void 0:il.id,delete pa.sort,{tableName:"content_"+(re==null?void 0:re.id),tableContents:[pa]}}else return}))==null?void 0:Fa.filter(re=>re);cl=[...cl,...Ue],await A.pageBatchUpdateApi({platId:parseInt((Vl=vl==null?void 0:vl.value)==null?void 0:Vl.plat_id),changeContents:cl});let na=[];cl==null||cl.forEach(re=>{var ia;(ia=re==null?void 0:re.tableContents)==null||ia.forEach(Va=>{na.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Va),request_result:"{}",is_delete:!1,request_table:re==null?void 0:re.tableName,request_type:"method"})})}),await A.pageBatchAddApi({platId:parseInt((zl=vl==null?void 0:vl.value)==null?void 0:zl.plat_id),changeContents:[{tableName:"log",tableContents:na}]})}zr.setRefreshCurStructure(!0),await xt(a)},kt=async(a,l,n)=>{var o;let r=a==null?void 0:a.find(s=>(s==null?void 0:s.id)===l);if(r){let s=(o=r.compData)==null?void 0:o.map(h=>{var c;if((h==null?void 0:h.key)==="tableContents"){let p={...h,contents:n};return p.contents=(c=(p==null?void 0:p.contents)??[])==null?void 0:c.map(m=>{let g={};for(let u in m)JSON.stringify(m==null?void 0:m[u])==="{}"?g[u]="":g[u]=m==null?void 0:m[u];return g}),p}return h});return r.compData=await Et(s,{}),a=a==null?void 0:a.map(h=>((h==null?void 0:h.id)===(r==null?void 0:r.id)&&(h=r),h)),a}else{let s=a==null?void 0:a.filter(c=>{var p;return(c==null?void 0:c.children)&&((p=c==null?void 0:c.children)==null?void 0:p.length)>0||(c==null?void 0:c.comp)==="Tabs"}),h=s==null?void 0:s.map(async c=>{var p;return c!=null&&c.children&&((p=c==null?void 0:c.children)==null?void 0:p.length)>0?c.children=await kt(c==null?void 0:c.children,l,n):c.compData=await kt(c==null?void 0:c.compData,l,n),c});return s=await Promise.all(h),s}},xt=async a=>{var s,h,c,p,m,g,u;let l=(s=a==null?void 0:a.relatedContents)==null?void 0:s.filter(D=>D==null?void 0:D.includes("content_"));if(!l)return;let n=await A.getAllTables({platId:parseInt((h=vl==null?void 0:vl.value)==null?void 0:h.plat_id),tableNames:l??[]});if(n=(p=(c=n==null?void 0:n.data)==null?void 0:c.result)==null?void 0:p[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(D=>{D==null||delete D.source_table;const M={};for(let k in D){const K=D==null?void 0:D[k],I=K&&Object.prototype.toString.call(K)==="[object Object]"&&Object.keys(K).length===0,H=Array.isArray(K)&&K.length===0;K==null||K==="{}"||I||H?M[k]="":M[k]=K}return M});let r=(g=(m=l==null?void 0:l[0])==null?void 0:m.split("_"))==null?void 0:g[1],o=await kt(ur.value,r,n);ur.value=(u=ur.value)==null?void 0:u.map(D=>{var M,k;return(M=o==null?void 0:o[0])!=null&&M.tabInform&&((k=o==null?void 0:o[0])==null?void 0:k.tabInform)===(D==null?void 0:D.tabInform)?D=o==null?void 0:o[0]:(D!=null&&D.name?(D==null?void 0:D.name)===(o==null?void 0:o.name):(D==null?void 0:D.id)===(o==null?void 0:o.id))&&(D=o),D})},T0=a=>{let l=Ki.value;Ki.value=l==null?void 0:l.map(n=>(n.value=a==null?void 0:a[n==null?void 0:n.prop],n))},N0=async()=>{var D,M,k,K,I,H,L,E,x,w;let a=gc.value,l=yc.value,n=(M=(D=a==null?void 0:a.columns)==null?void 0:D.find(b=>b==null?void 0:b.mainKey))==null?void 0:M.prop,r=(K=(k=Ki.value)==null?void 0:k[0])==null?void 0:K.value,o=(I=a==null?void 0:a.fixContent)==null?void 0:I.map(b=>{var $;let _={};for(let V in b)Array.isArray(b==null?void 0:b[V])?_[V]=JSON.stringify(b==null?void 0:b[V]):_[V]=b==null?void 0:b[V];return($=a==null?void 0:a.columns)==null||$.forEach(V=>{(V==null?void 0:V.formType)==="Upload"&&(_==null?void 0:_[V==null?void 0:V.prop])===""&&(_[V==null?void 0:V.prop]="{}")}),_[n]=r,_}),s=[{tableName:(H=a==null?void 0:a.relatedContents)==null?void 0:H.find(b=>b==null?void 0:b.includes("content")),tableContents:o}];await A.pageBatchAddApi({platId:parseInt((L=vl==null?void 0:vl.value)==null?void 0:L.plat_id),changeContents:s}),l=l==null?void 0:l.filter(b=>{var _,$,V;return(V=b==null?void 0:b.object_name)==null?void 0:V.includes(($=(_=a==null?void 0:a.fixContent)==null?void 0:_[0])==null?void 0:$[n])});let h=[],c=new Map;l==null||l.forEach(b=>{h.push(`content_${b==null?void 0:b.object_id}`),h.push(`struct_${b==null?void 0:b.object_id}`),c.set(b==null?void 0:b.object_id,b)});let p=await A.getAllTables({platId:parseInt((E=vl==null?void 0:vl.value)==null?void 0:E.plat_id),tableNames:h??[]});p=(x=p==null?void 0:p.data)==null?void 0:x.result;let m=[],g=[];p=de.chunk(p,2),p==null||p.forEach(b=>{var V,ne,X,me,Me,F,te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba,ee;let _=c.get((me=(X=(ne=(V=b==null?void 0:b[1])==null?void 0:V[0])==null?void 0:ne.source_table)==null?void 0:X.split("_"))==null?void 0:me[1]),$=(te=(F=(Me=_==null?void 0:_.object_name)==null?void 0:Me.split("/"))==null?void 0:F.filter((ua,ue)=>{var sa,Se;return((Se=(sa=_==null?void 0:_.object_name)==null?void 0:sa.split("/"))==null?void 0:Se.length)-1!==ue}))==null?void 0:te.join("/");if($=$+"/"+r,g!=null&&g.find(ua=>(ua==null?void 0:ua.path)===$)||g.push({fatherPath:_==null?void 0:_.father_name,isShow:_==null?void 0:_.is_show,path:$}),((se=(Z=b==null?void 0:b[1])==null?void 0:Z[0])==null?void 0:se.类型)==="Table"){let ua=((he=(Ve=(Be=b==null?void 0:b[1])==null?void 0:Be[0])==null?void 0:Ve.结构)==null?void 0:he.contents)??[],ue=al.safeClone(ua);Array.isArray(ue==null?void 0:ue[0])&&(ue=de.getColumnChild(ue==null?void 0:ue[0]));let sa=[];if(((N=b==null?void 0:b[0])==null?void 0:N.length)>0&&(sa=(ie=b==null?void 0:b[0])==null?void 0:ie.map(Se=>ue==null?void 0:ue.map(ze=>(ze=(Se==null?void 0:Se[ze==null?void 0:ze.prop])??"",ze)))),m!=null&&m.find(Se=>(Se==null?void 0:Se.key)===$)){let Se=(U=m==null?void 0:m.find(ze=>(ze==null?void 0:ze.key)===$))==null?void 0:U.contents;Se.push({isShow:_==null?void 0:_.is_show,filter:((Fe=(Oe=(De=b==null?void 0:b[1])==null?void 0:De[0])==null?void 0:Oe.引用)==null?void 0:Fe.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:ua,tableContents:sa});let oe=m==null?void 0:m.findIndex(ze=>(ze==null?void 0:ze.key)===$);m[oe].contents=Se}else m.push({key:$,contents:[{isShow:_==null?void 0:_.is_show,filter:((ee=(Ba=(ea=b==null?void 0:b[1])==null?void 0:ea[0])==null?void 0:Ba.引用)==null?void 0:ee.contents)??"",key:"Table",name:Object.values(_==null?void 0:_.name),tableColumns:ua,tableContents:sa}]})}});let u=[];u.push({key:"menuPath",contents:g}),u=[...u,...m],await A.createPlatFormDataApi({platId:parseInt((w=vl==null?void 0:vl.value)==null?void 0:w.plat_id),changeData:u}),Dt.value=!1,zr.setRefreshTable(!0)},No=async(a,l)=>{},Ao=async a=>{ur.value=await de.getDeepDiffItems(a),zr.setItemData(ur.value),zr.setOriginalData(ur.value)};e.ref();const A0=e.ref(null),z0=()=>{var a,l;console.log("倒计时结束时"),A.ElMessageBox.alert(`超时未提交,【${(l=(a=gl.value)==null?void 0:a.split("/"))==null?void 0:l[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},wc=e.ref([]),M0=e.computed(()=>{var a,l;return(l=(a=gt.value)==null?void 0:a[gl.value])==null?void 0:l.filter(n=>{var r;return((r=n==null?void 0:n.key)==null?void 0:r.type)==="gridLayout"})});e.watch(()=>[b0.value],()=>{hn.setSelectTitle([]),hn.setChooseTitle([])},{deep:!0});e.watch(()=>Bo.value,async(a,l)=>{var r,o,s,h,c,p;let n=(r=Bo.value)==null?void 0:r.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==an.value);if((n==null?void 0:n.length)>0){$r.setContentLoading(!0);let m=((o=n==null?void 0:n[0])==null?void 0:o.relatedContent)??(gl==null?void 0:gl.value),g=m+"/"+((s=n==null?void 0:n[0])==null?void 0:s.value),u=!!((h=n==null?void 0:n[0])!=null&&h.parentContent),D=await Jr(g,u,{originPath:m});D=(c=D==null?void 0:D.filter(K=>K))==null?void 0:c.map(K=>(K.isShow=!0,K)),console.log(D,"loadingContents");let M=await de.getDeepDiffItems(D),k=M==null?void 0:M.filter(K=>K==null?void 0:K.choice);Oo.setSelectTab((p=k==null?void 0:k[0])==null?void 0:p.choiceName),M=M==null?void 0:M.filter(K=>{var I;return!(K!=null&&K.choiceName)||(K==null?void 0:K.choiceName)===((I=k==null?void 0:k[0])==null?void 0:I.choiceName)}),ur.value=M,$r.setContentLoading(!1)}});const I0=(a,l)=>{setTimeout(async()=>{var c,p,m;let n=(c=Bo.value)==null?void 0:c.filter(g=>(g==null?void 0:g.condition)==="child"&&(g==null?void 0:g.value)!==""&&(g==null?void 0:g.parentContent)!==an.value),r=gl==null?void 0:gl.value,o=gl==null?void 0:gl.value;(n==null?void 0:n.length)>0&&(o=((p=n==null?void 0:n[0])==null?void 0:p.relatedContent)??(gl==null?void 0:gl.value),r=o+"/"+((m=n==null?void 0:n[0])==null?void 0:m.value));let s=await Jr(r,!1,{originPath:o});s=s==null?void 0:s.map(g=>(g.isShow=!0,g));let h=await de.getDeepDiffItems(s);ur.value=h==null?void 0:h.filter(g=>!(g!=null&&g.step)||(g==null?void 0:g.step)===(a==null?void 0:a.title))},10)},O0=a=>{setTimeout(async()=>{var h,c,p;let l=(h=Bo.value)==null?void 0:h.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==an.value),n=gl==null?void 0:gl.value,r=gl==null?void 0:gl.value;(l==null?void 0:l.length)>0&&(r=((c=l==null?void 0:l[0])==null?void 0:c.relatedContent)??(gl==null?void 0:gl.value),n=r+"/"+((p=l==null?void 0:l[0])==null?void 0:p.value));let o=await Jr(n,!1,{originPath:r});o=o==null?void 0:o.map(m=>(m.isShow=!0,m)),Oo.setSelectTab(a);let s=await de.getDeepDiffItems(o);ur.value=s==null?void 0:s.filter(m=>!(m!=null&&m.choiceName)||(m==null?void 0:m.choiceName)===a)},10)};e.watch(()=>g0.value,a=>{a!=null&&a.length||(ur.value=[])},{immediate:!0});e.watch(()=>[gl.value],async a=>{var s,h,c,p;if(!gl.value)return;if(gl.value==="/"){ur.value=[];return}$r.setCurrentMenuPath(gl.value),zr.setLockingPage(""),ur.value=[];let l=e.getCurrentInstance();(s=l==null?void 0:l.scope)==null||s.stop(),l=null,Bi.value=!1,$r.setContentLoading(!0),mc.value=!0;let n=a==null?void 0:a[0],r=n,o=(h=Pn.value)==null?void 0:h.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==gl.value&&!(m!=null&&m.relatedContent));if((o==null?void 0:o.length)>0&&(n=n+"/"+((c=o==null?void 0:o[0])==null?void 0:c.value)),n==="系统管理/日志管理")ur.value=await f0("log");else{let m=await Jr(n,!0,{originPath:r});m=m==null?void 0:m.map(D=>(D.isShow=!0,D));let g=await de.getDeepDiffItems(m),u=g==null?void 0:g.filter(D=>D==null?void 0:D.choice);Oo.setSelectTab((p=u==null?void 0:u[0])==null?void 0:p.choiceName),ur.value=g==null?void 0:g.filter(D=>{var M;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((M=u==null?void 0:u[0])==null?void 0:M.choiceName)})}$r.setContentLoading(!1),zr.setExtraContents([]),hn.setSelectIndex(""),hn.setSelectMenu(""),zr.setItemData(ur.value),zr.setOriginalData(ur.value),zr.setRefreshTable(!1),e.nextTick(()=>{jn.value=jn.value++,Bi.value=!0})},{immediate:!0});e.watch(()=>[gs.value],async()=>{var a,l,n,r;if(gs.value){ur.value=[];let o=e.getCurrentInstance();(a=o==null?void 0:o.scope)==null||a.stop(),o=null,Bi.value=!1,$r.setContentLoading(!0),mc.value=!0;let s=an==null?void 0:an.value,h=s,c=(l=Pn.value)==null?void 0:l.filter(u=>(u==null?void 0:u.condition)==="child"&&(u==null?void 0:u.value)!==""&&(u==null?void 0:u.parentContent)!==(an==null?void 0:an.value));(c==null?void 0:c.length)>0&&(s=s+"/"+((n=c==null?void 0:c[0])==null?void 0:n.value));let p=await Jr(s,!0,{originPath:h});p=p==null?void 0:p.map(u=>(u.isShow=!0,u));let m=await de.getDeepDiffItems(p),g=m==null?void 0:m.filter(u=>u==null?void 0:u.choice);if(Oo.setSelectTab((r=g==null?void 0:g[0])==null?void 0:r.choiceName),ur.value=m==null?void 0:m.filter(u=>{var D;return!(u!=null&&u.choiceName)||(u==null?void 0:u.choiceName)===((D=g==null?void 0:g[0])==null?void 0:D.choiceName)}),$r.setContentLoading(!1),zr.setExtraContents([]),hn.setSelectIndex(""),hn.setSelectMenu(""),zr.setItemData(ur.value),zr.setOriginalData(ur.value),zr.setRefreshTable(!1),(c==null?void 0:c.length)>0){let u=[...Pn.value,...c];hn.setSelectTitle(u)}e.nextTick(()=>{jn.value=jn.value++,Bi.value=!0})}},{immediate:!0,deep:!0});const L0=async()=>{$r.setLinkMenuInfo(null),$r.setActiveMenuPath(y0.value),ur.value=null,zr.setRouteToChildPath(""),$r.setChildMenu("")},R0=a=>new RegExp("button","i").test(a),$0=a=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(a),_c=a=>{if($0(a)){const l=a==null?void 0:a.split("^");(l==null?void 0:l.length)>0&&(l!=null&&l[0])&&$r.setLinkMenuInfo({path:l==null?void 0:l[0],data:l==null?void 0:l[1]})}},Sc=async(a,l,n)=>{var D,M,k,K,I,H,L,E,x,w,b,_;let r="",o="";for(let $ in l)(l==null?void 0:l[$])===a&&(o=$);n==null||n.forEach($=>{($==null?void 0:$.prop)===o&&(r=$==null?void 0:$.fatherPath)});let s=r===""?gl.value:r;r!==""&&$r.setCurrentMenuPath(s),$r.setCurrentMenuPath(s+"/"+a),$r.setContentLoading(!0),ur.value=await Jr(s+"/"+a,!0,{originPath:s+"/",row:l});let h=await Jr(s,!1),c=(D=h==null?void 0:h.filter($=>($==null?void 0:$.comp)==="Table"))==null?void 0:D[0],p=((I=(K=(k=(M=c==null?void 0:c.compData)==null?void 0:M.find($=>($==null?void 0:$.key)==="header"))==null?void 0:k.contents)==null?void 0:K[0])==null?void 0:I.prop)??((w=(x=(E=(L=(H=c==null?void 0:c.compData)==null?void 0:H.find($=>($==null?void 0:$.key)==="header"))==null?void 0:L.contents)==null?void 0:E[0])==null?void 0:x[0])==null?void 0:w.prop),m=(_=(b=c==null?void 0:c.compData)==null?void 0:b.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:_.contents;m=m==null?void 0:m.map($=>({label:$==null?void 0:$[p],value:$==null?void 0:$[p]}));let g=Pn.value,u={value:a,condition:"child",options:m,relatedContent:s,isShow:!0};g=g==null?void 0:g.filter($=>($==null?void 0:$.condition)!=="child"),g.push(u),hn.setSelectTitle(g),hn.setChooseTitle([u]),$r.setContentLoading(!1),zr.setExtraContents([]),hn.setSelectIndex(""),hn.setSelectMenu(""),zr.setItemData(ur.value),zr.setOriginalData(ur.value)},V0=a=>{kc.value=a},Si=e.reactive({index:0,comp:null}),P0=e.computed(()=>{var a;return(a=ur.value)==null?void 0:a.map((l,n)=>({id:l.id,name:l.name,status:F0(l,n)}))}),Ec=(a,l)=>{var p,m,g,u,D;const n=l?a:a-2,r=(p=ur.value)==null?void 0:p[n],o=(g=(m=r==null?void 0:r.compData)==null?void 0:m.find(M=>(M==null?void 0:M.key)==="header"))==null?void 0:g.contents,s=o==null?void 0:o.findIndex(M=>(M==null?void 0:M.isMainKey)&&(M==null?void 0:M.label)!=="操作"),h=s===-1?0:s,c=(D=(u=r==null?void 0:r.compData)==null?void 0:u.find(M=>(M==null?void 0:M.key)==="tableContents"))==null?void 0:D.contents;return{valid:c==null?void 0:c.every(M=>M==null?void 0:M[h+1]),length:(c==null?void 0:c.length)||0}},F0=(a,l)=>{var r;let n="process";if(((r=a==null?void 0:a.comp)==null?void 0:r.toUpperCase())==="TABLE"){const{valid:o,length:s}=Ec(l,!0);Si.index===l?n="process":s===0?n="wait":n=o?"success":"error"}return n},Cc=a=>{var n,r,o,s,h;const l=a+1;if(l>1&&((o=(r=(n=ur.value)==null?void 0:n[a])==null?void 0:r.comp)==null?void 0:o.toUpperCase())==="TABLE"){const{valid:c}=Ec(l);c?(Si.index=l,Si.comp=(s=ur.value)==null?void 0:s[a]):Ua.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else Si.index=l,Si.comp=(h=ur.value)==null?void 0:h[a]},Dc=e.computed(()=>{var a,l;return(l=(a=bc.value)==null?void 0:a[0])==null?void 0:l.isStepLayout});e.watch(()=>Dc.value,a=>{a&&Cc(0)},{immediate:!0});const j0={class:"table-content"},H0={class:"menu-config-wrap"},U0=["onClick"],q0={key:0,class:"viewport-wrap"},W0=["onClick"],K0={title:"选择显示列信息"},G0={key:0,class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},Y0=["title"],J0={class:"col-operate-wrap"},X0={key:0,class:"col-operate-radio-wrapper"},Z0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Q0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},e3={class:"pop-view"},a3={class:"pop-wrapper"},l3={class:"file-list-pop"},r3=["title","onClick"],n3=["onClick"],i3=["onClick"],o3={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},t3={class:"form-content"},s3={key:0,class:"dialog-footer"},c3={class:"dialog-footer"},u3={class:"ocr-dialog-content"},d3={class:"ocr-steps"},p3={key:0,class:"ocr-action-buttons"},f3={key:1,class:"ocr-preview-area"},h3={class:"ocr-file-grid"},v3={class:"file-thumbnail"},m3=["src"],y3={key:1,class:"thumbnail-placeholder"},g3={class:"progress-svg",viewBox:"0 0 36 36"},b3=["stroke","stroke-width","stroke-dasharray"],k3={key:0,class:"progress-icon"},x3={key:1,class:"progress-icon"},w3=["onClick"],_3={class:"file-name"},S3={key:0,class:"ocr-recognize-button"},E3={key:2,class:"ocr-progress-section"},C3={key:3,class:"ocr-confirm-area"},D3={class:"ocr-preview-tip"},B3={class:"ocr-preview-table"},T3={style:{display:"flex","align-items":"center",gap:"8px"}},N3={key:0},A3={key:4,class:"ocr-success-area"},z3={key:0,class:"ocr-dialog-footer"},M3={class:"form-content"},I3={style:{width:"100%",margin:"0","font-size":"14px","font-weight":"600"}},O3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},L3={style:{display:"flex"}},ks="ss-ocr-upload-history",R3="ss-ocr-cert-history-v1",$3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},groupNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(a,{emit:l}){var Vt;const n=e.ref([]),r=Ct(A.pinia),o=e.ref(null),s=e.ref(new Set),h=e.ref(new Map),c=e.ref(!1),p=e.ref(new Map),m=new Map,g=e.ref(new Map),u=a,D=e.ref((u==null?void 0:u.allowSelect)??!0),M=e.ref(((Vt=u==null?void 0:u.config)==null?void 0:Vt.showIndex)??!0),k=e.ref(),K=e.ref(!0),I=e.ref(!1),H=e.ref([]),L={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},E=e.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),x=de.useOriginalState(A.pinia);let w="$R";const{originalPath:b}=A.storeToRefs(x),_=b.value,$=e.computed(()=>{var v;const d=(v=de.getAllLeafNodes(F.value)||[])==null?void 0:v.filter(B=>(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate");return d.length>0?d.every(B=>!!(B!=null&&B.sortable)):!1});e.computed(()=>{var v;return(v=F.value)==null?void 0:v.every(B=>B==null?void 0:B.filterable)}),e.computed(()=>{var v;return(v=F.value)==null?void 0:v.every(B=>B==null?void 0:B.operable)});const V=e.ref(!0),ne=e.ref([]),X=e.reactive({column:{},status:!1,text:"合计"}),me=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Me=l,F=e.ref([]),te=e.ref([]),Z=e.ref([]),se=e.reactive({prop:"",order:null}),Be=e.ref([]),Ve=e.ref(!1),he=e.ref(!1),N=e.ref(null),{isUseBackdrop:ie,initTrackFileType:U,getFileExtension:De,setData:Oe,getFileInfo:Fe,getFilesInfo:ea}=So.useThreeSystem(),Ba=e.ref([]),ee=e.ref(!1),ua=e.ref(),ue=A.useMenuState(),{importLoading:sa,activeMenuPath:Se,contentLoading:oe,linkMenuInfo:ze}=A.storeToRefs(ue),Ke=de.useTableComp(A.pinia),ca=A.useModelComp(A.pinia),Ya=Hn(A.pinia),{extraContents:R,cacheUpdatingData:j,tableViewContents:J,tableLoading:ve,pageMapState:pe,lockingPage:ya}=A.storeToRefs(ca),{selectTab:aa}=A.storeToRefs(Ya),{compType:ce,hasEditable:ga}=Ys.useRole(),Ae=e.ref([]),Je=e.ref([]),Na=e.ref(new Map);e.ref(!1);const Ca=e.ref("");e.ref();const la=e.ref(!0),$a=e.ref(0),va=e.ref(!0),W=e.ref(""),Te=e.ref(!1),Ie=e.ref(null);e.ref([]);const we=e.ref({label:"查看三维模型"}),wa=e.ref(!1),oa=e.ref(),Qe=e.ref([]),He=e.ref([]),qe=e.ref(!1),fe=e.ref([]),ke=e.ref([]),da=e.ref([]),La=e.ref([]),dl=e.ref([]),Ol=()=>{try{const d=localStorage.getItem(ks),v=d?JSON.parse(d):[];dl.value=Array.isArray(v)?v:[]}catch{dl.value=[]}},sl=()=>{try{localStorage.setItem(ks,JSON.stringify(dl.value||[]))}catch{}},Fl=d=>{var le,ae,q;if(!d)return;const v=d.url||((le=d==null?void 0:d.uploadResult)==null?void 0:le.url)||"",B=d.name||((ae=d==null?void 0:d.uploadResult)==null?void 0:ae.name)||((q=d==null?void 0:d.uploadResult)==null?void 0:q.fileName)||"";if(!v&&!B)return;const z={name:B,url:v,ts:Date.now()},P=String(z.name||"").trim().toLowerCase(),C=(dl.value||[]).findIndex(be=>String((be==null?void 0:be.name)||"").trim().toLowerCase()===P);C>-1&&dl.value.splice(C,1),dl.value.unshift(z),dl.value.length>20&&(dl.value=dl.value.slice(0,20)),sl()};Ol();const Fa=(d,v)=>`${R3}:${String(d??"")}:${String(v??"")}`,Vl=(d,v)=>{try{const B=sessionStorage.getItem(Fa(d,v)),z=B?JSON.parse(B):[];return Array.isArray(z)?z:[]}catch{return[]}},zl=(d,v,B)=>{try{sessionStorage.setItem(Fa(d,v),JSON.stringify(Array.isArray(B)?B:[]))}catch{}},Aa=(d,v,B)=>{if(!v)return;const z=Vl(d,v),P=[B,...z||[]].filter(Boolean).slice(0,1);return zl(d,v,P),P},rl=(d,v,B)=>{if(!v||!B)return;const z=Fa(d,v),P=Fa(d,B);try{const C=sessionStorage.getItem(z);if(!C)return;const le=(()=>{try{const be=JSON.parse(C);return Array.isArray(be)?be:[]}catch{return[]}})(),ae=Vl(d,B),q=[...le,...ae||[]].filter(Boolean).sort((be,Ee)=>Number((Ee==null?void 0:Ee.ts)||0)-Number((be==null?void 0:be.ts)||0)).slice(0,1);sessionStorage.setItem(P,JSON.stringify(q)),sessionStorage.removeItem(z)}catch{}},nl=e.ref(!1),ul=e.ref(!1),Ra=e.ref([]),cl=e.ref(null);e.ref(!1),e.ref([]),e.ref(""),e.ref("");const ll=e.ref(!1),Ne=e.ref([]),Ue=e.ref(1),na=e.ref(new Map),re=e.ref(new Map),ia=e.ref(0),Va=e.ref(!1),Le=e.ref([]),ja=e.ref([]),Ma=d=>{var v;try{const B=(v=de.getAllLeafNodes(F.value)||[])==null?void 0:v.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return(B==null?void 0:B.find(z=>(z==null?void 0:z.prop)===d||(z==null?void 0:z.label)===d))||null}catch{return null}},il=d=>{const v=Ma(d),B=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"Input";return al.getComponent(B)||al.getComponent("Input")},We=e.ref([]),pa=e.ref(null),ma=e.ref([]),ka=e.ref(null),_e=e.ref(""),Tl=e.ref(!1),Jl=e.ref([]),rr=e.ref(""),er=e.ref(!1),pr=e.ref([]),Gl=e.ref([]),Re=e.ref([]),jl=e.ref(null),fr=e.ref([]),Tr=e.ref("");e.computed(()=>{var d;try{const v=(d=de.getAllLeafNodes(F.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return v==null||v.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("编号")||""}catch{return""}});const hr=e.computed(()=>{var d;try{const v=(d=de.getAllLeafNodes(F.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return v==null||v.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("名称")||""}catch{return""}}),Hl=e.computed(()=>{var d;try{const v=(d=de.getAllLeafNodes(F.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return v==null||v.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("制造厂")||""}catch{return""}}),Lr=()=>{er.value=!1,pr.value=[],Gl.value=[],Re.value=[],jl.value=null,fr.value=[],Tr.value=""},Pl=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Nr=(d,v)=>{const B=(d==null?void 0:d.ocrRow)||{};for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Pl(B[P])&&(v[P]=B[P]);const z=Je.value.find(P=>P.id===v.id);if(z)for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Pl(B[P])&&(z[P]=B[P]);Na.value&&Na.value.set(v.id,v),Aa(u==null?void 0:u.index,v.id,d==null?void 0:d.versionItem),Gl.value=[...Gl.value||[],JSON.parse(JSON.stringify(v))]},Ur=async(d,v=null)=>{var B,z,P,C,le,ae,q;try{const be=(B=de.getAllLeafNodes(F.value)||[])==null?void 0:B.filter(_a=>(_a==null?void 0:_a.type)!=="operate"&&(_a==null?void 0:_a.label)!=="操作"&&(_a==null?void 0:_a.prop)!=="operate"),Ee=new Map;be==null||be.forEach(_a=>{_a!=null&&_a.label&&(_a!=null&&_a.prop)&&Ee.set(_a.label,_a.prop)});const Ge=Ee.get("系统编号")||Ee.get("编号");if(!Ge){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Pe=v||jl.value;if((Array.isArray(Pe==null?void 0:Pe.result)?Pe.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let _a=0;_a<d.length;_a++){const Ia=d[_a],za=Ia[Ge];if(!za){console.warn(`第 ${_a+1} 条匹配行缺少系统编号,跳过`);continue}const Ze=`设备管理/试验设备/${za}`,Xa=await A.getPageDataApi({platId:parseInt((z=hl.value)==null?void 0:z.plat_id),pageName:Ze});if(!((P=Xa==null?void 0:Xa.data)!=null&&P.result)||!Array.isArray(Xa.data.result)){console.warn(`未找到详情页数据: ${Ze}`);continue}const xa=Xa.data.result.find(ta=>(ta==null?void 0:ta.property_name)==="校检记录");if(!xa){console.warn(`详情页 ${Ze} 中未找到校检记录表`);continue}const Za=(C=xa.contents)==null?void 0:C.find(ta=>(ta==null?void 0:ta.key)&&ta.key.startsWith("content_"));if(!Za||!Za.key){console.warn("校检记录表中未找到 content item");continue}const ye=Za.key,Oa=Array.isArray(Za.value)?Za.value:[];if(Oa.length>=5){const xe=[...Oa].sort((fa,Ta)=>{const el=Number((fa==null?void 0:fa.create_time)||0),qa=Number((Ta==null?void 0:Ta.create_time)||0);return el-qa})[0];xe!=null&&xe.id&&await A.pageBatchDeleteApi({platId:parseInt((le=hl.value)==null?void 0:le.plat_id),changeContents:[{tableName:ye,tableContents:[{id:xe.id}]}]})}const ba=(ae=be==null?void 0:be.find(ta=>(ta==null?void 0:ta.label)==="证书附件"))==null?void 0:ae.prop,Ea=String(Date.now()),Sa={id:Ea},T=Oa[0]||{},Y=new Date().toISOString().split("T")[0];if(Object.keys(T||{}).forEach(ta=>{if(ta!=="id"){if(ta==="证书附件"){Sa[ta]="";return}if(ta==="校检日期"||ta==="检校日期"){Sa[ta]=Ia[ta]||Ia.校检日期||Ia.检校日期||Y;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(ta)){Sa[ta]=Ia[ta]??"";return}Sa[ta]=Ia[ta]??""}}),ba&&Ia[ba]){const ta=Ia[ba];if(Array.isArray(ta)&&ta.length>0)Sa.证书附件=JSON.stringify(ta.map(xe=>({url:(xe==null?void 0:xe.url)||"",name:(xe==null?void 0:xe.name)||(xe==null?void 0:xe.fileName)||"",fileName:(xe==null?void 0:xe.fileName)||(xe==null?void 0:xe.name)||""})).filter(xe=>xe.url||xe.name));else if(typeof ta=="string")try{const xe=JSON.parse(ta);Sa.证书附件=ta}catch{Sa.证书附件=JSON.stringify([{url:ta,name:ta,fileName:ta}])}}console.log(ye,"tableName","inspectionRecordRow",Sa),await A.pageBatchAddApi({platId:parseInt((q=hl.value)==null?void 0:q.plat_id),changeContents:[{tableName:ye,tableContents:[Sa]}]});const $e=xa==null?void 0:xa.object_id;if($e&&Ea){const ta=ba&&Ia[ba]?Ia[ba]:null;let xe=[],fa="",Ta=!1;if(Array.isArray(ta)&&ta.length>0){xe=ta.map(fl=>({name:(fl==null?void 0:fl.name)||(fl==null?void 0:fl.fileName)||"",url:(fl==null?void 0:fl.url)||""})).filter(fl=>fl.url||fl.name);const qa=ta[0];fa=(qa==null?void 0:qa.url)||"";const pl=(qa==null?void 0:qa.name)||(qa==null?void 0:qa.fileName)||"";Ta=String(pl).toLowerCase().endsWith(".pdf")||String(fa).toLowerCase().endsWith(".pdf")}else if(typeof ta=="string")try{const qa=JSON.parse(ta);Array.isArray(qa)?(xe=qa.map(pl=>({name:(pl==null?void 0:pl.name)||(pl==null?void 0:pl.fileName)||"",url:(pl==null?void 0:pl.url)||""})).filter(pl=>pl.url||pl.name),xe.length>0&&(fa=xe[0].url||"",Ta=String(xe[0].name).toLowerCase().endsWith(".pdf")||String(fa).toLowerCase().endsWith(".pdf"))):(fa=ta,Ta=String(ta).toLowerCase().endsWith(".pdf"))}catch{fa=ta,Ta=String(ta).toLowerCase().endsWith(".pdf")}const el={ts:Date.now(),versionId:String(Date.now())+"_"+String(_a),label:new Date().toLocaleString(),certType:Ia.证书类型||"",certNo:Ia.证书编号||"",fileType:Ta?"pdf":"image",sourceUrl:Ta?fa:"",images:xe};Aa($e,Ea,el)}}}catch(be){console.error("向校检记录表插入OCR识别结果失败:",be),Ua.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},wr=d=>{const v=Array.isArray(d)?d:pr.value||[];if(v.length===0){Lr();return}if(v.find(C=>(C==null?void 0:C.__decision)==="replace"&&!(C!=null&&C.selectedTargetId))){Ua.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}v.forEach(C=>{var ae;const le=C==null?void 0:C.__decision;if(!(!le||le==="skip")){if(le==="add"){Aa(u==null?void 0:u.index,(ae=C==null?void 0:C.ocrRow)==null?void 0:ae.id,C==null?void 0:C.versionItem),Re.value=[...Re.value||[],C.ocrRow];return}if(le==="replace"){const q=C==null?void 0:C.selectedTargetId,be=(Ae.value||[]).find(Ee=>String(Ee==null?void 0:Ee.id)===String(q));if(!be)return;Nr(C,be)}}}),(Gl.value||[]).length>0&&(Ae.value=[...Ae.value||[]]),(Re.value||[]).length>0&&(Ae.value=[...Ae.value||[],...Re.value||[]],Je.value=[...Je.value||[],...Re.value||[]],(Re.value||[]).forEach(C=>{var le,ae;return(ae=(le=Na.value)==null?void 0:le.set)==null?void 0:ae.call(le,C.id,C)})),Ir.value=Ae.value;const z=Gl.value||[],P=Re.value||[];if(z.length>0&&(Me("change",{buttonName:"编辑",singleContent:z,content:Ae.value,relatedContents:u==null?void 0:u.related,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,columns:F.value,name:u==null?void 0:u.compName}),Ur(z)),P.length>0){const C=jl.value;Me("change",{buttonName:"OCR批量新增",content:Ae.value,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,column:F.value,ocrRows:P,relatedContents:u==null?void 0:u.related,uploadedFiles:(Array.isArray(C==null?void 0:C.result)?C.result:[]).map(le=>(Array.isArray(le==null?void 0:le.图片信息)?le.图片信息:[]).map(ae=>({url:(ae==null?void 0:ae.url)||"",name:(ae==null?void 0:ae.name)||"",fileName:(ae==null?void 0:ae.name)||""})).filter(ae=>ae.url)),ocrResult:C,matchedCount:(z||[]).length,newCount:(P||[]).length})}Ua.ElMessage.success("已提交候选处理结果"),Lr()},ql=hc(),ln=e.computed(()=>ql.getConfig()),_r=e.ref(),Ql=e.ref(),Vr=cc(A.pinia),Ir=e.ref(),Rr=e.ref(0),vn=A.useUnit(A.pinia),{selectIndex:tn,selectMenu:mn,selectTitle:nr}=A.storeToRefs(vn),{selectString:vr}=A.storeToRefs(Vr),jr=A.useLoginState(A.pinia),{loginUserInfo:hl}=A.storeToRefs(jr),ir=e.ref(720),Ll=e.ref(!1),xr=e.ref(!1),Sl=e.ref([]),ar=e.ref(),Br=e.ref(!0),xn=e.ref(!0);e.ref([]);const Nn=e.inject("contentRef");e.provide("contentRef",Nn),e.provide("getSuggestListForCell",_u),e.provide("getSuggestLoadingForCell",(d,v)=>{const B=`${d==null?void 0:d.id}:${(v==null?void 0:v.prop)||(v==null?void 0:v.property)}`;return g.value.get(B)||!1}),e.watch(()=>{var d;return(d=Ae.value)==null?void 0:d.length},d=>{me.total=d}),e.watch(()=>J.value,async()=>{var v,B,z,P,C,le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze;if(((v=J.value)==null?void 0:v.length)===0||!((B=u==null?void 0:u.itemData)!=null&&B.find(Xa=>(Xa==null?void 0:Xa.key)==="columnPath"))||!((z=u==null?void 0:u.itemData)!=null&&z.find(Xa=>(Xa==null?void 0:Xa.key)==="pageColumn")))return;let d=(be=(q=(ae=(le=(C=(P=u==null?void 0:u.itemData)==null?void 0:P.find(Xa=>(Xa==null?void 0:Xa.key)==="pageColumn"))==null?void 0:C.contents)==null?void 0:le.split("["))==null?void 0:ae[1])==null?void 0:q.split("]"))==null?void 0:be[0];((Xe=(Pe=(Ge=(Ee=u==null?void 0:u.itemData)==null?void 0:Ee.find(Xa=>(Xa==null?void 0:Xa.key)==="pageColumn"))==null?void 0:Ge.contents)==null?void 0:Pe.split("["))==null?void 0:Xe[0])+((Ia=(_a=J.value)==null?void 0:_a.find(Xa=>(Xa==null?void 0:Xa.key)===d))==null?void 0:Ia.value),(Ze=(za=u==null?void 0:u.itemData)==null?void 0:za.find(Xa=>(Xa==null?void 0:Xa.key)==="pageGroup"))==null||Ze.contents,$t(compData,u.allMapContents)},{deep:!0});const wn=d=>{var B,z,P,C,le;const v=(z=(B=F.value)==null?void 0:B.filter(ae=>ae==null?void 0:ae.mainKey))==null?void 0:z.map(ae=>ae==null?void 0:ae.prop);if(v.length===0){const ae=(P=F.value)==null?void 0:P.map(q=>q==null?void 0:q.prop);return(C=ae==null?void 0:ae.map(q=>d==null?void 0:d[q]))==null?void 0:C.join("|")}return(le=v==null?void 0:v.map(ae=>d==null?void 0:d[ae]))==null?void 0:le.join("|")},Un=d=>{var ae,q,be,Ee,Ge;const v=(q=(ae=F.value)==null?void 0:ae.filter(Pe=>Pe==null?void 0:Pe.required))==null?void 0:q.map(Pe=>Pe==null?void 0:Pe.prop),B=[];if(d==null||d.forEach(Pe=>{v==null||v.forEach(Xe=>{const _a=Pe[Xe];(_a==null||_a==="")&&(B.includes(Xe)||B.push(Xe))})}),B.length>0)return Ua.ElMessage.warning(`请填写必填项:${B.join("、")}`);const z=new Map,P=new Map;(be=Ae.value)==null||be.forEach(Pe=>{const Xe=wn(Pe);z.set(Xe,Pe)}),d==null||d.forEach(Pe=>{const Xe=wn(Pe);P.set(Xe,Pe)});const C=d==null?void 0:d.filter(Pe=>z.has(wn(Pe))),le=(Ee=Ae.value)==null?void 0:Ee.filter(Pe=>P.has(wn(Pe)));return(C==null?void 0:C.length)>0&&(y.columns=(Ge=F.value)==null?void 0:Ge.filter(Pe=>(Pe==null?void 0:Pe.label)!=="操作"),y.existRows=le,y.tableData=C,y.show=!0),y.newRows=d==null?void 0:d.filter(Pe=>{const Xe=wn(Pe);return!z.has(Xe)}),y.newRows},Ln=e.ref(""),_n=e.ref(null),An=async()=>{var d,v,B,z,P,C;try{const le=await A.quoteApi({related:[{menus:Se.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=hl.value)==null?void 0:d.plat_id)});if(((v=le==null?void 0:le.data)==null?void 0:v.code)===200){_n.value=(B=le==null?void 0:le.data)==null?void 0:B.result;const ae=(z=F.value)==null?void 0:z.map(Ee=>(Ee==null?void 0:Ee.prop)||(Ee==null?void 0:Ee.label)),q=Rn(ae,(P=le==null?void 0:le.data)==null?void 0:P.result),be=q==null?void 0:q.flatMap(Ee=>Ee==null?void 0:Ee.quote);(be==null?void 0:be.length)>0&&(Ln.value=(C=be==null?void 0:be.map(Ee=>Ee==null?void 0:Ee.menus))==null?void 0:C.join("、"))}}catch(le){throw new Error(le)}};function Rn(d,v){var B;return(B=v.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some(P=>P.words&&Array.isArray(P.words)?P.words.some(C=>d.includes(C)):!1):!1))==null?void 0:B.map(z=>{const P={...z};return P.struct&&Array.isArray(P.struct)&&(P.struct=P.struct.filter(C=>C.words&&Array.isArray(C.words)?C.words.some(le=>d.includes(le)):!1)),P})}const rn=async(d,v)=>{var B,z;try{_n.value||await An();const P=v==null?void 0:v.map(le=>{const ae=Object.keys(le),q={};return ae.forEach((be,Ee)=>{q[d[Ee]]=le[be]}),q}),C=Un(P);if(!C||(C==null?void 0:C.length)===0)return;y.show||await O(C)}catch(P){throw Ua.ElMessage.error("数据导入处理失败"),await A.pageBatchAddApi({platId:parseInt((B=hl==null?void 0:hl.value)==null?void 0:B.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(P),is_delete:!1,request_table:(z=u==null?void 0:u.related)==null?void 0:z.find(C=>C==null?void 0:C.includes("content")),request_type:"error"}]}]}),new Error(P)}},zn=async d=>{var C,le,ae,q,be,Ee,Ge;let v=Z.value;v!=null&&v.find(Pe=>(d==null?void 0:d.key)===(Pe==null?void 0:Pe.key))&&(v=v==null?void 0:v.filter(Pe=>(d==null?void 0:d.key)!==(Pe==null?void 0:Pe.key))),v.push({key:d==null?void 0:d.key,value:[(le=d==null?void 0:d.value)==null?void 0:le[((C=d==null?void 0:d.value)==null?void 0:C.length)-1]]});let B=La.value;B=B==null?void 0:B.map(Pe=>{var Xe,_a;return(Pe==null?void 0:Pe.type)==="Select"&&(d==null?void 0:d.key)===(Pe==null?void 0:Pe.prop)&&Array.isArray(Pe.value)&&(Xe=Pe.value)!=null&&Xe.every(Ia=>typeof Ia=="string")&&(Pe.selectValue=(_a=v==null?void 0:v.find(Ia=>(Ia==null?void 0:Ia.key)===(Pe==null?void 0:Pe.prop)))==null?void 0:_a.value),Pe});let z=(q=(ae=B==null?void 0:B.find(Pe=>(Pe==null?void 0:Pe.prop)===(d==null?void 0:d.key)))==null?void 0:ae.optionUrl)==null?void 0:q.menuId,P=B==null?void 0:B.find(Pe=>(Pe==null?void 0:Pe.prop)===(d==null?void 0:d.key));if(z){let Pe=await yt(P==null?void 0:P.optionUrl,z),Xe,_a=ne.value,Ia=(Ge=(Ee=(be=La.value)==null?void 0:be.find(za=>{var Ze;return(Ze=P==null?void 0:P.optionUrl)==null?void 0:Ze.menuId}))==null?void 0:Ee.selectValue)==null?void 0:Ge[0];if(Pe==null||Pe.forEach(za=>{var Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa,T;if(z){let Y=(Xa=(Ze=La.value)==null?void 0:Ze.find(ta=>{var xe,fa;return((xe=P==null?void 0:P.optionUrl)==null?void 0:xe.menuId)===((fa=ta==null?void 0:ta.optionUrl)==null?void 0:fa.menuId)}))==null?void 0:Xa.prop,$e=(Za=(xa=B==null?void 0:B.find(ta=>(ta==null?void 0:ta.prop)===Y))==null?void 0:xa.selectValue)==null?void 0:Za[0];Y!=null&&Y.includes("·")&&(Y=(ye=Y==null?void 0:Y.split("·"))==null?void 0:ye[0],$e=(Sa=(Ea=(ba=d==null?void 0:d.value)==null?void 0:ba[((Oa=d==null?void 0:d.value)==null?void 0:Oa.length)-1])==null?void 0:Ea.split(" "))==null?void 0:Sa[0]),_a!=null&&_a.find(ta=>(ta==null?void 0:ta.value)===Ia)?Xe=(T=_a==null?void 0:_a.find(ta=>(ta==null?void 0:ta.value)===Ia))==null?void 0:T.objectValue:za[Y]===$e&&(Xe=za)}}),Xe){let za=B;za=za==null?void 0:za.map(Ze=>{var Xa,xa,Za,ye,Oa,ba;return z&&(Xe!=null&&Xe[Ze==null?void 0:Ze.prop])&&W.value==="新增"&&(Ze==null?void 0:Ze.prop)!==(P==null?void 0:P.prop)?Ze.value=(Xe==null?void 0:Xe[Ze==null?void 0:Ze.prop])||(Xe==null?void 0:Xe[(ye=(Za=(xa=(Xa=Ze==null?void 0:Ze.optionUrl)==null?void 0:Xa.groupSelect)==null?void 0:xa[1])==null?void 0:Za.replaceAll("[",""))==null?void 0:ye.replaceAll("]","")]):Ze.value=(ba=(Oa=La.value)==null?void 0:Oa.find(Ea=>(Ea==null?void 0:Ea.prop)===(Ze==null?void 0:Ze.prop)))==null?void 0:ba.value,Ze}),La.value=za}}Z.value=v},qn=async(d,v)=>{var B,z,P,C,le;if((B=d==null?void 0:d.toString())!=null&&B.includes(".txt")||(z=d==null?void 0:d.toString())!=null&&z.includes(".cpt")||(P=d==null?void 0:d.toString())!=null&&P.includes(".cyd")){const ae=await Ua.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),q=new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"});let be=URL.createObjectURL(q);ua.value=[{name:(le=d==null?void 0:d.split("/"))==null?void 0:le[((C=d==null?void 0:d.split("/"))==null?void 0:C.length)-1],blobUrl:be}],ee.value=!0}else Array.isArray(v)&&(v==null?void 0:v.length)>0&&Me("routeUrl",{isEdit:!1,routerUrl:v})};e.onBeforeUnmount(()=>{xn.value=!1;let d=Rr.value;Rr.value=d+1});const Pr=e.reactive({prop:"",order:null}),Wn=e.computed(()=>{const d=(Ae.value??[]).slice(),v=Pr.prop||se.prop,B=Pr.order||se.order;if(!v||!B)return d;const z=B==="ascending",P=le=>{if(v)return le&&Object.prototype.hasOwnProperty.call(le,v)?le[v]:v.includes(".")?v.split(".").reduce((ae,q)=>ae==null?ae:ae[q],le):le==null?void 0:le[v]},C=le=>{if(le==null)return{ok:!1,value:NaN};if(typeof le=="number")return{ok:Number.isFinite(le),value:le};const ae=String(le).trim();if(ae==="")return{ok:!1,value:NaN};const q=ae.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(q))return{ok:!1,value:NaN};const be=Number(q);return{ok:Number.isFinite(be),value:be}};return d.sort((le,ae)=>{const q=P(le),be=P(ae);if(q==null&&be==null)return 0;if(q==null)return z?-1:1;if(be==null)return z?1:-1;const Ee=C(q),Ge=C(be);if(Ee.ok&&Ge.ok)return z?Ee.value-Ge.value:Ge.value-Ee.value;const Pe=ye=>{if(ye==null)return{ok:!1,value:NaN};const Oa=String(ye).trim();if(Oa==="")return{ok:!1,value:NaN};const ba=Oa.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ba)return{ok:!1,value:NaN};const Ea=ba[1]?-1:1,Sa=Number(ba[2]),T=Number(ba[3]),Y=Number(ba[4]);return[Sa,T,Y].some($e=>Number.isNaN($e))?{ok:!1,value:NaN}:T>=60||Y>=60?{ok:!1,value:NaN}:{ok:!0,value:Ea*(Sa*3600+T*60+Y)}},Xe=Pe(q),_a=Pe(be);if(Xe.ok&&_a.ok)return z?Xe.value-_a.value:_a.value-Xe.value;const Ia=new Date(q).getTime(),za=new Date(be).getTime(),Ze=!Number.isNaN(Ia),Xa=!Number.isNaN(za);if(Ze&&Xa)return z?Ia-za:za-Ia;const xa=String(q),Za=String(be);return z?xa.localeCompare(Za):Za.localeCompare(xa)})}),yn=e.computed(()=>{var B;const d=(me.currentPage-1)*me.pageSize,v=d+me.pageSize;return Me("getSliceContLength",me),(B=Wn.value)==null?void 0:B.slice(d,v)}),Ni=d=>{me.currentPage=d,Me("getSliceContLength",me)},Lo=d=>{var z;me.pageSize=d;const v=((z=Ae.value)==null?void 0:z.length)??0,B=d>0?Math.ceil(v/d):1;me.currentPage>B&&(me.currentPage=B||1,Ua.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Me("getSliceContLength",me)},Ro=({prop:d,order:v})=>{Pr.prop=d,Pr.order=v,me.currentPage=1};function Cn(d){const v=[];function B(z,P=""){z.forEach(C=>{C.children&&C.children.length>0?B(C.children,C.prop):v.push(C.prop)})}return B(d),v}const $o=(d,v)=>{var ae,q,be,Ee;let B=(q=(ae=F.value)==null?void 0:ae.map(Ge=>Ge==null?void 0:Ge.prop))==null?void 0:q.filter(Ge=>Ge!=="operate");((be=F.value)==null?void 0:be.some(Ge=>{var Pe;return((Pe=Ge==null?void 0:Ge.children)==null?void 0:Pe.length)>0}))&&(B=Cn((Ee=F.value)==null?void 0:Ee.filter(Ge=>(Ge==null?void 0:Ge.prop)!=="operate")));let P;if(P=(d==null?void 0:d.length)===(B==null?void 0:B.length)?d:d.slice(0,B==null?void 0:B.length),!(P==null?void 0:P.every(Ge=>B==null?void 0:B.find(Pe=>Ge===Pe))))return Ua.ElMessage.error("导入的数据表头不匹配");rn(P,v)},Vo=(d,v)=>{var P;const B=d==null?void 0:d.filter(C=>C!=="序号"),z=v==null?void 0:v.map(C=>{const le=Object.entries(C);return le.shift(),Object.fromEntries(le)});ca.setRefreshCurStructure(!1),((P=F.value)==null?void 0:P.length)===0||$o(B,z)},Po=(d,v,B,z)=>{const P=[],C=[],le=be=>Object.keys(be).length;for(const be in d)if(d[be]!==void 0){const Ee=d[be],Ge=[];for(const[Pe,Xe]of Object.entries(Ee))Ge.push(Xe),C.length<le(Ee)&&C.push(Pe);P.push(Ge)}P.unshift(C);const ae=de.utils.aoa_to_sheet(P),q=de.utils.book_new();de.utils.book_append_sheet(q,ae,z),de.writeFileSync(q,`${v}.xlsx`),Sl.value=[]},Ai=async(d,v,B,z=!1,P)=>{try{ca.setRefreshCurStructure(!1)}catch(C){Ua.ElMessage.error(C)}},Ji=async(d,v)=>{await Ai()},qr=async(d,v)=>{await Ai("columnType",v,d,!1)},Fo=async({newRow:d,targetIndex:v})=>{var P;if(!ga(u.config,{type:ce.TABLE}))return;const z=(me.currentPage-1)*me.pageSize+(v??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Xn(z,Ae.value||[]))}catch{}Ae.value.splice(z,0,d),await e.nextTick(),h.value.has(d.id)||h.value.set(d.id,A.cloneDeep(d)),Ae.value=(P=Ae.value)==null?void 0:P.map(C=>({...C,tableEditType:(C==null?void 0:C.id)===d.id?"edit":(C==null?void 0:C.tableEditType)??"text"})),s.value.add(d.id),Ll.value=!0},jo=(d,v,B,z=[])=>(!Array.isArray(v)||v.length===0||v.forEach(P=>{const C=P==null?void 0:P.prop;if(!C)return;let le=d==null?void 0:d[C];if(le==null||String(le).trim()==="")return;le=String(le);const ae=new Set([...(Array.isArray(B)?B:[]).filter(Ee=>(Ee==null?void 0:Ee.id)!==(d==null?void 0:d.id)).map(Ee=>Ee==null?void 0:Ee[C]).filter(Ee=>Ee!=null).map(Ee=>String(Ee)),...(Array.isArray(z)?z:[]).map(Ee=>Ee==null?void 0:Ee[C]).filter(Ee=>Ee!=null).map(Ee=>String(Ee))]);if(!ae.has(le))return;let q=1,be="";for(;be=`${le}(${q})`,!!ae.has(be);)q++;d[C]=be}),d),zi=async()=>{var P,C,le,ae,q,be,Ee,Ge;const d=Array.from(s.value||[]);if(d.length===0)return;const v=(C=de.getColumnChild((P=A.cloneDeep(F.value))==null?void 0:P.filter(Pe=>(Pe==null?void 0:Pe.label)!=="操作")))==null?void 0:C.filter(Pe=>(Pe==null?void 0:Pe.required)===!0);if((v==null?void 0:v.length)>0)for(let Pe=0;Pe<d.length;Pe++){const Xe=d[Pe],_a=(le=Ae.value)==null?void 0:le.find(Ia=>(Ia==null?void 0:Ia.id)===Xe);if(_a)for(let Ia=0;Ia<v.length;Ia++){const za=v[Ia],Ze=za==null?void 0:za.prop,Xa=(za==null?void 0:za.label)??Ze,xa=_a==null?void 0:_a[Ze];if(xa===""||xa===null||xa===void 0||Array.isArray(xa)&&xa.length===0){Ua.ElMessage.error(`${Xa}不能为空`);return}}}const B=[],z=[];if(d.forEach(Pe=>{var Xa;const Xe=(Xa=Ae.value)==null?void 0:Xa.find(xa=>(xa==null?void 0:xa.id)===Pe);if(!Xe)return;if(Xe!=null&&Xe._isTemp){const Za=(de.getAllLeafNodes(F.value)||[]).filter(T=>(T==null?void 0:T.mainKey)===!0||(T==null?void 0:T.isMainKey)===!0),ye=Ae.value.findIndex(T=>(T==null?void 0:T.id)===Pe),Oa=ye>=0?ye+1:Ae.value.length+1;jo(Xe,Za,Ae.value,B);const ba={id:Oa.toString()};(Xe==null?void 0:Xe.sort)!==void 0&&(Xe==null?void 0:Xe.sort)!==null&&String(Xe.sort).trim()!==""?ba.sort=String(Xe.sort):ba.sort=Xn(ye>=0?ye:Ae.value.length-1,Ae.value||[]),(de.getAllLeafNodes(F.value)||[]).filter(T=>(T==null?void 0:T.type)!=="operate"&&(T==null?void 0:T.label)!=="操作"&&(T==null?void 0:T.prop)!=="operate").forEach(T=>{const Y=T==null?void 0:T.prop;if(Y){const $e=Xe[Y];$e!==void 0?ba[Y]=$e??"":ba[Y]=""}}),B.push(ba);return}const Ia=(de.getAllLeafNodes(F.value)||[]).filter(xa=>(xa==null?void 0:xa.type)!=="operate"&&(xa==null?void 0:xa.label)!=="操作"&&(xa==null?void 0:xa.prop)!=="operate"),za=new Set(Ia.map(xa=>xa==null?void 0:xa.prop).filter(Boolean)),Ze={};for(const xa of za)Object.prototype.hasOwnProperty.call(Xe,xa)&&(Ze[xa]=Xe[xa]);z.push({id:Xe.id,value:{tableData:Ze}})}),ca.setTableLoading(u==null?void 0:u.index),z.length>0){const Pe=z.map(_a=>{const Ia={id:_a.id,..._a.value.tableData};return delete Ia._isOCRRow,delete Ia._ocrTableId,delete Ia._isTemp,delete Ia.tableEditType,delete Ia.index,Ia}),Xe=[{tableName:((ae=u==null?void 0:u.related)==null?void 0:ae.find(_a=>_a==null?void 0:_a.includes("content")))??"content_"+(u==null?void 0:u.index),tableContents:Pe}];try{await A.pageBatchUpdateApi({platId:parseInt((q=hl.value)==null?void 0:q.plat_id),changeContents:Xe})}catch(_a){Ua.ElMessage.error(((Ee=(be=_a==null?void 0:_a.response)==null?void 0:be.data)==null?void 0:Ee.message)||(_a==null?void 0:_a.message)||"保存失败"),ca.setTableLoading(!1);return}}if(B.length>0){const Pe={fixContent:B,buttonName:"新增",relatedContents:u==null?void 0:u.related,name:u==null?void 0:u.compName,columns:F.value};Me("change",Pe)}Ua.ElMessage.success("保存成功"),s.value.clear(),h.value.clear(),Ae.value=(Ge=Ae.value)==null?void 0:Ge.map(Pe=>({...Pe,tableEditType:"text"})),Ll.value=!1,ca.setRefreshCurStructure(!0)},Ho=()=>{var v;const d=Array.from(s.value||[]);if(d.length===0){Ll.value=!1;return}d.forEach(B=>{var C,le;const z=h.value.get(B),P=(C=Ae.value)==null?void 0:C.find(ae=>(ae==null?void 0:ae.id)===B);if(P!=null&&P._isTemp){Ae.value=Ae.value.filter(ae=>(ae==null?void 0:ae.id)!==P.id);return}if(z){const ae=(le=Ae.value)==null?void 0:le.findIndex(q=>(q==null?void 0:q.id)===B);ae!==-1&&(Ae.value[ae]={...Ae.value[ae],...z})}}),s.value.clear(),h.value.clear(),Ae.value=(v=Ae.value)==null?void 0:v.map(B=>({...B,tableEditType:"text"})),Ll.value=!1},Mi=e.ref(!1),Xi=async d=>{var P,C,le,ae;if(!Ll.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const v=d==null?void 0:d.target;if(((C=(P=v==null?void 0:v.tagName)==null?void 0:P.toLowerCase)==null?void 0:C.call(P))==="textarea")return;const z=document.getElementById("excel-table");z&&!z.contains(v)||((le=v==null?void 0:v.blur)==null||le.call(v),(ae=d.preventDefault)==null||ae.call(d),await e.nextTick(),await Zi())},Zi=async()=>{if(j.value){Ll.value=!1;return}if(!Mi.value){Mi.value=!0;try{Array.from(s.value||[]).length>0?await zi():Ll.value=!1}finally{Promise.resolve().then(()=>{Mi.value=!1})}}},Uo=d=>{Sl.value=d},Qi=(d,v)=>{ar.value===v?Br.value=!1:Br.value=!0,ar.value=v==null?void 0:v.changeProp},ci=d=>{if(!d)return;const{item:v,value:B}=d,z=La.value.find(P=>P.prop==v.prop);z&&z.contents.push({label:B,value:B})},sn=e.computed(()=>{var B,z,P;const d=(B=F.value)==null?void 0:B.some(C=>C==null?void 0:C.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(P=(z=F.value)==null?void 0:z.filter(C=>(C==null?void 0:C.label)!=="操作"))==null?void 0:P.map(C=>({...C,filterable:!!(C!=null&&C.filterable),showSummary:!!(C!=null&&C.showSummary),operable:!!(C!=null&&C.operable),fixed:C==null?void 0:C.fixed}))}),Kn=async(d,v,B)=>{const z=A.cloneDeep(F.value);await e.nextTick();const P=z==null?void 0:z.map(le=>(B==null?void 0:B.label)===(le==null?void 0:le.label)?{...le,[v]:d}:le),C=Ii(P);await vs(u.index,C),F.value=P,te.value=C},Ii=d=>{var P;const v=d||[];return((P=de.getAllLeafNodes(v)||[])==null?void 0:P.filter(C=>(C==null?void 0:C.prop)&&(C==null?void 0:C.type)!=="operate"&&(C==null?void 0:C.label)!=="操作"&&(C==null?void 0:C.prop)!=="operate")).map(C=>{const{prop:le}=C;return i0(le,C)})},eo=async d=>{let v=await t0(u.index);v||(v=Ii(d)),te.value=v},ao=async(d,v)=>{const B=A.cloneDeep(F.value),z=le=>Array.isArray(le)?le.map(ae=>{const q=Array.isArray(ae==null?void 0:ae.children)&&ae.children.length>0,be={...ae};return(be==null?void 0:be.prop)==="operate"||(be==null?void 0:be.label)==="操作"||(be==null?void 0:be.type)==="operate"?(be.sortable=!1,be.filterable=!1,be.operable=!1):be.sortable=q?!1:!!d,q&&(be.children=z(be.children)),be}):le,P=z(B),C=Ii(P);await vs(u.index,C),F.value=P,te.value=C,await e.nextTick(),Rr.value=Rr.value+1},lo=()=>{Te.value=!1},Gn=d=>{Me("clickTrigger",d)},ro=async d=>{var C,le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa;const v=d==null?void 0:d.row,B=d==null?void 0:d.rowData,z=d==null?void 0:d.suffix;if((C=v==null?void 0:v.toString())!=null&&C.includes(".urdf")||d!=null&&d.isUrdf||z!=null&&z.includes(".urdf")){if(v.includes(",")){Ua.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(ie(v)){const ye={files:[Fe(v)],data:{}};Oe(ye);return}fe.value=[{url:v,extension:De(v)}],he.value=!0,N.value={data:A.cloneDeep(B)},Ve.value=!0;return}let P=[];if((le=v==null?void 0:v.toString())!=null&&le.includes(".stl")||(ae=v==null?void 0:v.toString())!=null&&ae.includes(".STL")||(q=v==null?void 0:v.toString())!=null&&q.includes(".obj")||(be=v==null?void 0:v.toString())!=null&&be.includes(".mtl")){const Za=(Ee=v==null?void 0:v.toString())==null?void 0:Ee.split(","),ye=ea(Za),Oa=ye==null?void 0:ye[0];if(ie(Oa==null?void 0:Oa.extension)){Oe({files:ye,data:{}});return}fe.value=ye,he.value=!1,Ve.value=!0;return}if((Ge=v==null?void 0:v.toString())!=null&&Ge.includes(".stl")||(Pe=v==null?void 0:v.toString())!=null&&Pe.includes(".STL")||(Xe=v==null?void 0:v.toString())!=null&&Xe.includes(".obj")||(_a=v==null?void 0:v.toString())!=null&&_a.includes(".mtl")||z!=null&&z.includes(".stl")||z!=null&&z.includes(".STL")||z!=null&&z.includes(".obj")||z!=null&&z.includes(".mtl")){let Za,ye=[],Oa={};if(Array.isArray(v)?Za=v:Za=v==null?void 0:v.split(","),Za==null||Za.forEach(ba=>{ba.includes(".mtl")?ye.push(ba):Oa.blob=Oa.blob?Oa.blob+","+ba:ba}),(ye==null?void 0:ye.length)>0&&(Oa.mtlBlobs=ye),z&&(Oa.suffix=z),(za=(Ia=Object.values(Oa))==null?void 0:Ia[0])!=null&&za.includes("http:"))P.push(Oa);else{const ba=new Blob([Oa.blob],{type:"application/octet-stream;charset=UTF-8"});let Ea=URL.createObjectURL(ba),Sa="";(Ze=v==null?void 0:v.split("/"))==null||Ze.forEach((T,Y)=>{var $e;Y===(($e=v==null?void 0:v.split("/"))==null?void 0:$e.length)-1&&(Sa=T)}),(Xa=Oa.blob)!=null&&Xa.includes(".stl")&&(Sa=(Sa==null?void 0:Sa.replaceAll(">",""))+".urdf"),ua.value=[{name:Sa,blobUrl:Ea}],ee.value=!0}}else{const Za=await Ua.axios.get(v,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ye=new Blob([Za.data],{type:"application/octet-stream;charset=UTF-8"});let Oa=URL.createObjectURL(ye),ba="";if((xa=v==null?void 0:v.split("/"))==null||xa.forEach((Ea,Sa)=>{var T;Sa===((T=v==null?void 0:v.split("/"))==null?void 0:T.length)-1&&(ba=Ea)}),ie(ba)){const Ea=U(ba),Sa=Fe(v);Oe({files:[Sa],data:{trackFileType:Ea}});return}ua.value=[{name:ba,blobUrl:Oa}],ee.value=!0}(P==null?void 0:P.length)>0&&r.setBlobUrls(P)},Yn=d=>{var z,P,C,le;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const v=(le=(z=d==null?void 0:d.url)==null?void 0:z.split("."))==null?void 0:le[((C=(P=d==null?void 0:d.url)==null?void 0:P.split("."))==null?void 0:C.length)-1];return(d==null?void 0:d.name)+"."+v},no=d=>{if(!d)return"未知文件";try{const z=Yn(d);if(typeof z=="string"&&z.includes("."))return z}catch{}const v=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",B=(d==null?void 0:d.suffix)||"";return v.includes(".")?v:`${v}${B}`},io=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const v=d.match(/^(\d+)\_(\d+)$/);if(!v)return d;const B=Number(v[1]),z=Number(v[2]);return!Number.isFinite(B)||!Number.isFinite(z)?d:String(B*1e3+z)},Jn=d=>{if(d==null)return null;const v=String(d).trim();if(!v)return null;const B=Number(v);return Number.isFinite(B)?B:null},qo=d=>{if(d==null)return null;const v=String(d).trim();if(!v)return null;if(/^\d+$/.test(v)){const P=Number(v);return Number.isFinite(P)?v.length<=10?P*1e3:P:null}const B=v.includes("T")?v:v.replace(" ","T"),z=Date.parse(B);return Number.isFinite(z)?z:null},ui=(d,v=[])=>{const B=Array.isArray(d)?d.slice():[];if(B.length<=1)return B;const z=new Map((v||[]).map((le,ae)=>[String(le),ae])),P=B.some(le=>Jn(le==null?void 0:le.sort)!==null),C=B.map((le,ae)=>({r:le,idx:ae,id:String((le==null?void 0:le.id)??""),sortVal:Jn(le==null?void 0:le.sort),createTimeMs:qo(le==null?void 0:le.create_time),prevIdx:z.has(String(le==null?void 0:le.id))?z.get(String(le==null?void 0:le.id)):Number.POSITIVE_INFINITY}));return C.sort((le,ae)=>{if(P){const Ee=le.sortVal,Ge=ae.sortVal;if(Ee===null&&Ge!==null)return 1;if(Ee!==null&&Ge===null)return-1;if(Ee!==null&&Ge!==null&&Ee!==Ge)return Ee-Ge}const q=le.createTimeMs,be=ae.createTimeMs;return q!==null&&be!==null&&q!==be?be-q:q!==null&&be===null?-1:q===null&&be!==null?1:le.prevIdx!==ae.prevIdx?le.prevIdx-ae.prevIdx:le.idx-ae.idx}),C.map(le=>le.r)},Xn=(d,v=[])=>{const B=v==null?void 0:v[d-1],z=v==null?void 0:v[d],P=Jn(B==null?void 0:B.sort),C=Jn(z==null?void 0:z.sort);let le=null;P!==null&&C!==null&&C>P?le=(P+C)/2:P!==null?le=P+1:C!==null?le=Math.max(C-1,0):le=(d??0)+1;const ae=Number(le.toFixed(6));return String(Number.isFinite(ae)?ae:le)},di=async d=>{let v=null,B=null;if(d!=null&&d.id){const P=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const C=await A.platformDownloadFile(d);v=URL.createObjectURL(C.data),B=no(d)}finally{P.close()}}else if(d!=null&&d.downloadUrl){const P=await pi(),C=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),le=await Ua.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:P,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{C.close()}),ae=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(ae),B=d==null?void 0:d.name}else{const P=await A.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(v=URL.createObjectURL(P.data),B=Yn(d)):v=d==null?void 0:d.url}if(ie(v)){const P={row:`${v}`,suffix:De(B)};ro(P);return}const z={name:B,blobUrl:v};ua.value=[z],ee.value=!0},Wo=async d=>{let v=null,B=null;if(d!=null&&d.id){const C=await A.platformDownloadFile(d);v=URL.createObjectURL(C.data),B=no(d)}else if(d!=null&&d.downloadUrl){const C=await pi(),le=await Ua.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:C,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ae=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"});v=URL.createObjectURL(ae),B=d==null?void 0:d.name}else{const C=await A.platformDownloadFile({url:d==null?void 0:d.url});v=URL.createObjectURL(C.data),B=Yn(d)}const z={name:B,blobUrl:v},P=document.createElement("a");P.href=z.blobUrl,P.download=z.name,P.style.display="none",document.body.appendChild(P),P.click(),setTimeout(()=>{document.body.removeChild(P)},100)},Oi=(d,v)=>{var z;if(Object.values(v).length===0)return;let B=d;return Object.values(v).find(P=>{var C,le,ae;return((C=P==null?void 0:P.toString())==null?void 0:C.includes(".txt"))||((le=P==null?void 0:P.toString())==null?void 0:le.includes(".cpt"))||((ae=P==null?void 0:P.toString())==null?void 0:ae.includes(".obj"))})?B=[...d,we.value]:(z=u==null?void 0:u.config)!=null&&z.allowMove&&(B=[...d,{label:"迁移"}]),B},Ko=()=>{I.value=!0},Go=e.ref([]),oo=async(d,v,B=!1)=>{var le,ae,q,be;if(!d)return;if(B){Ae.value=[...Na.value.values()].filter(Ee=>Object.values(Ee).some(Ge=>typeof Ge=="string"?Ge==null?void 0:Ge.toLowerCase().includes(v==null?void 0:v.toLowerCase()):!1));return}let z={};for(let Ee in d)(d==null?void 0:d[Ee])!==""&&(z[Ee]=d==null?void 0:d[Ee]);if(JSON.stringify(z)==="{}"){Ae.value=Array.from(((le=Na.value)==null?void 0:le.values())??[]);return}let P=(ae=u==null?void 0:u.related)==null?void 0:ae.find(Ee=>Ee==null?void 0:Ee.includes("content_")),C=await A.getFillFind({platId:parseInt((q=hl==null?void 0:hl.value)==null?void 0:q.plat_id),tableName:P,params:z});C=(be=C==null?void 0:C.data)==null?void 0:be.result,Ae.value=C,ca.setTableLoading(!1)},Zn=e.computed(()=>{var v,B;return((B=(v=u==null?void 0:u.itemData)==null?void 0:v.find(z=>(z==null?void 0:z.key)==="isEdit"))==null?void 0:B.contents)??!0}),Dn=async d=>{var z,P,C,le;if(!ga(u.config,{type:ce.TABLE})||!(((P=(z=u==null?void 0:u.itemData)==null?void 0:z.find(ae=>(ae==null?void 0:ae.key)==="isEdit"))==null?void 0:P.contents)??!0)||!d)return;((C=Array.from(s.value))==null?void 0:C.length)>0&&await zi();const B=d==null?void 0:d.id;B!=null&&(s.value.clear(),h.value.clear(),h.value.has(B)||h.value.set(B,A.cloneDeep(d)),Ae.value=(le=Ae.value)==null?void 0:le.map(ae=>({...ae,tableEditType:(ae==null?void 0:ae.id)===B?"edit":"text"})),s.value.add(B),Ll.value=!0)},Li=async(d,v,B,z)=>{z!=null&&z.isExistChild&&Me("clickMainKey",d,B,F.value)},Ri=()=>{ee.value=!1},Yo=d=>{Me("rowClick",d)};e.watch(()=>u.changedContent,()=>{var B,z;if(!u.changedContent)return;let d=(B=Ae.value)==null?void 0:B.map(P=>{var C;return P.id===((C=u.changedContent)==null?void 0:C.id)&&(P={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete P.newId),P});const v=(z=u.itemData)==null?void 0:z.map(P=>((P==null?void 0:P.key)==="tableContents"&&(P.contents=d),P));Ae.value=d,Me("contentChange",{contents:v,index:u.index}),Me("change",{content:d,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Jo=()=>{},Xo=async()=>{const d=Se.value,v=sessionStorage.getItem("systemKey"),B=await de.getItemData(d,v,""),z=(B==null?void 0:B.find(ae=>(ae==null?void 0:ae.name)==="方法明细"))||(B==null?void 0:B[0]),P=(z==null?void 0:z.compData)||[],C=P==null?void 0:P.find(ae=>{const q=ae==null?void 0:ae.key;return q==="formContent"||q==="tableContents"});return C==null?void 0:C.contents},pi=async()=>{const v=Ua.Local.get("access-token");return v?`Bearer ${v}`:""},Zo=async(d,{token:v,inputData:B}={})=>await Ua.axios.post(d,B,{headers:{Authorization:v}}).catch(P=>(ue.setImportLoading(!1),Promise.reject(P))),Qo=d=>{var z;let v={};const B=[];return v.form={},(z=A.cloneDeep(d))==null||z.forEach((P,C)=>{var le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa;if((P==null?void 0:P.comp)==="Table"){(ae=(le=P==null?void 0:P.compData)==null?void 0:le.find(ba=>(ba==null?void 0:ba.key)==="header"))==null||ae.contents;let Za=(Ee=(be=(q=P==null?void 0:P.compData)==null?void 0:q.find(ba=>(ba==null?void 0:ba.key)==="tableContents"))==null?void 0:be.contents)==null?void 0:Ee.map(ba=>ba.slice(1));(Ia=(_a=(Xe=(Pe=(Ge=P==null?void 0:P.compData)==null?void 0:Ge.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:Pe.contents)==null?void 0:Xe[0])==null?void 0:_a[0])==null||Ia.label;let ye=(Ze=(za=P==null?void 0:P.compData)==null?void 0:za.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:Ze.contents,Oa=[];Za==null||Za.forEach(ba=>{let Ea=[];ba==null||ba.forEach((Sa,T)=>{var $e;let Y={};(($e=ye[T])==null?void 0:$e.label)!=="操作"&&(Y[ye[T].label]=Sa,Ea.push(Y))}),Oa.push(Ea)}),v[P.name]=Oa}else{const Za=(xa=(Xa=P.compData)==null?void 0:Xa.find(ye=>(ye==null?void 0:ye.key)==="formContent"))==null?void 0:xa.contents;Za==null||Za.forEach(ye=>{var Oa,ba;if(ye.prop!==""){let Ea=ye==null?void 0:ye.value;Array.isArray(Ea)?Ea=((Oa=Ea==null?void 0:Ea[0])==null?void 0:Oa.oldUrl)||"http://222.92.178.198:62001/"+((ba=Ea==null?void 0:Ea[0])==null?void 0:ba.url):Ea=Ea.toString(),ye={key:(ye==null?void 0:ye.prop)??(ye==null?void 0:ye.label),value:Ea},B.push(ye)}})}}),v.form=de.getFormContents(B),v},et=d=>{const v=[],B=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(B):v.push(z)};return B(d),v},at=async(d,v,B)=>{var ye,Oa,ba,Ea,Sa,T,Y,$e,ta,xe,fa,Ta,el,qa,pl,fl,$l;ue.setImportLoading(!0),ca.setFreshContent(!1);let z=await Xo().catch(Ha=>(ue.setImportLoading(!1),Promise.reject(Ha)));z=z==null?void 0:z.filter(Ha=>{var yl;return((yl=Ha==null?void 0:Ha.find(Pa=>Pa==null?void 0:Pa.id))==null?void 0:yl.id)===(v==null?void 0:v.id)});let P=de.getEqualChild([(ye=F.value)==null?void 0:ye.filter(Ha=>(Ha==null?void 0:Ha.label)!=="操作")]);const C=(ba=(Oa=de.tableToForm(z,P))==null?void 0:Oa[0])==null?void 0:ba.find(Ha=>{const yl=Ha==null?void 0:Ha.key;return yl==="Interface"||yl==="方法体"}),le=C==null?void 0:C.value;if(!le){console.log("未搜索到isMain, 缺少算法执行接口"),ue.setImportLoading(!1);return}const ae=F.value?de.getEqualChild([F.value]):[],q=ae.find(Ha=>{const yl=Ha==null?void 0:Ha.prop;return yl==="Input1"||yl==="输入数据.输入1"||yl==="样本输入数据"}),be=q==null?void 0:q.prop;let Ee=v==null?void 0:v[be];const Ge=await pi().catch(Ha=>(ue.setImportLoading(!1),Promise.reject(Ha)));let Pe=!0,Xe="";(Ea=F.value)==null||Ea.forEach(Ha=>{(Ha==null?void 0:Ha.prop)===be&&(Pe=!!(Ha!=null&&Ha.childPath),Xe=Ha==null?void 0:Ha.childPath)});let _a="";if(Pe){let Ha=(T=(Sa=F.value)==null?void 0:Sa.find(tl=>(tl==null?void 0:tl.isMainKey)===!0))==null?void 0:T.prop;_a=v==null?void 0:v[Ha];let yl=Xe==null?void 0:Xe.split(_),Pa=[];yl==null||yl.forEach((tl,wl)=>{(yl==null?void 0:yl.length)-1===wl&&Pa.push(_a),Pa.push(tl)}),Pa=Pa==null?void 0:Pa[0];let ol=await de.getItemData(Pa,sessionStorage.getItem("systemKey"),""),Ka=ol==null?void 0:ol.filter(tl=>(tl==null?void 0:tl.name)===be);Ka=Ka==null?void 0:Ka.map(tl=>{var wl;return tl.compData=(wl=tl==null?void 0:tl.compData)==null?void 0:wl.map(Dl=>{var Cr;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(Cr=Dl==null?void 0:Dl.contents)==null?void 0:Cr.filter(Rl=>(Rl==null?void 0:Rl[1])===(v==null?void 0:v[be]))),Dl}),tl}),(!Ka||(Ka==null?void 0:Ka.length)===0)&&(Ka=ol,Ka=Ka==null?void 0:Ka.map(tl=>{var wl;return tl.compData=(wl=tl==null?void 0:tl.compData)==null?void 0:wl.map(Dl=>{var Cr;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(Cr=Dl==null?void 0:Dl.contents)==null?void 0:Cr.filter(Rl=>{var bl,Al;return(Rl==null?void 0:Rl[1])===(v==null?void 0:v[(Al=(bl=F==null?void 0:F.value)==null?void 0:bl[0])==null?void 0:Al.prop])})),Dl}),tl})),Ee=Qo(Ka)}const Ia=await Zo(le,{token:Ge,inputData:Ee}).catch(Ha=>(ue.setImportLoading(!1),Promise.reject(Ha))),za=(Y=Ia==null?void 0:Ia.data)==null?void 0:Y.data,Ze=ae.find(Ha=>(Ha==null?void 0:Ha.prop)==="Output1"),Xa=Ze==null?void 0:Ze.prop;let xa=[],Za=[];if(za&&(($e=Object.values(za))==null?void 0:$e.length)>0){let Ha=[];const yl=new FormData,Pa=(ta=et(za))==null?void 0:ta.map(async Ka=>{var tl,wl;if(!Array.isArray(Ka)&&(Ka!=null&&Ka.includes("http"))){let Dl=await Ua.axios.get(Ka,{responseType:"blob"}),Cr=(wl=Ka==null?void 0:Ka.split("/"))==null?void 0:wl[((tl=Ka==null?void 0:Ka.split("/"))==null?void 0:tl.length)-1];yl.append("files",Dl.data,Cr)}else Ha.push(Ka)});if(await Promise.all(Pa),!de.isFormDataEmpty(yl)){let Ka=await A.uploadAmountApi(yl),tl=(fa=(xe=Ka==null?void 0:Ka.data)==null?void 0:xe.result)==null?void 0:fa.map(wl=>{var Dl,Cr,Rl,bl,Al,Xl;return{name:(Xl=(Al=(bl=(Dl=wl==null?void 0:wl.url)==null?void 0:Dl.split("/"))==null?void 0:bl[((Rl=(Cr=wl==null?void 0:wl.url)==null?void 0:Cr.split("/"))==null?void 0:Rl.length)-1])==null?void 0:Al.split("."))==null?void 0:Xl[0],url:wl==null?void 0:wl.url}});Ha=[...Ha,...tl]}let ol={};for(let Ka in v)Ka!=="id"&&(ol[Ka]=v[Ka]);ol[Xa]=Ha,Za.push({id:v==null?void 0:v.id,value:{tableData:ol}})}if((Za==null?void 0:Za.length)>0){const Ha=Za.map(Pa=>{const ol={id:Pa.id,...Pa.value.tableData};return delete ol._isOCRRow,delete ol._ocrTableId,delete ol._isTemp,delete ol.tableEditType,delete ol.index,ol}),yl=[{tableName:(Ta=u==null?void 0:u.related)==null?void 0:Ta.find(Pa=>Pa==null?void 0:Pa.includes("content")),tableContents:Ha}];await A.pageBatchUpdateApi({platId:parseInt((el=hl.value)==null?void 0:el.plat_id),changeContents:yl})}if((xa==null?void 0:xa.length)>0)try{await A.pageBatchAddApi({platId:parseInt((qa=hl.value)==null?void 0:qa.plat_id),changeContents:[{tableName:(pl=u==null?void 0:u.related)==null?void 0:pl.find(Ha=>Ha==null?void 0:Ha.includes("content")),tableContents:xa.map(Ha=>{var Pa,ol,Ka;const yl={id:((Pa=Ha==null?void 0:Ha.key)==null?void 0:Pa.id)??((ol=Ha==null?void 0:Ha.key)==null?void 0:ol.rowId)??(Ha==null?void 0:Ha.id),...((Ka=Ha==null?void 0:Ha.value)==null?void 0:Ka.tableData)||{}};return delete yl._isOCRRow,delete yl._ocrTableId,delete yl._isTemp,delete yl.tableEditType,delete yl.index,Object.keys(yl).forEach(tl=>{tl==="证书附件"&&Array.isArray(yl[tl])&&(yl[tl]=JSON.stringify(yl[tl]))}),yl})}]})}catch(Ha){Ua.ElMessage.error((($l=(fl=Ha==null?void 0:Ha.response)==null?void 0:fl.data)==null?void 0:$l.message)||(Ha==null?void 0:Ha.message)||"保存失败"),ca.setTableLoading(!1);return}Pi(!0),ue.setImportLoading(!1),ca.setFreshContent(!0)},to=(d,v)=>(d=d==null?void 0:d.map(B=>{var z,P;return B!=null&&B.children&&((z=B.children)!=null&&z.find(C=>C.id===(v==null?void 0:v.id))?B.children=(P=B.children)==null?void 0:P.filter(C=>(C==null?void 0:C.id)!==(v==null?void 0:v.id)):B.children=to(B.children,v)),B}),d),fi=e.ref(!1),t=()=>{fi.value=!0},i=async d=>{var B,z,P,C;fi.value=!1;const v=Array.isArray(d)?d:d?[d]:[];if(v.length!==0)for(const le of v){const ae={name:le.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(le),raw:le,uid:Date.now()+Math.random()};Ra.value.push(ae),or(ae,"uploading"),Ml(ae,0);try{const q=new FormData;q.append("file",le,ae.name);const be=await A.platformUploadFile(q);ae.uploadResult=((B=be==null?void 0:be.data)==null?void 0:B.result)||{name:ae.name,url:"",fileName:ae.name},Fl({name:((z=ae.uploadResult)==null?void 0:z.name)||ae.name,url:((P=ae.uploadResult)==null?void 0:P.url)||"",id:(C=ae.uploadResult)==null?void 0:C.id}),or(ae,"uploaded"),Ml(ae,100)}catch(q){console.error("文件上传失败:",q),Ua.ElMessage.error(`文件 ${ae.name} 上传失败,请重试`),or(ae,"pending"),Ml(ae,0);const be=Ra.value.findIndex(Ee=>Ee.uid===ae.uid);be>-1&&Ra.value.splice(be,1)}}},f=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,v,B)=>{v===(u==null?void 0:u.index)?B(new Error("选择源不能和目标源一致")):B()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),y=e.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],newRows:[],buttonValue:[{label:"跳过",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),S=()=>{y.show=!1},O=async d=>{var v,B,z,P,C,le,ae,q;try{const be=[];let Ee=(v=Ae.value||[])==null?void 0:v.slice();(d||[]).forEach(Ia=>{const za={...Ia};try{za.sort=Xn(0,Ee)}catch{}be.push(za),Ee.unshift(za)});let Ge=await A.quoteApi({platId:parseInt((B=hl==null?void 0:hl.value)==null?void 0:B.plat_id),type:"fatherSyncs",related:[{menus:Se.value,groups:""},{menus:Se.value,groups:u==null?void 0:u.compName}]});Ge=(z=Ge==null?void 0:Ge.data)==null?void 0:z.result;let Pe=Ge==null?void 0:Ge.map(Ia=>({tableName:"content_"+(Ia==null?void 0:Ia.id),tableContents:be==null?void 0:be.map((za,Ze)=>({id:Ze,...za}))})),Xe=[{tableName:(P=u==null?void 0:u.related)==null?void 0:P.find(Ia=>Ia==null?void 0:Ia.includes("content")),tableContents:be==null?void 0:be.map((Ia,za)=>({id:za,...Ia}))}];Xe=[...Xe,...Pe];const _a=await A.pageBatchAddApi({platId:parseInt((C=hl.value)==null?void 0:C.plat_id),changeContents:Xe});if(((le=_a==null?void 0:_a.data)==null?void 0:le.code)===200){const Ia={buttonName:"新增",columns:F.value,fixContent:be==null?void 0:be.map((Ze,Xa)=>({id:Xa,...Ze})),relatedContents:u==null?void 0:u.related};await xt(Ia),Ua.ElMessage.success("数据导入成功");let za=[];Xe==null||Xe.forEach(Ze=>{var Xa;(Xa=Ze==null?void 0:Ze.tableContents)==null||Xa.forEach(xa=>{za.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(xa),request_result:"{}",is_delete:!1,request_table:Ze==null?void 0:Ze.tableName,request_type:"export"})})}),await A.pageBatchAddApi({platId:parseInt((ae=hl==null?void 0:hl.value)==null?void 0:ae.plat_id),changeContents:[{tableName:"log",tableContents:za}]})}else{let Ia=[];Xe==null||Xe.forEach(za=>{var Ze;(Ze=za==null?void 0:za.tableContents)==null||Ze.forEach(Xa=>{Ia.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Xa),request_result:"{}",is_delete:!1,request_table:za==null?void 0:za.tableName,request_type:"error"})})}),await A.pageBatchAddApi({platId:parseInt((q=hl==null?void 0:hl.value)==null?void 0:q.plat_id),changeContents:[{tableName:"log",tableContents:Ia}]}),Ua.ElMessage.error("数据导入响应失败")}}catch(be){throw new Error(be)}},G=async d=>{var v,B,z,P,C,le,ae,q,be,Ee;try{if(d==="cancel"&&(y.show=!1),d==="replace"&&((v=y==null?void 0:y.existRows)==null?void 0:v.length)>0){await A.pageBatchDeleteApi({platId:parseInt((B=hl.value)==null?void 0:B.plat_id),changeContents:[{tableName:((z=u==null?void 0:u.related)==null?void 0:z.find(Pe=>Pe==null?void 0:Pe.includes("content_")))||((P=u==null?void 0:u.related)==null?void 0:P.find(Pe=>Pe==null?void 0:Pe.includes("content"))),tableContents:y==null?void 0:y.existRows}]});const Ge=await A.pageBatchAddApi({platId:parseInt((C=hl.value)==null?void 0:C.plat_id),changeContents:[{tableName:(le=u==null?void 0:u.related)==null?void 0:le.find(Pe=>Pe==null?void 0:Pe.includes("content")),tableContents:(()=>{const Pe=(Ae.value||[]).filter(za=>!((y==null?void 0:y.existRows)||[]).some(Ze=>String(Ze==null?void 0:Ze.id)===String(za==null?void 0:za.id))),Xe=(y==null?void 0:y.tableData)||[],_a=[];let Ia=Pe.slice();return Xe.forEach(za=>{const Ze={...za};try{Ze.sort=Xn(0,Ia)}catch{}_a.push(Ze),Ia.unshift(Ze)}),_a.map((za,Ze)=>({id:Ze,...za}))})()}]});if(((ae=Ge==null?void 0:Ge.data)==null?void 0:ae.code)!==200)return;(q=y.newRows)!=null&&q.length&&await O(y.newRows),await xt({buttonName:"新增",columns:F.value,fixContent:(be=y==null?void 0:y.tableData)==null?void 0:be.map((Pe,Xe)=>({id:Xe,...Pe})),relatedContents:u==null?void 0:u.related}),(Ee=y.newRows)!=null&&Ee.length||Ua.ElMessage.success("数据导入成功")}}catch(Ge){throw new Error(Ge)}finally{y.show=!1,y.columns=[],y.tableData=[],y.existRows=[]}},Q=()=>{f.show=!1},ge=d=>{var v,B;if((d==null?void 0:d.buttonName)==="取消")return f.show=!1;f.to=d==null?void 0:d.content,!(!(u!=null&&u.index)||!((v=f.to)!=null&&v.groupName))&&(u==null?void 0:u.index)!==((B=f.to)==null?void 0:B.groupName)&&(Me("change",{buttonName:"迁移",value:{from:f.from,to:f.to,data:f.selectRow}}),f.show=!1)},je=async d=>{var v,B,z,P;if(d){if(!ql.validateFileSize(d.raw)){Ua.ElMessage.warning(`文件大小不能超过 ${ln.value.maxSize}MB`);const C=Ra.value.findIndex(le=>le.uid===d.uid);C>-1&&Ra.value.splice(C,1),Ce();return}if(!ql.validateFileType(d.raw)){Ua.ElMessage.warning("请上传图片文件");const C=Ra.value.findIndex(le=>le.uid===d.uid);C>-1&&Ra.value.splice(C,1),Ce();return}or(d,"uploading"),Ml(d,0);try{const C=new FormData;C.append("file",d.raw,d.name);const le=await A.platformUploadFile(C);d.uploadResult=((v=le==null?void 0:le.data)==null?void 0:v.result)||{name:d.name,url:"",fileName:d.name},Fl({name:((B=d.uploadResult)==null?void 0:B.name)||d.name,url:((z=d.uploadResult)==null?void 0:z.url)||"",id:(P=d.uploadResult)==null?void 0:P.id}),or(d,"uploaded"),Ml(d,100)}catch(C){console.error("文件上传失败:",C),Ua.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),or(d,"pending"),Ml(d,0);const le=Ra.value.findIndex(ae=>ae.uid===d.uid);le>-1&&Ra.value.splice(le,1)}finally{Ce()}}},Ce=()=>{e.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},ra=async()=>{var B,z;if(sessionStorage.setItem("ocr_root_table_id",String((u==null?void 0:u.index)??"")),Ra.value.length===0){Ua.ElMessage.warning("请先选择要上传的图片");return}if(Ra.value.filter(P=>{const C=Cl(P);return C!=="uploaded"&&C!=="completed"&&C!=="failed"}).length>0){Ua.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ul.value=!0,ia.value=0;let v=null;try{Ra.value.forEach(Ze=>{or(Ze,"processing")});const P=Math.floor(Math.random()*10)+90;v=setInterval(()=>{ia.value<P?ia.value+=1:clearInterval(v)},50);const C=Ra.value.map(Ze=>{var Xa,xa,Za;return{name:((Xa=Ze.uploadResult)==null?void 0:Xa.name)||Ze.name,url:((xa=Ze.uploadResult)==null?void 0:xa.url)||"",fileName:((Za=Ze.uploadResult)==null?void 0:Za.fileName)||Ze.name}}),le=ql.extractTableHeaders(F.value),ae=C.map(Ze=>({name:(Ze==null?void 0:Ze.fileName)||(Ze==null?void 0:Ze.name),url:(Ze==null?void 0:Ze.url)||""})),q=await ql.recognize(ae,le);if(console.log(q,"ocrResult"),clearInterval(v),v=null,(q==null?void 0:q.code)===500||(q==null?void 0:q.type)==="error"||!(q!=null&&q.result)){ia.value=0,Ra.value.forEach(Ze=>{or(Ze,"failed"),Ml(Ze,0)}),Ua.ElMessage.error((q==null?void 0:q.message)||"OCR识别失败,请重试"),ul.value=!1;return}ia.value=P;const be=Array.isArray(q==null?void 0:q.result)?q.result:[];if(be.length===0){ia.value=0,Ra.value.forEach(Ze=>{or(Ze,"failed"),Ml(Ze,0)}),Ua.ElMessage.warning("OCR识别未返回有效数据"),ul.value=!1;return}const Ee=new Set,Ge=[];be.forEach((Ze,Xa)=>{const xa=Ze!=null&&Ze.数据&&typeof(Ze==null?void 0:Ze.数据)=="object"?Ze.数据:{},Za=Array.isArray(Ze==null?void 0:Ze.图片信息)?Ze.图片信息:[],ye=new Map;Za.forEach(ba=>{ba!=null&&ba.name&&ye.set(ba.name,ba.url||"")});const Oa={_index:Xa,_certType:(Ze==null?void 0:Ze.证书类型)||"",_certNo:(Ze==null?void 0:Ze.证书编号)||"",_ocrImages:Za,__ocrFieldMeta:{}};Object.entries(xa).forEach(([ba,Ea])=>{let Sa="",T=0,Y=[],$e="";Ea&&typeof Ea=="object"&&!Array.isArray(Ea)?(Sa=(Ea==null?void 0:Ea.value)??"",T=(Ea==null?void 0:Ea.score)??0,Y=Array.isArray(Ea==null?void 0:Ea.bboxNorm)?Ea==null?void 0:Ea.bboxNorm:[],$e=(Ea==null?void 0:Ea.imageName)||""):Array.isArray(Ea)&&Ea.length>=2?(Sa=Ea[0]??"",T=Ea[1]??0):(Sa=Ea??"",T=0),Oa[ba]=Sa,Oa[`${ba}_accuracy`]=T,Ee.add(ba),Oa.__ocrFieldMeta[ba]={value:Sa,score:T,bboxNorm:Y,imageName:$e,imageUrl:$e&&ye.get($e)||"",images:Za}}),Ge.push(Oa)});const Pe=[],Xe=new Set;Ge.forEach(Ze=>{Ze&&Ee.forEach(Xa=>{const xa=Ze[`${Xa}_accuracy`];(typeof xa=="number"?xa>0:xa!=null&&String(xa).trim()!==""&&String(xa)!=="0")&&Xe.add(Xa)})}),Ee.forEach(Ze=>{Pe.push({prop:Ze,label:Ze,editable:!0,minWidth:230}),Xe.has(Ze)&&Pe.push({prop:`${Ze}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Ra.value.forEach(Ze=>{or(Ze,"completed")}),ia.value=100,ja.value=Pe,Le.value=Ge,We.value=C,pa.value=q;const _a=["出厂编号","设备名称","制造厂"],Ia=Pe.filter(Ze=>Ze&&!Ze.isAccuracy&&typeof Ze.prop=="string").map(Ze=>Ze.prop),za=["出厂编号","设备名称","制造厂"];ma.value=Ia.filter(Ze=>za.includes(Ze)),console.log("[OCR] 默认勾选字段 props:",ma.value),Ue.value=2,ul.value=!1,Va.value=!1}catch(P){console.error("OCR处理失败:",P),v&&(clearInterval(v),v=null),Ua.ElMessage.error(((z=(B=P==null?void 0:P.response)==null?void 0:B.data)==null?void 0:z.message)||"OCR识别失败,请重试"),ul.value=!1,ia.value=0,Ra.value.forEach(C=>{or(C,"pending"),Ml(C,0)})}},Da=d=>{if(d==null)return"";let v=String(d);return v=v.replace(/\s+/g," ").trim(),v=v.replace(/[!-~]/g,B=>String.fromCharCode(B.charCodeAt(0)-65248)),v=v.replace(/ /g," "),v=v.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),v},Ja=()=>{var Ze,Xa;const d=We.value,v=pa.value,B=Le.value;if(!B||B.length===0){Ua.ElMessage.warning("暂无数据可添加");return}const z=(Ze=de.getAllLeafNodes(F.value)||[])==null?void 0:Ze.filter(xa=>(xa==null?void 0:xa.type)!=="operate"&&(xa==null?void 0:xa.label)!=="操作"&&(xa==null?void 0:xa.prop)!=="operate"),P=new Map,C=new Map,le=(Xa=z==null?void 0:z.find(xa=>(xa==null?void 0:xa.label)==="证书附件"))==null?void 0:Xa.prop;z==null||z.forEach(xa=>{xa!=null&&xa.label&&(xa!=null&&xa.prop)&&(P.set(xa.label,xa.prop),C.set(xa.prop,xa.label))});const ae=Date.now(),q=xa=>String(ae*1e3+xa),be=[],Ee=[],Ge=xa=>{const Za=Do&&Do[xa]||[xa];for(const ye of Za){const Oa=P.get(ye);if(Oa)return Oa}return""},Pe=Ge("出厂编号"),Xe=Ge("设备名称"),_a=Ge("制造厂"),Ia=[],za=xa=>{var Sa,T;if(!le)return[];const Za=(Array.isArray(d)?d[xa]:null)||null,ye=(Za==null?void 0:Za.url)||"",Oa=(Za==null?void 0:Za.fileName)||(Za==null?void 0:Za.name)||"";return(String(Oa).toLowerCase().endsWith(".pdf")||String(ye).toLowerCase().endsWith(".pdf"))&&ye?[{url:ye,name:Oa,fileName:Oa}]:(Array.isArray((T=(Sa=v==null?void 0:v.result)==null?void 0:Sa[xa])==null?void 0:T.图片信息)?v.result[xa].图片信息:[]).map(Y=>({url:(Y==null?void 0:Y.url)||"",name:(Y==null?void 0:Y.name)||"",fileName:(Y==null?void 0:Y.name)||""})).filter(Y=>Y.url)};if(B.forEach((xa,Za)=>{var el;const ye={id:q(Za),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[qa,pl]of P.entries())Object.prototype.hasOwnProperty.call(xa,qa)&&(ye[pl]=xa[qa]);le&&(ye[le]=za(Za));const Oa=(Array.isArray(v==null?void 0:v.result)?v.result[Za]:null)||null,ba=(Array.isArray(d)?d[Za]:null)||null,Ea=(ba==null?void 0:ba.url)||"",Sa=(ba==null?void 0:ba.fileName)||(ba==null?void 0:ba.name)||"",T=String(Sa).toLowerCase().endsWith(".pdf")||String(Ea).toLowerCase().endsWith(".pdf"),Y={ts:Date.now(),versionId:String(Date.now())+"_"+String(Za),label:new Date().toLocaleString(),certType:(Oa==null?void 0:Oa.证书类型)||"",certNo:(Oa==null?void 0:Oa.证书编号)||"",fileType:T?"pdf":"image",sourceUrl:T?Ea:"",images:Array.isArray(Oa==null?void 0:Oa.图片信息)?Oa.图片信息.map(qa=>({name:(qa==null?void 0:qa.name)||"",url:(qa==null?void 0:qa.url)||""})).filter(qa=>qa.url):[]},$e=qa=>Da(qa?ye==null?void 0:ye[qa]:""),ta=$e(Pe),xe=$e(Xe),fa=$e(_a);if(!!(Pe&&Xe&&_a&&ta&&xe&&fa)){const qa=(Ae.value||[]).find(pl=>{const fl=Da(Pe?pl==null?void 0:pl[Pe]:""),$l=Da(Xe?pl==null?void 0:pl[Xe]:""),Ha=Da(_a?pl==null?void 0:pl[_a]:"");return fl&&$l&&Ha&&fl===ta&&$l===xe&&Ha===fa});if(qa){Ia.push({idx:Za,ocrRow:ye,versionItem:Y,ocrNo:ta,candidates:[qa],selectedTargetId:String((qa==null?void 0:qa.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(ta&&Pe){const qa=(Ae.value||[]).filter(pl=>{const fl=Da(Pe?pl==null?void 0:pl[Pe]:"");return fl&&fl===ta});if(qa.length>0){Ia.push({idx:Za,ocrRow:ye,versionItem:Y,ocrNo:ta,candidates:qa,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ye.sort===void 0||ye.sort===null||String(ye.sort).trim()===""){const qa=(Ae.value||[]).map(fl=>Jn(fl==null?void 0:fl.sort)).filter(fl=>fl!==null),pl=qa.length>0?Math.max(...qa):((el=Ae.value)==null?void 0:el.length)??0;ye.sort=String(Number((pl+1).toFixed(6)))}}catch{}Aa(u==null?void 0:u.index,ye.id,Y),Ia.push({idx:Za,ocrRow:ye,versionItem:Y,ocrNo:ta,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Ia||[]).length>0){pr.value=(Ia||[]).map(xa=>({...xa,selectedTargetId:(xa==null?void 0:xa.selectedTargetId)||""})),er.value=!0,Gl.value=Ee,Re.value=be,jl.value=v,fr.value=d,Tr.value=le||"";return}},Wa=(d,v,B)=>{Le.value[d]&&(Le.value[d][v]=B)},Qa=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,xl=d=>{if(d==null||d===0)return"#909399";const v=Number(d);return v>=.9?"#67c23a":v>=.7?"#e6a23c":"#f56c6c"},ml=d=>{var B,z,P,C;if(ka.value===d){ka.value=null,Tl.value=!1,_e.value="";return}ka.value=d,_e.value="";const v=(B=Le.value)==null?void 0:B[d];if(v&&Array.isArray(v._ocrImages)&&v._ocrImages.length>0){Jl.value=v._ocrImages.map(q=>({name:(q==null?void 0:q.name)||"",url:(q==null?void 0:q.url)||""})).filter(q=>q.name||q.url);const le=v.__ocrFieldMeta||{},ae=(z=Object.values(le))==null?void 0:z.find(q=>q==null?void 0:q.imageName);rr.value=(ae==null?void 0:ae.imageName)||((C=(P=Jl.value)==null?void 0:P[0])==null?void 0:C.name)||"",Tl.value=Jl.value.length>0}else Jl.value=[],Tl.value=!1,rr.value=""},El=()=>{nl.value=!1,Ra.value=[],cl.value=null,Ue.value=1,na.value.clear(),re.value.clear(),ia.value=0,Tl.value=!1},Ul=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",Cl=d=>{const v=d.uid||d.name;return na.value.get(v)||"pending"},Il=d=>{const v=d.uid||d.name;return re.value.get(v)||0},Ml=(d,v)=>{const B=d.uid||d.name;re.value.set(B,Math.min(100,Math.max(0,v)))},Wr=d=>{const v=Cl(d),B=100.53;if(v==="completed"||v==="uploaded")return`${B} ${B}`;if(v==="failed")return`${B} ${B}`;if(v==="uploading"){const z=Il(d);return`${B*(z/100)} ${B}`}else if(v==="processing")return`${B*.5} ${B}`;return`0 ${B}`},or=(d,v)=>{const B=d.uid||d.name;na.value.set(B,v),(v==="completed"||v==="uploaded")&&Ml(d,100)},Xr=()=>{e.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const v=document.createElement("input");v.type="file",v.multiple=!0,v.accept="image/*,application/pdf",v.style.display="none",v.onchange=async B=>{const z=Array.from(B.target.files||[]);for(const P of z){const C={name:P.name,raw:P,uid:Date.now()+Math.random()};Ra.value.push(C),await je(C)}B.target.value="",document.body.removeChild(v)},document.body.appendChild(v),v.click()}})},cn=()=>{Ue.value>1&&Ue.value--},Sn=()=>{Ue.value===1?Ra.value.length>0&&!ul.value&&ra():Ue.value===2&&(Ja(),Ue.value=3)},hi=async d=>{await Tt(d==null?void 0:d.row)},Qn=async({row:d,prop:v})=>{!d||!v||await Tt(d,v)},Tt=async(d,v)=>{var P,C;const B=d==null?void 0:d.id;if(!B){Ua.ElMessage.warning("暂无可预览数据");return}let z=Vl(u==null?void 0:u.index,B);if(!z||z.length===0){const le=sessionStorage.getItem("ocr_root_table_id"),ae=le!==null?Number(le):null;if(ae!=null&&ae!==""&&!Number.isNaN(ae)){const q=Vl(ae,B);Array.isArray(q)&&q.length>0&&(zl(u==null?void 0:u.index,B,q),z=q)}}if(!z||z.length===0){const le=(P=de.getAllLeafNodes(F.value)||[])==null?void 0:P.filter(q=>(q==null?void 0:q.type)!=="operate"&&(q==null?void 0:q.label)!=="操作"&&(q==null?void 0:q.prop)!=="operate"),ae=v||((C=le==null?void 0:le.find(q=>(q==null?void 0:q.label)==="证书附件"))==null?void 0:C.prop);if(ae&&d[ae]){const q=d[ae];let be=[],Ee="",Ge=!1;if(typeof q=="string")try{const Pe=JSON.parse(q);Array.isArray(Pe)&&(be=Pe.map(Xe=>({name:(Xe==null?void 0:Xe.name)||(Xe==null?void 0:Xe.fileName)||"",url:(Xe==null?void 0:Xe.url)||""})).filter(Xe=>Xe.url||Xe.name),be.length>0&&(Ee=be[0].url||"",Ge=String(be[0].name).toLowerCase().endsWith(".pdf")||String(Ee).toLowerCase().endsWith(".pdf")))}catch{Ee=q,Ge=String(q).toLowerCase().endsWith(".pdf"),be=[{name:q,url:q}]}else Array.isArray(q)&&(be=q.map(Pe=>({name:(Pe==null?void 0:Pe.name)||(Pe==null?void 0:Pe.fileName)||"",url:(Pe==null?void 0:Pe.url)||""})).filter(Pe=>Pe.url||Pe.name),be.length>0&&(Ee=be[0].url||"",Ge=String(be[0].name).toLowerCase().endsWith(".pdf")||String(Ee).toLowerCase().endsWith(".pdf")));if(be.length>0||Ee){const Pe={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:Ge?"pdf":"image",sourceUrl:Ge?Ee:"",images:be};z=[Pe],Aa(u==null?void 0:u.index,B,Pe)}}}if(!z||z.length===0){Ua.ElMessage.warning("暂无可预览数据");return}Ne.value=z,ll.value=!0},nu=d=>{Ra.value=Ra.value.filter((v,B)=>B!==d)},lt=async(d,v,B)=>{var z,P,C,le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba;if(ga(u.config,{type:ce.TABLE,tableOperate:d})){if(Ca.value="",qe.value=!0,la.value=!0,Me("onButtonClick",d,v),ne.value=[],d==="删除")A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Ea,Sa,T,Y;(Ea=Ae.value)!=null&&Ea.find($e=>($e==null?void 0:$e.id)===(v==null?void 0:v.id))?Ae.value=(Sa=A.cloneDeep(Ae.value))==null?void 0:Sa.filter($e=>($e==null?void 0:$e.id)!==(v==null?void 0:v.id)):Ae.value=to(A.cloneDeep(Ae.value),v);try{v!=null&&v.id&&((Y=(T=Na.value)==null?void 0:T.has)!=null&&Y.call(T,v==null?void 0:v.id))&&Na.value.delete(v.id)}catch{}zf(Ir.value,mn.value,v==null?void 0:v.id),ca.setTableLoading(u==null?void 0:u.index),Me("change",{content:Ae.value,fixContent:[v],index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.groupNames,buttonName:d,columns:F.value,relatedContents:u==null?void 0:u.related}),console.log(v,"item")});else if(d==="批量删除"){if(((z=Sl.value)==null?void 0:z.length)===0)return Ua.ElMessage.warning("请先勾选操作的数据");A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var T,Y,$e,ta,xe;const Ea=(T=Sl.value)==null?void 0:T.map(fa=>fa.id);Ae.value=(Y=A.cloneDeep(Ae.value))==null?void 0:Y.filter(fa=>!(Ea!=null&&Ea.includes(fa.id))),ca.setTableLoading(u==null?void 0:u.index),Me("change",{content:Ae.value,fixContent:Sl.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:F.value});const Sa=(Ea||[]).filter(Boolean);if(Sa.length>0&&Sa.every(fa=>fa!=null&&fa!=="")){const fa=(Sl.value||[]).map(Ta=>{const el={...Ta};return delete el._isOCRRow,delete el._ocrTableId,delete el._isTemp,delete el.tableEditType,delete el.index,el});await A.pageBatchDeleteApi({platId:parseInt(($e=hl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:((ta=u==null?void 0:u.related)==null?void 0:ta.find(Ta=>Ta==null?void 0:Ta.includes("content_")))||((xe=u==null?void 0:u.related)==null?void 0:xe.find(Ta=>Ta==null?void 0:Ta.includes("content"))),tableContents:fa}]})}})}else if(d==="复制新增"){W.value="复制新增",A.cloneDeep(v);const Ea=(P=F.value)==null?void 0:P.find(Sa=>Sa==null?void 0:Sa.isMainKey);Ea||((C=F.value)==null||C[0]),Ql.value=v,Pi(!0)}else if(d==="新增")W.value="新增",$i(""),Te.value=!0;else if(d==="编辑")W.value="编辑",$i(v),Te.value=!0;else if(d==="查看")W.value="查看",$i(v),qe.value=!1,la.value=!1,Te.value=!0;else if(d==="查看三维模型"){const Ea={};for(let T in v)T!=="id"&&(Ea[T]=v[T]);let Sa=(le=Object.values(Ea))==null?void 0:le[1];Ke.setTableShowThree(Sa)}else if(d==="切换视图")yu();else if(((ae=B==null?void 0:B.extra)==null?void 0:ae.type)==="modelExample")W.value=d,wa.value=!0;else if(d==="新建"){let Ea=pe.value,Sa=[];for(let xe in Ea)xe!=null&&xe.includes(`loading${((q=hl.value)==null?void 0:q.account)||((be=hl.value)==null?void 0:be.账号)}`)&&(Sa=[...Sa,...xe]);let T=[];for(let xe in Ea)xe!=null&&xe.includes(`updateLoading${((Ee=hl.value)==null?void 0:Ee.account)||((Ge=hl.value)==null?void 0:Ge.账号)}`)&&(T=[...T,...xe]);let Y=Sa==null?void 0:Sa.map(xe=>xe==null?void 0:xe.id);const $e=T==null?void 0:T.map(xe=>xe==null?void 0:xe.id);Y=[...A.cloneDeep(Y),...$e],(Y==null?void 0:Y.length)>0&&(Y!=null&&Y.every(xe=>xe!==null&&xe))&&await Mr.batchDeleteInsofDataApi({ids:Y});const ta=(Pe=da.value)==null?void 0:Pe.find(xe=>(xe==null?void 0:xe.label)==="新建");await tu(!1,ta)}else if(d==="修改模板"){let Ea=A.cloneDeep(Se).value;ca.setRouteToChildPath(Ea),ue.setActiveMenuPath(Ea+_)}else if(d==="执行")at(d,v);else if(d==="导出paraform"){const Ea=A.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Sa=["推力","真空","压力","温度","流量"],T=bl=>{var Al,Xl,Nl;return bl?typeof(bl==null?void 0:bl.value)=="string"?bl.value:((Nl=(Xl=(Al=bl==null?void 0:bl._custom)==null?void 0:Al.value)==null?void 0:Xl.value)==null?void 0:Nl.value)||"":""},Y=Array.isArray(nr.value)?nr.value:[],$e=T(Y.find(bl=>(bl==null?void 0:bl.condition)==="child")),ta=String($e||"").slice(0,8),xe=bl=>{if(bl==null)return"";const Al=String(bl).trim();if(!Al)return"";if(/^\d{8}$/.test(Al))return Al;const Xl=Al.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Xl){const Yl=Xl[1],tr=Xl[2].padStart(2,"0"),Wl=Xl[3].padStart(2,"0");return`${Yl}${tr}${Wl}`}const Nl=Al.replace(/\D/g,"");return Nl.length>=8?Nl.slice(0,8):""},fa=async bl=>{var Al,Xl;if(!bl)return"";try{const Nl=await Jr("试验任务/任务管理",!1),Yl=(gr,dr=[])=>{if(!Array.isArray(gr))return dr;for(const mr of gr)(mr==null?void 0:mr.comp)==="Table"&&(mr!=null&&mr.name)&&dr.push(mr),Array.isArray(mr==null?void 0:mr.children)&&Yl(mr.children,dr),Array.isArray(mr==null?void 0:mr.tab)&&Yl(mr.tab,dr),Array.isArray(mr==null?void 0:mr.choice)&&Yl(mr.choice,dr);return dr},Wl=Yl(Nl||[]).find(gr=>(gr==null?void 0:gr.name)==="任务列表"),yr=((Xl=(Al=Wl==null?void 0:Wl.compData)==null?void 0:Al.find(gr=>(gr==null?void 0:gr.key)==="tableContents"))==null?void 0:Xl.contents)||[];if(!Array.isArray(yr)||yr.length===0)return"";const Gr=yr.find(gr=>String((gr==null?void 0:gr["试验代号(名称)"])||"").slice(0,8)===bl);return xe(Gr==null?void 0:Gr.计划试验时间)}catch(Nl){return console.warn("获取任务列表计划试验时间失败:",Nl),""}},Ta=(Se.value||"").replace(/\/+$/,""),el=$e?`${Ta}/${$e}`:Ta,qa=await Jr(el||Se.value,!1),pl=String(aa.value||"").trim(),fl=bl=>String(bl||"").trim(),$l=(bl,Al=[],Xl="")=>{if(!Array.isArray(bl))return Al;for(const Nl of bl){const Yl=fl((Nl==null?void 0:Nl.choiceName)||(Nl==null?void 0:Nl.name0)||Xl);(Nl==null?void 0:Nl.comp)==="Table"&&(Nl==null?void 0:Nl.name)&&Sa.includes(Nl.name)&&(!pl||Yl===pl)&&Al.push(Nl),Array.isArray(Nl==null?void 0:Nl.children)&&$l(Nl.children,Al,Yl),Array.isArray(Nl==null?void 0:Nl.tab)&&$l(Nl.tab,Al,Yl),Array.isArray(Nl==null?void 0:Nl.choice)&&$l(Nl.choice,Al,Yl)}return Al},Ha=$l(qa||[]),yl=new Map;for(const bl of Ha)bl!=null&&bl.name&&!yl.has(bl.name)&&yl.set(bl.name,bl);const Pa=Sa.map(bl=>yl.get(bl)).filter(Boolean);if(!Pa||Pa.length===0)return Ua.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const ol=bl=>{const Al=new Map,Xl=(Nl,Yl=[])=>{if(Array.isArray(Nl))for(const tr of Nl){const Wl=((tr==null?void 0:tr.label)??"").toString().trim(),yr=Wl?[...Yl,Wl]:[...Yl];if(Array.isArray(tr==null?void 0:tr.children)&&tr.children.length>0)Xl(tr.children,yr);else{const gr=((tr==null?void 0:tr.prop)??"").toString();if(!gr)continue;const dr=Wl||gr,mr=(yr.length>0?[...Yl,dr]:[dr]).join(".");Al.set(gr,mr)}}};return Xl(bl,[]),Al},Ka=(bl,Al)=>{const Xl=ol(bl||[]),Yl=(de.getAllLeafNodes(bl||[])||[]).filter(Wl=>(Wl==null?void 0:Wl.prop)&&(Wl==null?void 0:Wl.type)!=="operate"&&(Wl==null?void 0:Wl.label)!=="操作"&&(Wl==null?void 0:Wl.prop)!=="operate"),tr=Array.isArray(Al)?Al:[];return tr.length===0?[]:tr.map(Wl=>{const yr={};return Yl.forEach(Gr=>{const gr=String(Gr.prop),dr=Xl.get(gr)||String(Gr.label||Gr.prop);yr[dr]=(Wl==null?void 0:Wl[gr])??""}),yr})},tl=Pa.map(bl=>{var tr,Wl;const Al=(bl==null?void 0:bl.compData)||[];let Xl=(tr=Al==null?void 0:Al.find(yr=>(yr==null?void 0:yr.key)==="header"))==null?void 0:tr.contents;Array.isArray(Xl==null?void 0:Xl[0])&&(Xl=Xl[0]);const Nl=((Wl=Al==null?void 0:Al.find(yr=>(yr==null?void 0:yr.key)==="tableContents"))==null?void 0:Wl.contents)||[];if(!Array.isArray(Xl)||Xl.length===0||!Array.isArray(Nl)||Nl.length===0)return null;const Yl=Ka(Xl||[],Nl||[]);return!Array.isArray(Yl)||Yl.length===0?null:{类型:bl==null?void 0:bl.name,数据:Yl}}).filter(Boolean);if(!tl||tl.length===0)return Ua.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const wl=await fa(ta),Dl={试验代号:ta,试验日期:wl,ParaForm:tl},Cr=await pi().catch(()=>""),Rl=await A.exportParaformApi(Dl,Cr);if(((Xe=Rl==null?void 0:Rl.data)==null?void 0:Xe.code)===200&&((Ia=(_a=Rl==null?void 0:Rl.data)==null?void 0:_a.result)!=null&&Ia.Excel文件)){const bl=Rl.data.result.Excel文件,Al=await A.platformDownloadFile({url:bl}),Xl=new Blob([Al.data],{type:"application/vnd.ms-excel"}),Nl=URL.createObjectURL(Xl),Yl=A.dayjs().format("YYYYMMDD"),Wl=`${(ta||"UNKNOWN").trim()||"UNKNOWN"}_${Yl}_paraform.xls`,yr=document.createElement("a");yr.href=Nl,yr.download=Wl,yr.style.display="none",document.body.appendChild(yr),yr.click(),setTimeout(()=>{document.body.removeChild(yr),URL.revokeObjectURL(Nl)},100);const Gr=Array.isArray((Ze=(za=Rl==null?void 0:Rl.data)==null?void 0:za.result)==null?void 0:Ze.warnings)?Rl.data.result.warnings:[];if(Gr.length>0){const gr=Gr.map((dr,mr)=>`${mr+1}. ${(dr==null?void 0:dr.field)||"未知字段"}:${(dr==null?void 0:dr.message)||""}`).join(`
|
|
24
24
|
`);Ua.ElMessage.warning({message:`导出成功,但存在以下提示:
|
|
25
|
-
${gr}`,duration:5e3,showClose:!0})}else Ua.ElMessage.success("导出成功")}else Ua.ElMessage.error(((Xa=Rl==null?void 0:Rl.data)==null?void 0:Xa.message)||"导出失败")}catch(Sa){console.error("导出paraform失败:",Sa),Ua.ElMessage.error("导出失败:"+((Sa==null?void 0:Sa.message)||"未知错误"))}finally{Ea.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((xa=Sl.value)==null?void 0:xa.length)===0)return Ua.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Za=Ae.value)==null?void 0:Za.length)===0)return Ua.ElMessage.warning("暂无数据导出");let Ea=["序号",...(Oa=(ye=F.value)==null?void 0:ye.map($e=>$e==null?void 0:$e.prop))==null?void 0:Oa.filter($e=>$e!=="操作")],Sa=d==="导出全部"?Ae.value:Sl.value;const T=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Sa=Sa==null?void 0:Sa.map($e=>Object.fromEntries(Object.entries($e).filter(([ta])=>!T.includes(ta)))),Ea=["序号",...Ea],Sa=Sa==null?void 0:Sa.map(($e,ta)=>({序号:ta+1,...$e}));let Y=(u==null?void 0:u.compName)||"表格信息";Po(Sa,Y,Ea,Y)}else if(d==="OCR识别")nl.value=!0,Ra.value=[],Ue.value=1,na.value.clear(),re.value.clear(),ia.value=0;else if(d==="迁移")f.selectRow=v,f.show=!0;else if(d==="生成方法"){let Ea=await Jf(v),Sa;v!==""?Sa=[v]:Sa=A.cloneDeep(Ae.value),Sa=Sa==null?void 0:Sa.map(Y=>(Y.输出值=Ea,Y));const T={fixContent:Sa,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:F.value,name:u==null?void 0:u.groupNames};Me("change",T)}else if(((ba=B==null?void 0:B.extra)==null?void 0:ba.type)==="methodButton"){let Ea;v!==""?Ea=[v]:Ea=A.cloneDeep(Ae.value);const T={fixContent:await vt(Ea,F==null?void 0:F.value,"Manual",Ae.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:F.value,name:u==null?void 0:u.groupNames};Me("change",T)}}},iu=async(d,v)=>{var B,z,P,C,le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa,Za,ye;try{let Oa,ba;const Ea=(B=pe.value[Se.value+_])==null?void 0:B.filter(Ta=>{var el;return((el=Ta==null?void 0:Ta.key)==null?void 0:el.type)==="structureMethod"}),Sa=(z=pe.value[Se.value+_])==null?void 0:z.filter(Ta=>{var el;return((el=Ta==null?void 0:Ta.key)==null?void 0:el.type)==="structure"}),T=Ea==null?void 0:Ea.find(Ta=>{var el,qa;return((qa=(el=Ta==null?void 0:Ta.value)==null?void 0:el.pageData)==null?void 0:qa.method)==="保存"});if(!T)return;const Y=(ae=(le=pe.value[(C=(P=T==null?void 0:T.value)==null?void 0:P.pageData)==null?void 0:C.path])==null?void 0:le.filter(Ta=>{var el;return((el=Ta==null?void 0:Ta.key)==null?void 0:el.type)==="data"}))==null?void 0:ae.find(Ta=>{var el,qa,pl,fl;return((qa=(el=Ta==null?void 0:Ta.value)==null?void 0:el.tableData)==null?void 0:qa.算法名称)===((fl=(pl=T==null?void 0:T.value)==null?void 0:pl.pageData)==null?void 0:fl.method)});if(!Y)return;const $e={buttonName:(be=(q=T==null?void 0:T.value)==null?void 0:q.pageData)==null?void 0:be.method,api:(Ge=(Ee=Y==null?void 0:Y.value)==null?void 0:Ee.tableData)==null?void 0:Ge.算法体,content:Sa==null?void 0:Sa.map(Ta=>{var el;return(el=Ta==null?void 0:Ta.value)==null?void 0:el.pageData}),extraContent:[],extraValues:(Xe=(Pe=T==null?void 0:T.value)==null?void 0:Pe.pageData)==null?void 0:Xe.data,methodName:(Ia=(_a=T==null?void 0:T.value)==null?void 0:_a.pageData)==null?void 0:Ia.path};if(!d)return;const ta={...d,compData:(za=d==null?void 0:d.compData)==null?void 0:za.map(Ta=>{var el;return(Ta==null?void 0:Ta.key)==="formContent"?{...Ta,contents:(el=Ta==null?void 0:Ta.contents)==null?void 0:el.map(qa=>(qa==null?void 0:qa.prop)===v?{...qa,value:""}:qa)}:Ta})},xe={key:{pageKey:Se.value+_,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:ta}},fa=await Ua.axios.post($e.api,xe,{headers:{"Content-Type":"application/json"}});return((Ze=fa==null?void 0:fa.data)==null?void 0:Ze.code)===200&&(Oa=(xa=(Xa=fa==null?void 0:fa.data)==null?void 0:Xa.result)==null?void 0:xa.latestReportCode,ba=(ye=(Za=fa==null?void 0:fa.data)==null?void 0:Za.result)==null?void 0:ye.status),{newMainKeyValue:Oa,newStatus:ba}}catch(Oa){throw Ua.ElMessage.error(Oa),new Error(Oa)}},Nt=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const ou=async(d,v,B)=>{var q,be;let z=d==null?void 0:d[v==null?void 0:v.prop],P=1,C,le;const ae=A.cloneDeep(Se).value+_+z;if(ae){Nt.value="",C=(q=pe.value[ae])==null?void 0:q.filter(Pe=>{var Xe;return((Xe=Pe==null?void 0:Pe.key)==null?void 0:Xe.type)==="structure"});const Ee=C==null?void 0:C.find(Pe=>{var Xe,_a,Ia;return((Ia=(_a=(Xe=Pe==null?void 0:Pe.value)==null?void 0:Xe.pageData)==null?void 0:_a.comp)==null?void 0:Ia.toUpperCase())==="FORM"});le={...(be=Ee==null?void 0:Ee.value)==null?void 0:be.pageData,id:Ee==null?void 0:Ee.id};const Ge=await iu(le,v==null?void 0:v.prop);if(Nt.value=Ge==null?void 0:Ge.newStatus,Ge!=null&&Ge.newMainKeyValue)return Ge==null?void 0:Ge.newMainKeyValue}if(Ae.value.some(Ee=>(Ee==null?void 0:Ee[v==null?void 0:v.prop])===z)){const Ee=z;for(;Ae.value.some(Ge=>(Ge==null?void 0:Ge[v==null?void 0:v.prop])===`${Ee}(${P})`);)P++;z=`${Ee}(${P})`}return z},tu=async(d,v,B)=>{var C,le,ae,q;let z,P;if(await ou(B==null?void 0:B.data,B==null?void 0:B.firstCol),z=A.cloneDeep(Se).value+_,P=A.cloneDeep(z)+`loading${((C=hl.value)==null?void 0:C.account)||((le=hl.value)==null?void 0:le.账号)}`,v){const be=(q=(ae=pe.value[P])==null?void 0:ae.filter(Ee=>{var Ge;return((Ge=Ee==null?void 0:Ee.key)==null?void 0:Ge.parentTable)===""}))==null?void 0:q.map(Ee=>{var Ge;return{id:Ee==null?void 0:Ee.id,...(Ge=Ee==null?void 0:Ee.value)==null?void 0:Ge.pageData}});(be==null?void 0:be.length)>0||await de.loadingConstruct(z,P,null,null,null),ca.setRouteToChildPath(A.cloneDeep(Se).value),ue.setActiveMenuPath(P)}else ca.setRouteToChildPath(A.cloneDeep(Se).value),ue.setActiveMenuPath(P)},su=()=>{Ve.value=!1,fe.value=[],he.value=!1},$i=d=>{var C,le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa;const v=[];Be.value=A.cloneDeep(F.value),(le=de.getColumnChild((C=A.cloneDeep(F.value))==null?void 0:C.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||le.forEach((T,Y)=>{var $e,ta,xe;T!=null&&T.formType&&(($e=T==null?void 0:T.formType)==null?void 0:$e.toUpperCase())==="SELECT"||T!=null&&T.menuId?v.push({label:(ta=T==null?void 0:T.prop)!=null&&ta.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",name:(T==null?void 0:T.prop)??"t"+Y,prop:T==null?void 0:T.prop,type:"Select",value:(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Y,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,multipleLimit:T==null?void 0:T.multipleLimit,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,relatedValueId:T==null?void 0:T.relatedValueId,disabled:T==null?void 0:T.disabled,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,allSelectionContents:(T==null?void 0:T.allSelectionContents)??[],filterContent:T==null?void 0:T.filterContent,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly}):v.push({label:(xe=T==null?void 0:T.prop)!=null&&xe.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",prop:T==null?void 0:T.prop,name:(T==null?void 0:T.prop)??"t"+Y,type:!(T!=null&&T.formType)||(T==null?void 0:T.formType)===""?"Input":T==null?void 0:T.formType,value:(T==null?void 0:T.formType)==="Upload"?(d==null?void 0:d[T==null?void 0:T.prop])??"{}":(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Y,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly})}),d===""||!d||(Ca.value=(d==null?void 0:d.id)??"");let B=de.getColumnChild((ae=A.cloneDeep(F.value))==null?void 0:ae.filter(T=>(T==null?void 0:T.label)!=="操作"));Qe.value&&((q=Qe.value)==null?void 0:q.length)>0&&(Qe.value=(be=A.cloneDeep(Qe).value)==null?void 0:be.map(T=>{var $e;let Y=(T==null?void 0:T.prop)||(($e=B==null?void 0:B.find(ta=>(ta==null?void 0:ta.label)===(T==null?void 0:T.label)))==null?void 0:$e.prop);return Y&&(T.value=d[Y]),T})),La.value=Qe.value&&((Ee=Qe.value)==null?void 0:Ee.length)>0?de.getTableFormToForm(Qe.value):v,La.value=((Ge=La.value)==null?void 0:Ge.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??La.value;let z=[],P=((_a=(Xe=(Pe=u.itemData)==null?void 0:Pe.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Xe[0])==null?void 0:_a.contents)??"";if(P=de.analyzeSplitToContent(P,","),(P==null?void 0:P.length)>0&&(z=P.flat()),(z==null?void 0:z.length)>0){let T=z==null?void 0:z.filter(fa=>fa==null?void 0:fa.includes("@Type"));if(T=T==null?void 0:T[(T==null?void 0:T.length)-1],(T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T){let fa=(za=(Ia=T==null?void 0:T.replace("=",w))==null?void 0:Ia.split(w))==null?void 0:za[1];((Ze=fa==null?void 0:fa.trim())==null?void 0:Ze.toUpperCase())==="MANUAL"&&(u==null||u.index,La.value=(Xa=La.value)==null?void 0:Xa.map((Ta,el)=>Ta))}let Y=(xa=La.value)==null?void 0:xa.filter(fa=>fa==null?void 0:fa.mainKey),$e;Y==null||Y.forEach(fa=>{var el;if($e!==void 0)return;let Ta=fa==null?void 0:fa.menus;((el=Y==null?void 0:Y.filter(qa=>qa==null?void 0:qa.mainKey))==null?void 0:el.length)>1&&($e=Ta,fa==null||fa.groups)});let ta=[],xe=new Map;if(Y==null||Y.forEach(fa=>{var Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl;if((Ta=fa==null?void 0:fa.prop)!=null&&Ta.includes(".")){let Dl=[];xe.get(((qa=(el=fa==null?void 0:fa.prop)==null?void 0:el.split("."))==null?void 0:qa[0])+(fa!=null&&fa.isMainPath?0:1)+((pl=fa==null?void 0:fa.groups)==null?void 0:pl[0]))&&(Dl=xe.get((($l=(fl=fa==null?void 0:fa.prop)==null?void 0:fl.split("."))==null?void 0:$l[0])+(fa!=null&&fa.isMainPath?0:1)+((Ha=fa==null?void 0:fa.groups)==null?void 0:Ha[0]))),Dl.push(fa),xe.set(((Pa=(yl=fa==null?void 0:fa.prop)==null?void 0:yl.split("."))==null?void 0:Pa[0])+(fa!=null&&fa.isMainPath?0:1)+((ol=fa==null?void 0:fa.groups)==null?void 0:ol[0]),Dl)}else{let Dl=[];xe.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((Ka=fa==null?void 0:fa.groups)==null?void 0:Ka[0]))&&(Dl=xe.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((tl=fa==null?void 0:fa.groups)==null?void 0:tl[0]))),Dl.push(fa),xe.set("normal"+(fa!=null&&fa.isMainPath?0:1)+((wl=fa==null?void 0:fa.groups)==null?void 0:wl[0]),Dl)}}),ta=Array.from(xe.values()),(ta==null?void 0:ta.length)>0)for(let fa in ta){let Ta=ta==null?void 0:ta[fa];if((Ta==null?void 0:Ta.length)!==1){if((Ta==null?void 0:Ta.length)>1){let el=Ta==null?void 0:Ta.map(ol=>ol==null?void 0:ol.prop),qa=Ta==null?void 0:Ta.map(ol=>ol==null?void 0:ol.label),pl=Ta==null?void 0:Ta.map(ol=>ol==null?void 0:ol.value),fl=(Za=A.cloneDeep(Ta))==null?void 0:Za[0],$l=(ye=La.value)==null?void 0:ye.findIndex(ol=>(ol==null?void 0:ol.prop)===(fl==null?void 0:fl.prop)),Ha=(Oa=La.value)==null?void 0:Oa.slice(0,$l),yl=(Ea=La.value)==null?void 0:Ea.slice($l,(ba=La.value)==null?void 0:ba.length);fl.label=qa==null?void 0:qa.join("·"),fl.value=pl==null?void 0:pl.join(" "),fl.value.trim()===""&&(fl.value=""),fl.prop=el==null?void 0:el.join("·");let Pa=Ta==null?void 0:Ta.map(ol=>{var Ka;return(Ka=ol==null?void 0:ol.words)==null?void 0:Ka.join(".")});fl.relatedWords=Pa,fl.usingType="parent",yl.unshift(fl),La.value=[...Ha,...yl],La.value=(Sa=La.value)==null?void 0:Sa.map(ol=>(el!=null&&el.find(Ka=>Ka===(ol==null?void 0:ol.prop))&&(ol.isFormColHidden=!0,ol.relatedWords=Pa),ol))}}}}},cu=()=>{var v;const d=(v=o.value)==null?void 0:v.$el;d&&Bl.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:B=>{var le;const{oldIndex:z,newIndex:P}=B;if(z===P)return;const C=sn.value.splice(z,1)[0];sn.value.splice(P,0,C),F.value=(le=F.value)==null?void 0:le.slice().sort((ae,q)=>{if(ae.label==="操作")return 1;if(q.label==="操作")return-1;const be=sn.value.findIndex(Ge=>Ge.label===ae.label),Ee=sn.value.findIndex(Ge=>Ge.label===q.label);return be-Ee})}})};e.onMounted(()=>{oa.value=window.innerWidth-240*2,window.addEventListener("keydown",Xi)});const uu=()=>{e.nextTick(()=>{cu()})},du=()=>{c.value=!0},rt=(d,v)=>{var z;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let B;return d.children=(z=d.children)==null?void 0:z.map(P=>{var C,le;if((P==null?void 0:P.id)===Ca.value){let ae={};for(let q in P){let be=(C=v==null?void 0:v.find(Ee=>(Ee==null?void 0:Ee.prop)===q))==null?void 0:C.label;be?ae[q]=(le=Ql.value)==null?void 0:le[be]:ae[q]=P[q]??""}P=Object.assign(ae,Ql.value),B=P}else{let ae=rt(P,v);P=ae==null?void 0:ae.contents,B=ae==null?void 0:ae.currentSelectContents}return P}),{contents:d,currentSelectContents:B}},At=(d,v)=>{let B,z;return d!=null&&d.find(P=>(P==null?void 0:P.id)===Ca.value)?B=d==null?void 0:d.map(P=>{var C,le,ae;if((P==null?void 0:P.id)===Ca.value){let q={};for(let Ee in P){let Ge=(C=v==null?void 0:v.find(Pe=>(Pe==null?void 0:Pe.prop)===Ee))==null?void 0:C.label;Ge?q[Ee]=((le=Ql.value)==null?void 0:le[Ge])??"":q[Ee]=P[Ee]??""}let be=Ql.value;for(let Ee in q)(ae=Ql.value)!=null&&ae[Ee]||(be[Ee]=(q==null?void 0:q[Ee])??"");P=be,z=P}return P}):B=d==null?void 0:d.map(P=>{var C,le,ae,q;if((P==null?void 0:P.id)===Ca.value){let be={};for(let Ee in P){let Ge=(C=v==null?void 0:v.find(Pe=>(Pe==null?void 0:Pe.prop)===Ee))==null?void 0:C.label;Ge?be[Ee]=(le=Ql.value)==null?void 0:le[Ge]:be[Ee]=P[Ee]??""}P=Object.assign(be,Ql.value),z=P}else P=(ae=rt(P,v))==null?void 0:ae.contents,z=(q=rt(P,v))==null?void 0:q.currentSelectContents;return P}),{newContents:B,currentSelectContents:z}},zt=(d,v,B)=>{var z,P;return d[v==null?void 0:v.prop]=B,typeof d.id=="number"&&(d.id=(z=d.id)==null?void 0:z.toString()),d.children&&((P=d.children)==null?void 0:P.length)>0&&(d.children=d.children.map(zt)),d},Mt=d=>{var B;const v=[];return v.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((B=d.children)==null||B.forEach(z=>{v.push(...Mt(z))})),(v==null?void 0:v.length)>0?v==null?void 0:v.map(z=>{const P={...z};return delete P.children,P}):[]},so=["Pacific6000数据采集装置.通道号","通道号"],Vi=d=>{if(!d)return"";const v=so.map(B=>d==null?void 0:d[B]).find(B=>B!=null&&String(B).trim()!=="");return v==null?"":String(v).trim()},nt=async(d,v=void 0)=>{if(!d)return!1;try{const B=Xe=>{var _a,Ia,za;return Xe?typeof(Xe==null?void 0:Xe.value)=="string"?Xe.value:((za=(Ia=(_a=Xe==null?void 0:Xe._custom)==null?void 0:_a.value)==null?void 0:Ia.value)==null?void 0:za.value)||"":""},z=Array.isArray(nr.value)?nr.value:[],P=B(z.find(Xe=>(Xe==null?void 0:Xe.condition)==="child")),C=(Se.value||"").replace(/\/+$/,""),le=P?`${C}/${P}`:C,ae=await Jr(le||Se.value,!1),q=String(aa.value||"").trim(),be=Xe=>String(Xe||"").trim(),Ee=(Xe,_a=[],Ia="")=>{if(!Array.isArray(Xe))return _a;for(const za of Xe){const Ze=be((za==null?void 0:za.choiceName)||(za==null?void 0:za.name0)||Ia);(za==null?void 0:za.comp)==="Table"&&(!q||Ze===q)&&_a.push(za),Array.isArray(za==null?void 0:za.children)&&Ee(za.children,_a,Ze),Array.isArray(za==null?void 0:za.tab)&&Ee(za.tab,_a,Ze),Array.isArray(za==null?void 0:za.choice)&&Ee(za.choice,_a,Ze)}return _a},Ge=Ee(ae||[]),Pe=String((u==null?void 0:u.compName)||"");return Ge.some(Xe=>{var Ia,za;const _a=((za=(Ia=Xe==null?void 0:Xe.compData)==null?void 0:Ia.find(Ze=>(Ze==null?void 0:Ze.key)==="tableContents"))==null?void 0:za.contents)||[];return!Array.isArray(_a)||_a.length===0?!1:_a.some(Ze=>{if(String((Xe==null?void 0:Xe.name)||"")===Pe&&(Ze==null?void 0:Ze.id)===v)return!1;const xa=Vi(Ze);return!!xa&&xa===d})})}catch{return(Ae.value||[]).some(z=>{if((z==null?void 0:z.id)===v)return!1;const P=Vi(z);return!!P&&P===d})}},Pi=async(d=!0,v,B)=>{var be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa,T,Y,$e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl;if(Ql.value){const Pa=(Ee=de.getColumnChild((be=A.cloneDeep(F.value))==null?void 0:be.filter(Ka=>(Ka==null?void 0:Ka.label)!=="操作")))==null?void 0:Ee.filter(Ka=>(Ka==null?void 0:Ka.required)===!0);for(let Ka=0;Ka<((Pa==null?void 0:Pa.length)??0);Ka++){const tl=Pa[Ka],wl=tl==null?void 0:tl.prop,Dl=(tl==null?void 0:tl.label)??wl,Cr=(Ge=Ql.value)==null?void 0:Ge[wl];if(Cr===""||Cr===null||Cr===void 0||Array.isArray(Cr)&&Cr.length===0){Ua.ElMessage.error(`${Dl}不能为空`);return}}const ol=Vi(Ql.value);if(ol&&await nt(ol,Ca.value||void 0)){Ua.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=de.getColumnChild((Pe=A.cloneDeep(F.value))==null?void 0:Pe.filter(Pa=>(Pa==null?void 0:Pa.label)!=="操作")),P,C=A.cloneDeep(Ae.value);if(!Ql.value){Te.value=!1;return}if(Ca.value===""){$a.value++;let Pa;Pa={id:$a.value.toString()};try{Pa.sort=Xn(0,Ae.value||[])}catch{}Pa!=null&&Pa.children&&(Pa={...Pa,children:(Xe=Pa.children)==null?void 0:Xe.map(Ka=>zt(Ka,v,B))});const ol=Object.assign(Ql.value,Pa);C.unshift(ol),P=ol}else C=(_a=At(C,z))==null?void 0:_a.newContents,P=(Ia=At(C,z))==null?void 0:Ia.currentSelectContents;const le=(za=u.itemData)==null?void 0:za.filter(Pa=>(Pa==null?void 0:Pa.key)==="childTree")[0];if(((Ze=le==null?void 0:le.contents)==null?void 0:Ze.length)>0){W.value="编辑";const Pa=[];C==null||C.forEach((tl,wl)=>{var Cr;let Dl={};if(Array.isArray(tl)){let Rl=[];tl==null||tl.filter(bl=>!(bl!=null&&bl.id)).forEach((bl,Al)=>{var Xl,Nl,Yl,tr,Wl,yr,Gr;if((Nl=(Xl=_r.value)==null?void 0:Xl[Al])!=null&&Nl.prop&&!Array.isArray(bl)){let gr={};gr[_r.value[Al].column]=bl,R!=null&&R.value&&((Yl=R==null?void 0:R.value)==null?void 0:Yl.length)>0&&((tr=R==null?void 0:R.value)!=null&&tr.find(dr=>JSON.stringify(dr==null?void 0:dr[0])===JSON.stringify(gr)))&&(Rl=(Wl=R==null?void 0:R.value)==null?void 0:Wl.find(dr=>JSON.stringify(dr==null?void 0:dr[0])===JSON.stringify(gr))),Rl&&Rl.length>0?Dl[_r.value[Al].prop]=Rl!=null&&Rl.find(dr=>{var mr;return((mr=Object.keys(dr))==null?void 0:mr[0])===_r.value[Al].column})?(yr=Rl==null?void 0:Rl.find(dr=>{var mr;return((mr=Object.keys(dr))==null?void 0:mr[0])===_r.value[Al].column}))==null?void 0:yr[_r.value[Al].column]:bl:Dl[_r.value[Al].prop]=bl}else Array.isArray(bl)&&((Gr=_r.value[Al])!=null&&Gr.prop?Dl[_r.value[Al].prop]=bl:Dl.children=mt(bl,_r.value))})}else Dl=tl;if(Array.isArray(tl)&&tl.some(Rl=>Rl==null?void 0:Rl.id)){const Rl=(Cr=tl==null?void 0:tl.find(bl=>bl.id))==null?void 0:Cr.id;Pa.push(Object.assign(Dl,{id:io(Rl)}))}else Dl.id?Pa.push(Dl):Pa.push(Object.assign(Dl,{id:wl.toString()}))});const ol=(Ae.value||[]).map(tl=>String(tl==null?void 0:tl.id)),Ka=ui(Pa,ol);Ae.value=Rt(Ka,le,F.value)}Ot(Ae.value),Ir.value=Ae.value;const ae=If(Ir.value,mn.value,C);let q=[];if(j.value?(q=(Xa=A.cloneDeep(j).value.singleContent)==null?void 0:Xa.filter(Pa=>(Pa==null?void 0:Pa.id)!==(P==null?void 0:P.id)),q.push(P)):q=[P],Ll.value){const Pa={content:ae,singleContent:((xa=le==null?void 0:le.contents)==null?void 0:xa.length)>0?q==null?void 0:q.flatMap(Mt):q,index:u==null?void 0:u.index,buttonName:"编辑",column:F.value,parentTableId:u==null?void 0:u.parentTableId};ca.setCacheUpdatingData(Pa)}if((Za=F.value)==null||Za.forEach(Pa=>{(Pa==null?void 0:Pa.formType)==="Upload"&&(P[Pa.prop]=P[Pa.prop]===""?"{}":typeof P[Pa.prop]!="string"?JSON.stringify(P[Pa.prop]):P[Pa.prop])}),d){(Ea=(ba=(Oa=(ye=u.itemData)==null?void 0:ye.find(Ka=>(Ka==null?void 0:Ka.key)==="filterAllType"))==null?void 0:Oa.value)==null?void 0:ba.find(Ka=>(Ka==null?void 0:Ka.value)==="onConditionContents"))==null||Ea.content;let Pa=(Sa=u.itemData)==null?void 0:Sa.filter(Ka=>(Ka==null?void 0:Ka.key)==="filterAllType");Pa=Array.from(new Map(Pa.filter(Boolean).map((Ka,tl)=>[Ka.value,{...Ka,_idx:tl}])).values()).sort((Ka,tl)=>Ka._idx-tl._idx).map(({_idx:Ka,...tl})=>tl),Pa=(T=Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])==null?void 0:T.value;const ol={fixContent:[P],buttonName:W.value,relatedContents:u==null?void 0:u.related,columns:F.value,name:u==null?void 0:u.groupNames};ca.setTableLoading(u==null?void 0:u.index),Te.value=!1,Ql.value=void 0,Me("change",ol)}if((ta=($e=(Y=La.value)==null?void 0:Y[0])==null?void 0:$e.optionUrl)!=null&&ta.menuId){Te.value=!1;let Pa=(xe=u.itemData)==null?void 0:xe.filter(ol=>(ol==null?void 0:ol.key)==="filterAllType");if((Pa==null?void 0:Pa.length)>0){let ol=Pa==null?void 0:Pa.map(wl=>wl==null?void 0:wl.value),Ka=(el=(Ta=(fa=ol.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Num")}))==null?void 0:fa.content)==null?void 0:Ta.split(":"))==null?void 0:el[1];((fl=(pl=(qa=ol.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Type:")}))==null?void 0:qa.content)==null?void 0:pl.split(":"))==null?void 0:fl[1])!=="Manual"&&(Ka=parseInt(Ka),Ae.value=(yl=Ae.value)==null?void 0:yl.slice((($l=Ae.value)==null?void 0:$l.length)-Ka,(Ha=Ae.value)==null?void 0:Ha.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",Xi),F.value=[],Ae.value=[],Be.value=[],Ba.value=[],Qe.value=[],He.value=[],fe.value=[],ke.value=[],La.value=[],Sl.value=[],o.value=null,Ln.value=""});const co=async(d,v,B)=>{var Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa;ar.value=(B==null?void 0:B.prop)??(B==null?void 0:B.property);const z=A.cloneDeep(u.itemData),P=((Xe=z==null?void 0:z.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Xe.contents)??[];let C=P==null?void 0:P.find((T,Y)=>{var $e,ta,xe;return(T==null?void 0:T.prop)===ar.value||(T==null?void 0:T.label)===ar.value||(Y==null?void 0:Y.toString())===((xe=(ta=($e=ar.value)==null?void 0:$e.split("a"))==null?void 0:ta[1])==null?void 0:xe.toString())});const le=de.getColumnChild((_a=A.cloneDeep(F.value))==null?void 0:_a.filter(T=>(T==null?void 0:T.label)!=="操作"));if(C||(C=le==null?void 0:le.find(T=>(T==null?void 0:T.prop)===ar.value||(T==null?void 0:T.label)===ar.value)),C&&!((Ia=C==null?void 0:C.menus)!=null&&Ia.length)&&!((za=C==null?void 0:C.groups)!=null&&za.length)&&!((Ze=C==null?void 0:C.words)!=null&&Ze.length)){const T=(Xa=La.value)==null?void 0:Xa.find(Y=>(Y==null?void 0:Y.prop)===ar.value);T&&(C={...C,menus:(T==null?void 0:T.menus)??(C==null?void 0:C.menus),groups:(T==null?void 0:T.groups)??(C==null?void 0:C.groups),words:(T==null?void 0:T.words)??(C==null?void 0:C.words),bindMenus:(T==null?void 0:T.bindMenus)??(C==null?void 0:C.bindMenus),isMainPath:(T==null?void 0:T.isMainPath)??(C==null?void 0:C.isMainPath),relatedContents:(T==null?void 0:T.relatedContents)??(C==null?void 0:C.relatedContents),endChildMenu:(T==null?void 0:T.endChildMenu)??(C==null?void 0:C.endChildMenu)})}if(C&&((xa=La==null?void 0:La.value)==null||xa.forEach(T=>{var Y,$e,ta,xe,fa;(T==null?void 0:T.prop)===(C==null?void 0:C.prop)&&(T!=null&&T.endChildMenu)&&((Y=C==null?void 0:C.prop)!=null&&Y.includes(".")&&((ta=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:ta[0])!==((fa=(xe=T==null?void 0:T.prop)==null?void 0:xe.split("."))==null?void 0:fa[0])?C.endChildMenu=T==null?void 0:T.value:C.endChildMenu=T==null?void 0:T.endChildMenu)})),!C)return;const ae=ar.value,q=(Za=Ae.value)==null?void 0:Za.findIndex(T=>(T==null?void 0:T.id)===(v==null?void 0:v.id));q!==-1&&ae&&(Ae.value[q]={...Ae.value[q],[ae]:d});const be=T=>{Array.isArray(T)&&T.forEach(Y=>{Array.isArray(Y==null?void 0:Y.allSelectionContents)&&Y.allSelectionContents.length>0&&(Y.contactValue=Ae.value[q]??v),Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&be(Y.children)})};be(F.value),C.value=d,C.endChildMenu=C.endChildMenu||"";let Ee=C!=null&&C.isMainPath&&(C!=null&&C.mainKey)?C==null?void 0:C.value:"";const Ge=T=>{Array.isArray(T)&&T.forEach(Y=>{var ta,xe;if(((Y==null?void 0:Y.type)==="Select"||(Y==null?void 0:Y.formType)&&Y.formType.toUpperCase()==="SELECT"||(Y==null?void 0:Y.columnType)&&Y.columnType.toUpperCase()==="SELECT")&&Array.isArray(Y==null?void 0:Y.menus)&&Y.menus.length>0&&Y.menus[Y.menus.length-1]===""&&(C!=null&&C.isMainPath)&&(C!=null&&C.mainKey)){const fa=(ta=Y==null?void 0:Y.prop)!=null&&ta.includes(".")?Y.prop.split(".")[0]:null,Ta=(xe=C==null?void 0:C.prop)!=null&&xe.includes(".")?C.prop.split(".")[0]:null;(!fa||!Ta||fa===Ta)&&(Y.endChildMenu=Ee)}Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&Ge(Y.children)})};if(Ge(F.value),!!(C!=null&&C.mainKey)&&Array.isArray(C==null?void 0:C.menus)&&(C==null?void 0:C.menus.length)>0&&(C!=null&&C.value)&&(C==null?void 0:C.value)!==""){let T=C!=null&&C.relatedContents&&((ye=C==null?void 0:C.relatedContents)==null?void 0:ye.length)>0?(Oa=C==null?void 0:C.relatedContents)==null?void 0:Oa.find(Y=>{var $e,ta,xe,fa;return(Y==null?void 0:Y[(fa=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:fa[((xe=(ta=C==null?void 0:C.prop)==null?void 0:ta.split("."))==null?void 0:xe.length)-1]])===(C==null?void 0:C.value)}):await us(C);if(T){const Y={...v};le==null||le.forEach($e=>{var ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl;($e==null?void 0:$e.prop)!==(C==null?void 0:C.prop)&&(C!=null&&C.relatedContents&&((ta=C==null?void 0:C.relatedContents)==null?void 0:ta.length)>0?(xe=$e==null?void 0:$e.prop)!=null&&xe.includes(".")&&((Ta=(fa=$e==null?void 0:$e.prop)==null?void 0:fa.split("."))==null?void 0:Ta[0])===((qa=(el=C==null?void 0:C.prop)==null?void 0:el.split("."))==null?void 0:qa[0])?Y[$e.prop]=T[(Ha=(pl=$e==null?void 0:$e.prop)==null?void 0:pl.split("."))==null?void 0:Ha[(($l=(fl=$e==null?void 0:$e.prop)==null?void 0:fl.split("."))==null?void 0:$l.length)-1]]??Y[$e.prop]:Y[$e.prop]=(T==null?void 0:T[$e.prop])??Y[$e.prop]:de.same((C==null?void 0:C.menus)??[],($e==null?void 0:$e.menus)??[])&&de.same((C==null?void 0:C.groups)??[],($e==null?void 0:$e.groups)??[])&&!de.same((C==null?void 0:C.words)??[],($e==null?void 0:$e.words)??[])?(yl=$e==null?void 0:$e.prop)!=null&&yl.includes(".")&&((ol=(Pa=$e==null?void 0:$e.prop)==null?void 0:Pa.split("."))==null?void 0:ol[0])!==((tl=(Ka=C==null?void 0:C.prop)==null?void 0:Ka.split("."))==null?void 0:tl[0])||(Y[$e.prop]=(T==null?void 0:T[(wl=$e==null?void 0:$e.words)==null?void 0:wl.join(".")])??(T==null?void 0:T[$e.prop])??Y[$e.prop]):(!($e!=null&&$e.isMainPath)&&de.same((C==null?void 0:C.bindMenus)??[],($e==null?void 0:$e.bindMenus)??[]),Y[$e.prop]=(T==null?void 0:T[$e.prop])??Y[$e.prop]))}),Ae.value=(ba=A.cloneDeep(Ae.value))==null?void 0:ba.map($e=>($e==null?void 0:$e.id)===(v==null?void 0:v.id)?{...Y,id:$e==null?void 0:$e.id}:$e)}}if((Ea=C==null?void 0:C.optionUrl)!=null&&Ea.menuSelect){let T="";le==null||le.forEach(ta=>{var xe,fa,Ta,el,qa;T===""&&((Ta=(fa=(xe=ta==null?void 0:ta.optionUrl)==null?void 0:xe.groupSelect)==null?void 0:fa[1])!=null&&Ta.includes("["))&&(T=(qa=(el=ta==null?void 0:ta.optionUrl)==null?void 0:el.groupSelect)==null?void 0:qa[1])});let Y=await yt(C),$e;if(Y==null||Y.forEach(ta=>{var xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl;T===((fa=(xe=C==null?void 0:C.optionUrl)==null?void 0:xe.groupSelect)==null?void 0:fa[1])&&((qa=(el=(Ta=C==null?void 0:C.optionUrl)==null?void 0:Ta.groupSelect)==null?void 0:el[1])!=null&&qa.includes("["))&&((yl=A.cloneDeep(ta))==null?void 0:yl[(Ha=($l=(fl=(pl=C==null?void 0:C.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:fl[1])==null?void 0:$l.replaceAll("[",""))==null?void 0:Ha.replaceAll("]","")])===(C==null?void 0:C.value)&&($e=ta)}),$e){const ta={...v};le==null||le.forEach(xe=>{var fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol;($e!=null&&$e[xe==null?void 0:xe.label]||$e!=null&&$e[(qa=(el=(Ta=(fa=xe==null?void 0:xe.optionUrl)==null?void 0:fa.groupSelect)==null?void 0:Ta[1])==null?void 0:el.replaceAll("[",""))==null?void 0:qa.replaceAll("]","")])&&(($l=(fl=(pl=xe==null?void 0:xe.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:fl[1])!=null&&$l.includes("["))&&(ta[xe.prop]=($e==null?void 0:$e[xe==null?void 0:xe.label])||($e==null?void 0:$e[(ol=(Pa=(yl=(Ha=xe==null?void 0:xe.optionUrl)==null?void 0:Ha.groupSelect)==null?void 0:yl[1])==null?void 0:Pa.replaceAll("[",""))==null?void 0:ol.replaceAll("]","")]))}),Ae.value=(Sa=A.cloneDeep(Ae.value))==null?void 0:Sa.map(xe=>(xe==null?void 0:xe.id)===(v==null?void 0:v.id)?{...ta,id:xe==null?void 0:xe.id}:xe)}}},pu=async d=>{var Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa,T;if(!d)return;const v=A.cloneDeep(Ql.value||{});Ql.value=d;const B=Vi(v),z=Vi(Ql.value);if(z&&z!==B&&await nt(z,Ca.value||void 0)){Ua.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),so.forEach($e=>{if(Object.prototype.hasOwnProperty.call(Ql.value||{},$e)||Object.prototype.hasOwnProperty.call(v||{},$e)){const ta=(v==null?void 0:v[$e])??"";Ql.value[$e]=ta,d[$e]=ta}}),La.value=(La.value||[]).map($e=>{if(!($e!=null&&$e.prop)||!so.includes($e.prop))return $e;const ta=(v==null?void 0:v[$e.prop])??"";return{...$e,value:ta,selectValue:ta===""?[]:[ta]}});return}let P=A.cloneDeep(u.itemData);P==null||P.map(Y=>{var $e,ta,xe,fa;return(Y==null?void 0:Y.key)==="header"&&(Array.isArray(($e=Y.contents)==null?void 0:$e[0])?Y.contents=(xe=de.getColumnChild((ta=Y.contents)==null?void 0:ta[0]))==null?void 0:xe.map((Ta,el)=>{var qa,pl,fl,$l,Ha,yl;return((fl=(pl=(qa=La.value)==null?void 0:qa.find(Pa=>(Pa==null?void 0:Pa.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:pl.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray(($l=Object.values(d))==null?void 0:$l[el])?Ta.value=[(Ha=Object.values(d))==null?void 0:Ha[el]]:Ta.value=(yl=Object.values(d))==null?void 0:yl[el],Ta}):Y.contents=(fa=Y.contents)==null?void 0:fa.map((Ta,el)=>{var qa,pl,fl,$l,Ha,yl;return((fl=(pl=(qa=La.value)==null?void 0:qa.find(Pa=>(Pa==null?void 0:Pa.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:pl.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray(($l=Object.values(d))==null?void 0:$l[el])?Ta.value=[(Ha=Object.values(d))==null?void 0:Ha[el]]:Ta.value=(yl=Object.values(d))==null?void 0:yl[el],Ta})),Y});let C=La.value,le=(Xe=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Xe.contents;if(ar.value||(C=C==null?void 0:C.map(Y=>{var $e;return Y.value=Y.value??(($e=le==null?void 0:le.find((ta,xe)=>(ta==null?void 0:ta.prop)===(Y==null?void 0:Y.name)))==null?void 0:$e.value),Y})),!Br.value)return;let ae=A.cloneDeep(ar.value);(_a=ar.value)!=null&&_a.includes("·")&&(ar.value=(za=(Ia=ar.value)==null?void 0:Ia.split("·"))==null?void 0:za[0]);let q=(Xa=(Ze=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ze.contents)==null?void 0:Xa.find((Y,$e)=>(Y==null?void 0:Y.prop)===ar.value);(xa=La==null?void 0:La.value)==null||xa.forEach(Y=>{var $e,ta,xe,fa,Ta,el,qa,pl,fl;(Y==null?void 0:Y.prop)===(q==null?void 0:q.prop)&&(Y!=null&&Y.endChildMenu)&&(($e=q==null?void 0:q.prop)!=null&&$e.includes(".")&&((xe=(ta=q==null?void 0:q.prop)==null?void 0:ta.split("."))==null?void 0:xe[0])!==((Ta=(fa=Y==null?void 0:Y.prop)==null?void 0:fa.split("."))==null?void 0:Ta[0])?q.endChildMenu=(qa=(el=Y==null?void 0:Y.value)==null?void 0:el.split(" "))==null?void 0:qa[0]:q.endChildMenu=(fl=(pl=Y==null?void 0:Y.endChildMenu)==null?void 0:pl.split(" "))==null?void 0:fl[0])});let be=q!=null&&q.isMainPath&&(q!=null&&q.mainKey)?q==null?void 0:q.value:"",Ee=C,Ge=Z.value;if(Ge!=null&&Ge.find(Y=>(q==null?void 0:q.prop)===(Y==null?void 0:Y.key))&&(Ge=Ge==null?void 0:Ge.filter(Y=>(q==null?void 0:q.prop)!==(Y==null?void 0:Y.key))),Ge!=null&&Ge.find(Y=>ae===(Y==null?void 0:Y.key))&&(Ge=Ge==null?void 0:Ge.filter(Y=>ae!==(Y==null?void 0:Y.key))),(q==null?void 0:q.formType)==="Select"?Ee=Ee==null?void 0:Ee.map(Y=>{var $e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl;return(Y==null?void 0:Y.type)==="Select"&&((($e=Y==null?void 0:Y.allSelectionContents)==null?void 0:$e.length)>0&&(Y.contactValue=d),((q==null?void 0:q.prop)===(Y==null?void 0:Y.prop)||ae===(Y==null?void 0:Y.prop))&&q&&(Array.isArray(q.value)&&((ta=q.value)==null?void 0:ta.length)>0&&((xe=q.value)!=null&&xe.every(wl=>typeof wl=="string"))?(Ge.push({key:Y==null?void 0:Y.prop,value:[(Ta=q.value)==null?void 0:Ta[((fa=q.value)==null?void 0:fa.length)-1]]}),Y.selectValue=(el=Ge==null?void 0:Ge.find(wl=>(wl==null?void 0:wl.key)===(Y==null?void 0:Y.prop)))==null?void 0:el.value):Array.isArray(q.value)&&((qa=q.value)==null?void 0:qa.length)===0?(Ge=[],Y.selectValue=[],d[Y==null?void 0:Y.prop]=""):Array.isArray(Y.value)&&Ge.push({key:Y==null?void 0:Y.prop,value:[(pl=Y.value)==null?void 0:pl[(Y==null?void 0:Y.length)-1]]})),(($l=Y==null?void 0:Y.menus)==null?void 0:$l[((fl=Y==null?void 0:Y.menus)==null?void 0:fl.length)-1])===""&&(q!=null&&q.isMainPath)&&(q!=null&&q.mainKey)&&((Ha=Y==null?void 0:Y.prop)!=null&&Ha.includes(".")&&((Pa=(yl=Y==null?void 0:Y.prop)==null?void 0:yl.split("."))==null?void 0:Pa[0])!==((Ka=(ol=q==null?void 0:q.prop)==null?void 0:ol.split("."))==null?void 0:Ka[0])||(Y.endChildMenu=(tl=be==null?void 0:be.split(" "))==null?void 0:tl[0]))),Y.value=(d==null?void 0:d[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y}):(q==null?void 0:q.formType)!=="Input"&&(Ee=Ee==null?void 0:Ee.map(Y=>(Y.value=(d==null?void 0:d[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y))),Z.value=Ge,Ee!=null&&Ee.some(Y=>(Y==null?void 0:Y.functionName)&&(Y==null?void 0:Y.functionName)!=="")){let Y=await vt([d],F==null?void 0:F.value,"Auto",Ae.value),$e=[];(Za=Ee==null?void 0:Ee.filter(xe=>(xe==null?void 0:xe.functionName)&&(xe==null?void 0:xe.functionName)!==""))==null||Za.forEach(xe=>{var fa;((fa=xe==null?void 0:xe.functionRelatedWords)==null?void 0:fa.length)>0&&($e=[...$e,...xe==null?void 0:xe.functionRelatedWords])}),$e=$e==null?void 0:$e.filter(xe=>(xe==null?void 0:xe[0])!=="@");let ta=[];for(let xe in Y==null?void 0:Y[0])$e!=null&&$e.find(fa=>xe===fa||(xe==null?void 0:xe.includes("."+fa)))&&ta.push(((ye=Y==null?void 0:Y[0])==null?void 0:ye[xe])!=="");(Y==null?void 0:Y.length)>0&&ta.every(xe=>xe)&&(Ee=Ee==null?void 0:Ee.map(xe=>{var fa;return xe.value=((fa=Y==null?void 0:Y[0])==null?void 0:fa[xe==null?void 0:xe.prop])??xe.value,xe})),Ql.value=Y==null?void 0:Y[0]}if(La.value=Ee,q=Object.assign({},q??{},{relatedWords:(ba=(Oa=La==null?void 0:La.value)==null?void 0:Oa.find(Y=>(Y==null?void 0:Y.prop)===(q==null?void 0:q.prop)))==null?void 0:ba.relatedWords}),(q==null?void 0:q.mainKey)&&(q!=null&&q.value)&&(q==null?void 0:q.value)!==""){let Y=q!=null&&q.relatedContents&&((Ea=q==null?void 0:q.relatedContents)==null?void 0:Ea.length)>0?(Sa=q==null?void 0:q.relatedContents)==null?void 0:Sa.find($e=>{var ta,xe,fa,Ta;return($e==null?void 0:$e[(Ta=(ta=q==null?void 0:q.prop)==null?void 0:ta.split("."))==null?void 0:Ta[((fa=(xe=q==null?void 0:q.prop)==null?void 0:xe.split("."))==null?void 0:fa.length)-1]])===(q==null?void 0:q.value)}):await us(q);if(Y&&JSON.stringify(Y)!=="{}"){let $e=Ee;$e=$e==null?void 0:$e.map(xe=>{var fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl,Dl,Cr,Rl,bl,Al,Xl,Nl;if((q==null?void 0:q.prop)===(xe==null?void 0:xe.prop))xe.value=(Y==null?void 0:Y[(fa=xe==null?void 0:xe.words)==null?void 0:fa.join(".")])??(Y==null?void 0:Y[xe==null?void 0:xe.prop])??Y[(pl=(Ta=xe==null?void 0:xe.prop)==null?void 0:Ta.split("."))==null?void 0:pl[((qa=(el=xe==null?void 0:xe.prop)==null?void 0:el.split("."))==null?void 0:qa.length)-1]];else if(q!=null&&q.relatedContents&&((fl=q==null?void 0:q.relatedContents)==null?void 0:fl.length)>0)xe.value=($l=xe==null?void 0:xe.prop)!=null&&$l.includes(".")&&((yl=(Ha=xe==null?void 0:xe.prop)==null?void 0:Ha.split("."))==null?void 0:yl[0])===((ol=(Pa=q==null?void 0:q.prop)==null?void 0:Pa.split("."))==null?void 0:ol[0])?Y[(Dl=(Ka=xe==null?void 0:xe.prop)==null?void 0:Ka.split("."))==null?void 0:Dl[((wl=(tl=xe==null?void 0:xe.prop)==null?void 0:tl.split("."))==null?void 0:wl.length)-1]]:(Y==null?void 0:Y[xe==null?void 0:xe.prop])??(xe==null?void 0:xe.value);else if(de.same((q==null?void 0:q.menus)??[],(xe==null?void 0:xe.menus)??[])&&de.same((q==null?void 0:q.groups)??[],(xe==null?void 0:xe.groups)??[])&&!de.same((q==null?void 0:q.words)??[],(xe==null?void 0:xe.words)??[]))if((Cr=xe==null?void 0:xe.prop)!=null&&Cr.includes(".")&&((bl=(Rl=xe==null?void 0:xe.prop)==null?void 0:Rl.split("."))==null?void 0:bl[0])!==((Xl=(Al=q==null?void 0:q.prop)==null?void 0:Al.split("."))==null?void 0:Xl[0])){let Yl=Object.keys(Y);Yl=Yl==null?void 0:Yl.find(tr=>{var Wl;return tr==null?void 0:tr.includes("."+((Wl=xe==null?void 0:xe.words)==null?void 0:Wl.join(".")))}),xe.value=(Y==null?void 0:Y[Yl])??(Y==null?void 0:Y[xe==null?void 0:xe.prop])??xe.value}else{let Yl=Object.keys(Y);Yl=Yl==null?void 0:Yl.find(tr=>{var Wl;return tr==null?void 0:tr.includes("."+((Wl=xe==null?void 0:xe.words)==null?void 0:Wl.join(".")))}),xe.value=(Y==null?void 0:Y[(Nl=xe==null?void 0:xe.words)==null?void 0:Nl.join(".")])??(Y==null?void 0:Y[Yl])??(Y==null?void 0:Y[xe==null?void 0:xe.prop])??xe.value}else!(xe!=null&&xe.isMainPath)&&de.same((q==null?void 0:q.bindMenus)??[],(xe==null?void 0:xe.bindMenus)??[]),xe.value=(Y==null?void 0:Y[xe==null?void 0:xe.prop])??xe.value;return xe}),La.value=$e;let ta={};(T=La.value)==null||T.forEach(xe=>{ta[xe.prop]=xe==null?void 0:xe.value}),Ql.value=ta}}Br.value=!0,I.value=!1},fu=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",hu=d=>{var C,le;const v=(le=(C=Qe.value)==null?void 0:C.find(ae=>(ae==null?void 0:ae.label)===(d==null?void 0:d.label)))==null?void 0:le.multiple,B=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ae.value.forEach(ae=>{const q=ae==null?void 0:ae[B];v&&Eo.isString(q)&&(ae[B]=[q]),!v&&!Eo.isString(q)&&(ae[B]="")})},It=(d,v)=>{var B;return v==null||v.forEach(z=>{d[z==null?void 0:z.prop]=z==null?void 0:z.value}),d.children&&((B=d.children)==null?void 0:B.length)>0&&(d.children=d.children.map(z=>It(z,v))),d},it=d=>{var B,z,P,C,le,ae;$i("");const v=(B=La.value)==null?void 0:B.reduce((q,be)=>(q[be.name]=be.value,q),{});if(((z=Object.keys(v))==null?void 0:z.length)>0){Ql.value=v,Ca.value="",$a.value=(P=Ae.value)==null?void 0:P.length,ke.value=(C=da.value)==null?void 0:C.filter(be=>(be==null?void 0:be.label)!=="新增");const q=(ae=(le=Be.value)==null?void 0:le.filter(be=>(be==null?void 0:be.label)!=="操作"))==null?void 0:ae.map(be=>{var Ge,Pe,Xe;const Ee=(Pe=(Ge=Qe.value)==null?void 0:Ge.find(_a=>(_a==null?void 0:_a.label)===(be==null?void 0:be.label)))==null?void 0:Pe.multiple;return hu(be),{...be,contents:(be==null?void 0:be.options)??[],optionUrl:be!=null&&be.formMenuSelect&&((Xe=be==null?void 0:be.formMenuSelect)==null?void 0:Xe.length)>0?{groupSelect:be==null?void 0:be.groupSelect,menuSelect:be==null?void 0:be.formMenuSelect,selectRelateType:"",type:be==null?void 0:be.formType,multiple:Ee}:null}});F.value=q==null?void 0:q.map(be=>It(be,[{prop:"type",value:"edit"},{prop:"columnType",value:fu(be==null?void 0:be.formType)||(be==null?void 0:be.columnType)}])),d==="createClick"&&(W.value="新增",Pi(!0))}},vi={START:"开始时间",END:"结束时间",HOURS:"工时"},vu=(d,v)=>Number(A.dayjs(v).diff(A.dayjs(d),"day",!0).toFixed(1)),Ot=d=>{var C;const v=u.itemData,B=(C=v==null?void 0:v.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:C.contents,z=new Map;return B==null||B.forEach((le,ae)=>{const{label:q}=le;z.set(q,ae)}),!z.has(vi.START)||!z.has(vi.END)||!z.has(vi.HOURS)?d:d==null?void 0:d.map(le=>{const ae=le==null?void 0:le[vi.START],q=le==null?void 0:le[vi.END],be=vu(ae,q);return ae&&q&&(le[vi.HOURS]=`${be}天`),le})},Lt=(d,v,B=0)=>{if(B>((v==null?void 0:v.length)??""))return d;const z=v==null?void 0:v[B],P=new Map;for(const le of d){const ae=le[z];P.has(ae)||P.set(ae,[]),P.get(ae)&&P.get(ae).push(le)}const C=[];for(const[le,ae]of P){const[q,...be]=ae,Ee={...q};B+1===((v==null?void 0:v.length)??"")?Ee.children=ae==null?void 0:ae.map(Ge=>(Ge.level=A.cloneDeep(B)+1,Ge)).filter((Ge,Pe)=>Pe!==0):be.length>0&&(Ee.children=Lt(be,v,B+1)),Ee.level=B,C.push(Ee)}return C},Rt=(d,v,B)=>{var P;if(!(v!=null&&v.contents)||((P=v==null?void 0:v.contents)==null?void 0:P.length)===0)return d;let z=[];return z=Lt(d,v==null?void 0:v.contents,0),z},$t=async(d,v)=>{var za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa,T,Y,$e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl,Dl,Cr,Rl,bl,Al,Xl,Nl,Yl,tr,Wl,yr,Gr,gr,dr,mr,Pt,Ft,jt;const B=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="header");d==null||d.filter(ha=>(ha==null?void 0:ha.key)==="tableIndexColumn")[0];const z=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="childTree")[0];let P=!0;if((Xa=(Ze=(za=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:za.value)==null?void 0:Ze.find(ha=>(ha==null?void 0:ha.value)==="onPamButtonContents"))!=null&&Xa.content){let ha=(ye=(Za=(xa=d==null?void 0:d.find(_l=>(_l==null?void 0:_l.key)==="filterAllType"))==null?void 0:xa.value)==null?void 0:Za.find(_l=>(_l==null?void 0:_l.value)==="onPamButtonContents"))==null?void 0:ye.content;ha=(Oa=ha==null?void 0:ha.split(":"))==null?void 0:Oa[1],ha=(ba=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:ba.split(","),P=!!(ha!=null&&ha.find(_l=>_l==="操作"))}const C=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="page"),le=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="rowButton"),ae=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="extraButton"),q=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableContents"),be=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="bottomButton"),Ee=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableIndex");Qe.value=(Sa=(Ea=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableToForm"))==null?void 0:Ea[0])==null?void 0:Sa.contents,va.value=(C==null?void 0:C.contents)??!0;let Ge=[];vr.value===""?Ge=B==null?void 0:B[0]:Ge=(B==null?void 0:B.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+vr.value+")"))??(B==null?void 0:B.find(ha=>!(ha!=null&&ha.selectLabel)));let Pe=[];vr.value===""?Pe=Ee==null?void 0:Ee[0]:Pe=(Ee==null?void 0:Ee.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+vr.value+")"))??(Ee==null?void 0:Ee.find(ha=>!(ha!=null&&ha.selectLabel)));let Xe=[],_a=[];if(((T=Ge==null?void 0:Ge.contents)==null?void 0:T.length)>0){let ha=[],_l=Ge==null?void 0:Ge.contents;if(Array.isArray(_l==null?void 0:_l[0])&&((Y=_l==null?void 0:_l[0])!=null&&Y.every(Ga=>!(Ga!=null&&Ga.children)))&&(_l=_l==null?void 0:_l[0]),_l.some(Ga=>Array.isArray(Ga)&&(Ga==null?void 0:Ga.find(Ye=>Ye.children))))ha=($e=de.getGradeColumns(_l,P))==null?void 0:$e[0],ha!=null&&ha.find(Ga=>(Ga==null?void 0:Ga.label)==="操作")||ha.push({label:"操作",prop:"operate",type:"operate"});else{let Ga=_l.some(Ye=>Array.isArray(Ye))?_l==null?void 0:_l[0]:_l;Ga!=null&&Ga.find(Ye=>(Ye==null?void 0:Ye.label)==="操作")||Ga.push({label:"操作",prop:"operate",type:"operate"}),Ga==null||Ga.forEach((Ye,lr)=>{var Or,Fr,Ar,ai,gi,bi,Sr,En,$n,ki,on,Vn,Wt,Kt,Gt,Yt,Jt,Xt,Zt,Qt,es;if((Fr=(Or=Se.value)==null?void 0:Or.split("/"))==null||Fr.forEach(sr=>{var br,Bn,as;sr!==""&&((as=(Bn=(br=sr==null?void 0:sr.split(_+"updateLoading"))==null?void 0:br[0])==null?void 0:Bn.split(_+"loading"))==null||as[0])}),Ye!=null&&Ye.methodContent){let sr=(gi=(ai=(Ar=Ye==null?void 0:Ye.methodContent)==null?void 0:Ar.replace("@","%%#"))==null?void 0:ai.split("%%#"))==null?void 0:gi[1];if(sr=sr==null?void 0:sr.slice(0,(sr==null?void 0:sr.length)-1),sr=de.contentTransArrayToAllNoExtra(sr??"",","),(bi=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("@Button")))!=null&&bi.includes("Prop")&&((Sr=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("Type")))!=null&&Sr.includes("Manual"))){let br=($n=(En=sr==null?void 0:sr.find(Bn=>Bn==null?void 0:Bn.includes("@Button")))==null?void 0:En.split(":"))==null?void 0:$n[1];br=((Vn=(on=(ki=br==null?void 0:br.replaceAll("[",""))==null?void 0:ki.replaceAll("]",""))==null?void 0:on.split(","))==null?void 0:Vn[1])??"算法执行",Xe.push(br)}else if((Wt=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("@Button")))!=null&&Wt.includes("Row")&&((Kt=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("Type")))!=null&&Kt.includes("Manual"))){let br=(Yt=(Gt=sr==null?void 0:sr.find(Bn=>Bn==null?void 0:Bn.includes("@Button")))==null?void 0:Gt.split(":"))==null?void 0:Yt[1];br=((Zt=(Xt=(Jt=br==null?void 0:br.replaceAll("[",""))==null?void 0:Jt.replaceAll("]",""))==null?void 0:Xt.split(","))==null?void 0:Zt[1])??"算法执行",_a.push(br)}}(Qt=Qe.value)==null||Qt.find(sr=>(sr==null?void 0:sr.prop)===(Ye==null?void 0:Ye.prop));let Hr=((es=Ye==null?void 0:Ye.filter)==null?void 0:es.includes("@EditRead=Read"))??!1;ha.push({label:(Ye==null?void 0:Ye.label)==="操作"?P?"操作":"":(Ye==null?void 0:Ye.label)??"",prop:(Ye==null?void 0:Ye.label)==="操作"?"operate":(Ye==null?void 0:Ye.prop)??"a"+lr,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)??lr,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)??lr===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,multiple:(Ye==null?void 0:Ye.multiple)??!1,multipleLimit:Ye==null?void 0:Ye.multipleLimit,isReadonly:Hr})})}H.value=(ta=be==null?void 0:be[0])==null?void 0:ta.contents;const un=de.getNewColumnChild(ha),Ht=Ga=>Array.isArray(Ga)?Ga.map(Ye=>(Array.isArray(Ye==null?void 0:Ye.children)&&Ye.children.length>0?(Ye.sortable=!1,Ht(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)):Ga;Ht(un),await eo(un),r0(te.value,un),F.value=un,Ba.value=un,n.value=(xe=F.value)==null?void 0:xe.map(Ga=>Ga==null?void 0:Ga.label);let dn=(Ta=(fa=de.getAllLeafNodes(F.value))==null?void 0:fa.filter(Ga=>(Ga==null?void 0:Ga.type)!=="operate"))==null?void 0:Ta.map((Ga,Ye)=>({prop:(Ga==null?void 0:Ga.prop)??"a"+Ye,column:Ga.label}));_r.value=dn;let nn=[];vr.value===""?nn=q==null?void 0:q[0]:nn=(q==null?void 0:q.find(Ga=>(Ga==null?void 0:Ga.selectLabel)==="("+vr.value+")"))??(q==null?void 0:q.find(Ga=>!(Ga!=null&&Ga.selectLabel)));let ei=Array.isArray((el=nn==null?void 0:nn.contents)==null?void 0:el[0])&&((qa=nn==null?void 0:nn.contents)!=null&&qa[0].every(Ga=>Array.isArray(Ga)))?(pl=nn==null?void 0:nn.contents)==null?void 0:pl[0]:nn==null?void 0:nn.contents;Pe!=null&&Pe.contents&&((fl=Pe==null?void 0:Pe.contents)==null?void 0:fl.length)!==0&&(ei=($l=A.cloneDeep(ei))==null?void 0:$l.map((Ga,Ye)=>{if(!Array.isArray(Ga)){let lr={};for(let Hr in Ga)Hr!=="id"&&Hr!=="index"&&(lr[Hr]=Ga[Hr]);Ga=Object.values(lr)}return Ga}));const Bu=!!((Ha=F.value)!=null&&Ha.find(Ga=>Ga.prop==="index"));ei=uc(ei,Pe==null?void 0:Pe.contents,Bu);const mi=[];ei==null||ei.forEach((Ga,Ye)=>{var Hr;let lr={};if(Array.isArray(Ga)){let Or=[];Ga==null||Ga.filter(Fr=>!(Fr!=null&&Fr.id)).forEach((Fr,Ar)=>{var ai,gi,bi,Sr,En,$n;if((ai=dn==null?void 0:dn[Ar])!=null&&ai.prop&&!Array.isArray(Fr)){let ki={};ki[dn[Ar].column]=Fr,R!=null&&R.value&&((gi=R==null?void 0:R.value)==null?void 0:gi.length)>0&&((bi=R==null?void 0:R.value)!=null&&bi.find(on=>JSON.stringify(on==null?void 0:on[0])===JSON.stringify(ki)))&&(Or=(Sr=R==null?void 0:R.value)==null?void 0:Sr.find(on=>JSON.stringify(on==null?void 0:on[0])===JSON.stringify(ki))),Or&&Or.length>0?lr[dn[Ar].prop]=Or!=null&&Or.find(on=>{var Vn;return((Vn=Object.keys(on))==null?void 0:Vn[0])===dn[Ar].column})?(En=Or==null?void 0:Or.find(on=>{var Vn;return((Vn=Object.keys(on))==null?void 0:Vn[0])===dn[Ar].column}))==null?void 0:En[dn[Ar].column]:Fr:lr[dn[Ar].prop]=Fr}else Array.isArray(Fr)&&(($n=dn[Ar])!=null&&$n.prop?lr[dn[Ar].prop]=Fr:lr.children=mt(Fr,dn))})}else lr=Ga;if(Array.isArray(Ga)&&Ga.some(Or=>Or==null?void 0:Or.id)){const Or=(Hr=Ga==null?void 0:Ga.find(Fr=>Fr.id))==null?void 0:Hr.id;mi.push(Object.assign(lr,{id:io(Or)}))}else lr.id?mi.push(lr):mi.push(Object.assign(lr,{id:Ye.toString()}))});try{const Ga=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ye=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),lr=Ga==null?void 0:Ga.tableId,Hr=Ga==null?void 0:Ga.compIndex;if(lr&&Array.isArray(Ye)&&Ye.length>0&&String(lr)===String(u==null?void 0:u.parentTableId)&&String(Hr)===String(u==null?void 0:u.index)){const Or=new Set(mi.map(Ar=>String(Ar==null?void 0:Ar.id))),Fr=Ye.filter(Ar=>!Or.has(String(Ar)));if(Fr.length>0){const Ar=Ga==null?void 0:Ga.pageKey,ai=Ar!=null&&Ar.startsWith("/")?Ar.substring(1):Ar;((v==null?void 0:v[Ar])||(v==null?void 0:v[ai])||[]).filter(Sr=>{var En,$n;return((En=Sr==null?void 0:Sr.key)==null?void 0:En.type)==="data"&&String(($n=Sr==null?void 0:Sr.key)==null?void 0:$n.tableId)===String(lr)&&Fr.includes(Sr==null?void 0:Sr.id)}).forEach(Sr=>{var En;Or.has(String(Sr==null?void 0:Sr.id))||(mi.push({id:Sr==null?void 0:Sr.id,...((En=Sr==null?void 0:Sr.value)==null?void 0:En.tableData)||{}}),Or.add(String(Sr==null?void 0:Sr.id)))})}}}catch{}let yi=null;try{const Ga=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,Ye=JSON.parse(sessionStorage.getItem(Ga)||"null");Array.isArray(Ye)&&Ye.length>0&&(yi=new Set(Ye.map(lr=>String(lr))))}catch{}const Ut=Array.from(((yl=Na.value)==null?void 0:yl.values())||[]).filter(Ga=>!(!(Ga!=null&&Ga._isOCRRow&&(Ga==null?void 0:Ga._ocrTableId)===(u==null?void 0:u.index))||yi&&yi.has(String(Ga==null?void 0:Ga.id)))),Tu=(Ae.value||[]).map(Ga=>String(Ga==null?void 0:Ga.id)),qt=ui(mi,Tu);if(Ae.value=Rt(qt,z,F.value),Je.value=qt,(Pa=Je.value)==null||Pa.forEach(Ga=>{var Ye;(Ye=Na.value)==null||Ye.set(Ga.id,Ga)}),yi&&yi.size>0)try{const Ga=new Set(Array.from(yi.values()));Ae.value=(Ae.value||[]).filter(Ye=>!Ga.has(String(Ye==null?void 0:Ye.id))),Je.value=(Je.value||[]).filter(Ye=>!Ga.has(String(Ye==null?void 0:Ye.id))),Ga.forEach(Ye=>{var lr,Hr;try{(Hr=(lr=Na.value)==null?void 0:lr.delete)==null||Hr.call(lr,Ye)}catch{}})}catch{}const uo=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ot=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(uo&&Array.isArray(ot)&&ot.length>0&&String(uo==null?void 0:uo.compIndex)===String(u==null?void 0:u.index)){const Ga=new Set((Je.value||[]).map(Ye=>String(Ye==null?void 0:Ye.id)));ot.filter(Ye=>!Ga.has(String(Ye)))}if(Ut.length>0){const Ga=new Set((Ae.value||[]).map(lr=>lr==null?void 0:lr.id)),Ye=Ut.filter(lr=>!Ga.has(lr.id));Ye.length>0&&(Ae.value=[...Ae.value||[],...Ye],Je.value=[...Je.value||[],...Ye],Ye.forEach(lr=>{var Hr;return(Hr=Na.value)==null?void 0:Hr.set(lr.id,lr)}))}}else F.value=[],Be.value=[],Ae.value=[],Je.value=[],Na.value=new Map;if(_a=[...new Set(_a)],_a=_a==null?void 0:_a.map(ha=>({label:ha,type:"methodButton"})),((ol=le==null?void 0:le.contents)==null?void 0:ol.length)>0?He.value=le==null?void 0:le.contents:He.value=[],He.value=[...He.value,..._a],Xe=[...new Set(Xe)],Xe=Xe==null?void 0:Xe.map(ha=>({label:ha,type:"methodButton"})),((Ka=ae==null?void 0:ae.contents)==null?void 0:Ka.length)>0)if((Dl=(wl=(tl=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:tl.value)==null?void 0:wl.find(ha=>(ha==null?void 0:ha.value)==="onButtonContents"))!=null&&Dl.content){let ha=(bl=(Rl=(Cr=d==null?void 0:d.find(_l=>(_l==null?void 0:_l.key)==="filterAllType"))==null?void 0:Cr.value)==null?void 0:Rl.find(_l=>(_l==null?void 0:_l.value)==="onButtonContents"))==null?void 0:bl.content;if(ha=(Al=ha==null?void 0:ha.split(":"))==null?void 0:Al[1],ha=(Xl=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:Xl.split(","),ke.value=(Nl=ae==null?void 0:ae.contents)==null?void 0:Nl.filter(_l=>ha==null?void 0:ha.find(un=>un===(_l==null?void 0:_l.label))),da.value=(Yl=ae==null?void 0:ae.contents)==null?void 0:Yl.filter(_l=>ha==null?void 0:ha.find(un=>un===(_l==null?void 0:_l.label))),(tr=ae==null?void 0:ae.contents)!=null&&tr.some(_l=>(_l==null?void 0:_l.label)==="OCR识别")&&!((Wl=ke.value)!=null&&Wl.some(_l=>(_l==null?void 0:_l.label)==="OCR识别"))){const _l=(yr=ae==null?void 0:ae.contents)==null?void 0:yr.find(un=>(un==null?void 0:un.label)==="OCR识别");ke.value=[...ke.value,_l],da.value=[...da.value,_l]}K.value=!!(ha!=null&&ha.find(_l=>_l==="搜索")),V.value=!!(ha!=null&&ha.find(_l=>_l==="块状显示"))}else ke.value=ae==null?void 0:ae.contents,da.value=ae==null?void 0:ae.contents;else ke.value=[],da.value=[];ke.value=[...ke.value,...Xe],da.value=[...da.value,...Xe],typeof Se.value=="string"&&Se.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?((Gr=ke.value)!=null&&Gr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(ke.value=[...ke.value||[],{label:"OCR识别"}]),(gr=da.value)!=null&&gr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(da.value=[...da.value||[],{label:"OCR识别"}])):(ke.value=(ke.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别"),da.value=(da.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别")),(dr=ke.value)!=null&&dr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(ke.value=[...ke.value||[],{label:"切换视图"}]),(mr=da.value)!=null&&mr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(da.value=[...da.value||[],{label:"切换视图"}]),$a.value=((Pt=Ae==null?void 0:Ae.value)==null?void 0:Pt.length)??0,Ot(Ae.value),Ir.value=Ae.value,Ll.value&&(F.value=(jt=(Ft=Be.value)==null?void 0:Ft.filter(ha=>(ha==null?void 0:ha.label)!=="操作"))==null?void 0:jt.map(ha=>{var _l;return{...ha,type:"edit",optionUrl:ha!=null&&ha.formMenuSelect&&((_l=ha==null?void 0:ha.formMenuSelect)==null?void 0:_l.length)>0?{groupSelect:ha==null?void 0:ha.groupSelect,menuSelect:ha==null?void 0:ha.formMenuSelect,selectRelateType:"",type:ha==null?void 0:ha.formType}:null}}),it())};e.watch(()=>[u.itemData,vr.value,tn.value,mn.value,R==null?void 0:R.value],async()=>{var d,v,B,z,P,C;if((d=u==null?void 0:u.itemData)!=null&&d.find(le=>(le==null?void 0:le.key)==="columnPath")&&!((v=J.value)!=null&&v.find(le=>{var ae,q;return(le==null?void 0:le.key)===((q=(ae=u==null?void 0:u.itemData)==null?void 0:ae.find(be=>(be==null?void 0:be.key)==="columnPath"))==null?void 0:q.contents)}))){let le=J.value,ae={key:(z=(B=u==null?void 0:u.itemData)==null?void 0:B.find(q=>(q==null?void 0:q.key)==="columnPath"))==null?void 0:z.contents,value:(C=(P=u==null?void 0:u.itemData)==null?void 0:P.find(q=>(q==null?void 0:q.key)==="columnUsingPath"))==null?void 0:C.contents};le!=null&&le.find(q=>(q==null?void 0:q.key)===(ae==null?void 0:ae.key))?le=le==null?void 0:le.map(q=>((q==null?void 0:q.key)===(ae==null?void 0:ae.key)&&(q.value=ae.value),q)):le.push(ae),ca.setTableViewContents(le)}await $t(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&($i(d==null?void 0:d.form),W.value=d==null?void 0:d.dialogTitle,qe.value=!0,Te.value=!0)},{immediate:!0,deep:!0});const mu=()=>{var d;(d=k.value)!=null&&d.includes("read")&&(Ll.value=!Ll.value)},yu=()=>{xr.value=!xr.value};e.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var v;k.value=d,(d==null?void 0:d.length)===0?Ll.value=!1:(d!=null&&d.includes("read")||(Ll.value=!0),d!=null&&d.includes("edit")||(Ll.value=!1)),M.value=((v=u==null?void 0:u.config)==null?void 0:v.showIndex)||Ll.value},{immediate:!0}),e.watch(()=>Ll.value,d=>{var v;d?(it("viewChange"),ca.setCacheUpdatingData(null)):(ke.value=da.value,F.value=Ba.value,j.value&&(ca.setTableLoading(u==null?void 0:u.index),Me("change",j.value))),M.value=d||((v=u==null?void 0:u.config)==null?void 0:v.showIndex),Sl.value=[]},{immediate:!0}),e.watch(()=>{var d;return(d=yn.value)==null?void 0:d.length},d=>{d===0&&(me.currentPage=1)}),e.watch(()=>u==null?void 0:u.compNames,d=>{f.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),e.ref(!1);const gu=(d,v)=>{var B;it("createClick"),v===me.pageSize&&(me.currentPage=Math.ceil(((B=Ae.value)==null?void 0:B.length)/me.pageSize))},bu=async(d,v,B)=>{var P,C,le,ae,q;const z=(v==null?void 0:v.property)??(v==null?void 0:v.prop);if(z&&so.includes(z)&&B!==void 0&&B!==null&&String(B).trim()!==""){const be=String(B).trim();if(await nt(be,d==null?void 0:d.id)){Ua.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Ge=(P=Ae.value)==null?void 0:P.findIndex(Xe=>(Xe==null?void 0:Xe.id)===(d==null?void 0:d.id)),Pe=Ge!==-1?(le=(C=Ae.value)==null?void 0:C[Ge])==null?void 0:le[z]:void 0;z&&(d[z]=Pe??"");return}}if(Ll.value){const be=d==null?void 0:d.id;be!=null&&(h.value.has(be)||h.value.set(be,A.cloneDeep(d)),s.value.add(be));const Ee=(ae=Ae.value)==null?void 0:ae.findIndex(Ge=>(Ge==null?void 0:Ge.id)===(d==null?void 0:d.id));Ee!==-1&&z&&(Ae.value[Ee]={...Ae.value[Ee],[z]:B}),co(B,d,v);return}co(B,d,v),Ql.value=A.cloneDeep(d),Ca.value=d==null?void 0:d.id,$a.value=(q=Ae.value)==null?void 0:q.length,W.value=d!=null&&d._isTemp?"新增":"编辑",Pi(!1)},ku=async()=>{var d,v;try{const B=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const P=z.split("_")[1];P&&(B.push(`content_${P}`),B.push(`struct_${P}`))}})),B.length===0&&(u!=null&&u.itemData)){const z=(v=(d=u.itemData)==null?void 0:d.find(P=>(P==null?void 0:P.key)==="contentTableId"))==null?void 0:v.contents;z&&(B.push(`content_${z}`),B.push(`struct_${z}`))}return B}catch(B){return console.error("获取 tableNames 失败:",B),[]}},xu=async(d,v,B)=>{var C,le;if(!B||typeof B!="string"||B.trim()===""){const ae=(v==null?void 0:v.property)??(v==null?void 0:v.prop),q=`${d==null?void 0:d.id}:${ae}`;p.value.delete(q),g.value.set(q,!1);return}const z=(v==null?void 0:v.property)??(v==null?void 0:v.prop),P=`${d==null?void 0:d.id}:${z}`;g.value.set(P,!0);try{const ae=await ku();if(ae.length===0){console.warn("未找到同名表,跳过全局搜索"),p.value.delete(P),g.value.set(P,!1);return}const q=parseInt((C=hl.value)==null?void 0:C.plat_id);if(!q){console.warn("platId 无效,跳过全局搜索"),p.value.delete(P),g.value.set(P,!1);return}const be=await A.getAllTables({platId:q,tableNames:ae??[]}),Ee=((le=be==null?void 0:be.data)==null?void 0:le.result)||[],Ge=[],Pe=[];for(let Xe=0;Xe<Ee.length;Xe+=2)Xe+1<Ee.length&&Pe.push([Ee[Xe],Ee[Xe+1]]);Pe.forEach(([Xe,_a])=>{var Za;if(!Array.isArray(Xe)||Xe.length===0||!Array.isArray(_a)||_a.length===0)return;const Ia=_a[0];let za=((Za=Ia==null?void 0:Ia.结构)==null?void 0:Za.contents)??[];if(!Array.isArray(za)||za.length===0)return;let Ze=A.cloneDeep(za);if(Array.isArray(Ze==null?void 0:Ze[0])&&(Ze=de.getColumnChild(Ze[0])),!Array.isArray(Ze)||Ze.length===0||!Ze.some(ye=>(ye==null?void 0:ye.prop)===z))return;[...Xe].sort((ye,Oa)=>{const ba=Number((ye==null?void 0:ye.update_time)??0);return Number((Oa==null?void 0:Oa.update_time)??0)-ba}).slice(0,20).forEach(ye=>{const Oa=ye[z];if(Oa!=null){const ba=String(Oa);ba.toLowerCase().includes(B.toLowerCase())&&Ge.findIndex(Sa=>{var T;return ye.id&&((T=Sa.rowData)==null?void 0:T.id)===ye.id?!0:Sa.label===ba})===-1&&Ge.push({label:ba,rowData:A.cloneDeep(ye),sourceTable:(Ia==null?void 0:Ia.source_table)||""})}})}),p.value.set(P,Ge)}catch(ae){console.error("全局搜索建议失败:",ae),p.value.delete(P)}finally{g.value.set(P,!1)}},wu=(d,v,B)=>{if(!Ll.value)return;const z=(v==null?void 0:v.property)??(v==null?void 0:v.prop),P=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"";if(P&&P.toUpperCase()!=="INPUT"&&P!=="")return;const C=`${d==null?void 0:d.id}:${z}`;if(m.has(C)&&clearTimeout(m.get(C)),!B||B.trim()===""){p.value.delete(C),g.value.set(C,!1);return}const le=setTimeout(()=>{xu(d,{prop:z,property:z},B),m.delete(C)},300);m.set(C,le)};function _u(d,v){const B=`${d==null?void 0:d.id}:${(v==null?void 0:v.property)??(v==null?void 0:v.prop)}`;return p.value.get(B)||[]}const Su=(d,v,B)=>{var be;if(!B||!B.rowData)return;const z=B.rowData,P=d==null?void 0:d.id,C=(v==null?void 0:v.property)??(v==null?void 0:v.prop);(de.getAllLeafNodes(F.value)||[]).filter(Ee=>(Ee==null?void 0:Ee.type)!=="operate"&&(Ee==null?void 0:Ee.label)!=="操作"&&(Ee==null?void 0:Ee.prop)!=="operate").forEach(Ee=>{const Ge=Ee==null?void 0:Ee.prop;Ge&&z[Ge]!==void 0&&(d[Ge]=z[Ge])}),(be=Ae.value)==null||be.findIndex(Ee=>(Ee==null?void 0:Ee.id)===P),P!=null&&(h.value.has(P)||h.value.set(P,A.cloneDeep(d)),s.value.add(P));const q=`${P}:${C}`;p.value.delete(q),g.value.set(q,!1),co(d[C],d,v)},Kr=d=>{var q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa;const{row:v,column:B,item:z,slotData:P}=d;let C=v!=null&&v[B==null?void 0:B.prop]||(v==null?void 0:v[B==null?void 0:B.prop])===0?((be=(q=v==null?void 0:v[B==null?void 0:B.prop])==null?void 0:q[0])==null?void 0:be.contents)??((v==null?void 0:v[B==null?void 0:B.prop])===0?"0":v==null?void 0:v[B==null?void 0:B.prop]):((Ge=(Ee=v==null?void 0:v[z==null?void 0:z.prop])==null?void 0:Ee[0])==null?void 0:Ge.contents)??(v==null?void 0:v[z==null?void 0:z.prop])??((Xe=(Pe=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Pe[0])==null?void 0:Xe.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((za=(Ia=v==null?void 0:v[(_a=z==null?void 0:z.child)==null?void 0:_a.prop])==null?void 0:Ia[0])==null?void 0:za.contents)??(v==null?void 0:v[(Ze=z==null?void 0:z.child)==null?void 0:Ze.prop]),ae=Array.isArray(C)&&!(C!=null&&C.every(xa=>typeof xa=="string"||typeof xa=="number"))?"查看":C;if(ae=Array.isArray(ae)?ae.join(","):ae,(B==null?void 0:B.formType)==="Date")if(!ae||ae===""||ae===null||ae===void 0)ae="";else{const xa=A.dayjs(ae,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ae=xa.isValid()?xa.format("YYYYMMDD"):ae??""}return Array.isArray(B==null?void 0:B.relatedPages)&&((Xa=B==null?void 0:B.relatedPages)==null?void 0:Xa.length)>0&&(ae="详情页"),ae},Eu=d=>{var be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa;const{row:v,column:B,item:z,slotData:P}=d;let C=v!=null&&v[B==null?void 0:B.prop]?((Ee=(be=v==null?void 0:v[B==null?void 0:B.prop])==null?void 0:be[0])==null?void 0:Ee.contents)??(v==null?void 0:v[B==null?void 0:B.prop]):((Pe=(Ge=v==null?void 0:v[z==null?void 0:z.prop])==null?void 0:Ge[0])==null?void 0:Pe.contents)??(v==null?void 0:v[z==null?void 0:z.prop])??((_a=(Xe=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Xe[0])==null?void 0:_a.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((Ze=(za=v==null?void 0:v[(Ia=z==null?void 0:z.child)==null?void 0:Ia.prop])==null?void 0:za[0])==null?void 0:Ze.contents)??(v==null?void 0:v[(Xa=z==null?void 0:z.child)==null?void 0:Xa.prop]);const ae=Array.isArray(C)&&!(C!=null&&C.every(xa=>typeof xa=="string"||typeof xa=="number")),q=Array.isArray(C)&&(C==null?void 0:C.find(xa=>xa==null?void 0:xa.url));return ae&&q},Cu=d=>{var P,C,le,ae;if(!(d!=null&&d.column))return!1;const v=Se.value==="试验任务/任务管理",B=(u==null?void 0:u.compName)==="任务列表",z=((C=(P=d==null?void 0:d.column)==null?void 0:P.filter)==null?void 0:C.includes("@TextRGBA"))||((ae=(le=d==null?void 0:d.column)==null?void 0:le.filter)==null?void 0:ae.includes("@TextBackRGBA"));return v&&B&&z},Du=(d,v)=>d.find(B=>Object.values(B).some(z=>z===v));return e.watch(()=>ze.value,async d=>{if(d){ue.setContentLoading(!0),await e.nextTick();const v=Du(Ae.value,d==null?void 0:d.data);if(!v)return ue.setContentLoading(!1);await Li(d==null?void 0:d.data,null,v,{data:d==null?void 0:d.data}),ue.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>u==null?void 0:u.cacheNewData,d=>{var v;d&&(Array.isArray(d)?d.forEach(B=>{var z,P,C,le,ae;if(换,String(B==null?void 0:B.compId)===String(u==null?void 0:u.index)&&(B!=null&&B.resId)&&((z=B==null?void 0:B.data)!=null&&z.id)){const q=(P=B==null?void 0:B.data)==null?void 0:P.id,be=B==null?void 0:B.resId;if(Ae.value=(C=Ae.value)==null?void 0:C.map(Ee=>{if((Ee==null?void 0:Ee.id)===q){const Ge={...Ee,id:be};return delete Ge._isOCRRow,delete Ge._ocrTableId,Ge}return Ee}),(ae=(le=Na.value)==null?void 0:le.has)!=null&&ae.call(le,q)){const Ge={...Na.value.get(q)||{},id:be};delete Ge._isOCRRow,delete Ge._ocrTableId,Na.value.delete(q),Na.value.set(be,Ge)}rl(u==null?void 0:u.index,q,be)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(Ae.value=(v=Ae.value)==null?void 0:v.map(B=>{var z;if((B==null?void 0:B.id)===((z=d==null?void 0:d.data)==null?void 0:z.id)){const P={...B,id:d==null?void 0:d.resId};return delete P._isOCRRow,delete P._ocrTableId,P}return B})))},{immediate:!0,deep:!0}),(d,v)=>{var Ze,Xa,xa,Za;const B=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),P=e.resolveComponent("el-switch"),C=e.resolveComponent("el-checkbox"),le=e.resolveComponent("el-radio"),ae=e.resolveComponent("el-radio-group"),q=e.resolveComponent("el-checkbox-group"),be=e.resolveComponent("el-button"),Ee=e.resolveComponent("el-icon"),Ge=e.resolveComponent("el-progress"),Pe=e.resolveComponent("el-alert"),Xe=e.resolveComponent("el-table-column"),_a=e.resolveComponent("el-table"),Ia=e.resolveComponent("el-upload"),za=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",j0,[xn.value?(e.openBlock(),e.createBlock(al.ssTable,{id:"excel-table",pageObj:me,showIndex:M.value,isTree:(Ze=a.compItem)==null?void 0:Ze.isTree,summaryInfo:X,columns:F.value,defaultSort:se,isCardViewport:xr.value,checkedColumns:n.value,key:Rr.value+F.value,tableData:yn.value,isEditViewport:Ll.value,isShowPagination:va.value,isShowEdit:!1,isShowDelete:!1,allowSelect:D.value,onDbClickRow:Dn,extraButton:ke.value,rowButton:He.value,cacheExtraButtons:da.value,isClearSelection:((Xa=Sl.value)==null?void 0:Xa.length)===0,onDoCurrentChange:Ni,onDoSizeChange:Lo,onSortChange:Ro,onContentClick:Li,onRowClick:Yo,onSelectChange:Uo,onCellChange:bu,onCellInput:wu,onSelectSuggest:Su,onChange:co,onPreview:ro,onSubmitEditingTable:Zi,onHandleColEditChange:Ji,onHandleColTypeChange:qr,onClickButton:lt,onAddNewRow:Fo,bottomButton:H.value,allowRowAddOrDelete:Zn.value},e.createSlots({headerButton:e.withCtx(ye=>{var Oa,ba,Ea,Sa;return[a.showHeader?(e.openBlock(),e.createBlock(bf,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(ya)===e.unref(Se),filterValues:Go.value,selectNums:(Oa=Sl.value)==null?void 0:Oa.length,dataNums:(ba=Ae.value)==null?void 0:ba.length,compName:a.compName,isDevMode:a.isDevMode,buttons:ye.buttons,menuFilter:(Sa=(Ea=a.compItem)==null?void 0:Ea.component)==null?void 0:Sa.menuFilter,onButtonClick:v[1]||(v[1]=(T,Y,$e)=>lt(T,Y,{extra:$e})),columns:F.value,onFilter:oo,onGetImportData:Vo,level:a.level,filterShow:K.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var ye,Oa,ba,Ea;return[((ye=Ae.value)==null?void 0:ye.length)>0&&a.allowOperate&&V.value?(e.openBlock(),e.createElementBlock("div",q0,[(Oa=k.value)!=null&&Oa.includes("read")&&((ba=k.value)!=null&&ba.includes("edit"))&&((Ea=He.value)!=null&&Ea.some(Sa=>(Sa==null?void 0:Sa.label)==="编辑"))&&!xr.value&&e.unref(ya)!==e.unref(Se)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:mu},[e.createVNode(B,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:ye,index:Oa})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ba=>gu(ye,Oa)},[e.createVNode(B,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,W0)]),operateCol:e.withCtx(()=>[e.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:uu,onBeforeEnter:du},{reference:e.withCtx(()=>[e.createElementVNode("span",K0,[e.createVNode(B,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",G0,[v[20]||(v[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(P,{"model-value":$.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:v[2]||(v[2]=ye=>ao(ye))},null,8,["model-value"]),v[21]||(v[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(q,{modelValue:n.value,"onUpdate:modelValue":v[3]||(v[3]=ye=>n.value=ye),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:o},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(sn.value,ye=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ye.label},[e.createVNode(C,{value:ye.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:ye.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(ye.label),9,Y0)]),_:2},1032,["value"]),e.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Oa;return[e.createElementVNode("div",J0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Oa=Object.keys(ye))==null?void 0:Oa.filter(ba=>{var Ea;return(Ea=E.value)==null?void 0:Ea.find(Sa=>(Sa==null?void 0:Sa.value)===ba)}),ba=>{var Ea,Sa;return e.openBlock(),e.createElementBlock("div",{key:ba},[L[ba]=="radio"?(e.openBlock(),e.createElementBlock("div",X0,[v[19]||(v[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(ae,{"model-value":ye==null?void 0:ye[ba],onChange:T=>Kn(T,ba,ye)},{default:e.withCtx(()=>{var T,Y;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Y=(T=E.value)==null?void 0:T.find($e=>($e==null?void 0:$e.value)===ba))==null?void 0:Y.options,$e=>(e.openBlock(),e.createBlock(le,{key:$e==null?void 0:$e.value,label:$e==null?void 0:$e.value,value:$e==null?void 0:$e.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($e==null?void 0:$e.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),L[ba]=="switch"?(e.openBlock(),e.createBlock(P,{key:1,"model-value":ye==null?void 0:ye[ba],"active-text":(Sa=(Ea=E.value)==null?void 0:Ea.find(T=>(T==null?void 0:T.value)===ba))==null?void 0:Sa.label,onChange:T=>Kn(T,ba,ye)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",Z0,[e.createVNode(B,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(ye=>{var Oa,ba,Ea,Sa,T,Y,$e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol;return[((Oa=ye==null?void 0:ye.column)==null?void 0:Oa.label)==="证书附件"||((ba=ye==null?void 0:ye.column)==null?void 0:ba.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",Q0,[e.createVNode(B,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Ka=>hi(ye),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Eu(ye)?(e.openBlock(),e.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",e3,e.toDisplayString(Kr(ye)),1)]),default:e.withCtx(()=>{var Ka,tl;return[e.createElementVNode("div",a3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((tl=ye==null?void 0:ye.row)==null?void 0:tl[(Ka=ye==null?void 0:ye.column)==null?void 0:Ka.prop],wl=>(e.openBlock(),e.createElementBlock("div",l3,[e.createElementVNode("div",{class:"prop-url",title:Yn(wl),onClick:Dl=>di(wl)},e.toDisplayString(Yn(wl)),9,r3),e.createElementVNode("div",{class:"prop-download",onClick:Dl=>Wo(wl)}," 下载 ",8,n3)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[Cu(ye)?(e.openBlock(),e.createBlock(Vu,{key:0,value:Kr(ye),columnContent:ye==null?void 0:ye.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(Kr(ye))&&((Sa=(Ea=Kr(ye))==null?void 0:Ea.toString())!=null&&Sa.includes(".txt")||(Y=(T=Kr(ye))==null?void 0:T.toString())!=null&&Y.includes(".cpt")||(ta=($e=Kr(ye))==null?void 0:$e.toString())!=null&&ta.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Kr(ye))&&((fa=(xe=Kr(ye))==null?void 0:xe.toString())!=null&&fa.includes(".txt")||(el=(Ta=Kr(ye))==null?void 0:Ta.toString())!=null&&el.includes(".cpt")||(pl=(qa=Kr(ye))==null?void 0:qa.toString())!=null&&pl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Kr(ye))&&(($l=(fl=Kr(ye))==null?void 0:fl.toString())!=null&&$l.includes(".txt")||(yl=(Ha=Kr(ye))==null?void 0:Ha.toString())!=null&&yl.includes(".cpt")||(ol=(Pa=Kr(ye))==null?void 0:Pa.toString())!=null&&ol.includes(".cyd"))?"pointer":"",marginLeft:(ye==null?void 0:ye.colIndex)===0?`${((ye==null?void 0:ye.level)??0)*20}px`:0}),onClick:Ka=>{var tl;return qn(Kr(ye),((tl=ye==null?void 0:ye.column)==null?void 0:tl.relatedPages)??[])}},e.toDisplayString(Kr(ye)===0?"0":Kr(ye)),13,i3))],64))]}),_:2},[((xa=He.value)==null?void 0:xa.length)>0?{name:"actions",fn:e.withCtx(({item:ye,fIndex:Oa})=>[e.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",H0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Oi(He.value,ye),(ba,Ea)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ea,onClick:e.withModifiers(Sa=>lt(ba==null?void 0:ba.label,ye,{extra:ba}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:ba==null?void 0:ba.textColor}),class:"extra-button-label"},e.toDisplayString(ba==null?void 0:ba.label),5)],8,U0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton","allowRowAddOrDelete"])):e.createCommentVNode("",!0),Ll.value?(e.openBlock(),e.createElementBlock("div",o3,[e.createVNode(be,{id:"themeBorderButton",onClick:Ho},{default:e.withCtx(()=>v[22]||(v[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(be,{class:"ok-button",id:"themeButton",onClick:zi},{default:e.withCtx(()=>v[23]||(v[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(Dr.ssDialog,{title:W.value,visible:Te.value,width:ir.value,onBeforeDestroy:lo,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",t3,[e.createVNode(al.ssForm,{ref_key:"formRef",ref:Ie,rowContents:La.value,showOperator:!1,onChange:pu,isEnableWrap:!1,onFixChangeValue:Ko,onClickTrigger:Gn,isEdit:la.value,onBlurChange:Qi,onCreate:ci,onTagChange:zn},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[qe.value?(e.openBlock(),e.createElementBlock("div",s3,[e.createVNode(be,{onClick:v[4]||(v[4]=ye=>Te.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>v[24]||(v[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(be,{class:"ok-button",onClick:v[5]||(v[5]=ye=>Pi(!0)),id:"themeButton"},{default:e.withCtx(()=>v[25]||(v[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(Dr.ssDialog,{title:W.value,visible:wa.value,width:oa.value,onBeforeDestroy:v[7]||(v[7]=ye=>wa.value=!1)},{default:e.withCtx(()=>[e.createVNode(Af)]),footer:e.withCtx(()=>[e.createElementVNode("div",c3,[e.createVNode(be,{onClick:v[6]||(v[6]=ye=>wa.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>v[26]||(v[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(be,{class:"ok-button",onClick:Jo,id:"themeButton"},{default:e.withCtx(()=>v[27]||(v[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),ee.value?(e.openBlock(),e.createBlock(al.ssFilePreview,{key:2,fileDataList:ua.value,onDestroy:Ri},null,8,["fileDataList"])):e.createCommentVNode("",!0),Ve.value?(e.openBlock(),e.createBlock(Dr.ssDialog,{key:3,visible:Ve.value,onBeforeDestroy:su,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:fe.value,threeData:N.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(Dr.ssDialog,{title:"OCR扫描录入",visible:nl.value,"close-on-click-modal":!1,onBeforeDestroy:El,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[v[38]||(v[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",u3,[e.createElementVNode("div",d3,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ue.value===1}])},v[28]||(v[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),v[31]||(v[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ue.value===2}])},v[29]||(v[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),v[32]||(v[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ue.value===3}])},v[30]||(v[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),Ue.value===1?(e.openBlock(),e.createElementBlock("div",p3,[e.createVNode(be,{onClick:t,class:"ocr-action-btn",disabled:ul.value,size:"default"},{default:e.withCtx(()=>v[33]||(v[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(be,{onClick:Xr,class:"ocr-action-btn",disabled:ul.value,size:"default"},{default:e.withCtx(()=>v[34]||(v[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),Ue.value===1?(e.openBlock(),e.createElementBlock("div",f3,[e.createElementVNode("div",h3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ra.value,(ye,Oa)=>{var ba;return e.openBlock(),e.createElementBlock("div",{key:Oa,class:"ocr-file-item"},[e.createElementVNode("div",v3,[ye.raw&&((ba=ye.raw.type)!=null&&ba.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:Ul(ye),alt:"预览",class:"thumbnail-image"},null,8,m3)):(e.openBlock(),e.createElementBlock("div",y3,[e.createVNode(Ee,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:Cl(ye)==="uploading",processing:Cl(ye)==="processing",completed:Cl(ye)==="completed"||Cl(ye)==="uploaded",failed:Cl(ye)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",g3,[v[35]||(v[35]=e.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),e.createElementVNode("circle",{class:e.normalizeClass(["progress-ring-fill",{completed:Cl(ye)==="completed"||Cl(ye)==="uploaded",uploading:Cl(ye)==="uploading",processing:Cl(ye)==="processing",failed:Cl(ye)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:Cl(ye)==="failed"?"#f56c6c":Cl(ye)==="completed"||Cl(ye)==="uploaded"?"#67c23a":"#409eff","stroke-width":Cl(ye)==="completed"||Cl(ye)==="uploaded"||Cl(ye)==="failed"?3:2,"stroke-dasharray":Wr(ye),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,b3)])),Cl(ye)==="completed"||Cl(ye)==="uploaded"?(e.openBlock(),e.createElementBlock("div",k3,[e.createVNode(Ee,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.check_default))]),_:1})])):e.createCommentVNode("",!0),Cl(ye)==="failed"?(e.openBlock(),e.createElementBlock("div",x3,[e.createVNode(Ee,{class:"error-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.close_default))]),_:1})])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"file-delete-btn",onClick:Ea=>nu(Oa)},[e.createVNode(Ee,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.close_default))]),_:1})],8,w3)]),e.createElementVNode("div",_3,e.toDisplayString(ye.name||"文件名123"),1)])}),128))]),Ra.value.length>0?(e.openBlock(),e.createElementBlock("div",S3,[e.createVNode(be,{onClick:ra,class:"ocr-start-recognize-btn",disabled:ul.value||Ra.value.length===0,size:"default"},{default:e.withCtx(()=>v[36]||(v[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),Ue.value===1?(e.openBlock(),e.createElementBlock("div",E3,[e.createVNode(Ge,{percentage:ia.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),Ue.value===2?(e.openBlock(),e.createElementBlock("div",C3,[e.createElementVNode("div",D3,[e.createVNode(Pe,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",B3,[e.createVNode(_a,{data:Le.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(Xe,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ja.value,ye=>(e.openBlock(),e.createBlock(Xe,{key:ye.prop,prop:ye.prop,"min-width":ye.minWidth||230,"class-name":ye.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",T3,[e.createElementVNode("span",null,e.toDisplayString(ye.label),1)])]),default:e.withCtx(({row:Oa,$index:ba})=>{var Ea,Sa,T;return[ye.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:xl(Oa[ye.prop]),fontWeight:500})},e.toDisplayString(Qa(Oa[ye.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[ka.value!==ba?(e.openBlock(),e.createElementBlock("span",N3,e.toDisplayString(Oa[ye.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(il(ye.prop)),{key:1,modelValue:Oa[ye.prop],"onUpdate:modelValue":Y=>Oa[ye.prop]=Y,size:"small",placeholder:"请输入"+ye.label,content:((Ea=Ma(ye.prop))==null?void 0:Ea.contents)??((Sa=Ma(ye.prop))==null?void 0:Sa.options)??[],optionUrl:(T=Ma(ye.prop))==null?void 0:T.optionUrl,onChange:Y=>Wa(ba,ye.prop,Y),onFocus:Y=>_e.value=ye.prop,onBlur:v[8]||(v[8]=Y=>_e.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(Xe,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:ye})=>[ka.value===ye?(e.openBlock(),e.createBlock(Ee,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Oa=>ml(ye),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(B,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Oa=>ml(ye),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),Ue.value===3?(e.openBlock(),e.createElementBlock("div",A3,[e.createVNode(Ee,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.check_default))]),_:1}),v[37]||(v[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Ia,{ref:"ocrUploadRef","file-list":Ra.value,"onUpdate:fileList":v[9]||(v[9]=ye=>Ra.value=ye),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":je,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[Ue.value!==3?(e.openBlock(),e.createElementBlock("div",z3,[e.createVNode(be,{onClick:cn,class:"ocr-start-recognize-btn",disabled:Ue.value===1||ul.value},{default:e.withCtx(()=>v[39]||(v[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(be,{onClick:Sn,class:"ocr-start-recognize-btn",disabled:ul.value},{default:e.withCtx(()=>v[40]||(v[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(Yf,{visible:fi.value,onConfirm:i,onCancel:v[10]||(v[10]=ye=>fi.value=!1)},null,8,["visible"]),e.createVNode(kd,{visible:ll.value,"onUpdate:visible":v[11]||(v[11]=ye=>ll.value=ye),versions:Ne.value},null,8,["visible","versions"]),e.createVNode(od,{visible:Tl.value,"onUpdate:visible":v[12]||(v[12]=ye=>Tl.value=ye),images:Jl.value,"default-image-name":rr.value,"field-meta":ka.value!==null?((Za=Le.value[ka.value])==null?void 0:Za.__ocrFieldMeta)||{}:{},"focused-field-name":_e.value,onClose:v[13]||(v[13]=ye=>Tl.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(Md,{visible:er.value,"onUpdate:visible":v[14]||(v[14]=ye=>er.value=ye),candidates:pr.value,"name-prop":hr.value,"mfr-prop":Hl.value,columns:F.value,onSubmit:wr,onPreviewFile:Qn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode(Pd,{visible:Va.value,"onUpdate:visible":v[15]||(v[15]=ye=>Va.value=ye),ocrPreviewData:Le.value,"onUpdate:ocrPreviewData":v[16]||(v[16]=ye=>Le.value=ye),ocrSelectedFields:ma.value,"onUpdate:ocrSelectedFields":v[17]||(v[17]=ye=>ma.value=ye),ocrPreviewColumns:ja.value,onConfirm:Ja,onFieldChange:v[18]||(v[18]=({rowIndex:ye,prop:Oa,value:ba})=>Wa(ye,Oa,ba))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(Dr.ssDialog,{title:f.title,visible:f.show,width:f.width,onBeforeDestroy:Q},{default:e.withCtx(()=>[e.createElementVNode("div",M3,[e.createVNode(al.ssForm,{rowContents:f==null?void 0:f.contents,formRules:f==null?void 0:f.formRules,showOperator:!1,buttonValue:f.buttonValue,isEdit:la.value,isStartJustify:!1,onOnButtonClick:ge},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(Dr.ssDialog,{title:"",visible:y.show,width:y.width,alignCenter:!0,onBeforeDestroy:S},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",I3,e.toDisplayString(y.title),1),e.createVNode(za,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>v[41]||(v[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",O3,[e.createVNode(za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(Ln.value||"暂无"),1)]),_:1}),e.createElementVNode("div",L3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y==null?void 0:y.buttonValue,ye=>(e.openBlock(),e.createBlock(be,{key:ye==null?void 0:ye.label,style:e.normalizeStyle({background:ye==null?void 0:ye.background,color:ye==null?void 0:ye.color}),onClick:Oa=>G(ye==null?void 0:ye.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ye==null?void 0:ye.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(kf,{columns:y==null?void 0:y.columns,tableData:y==null?void 0:y.tableData},{content:e.withCtx(({row:ye,item:Oa,slotData:ba,scope:Ea,column:Sa,columnProp:T,$index:Y})=>[e.createTextVNode(e.toDisplayString((ye==null?void 0:ye[Sa==null?void 0:Sa.prop])||(ye==null?void 0:ye[Sa==null?void 0:Sa.label])||(ye==null?void 0:ye[Sa==null?void 0:Sa.property])||(ba==null?void 0:ba[Sa==null?void 0:Sa.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"])])}}},Bc=Zl._export_sfc($3,[["__scopeId","data-v-8dd3d056"]]),V3={key:1,class:"static-form-body"},P3=["onClick"],F3={key:1},j3=e.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,o=w=>{switch(w){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},s=e.computed(()=>{var $;const w=($=n.itemData)==null?void 0:$.find(V=>(V==null?void 0:V.key)==="formContent"),b=(w==null?void 0:w.contents)||[];return(n.fields&&n.fields.length>0?n.fields:b).filter(V=>(V==null?void 0:V.label)||(V==null?void 0:V.isHideInForm)).map(V=>{let ne=V==null?void 0:V.value;Array.isArray(ne)&&(ne=ne.map(F=>F==null?"":typeof F=="object"?F.label??F.value??F.name??JSON.stringify(F):String(F)).filter(Boolean).join(",")),ne!=null&&typeof ne=="object"&&(ne=ne.label??ne.value??ne.name??JSON.stringify(ne));const X=V.isHideInForm?"":V.label??"",me=ne==null||ne===""?"-":String(ne),Me=X==="使用状态";return{label:X,value:me,isStatus:Me,tagType:Me?o(me):"",width:V.width??1,field:V}})}),h=e.ref(null),c=e.ref(null),p=e.computed(()=>{const w=Number(n==null?void 0:n.textSize),b=de.rgbaToColor(n==null?void 0:n.textColor),_={},$={},V={},ne={};return!Number.isNaN(w)&&w&&(_.fontSize=`${w}px`,$.fontSize=`${w+1}px`,V.fontSize=`${w}px`,ne.fontSize=`${w}px`),b&&($.color=b,V.color=b,ne.color=b),{item:_,label:$,value:V,empty:ne}}),m=e.ref(""),g=e.ref(""),u=e.ref(!1),D=async w=>{if(w){g.value&&(URL.revokeObjectURL(g.value),g.value="");try{const b=await A.platformDownloadFile({url:w}),_=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});g.value=URL.createObjectURL(_)}catch{g.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,w=>{w&&(m.value=w)},{immediate:!0}),e.watch(m,w=>{D(w)},{immediate:!0});const M=()=>{var w;(w=c.value)==null||w.click()},k=async w=>{var $,V,ne;const b=w.target,_=($=b==null?void 0:b.files)==null?void 0:$[0];if(!_){b.value="";return}u.value=!0;try{const X=new FormData;X.append("file",_);const me=await A.platformUploadFile(X),Me=(ne=(V=me==null?void 0:me.data)==null?void 0:V.result)==null?void 0:ne.url;Me?(m.value=Me,r("update:backGroundImage",Me),D(Me),Ua.ElMessage.success("背景图片上传成功")):Ua.ElMessage.error("背景图片上传失败")}catch{Ua.ElMessage.error("背景图片上传失败")}finally{u.value=!1,b.value=""}},K=e.computed(()=>g.value?{backgroundImage:`url(${g.value})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),I=w=>al.getComponent(w),H=w=>{if(!w)return;const b=w.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},L=(w,b,_)=>{n.disabled||(h.value=b,e.nextTick(()=>{H(_.currentTarget)}))},E=()=>{h.value=null},x=w=>{const b=w!=null&&w.width&&w.width>0?w.width:1,$=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${$}`,maxWidth:$,minWidth:"0",boxSizing:"border-box"}};return(w,b)=>{const _=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(K.value),onClick:b[2]||(b[2]=$=>(n==null?void 0:n.backGround)==="Yes"&&M())},[(n==null?void 0:n.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=e.withModifiers($=>M(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:k},null,544),b[3]||(b[3]=e.createElementVNode("img",{src:al._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),s.value.length?(e.openBlock(),e.createElementBlock("div",V3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,($,V)=>{var ne,X,me,Me,F,te,Z,se,Be;return e.openBlock(),e.createElementBlock("div",{key:V,class:"static-form-item",style:e.normalizeStyle({...x($),...p.value.item}),onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"]))},[$.label&&!((ne=$==null?void 0:$.field)!=null&&ne.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(p.value.label)},e.toDisplayString($.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(p.value.value),onClick:Ve=>{var he;return(he=$.field)!=null&&he.isNoClick?null:L($,V,Ve)}},[h.value===V&&$.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I(((X=$.field)==null?void 0:X.type)??"Input")),{key:0,modelValue:$.field.value,"onUpdate:modelValue":Ve=>$.field.value=Ve,isEdit:!0,disabled:(me=$.field)==null?void 0:me.disabled,content:((Me=$.field)==null?void 0:Me.contents)??[],optionUrl:$.field,originalValue:(F=$.field)==null?void 0:F.value,config:(te=$.field)==null?void 0:te.config,configModel:((Z=$.field)==null?void 0:Z.prop)??((se=$.field)==null?void 0:se.name),selectedTagList:((Be=$.field)==null?void 0:Be.selectValue)??[],onBlur:E,onBlurChange:E},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.isStatus?(e.openBlock(),e.createBlock(_,{key:0,type:$.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",F3,e.toDisplayString($.value??"-"),1))],64))],12,P3)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(p.value.empty)}," 暂无数据 ",4))],4)}}}),Tc=Zl._export_sfc(j3,[["__scopeId","data-v-74b02d73"]]),H3={class:"form-content"},U3={title:"选择标签"},q3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},W3={class:"col-operate-wrap"},K3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},G3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(a,{emit:l}){const n=()=>{c.value=!1,p.value=!1,m.value=[]},r=a;e.computed(()=>{var Ie;const W=(Ie=ea.value)==null?void 0:Ie.split("/");return(W==null?void 0:W.some(we=>(we==null?void 0:we.includes("updateLoading"))||(we==null?void 0:we.includes("loading"))))?!1:Ve.value==="view"});const o=l,s=e.ref(""),h=e.ref([]),c=e.ref(!1),p=e.ref(!1),m=e.ref([]),{getFileExtension:g}=So.useThreeSystem(),u=e.ref(),D=e.ref(!1),M=e.ref(!1),k=A.useUnit(A.pinia),{chooseTitle:K}=A.storeToRefs(k),I=e.ref([]),H=e.ref(),L=e.ref(!1),E=e.ref([]),x=cc(A.pinia),w=Ct(A.pinia),b=e.ref(!1),_=e.ref(),$=e.ref(),V=e.ref(),ne=e.ref(),X=e.ref(),me=A.useLoginState(A.pinia),{loginUserInfo:Me}=A.storeToRefs(me),F=e.ref(),te=e.ref(!0),Z=A.useModelComp(A.pinia),{tableViewContents:se,itemData:Be,isEdit:Ve,routeToChildPath:he,lockingPage:N,homepageBackgroundTableId:ie}=A.storeToRefs(Z),U=e.ref(null),De=e.ref(!1),Oe=e.ref(!1),Fe=A.useMenuState(),{activeMenuPath:ea}=A.storeToRefs(Fe),Ba=de.useOriginalState(A.pinia),{originalPath:ee}=A.storeToRefs(Ba),{compType:ua,hasEditable:ue}=Ys.useRole(),sa=()=>!ue(r.config,{type:ua.FORM});e.computed(()=>ea.value==="设备管理/试验设备"&&r.compName==="设备概要");const Se=async()=>{var Ie,we,wa;const W=ie==null?void 0:ie.value,Te=(Ie=Me==null?void 0:Me.value)==null?void 0:Ie.plat_id;if(!(!W||!Te))try{const oa=await A.getAllTables({platId:parseInt(Te),tableNames:[`content_${W}`,`struct_${W}`],user_unique_id:"0"}),Qe=((wa=(we=oa==null?void 0:oa.data)==null?void 0:we.result)==null?void 0:wa[0])??[],He=String((r==null?void 0:r.index)??""),qe=Qe==null?void 0:Qe.find(fe=>String(fe==null?void 0:fe.relatedForm_id)===He);qe!=null&&qe.backgroundImg_url&&(ne.value=qe.backgroundImg_url)}catch(oa){console.error("获取首页背景图片表数据失败:",oa)}},oe=e.ref([]),ze=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Ke=async W=>{Oe.value=W,await pe("disabled",null,W,!0)},ca=async W=>{await pe("operable",null,W,!0)};e.watch(()=>ea.value,async()=>{h.value=[],m.value=[]},{deep:!0,immediate:!0});const Ya=()=>{e.nextTick(()=>{ve()})},R=W=>{var Te;h.value=(Te=h.value)==null?void 0:Te.map(Ie=>({...Ie,isFormColHidden:!(W!=null&&W.includes(Ie.label))}))};e.onUnmounted(()=>{U.value=null});const j=W=>{o("clickTrigger",W)},J=async W=>{var Te,Ie,we,wa,oa,Qe;if(W===""){let He="";(Te=h.value)==null||Te.forEach(da=>{da!=null&&da.isMain&&(He=da==null?void 0:da.value)});let qe=await de.getItemData(he.value,sessionStorage.getItem("systemKey"),"");He=((Qe=(oa=(wa=(we=(Ie=qe==null?void 0:qe[0])==null?void 0:Ie.compData)==null?void 0:we.find(da=>(da==null?void 0:da.key)==="mainRouters"))==null?void 0:wa.contents)==null?void 0:oa[0])==null?void 0:Qe.routerContent)+ee.value+He;let ke=await de.getItemData(He,sessionStorage.getItem("systemKey"),"");L.value=!0,E.value=ke==null?void 0:ke.filter(da=>(da==null?void 0:da.comp)!=="methodButton"),o("routeUrl",E.value)}},ve=()=>{var Te;const W=(Te=U.value)==null?void 0:Te.$el;W&&Bl.Sortable.create(W,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ie=>{const{oldIndex:we,newIndex:wa}=Ie;if(we===wa)return;const oa=h.value.splice(we,1)[0];h.value.splice(wa,0,oa)}})},pe=async(W,Te,Ie,we=!1)=>{try{Z.setRefreshCurStructure(!1)}catch{Ua.ElMessage.error("编辑处理失败")}},ya=async(W,Te)=>{await pe()},aa=async(W,Te)=>{W&&await pe()},ce=async(W,Te,Ie)=>{await pe(Te,Ie,W,!1)},ga=(W,Te)=>{F.value===Te?te.value=!1:te.value=!0,F.value=Te==null?void 0:Te.changeProp},Ae=async W=>{var Qe;ne.value=W;const Te=r.itemData,Ie=Te==null?void 0:Te.find(He=>(He==null?void 0:He.key)==="backGroundImage");Ie?Ie.contents=W:Te==null||Te.push({key:"backGroundImage",contents:W}),o("change",{key:"backGroundImage",contents:W});const we=ie==null?void 0:ie.value,wa=r==null?void 0:r.index,oa=(Qe=Me==null?void 0:Me.value)==null?void 0:Qe.plat_id;if(!(!we||!oa||!wa||!W))try{await A.pageBatchAddApi({platId:parseInt(oa),changeContents:[{tableName:`content_${we}`,tableContents:[{backgroundImg_url:W,relatedForm_id:String(wa)}]}],user_unique_id:"0"})}catch(He){console.error("保存背景图片记录失败:",He),Ua.ElMessage.error("背景图片记录保存失败")}},Je=async W=>{var Ie,we,wa,oa,Qe,He,qe,fe,ke,da,La,dl,Ol,sl,Fl;let Te=[];if((Ie=W==null?void 0:W.toString())!=null&&Ie.includes(".urdf")){if(W.includes(",")){Ua.ElMessage.error("当前版本仅允许单个urdf预览!");return}m.value=[{url:W,extension:g(W)}],p.value=!0,c.value=!0;return}if((we=W==null?void 0:W.toString())!=null&&we.includes(".stl")||(wa=W==null?void 0:W.toString())!=null&&wa.includes(".STL")||(oa=W==null?void 0:W.toString())!=null&&oa.includes(".obj")||(Qe=W==null?void 0:W.toString())!=null&&Qe.includes(".mtl")){const Vl=((He=W==null?void 0:W.toString())==null?void 0:He.split(",")).map(zl=>({url:zl,extension:g(zl)}));m.value=Vl,p.value=!1,c.value=!0;return}if((qe=W==null?void 0:W.toString())!=null&&qe.includes(".stl")||(fe=W==null?void 0:W.toString())!=null&&fe.includes(".STL")||(ke=W==null?void 0:W.toString())!=null&&ke.includes(".obj")||(da=W==null?void 0:W.toString())!=null&&da.includes(".mtl")){let Fa,Vl=[],zl={};if(Array.isArray(W)?Fa=W:Fa=W==null?void 0:W.split(","),Fa==null||Fa.forEach(Aa=>{Aa.includes(".mtl")?Vl.push(Aa):zl.blob=zl.blob?zl.blob+","+Aa:Aa}),(Vl==null?void 0:Vl.length)>0&&(zl.mtlBlobs=Vl),(dl=(La=Object.values(zl))==null?void 0:La[0])!=null&&dl.includes("http:"))Te.push(zl);else{const Aa=new Blob([zl.blob],{type:"application/octet-stream;charset=UTF-8"});let rl=URL.createObjectURL(Aa),nl="";(Ol=W==null?void 0:W.split("/"))==null||Ol.forEach((ul,Ra)=>{var cl;Ra===((cl=W==null?void 0:W.split("/"))==null?void 0:cl.length)-1&&(nl=ul)}),(sl=zl.blob)!=null&&sl.includes(".stl")&&(nl=(nl==null?void 0:nl.replaceAll(">",""))+".urdf"),H.value=[{name:nl,blobUrl:rl}],M.value=!0}}else{const Fa=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Vl=await Ua.axios.get(W,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Fa.close()}),zl=new Blob([Vl.data],{type:"application/octet-stream;charset=UTF-8"});let Aa=URL.createObjectURL(zl),rl="";(Fl=W==null?void 0:W.split("/"))==null||Fl.forEach((nl,ul)=>{var Ra;ul===((Ra=W==null?void 0:W.split("/"))==null?void 0:Ra.length)-1&&(rl=nl)}),H.value=[{name:rl,blobUrl:Aa}],M.value=!0}(Te==null?void 0:Te.length)>0&&w.setBlobUrls(Te)},Na=()=>{M.value=!1},Ca=W=>{var oa,Qe,He,qe;const Te=(Qe=(oa=al.safeClone(r.itemData))==null?void 0:oa.find(fe=>(fe==null?void 0:fe.key)==="formContent"))==null?void 0:Qe.contents,Ie=al.safeClone(W.content);let we={};Ie&&((He=Object.values(Ie))==null?void 0:He.length)>0&&((qe=Object.values(Ie))==null||qe.forEach((fe,ke)=>{we[Te[ke].key]=fe}));const wa={content:we,index:r==null?void 0:r.index,buttonName:W==null?void 0:W.buttonName};o("change",wa)};e.computed(()=>"http://222.92.178.198:62001");const la=async W=>{var La,dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll,Ne;if(!W)return;(dl=(La=r==null?void 0:r.itemData)==null?void 0:La.find(Ue=>(Ue==null?void 0:Ue.key)==="parentFormPath"))==null||dl.contents;let Te=se.value;(Te==null?void 0:Te.length)>0&&(Te=Te==null?void 0:Te.map(Ue=>{var re,ia,Va,Le;let na=(re=Ue==null?void 0:Ue.key)==null?void 0:re.split("/");return(r==null?void 0:r.compName)===(na==null?void 0:na[0])&&(ia=h.value)!=null&&ia.find(ja=>(ja==null?void 0:ja.prop)===(na==null?void 0:na[1]))&&(Ue.value=(Le=(Va=h.value)==null?void 0:Va.find(ja=>(ja==null?void 0:ja.prop)===(na==null?void 0:na[1])))==null?void 0:Le.value),Ue}),Z.setTableViewContents(Te));const Ie=al.safeClone(r.itemData);let we=Ie==null?void 0:Ie.map(Ue=>{var na;return(Ue==null?void 0:Ue.key)==="formContent"&&((na=Ue.contents)==null||na.map((re,ia)=>{var Va,Le,ja,Ma,il,We,pa,ma,ka,_e,Tl,Jl,rr,er,pr,Gl,Re,jl,fr,Tr,hr;return re.type=(Le=(Va=h.value)==null?void 0:Va.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:Le.type,re.options=re!=null&&re.options?re.options:((il=(Ma=(ja=re==null?void 0:re.key)==null?void 0:ja.split("$"))==null?void 0:Ma[1])==null?void 0:il.length)>0?(ka=(ma=Lu((pa=(We=re==null?void 0:re.key)==null?void 0:We.split("$"))==null?void 0:pa[1]))==null?void 0:ma.split(","))==null?void 0:ka.map(Hl=>({label:Hl,value:Hl})):[],(_e=re==null?void 0:re.key)!=null&&_e.includes("$")&&(re.key=(Jl=(Tl=re==null?void 0:re.key)==null?void 0:Tl.split("$"))==null?void 0:Jl[0]),re.signature=(er=(rr=h.value)==null?void 0:rr.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:er.signature,re.isLoginUser=(Gl=(pr=h.value)==null?void 0:pr.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:Gl.isLoginUser,re.value=(Re=Object.values(W))==null?void 0:Re[ia],re.isFormColHidden=(fr=(jl=h.value)==null?void 0:jl.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:fr.isFormColHidden,re.isHideInForm=(hr=(Tr=h.value)==null?void 0:Tr.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:hr.isHideInForm,re})),Ue}),wa=h.value,oa=(sl=(Ol=al.safeClone(we))==null?void 0:Ol.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:sl.contents;if(wa=wa==null?void 0:wa.map(Ue=>{var na,re;return(Ue==null?void 0:Ue.type)==="Select"&&((na=Ue==null?void 0:Ue.allSelectionContents)==null?void 0:na.length)>0&&(Ue.contactValue=W),Ue.value=(re=oa==null?void 0:oa.find((ia,Va)=>((ia==null?void 0:ia.id)??Va)===(Ue==null?void 0:Ue.id)))==null?void 0:re.value,Ue}),!te.value){o("contentChange",{contents:we,index:r.index});return}let Qe="",He=(Vl=(Fa=(Fl=al.safeClone(we))==null?void 0:Fl.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:Fa.contents)==null?void 0:Vl.find((Ue,na)=>{var re,ia,Va;return(Ue==null?void 0:Ue.label)===F.value||na.toString()===((Va=(ia=(re=F.value)==null?void 0:re.split("t"))==null?void 0:ia[1])==null?void 0:Va.toString())}),qe=(zl=He==null?void 0:He.optionUrl)==null?void 0:zl.menuSelect,fe=!0;if((nl=(rl=(Aa=al.safeClone(we))==null?void 0:Aa.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:rl.contents)==null||nl.forEach(Ue=>{var na,re,ia,Va,Le,ja;fe&&((ia=(re=(na=Ue==null?void 0:Ue.optionUrl)==null?void 0:na.groupSelect)==null?void 0:re[1])!=null&&ia.includes("["))&&(Qe=(Le=(Va=Ue==null?void 0:Ue.optionUrl)==null?void 0:Va.groupSelect)==null?void 0:Le[1],JSON.stringify(qe)===JSON.stringify((ja=Ue==null?void 0:Ue.optionUrl)==null?void 0:ja.menuSelect)&&(fe=!1))}),(ul=He==null?void 0:He.optionUrl)!=null&&ul.menuSelect&&te.value){let Ue=await yt(He),na,re=(Ra=He==null?void 0:He.optionUrl)==null?void 0:Ra.menuSelect;if(Ue==null||Ue.forEach(ia=>{var Va,Le,ja,Ma,il,We,pa,ma,ka,_e;Qe===((Le=(Va=He==null?void 0:He.optionUrl)==null?void 0:Va.groupSelect)==null?void 0:Le[1])&&((il=(Ma=(ja=He==null?void 0:He.optionUrl)==null?void 0:ja.groupSelect)==null?void 0:Ma[1])!=null&&il.includes("["))&&((_e=al.safeClone(ia))==null?void 0:_e[(ka=(ma=(pa=(We=He==null?void 0:He.optionUrl)==null?void 0:We.groupSelect)==null?void 0:pa[1])==null?void 0:ma.replaceAll("[",""))==null?void 0:ka.replaceAll("]","")])===(He==null?void 0:He.value)&&(na=ia)}),na){let ia=al.safeClone(wa);ia=ia==null?void 0:ia.map(Le=>{var ja,Ma,il,We,pa,ma,ka,_e,Tl,Jl,rr;return(na!=null&&na[Le==null?void 0:Le.label]||na!=null&&na[(We=(il=(Ma=(ja=Le==null?void 0:Le.optionUrl)==null?void 0:ja.groupSelect)==null?void 0:Ma[1])==null?void 0:il.replaceAll("[",""))==null?void 0:We.replaceAll("]","")])&&((ka=(ma=(pa=Le==null?void 0:Le.optionUrl)==null?void 0:pa.groupSelect)==null?void 0:ma[1])!=null&&ka.includes("["))&&re!=null&&re.every(er=>{var pr,Gl;return(Gl=(pr=Le==null?void 0:Le.optionUrl)==null?void 0:pr.menuSelect)==null?void 0:Gl.includes(er)})&&(Le.value=(na==null?void 0:na[Le==null?void 0:Le.label])||(na==null?void 0:na[(rr=(Jl=(Tl=(_e=Le==null?void 0:Le.optionUrl)==null?void 0:_e.groupSelect)==null?void 0:Tl[1])==null?void 0:Jl.replaceAll("[",""))==null?void 0:rr.replaceAll("]","")]),Array.isArray(Le.value)&&Le.value.every(er=>(er==null?void 0:er.url)&&(er==null?void 0:er.name))&&(Le.type="Upload")),Le}),ia=ia==null?void 0:ia.map(Le=>{var ja,Ma,il;return(ja=Le==null?void 0:Le.optionUrl)!=null&&ja.oldMenuSelect&&(Le.optionUrl.menuSelect=(il=(Ma=al.safeClone(Le))==null?void 0:Ma.optionUrl)==null?void 0:il.oldMenuSelect),Le}),h.value=al.safeClone(ia);let Va=al.safeClone(ia);Va=Va==null?void 0:Va.map(Le=>{var ja,Ma,il,We,pa,ma;return(Ma=(ja=Le==null?void 0:Le.optionUrl)==null?void 0:ja.menuSelect)!=null&&Ma.some(ka=>ka==null?void 0:ka.includes("["))&&(Le.optionUrl.oldMenuSelect=(We=(il=al.safeClone(Le))==null?void 0:il.optionUrl)==null?void 0:We.menuSelect,Le.optionUrl.menuSelect=(ma=(pa=Le==null?void 0:Le.optionUrl)==null?void 0:pa.menuSelect)==null?void 0:ma.map(ka=>{var _e,Tl,Jl,rr;if(ka!=null&&ka.includes("[")){let er=(Tl=(_e=ka==null?void 0:ka.replaceAll("[","").replaceAll("]",""))==null?void 0:_e.split(":"))==null?void 0:Tl[1];ka=(rr=(Jl=al.safeClone(ia))==null?void 0:Jl.find(pr=>(pr==null?void 0:pr.label)===er))==null?void 0:rr.value}return ka})),Le}),h.value=Va}else h.value=wa;we=we==null?void 0:we.map(ia=>{var Va;return(ia==null?void 0:ia.key)==="formContent"&&(ia.contents=(Va=ia.contents)==null?void 0:Va.map(Le=>{var ja,Ma,il,We;return Le.value=((Ma=(ja=h.value)==null?void 0:ja.find(pa=>(pa==null?void 0:pa.label)===(Le==null?void 0:Le.key)))==null?void 0:Ma.value)??(Le==null?void 0:Le.value),Le.type=((We=(il=h.value)==null?void 0:il.find(pa=>(pa==null?void 0:pa.prop)===(Le==null?void 0:Le.key)))==null?void 0:We.type)??(Le==null?void 0:Le.type),Le})),ia})}te.value=!1,o("contentChange",{contents:we,index:r.index});let ke=[],da=[];if((ll=al.safeClone((cl=we==null?void 0:we.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:cl.contents))==null||ll.forEach(Ue=>{var na;Array.isArray(Ue==null?void 0:Ue.value)&&((na=Ue==null?void 0:Ue.value)!=null&&na.find(re=>{var ia;return(ia=re==null?void 0:re.url)==null?void 0:ia.includes(".obj")}))&&(da=Ue==null?void 0:Ue.value)}),(da==null?void 0:da.length)>0){const Ue=(Ne=al.safeClone(da))==null?void 0:Ne.filter(na=>{var re;return(re=na==null?void 0:na.url)==null?void 0:re.includes(".obj")});Ue==null||Ue.forEach(na=>{var ia,Va,Le,ja;const re=(ia=da==null?void 0:da.filter(Ma=>{var il;return(Ma==null?void 0:Ma.name)===(na==null?void 0:na.name)&&((il=Ma==null?void 0:Ma.url)==null?void 0:il.includes(".mtl"))}))==null?void 0:ia.map(Ma=>Ma==null?void 0:Ma.url);ke.push({objUrl:na==null?void 0:na.url,mtlUrls:((Va=da==null?void 0:da.filter(Ma=>{var il;return(Ma==null?void 0:Ma.name)===(na==null?void 0:na.name)&&((il=Ma==null?void 0:Ma.url)==null?void 0:il.includes(".mtl"))}))==null?void 0:Va.length)===1?(ja=(Le=da==null?void 0:da.filter(Ma=>{var il;return(Ma==null?void 0:Ma.name)===(na==null?void 0:na.name)&&((il=Ma==null?void 0:Ma.url)==null?void 0:il.includes(".mtl"))}))==null?void 0:Le[0])==null?void 0:ja.url:re})}),w.setObjUrl(ke)}},$a=(W,Te,Ie)=>{let we="";const wa=Te==null?void 0:Te.map(oa=>{var Qe;return(Qe=oa==null?void 0:oa.value)==null?void 0:Qe.pageData});return wa==null||wa.forEach(oa=>{var Qe;(oa==null?void 0:oa.name)===(W==null?void 0:W[0])&&((Qe=oa==null?void 0:oa.compData)==null||Qe.forEach(He=>{var qe;(He==null?void 0:He.key)==="formContent"&&((qe=He==null?void 0:He.contents)==null||qe.forEach(fe=>{var ke;(fe==null?void 0:fe.prop)===(W==null?void 0:W[1])&&(we=(fe==null?void 0:fe.value)===""?de.judgeContents((ke=al.safeClone(fe))==null?void 0:ke.optionUrl,Ie):fe==null?void 0:fe.value)}))}))}),we},va=(W,Te,Ie,we)=>{var He,qe;let wa="",oa="";(He=al.safeClone(Te))==null||He.forEach((fe,ke)=>{fe!=null&&fe.includes("[")?oa=oa+ee.value+W[ke]:oa=oa===""?oa+fe:oa+"/"+fe});let Qe=(qe=we[oa])==null?void 0:qe.map(fe=>{var ke;return(ke=fe==null?void 0:fe.value)==null?void 0:ke.pageData});return Qe==null||Qe.forEach(fe=>{var ke;(fe==null?void 0:fe.name)===(Ie==null?void 0:Ie[0])&&((ke=fe==null?void 0:fe.compData)==null||ke.forEach(da=>{var La;(da==null?void 0:da.key)==="formContent"&&((La=da==null?void 0:da.contents)==null||La.forEach(dl=>{(dl==null?void 0:dl.prop)===(Ie==null?void 0:Ie[1])&&(wa=dl==null?void 0:dl.value)}))}))}),wa};return e.watch(()=>ie==null?void 0:ie.value,async()=>{await Se()},{immediate:!0}),e.watch(()=>r.itemData,async()=>{var dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll,Ne,Ue,na,re,ia,Va,Le,ja,Ma,il,We,pa,ma;const W=(dl=r.itemData)==null?void 0:dl.find(ka=>(ka==null?void 0:ka.key)==="formContent");let Te=(Ol=r.itemData)==null?void 0:Ol.find(ka=>(ka==null?void 0:ka.key)==="backGround");Te&&((sl=Te==null?void 0:Te.contents)==null?void 0:sl.length)>0&&(s.value=((Fa=(Fl=Te==null?void 0:Te.contents)==null?void 0:Fl[0])==null?void 0:Fa.url)??"",console.log(232,s==null?void 0:s.value));const Ie=(Vl=al.safeClone(r.itemData))==null?void 0:Vl.find(ka=>(ka==null?void 0:ka.key)==="formButton"),we=(zl=al.safeClone(r.itemData))==null?void 0:zl.find(ka=>(ka==null?void 0:ka.key)==="formFlex"),wa=(Aa=al.safeClone(r.itemData))==null?void 0:Aa.find(ka=>(ka==null?void 0:ka.key)==="formWrap"),oa=(rl=al.safeClone(r.itemData))==null?void 0:rl.find(ka=>(ka==null?void 0:ka.key)==="enableWrap"),Qe=(nl=al.safeClone(r.itemData))==null?void 0:nl.find(ka=>(ka==null?void 0:ka.key)==="textSize"),He=(ul=al.safeClone(r.itemData))==null?void 0:ul.find(ka=>(ka==null?void 0:ka.key)==="textRGBA"),qe=(Ra=al.safeClone(r.itemData))==null?void 0:Ra.find(ka=>(ka==null?void 0:ka.key)==="backGround"),fe=(cl=al.safeClone(r.itemData))==null?void 0:cl.find(ka=>(ka==null?void 0:ka.key)==="backGroundImage");(wa==null?void 0:wa.contents)==="纵向"?D.value=!1:D.value=!0;const ke=Number(Qe==null?void 0:Qe.contents);_.value=Number.isNaN(ke)?void 0:ke,$.value=He==null?void 0:He.contents,V.value=qe==null?void 0:qe.contents,ne.value=fe==null?void 0:fe.contents;const da=oa==null?void 0:oa.contents;if(da===void 0?b.value=ri.BLOCK:typeof da=="boolean"?b.value=da?ri.ORDINARY:ri.BLOCK:b.value=da,X.value=typeof(we==null?void 0:we.contents)!="boolean"?!(!(we!=null&&we.contents)===""||((ll=we==null?void 0:we.contents)==null?void 0:ll.toUpperCase())==="VERTICAL"):we==null?void 0:we.contents,((Ne=W==null?void 0:W.contents)==null?void 0:Ne.length)>0&&Array.isArray(W==null?void 0:W.contents)){let ka=r.allMapContents;const _e=(na=(Ue=al.safeClone(W))==null?void 0:Ue.contents)==null?void 0:na.map((Re,jl)=>{var Vr,Ir,Rr,vn,tn,mn,nr,vr,jr,hl,ir,Ll,xr;let fr=(Re==null?void 0:Re.label)??(Re==null?void 0:Re.key)??"";Re==null||Re.type;let Tr=(Re==null?void 0:Re.options)??[];if((Vr=Re==null?void 0:Re.key)!=null&&Vr.includes("$")&&(fr=(Ir=al.safeClone(Re==null?void 0:Re.key).split("$"))==null?void 0:Ir[0],((vn=(Rr=al.safeClone(Re==null?void 0:Re.key).split("$"))==null?void 0:Rr[1])==null?void 0:vn.length)>0)){const[Sl,ar]=(mn=(tn=al.safeClone(Re==null?void 0:Re.key).split("$"))==null?void 0:tn[1])==null?void 0:mn.split(/[()]/);(nr=de.FormType.find(Br=>(Br==null?void 0:Br.key)===Sl))==null||nr.value,((vr=ar==null?void 0:ar.split(","))==null?void 0:vr.length)>0&&(Tr=(jr=ar==null?void 0:ar.split(","))==null?void 0:jr.map(Br=>({label:Br,value:Br})))}let hr=Re==null?void 0:Re.options;((hl=Re==null?void 0:Re.optionUrl)==null?void 0:hl.selectRelateType)==="自定义绑定"&&(hr=(Ll=(ir=Re==null?void 0:Re.optionUrl)==null?void 0:ir.defaultSelect)==null?void 0:Ll.map(Sl=>({label:Sl,value:Sl})));let Hl=(Re==null?void 0:Re.menuPath)??[],Lr=(Re==null?void 0:Re.groups)??[],Pl=(Re==null?void 0:Re.columns)??[],Nr=!1,Ur=(Re==null?void 0:Re.isFormColHidden)??!1,wr="",ql=Re!=null&&Re.value?Re.value:(hr==null?void 0:hr.length)>0?(xr=hr==null?void 0:hr[0])==null?void 0:xr.value:(Re==null?void 0:Re.value)??"",ln=!1,_r="Input";return((hr==null?void 0:hr.length)>0||(Hl==null?void 0:Hl.length)>0)&&(_r="Select"),(Array.isArray(wr)&&(wr!=null&&wr.every(Sl=>(Sl==null?void 0:Sl.name)&&(Sl==null?void 0:Sl.url)))||Array.isArray(ql)&&(ql!=null&&ql.every(Sl=>(Sl==null?void 0:Sl.name)&&(Sl==null?void 0:Sl.url))))&&(_r="upload"),Re!=null&&Re.isMainUrl&&(_r="Url"),{label:fr??"",name:fr??"t"+jl,prop:fr??al.safeClone(Re==null?void 0:Re.key),type:(Re==null?void 0:Re.type)??_r,value:(Re==null?void 0:Re.type)==="Date"&&ql===""?new Date:ql,id:(Re==null?void 0:Re.id)??jl,contents:(hr==null?void 0:hr.length)>0?hr:Tr??[],width:(Re==null?void 0:Re.width)??1,isLoginUser:Nr,config:Re==null?void 0:Re.config,optionUrl:(Re==null?void 0:Re.optionUrl)??Re,isFormColHidden:Ur,isHideInForm:(Re==null?void 0:Re.isHideInForm)??!1,signature:ln,isMain:Re==null?void 0:Re.isMain,required:(Re==null?void 0:Re.required)??!1,isMainUrl:Re==null?void 0:Re.isMainUrl,operable:(Re==null?void 0:Re.operable)??!1,disabled:(Re==null?void 0:Re.disabled)??!1,isSync:Re==null?void 0:Re.isSync,menus:Hl,groups:Lr,words:Pl,allSelectionContents:Re==null?void 0:Re.allContents,filterContent:Re==null?void 0:Re.filterContents,isNoClick:(Re==null?void 0:Re.isNoClick)??!1}}),Tl=_e==null?void 0:_e.map(Re=>Re==null?void 0:Re.value);let Jl="";Tl==null||Tl.forEach(Re=>{Re!==""&&Re!==void 0&&(Jl=Jl===""?Re:Jl+"/"+Re)}),x.setSelectArray(Tl),x.setSelectString(Jl);let rr=(re=al.safeClone(_e))==null?void 0:re.map(Re=>(Re!=null&&Re.value&&de.IsJson(Re==null?void 0:Re.value)&&Array.isArray(JSON.parse(Re==null?void 0:Re.value))&&(Re.value=JSON.parse(Re.value)),Re)),er={};rr==null||rr.forEach(Re=>{er[Re.label]=Re==null?void 0:Re.value}),rr=rr==null?void 0:rr.map(Re=>{var jl,fr,Tr,hr,Hl,Lr,Pl,Nr,Ur;if((Re==null?void 0:Re.type)==="Select"&&((jl=Re==null?void 0:Re.allSelectionContents)==null?void 0:jl.length)>0&&(Re.contactValue=er),(Tr=(fr=Re==null?void 0:Re.optionUrl)==null?void 0:fr.menuSelect)!=null&&Tr.some(wr=>wr==null?void 0:wr.includes("["))){let wr="";Re.optionUrl.oldMenuSelect=(Hl=(hr=al.safeClone(Re))==null?void 0:hr.optionUrl)==null?void 0:Hl.menuSelect,Re.optionUrl.menuSelect=(Pl=(Lr=Re==null?void 0:Re.optionUrl)==null?void 0:Lr.menuSelect)==null?void 0:Pl.map(ql=>{var ln,_r,Ql,Vr,Ir,Rr;if(ql!=null&&ql.includes("[")){let vn=(_r=(ln=ql==null?void 0:ql.replaceAll("[","").replaceAll("]",""))==null?void 0:ln.split(":"))==null?void 0:_r[1];wr=$a((Ql=ql==null?void 0:ql.replaceAll("[","").replaceAll("]",""))==null?void 0:Ql.split(":"),ka==null?void 0:ka[ea.value],ka),ql=((Ir=(Vr=al.safeClone(rr))==null?void 0:Vr.find(tn=>(tn==null?void 0:tn.label)===vn))==null?void 0:Ir.value)||$a((Rr=ql==null?void 0:ql.replaceAll("[","").replaceAll("]",""))==null?void 0:Rr.split(":"),ka==null?void 0:ka[ea.value],ka)}return ql}),wr!==""&&Re.value===""&&(Re.value=va(Re.optionUrl.menuSelect,Re.optionUrl.oldMenuSelect,(Nr=Re==null?void 0:Re.optionUrl)==null?void 0:Nr.groupSelect,ka),Array.isArray(Re.value)&&((Ur=Re.value)!=null&&Ur.every(ql=>ql==null?void 0:ql.url))&&(Re.type="UPLOAD"))}return Re}),h.value=rr,Oe.value=((ia=h.value)==null?void 0:ia.every(Re=>Re==null?void 0:Re.disabled))||N.value===ea.value,De.value=(Va=h.value)==null?void 0:Va.every(Re=>Re==null?void 0:Re.operable),oe.value=(Le=h.value)==null?void 0:Le.map(Re=>Re==null?void 0:Re.label);let pr=[],Gl=[];if((ja=al.safeClone(h.value))==null||ja.forEach(Re=>{var jl;Array.isArray(Re==null?void 0:Re.value)&&((jl=Re==null?void 0:Re.value)!=null&&jl.find(fr=>{var Tr;return(Tr=fr==null?void 0:fr.url)==null?void 0:Tr.includes(".obj")}))&&(Gl=Re==null?void 0:Re.value)}),(Gl==null?void 0:Gl.length)>0){const Re=(Ma=al.safeClone(Gl))==null?void 0:Ma.filter(jl=>{var fr;return(fr=jl==null?void 0:jl.url)==null?void 0:fr.includes(".obj")});Re==null||Re.forEach(jl=>{var Tr,hr,Hl,Lr;const fr=(Tr=Gl==null?void 0:Gl.filter(Pl=>{var Nr;return(Pl==null?void 0:Pl.name)===(jl==null?void 0:jl.name)&&((Nr=Pl==null?void 0:Pl.url)==null?void 0:Nr.includes(".mtl"))}))==null?void 0:Tr.map(Pl=>Pl==null?void 0:Pl.url);pr.push({objUrl:jl==null?void 0:jl.url,mtlUrls:((hr=Gl==null?void 0:Gl.filter(Pl=>{var Nr;return(Pl==null?void 0:Pl.name)===(jl==null?void 0:jl.name)&&((Nr=Pl==null?void 0:Pl.url)==null?void 0:Nr.includes(".mtl"))}))==null?void 0:hr.length)===1?(Lr=(Hl=Gl==null?void 0:Gl.filter(Pl=>{var Nr;return(Pl==null?void 0:Pl.name)===(jl==null?void 0:jl.name)&&((Nr=Pl==null?void 0:Pl.url)==null?void 0:Nr.includes(".mtl"))}))==null?void 0:Hl[0])==null?void 0:Lr.url:fr})}),w.setObjUrl(pr)}(il=al.safeClone(h.value))==null||il.forEach(Re=>{var jl,fr,Tr,hr,Hl,Lr,Pl,Nr,Ur,wr,ql,ln,_r;if((fr=(jl=Re==null?void 0:Re.value)==null?void 0:jl.toString())!=null&&fr.includes(".stl")||(hr=(Tr=Re==null?void 0:Re.value)==null?void 0:Tr.toString())!=null&&hr.includes(".STL")||(Lr=(Hl=Re==null?void 0:Re.value)==null?void 0:Hl.toString())!=null&&Lr.includes(".obj")||(Nr=(Pl=Re==null?void 0:Re.value)==null?void 0:Pl.toString())!=null&&Nr.includes(".mtl")||(wr=(Ur=Re==null?void 0:Re.value)==null?void 0:Ur.toString())!=null&&wr.includes(".urdf")){let Ql={},Vr=[],Ir;Array.isArray(Re==null?void 0:Re.value)?Ir=Re==null?void 0:Re.value:Ir=(ql=Re==null?void 0:Re.value)==null?void 0:ql.split(","),Ir==null||Ir.forEach(Rr=>{Rr.includes(".mtl")?Vr.push(Rr):Ql.blob=Ql.blob==="undefined"?Rr:Ql.blob+","+Rr}),(Vr==null?void 0:Vr.length)>0&&(Ql.mtlBlobs=Vr),(_r=(ln=Object.values(Ql))==null?void 0:ln[0])!=null&&_r.includes("http:")}})}else h.value=[];let La=se.value;if((La==null?void 0:La.length)>0&&(La=La==null?void 0:La.map(ka=>{var Tl,Jl,rr,er;let _e=(Tl=ka==null?void 0:ka.key)==null?void 0:Tl.split("/");return(r==null?void 0:r.compName)===(_e==null?void 0:_e[0])&&(Jl=h.value)!=null&&Jl.find(pr=>(pr==null?void 0:pr.prop)===(_e==null?void 0:_e[1]))&&(ka.value=(er=(rr=h.value)==null?void 0:rr.find(pr=>(pr==null?void 0:pr.prop)===(_e==null?void 0:_e[1])))==null?void 0:er.value),ka}),Z.setTableViewContents(La)),r!=null&&r.formRules)u.value=r==null?void 0:r.formRules;else{let ka={};(We=al.safeClone(h).value)==null||We.forEach(_e=>{((_e==null?void 0:_e.isMain)===!0||(_e==null?void 0:_e.required)===!0)&&(ka[(_e==null?void 0:_e.prop)??(_e==null?void 0:_e.name)]=[{required:!0,message:`${(_e==null?void 0:_e.label)||(_e==null?void 0:_e.prop)||(_e==null?void 0:_e.name)}不能为空`}])}),u.value=ka}if(((pa=Ie==null?void 0:Ie.contents)==null?void 0:pa.length)>0){const ka=[];(ma=Ie==null?void 0:Ie.contents)==null||ma.forEach((_e,Tl)=>{(_e==null?void 0:_e.label)!==""&&ka.push({label:(_e==null?void 0:_e.label)??"",id:(_e==null?void 0:_e.id)??Tl,type:(_e==null?void 0:_e.type)??"",background:_e==null?void 0:_e.background})}),I.value=ka}else I.value=[]},{deep:!0,immediate:!0}),e.watch(()=>N.value,W=>{Oe.value=W===ea.value},{immediate:!0}),(W,Te)=>{var He;const Ie=e.resolveComponent("svg-icon"),we=e.resolveComponent("el-switch"),wa=e.resolveComponent("el-checkbox"),oa=e.resolveComponent("el-popover"),Qe=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",H3,[b.value===e.unref(ri).TEXT?(e.openBlock(),e.createBlock(Tc,{key:0,itemData:a.itemData,compName:a.compName,fields:h.value,textSize:_.value,textColor:$.value,backGround:V.value,backGroundImage:ne.value,disabled:Oe.value||sa(),"onUpdate:backGroundImage":Ae,style:e.normalizeStyle({backGroundImage:s.value!==""?`url("${s.value}")`:void 0})},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled","style"])):b.value===e.unref(ri).BLOCK?(e.openBlock(),e.createBlock(Cf,{key:1,items:(He=h.value)==null?void 0:He.map(qe=>({label:qe!=null&&qe.isHideInForm?"":qe==null?void 0:qe.label,value:qe==null?void 0:qe.value,width:(qe==null?void 0:qe.width)??1,field:qe})),textSize:_.value,textColor:$.value,backGround:V.value,backGroundImage:ne.value,disabled:Oe.value||sa(),"onUpdate:backGroundImage":Ae},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":b.value===e.unref(ri).ORDINARY})},[e.createVNode(al.ssForm,{rowContents:h.value,formRules:u.value,buttonValue:I.value,isRowFlex:!1,isEnableWrap:!0,textSize:_.value,textColor:$.value,backGround:V.value,backGroundImage:ne.value,onOnButtonClick:Ca,onChange:la,formDisabled:Oe.value||sa(),formLabelsOperable:De.value,isButtonRow:D.value,onPreview:Je,onBlurChange:ga,onHandleColEditChange:ya,onHandleColTypeChange:aa,onRouteUrl:J,onClickTrigger:j,"onUpdate:backGroundImage":Ae},{operateCol:e.withCtx(({renderColumns:qe,formDisabled:fe,formLabelsOperable:ke})=>[e.createVNode(oa,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Ya},{reference:e.withCtx(()=>[e.createElementVNode("span",U3,[e.createVNode(Ie,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",q3,[Te[1]||(Te[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(we,{"model-value":fe,"active-text":"禁用","inactive-text":"",onChange:Ke,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(we,{"model-value":ke,"active-text":"编辑所有标签","inactive-text":"",onChange:ca},null,8,["model-value"]),Te[2]||(Te[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(Qe,{modelValue:oe.value,"onUpdate:modelValue":Te[0]||(Te[0]=da=>oe.value=da),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:U,onChange:R},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(qe,da=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:da.label},[e.createVNode(wa,{value:da.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(da.label),1)]),_:2},1032,["value"]),e.createVNode(oa,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(Ie,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var La;return[e.createElementVNode("div",W3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((La=Object.keys(da))==null?void 0:La.filter(dl=>{var Ol;return(Ol=ze.value)==null?void 0:Ol.find(sl=>(sl==null?void 0:sl.value)===dl)}),dl=>{var Ol,sl;return e.openBlock(),e.createElementBlock("div",{key:dl},[e.createVNode(al._sfc_main$1,{value:da==null?void 0:da[dl],"active-text":(sl=(Ol=ze.value)==null?void 0:Ol.find(Fl=>(Fl==null?void 0:Fl.value)===dl))==null?void 0:sl.label,inactiveText:"",onChange:Fl=>ce(Fl,dl,da)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",K3,[e.createVNode(Ie,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow"])],2)),M.value?(e.openBlock(),e.createBlock(al.ssFilePreview,{key:3,fileDataList:H.value,onDestroy:Na},null,8,["fileDataList"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createBlock(Dr.ssDialog,{key:4,visible:c.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:m.value,onGetAnimationData:W.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},xs=Zl._export_sfc(G3,[["__scopeId","data-v-9be8cef7"]]),zo=e.ref(0),Nc=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=A.cloneDeep(a))==null?void 0:l.map(r=>(zo.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??zo.value,children:Nc(r==null?void 0:r.children)},r))},Y3=a=>{var n;return(n=A.cloneDeep(a))==null?void 0:n.map(r=>(zo.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??zo.value,children:Nc(r==null?void 0:r.children)},r))},Ac=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===l)?(n=A.cloneDeep(a))==null?void 0:n.filter(o=>(o==null?void 0:o.id)!==l):(a=a==null?void 0:a.map(r=>(r.children=Ac(r==null?void 0:r.children,l),r)),a)},zc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=A.cloneDeep(a))==null?void 0:n.map(o=>((o==null?void 0:o.id)===(l==null?void 0:l.id)&&(o=l),o)):(a=a==null?void 0:a.map(r=>(r.children=zc(r==null?void 0:r.children,l),r)),a)},Mc=(a,l)=>{var n;return a!=null&&a.find(r=>{var o;return(r==null?void 0:r.id)===((o=l==null?void 0:l.contents)==null?void 0:o.id)})?(n=A.cloneDeep(a))==null?void 0:n.map(o=>{var s;return(o==null?void 0:o.id)===((s=l==null?void 0:l.contents)==null?void 0:s.id)&&(o=l==null?void 0:l.contents),o}):(a=a==null?void 0:a.map(r=>(r.children=Mc(r==null?void 0:r.children,l),r)),a)},Ic=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=A.cloneDeep(a))==null?void 0:n.map(o=>((o==null?void 0:o.id)===(l==null?void 0:l.id)&&(o!=null&&o.children||(o.children=[]),o.children.push(l.contents)),o)):(a=a==null?void 0:a.map(r=>(r.children=Ic(r==null?void 0:r.children,l),r)),a)},cr=[{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"}],J3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],X3=[{label:"新增",value:"add"}],In=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:X3},{key:"background",label:"按钮背景色",type:"Color"}],On=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:J3},{key:"textColor",label:"按钮颜色",type:"Color"}],Z3={class:"table-header-child"},Q3={class:"table-header-child-main"},eh={class:"table-header-child-content"},ah={class:"table-header-child-content-item"},lh={class:"fix-button"},rh={key:0},nh={class:"form-content"},ih={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(!1),s=e.ref(""),h=de.useTableComp(A.pinia),{tableIndex:c}=A.storeToRefs(h);e.ref(0);const p=e.ref(""),m=e.ref([]),g=e.ref([]),u=E=>{var w;o.value=!0;let x=[];cr==null||cr.forEach(b=>{let _=A.cloneDeep(c.value)+1;h.setTableIndex(_),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:c.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((w=E==null?void 0:E.children)==null?void 0:w.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),p.value=E==null?void 0:E.id,m.value=x,g.value=x},D=E=>{r("fixChange",A.cloneDeep(E))},M=E=>{r("deleteChange",A.cloneDeep(E))},k=E=>{o.value=!0;let x=[];cr==null||cr.forEach(w=>{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),x.push({label:w==null?void 0:w.label,name:w==null?void 0:w.label,type:w.type,value:"",id:c.value,contents:w==null?void 0:w.options})}),s.value=E==null?void 0:E.id,m.value=x,g.value=x},K=E=>{let x=A.cloneDeep(g.value);x=x==null?void 0:x.map(w=>(w.children||(w.value=E==null?void 0:E[w.name]),w)),g.value=x},I=()=>{var x,w;m.value=g.value;let E={};if(p.value!=="")E.id=p.value,(x=m.value)==null||x.forEach(b=>{const _=cr==null?void 0:cr.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),E.id="id"+c.value,(w=m.value)==null||w.forEach(_=>{const $=cr==null?void 0:cr.find(V=>(V==null?void 0:V.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}p.value="",m.value=[],g.value=[]},H=()=>{o.value=!1,p.value="",s.value="",m.value=[],g.value=[]},L=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",E),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(E,x)=>{const w=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Z3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(b,_)=>(e.openBlock(),e.createElementBlock("div",Q3,[e.createElementVNode("div",eh,[e.createElementVNode("div",ah,e.toDisplayString(b.label),1),e.createElementVNode("div",lh,[e.createVNode(w,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>k(b)},null,8,["onClick"]),e.createVNode(w,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>u(b)},null,8,["onClick"]),e.createVNode(w,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>L(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",rh,[e.createVNode(Oc,{tableChildContents:b==null?void 0:b.children,onDeleteChange:M,onFixChange:D},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Dr.ssDialog,{visible:o.value,onBeforeDestroy:H,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",nh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:K},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:H,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:I},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},oh=Zl._export_sfc(ih,[["__scopeId","data-v-e0fef72d"]]),th={class:"table-header-child"},sh={class:"table-header-child-main"},ch={class:"table-header-child-content"},uh={class:"table-header-child-content-item"},dh={class:"fix-button"},ph={key:0},fh={class:"form-content"},hh={class:"dialog-footer"},vh={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(!1),s=e.ref(""),h=de.useTableComp(A.pinia),{tableIndex:c}=A.storeToRefs(h),p=e.ref(""),m=e.ref([]),g=e.ref([]),u=E=>{r("fixChange",A.cloneDeep(E))},D=E=>{var w;o.value=!0;let x=[];cr==null||cr.forEach(b=>{let _=A.cloneDeep(c.value)+1;h.setTableIndex(_),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:c.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((w=E==null?void 0:E.children)==null?void 0:w.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),p.value=E==null?void 0:E.id,m.value=x,g.value=x},M=E=>{o.value=!0;let x=[];cr==null||cr.forEach(w=>{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),x.push({label:w==null?void 0:w.label,name:w==null?void 0:w.label,type:w.type,value:"",id:c.value,contents:w==null?void 0:w.options})}),s.value=E==null?void 0:E.id,m.value=x,g.value=x},k=E=>{let x=A.cloneDeep(g.value);x=x==null?void 0:x.map(w=>(w.children||(w.value=E==null?void 0:E[w.name]),w)),g.value=x},K=()=>{var x,w;m.value=g.value;let E={};if(p.value!=="")E.id=p.value,(x=m.value)==null||x.forEach(b=>{const _=cr==null?void 0:cr.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),E.id="idChild"+c.value,(w=m.value)==null||w.forEach(_=>{const $=cr==null?void 0:cr.find(V=>(V==null?void 0:V.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}p.value="",m.value=[],g.value=[]},I=()=>{o.value=!1,p.value="",s.value="",m.value=[],g.value=[]},H=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",E),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},L=E=>{r("deleteChange",E)};return(E,x)=>{const w=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",th,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(_,$)=>(e.openBlock(),e.createElementBlock("div",sh,[e.createElementVNode("div",ch,[e.createElementVNode("div",uh,e.toDisplayString(_.label),1),e.createElementVNode("div",dh,[e.createVNode(w,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>M(_)},null,8,["onClick"]),e.createVNode(w,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>D(_)},null,8,["onClick"]),e.createVNode(w,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>H(_)},null,8,["onClick"])])]),_!=null&&_.children&&_.children.length>0?(e.openBlock(),e.createElementBlock("div",ph,[e.createVNode(oh,{tableChildContents:_==null?void 0:_.children,onDeleteChange:L,onFixChange:u},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Dr.ssDialog,{visible:o.value,onBeforeDestroy:I,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",fh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",hh,[e.createVNode(b,{onClick:I,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Oc=Zl._export_sfc(vh,[["__scopeId","data-v-ebd68fa1"]]),mh={class:"table-operate-content"},yh={class:"table-operate-item"},gh={class:"operate-title"},bh={class:"operate-content"},kh={class:"fix-content"},xh={class:"fix-content-label"},wh={class:"fix-button"},_h={key:0},Sh={class:"operate-title"},Eh={class:"operate-content"},Ch={class:"fix-content"},Dh={class:"fix-content-label"},Bh={class:"fix-button"},Th={class:"operate-title"},Nh={class:"operate-content"},Ah={class:"fix-content"},zh={class:"fix-content-label"},Mh={class:"fix-button"},Ih={class:"operate-title"},Oh={class:"operate-content"},Lh={class:"fix-content"},Rh={class:"fix-content-label"},$h={class:"fix-button"},Vh={class:"operate-content"},Ph={style:{display:"flex","justify-content":"space-between"}},Fh={class:"form-content"},jh={class:"dialog-footer"},Hh={class:"form-content"},Uh={class:"dialog-footer"},qh={class:"form-content"},Wh={class:"dialog-footer"},Kh={class:"form-content"},Gh={class:"dialog-footer"},Yh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]),s=e.ref(!1),h=e.ref(!1),c=e.ref([]),p=e.ref(!1),m=e.ref([]),g=e.ref(!1),u=e.ref([]),D=e.ref(""),M=e.ref(""),k=e.ref([]),K=e.ref([]),I=e.ref([]),H=e.ref([]),L=e.ref(!1),E=e.ref([]),x=e.ref([]),w=e.ref(0),b=e.ref([]),_=e.ref([]),$=e.ref([]),V=()=>{L.value=!0;let R=[];In==null||In.forEach(j=>{w.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:(j==null?void 0:j.key)==="background"?"var(--ssComponent-primary-color)":"",id:w.value,contents:j==null?void 0:j.options})}),E.value=R,x.value=R},ne=()=>{var j,J,ve;h.value=!0;let R=[];(ve=(J=(j=de.FormContent)==null?void 0:j.find(pe=>(pe==null?void 0:pe.key)==="Input"))==null?void 0:J.value)==null||ve.forEach(pe=>{w.value++,R.push({label:pe==null?void 0:pe.label,name:(pe==null?void 0:pe.name)||(pe==null?void 0:pe.label),type:pe.type,value:(pe==null?void 0:pe.label)==="类型"?"Input":"",id:w.value,contents:pe==null?void 0:pe.options})}),b.value=R,_.value=R},X=R=>{R||(b.value=_.value)},me=async R=>{var j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca;if((R==null?void 0:R.类型)!==((J=(j=_.value)==null?void 0:j.find(la=>(la==null?void 0:la.label)==="类型"))==null?void 0:J.value)){let la=[],$a=await((ya=(pe=(ve=de.FormContent)==null?void 0:ve.find(va=>(va==null?void 0:va.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:pe.value)==null?void 0:ya.value)?await((Je=(Ae=(ga=de.FormContent)==null?void 0:ga.find(va=>(va==null?void 0:va.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:Ae.value)==null?void 0:Je.value):(ce=(aa=de.FormContent)==null?void 0:aa.find(va=>(va==null?void 0:va.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:ce.value;if($a==null||$a.forEach(va=>{w.value++,la.push({label:va==null?void 0:va.label,name:(va==null?void 0:va.name)||(va==null?void 0:va.label),type:va.type,value:va!=null&&va.属性名?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):(R==null?void 0:R[va.label])??"",id:w.value,contents:va==null?void 0:va.options,prop:(va==null?void 0:va.prop)||(va==null?void 0:va.name)||(va==null?void 0:va.label)})}),R!=null&&R.菜单选项&&((Na=R==null?void 0:R.菜单选项)==null?void 0:Na.length)>0){const va=await de.menuToContentType(R==null?void 0:R.菜单选项);la=la==null?void 0:la.map(W=>((W==null?void 0:W.name)==="组信息选项"&&(W.contents=va),W))}_.value=await de.selectToBase(A.cloneDeep(la)),b.value=await de.selectToBase(A.cloneDeep(la))}else{let la=A.cloneDeep(b.value);if(la=la==null?void 0:la.map($a=>($a.value=R==null?void 0:R[$a.name],$a)),R!=null&&R.菜单选项&&((Ca=R==null?void 0:R.菜单选项)==null?void 0:Ca.length)>0){const $a=await de.menuToContentType(R==null?void 0:R.菜单选项);la=la==null?void 0:la.map(va=>((va==null?void 0:va.name)==="组信息选项"&&(va.contents=$a),va))}la=de.formToOptionsContents(la),_.value=await de.selectToBase(A.cloneDeep(la))}},Me=async R=>{await me(R),b.value=_.value},F=(R,j)=>{if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="selectRelateType"){const J=j==null?void 0:j.optionUrl;return(J==null?void 0:J.selectRelateType)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="menuSelect"){const J=j==null?void 0:j.optionUrl;return(J==null?void 0:J.menuSelect)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="groupSelect"){const J=j==null?void 0:j.optionUrl;return(J==null?void 0:J.groupSelect)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="originalContent")return(j==null?void 0:j.value)||j[R.key];if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="multiple"){const J=j[R.key];return Xs(J)?J:R.default}return(R==null?void 0:R.label)==="类型"&&j[R.key]===""?"Input":(R==null?void 0:R.key)==="isFormColHidden"&&!j[R.key]?!1:j[R.key]},te=async R=>{var ve,pe,ya,aa,ce,ga,Ae,Je,Na;h.value=!0;let j=[];const J=await((ya=(pe=(ve=de.FormContent)==null?void 0:ve.find(Ca=>(Ca==null?void 0:Ca.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:pe.value)==null?void 0:ya.value)?await((Je=(Ae=(ga=de.FormContent)==null?void 0:ga.find(Ca=>(Ca==null?void 0:Ca.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:Ae.value)==null?void 0:Je.value):(ce=(aa=de.FormContent)==null?void 0:aa.find(Ca=>(Ca==null?void 0:Ca.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:ce.value;if(J==null||J.forEach(Ca=>{w.value++,j.push({label:Ca==null?void 0:Ca.label,name:(Ca==null?void 0:Ca.name)||(Ca==null?void 0:Ca.label),type:Ca.type,value:(Ca==null?void 0:Ca.label)==="属性名"?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):F(Ca,R),id:w.value,contents:Ca==null?void 0:Ca.options})}),R!=null&&R.menuSelect&&((Na=R==null?void 0:R.menuSelect)==null?void 0:Na.length)>0){const Ca=await de.menuToContentType(R==null?void 0:R.menuSelect);j=j==null?void 0:j.map(la=>((la==null?void 0:la.name)==="组信息选项"&&(la.contents=Ca),la))}D.value=R==null?void 0:R.id,b.value=await de.selectToBase(de.formToOptionsContents(j)),_.value=await de.selectToBase(de.formToOptionsContents(j))},Z=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;$.value=(j=A.cloneDeep($.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="tableToForm"&&(ve.contents=$.value),ve))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},se=()=>{h.value=!1,b.value=[],D.value=""},Be=async()=>{var ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca;b.value=_.value;let R={};D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value);let j=await((ya=(pe=(ve=de.FormContent)==null?void 0:ve.find(la=>{var $a,va;return(la==null?void 0:la.key)===(((va=($a=b.value)==null?void 0:$a.find(W=>(W==null?void 0:W.label)==="类型"))==null?void 0:va.value)??"label")}))==null?void 0:pe.value)==null?void 0:ya.value)??((ce=(aa=de.FormContent)==null?void 0:aa.find(la=>{var $a,va;return(la==null?void 0:la.key)===(((va=($a=b.value)==null?void 0:$a.find(W=>(W==null?void 0:W.label)==="类型"))==null?void 0:va.value)??"label")}))==null?void 0:ce.value);if((ga=b.value)==null||ga.forEach(la=>{const $a=j==null?void 0:j.find(va=>(va==null?void 0:va.label)===(la==null?void 0:la.label));$a&&(R[$a.key]=la.value)}),R.name=R.label,(Ae=$.value)!=null&&Ae.find(la=>la.id===R.id))$.value=(Je=$.value)==null?void 0:Je.map(la=>(la.id===R.id&&(la=R),la));else{let la=A.cloneDeep($.value);$.value||($.value=[]),la.push(R),$.value=la}$.value=$.value.map(({id:la,...$a})=>$a),h.value=!1,D.value="";let J=A.cloneDeep(n.originalItemContents);(Na=A.cloneDeep(n.originalItemContents))!=null&&Na.find(la=>(la==null?void 0:la.key)==="tableToForm")?J=(Ca=A.cloneDeep(n.originalItemContents))==null?void 0:Ca.map(la=>((la==null?void 0:la.key)==="tableToForm"&&(la.contents=$.value),la)):J.push({key:"tableToForm",contents:$.value}),r("change",J)},Ve=R=>{L.value=!0;let j=[];In==null||In.forEach(J=>{w.value++,j.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:R[J.key],id:w.value,contents:J==null?void 0:J.options})}),D.value=R==null?void 0:R.id,E.value=j,x.value=j};e.watch(()=>g.value,()=>{var j,J;let R=A.cloneDeep(n.originalItemContents);(j=A.cloneDeep(n.originalItemContents))!=null&&j.find(ve=>(ve==null?void 0:ve.key)==="page")?R=(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="page"&&(ve.contents=g.value),ve)):R.push({key:"page",contents:g.value}),r("change",R)},{deep:!0});const he=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;K.value=(j=A.cloneDeep(K.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="extraButton"&&(ve.contents=K.value),ve))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},N=()=>{var J,ve,pe,ya,aa;E.value=x.value;let R={};if(D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value),(J=E.value)==null||J.forEach(ce=>{const ga=In==null?void 0:In.find(Ae=>(Ae==null?void 0:Ae.label)===(ce==null?void 0:ce.label));ga?R[ga.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(R.children=ce.children)}),(ve=K.value)!=null&&ve.find(ce=>ce.id===R.id))K.value=(pe=K.value)==null?void 0:pe.map(ce=>(ce.id===R.id&&(ce=R),ce));else{let ce=A.cloneDeep(K.value)??[];ce.push(R),K.value=ce}L.value=!1,D.value="";let j=A.cloneDeep(n.originalItemContents);(ya=A.cloneDeep(n.originalItemContents))!=null&&ya.find(ce=>(ce==null?void 0:ce.key)==="extraButton")?j=(aa=A.cloneDeep(n.originalItemContents))==null?void 0:aa.map(ce=>((ce==null?void 0:ce.key)==="extraButton"&&(ce.contents=K.value),ce)):j.push({key:"extraButton",contents:K.value}),r("change",j)},ie=R=>{let j=A.cloneDeep(x.value);j=j==null?void 0:j.map(J=>(J.children||(J.value=R==null?void 0:R[J.name]),J)),x.value=j},U=()=>{L.value=!1,E.value=[],D.value=""},De=R=>{p.value=!0;let j=[];On==null||On.forEach(J=>{w.value++,j.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:R[J.key],id:w.value,contents:J==null?void 0:J.options})}),D.value=R==null?void 0:R.id,I.value=j,H.value=j},Oe=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;k.value=(j=A.cloneDeep(k.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="rowButton"&&(ve.contents=k.value),ve))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Fe=()=>{s.value=!0;let R=[];cr==null||cr.forEach(j=>{w.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:w.value,contents:j==null?void 0:j.options})}),m.value=R,u.value=R},ea=()=>{p.value=!0;let R=[];On==null||On.forEach(j=>{w.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:w.value,contents:j==null?void 0:j.options})}),I.value=R,H.value=R},Ba=R=>{let j=A.cloneDeep(H.value);j=j==null?void 0:j.map(J=>(J.children||(J.value=R==null?void 0:R[J.name]),J)),H.value=j},ee=()=>{var J,ve,pe,ya,aa;I.value=H.value;let R={};if(D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value),(J=I.value)==null||J.forEach(ce=>{const ga=On==null?void 0:On.find(Ae=>(Ae==null?void 0:Ae.label)===(ce==null?void 0:ce.label));ga?R[ga.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(R.children=ce.children)}),(ve=k.value)!=null&&ve.find(ce=>ce.id===R.id))k.value=(pe=k.value)==null?void 0:pe.map(ce=>(ce.id===R.id&&(ce=R),ce));else{let ce=A.cloneDeep(k.value);ce.push(R),k.value=ce}p.value=!1,D.value="";let j=A.cloneDeep(n.originalItemContents);(ya=A.cloneDeep(n.originalItemContents))!=null&&ya.find(ce=>(ce==null?void 0:ce.key)==="rowButton")?j=(aa=A.cloneDeep(n.originalItemContents))==null?void 0:aa.map(ce=>((ce==null?void 0:ce.key)==="rowButton"&&(ce.contents=k.value),ce)):j.push({key:"rowButton",contents:k.value}),r("change",j)},ua=()=>{p.value=!1,D.value="",H.value=[],I.value=[]},ue=R=>{s.value=!0;let j=[];cr==null||cr.forEach(J=>{w.value++,j.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:"",id:w.value,contents:J==null?void 0:J.options})}),m.value=j,M.value=R==null?void 0:R.id,u.value=j},sa=R=>{var j;c.value=Ac(A.cloneDeep(c.value),R==null?void 0:R.id),r("change",(j=A.cloneDeep(n.originalItemContents))==null?void 0:j.map(J=>{var ve;return(J==null?void 0:J.key)==="header"&&(J.contents=(ve=c.value)!=null&&ve.some(pe=>pe==null?void 0:pe.children)?[c.value]:c.value),J}))},Se=R=>{var J,ve,pe;R.type==="fix"?R.id!==""?c.value=Mc(c.value,R):c.value=zc(c.value,R==null?void 0:R.contents):c.value=Ic(c.value,R),c.value=(J=c.value)!=null&&J.some(ya=>ya==null?void 0:ya.children)?[c.value]:c.value,D.value="";let j=A.cloneDeep(n.originalItemContents);(ve=A.cloneDeep(n.originalItemContents))!=null&&ve.find(ya=>(ya==null?void 0:ya.key)==="header")?j=(pe=A.cloneDeep(n.originalItemContents))==null?void 0:pe.map(ya=>((ya==null?void 0:ya.key)==="header"&&(ya.contents=c.value),ya)):j.push({key:"header",contents:c.value}),r("change",j)},oe=R=>{var J;s.value=!0;let j=[];cr==null||cr.forEach(ve=>{w.value++,j.push({label:ve==null?void 0:ve.label,name:ve==null?void 0:ve.label,type:ve.type,value:R[ve.key],id:w.value,contents:ve==null?void 0:ve.options})}),R!=null&&R.children&&((J=R==null?void 0:R.children)==null?void 0:J.length)>0&&j.push({children:R==null?void 0:R.children,isFormColHidden:!0}),D.value=R==null?void 0:R.id,M.value="",m.value=j,u.value=j},ze=R=>{let j=A.cloneDeep(u.value);j=j==null?void 0:j.map(J=>(J.children||(J.value=R==null?void 0:R[J.name]),J)),u.value=j},Ke=()=>{s.value=!1,D.value="",M.value="",u.value=[]},ca=()=>{var J,ve,pe,ya,aa,ce;m.value=u.value;let R={};if(D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value),(J=m.value)==null||J.forEach(ga=>{const Ae=cr==null?void 0:cr.find(Je=>(Je==null?void 0:Je.label)===(ga==null?void 0:ga.label));Ae?R[Ae.key]=ga.value:ga!=null&&ga.children&&ga.children.length>0&&(R.children=ga.children)}),(ve=c.value)!=null&&ve.find(ga=>ga.id===R.id))c.value=(pe=c.value)==null?void 0:pe.map(ga=>(ga.id===R.id&&(ga=R),ga));else{let ga=A.cloneDeep(c.value)??[];M.value===""?ga.push(R):ga=ga==null?void 0:ga.map(Ae=>(Ae.id===M.value&&(Ae.children||(Ae.children=[]),Ae.children.push(R)),Ae)),c.value=ga}c.value=(ya=c.value)!=null&&ya.some(ga=>ga==null?void 0:ga.children)?[c.value]:c.value,s.value=!1,D.value="",M.value="";let j=A.cloneDeep(n.originalItemContents);(aa=A.cloneDeep(n.originalItemContents))!=null&&aa.find(ga=>(ga==null?void 0:ga.key)==="header")?j=(ce=A.cloneDeep(n.originalItemContents))==null?void 0:ce.map(ga=>((ga==null?void 0:ga.key)==="header"&&(ga.contents=c.value),ga)):j.push({key:"header",contents:c.value}),r("change",j)},Ya=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;c.value=(j=A.cloneDeep(c.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>{var pe;return(ve==null?void 0:ve.key)==="header"&&(ve.contents=(pe=c.value)!=null&&pe.some(ya=>ya==null?void 0:ya.children)?[c.value]:c.value),ve})),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(o.value=A.cloneDeep(n.originalItemContents),c.value=(j=(R=o.value)==null?void 0:R.find(we=>(we==null?void 0:we.key)==="header"))==null?void 0:j.contents,k.value=(ve=(J=o.value)==null?void 0:J.find(we=>(we==null?void 0:we.key)==="rowButton"))==null?void 0:ve.contents,K.value=(ya=(pe=o.value)==null?void 0:pe.find(we=>(we==null?void 0:we.key)==="extraButton"))==null?void 0:ya.contents,g.value=(ce=(aa=o.value)==null?void 0:aa.find(we=>(we==null?void 0:we.key)==="page"))!=null&&ce.contents?!!((Ae=(ga=o.value)==null?void 0:ga.find(we=>(we==null?void 0:we.key)==="page"))!=null&&Ae.contents):!1,$.value=(Na=(Je=o.value)==null?void 0:Je.find(we=>(we==null?void 0:we.key)==="tableToForm"))==null?void 0:Na.contents,c.value=(Ca=c.value)==null?void 0:Ca.map((we,wa)=>(Array.isArray(we)?we=Y3(we):we={label:(we==null?void 0:we.label)??"",prop:(we==null?void 0:we.label)==="操作"?"operate":we==null?void 0:we.prop,width:we!=null&&we.width?parseInt(we.width):"",fixed:(we==null?void 0:we.fixed)??void 0,sortable:(we==null?void 0:we.sortable)??!1,align:(we==null?void 0:we.align)??"left",showOverflowTooltip:(we==null?void 0:we.showOverflowTooltip)??!0,isNotDrag:(we==null?void 0:we.isNotDrag)??!1,isEditCol:(we==null?void 0:we.isEditCol)??!1,isOperate:(we==null?void 0:we.isOperate)??!1,id:(we==null?void 0:we.id)??wa,formMenuSelect:(we==null?void 0:we.formMenuSelect)??void 0,groupSelect:(we==null?void 0:we.groupSelect)??void 0},we)),c.value=(la=c.value)!=null&&la.every(we=>Array.isArray(we))?($a=c.value)==null?void 0:$a[0]:c.value,k.value=(va=k.value)==null?void 0:va.map((we,wa)=>we={label:(we==null?void 0:we.label)??"",type:(we==null?void 0:we.type)??"",textColor:(we==null?void 0:we.textColor)??"#000000",id:(we==null?void 0:we.id)??wa}),K.value=(W=K.value)==null?void 0:W.map((we,wa)=>we={label:(we==null?void 0:we.label)??"",type:(we==null?void 0:we.type)??"",background:(we==null?void 0:we.background)??"var(--ssComponent-primary-color)",id:(we==null?void 0:we.id)??wa}),$.value)$.value=(Ie=$.value)==null?void 0:Ie.map(we=>{w.value++;let wa=we;return wa.id=w.value,wa});else{let we=[];const wa=(Te=de.getColumnChild(A.cloneDeep(c.value)))==null?void 0:Te.filter(oa=>(oa==null?void 0:oa.prop)!=="operate");wa==null||wa.forEach(oa=>{var Qe;w.value++,we.push({label:oa==null?void 0:oa.label,name:(oa==null?void 0:oa.prop)||(oa==null?void 0:oa.label),type:oa!=null&&oa.groupSelect?"Select":"Input",value:"",id:w.value,contents:oa==null?void 0:oa.options,menuSelect:oa==null?void 0:oa.formMenuSelect,groupSelect:(Qe=oa==null?void 0:oa.groupSelect)==null?void 0:Qe.split(":"),selectRelateType:"关联绑定列"})}),$.value=we}},{deep:!0,immediate:!0}),(R,j)=>{const J=e.resolveComponent("svg-icon"),ve=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",mh,[e.createElementVNode("div",yh,[e.createElementVNode("div",gh,[j[2]||(j[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(ve,{class:"icon-content",onClick:Fe,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",bh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",kh,[e.createElementVNode("div",xh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",wh,[e.createVNode(J,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>ue(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>oe(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Ya(pe)},null,8,["onClick"])])]),pe!=null&&pe.children&&pe.children.length>0?(e.openBlock(),e.createElementBlock("div",_h,[e.createVNode(Oc,{tableChildContents:pe==null?void 0:pe.children,onDeleteChange:sa,onFixChange:Se},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Sh,[j[4]||(j[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:ea},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[3]||(j[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",Eh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",Ch,[e.createElementVNode("div",Dh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",Bh,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>De(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Oe(pe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Th,[j[6]||(j[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:V},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[5]||(j[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",Nh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",Ah,[e.createElementVNode("div",zh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",Mh,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>Ve(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>he(pe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Ih,[j[8]||(j[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:ne},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[7]||(j[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",Oh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",Lh,[e.createElementVNode("div",Rh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",$h,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>te(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Z(pe)},null,8,["onClick"])])])]))),128))]),j[10]||(j[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",Vh,[e.createElementVNode("div",Ph,[j[9]||(j[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(al._sfc_main$1,{modelValue:g.value,"onUpdate:modelValue":j[0]||(j[0]=pe=>g.value=pe)},null,8,["modelValue"])])])]),e.createVNode(Dr.ssDialog,{visible:s.value,onBeforeDestroy:Ke,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Fh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:ze},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",jh,[e.createVNode(ve,{onClick:Ke,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[11]||(j[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(ve,{class:"ok-button button",onClick:ca,id:"themeButton"},{default:e.withCtx(()=>j[12]||(j[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:p.value,onBeforeDestroy:ua,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Hh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:Ba},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Uh,[e.createVNode(ve,{onClick:ua,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[13]||(j[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(ve,{class:"ok-button button",onClick:ee,id:"themeButton"},{default:e.withCtx(()=>j[14]||(j[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:L.value,onBeforeDestroy:U,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",qh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:ie},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Wh,[e.createVNode(ve,{onClick:U,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[15]||(j[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(ve,{class:"ok-button button",onClick:N,id:"themeButton"},{default:e.withCtx(()=>j[16]||(j[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:h.value,onBeforeDestroy:se,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Kh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:me,onChangeVisible:X,onBlurChange:Me},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Gh,[e.createVNode(ve,{onClick:se,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[17]||(j[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(ve,{class:"ok-button button",onClick:Be,id:"themeButton"},{default:e.withCtx(()=>j[18]||(j[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},Jh=Zl._export_sfc(Yh,[["__scopeId","data-v-7a6b87b5"]]),Xh=A.useModelComp(A.pinia),{pageMapState:Zh}=A.storeToRefs(Xh),Qh=A.useMenuState(A.pinia),{activeMenuPath:e2}=A.storeToRefs(Qh),a2=e.ref(24),l2=e.ref(6),r2=e.ref(10),n2=e.ref(70),i2=e.ref(.18),o2=e.ref(45),t2=(a,l,n,r)=>{var o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E;return{x:((s=(o=a==null?void 0:a.value)==null?void 0:o.tableData)==null?void 0:s.x)||l%2*12,y:((c=(h=a==null?void 0:a.value)==null?void 0:h.tableData)==null?void 0:c.y)||l,w:((m=(p=a==null?void 0:a.value)==null?void 0:p.tableData)==null?void 0:m.w)||a2.value,h:((u=(g=a==null?void 0:a.value)==null?void 0:g.tableData)==null?void 0:u.h)||n,minW:((M=(D=a==null?void 0:a.value)==null?void 0:D.tableData)==null?void 0:M.minW)||l2.value,minH:((K=(k=a==null?void 0:a.value)==null?void 0:k.tableData)==null?void 0:K.minH)||i2.value,maxH:((H=(I=a==null?void 0:a.value)==null?void 0:I.tableData)==null?void 0:H.maxH)||o2.value,i:((E=(L=a==null?void 0:a.value)==null?void 0:L.tableData)==null?void 0:E.i)||l,id:(a==null?void 0:a.id)||l+"",component:r}},s2=(a,l)=>{var r,o,s,h,c,p,m,g;let n=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((r=a==null?void 0:a.comp)==null?void 0:r.toUpperCase())==="TABLE"){if(((h=(s=(o=a==null?void 0:a.compData)==null?void 0:o.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:s.contents)==null?void 0:h.length)===0)return 2}else((c=a==null?void 0:a.comp)==null?void 0:c.toUpperCase())==="FORM"&&(n=((g=(m=(p=a==null?void 0:a.compData)==null?void 0:p.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:m.contents)==null?void 0:g.length)/5);return n*2},Lc=(a,l,n)=>{var h,c;const r=(c=(h=Zh.value)==null?void 0:h[e2.value])==null?void 0:c.filter(p=>{var m;return((m=p==null?void 0:p.key)==null?void 0:m.type)==="gridLayout"}),o=r==null?void 0:r.find(p=>{var m,g,u;return((u=(g=(m=p==null?void 0:p.value)==null?void 0:m.tableData)==null?void 0:g.component)==null?void 0:u.id)===a.id}),s=s2(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((p,m)=>Lc(p,m))),{...t2(o,l,s,a)}},c2=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const n=A.cloneDeep(a);return Array.isArray(a)?n==null?void 0:n.map((r,o)=>Lc(r,o)):[]},u2=a=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),d2=(a,l)=>a==null?void 0:a.map(n=>{for(const r in l)if(r===(n==null?void 0:n.prop))return{...n,value:l[r]};return n}),p2=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]);e.watch(()=>n.compType,c=>{var g;const p=u2(n==null?void 0:n.optionItems),m=c?(g=p[c==null?void 0:c.toUpperCase()])==null?void 0:g[n==null?void 0:n.target]:[];o.value=m==null?void 0:m.map(u=>{for(const[D,M]of Object.entries((n==null?void 0:n.comp)||{}))if((u==null?void 0:u.prop)===D)return{...u,value:M};return u})},{immediate:!0});const s=c=>al.getComponent(c),h=c=>{var p,m;(c==null?void 0:c.prop)==="layout"&&(c==null?void 0:c.value)==="horizontal"?o.value=(p=o.value)==null?void 0:p.map(g=>{var u;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(u=g==null?void 0:g.options)==null?void 0:u.map(D=>({...D,disabled:!0}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!0}:g}):o.value=(m=o.value)==null?void 0:m.map(g=>{var u;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(u=g==null?void 0:g.options)==null?void 0:u.map(D=>({...D,disabled:!1}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!1}:g}),r("change",{target:n==null?void 0:n.target,styleConfigs:o.value,prop:c==null?void 0:c.prop})};return(c,p)=>{const m=e.resolveComponent("el-col"),g=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,u=>(e.openBlock(),e.createBlock(g,{class:"style-row",key:u==null?void 0:u.prop},{default:e.withCtx(()=>[e.createVNode(m,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u==null?void 0:u.label)+":",1)]),_:2},1024),e.createVNode(m,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(u.type)),{modelValue:u.value,"onUpdate:modelValue":D=>u.value=D,content:u==null?void 0:u.options,optionUrl:u==null?void 0:u.optionUrl,disabled:u==null?void 0:u.disabled,activeText:u==null?void 0:u.activeText,inactiveText:u==null?void 0:u.inactiveText,onChange:D=>h(u)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),f2=Zl._export_sfc(p2,[["__scopeId","data-v-6c233914"]]),h2=e.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(a,{emit:l}){const n=a,r=l,o=[{required:!0,message:"输入不能为空",trigger:"blur"}],s=e.ref([]),h=H=>H==null?void 0:H.reduce((L,E)=>(L[E==null?void 0:E.prop]=E==null?void 0:E.rule,L),{}),c=e.computed(()=>({formRules:h(s.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),p=e.ref([]),m=e.ref(""),g=(H,L,E)=>{var b;let x=[];(n==null?void 0:n.activeTabName)==="任务配置"?(x=[{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:H},{label:"按钮名称",value:"按钮名称",children:L}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"任务名称",rule:o},{prop:"任务关键词",rule:o},{prop:"执行任务",rule:o},{prop:"执行动作",rule:o},{prop:"执行交互",rule:o}]):(n==null?void 0:n.activeTabName)==="任务关联"&&(x=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(b=n==null?void 0:n.relatedData)==null?void 0:b.map(_=>({label:_==null?void 0:_.任务名称,value:_==null?void 0:_.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"关联名称",rule:o},{prop:"关联状态",rule:o},{prop:"关联形式",rule:o},{prop:"关联任务集合",rule:o}]);let w;return E&&(E==null?void 0:E.length)>0?w=[...x,...u(H,L,E)]:w=x,w},u=(H,L,E)=>{const x=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return E?x==null?void 0:x.filter(w=>E==null?void 0:E.includes(w==null?void 0:w.prop)):x},D=(H,L)=>{var _,$,V,ne,X,me,Me,F,te;const E=((X=(ne=(V=($=(_=n==null?void 0:n.comp)==null?void 0:_.compData)==null?void 0:$.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:V.contents)==null?void 0:ne.filter(Z=>(Z==null?void 0:Z.label)!=="操作"))==null?void 0:X.map(Z=>({value:Z==null?void 0:Z.prop,label:Z.label})))||[],x=/button/i,w=((te=(F=(Me=(me=n==null?void 0:n.comp)==null?void 0:me.compData)==null?void 0:Me.filter(Z=>x.test(Z==null?void 0:Z.key)))==null?void 0:F.flatMap(Z=>Z==null?void 0:Z.contents))==null?void 0:te.map(Z=>({value:Z==null?void 0:Z.label,label:Z.label})))||[],b=g(E,w,H);p.value=L?d2(b,L):b,H&&(H==null?void 0:H.length)>0&&s.value.push(...H==null?void 0:H.map(Z=>({prop:Z,rule:o})))};e.onMounted(()=>{D(null,n==null?void 0:n.extendItem)});const M=H=>{const L=H==null?void 0:H[m.value];if(m.value==="执行任务"){if(!(L!=null&&L.join("/")))return;const E=L==null?void 0:L.join("/");D(E==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:E==="进度设置/进度条"?["进度关键词"]:null,H)}},k=H=>{r("change",{target:n==null?void 0:n.target,extendConfigs:H})},K=(H,L)=>{m.value=L==null?void 0:L.changeProp,M(H)},I=H=>{r("onButtonClick",H)};return(H,L)=>(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,key:p.value,isStartJustify:!1,isEnableWrap:!1,formRules:c.value.formRules,buttonValue:c.value.buttonValue,onChange:k,onBlurChange:K,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue"]))}}),v2=Zl._export_sfc(h2,[["__scopeId","data-v-7c660c1f"]]),m2={};function y2(a,l){return null}const g2=Zl._export_sfc(m2,[["render",y2]]),b2={class:"form-operate-content"},k2={class:"form-operate-item"},x2={class:"operate-title"},w2={class:"operate-content"},_2={class:"fix-content"},S2={class:"fix-button"},E2={class:"operate-title"},C2={class:"operate-content"},D2={class:"fix-content"},B2={class:"fix-button"},T2={style:{display:"flex","justify-content":"space-between"}},N2={class:"form-content"},A2={class:"dialog-footer"},z2={class:"form-content"},M2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(!1),s=e.ref([]),h=e.ref([]),c=e.ref(!1),p=e.ref([]),m=e.ref([]),g=e.ref(""),u=e.ref(!1),D=e.ref(0),M=e.ref([]),k=e.ref([]),K=(F,te)=>{if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="selectRelateType"){const Z=te==null?void 0:te.optionUrl;return(Z==null?void 0:Z.selectRelateType)||te[F.key]}if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="menuSelect"){const Z=te==null?void 0:te.optionUrl;return(Z==null?void 0:Z.menuSelect)||te[F.key]}if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="groupSelect"){const Z=te==null?void 0:te.optionUrl;return(Z==null?void 0:Z.groupSelect)||te[F.key]}if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="originalContent")return(te==null?void 0:te.value)||te[F.key];if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="multiple"){const Z=te[F.key];return Xs(Z)?Z:F.default}return(F==null?void 0:F.label)==="类型"&&te[F.key]===""?"Input":(F==null?void 0:F.key)==="isFormColHidden"&&!te[F.key]?!1:te[F.key]},I=async F=>{var se,Be,Ve,he,N,ie;o.value=!0;let te=[];const Z=await((Ve=(Be=(se=de.FormContent)==null?void 0:se.find(U=>(U==null?void 0:U.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:Be.value)==null?void 0:Ve.value)??((N=(he=de.FormContent)==null?void 0:he.find(U=>(U==null?void 0:U.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:N.value);if(Z==null||Z.forEach(U=>{D.value++,te.push({label:U==null?void 0:U.label,name:U==null?void 0:U.label,type:U.type,prop:U==null?void 0:U.prop,value:K(U,F),id:D.value,contents:U==null?void 0:U.options,width:(F==null?void 0:F.width)??1})}),F!=null&&F.menuSelect&&((ie=F==null?void 0:F.menuSelect)==null?void 0:ie.length)>0){const U=await de.menuToContentType(F==null?void 0:F.menuSelect);te=te==null?void 0:te.map(De=>((De==null?void 0:De.name)==="组信息选项"&&(De.contents=U),De))}g.value=F==null?void 0:F.id,s.value=await de.selectToBase(de.formToOptionsContents(te)),h.value=await de.selectToBase(de.formToOptionsContents(te))},H=F=>{var Z;c.value=!0;let te=[];(Z=de.FormButton)==null||Z.forEach(se=>{D.value++,te.push({label:se==null?void 0:se.label,name:se==null?void 0:se.label,type:se.type,value:(se==null?void 0:se.label)==="类型"&&F[se.key]===""?"normal":F[se.key],id:D.value,contents:se==null?void 0:se.options})}),M.value=te,k.value=te,g.value=F==null?void 0:F.id};e.watch(()=>u.value,()=>{var te,Z;let F=A.cloneDeep(n.originalItemContents);(te=A.cloneDeep(n.originalItemContents))!=null&&te.find(se=>(se==null?void 0:se.key)==="enableWrap")?F=(Z=A.cloneDeep(n.originalItemContents))==null?void 0:Z.map(se=>((se==null?void 0:se.key)==="enableWrap"&&(se.contents=!u.value),se)):F.push({key:"enableWrap",contents:!u.value}),r("change",F)},{deep:!0});const L=()=>{var Z,se,Be,Ve,he;M.value=k.value;let F={};if(g.value!==""?F.id=g.value:(D.value++,F.id="id"+D.value),(Z=M.value)==null||Z.forEach(N=>{var U;const ie=(U=de.FormButton)==null?void 0:U.find(De=>(De==null?void 0:De.label)===(N==null?void 0:N.label));ie&&(F[ie.key]=N.value)}),(se=p.value)!=null&&se.find(N=>N.id===F.id))p.value=(Be=p.value)==null?void 0:Be.map(N=>(N.id===F.id&&(N=F),N));else{let N=A.cloneDeep(p.value);p.value||(p.value=[]),N.push(F),p.value=N}c.value=!1,g.value="";let te=A.cloneDeep(n.originalItemContents);(Ve=A.cloneDeep(n.originalItemContents))!=null&&Ve.find(N=>(N==null?void 0:N.key)==="formButton")?te=(he=A.cloneDeep(n.originalItemContents))==null?void 0:he.map(N=>((N==null?void 0:N.key)==="formButton"&&(N.contents=p.value),N)):te.push({key:"formButton",contents:p.value}),r("change",te)},E=F=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var te,Z;m.value=(te=A.cloneDeep(m.value))==null?void 0:te.filter(se=>(se==null?void 0:se.id)!==(F==null?void 0:F.id)),r("change",(Z=A.cloneDeep(n.originalItemContents))==null?void 0:Z.map(se=>((se==null?void 0:se.key)==="formContent"&&(se.contents=m.value),se))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=F=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var te,Z;p.value=(te=A.cloneDeep(p.value))==null?void 0:te.filter(se=>(se==null?void 0:se.id)!==(F==null?void 0:F.id)),r("change",(Z=A.cloneDeep(n.originalItemContents))==null?void 0:Z.map(se=>((se==null?void 0:se.key)==="formButton"&&(se.contents=p.value),se))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=()=>{var te;c.value=!0;let F=[];(te=de.FormButton)==null||te.forEach(Z=>{D.value++,F.push({label:Z==null?void 0:Z.label,name:Z==null?void 0:Z.label,type:Z.type,value:(Z==null?void 0:Z.label)==="类型"?"normal":"",id:D.value,contents:Z==null?void 0:Z.options})}),M.value=F,k.value=F},b=()=>{var te,Z,se;o.value=!0;let F=[];(se=(Z=(te=de.FormContent)==null?void 0:te.find(Be=>(Be==null?void 0:Be.key)==="Input"))==null?void 0:Z.value)==null||se.forEach(Be=>{D.value++,F.push({label:Be==null?void 0:Be.label,name:Be==null?void 0:Be.label,type:Be.type,value:(Be==null?void 0:Be.label)==="类型"?"Input":"",id:D.value,contents:Be==null?void 0:Be.options})}),s.value=F,h.value=F},_=F=>{let te=A.cloneDeep(k.value);te=te==null?void 0:te.map(Z=>(Z.value=F==null?void 0:F[Z.name],Z)),k.value=te},$=F=>{const te=F.find(Be=>(Be==null?void 0:Be.name)==="类型");if((te==null?void 0:te.value)!="Select")return;const Z=F.find(Be=>(Be==null?void 0:Be.name)==="多选"),se=F.find(Be=>(Be==null?void 0:Be.name)==="初始值");Z!=null&&Z.value&&Eo.isString(se.value)&&(se.value=[se.value]),!(Z!=null&&Z.value)&&!Eo.isString(se.value)&&(se.value="")},V=async F=>{var te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe;if((F==null?void 0:F.类型)!==((Z=(te=h.value)==null?void 0:te.find(ea=>(ea==null?void 0:ea.label)==="类型"))==null?void 0:Z.value)){let ea=[];const Ba=await((Ve=(Be=(se=de.FormContent)==null?void 0:se.find(ee=>(ee==null?void 0:ee.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:Be.value)==null?void 0:Ve.value)?await((De=(U=(ie=de.FormContent)==null?void 0:ie.find(ee=>(ee==null?void 0:ee.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:U.value)==null?void 0:De.value):(N=(he=de.FormContent)==null?void 0:he.find(ee=>(ee==null?void 0:ee.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:N.value;if(Ba==null||Ba.forEach(ee=>{var ue,sa;D.value++;const ua=Ou(ee==null?void 0:ee.default)?(F==null?void 0:F[ee.label])??ee.value??"":ee==null?void 0:ee.default;ea.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:ua,prop:ee==null?void 0:ee.prop,id:D.value,contents:ee==null?void 0:ee.options,width:((sa=(ue=h.value)==null?void 0:ue[0])==null?void 0:sa.width)??1})}),F!=null&&F.菜单选项&&((Oe=F==null?void 0:F.菜单选项)==null?void 0:Oe.length)>0){const ee=await de.menuToContentType(F==null?void 0:F.菜单选项);ea=ea==null?void 0:ea.map(ua=>((ua==null?void 0:ua.name)==="组信息选项"&&(ua.contents=ee),ua))}$(ea),h.value=await de.selectToBase(A.cloneDeep(ea)),s.value=await de.selectToBase(A.cloneDeep(ea))}else{let ea=A.cloneDeep(h.value);if(ea=ea==null?void 0:ea.map(Ba=>(Ba.value=F==null?void 0:F[Ba.name],Ba)),F!=null&&F.菜单选项&&((Fe=F==null?void 0:F.菜单选项)==null?void 0:Fe.length)>0){const Ba=await de.menuToContentType(F==null?void 0:F.菜单选项);ea=ea==null?void 0:ea.map(ee=>((ee==null?void 0:ee.name)==="组信息选项"&&(ee.contents=Ba),ee))}ea=de.formToOptionsContents(ea),$(ea),h.value=await de.selectToBase(A.cloneDeep(ea))}},ne=F=>{F||(s.value=h.value)},X=async F=>{await V(F),s.value=h.value},me=Bl.debounce(async()=>{var se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba;s.value=h.value;let F={};F.width=((Be=(se=s.value)==null?void 0:se[0])==null?void 0:Be.width)??1,g.value!==""?F.id=g.value:(D.value++,F.id="id"+D.value);let te=await((N=(he=(Ve=de.FormContent)==null?void 0:Ve.find(ee=>{var ua,ue;return(ee==null?void 0:ee.key)===(((ue=(ua=s.value)==null?void 0:ua.find(sa=>(sa==null?void 0:sa.label)==="类型"))==null?void 0:ue.value)??"label")}))==null?void 0:he.value)==null?void 0:N.value)??((U=(ie=de.FormContent)==null?void 0:ie.find(ee=>{var ua,ue;return(ee==null?void 0:ee.key)===(((ue=(ua=s.value)==null?void 0:ua.find(sa=>(sa==null?void 0:sa.label)==="类型"))==null?void 0:ue.value)??"label")}))==null?void 0:U.value);if((De=s.value)==null||De.forEach(ee=>{const ua=te==null?void 0:te.find(ue=>(ue==null?void 0:ue.label)===(ee==null?void 0:ee.label));ua&&(F[ua.key]=ee.value)}),F.width=F.width?F.width:1,F.key=F==null?void 0:F.label,F.isFormColHidden=F==null?void 0:F.isFormColHidden,(Oe=m.value)!=null&&Oe.find(ee=>ee.id===F.id))m.value=(Fe=m.value)==null?void 0:Fe.map(ee=>(ee.id===F.id&&(ee=F),ee));else{let ee=A.cloneDeep(m.value);ee.push(F),m.value=ee}m.value=m.value.map(({id:ee,...ua})=>ua),o.value=!1,g.value="";let Z=A.cloneDeep(n.originalItemContents);(ea=A.cloneDeep(n.originalItemContents))!=null&&ea.find(ee=>(ee==null?void 0:ee.key)==="formContent")?Z=(Ba=A.cloneDeep(n.originalItemContents))==null?void 0:Ba.map(ee=>((ee==null?void 0:ee.key)==="formContent"&&(ee.contents=m.value),ee)):Z.push({key:"formContent",contents:m.value}),r("change",Z)},300),Me=()=>{o.value=!1,c.value=!1,g.value="",h.value=[],k.value=[]};return e.watch(()=>n.originalItemContents,()=>{var te,Z,se,Be,Ve,he;if(!n.originalItemContents||n.originalItemContents.length===0)return;const F=A.cloneDeep(n.originalItemContents);m.value=((te=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:te.contents)??[],p.value=((Z=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="formButton"))==null?void 0:Z.contents)??[],u.value=(se=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&se.contents?!((Be=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&Be.contents):!0,m.value=(Ve=A.cloneDeep(m.value))==null?void 0:Ve.map((N,ie)=>{var De;let U=N;return U.id=(N==null?void 0:N.id)??ie,N!=null&&N.label||(N.label=(N==null?void 0:N.key)??(N==null?void 0:N.label)??""),N!=null&&N.type||(N.type=(N==null?void 0:N.type)??""),N.contents=((De=N==null?void 0:N.options)==null?void 0:De.length)===0?(N==null?void 0:N.contents)??"":N==null?void 0:N.options,U}),m.value=de.formToOptionsContents(m.value),p.value=(he=p.value)==null?void 0:he.map((N,ie)=>N={label:(N==null?void 0:N.label)??"",type:(N==null?void 0:N.type)??"",background:(N==null?void 0:N.background)??"var(--ssComponent-primary-color)",id:ie})},{deep:!0,immediate:!0}),(F,te)=>{const Z=e.resolveComponent("svg-icon"),se=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",b2,[e.createElementVNode("div",k2,[e.createElementVNode("div",x2,[te[2]||(te[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(se,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[te[1]||(te[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",w2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(Be,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",_2,[e.createElementVNode("div",null,e.toDisplayString(Be.label),1),e.createElementVNode("div",S2,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>I(Be)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>E(Be)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",E2,[te[4]||(te[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(se,{class:"icon-content",id:"themeButton",onClick:w},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[te[3]||(te[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",C2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(Be,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",D2,[e.createElementVNode("div",null,e.toDisplayString(Be.label),1),e.createElementVNode("div",B2,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>H(Be)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>x(Be)},null,8,["onClick"])])])]))),128))]),te[6]||(te[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",T2,[te[5]||(te[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(al._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":te[0]||(te[0]=Be=>u.value=Be)},null,8,["modelValue"])])]),e.createVNode(Dr.ssDialog,{visible:o.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",N2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:V,onChangeVisible:ne,onBlurChange:X},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",A2,[e.createVNode(se,{onClick:Me,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>te[7]||(te[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(se,{class:"ok-button button",onClick:e.unref(me),id:"themeButton"},{default:e.withCtx(()=>te[8]||(te[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:c.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",z2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Me,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:L},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ws=Zl._export_sfc(M2,[["__scopeId","data-v-20850524"]]),I2={class:"step-module content"},O2={class:"module-data"},L2={class:"step-module layout"},R2={class:"form-content"},$2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),s=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),h=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.reactive({visible:!1,width:"40%",title:"步骤条"}),p=e.ref("create"),m=e.ref({}),g=e.ref([]),u=I=>{var H;m.value=I,r("change",(H=k())==null?void 0:H.compData)},D=(I,H)=>{var L,E;switch(I){case"create":(L=s.value)==null||L.forEach(x=>{x.value=""}),p.value="create",c.visible=!0;break;case"update":(E=s.value)==null||E.forEach(x=>{x.value=H[x==null?void 0:x.prop]}),p.value="update",c.visible=!0;break;case"delete":g.value.splice(H,1),p.value="delete";break}},M=I=>{var H,L,E;if((I==null?void 0:I.buttonName)==="确认"){const x=A.cloneDeep(I==null?void 0:I.content);switch(Object.keys(x).forEach(w=>{x[w]===""&&delete x[w]}),p.value){case"create":g.value.push({...x,index:((H=g.value)==null?void 0:H.length)+1});break;case"update":g.value=(L=g.value)==null?void 0:L.map(w=>w.index===(x==null?void 0:x.index)?{...w,title:x==null?void 0:x.title,description:x==null?void 0:x.description}:w);break}r("change",(E=k())==null?void 0:E.compData),c.visible=!1}else c.visible=!1},k=()=>({comp:"Step",compData:[{key:"stepList",contents:g.value},{key:"stepConfig",contents:m.value}]}),K=()=>{c.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,I=>{var H,L;I&&(m.value=((H=I==null?void 0:I.find(E=>E.key==="stepConfig"))==null?void 0:H.contents)??{},g.value=((L=I==null?void 0:I.find(E=>E.key==="stepList"))==null?void 0:L.contents)??[])},{immediate:!0}),(I,H)=>{const L=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",I2,[H[2]||(H[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:H[0]||(H[0]=x=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(L,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",O2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:w},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.title),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...x,index:w+1})},{default:e.withCtx(()=>H[3]||(H[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",w)},{default:e.withCtx(()=>H[4]||(H[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",L2,[H[5]||(H[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(al.ssForm,{rowContents:o.value,onChange:u},null,8,["rowContents"])])]),e.createVNode(Dr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:K,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",R2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:h.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),V2=Zl._export_sfc($2,[["__scopeId","data-v-7dbd17f2"]]),P2={class:"step-module content"},F2={class:"module-data"},j2={class:"step-module layout"},H2={class:"form-content"},U2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref("create"),s=e.ref({}),h=e.ref([]),c=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),p=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),m=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),g=e.reactive({visible:!1,width:"40%",title:"时间线"}),u=I=>{var H;s.value=I,r("change",(H=k())==null?void 0:H.compData)},D=(I,H)=>{var L,E;switch(I){case"create":(L=p.value)==null||L.forEach(x=>{x.value=""}),o.value="create",g.visible=!0;break;case"update":(E=p.value)==null||E.forEach(x=>{x.value=H[x==null?void 0:x.prop]}),o.value="update",g.visible=!0;break;case"delete":h.value.splice(H,1),o.value="delete";break}},M=I=>{var H,L,E,x;if((I==null?void 0:I.buttonName)==="确认"){const w=A.cloneDeep(I==null?void 0:I.content);switch(Object.keys(w).forEach(b=>{w[b]===""&&delete w[b]}),o.value){case"create":(L=h.value)==null||L.push({...w,index:((H=h.value)==null?void 0:H.length)+1});break;case"update":h.value=(E=h.value)==null?void 0:E.map(b=>b.index===(w==null?void 0:w.index)?{...b,content:w==null?void 0:w.content,timestamp:w==null?void 0:w.timestamp}:b);break}r("change",(x=k())==null?void 0:x.compData),g.visible=!1}else g.visible=!1},k=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:h.value},{key:"timeLineConfig",contents:s.value}]}),K=()=>{g.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,I=>{var H,L;I&&(s.value=((H=I==null?void 0:I.find(E=>E.key==="timeLineConfig"))==null?void 0:H.contents)??{},h.value=((L=I==null?void 0:I.find(E=>E.key==="timeLineList"))==null?void 0:L.contents)??[])},{immediate:!0}),(I,H)=>{const L=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",P2,[H[2]||(H[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:H[0]||(H[0]=x=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(L,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",F2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:w},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.content),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...x,index:w+1})},{default:e.withCtx(()=>H[3]||(H[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",w)},{default:e.withCtx(()=>H[4]||(H[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",j2,[H[5]||(H[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(al.ssForm,{rowContents:c.value,onChange:u},null,8,["rowContents"])])]),e.createVNode(Dr.ssDialog,{visible:g.visible,title:g.title,onBeforeDestroy:K,width:g.width},{default:e.withCtx(()=>[e.createElementVNode("div",H2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,key:p.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),q2=Zl._export_sfc(U2,[["__scopeId","data-v-39ffc861"]]),W2={};function K2(a,l){return e.openBlock(),e.createElementBlock("div")}const G2=Zl._export_sfc(W2,[["render",K2]]),Y2={class:"extra-content"},J2={key:0},X2={key:1},Z2={class:"dialog-footer"},Q2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const n=a,r=e.ref(0),o=e.ref(),s=e.ref(),h=l,c=e.ref(!1),p=e.ref({}),m=e.ref({}),g=e.ref();e.watch(()=>[n.itemData],()=>{var x;const E=A.cloneDeep(n.itemData);o.value=(x=A.cloneDeep(E))==null?void 0:x.map(w=>{var b;if(w.key==="extra"){let _=[];(b=w.value)==null||b.forEach($=>{var V;_.push((V=Object.values($))==null?void 0:V[0])}),w.value=_}return w})},{deep:!0,immediate:!0});const u=(E,x,w,b)=>{var $;let _={};(($=E==null?void 0:E[0])==null?void 0:$.contents)==="详情"&&(c.value=!0,_[x]=E,s.value=E==null?void 0:E.filter(V=>(V==null?void 0:V.key)!=="tableContentName"),p.value=_,m.value=w,g.value=b.id)},D=E=>{var V,ne,X,me;const x=(ne=(V=Object.values(A.cloneDeep(p.value)))==null?void 0:V[0])==null?void 0:ne.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),w=(me=(X=Object.values(A.cloneDeep(p.value)))==null?void 0:X[0])==null?void 0:me.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=w==null?void 0:w.map((Me,F)=>{var te;return F===E.index&&(Me==null?void 0:Me.comp)==="Table"&&(Me.compData=(te=Me.compData)==null?void 0:te.map(Z=>{var se,Be;return(Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=(Be=(se=E.content)==null?void 0:se.map(Ve=>{let he={};for(let N in Ve)N!=="id"&&(he[N]=Ve[N]);return he}))==null?void 0:Be.map(Ve=>Object.values(Ve))),Z})),Me});b.unshift(x==null?void 0:x[0]);let _=A.cloneDeep(p.value),$={};for(let Me in _)$[Me]=b;p.value=$},M=()=>{c.value=!1,p.value={},m.value={},g.value=void 0,r.value++},k=E=>{var V,ne,X,me;const x=(ne=(V=Object.values(A.cloneDeep(p.value)))==null?void 0:V[0])==null?void 0:ne.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),w=(me=(X=Object.values(A.cloneDeep(p.value)))==null?void 0:X[0])==null?void 0:me.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=w==null?void 0:w.map((Me,F)=>(F===E.index&&(Me.compData=E.contents),Me));b.unshift(x==null?void 0:x[0]);let _=A.cloneDeep(p.value),$={};for(let Me in _)$[Me]=b;p.value=$},K=()=>{var x,w;let E={};for(let b in m.value)b===((x=Object.keys(p.value))==null?void 0:x[0])?E[b]=(w=Object.values(p.value))==null?void 0:w[0]:E[b]=m.value[b];h("change",{buttonName:"编辑",index:g.value,singleContent:E},"methodData"),c.value=!1,p.value={},m.value={},g.value=void 0},I=()=>{c.value=!1,p.value={},m.value={},g.value=void 0},H=E=>{h("change",E,"methodData")},L=E=>Ti(E);return(E,x)=>{const w=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Y2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:r.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",J2)):(e.openBlock(),e.createElementBlock("div",X2,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:_,index:(b==null?void 0:b.id)??_,onContentClick:u,onChange:H},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Dr.ssDialog,{visible:c.value,onBeforeDestroy:I},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L(b.comp)),{itemData:b==null?void 0:b.compData,onChange:D,childItemData:b==null?void 0:b.itemChildData,key:_,onContentChange:k,index:(b==null?void 0:b.id)??_,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",Z2,[e.createVNode(w,{class:"cancel-button footer-button",onClick:M,id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(w,{class:"confirm-button footer-button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},e4=Zl._export_sfc(Q2,[["__scopeId","data-v-2d9c5ab2"]]),a4={key:0,class:"method-content"},l4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),n=de.useOriginalState(A.pinia),{originalPath:r}=A.storeToRefs(n),o=a,s=e.ref(!1),h=e.ref(),c=de.useTableComp(A.pinia),{multipleTableConst:p}=A.storeToRefs(c),m=A.useModelComp(A.pinia),g=e.ref(!1),u=A.useMenuState(A.pinia),D=A.useLoginState(A.pinia),{itemData:M,isEdit:k,routeToChildPath:K,tableViewContents:I,lockingPage:H,payloadTypes:L}=A.storeToRefs(m),{activeMenuPath:E,platform:x,childMenu:w}=A.storeToRefs(u),{loginUserInfo:b}=A.storeToRefs(D),_=e.ref(!1),$=async()=>{var he,N;(he=l.value)!=null&&he.find(ie=>(ie==null?void 0:ie.buttonName)==="保存")&&await Z((N=l.value)==null?void 0:N.find(ie=>(ie==null?void 0:ie.buttonName)==="保存")),await de.onSaveBack()};e.watch(()=>M.value,async()=>{k.value==="view"&&!_.value&&await Ve(A.cloneDeep(o.itemData)),_.value=!1},{deep:!0});const V=()=>{s.value=!1,h.value=void 0},ne=he=>he.map(N=>{const ie={};for(const U in N){const De=N[U];if(U.includes(p.value)){const Oe=U.split(p.value);let Fe=ie;Oe.forEach((ea,Ba)=>{Ba===Oe.length-1?Fe[ea]=De:(Fe[ea]||(Fe[ea]={}),Fe=Fe[ea])})}else ie[U]=De}return ie}),X=async(he,N,ie=[])=>{var De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya;let U=(De=A.cloneDeep(N))==null?void 0:De.filter(R=>(R==null?void 0:R.comp)!=="methodButton");if(he!=null&&he.includes("[")){let R=(ee=(Ba=(ea=(Fe=(Oe=A.cloneDeep(he))==null?void 0:Oe.split("["))==null?void 0:Fe[1])==null?void 0:ea.split("]"))==null?void 0:Ba[0])==null?void 0:ee.split(":"),j="";if(R!=null&&R[0]){let J=(ua=U==null?void 0:U.find(ve=>(ve==null?void 0:ve.name)===(R==null?void 0:R[0])))==null?void 0:ua.compData;if(!J){let ve=(ue=he==null?void 0:he.split("["))==null?void 0:ue[0],pe=await de.getItemData(ve,sessionStorage.getItem("systemKey"),"",!1,"","",ie);J=(sa=pe==null?void 0:pe.find(ya=>(ya==null?void 0:ya.name)===(R==null?void 0:R[0])))==null?void 0:sa.compData}J==null||J.forEach(ve=>{var pe,ya,aa,ce,ga,Ae;if((ve==null?void 0:ve.key)==="formContent")(pe=ve==null?void 0:ve.contents)==null||pe.forEach(Je=>{var Na;(Je==null?void 0:Je.key)===(R==null?void 0:R[1])&&(Array.isArray(Je==null?void 0:Je.value)?j=Je==null?void 0:Je.value:j=(Na=Je==null?void 0:Je.value)==null?void 0:Na.toString())});else if((ve==null?void 0:ve.key)==="tableContents"){let Je=[],Na=(ya=J==null?void 0:J.find(la=>(la==null?void 0:la.key)==="header"))==null?void 0:ya.contents,Ca=(R==null?void 0:R[1])??"";if(Na!=null&&Na.every(la=>Array.isArray(la))){let la=de.getColumnChild((ga=Na==null?void 0:Na[0])==null?void 0:ga.filter($a=>($a==null?void 0:$a.label)!=="操作"));(Ae=ve.contents)==null||Ae.forEach($a=>{let va={};$a=$a==null?void 0:$a.filter(W=>!(W!=null&&W.id)),la==null||la.forEach((W,Te)=>{let Ie=$a[Te];typeof $a[Te]=="number"&&(Ie=$a[Te].toString()),(Ca===""||Ca===W.prop)&&(va[W.prop]=Ie)}),Je.push(va)}),Je=ne(Je)}else{let la=(aa=Na==null?void 0:Na.map($a=>$a==null?void 0:$a.label))==null?void 0:aa.filter($a=>$a!=="操作");(ce=ve.contents)==null||ce.forEach($a=>{let va={};$a=$a==null?void 0:$a.filter(W=>!(W!=null&&W.id)),la==null||la.forEach((W,Te)=>{let Ie=$a[Te];typeof $a[Te]=="number"&&(Ie=$a[Te].toString()),(Ca===""||Ca===W)&&(va[W]=Ie)}),Je.push(va)})}j=Je}})}return j}else if(he!=null&&he.includes("/")){let R={};return(Se=A.cloneDeep(U))==null||Se.forEach((j,J)=>{var ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa;if((j==null?void 0:j.comp)==="Table"){let Qe=Array.isArray((ya=(pe=(ve=j==null?void 0:j.compData)==null?void 0:ve.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:pe.contents)==null?void 0:ya[0])?(Ae=(ga=(ce=(aa=j==null?void 0:j.compData)==null?void 0:aa.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:ce.contents)==null?void 0:ga[0])==null?void 0:Ae.some(ke=>ke==null?void 0:ke.children):[],He=(Ca=(Na=(Je=j==null?void 0:j.compData)==null?void 0:Je.find(ke=>(ke==null?void 0:ke.key)==="tableContents"))==null?void 0:Na.contents)==null?void 0:Ca.map(ke=>(ke!=null&&ke.find(da=>da==null?void 0:da.id)&&(ke=ke.slice(1)),ke)),qe=(Te=(W=(va=($a=(la=j==null?void 0:j.compData)==null?void 0:la.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:$a.contents)==null?void 0:va[0])==null?void 0:W[0])==null?void 0:Te.label,fe=(we=(Ie=j==null?void 0:j.compData)==null?void 0:Ie.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:we.contents;if(Qe)(Qe==null?void 0:Qe.length)===0?R[j.name]=R!=null&&R[j.name]?R[j.name]:de.tableToForm(He,fe):R[qe]=de.tableToForm(He,fe);else{const ke=[];fe=fe.slice(1,fe.length-1),fe==null||fe.forEach((da,La)=>{He==null||He.forEach(dl=>{ke.push({key:da.label+dl[0],value:dl[La+1]})})}),R["form"+J]=ke}}else{const Qe=(oa=(wa=j.compData)==null?void 0:wa.find(qe=>(qe==null?void 0:qe.key)==="formContent"))==null?void 0:oa.contents;R!=null&&R.form||(R.form=[]);const He=[];Qe==null||Qe.forEach(qe=>{qe.key!==""&&(qe={key:(qe==null?void 0:qe.key)??(qe==null?void 0:qe.label),value:qe==null?void 0:qe.value},He.push(qe))}),R.form=[...He,...A.cloneDeep(R==null?void 0:R.form)]}}),R}else{if(he==="createInsofDataApi"){let R=(oe=A.cloneDeep(N))==null?void 0:oe[0];return R={comp:(ze=A.cloneDeep(R))==null?void 0:ze.comp,compData:(Ke=A.cloneDeep(R))==null?void 0:Ke.compData,name:(ca=A.cloneDeep(R))==null?void 0:ca.name,isShow:(Ya=A.cloneDeep(R))==null?void 0:Ya.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:E.value},value:{pageData:R}}}return he}},me=async(he,N,ie)=>{var Oe,Fe,ea;let U=await de.getItemData(N,sessionStorage.getItem("systemKey"),""),De=U==null?void 0:U.find(Ba=>(Ba==null?void 0:Ba.name)===(ie==null?void 0:ie[0]));if(De){if((De==null?void 0:De.comp)==="Table"){let Ba={};for(let ze in A.cloneDeep(he))A.cloneDeep(he)[ze]!=="loginUser"?Ba[ze]=A.cloneDeep(he)[ze]:Ba[ze]=((Oe=b.value)==null?void 0:Oe.account)||((Fe=b.value)==null?void 0:Fe.账号);let ee=[],ua=Ba;Array.isArray(he)||(ua=[Ba]),ua==null||ua.forEach(ze=>{ee.push({[ze[ie[1]]]:ze})});let ue=[],sa=ee==null?void 0:ee.map(ze=>{var Ke;return(Ke=Object.keys(ze))==null?void 0:Ke[0]});U==null||U.forEach(ze=>{var Ke;(ze==null?void 0:ze.name)===(ie==null?void 0:ie[0])&&((Ke=ze==null?void 0:ze.compData)==null||Ke.forEach(ca=>{var Ya;(ca==null?void 0:ca.key)==="tableContents"&&((Ya=ca==null?void 0:ca.contents)==null||Ya.forEach(R=>{R!=null&&R.some(j=>sa.includes(j))&&ue.push({[R.find(j=>j.id).id]:R.find(j=>sa.includes(j))})}))}))});let Se=ue==null?void 0:ue.map(ze=>{var Ke;return(Ke=Object.keys(ze))==null?void 0:Ke[0]}),oe=[];if(Se==null||Se.forEach(ze=>{var Ya;let Ke=(Ya=ue==null?void 0:ue.find(R=>{var j;return((j=Object.keys(R))==null?void 0:j[0].toString())===ze.toString()}))==null?void 0:Ya[ze],ca=ee==null?void 0:ee.find(R=>{var j;return((j=Object.keys(R))==null?void 0:j[0])===Ke});oe.push({id:parseInt(ze),value:{tableData:ca[Ke]}})}),(oe==null?void 0:oe.length)>0)return oe}else if((De==null?void 0:De.comp)==="Form"){let Ba=A.cloneDeep(De);Ba.compData=(ea=Ba.compData)==null?void 0:ea.map(ue=>{var sa;return(ue==null?void 0:ue.key)==="formContent"&&(ue.contents=(sa=ue.contents)==null?void 0:sa.map(Se=>((Se==null?void 0:Se.key)===(ie==null?void 0:ie[1])&&(Se.value=(he==null?void 0:he[Se==null?void 0:Se.prop])||he),Se))),ue});let ee={};for(let ue in Ba)ue!=="id"&&(ee[ue]=Ba[ue]);let ua=[];if(ua.push({id:De==null?void 0:De.id,keyType:ie==null?void 0:ie[1],value:{pageData:ee}}),(ua==null?void 0:ua.length)>0)return ua}}},Me=async(he,N,ie)=>{var Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe;let U=await de.getItemData(N,sessionStorage.getItem("systemKey"),""),De=U==null?void 0:U.find(ze=>(ze==null?void 0:ze.name)===(ie==null?void 0:ie[0]));if(De){if((De==null?void 0:De.comp)==="Table"){let ze={};for(let Ke in A.cloneDeep(he))A.cloneDeep(he)[Ke]!=="loginUser"?ze[Ke]=A.cloneDeep(he)[Ke]:ze[Ke]=((Oe=b.value)==null?void 0:Oe.account)||((Fe=b.value)==null?void 0:Fe.账号);await Mr.createInsofDataApi({key:{type:"data",pageKey:N,tableId:De==null?void 0:De.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ze}})}else if((De==null?void 0:De.comp)==="Form"){let ze=A.cloneDeep(De),Ke=Object.keys(he),ca="";(Ba=(ea=A.cloneDeep(ze))==null?void 0:ea.compData)==null||Ba.forEach(pe=>{var ya,aa;(pe==null?void 0:pe.key)==="formContent"&&((aa=(ya=A.cloneDeep(pe))==null?void 0:ya.contents)==null||aa.forEach(ce=>{var ga;Ke.includes(ce==null?void 0:ce.key)&&(ce==null?void 0:ce.value)===((ga=b.value)==null?void 0:ga.姓名)&&(ca=ce==null?void 0:ce.key)}))});let Ya=[];(ee=Object.values(he[ca]))==null||ee.forEach(pe=>{pe!=null&&pe.includes("(")&&Ya.push(pe)}),Ya=[...new Set(Ya)];const R=Ya==null?void 0:Ya.map(async pe=>{var Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa;let ya="";($a=(la=(Ca=(Na=(Je=(Ae=A.cloneDeep(pe))==null?void 0:Ae.split("("))==null?void 0:Je[1])==null?void 0:Na.split(")"))==null?void 0:Ca[0])==null?void 0:la.split(":"))==null||$a.forEach(oa=>{ya=ya===""?ya+oa.replaceAll("'",""):ya+"/"+oa.replaceAll("'","")});let aa=[];(wa=(we=(Ie=(Te=(W=(va=A.cloneDeep(pe))==null?void 0:va.split("<"))==null?void 0:W[1])==null?void 0:Te.split(">"))==null?void 0:Ie[0])==null?void 0:we.split(":"))==null||wa.forEach(oa=>{aa.push(oa.replaceAll("'",""))});const ce=await de.getItemData(ya,sessionStorage.getItem("systemKey"),"");let ga="";return ce==null||ce.forEach(oa=>{var Qe;oa.name===(aa==null?void 0:aa[0])&&((Qe=oa==null?void 0:oa.compData)==null||Qe.forEach(He=>{var qe;(He==null?void 0:He.key)==="formContent"&&((qe=He.contents)==null||qe.forEach(fe=>{(fe==null?void 0:fe.key)===(aa==null?void 0:aa[1])&&(ga=fe==null?void 0:fe.value)}))}))}),{[pe]:ga}}),j=await Promise.all(R);ze.compData=(ue=(ua=A.cloneDeep(ze))==null?void 0:ua.compData)==null?void 0:ue.map(pe=>{var ya,aa;return(pe==null?void 0:pe.key)==="formContent"&&(pe.contents=(aa=(ya=A.cloneDeep(pe))==null?void 0:ya.contents)==null?void 0:aa.map(ce=>{var ga,Ae,Je,Na;return(ga=he[ca])!=null&&ga[ce==null?void 0:ce.key]&&(he[ca][ce==null?void 0:ce.key].includes("(")?ce.value=(Ae=j==null?void 0:j.find(Ca=>{var la;return((la=Object.keys(Ca))==null?void 0:la[0])===he[ca][ce==null?void 0:ce.key]}))==null?void 0:Ae[he[ca][ce==null?void 0:ce.key]]:ce.value=(Na=(Je=A.cloneDeep(he))==null?void 0:Je[ca])==null?void 0:Na[ce==null?void 0:ce.key]),ce})),pe});const J=await Mr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let ve="";((sa=J==null?void 0:J.data)==null?void 0:sa.type)==="success"&&((oe=(Se=J==null?void 0:J.data)==null?void 0:Se.result)==null||oe.forEach(pe=>{var ya,aa;((aa=(ya=pe==null?void 0:pe.value)==null?void 0:ya.pageData)==null?void 0:aa.name)===(ie==null?void 0:ie[0])&&(ve=pe.id)}),await Mr.updateInsofDataApi({id:ve,value:{pageData:ze}}))}}},F=(he,N="",ie={})=>{for(const[U,De]of Object.entries(he)){const Oe=N?`${N}.${U}`:U;De!==null&&typeof De=="object"&&!Array.isArray(De)&&Object.prototype.toString.call(De)!=="[object Date]"?F(De,Oe,ie):ie[Oe]=De}return ie},te=async(he,N,ie,U)=>{var Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na;let De=await de.getItemData(N,sessionStorage.getItem("systemKey"),""),Oe=De==null?void 0:De.find(Ca=>(Ca==null?void 0:Ca.name)===(ie==null?void 0:ie[0]));if(Oe){if(!(ie!=null&&ie[1])&&(Oe==null?void 0:Oe.comp)==="Table"){let Ca={},la=[],$a=(ea=(Fe=Oe==null?void 0:Oe.compData)==null?void 0:Fe.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:ea.contents;$a!=null&&$a.every(Te=>Array.isArray(Te))?la=(ee=de.getColumnChild((Ba=$a==null?void 0:$a[0])==null?void 0:Ba.filter(Te=>(Te==null?void 0:Te.label)!=="操作")))==null?void 0:ee.map(Te=>Te==null?void 0:Te.prop):la=$a==null?void 0:$a.map(Te=>Te==null?void 0:Te.label);for(let Te in A.cloneDeep(he))if(A.cloneDeep(he)[Te]!=="loginUser"){let Ie=F(A.cloneDeep(he)[Te]),we={};for(let wa in Ie)if(la!=null&&la.find(oa=>oa===wa))we[wa]=Ie[wa];else if(la!=null&&la.find(oa=>(oa==null?void 0:oa.toUpperCase())===(wa==null?void 0:wa.toUpperCase()))){let oa=la==null?void 0:la.find(Qe=>(Qe==null?void 0:Qe.toUpperCase())===(wa==null?void 0:wa.toUpperCase()));we[oa]=Ie[wa]}Ca[Te]=we}else Ca[Te]=((ua=b.value)==null?void 0:ua.account)||((ue=b.value)==null?void 0:ue.账号);let va=await Mr.getInsofDataApi({keyLikes:{tableId:Oe==null?void 0:Oe.id}});if(((Se=(sa=va==null?void 0:va.data)==null?void 0:sa.result)==null?void 0:Se.length)>0){let Te=(ze=(oe=va==null?void 0:va.data)==null?void 0:oe.result)==null?void 0:ze.map(Ie=>Ie==null?void 0:Ie.id);(Te==null?void 0:Te.length)>0&&await Mr.batchDeleteInsofDataApi({ids:Te})}let W=[];if((Ke=Oe==null?void 0:Oe.compData)!=null&&Ke.find(Te=>(Te==null?void 0:Te.key)==="pageColumn")&&((R=(Ya=(ca=Oe==null?void 0:Oe.compData)==null?void 0:ca.find(Te=>(Te==null?void 0:Te.key)==="pageColumn"))==null?void 0:Ya.contents)!=null&&R.includes("["))){const Te=await Mr.getInsofDataApi({id:Oe==null?void 0:Oe.tableId});let Ie=((pe=(ve=(J=(j=Te==null?void 0:Te.data)==null?void 0:j.result)==null?void 0:J[0])==null?void 0:ve.key)==null?void 0:pe.pageKey)??"";(ya=Object.values(Ca))==null||ya.forEach(we=>{W.push({key:{type:"data",pageKey:Ie,tableId:Oe==null?void 0:Oe.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:we}})})}else(aa=Object.values(Ca))==null||aa.forEach(Te=>{W.push({key:{type:"data",pageKey:N,tableId:Oe==null?void 0:Oe.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Te}})});(W==null?void 0:W.length)>0&&await Mr.batchAddInsofDataApi({dataList:W})}else if(!(ie!=null&&ie[1])&&(Oe==null?void 0:Oe.comp)==="Form"){let Ca=A.cloneDeep(Oe);Ca.compData=(ga=(ce=A.cloneDeep(Ca))==null?void 0:ce.compData)==null?void 0:ga.map(va=>{var W,Te;return(va==null?void 0:va.key)==="formContent"&&(va.contents=(Te=(W=A.cloneDeep(va))==null?void 0:W.contents)==null?void 0:Te.map(Ie=>{var we,wa;return(we=A.cloneDeep(he))!=null&&we[Ie==null?void 0:Ie.key]&&(Ie.value=(wa=A.cloneDeep(he))==null?void 0:wa[Ie==null?void 0:Ie.key]),Ie})),va});const la=await Mr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let $a="";((Ae=la==null?void 0:la.data)==null?void 0:Ae.type)==="success"&&((Na=(Je=la==null?void 0:la.data)==null?void 0:Je.result)==null||Na.forEach(va=>{var W,Te;((Te=(W=va==null?void 0:va.value)==null?void 0:W.pageData)==null?void 0:Te.name)===(ie==null?void 0:ie[0])&&($a=va.id)}),await Mr.updateInsofDataApi({id:$a,value:{pageData:Ca}}))}}},Z=async he=>{var N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe;u.setImportLoading(!0);try{if(he.api){let ze=new WeakMap,Ke=await de.getItemData((w==null?void 0:w.value)===""?E.value:w==null?void 0:w.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze),ca="";if(Ke=Ke==null?void 0:Ke.map(aa=>{var ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie;if((aa==null?void 0:aa.comp)==="Form")aa.compData=(ce=aa.compData)==null?void 0:ce.map(we=>{var wa;return(we==null?void 0:we.key)==="formContent"&&(we.contents=(wa=we.contents)==null?void 0:wa.map(oa=>{var Qe;if((oa==null?void 0:oa.value)===""&&(oa==null?void 0:oa.type)==="Select"){let He=de.judgeContents((Qe=A.cloneDeep(oa))==null?void 0:Qe.optionUrl,ze);oa.value=oa.value||He}return oa})),we});else if((aa==null?void 0:aa.comp)==="Table"&&(ga=aa.compData)!=null&&ga.find(we=>(we==null?void 0:we.key)==="pageColumn")){let we=(Je=(Ae=aa.compData)==null?void 0:Ae.find(He=>(He==null?void 0:He.key)==="pageColumn"))==null?void 0:Je.contents,wa=((Ca=(Na=aa.compData)==null?void 0:Na.find(He=>(He==null?void 0:He.key)==="pageGroup"))==null?void 0:Ca.contents)??"",oa=(va=($a=(la=we==null?void 0:we.split("["))==null?void 0:la[1])==null?void 0:$a.split("]"))==null?void 0:va[0];ca=((W=we==null?void 0:we.split("["))==null?void 0:W[0])+((Ie=(Te=I.value)==null?void 0:Te.find(He=>(He==null?void 0:He.key)===oa))==null?void 0:Ie.value)}return aa}),!(ca===""||ca==="")){const aa=await de.getItemData(ca,sessionStorage.getItem("systemKey"),"",!1,"","",ze);Ke=Ke==null?void 0:Ke.map(ce=>{var ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa;if((ce==null?void 0:ce.comp)==="Table"&&(ga=ce.compData)!=null&&ga.find(oa=>(oa==null?void 0:oa.key)==="pageColumn")){let oa=(Je=(Ae=ce.compData)==null?void 0:Ae.find(ke=>(ke==null?void 0:ke.key)==="pageColumn"))==null?void 0:Je.contents,Qe=((Ca=(Na=ce.compData)==null?void 0:Na.find(ke=>(ke==null?void 0:ke.key)==="pageGroup"))==null?void 0:Ca.contents)??"",He=(va=($a=(la=oa==null?void 0:oa.split("["))==null?void 0:la[1])==null?void 0:$a.split("]"))==null?void 0:va[0],qe=((W=oa==null?void 0:oa.split("["))==null?void 0:W[0])+((Ie=(Te=I.value)==null?void 0:Te.find(ke=>(ke==null?void 0:ke.key)===He))==null?void 0:Ie.value),fe=(we=aa==null?void 0:aa.find(ke=>(ke==null?void 0:ke.name)===(Qe===""?o==null?void 0:o.compName:Qe)))==null?void 0:we.compData;ce.compData=(wa=ce.compData)==null?void 0:wa.map(ke=>{var da;return(ke==null?void 0:ke.key)==="tableContents"&&(ke.contents=(da=fe==null?void 0:fe.find(La=>(La==null?void 0:La.key)==="tableContents"))==null?void 0:da.contents),ke})}return ce})}let Ya={};if(((ie=(N=he==null?void 0:he.extraValues)==null?void 0:N.input)==null?void 0:ie.length)>0){const aa=(De=(U=he==null?void 0:he.extraValues)==null?void 0:U.input)==null?void 0:De.map(async ce=>{var ga;se!=null&&se.find(Ae=>Ae===ce)?Ya=await X(ce,Ke):Ya[Object.keys(ce)[0]]=await X((ga=Object.values(ce))==null?void 0:ga[0],Ke,ze)});await Promise.all(aa)}else Ya=await X("/",Ke);let R=!1;(Fe=(Oe=he==null?void 0:he.extraValues)==null?void 0:Oe.output)==null||Fe.forEach(aa=>{var ce,ga;(ga=(ce=Object.values(aa))==null?void 0:ce[0])!=null&&ga.includes(".doc")&&(R=!0)});let j;if(R){const aa=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});j=await Ua.axios.post(he.api,Ya,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{aa.close()})}else j=await Ua.axios.post(he.api,Ya,{headers:{"Content-Type":"application/json"}});let J=(ua=(ee=(Ba=(ea=A.cloneDeep(he))==null?void 0:ea.extraValues)==null?void 0:Ba.output)==null?void 0:ee.map(aa=>{var ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa,Qe;if(!((ga=(ce=Object.values(aa))==null?void 0:ce[0])!=null&&ga.includes(".doc"))){let He=(W=(va=($a=(Je=A.cloneDeep((Ae=Object.values(aa))==null?void 0:Ae[0]))==null?void 0:Je.split("["))==null?void 0:$a[((la=(Ca=A.cloneDeep((Na=Object.values(aa))==null?void 0:Na[0]))==null?void 0:Ca.split("["))==null?void 0:la.length)-1])==null?void 0:va.split("]"))==null?void 0:W[0],qe=He==null?void 0:He.split(":"),fe=(we=A.cloneDeep((Te=Object.values(aa))==null?void 0:Te[0]))==null?void 0:we.substring(0,A.cloneDeep((Ie=Object.values(aa))==null?void 0:Ie[0]).lastIndexOf("["));if(fe=(oa=A.cloneDeep(fe))==null?void 0:oa.slice(0,((wa=A.cloneDeep(fe))==null?void 0:wa.length)-1),fe!=null&&fe.includes("[")){let ke="";if((Qe=de.contentTransArrayToAll(fe,"/"))==null||Qe.forEach(da=>{var La,dl,Ol,sl,Fl,Fa,Vl;if(!(da!=null&&da.includes("[")))ke=ke===""?ke+da.replaceAll("/",""):ke+"/"+da.replaceAll("/","");else{let zl=A.cloneDeep(da).slice(1,((La=A.cloneDeep(da))==null?void 0:La.length)-1),Aa=(Fa=(Fl=(sl=(Ol=(dl=A.cloneDeep(zl))==null?void 0:dl.split("["))==null?void 0:Ol[1])==null?void 0:sl.split("]"))==null?void 0:Fl[0])==null?void 0:Fa.split(":"),rl="",nl=(Vl=Ke==null?void 0:Ke.find(ul=>(ul==null?void 0:ul.name)===(Aa==null?void 0:Aa[0])))==null?void 0:Vl.compData;nl==null||nl.forEach(ul=>{var Ra;(ul==null?void 0:ul.key)==="formContent"&&((Ra=ul==null?void 0:ul.contents)==null||Ra.forEach(cl=>{(cl==null?void 0:cl.key)===(Aa==null?void 0:Aa[1])&&(rl=cl==null?void 0:cl.value)}))}),ke=ke===""?ke+rl.replaceAll("/",""):ke+"/"+rl.replaceAll("/","")}}),fe=ke,fe[(fe==null?void 0:fe.length)-1]!=="/")return fe}}}))==null?void 0:ua.filter(aa=>aa);J=[...new Set(A.cloneDeep(J))];let ve=J==null?void 0:J.map(async aa=>{let ce=await de.getItemData(aa,sessionStorage.getItem("systemKey"),"",!1,"","",ze);if((ce==null?void 0:ce.length)===0)return await de.getParentContents(aa)});await Promise.all(ve);let pe=[],ya=(Se=(sa=(ue=A.cloneDeep(he))==null?void 0:ue.extraValues)==null?void 0:sa.output)==null?void 0:Se.map(async aa=>{var $a,va,W,Te,Ie,we,wa,oa,Qe,He,qe,fe,ke,da,La,dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll,Ne,Ue,na,re,ia,Va,Le,ja,Ma,il,We,pa,ma,ka,_e,Tl,Jl,rr,er,pr,Gl,Re,jl,fr,Tr,hr,Hl,Lr,Pl,Nr,Ur,wr,ql,ln,_r,Ql,Vr,Ir,Rr,vn,tn;if((va=($a=Object.values(aa))==null?void 0:$a[0])!=null&&va.includes(".doc")){var ce=new Blob([j.data],{type:"application/octet-stream;charset=UTF-8"}),ga=j.headers["content-disposition"],Ae=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Je=Ae.exec(ga),Na=Je==null?void 0:Je[1],Ca=document.createElement("a"),la=window.URL.createObjectURL(ce);h.value=[{name:Na,blobUrl:la}],s.value=!0}else{let mn=(He=(Qe=(oa=(Te=A.cloneDeep((W=Object.values(aa))==null?void 0:W[0]))==null?void 0:Te.split("["))==null?void 0:oa[((wa=(we=A.cloneDeep((Ie=Object.values(aa))==null?void 0:Ie[0]))==null?void 0:we.split("["))==null?void 0:wa.length)-1])==null?void 0:Qe.split("]"))==null?void 0:He[0],nr=mn==null?void 0:mn.split(":"),vr=(ke=A.cloneDeep((qe=Object.values(aa))==null?void 0:qe[0]))==null?void 0:ke.substring(0,A.cloneDeep((fe=Object.values(aa))==null?void 0:fe[0]).lastIndexOf("["));if(vr!=null&&vr.includes("[")?vr=(La=A.cloneDeep(vr))==null?void 0:La.slice(0,((da=A.cloneDeep(vr))==null?void 0:da.length)-1):vr===""&&(vr=E.value),vr=vr.replaceAll("<","[").replaceAll(">","]"),vr!=null&&vr.includes("[")){let hl="";(dl=de.contentTransArrayToAll(vr,"/"))==null||dl.forEach((ir,Ll)=>{var xr,Sl,ar,Br,xn,Nn,wn,Un,Ln,_n,An;if(!(ir!=null&&ir.includes("[")))hl=hl===""?hl+ir.replaceAll("/",""):hl+"/"+ir.replaceAll("/","");else{let Rn="",rn="";(xr=A.cloneDeep(ir))!=null&&xr.includes("]")?(Rn=A.cloneDeep(ir).slice(1,((Sl=A.cloneDeep(ir))==null?void 0:Sl.length)-1),rn=(wn=(Nn=(xn=(Br=(ar=A.cloneDeep(Rn))==null?void 0:ar.split("["))==null?void 0:Br[1])==null?void 0:xn.split("]"))==null?void 0:Nn[0])==null?void 0:wn.split(":")):(Rn=A.cloneDeep(ir).slice(1,(Un=A.cloneDeep(ir))==null?void 0:Un.length),rn=(Ln=A.cloneDeep(Rn))==null?void 0:Ln.split("/"));let zn="",qn=(_n=Ke==null?void 0:Ke.find(Pr=>(Pr==null?void 0:Pr.name)===(rn==null?void 0:rn[0])))==null?void 0:_n.compData;qn==null||qn.forEach(Pr=>{var Wn;(Pr==null?void 0:Pr.key)==="formContent"&&((Wn=Pr==null?void 0:Pr.contents)==null||Wn.forEach(yn=>{(yn==null?void 0:yn.key)===(rn==null?void 0:rn[1])&&(zn=yn==null?void 0:yn.value)}))}),((An=de.contentTransArrayToAll(vr,"/"))==null?void 0:An.length)-1!==Ll?hl=hl===""?hl+zn.replaceAll("/",""):hl+"/"+zn.replaceAll("/",""):hl=hl+r.value+zn.replaceAll("/","")}}),(Ol=E.value)!=null&&Ol.includes(hl)?vr=E.value:vr=hl}let jr=A.cloneDeep((sl=Object.keys(aa))==null?void 0:sl[0]);if(((Fl=j==null?void 0:j.data)==null?void 0:Fl.statusCode)===200||((Fa=j==null?void 0:j.data)==null?void 0:Fa.code)===200){if(((zl=(Vl=j==null?void 0:j.data)==null?void 0:Vl.data)!=null&&zl[jr]||(rl=(Aa=j==null?void 0:j.data)==null?void 0:Aa.result)!=null&&rl[jr])&&(nr==null?void 0:nr.length)===1)return await te(((ul=(nl=j==null?void 0:j.data)==null?void 0:nl.data)==null?void 0:ul[jr])||((cl=(Ra=j==null?void 0:j.data)==null?void 0:Ra.result)==null?void 0:cl[jr]),A.cloneDeep(vr),nr,ca);if((Ne=(ll=j==null?void 0:j.data)==null?void 0:ll.data)!=null&&Ne[jr]||(na=(Ue=j==null?void 0:j.data)==null?void 0:Ue.result)!=null&&na[jr]){let hl=await me(((ia=(re=j==null?void 0:j.data)==null?void 0:re.data)==null?void 0:ia[jr])||((Le=(Va=j==null?void 0:j.data)==null?void 0:Va.result)==null?void 0:Le[jr]),A.cloneDeep(vr),nr);return hl&&(pe=[...pe,...hl]),hl}else{if(!((ja=j==null?void 0:j.data)!=null&&ja.data)){let hl=await de.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze);hl=hl==null?void 0:hl.map(Ll=>{var xr;return(Ll==null?void 0:Ll.name)===(nr==null?void 0:nr[0])&&(Ll.compData=(xr=Ll.compData)==null?void 0:xr.map(Sl=>{var ar;return(Sl==null?void 0:Sl.key)==="formContent"&&(Sl.contents=(ar=Sl.contents)==null?void 0:ar.map(Br=>{var xn,Nn;return(Br==null?void 0:Br.key)===(nr==null?void 0:nr[1])&&(Br.value=(Nn=(xn=j==null?void 0:j.data)==null?void 0:xn.result)==null?void 0:Nn[jr==null?void 0:jr.replaceAll(":","")]),Br})),Sl})),Ll});let ir=[];(Ma=hl==null?void 0:hl.filter(Ll=>(Ll==null?void 0:Ll.comp)==="Form"))==null||Ma.forEach(async Ll=>{let xr={};for(let Sl in Ll)Sl!=="id"&&(xr[Sl]=Ll[Sl]);ir.push({id:Ll==null?void 0:Ll.id,value:{pageData:xr}})}),(ir==null?void 0:ir.length)>0&&await Mr.batchUpdateInsofDataApi({dataList:ir});return}if((nr==null?void 0:nr.length)===1){const hl=(pa=(We=(il=j==null?void 0:j.data)==null?void 0:il.data)==null?void 0:We.path)==null?void 0:pa.path;let ir="";(Jl=(Tl=(_e=(ka=(ma=hl==null?void 0:hl.split("("))==null?void 0:ma[1])==null?void 0:ka.split(")"))==null?void 0:_e[0])==null?void 0:Tl.split(":"))==null||Jl.forEach(Sl=>{var ar,Br;ir=ir===""?ir+((ar=Sl==null?void 0:Sl.replaceAll("'",""))==null?void 0:ar.trim()):ir+"/"+((Br=Sl==null?void 0:Sl.replaceAll("'",""))==null?void 0:Br.trim())});let Ll=[(Re=(Gl=(pr=(er=(rr=hl==null?void 0:hl.split("<"))==null?void 0:rr[1])==null?void 0:er.split(">"))==null?void 0:pr[0])==null?void 0:Gl.replaceAll("'",""))==null?void 0:Re.trim()],xr;return(Tr=(fr=(jl=j==null?void 0:j.data)==null?void 0:jl.data)==null?void 0:fr.data)!=null&&Tr[nr==null?void 0:nr[0]]?xr=await te((Lr=(Hl=(hr=j==null?void 0:j.data)==null?void 0:hr.data)==null?void 0:Hl.data)==null?void 0:Lr[nr==null?void 0:nr[0]],ir,nr,ca):xr=await Me((Nr=(Pl=j==null?void 0:j.data)==null?void 0:Pl.data)==null?void 0:Nr.data,ir,Ll,ze),xr}else{const hl=(ql=(wr=(Ur=j==null?void 0:j.data)==null?void 0:Ur.data)==null?void 0:wr.path)==null?void 0:ql.path;let ir="";return(Ir=(Vr=(Ql=(_r=(ln=hl==null?void 0:hl.split("("))==null?void 0:ln[1])==null?void 0:_r.split(")"))==null?void 0:Ql[0])==null?void 0:Vr.split(":"))==null||Ir.forEach(xr=>{var Sl,ar;ir=ir===""?ir+((Sl=xr==null?void 0:xr.replaceAll("'",""))==null?void 0:Sl.trim()):ir+"/"+((ar=xr==null?void 0:xr.replaceAll("'",""))==null?void 0:ar.trim())}),await me((tn=(vn=(Rr=j==null?void 0:j.data)==null?void 0:Rr.data)==null?void 0:vn.data)==null?void 0:tn[nr==null?void 0:nr[0]],ir,nr)}}}}});if(await Promise.all(ya),(pe==null?void 0:pe.length)>0){let aa=[];pe==null||pe.forEach(Ae=>{aa!=null&&aa.find(Je=>{var Na,Ca,la,$a;return((Ca=(Na=Je==null?void 0:Je.value)==null?void 0:Na.pageData)==null?void 0:Ca.name)===(($a=(la=Ae==null?void 0:Ae.value)==null?void 0:la.pageData)==null?void 0:$a.name)})||aa.push(Ae)});let ce=[];aa==null||aa.forEach(Ae=>{var Ca,la,$a,va;let Je=A.cloneDeep(Ae);Je.value.pageData.compData=(Ca=Je.value.pageData.compData)==null?void 0:Ca.map(W=>{var Te;return(W==null?void 0:W.key)==="formContent"&&(W.contents=(Te=W.contents)==null?void 0:Te.map(Ie=>{var wa,oa,Qe,He;let we=(wa=A.cloneDeep(pe))==null?void 0:wa.find(qe=>(qe==null?void 0:qe.keyType)===(Ie==null?void 0:Ie.key));if(we){let qe=(He=(Qe=(oa=we.value.pageData.compData)==null?void 0:oa.find(fe=>(fe==null?void 0:fe.key)==="formContent"))==null?void 0:Qe.contents)==null?void 0:He.find(fe=>(fe==null?void 0:fe.key)===(Ie==null?void 0:Ie.key));Ie.value=qe==null?void 0:qe.value}return Ie})),W}),ce.push({id:Je==null?void 0:Je.id,value:Je==null?void 0:Je.value});let Na=[];(va=($a=(la=Je==null?void 0:Je.value)==null?void 0:la.pageData)==null?void 0:$a.compData)==null||va.forEach(W=>{var Te;(W==null?void 0:W.key)==="formContent"&&((Te=W==null?void 0:W.contents)==null||Te.forEach(Ie=>{var we,wa,oa,Qe,He,qe;if((wa=(we=Ie==null?void 0:Ie.optionUrl)==null?void 0:we.menuSelect)!=null&&wa.find(fe=>fe==null?void 0:fe.includes("[")))if(Na!=null&&Na.find(fe=>{var ke,da,La;return((ke=fe==null?void 0:fe.key)==null?void 0:ke.join(","))===((La=(da=Ie==null?void 0:Ie.optionUrl)==null?void 0:da.menuSelect)==null?void 0:La.join(","))})){let fe=(oa=Na==null?void 0:Na.find(ke=>{var da,La,dl;return((da=ke==null?void 0:ke.key)==null?void 0:da.join(","))===((dl=(La=Ie==null?void 0:Ie.optionUrl)==null?void 0:La.menuSelect)==null?void 0:dl.join(","))}))==null?void 0:oa.value;fe.push({key:Ie==null?void 0:Ie.prop,groups:(Qe=Ie==null?void 0:Ie.optionUrl)==null?void 0:Qe.groupSelect,value:Ie==null?void 0:Ie.value}),Na=Na==null?void 0:Na.map(ke=>{var da,La,dl;return((da=ke==null?void 0:ke.key)==null?void 0:da.join(","))===((dl=(La=Ie==null?void 0:Ie.optionUrl)==null?void 0:La.menuSelect)==null?void 0:dl.join(","))&&(ke.value=fe),ke})}else Na.push({key:(He=Ie==null?void 0:Ie.optionUrl)==null?void 0:He.menuSelect,value:[{key:Ie==null?void 0:Ie.prop,groups:(qe=Ie==null?void 0:Ie.optionUrl)==null?void 0:qe.groupSelect,value:Ie==null?void 0:Ie.value}]})}))}),(Na==null?void 0:Na.length)>0&&(Na=Na==null?void 0:Na.map(W=>{var Ie;let Te="";return(Ie=W==null?void 0:W.key)==null||Ie.forEach(we=>{var wa;if(!(we!=null&&we.includes("[")))Te=Te===""?Te+we:Te+"/"+we;else{let oa="",Qe=(wa=we==null?void 0:we.replaceAll("[","").replaceAll("]",""))==null?void 0:wa.split(":");Ke==null||Ke.forEach(He=>{var qe;(He==null?void 0:He.name)===(Qe==null?void 0:Qe[0])&&((qe=He==null?void 0:He.compData)==null||qe.forEach(fe=>{var ke;(fe==null?void 0:fe.key)==="formContent"&&((ke=fe==null?void 0:fe.contents)==null||ke.forEach(da=>{(da==null?void 0:da.prop)===(Qe==null?void 0:Qe[1])&&(oa=da==null?void 0:da.value)}))}))}),Te=Te+r.value+oa}}),W.key=Te,W})),Na==null||Na.forEach(W=>{var wa,oa,Qe;let Te=(wa=ze[W.key])==null?void 0:wa.find(He=>{var qe,fe,ke,da,La,dl,Ol;return((fe=(qe=He==null?void 0:He.value)==null?void 0:qe.pageData)==null?void 0:fe.name)===((La=(da=(ke=W==null?void 0:W.value)==null?void 0:ke[0])==null?void 0:da.groups)==null?void 0:La[0])&&((Ol=(dl=He==null?void 0:He.value)==null?void 0:dl.pageData)==null?void 0:Ol.name)!==void 0}),Ie=Te==null?void 0:Te.id,we=(oa=Te==null?void 0:Te.value)==null?void 0:oa.pageData;we.compData=(Qe=we.compData)==null?void 0:Qe.map(He=>{var qe;return(He==null?void 0:He.key)==="formContent"&&(He.contents=(qe=He.contents)==null?void 0:qe.map(fe=>{var da;let ke=(da=W.value)==null?void 0:da.find(La=>(La==null?void 0:La.key)===(fe==null?void 0:fe.prop));return ke&&(fe.value=ke.value),fe})),He}),ce.push({id:Ie,value:{pageData:we}})})});let ga=(oe=A.cloneDeep(pe))==null?void 0:oe[0];(ce==null?void 0:ce.length)>0&&await Mr.batchUpdateInsofDataApi({dataList:ce})}m.setFreshContent(!0)}u.setImportLoading(!1)}catch{Ua.ElMessage.error("方法执行错误,请查看方法!"),u.setImportLoading(!1)}_.value=!0},se=["createInsofDataApi"],Be=Bl.debounce(async he=>{Z(he)},100),Ve=async he=>{var Fe,ea,Ba;const N=A.cloneDeep(he);let ie,U=new WeakMap;he!=null&&he[0].path&&(ie=await(N==null?void 0:N.map(async(ee,ua)=>{var Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a;const sa=(Ya=U[ee==null?void 0:ee.path])==null?void 0:Ya.filter(va=>{var W;return((W=va==null?void 0:va.key)==null?void 0:W.type)==="data"});let Se="";const oe=await de.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);sa==null||sa.forEach(va=>{var W,Te,Ie,we,wa;((Te=(W=va==null?void 0:va.value)==null?void 0:W.tableData)==null?void 0:Te.算法名称)===((Ie=N==null?void 0:N[ua])==null?void 0:Ie.method)&&(Se=(wa=(we=va==null?void 0:va.value)==null?void 0:we.tableData)==null?void 0:wa.算法体)});const ze=await de.getItemData(ee==null?void 0:ee.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);let Ke="",ca=(ve=(J=(j=(R=ze==null?void 0:ze[0])==null?void 0:R.compData)==null?void 0:j.find(va=>(va==null?void 0:va.key)==="header"))==null?void 0:J.contents)==null?void 0:ve.findIndex(va=>(va==null?void 0:va.prop)==="算法体");return(ya=(pe=ze==null?void 0:ze[0])==null?void 0:pe.compData)==null||ya.forEach(va=>{var W;(va==null?void 0:va.key)==="tableContents"&&((W=va==null?void 0:va.contents)==null||W.forEach(Te=>{Te!=null&&Te.find(Ie=>Ie===(ee==null?void 0:ee.method))&&(Ke=Te[ca])}))}),{buttonName:((aa=N==null?void 0:N[ua])==null?void 0:aa.method)||((Ae=(ga=(ce=sa==null?void 0:sa[0])==null?void 0:ce.value)==null?void 0:ga.tableData)==null?void 0:Ae.算法名称),api:(Se===""?(Ca=(Na=(Je=sa==null?void 0:sa[0])==null?void 0:Je.value)==null?void 0:Na.tableData)==null?void 0:Ca.算法体:Se)||Ke,content:oe==null?void 0:oe.filter(va=>va.comp!=="methodButton"),extraContent:(la=A.cloneDeep(ee.value))==null?void 0:la.slice(1),methodName:(ee==null?void 0:ee.path)??"",extraValues:($a=N==null?void 0:N[ua])==null?void 0:$a.data}})));const De=N==null?void 0:N.map(async ee=>{var ze,Ke,ca,Ya,R,j;const ua=(ze=resAll.data.result)==null?void 0:ze.filter(J=>{var ve,pe,ya;return((ve=J==null?void 0:J.key)==null?void 0:ve.parentTable)===""&&((pe=J==null?void 0:J.key)==null?void 0:pe.type)==="method"&&((ya=J==null?void 0:J.key)==null?void 0:ya.methodName)===J.method}),ue=ua==null?void 0:ua[0],sa=(Ke=resAll.data.result)==null?void 0:Ke.filter(J=>{var ve,pe;return((ve=J==null?void 0:J.key)==null?void 0:ve.type)==="methodData"&&((pe=J==null?void 0:J.key)==null?void 0:pe.tableId)===(ue==null?void 0:ue.id)}),Se=await de.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U),oe=sa==null?void 0:sa[0];return{buttonName:(ca=ue==null?void 0:ue.key)==null?void 0:ca.methodKey,api:(R=(Ya=oe==null?void 0:oe.value)==null?void 0:Ya.tableData)==null?void 0:R[0],content:Se==null?void 0:Se.filter(J=>J.comp!=="methodButton"),extraContent:(j=A.cloneDeep(ee.value))==null?void 0:j.slice(1),methodName:(ee==null?void 0:ee.method)??""}}),Oe=(Fe=he==null?void 0:he[0])!=null&&Fe.path&&((ea=he==null?void 0:he[0])==null?void 0:ea.path)!==""?await Promise.all(ie):await Promise.all(De);l.value=Oe==null?void 0:Oe.filter(ee=>ee==null?void 0:ee.extraContent),(Ba=l.value)==null||Ba.forEach(ee=>{var ua;ee.api===""&&((ua=ee.content)==null||ua.forEach(ue=>{var sa;ue.comp=="Table"&&m.setExtraContents(de.methodTableToContent(ue.compData,(sa=ee.extraContent)==null?void 0:sa[0]))}))})};return e.watch(()=>o.itemData,async()=>{k.value=="view"&&!_.value&&await Ve(A.cloneDeep(o.itemData)),_.value=!1},{immediate:!0,deep:!0}),(he,N)=>{var ie,U,De;return e.unref(k)!=="edit"?(e.openBlock(),e.createElementBlock("div",a4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ie=l.value)==null?void 0:ie.filter(Oe=>(Oe==null?void 0:Oe.buttonName)!=="保存"),Oe=>{var Fe;return e.openBlock(),e.createElementBlock("div",null,[Oe.api!==""?(e.openBlock(),e.createBlock(e.unref(rs._sfc_main),{key:0,disabled:e.unref(H)===e.unref(E)&&!((Fe=Oe==null?void 0:Oe.buttonName)!=null&&Fe.includes("预览")),class:"calculator-content",modelValue:Oe.buttonName,onClickTrigger:ea=>e.unref(Be)(Oe),loading:g.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(K)!==""&&((De=e.unref(E))==null?void 0:De[((U=e.unref(E))==null?void 0:U.length)-1])!==e.unref(r)?(e.openBlock(),e.createBlock(e.unref(rs._sfc_main),{key:0,class:"calculator-content",onClickTrigger:$,modelValue:"保存"})):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(al.ssFilePreview,{key:0,fileDataList:h.value,onDestroy:V},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},r4=Zl._export_sfc(l4,[["__scopeId","data-v-063aa9af"]]),n4={};function i4(a,l){return" 567 "}const o4=Zl._export_sfc(n4,[["render",i4]]),t4={class:"module content"},s4={class:"module data"},c4={class:"module layout"},u4={class:"form-content"},d4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.reactive({visible:!1,width:"40%",title:"签名配置"}),s=e.ref("create"),h=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),p=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),m=e.ref({}),g=e.ref([]),u=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:g.value},{key:"signConfig",contents:m.value}]}),D=I=>{var H;m.value=A.cloneDeep(I),r("change",(H=u())==null?void 0:H.compData)},M=I=>{var H,L;if((I==null?void 0:I.buttonName)==="确认"){const E=A.cloneDeep(I==null?void 0:I.content);switch(s.value){case"create":g.value.push({...E,index:((H=g.value)==null?void 0:H.length)+1});break}r("change",(L=u())==null?void 0:L.compData),o.visible=!1}else o.visible=!1},k=(I,H)=>{var L,E;switch(I){case"create":(L=p.value)==null||L.forEach(x=>{x.value=""}),s.value="create",o.visible=!0;break;case"update":(E=p.value)==null||E.forEach(x=>{x.value=H[x==null?void 0:x.prop]}),s.value="update",o.visible=!0;break;case"delete":g.value.splice(H,1),s.value="delete";break}},K=()=>{o.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,I=>{var H,L;I&&(m.value=((H=I==null?void 0:I.find(E=>E.key==="signConfig"))==null?void 0:H.contents)??{},g.value=((L=I==null?void 0:I.find(E=>E.key==="signTypeList"))==null?void 0:L.contents)??[])},{immediate:!0}),(I,H)=>{const L=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",t4,[H[2]||(H[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:H[0]||(H[0]=x=>k("create"))},{icon:e.withCtx(()=>[e.createVNode(L,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",s4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:w},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.label),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>k("update",{...x,index:w+1})},{default:e.withCtx(()=>H[3]||(H[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>k("delete",w)},{default:e.withCtx(()=>H[4]||(H[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",c4,[e.createVNode(al.ssForm,{rowContents:c.value,onChange:D},null,8,["rowContents"])])]),e.createVNode(Dr.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:K,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",u4,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,key:p.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:h.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),p4=Zl._export_sfc(d4,[["__scopeId","data-v-487e0536"]]),f4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(0),s=e.computed(()=>{var u,D;return(u=n==null?void 0:n.stepConfig)!=null&&u.allowTrigger?o.value:(D=n==null?void 0:n.stepConfig)==null?void 0:D.active}),h=(u,D)=>{o.value=D-1,r("clickStep",u,D)};e.onMounted(()=>{var u;r("clickStep",(u=n==null?void 0:n.stepList)==null?void 0:u[0],0)});const c=u=>al.getComponent(u),p=()=>{var D;const u=(D=n==null?void 0:n.stepList)==null?void 0:D.find((M,k)=>k+1===s.value);return console.log("findStep",u),u?u==null?void 0:u.children:[]},m=u=>{r("clickTrigger",u)},g=u=>{r("changeTrigger",u)};return(u,D)=>{var K,I,H,L,E;const M=e.resolveComponent("el-step"),k=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k,{direction:(K=a.stepConfig)==null?void 0:K.direction,active:s.value,"finish-status":"success",simple:(I=a.stepConfig)==null?void 0:I.simple,"align-center":((H=a.stepConfig)==null?void 0:H.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(x,w)=>(e.openBlock(),e.createBlock(M,{key:w,class:"step-item",onClick:b=>h(x,w+1)},{title:e.withCtx(()=>[e.renderSlot(u.$slots,"title",{title:x==null?void 0:x.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(u.$slots,"description",{descriptions:x==null?void 0:x.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(L=a.stepConfig)!=null&&L.allowTrigger&&((E=a.stepConfig)!=null&&E.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p(),(x,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(x==null?void 0:x.type)),{modelValue:x.value,"onUpdate:modelValue":b=>x.value=b,onClickTrigger:m,onChangeTrigger:g,content:x==null?void 0:x.content},e.createSlots({_:2},[e.renderList(u.$slots,(b,_)=>({name:_,fn:e.withCtx($=>[e.renderSlot(u.$slots,_,e.mergeProps({ref_for:!0},$||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),h4=Zl._export_sfc(f4,[["__scopeId","data-v-fdbd6832"]]),v4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const n=a,r=l,o=e.ref({}),s=e.ref([]),h=(c,p)=>{r("clickStep",c,p)};return e.watch(()=>n==null?void 0:n.itemData,c=>{var u,D,M,k;o.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let p=((u=c==null?void 0:c.find(K=>(K==null?void 0:K.key)==="stepName"))==null?void 0:u.contents)??[],m=[];(M=(D=c==null?void 0:c.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:D.contents)==null||M.forEach(K=>{m.push({label:K==null?void 0:K.label,prop:K==null?void 0:K.prop,name:K==null?void 0:K.prop,type:"text",disabled:!0})});let g=((k=c==null?void 0:c.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:k.contents)??[];p=p==null?void 0:p.map((K,I)=>{let H=m==null?void 0:m.map(L=>{var E;return{...L,value:(E=g==null?void 0:g[I])==null?void 0:E[L==null?void 0:L.prop]}});return{title:K,description:H}}),s.value=p},{immediate:!0,deep:!0}),(c,p)=>{const m=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(h4,{stepConfig:o.value,stepList:s.value,onClickStep:h},{icon:e.withCtx(()=>[e.createVNode(m,{name:"import"})]),title:e.withCtx(({title:g})=>[e.createTextVNode(e.toDisplayString(g),1)]),description:e.withCtx(({descriptions:g})=>[e.createVNode(al.ssForm,{ref:"formRef",rowContents:g,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),m4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,n)=>{const r=e.resolveComponent("el-timeline-item"),o=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(o,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(s,h)=>(e.openBlock(),e.createBlock(r,{key:h,timestamp:s.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"content",{content:s==null?void 0:s.content,timestamp:s==null?void 0:s.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),y4=Zl._export_sfc(m4,[["__scopeId","data-v-4172a886"]]),g4={class:"line-content"},b4={class:"line-time"},k4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,n=e.ref({}),r=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,o=>{var s,h;r.value=(s=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineList"))==null?void 0:s.contents,n.value=(h=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineConfig"))==null?void 0:h.contents},{immediate:!0}),(o,s)=>(e.openBlock(),e.createBlock(y4,{activities:r.value,timeLineConfig:n.value},{content:e.withCtx(({content:h,timestamp:c})=>[e.createElementVNode("span",g4,e.toDisplayString(h),1),e.createElementVNode("span",b4,e.toDisplayString(c),1)]),_:1},8,["activities","timeLineConfig"]))}}),x4=Zl._export_sfc(k4,[["__scopeId","data-v-b4d9deed"]]),w4={class:"tabs-content"},_4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(a,{emit:l}){const n=a,r=l,o=e.ref();e.watch(()=>n==null?void 0:n.itemData,()=>{o.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const s=D=>{r("change",D)},h=(D,M)=>{r("contentChange",D,M)},c=D=>{r("pageChange",D)},p=D=>{r("rowClick",D)},m=(D,M)=>{r("routeUrl",D,M)},g=D=>{r("clickTrigger",D)},u=(D,M)=>{r("clickMainKey",D,M)};return(D,M)=>{var k,K;return e.openBlock(),e.createElementBlock("div",w4,[(k=o.value)!=null&&k.length?(e.openBlock(),e.createBlock(al.ssTab,{tabsContents:o.value,key:(K=o.value)==null?void 0:K.length},{pane:e.withCtx(({tab:I,index:H})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(I==null?void 0:I.comp)),{related:I==null?void 0:I.relatedTables,compNames:n==null?void 0:n.compNames,compName:I==null?void 0:I.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:a.isDevMode,itemData:I==null?void 0:I.compData,childItemData:I==null?void 0:I.itemChildData,onChange:s,index:(I==null?void 0:I.id)??H,config:{showIndex:I==null?void 0:I.showIndex,allowMove:I==null?void 0:I.allowMove,viewport:I==null?void 0:I.viewport,status:I==null?void 0:I.status},onContentChange:h,onPageChange:c,onRowClick:p,onRouteUrl:m,parentTableId:I==null?void 0:I.tableId,allMapContents:a.allMapContents,children:I==null?void 0:I.children,level:1,onClickTrigger:g,onClickMainKey:u},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),S4=Zl._export_sfc(_4,[["__scopeId","data-v-1ea318b4"]]),E4={class:"type-select"},C4=["onClick"],D4={class:"list-icon"},B4={__name:"modelSelect",setup(a){const l=Hn(A.pinia),{itemData:n}=A.storeToRefs(l),r=o=>{const s=A.cloneDeep(n.value);s.push({comp:o.comp,name:o.name,compData:[]}),l.setItemData(s)};return(o,s)=>{const h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",E4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ru),(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:p},[e.createElementVNode("div",{class:"list-content",onClick:m=>r(c)},[e.createElementVNode("div",D4,[e.createVNode(h,{name:c.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(c.name),1)],8,C4)]))),128))])}}},T4=Zl._export_sfc(B4,[["__scopeId","data-v-91799bf8"]]),N4={class:"fill-content"},A4={class:"operate-content"},z4={class:"collapse-title-content"},M4={class:"collapse-title-item"},I4={key:1},O4=["onClick"],L4={class:"icon-content"},R4={key:0,class:"edit-content"},$4=["onClick"],V4={class:"comp-child"},P4={__name:"modelFill",setup(a){const l=Hn(A.pinia),{itemData:n,originalData:r}=A.storeToRefs(l),o=e.ref([]);e.ref([]);const s=e.ref([]),h=e.ref([]),c=M=>{var K;let k=(K=A.cloneDeep(h.value))==null?void 0:K.map((I,H)=>(M===H&&(I.content=!0),I));h.value=k},p=M=>{var K;let k=(K=A.cloneDeep(h.value))==null?void 0:K.map((I,H)=>(M===H&&(I.content=!1),I));h.value=k,o.value=A.cloneDeep(n.value)},m=(M,k)=>{var L;let K=(L=A.cloneDeep(h.value))==null?void 0:L.map((E,x)=>(M===x&&(E.content=!1),E));h.value=K;const I=A.cloneDeep(n.value),H=I==null?void 0:I.filter((E,x)=>(x===M&&(E.name=k),E));l.setOriginalData(H),l.setItemData(H)};e.watch(()=>n.value,()=>{var M,k,K;!n.value||((M=n.value)==null?void 0:M.length)===0?o.value=[]:o.value=(k=A.cloneDeep(n.value))==null?void 0:k.filter(I=>(I==null?void 0:I.comp)!=="methodButton"),s.value=o.value,h.value=(K=A.cloneDeep(s.value))==null?void 0:K.map((I,H)=>({id:H,content:!1}))},{deep:!0,immediate:!0});const g=M=>Ti(M),u=(M,k,K)=>{var H,L;if(!M)return;let I=A.cloneDeep(n.value);I=(H=I==null?void 0:I.map((E,x)=>(x===K&&(E.compData=M),E)))==null?void 0:H.filter(E=>(E==null?void 0:E.comp)!=="methodButton"),h.value=(L=A.cloneDeep(I))==null?void 0:L.map((E,x)=>({id:x,content:!1})),l.setOriginalData(I),l.setItemData(I)},D=M=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const k=A.cloneDeep(n.value),K=k==null?void 0:k.filter((I,H)=>H!==M);l.setOriginalData(K),l.setItemData(K),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(M,k)=>{const K=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",N4,[k[1]||(k[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",A4,[e.createVNode(Js.default,{class:"collapse-content",collapseContents:o.value},{title:e.withCtx(({item:I,index:H})=>{var L,E,x,w,b,_,$,V,ne,X;return[e.createElementVNode("div",z4,[e.createElementVNode("div",M4,[(E=(L=h.value)==null?void 0:L.find(me=>me.id===H))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:I.name&&I.name!==""?"8px":"0px"})},e.toDisplayString(I.name),5)),(w=(x=h.value)==null?void 0:x.find(me=>me.id===H))!=null&&w.content?(e.openBlock(),e.createElementBlock("div",I4,[e.createVNode(al.ssInput,{modelValue:I.name,"onUpdate:modelValue":me=>I.name=me,onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(_=(b=h.value)==null?void 0:b.find(me=>me.id===H))!=null&&_.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(me=>c(H),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Edit",style:{width:"16px",height:"16px"}})],8,O4))]),e.createElementVNode("div",L4,[(V=($=h.value)==null?void 0:$.find(me=>me.id===H))!=null&&V.content?(e.openBlock(),e.createElementBlock("div",R4,[e.createVNode(K,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(me=>p(H),["stop"])},null,8,["onClick"]),e.createVNode(K,{name:"Save",onClick:e.withModifiers(me=>m(H,I.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(X=(ne=h.value)==null?void 0:ne.find(me=>me.id===H))!=null&&X.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(me=>D(H),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Delete",style:{width:"16px",height:"16px"}})],8,$4))])])]}),content:e.withCtx(({item:I,index:H})=>{var L,E;return[e.createElementVNode("div",V4,[e.createTextVNode(e.toDisplayString(g(I.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g(I.comp+"Operate")),{itemContents:I==null?void 0:I.compData,originalItemContents:(E=(L=s.value)==null?void 0:L.find((x,w)=>w===H))==null?void 0:E.compData,onChange:x=>u(x,I,H)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},F4=Zl._export_sfc(P4,[["__scopeId","data-v-a46a44b9"]]),j4={key:0,class:"show-content"},H4={style:{display:"flex"}},U4={__name:"modelShow",setup(a){const l=Hn(A.pinia),{itemData:n}=A.storeToRefs(l),r=e.ref([]);e.watch(()=>n.value,()=>{var s;!n.value||((s=n.value)==null?void 0:s.length)===0?r.value=[]:r.value=A.cloneDeep(n.value)},{deep:!0,immediate:!0});const o=s=>Ti(s);return(s,h)=>{var c;return((c=r.value)==null?void 0:c.length)>0?(e.openBlock(),e.createElementBlock("div",j4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(p,m)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:m},[e.createElementVNode("div",H4,e.toDisplayString(p.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(p.comp)),{itemData:p==null?void 0:p.compData,childItemData:p==null?void 0:p.itemChildData,key:m},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},q4=Zl._export_sfc(U4,[["__scopeId","data-v-3f3e863e"]]),W4={class:"tabs-header"},K4={class:"tabs-list"},G4={class:"tab-name"},Y4={class:"tab-actions"},J4=["onClick"],X4=["onClick"],Z4=["onClick"],Q4={class:"model-operate"},e6={class:"model-select",style:{display:"unset"}},a6={class:"existing-components"},l6={class:"component-list"},r6=["onClick"],n6={class:"component-info"},i6={class:"component-type"},o6={class:"component-name"},t6={class:"model-fill"},s6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]),s=e.ref(!1),h=e.ref(""),c=e.ref({title:""}),p=e.ref(-1),m=e.ref(!1),g=e.ref(-1),u=e.ref(new WeakMap),D=e.ref(null),M=Hn(A.pinia),{itemData:k}=A.storeToRefs(M),K=()=>{h.value="新增标签页",c.value.title="",p.value=-1,s.value=!0},I=he=>{h.value="修改标签页",c.value.title=o.value[he].title,p.value=he,s.value=!0},H=he=>{const N=x(he);u.value.delete(N),o.value.splice(he,1),Ve()},L=()=>{if(c.value.title.trim()){if(p.value===-1){const he={title:c.value.title,value:c.value.title,label:c.value.title,children:[],id:E()};o.value.push(he)}else o.value[p.value].title=c.value.title,o.value[p.value].value=c.value.title,o.value[p.value].label=c.value.title;s.value=!1,Ve()}},E=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,x=he=>{const N=o.value[he];return N.id||(N.id=E()),N.id},w=he=>{var U;g.value=he;const N=x(he);D.value=A.cloneDeep(k.value);let ie=u.value.get(N);!ie&&((U=o.value[he].children)==null?void 0:U.length)>0&&(ie=V(o.value[he].children)),ie?M.setItemData(A.cloneDeep(ie)):M.setItemData([]),m.value=!0},b=e.computed(()=>{const he=A.useModelComp(A.pinia),N=A.storeToRefs(he).itemData.value;return console.log("可用组件数据",N),!N||!Array.isArray(N)?[]:N.filter(ie=>{var U;if(ie.comp==="Tabs"&&g.value>=0){const De=x(g.value);if((U=ie.compData)==null?void 0:U.some(Fe=>{var ea;return Fe.key==="stepList"&&((ea=Fe.contents)==null?void 0:ea.some(Ba=>Ba.id===De))}))return!1}return!0})}),_=he=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[he]||he,$=he=>{var N;try{const ie=A.cloneDeep(he);ie.id=Date.now()+Math.random(),ie.comp==="Tabs"&&((N=ie.compData)==null||N.forEach(De=>{De.key==="stepList"&&De.contents&&De.contents.forEach(Oe=>{Oe.id=E()})}));const U=A.cloneDeep(k.value);U.push(ie),M.setItemData(U)}catch(ie){console.error("添加组件失败:",ie)}},V=he=>he.map(N=>{var ie;switch(N.type){case"form":return{comp:"Form",name:N.value||"表单",compData:ne(N.content)};case"table":return{comp:"Table",name:N.value||"表格",compData:X(N.content)};default:return{comp:"Unknown",name:N.value||"",compData:((ie=N.content)==null?void 0:ie.originalData)||[]}}}),ne=he=>{if(!he)return[];const N=[];return he.rowContents&&N.push({key:"formContent",contents:he.rowContents}),he.buttonValue&&N.push({key:"formButton",contents:he.buttonValue}),typeof he.isEnableWrap<"u"&&N.push({key:"enableWrap",contents:he.isEnableWrap}),N},X=he=>[],me=()=>{if(g.value>=0&&g.value<o.value.length){const he=x(g.value);u.value.set(he,A.cloneDeep(k.value)),o.value[g.value].children=te(k.value),console.log("保存后的数据",te(k.value))}m.value=!1,g.value=-1,D.value=null,Ve()},Me=()=>{D.value&&M.setItemData(A.cloneDeep(D.value)),m.value=!1,g.value=-1,D.value=null},F=()=>{m.value&&Me()},te=he=>{if(!Array.isArray(he))throw new Error("sourceData must be an array");return he.map((N,ie)=>{if(!N||typeof N!="object")return N;const{comp:U,name:De,compData:Oe}=N;switch(U){case"Form":return{type:"form",content:Z(Oe||[]),value:"表单"};case"Table":return{type:"table",content:se(Oe||[]),value:"表格"};default:return{type:"xxx",content:Be(Oe||[]),value:""}}})},Z=he=>{const N={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},ie={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return he.forEach((U,De)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${De}:`,U);return}const{key:Oe,contents:Fe}=U,ea=ie[Oe];if(!ea){console.warn(`Unknown Form config key: ${Oe}`);return}Oe==="enableWrap"?N[ea]=!!Fe:N[ea]=Array.isArray(Fe)?Fe:[]}),N},se=he=>{const N={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},ie={header:"columns",tableContents:"tableData"};return he.forEach((U,De)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${De}:`,U);return}const{key:Oe,contents:Fe}=U,ea=ie[Oe];if(!ea){console.warn(`Unknown Table config key: ${Oe}`);return}N[ea]=Array.isArray(Fe)?Fe:[]}),N},Be=he=>(console.log("Default conversion logic - to be implemented"),{originalData:he,processed:!1,componentType:"unknown"}),Ve=()=>{const he=[{key:"stepList",contents:o.value}];r("change",he)};return e.watch(()=>n.itemContents,he=>{if(he&&he.length>0){const N=he.find(ie=>ie.key==="stepList");N&&N.contents&&(o.value=N.contents.map(ie=>({title:ie.title||"",value:ie.value||ie.title||"",label:ie.label||ie.title||"",children:ie.children||[],id:ie.id||E()})))}},{immediate:!0,deep:!0}),(he,N)=>{const ie=e.resolveComponent("svg-icon"),U=e.resolveComponent("el-input"),De=e.resolveComponent("el-form-item"),Oe=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",W4,[N[6]||(N[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:K},[e.createVNode(ie,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),N[5]||(N[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",K4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(Fe,ea)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:ea},[e.createElementVNode("span",G4,e.toDisplayString(Fe.title),1),e.createElementVNode("div",Y4,[e.createElementVNode("button",{onClick:Ba=>I(ea)},"修改标题",8,J4),e.createElementVNode("button",{onClick:Ba=>w(ea)},"布局调整",8,X4),e.createElementVNode("button",{onClick:Ba=>H(ea)},"删除",8,Z4)])]))),128))]),e.createVNode(Dr.ssDialog,{modelValue:s.value,"onUpdate:modelValue":N[2]||(N[2]=Fe=>s.value=Fe),title:h.value,onBeforeDestroy:N[3]||(N[3]=Fe=>s.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:N[1]||(N[1]=Fe=>s.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:L},"确定")]),default:e.withCtx(()=>[e.createVNode(Oe,{model:c.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(De,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:c.value.title,"onUpdate:modelValue":N[0]||(N[0]=Fe=>c.value.title=Fe),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Dr.ssDialog,{modelValue:m.value,"onUpdate:modelValue":N[4]||(N[4]=Fe=>m.value=Fe),title:"布局调整",fullScreen:"",onBeforeDestroy:F},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:Me},"取消"),e.createElementVNode("button",{onClick:me},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createElementVNode("div",e6,[e.createVNode(T4),e.createElementVNode("div",a6,[N[8]||(N[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",l6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,Fe=>(e.openBlock(),e.createElementBlock("div",{key:Fe.id,class:"component-item",onClick:ea=>$(Fe)},[e.createElementVNode("div",n6,[e.createElementVNode("span",i6,e.toDisplayString(_(Fe.comp)),1),e.createElementVNode("span",o6,e.toDisplayString(Fe.name),1)]),N[7]||(N[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,r6))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:he.innerWidth},[e.createVNode(q4)])),e.createElementVNode("div",t6,[e.createVNode(F4)])])]),_:1},8,["modelValue"])])}}},c6=Zl._export_sfc(s6,[["__scopeId","data-v-9096ed0d"]]);function u6(){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 d6(a){return{type:"line",...a}}function p6(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:[{type:"value"}],series:[]}}function f6(a){return{type:"bar",barWidth:"60%",...a}}function h6(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function v6(a){return{type:"pie",radius:"80%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...a}}const m6=()=>({title:{text:"",left:"center"},tooltip:{trigger:"item"},xAxis:{scale:!0},yAxis:{scale:!0},series:[]}),y6=a=>({type:"scatter",symbolSize:20,...a}),kn={Line:{initBaseoptions:u6,initSeries:d6},Bar:{initBaseoptions:p6,initSeries:f6},Pie:{initBaseoptions:h6,initSeries:v6},Scatter:{initBaseoptions:m6,initSeries:y6}},g6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";const m=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(m==null||m.forEach(D=>{var M;g.push((M=n==null?void 0:n[0])==null?void 0:M[D])}),!m||!g)return p;p.xAxis.data=m;const u=c({data:g});return p.series.push(u),p},b6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";const m=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(m==null||m.forEach(D=>{var M;g.push((M=n==null?void 0:n[0])==null?void 0:M[D])}),!m||!g)return p;p.xAxis.data=m;const u=c({data:g});return p.series.push(u),p},k6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";const m=l==null?void 0:l.map(M=>M==null?void 0:M.prop);let g=[];if(m==null||m.forEach(M=>{var k;g.push((k=n==null?void 0:n[0])==null?void 0:k[M])}),!m||!g)return p;const u=[];for(let M=0;M<m.length;M++){const k=m[M],K=g[M];u.push({name:k,value:K})}const D=c({data:u});return p.series.push(D),p},x6=({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";let m=[];const g=l==null?void 0:l.map(M=>M==null?void 0:M.prop);if(m=g==null?void 0:g.map(M=>{var K;let k=[];return k.push(M),k.push((K=n==null?void 0:n[0])==null?void 0:K[M]),k}),!m)return p;const D=c({data:m});return p.series.push(D),p},w6=async(a=[])=>{var h,c,p;const l=((h=a==null?void 0:a.find(m=>m.key==="ChartType"))==null?void 0:h.contents)??{},n=((c=a==null?void 0:a.find(m=>m.key==="header"))==null?void 0:c.contents)??[],r=((p=a==null?void 0:a.find(m=>m.key==="tableContents"))==null?void 0:p.contents)??[];let{type:o}=l,s={};return o==="Line"&&(s=await g6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),o==="Bar"&&(s=await b6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),o==="Pie"&&(s=await k6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),o==="Scatter"&&(s=await x6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),s},_6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(a){const l=a,n=e.ref({});e.onMounted(async()=>{const o=l==null?void 0:l.itemData;n.value=await w6(o)});const r=e.computed(()=>(l==null?void 0:l.height)||"300px");return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:r.value})},[e.createVNode(zu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),S6=Zl._export_sfc(_6,[["__scopeId","data-v-d4c081e8"]]),E6={class:"chart-module layout"},C6={class:"chart-module content"},D6={class:"chart-module content"},B6={class:"form-content"},T6={class:"dialog-footer"},N6={class:"form-content"},A6={class:"dialog-footer"},z6={class:"form-content"},M6={class:"dialog-footer"},I6=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.reactive({visible:!1,width:"840",title:"基础配置"}),s=e.ref([]),h=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],c=e.ref({}),p=()=>{var Se;s.value=h(),(Se=s.value)==null||Se.forEach(oe=>{var Ke;const ze=oe==null?void 0:oe.prop;oe.value=(Ke=c==null?void 0:c.value)==null?void 0:Ke[ze]}),o.visible=!0},m=Se=>{c.value=Se},g=()=>{var Se;o.visible=!1,r("change",(Se=ue())==null?void 0:Se.compData)},u=e.reactive({visible:!1,width:"840",title:"数据配置"}),D=e.ref([]),M=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],k=e.ref({}),K=()=>{const Se=D.value,oe=A.cloneDeep(Se);return oe==null||oe.forEach(ze=>{var ca;const Ke=ze==null?void 0:ze.prop;ze.value=(ca=k.value)==null?void 0:ca[Ke]}),oe},I=Se=>{var ze;k.value=Se;const oe=K();D.value=oe,r("change",(ze=ue())==null?void 0:ze.compData)},H=async()=>{const Se=await de.getMenusContent(),oe=K();oe==null||oe.forEach(ze=>{(ze==null?void 0:ze.prop)==="menu"&&(ze.contents=Se)}),D.value=oe,u.visible=!0,await Fe(k.value.menu),await ee(k.value.group)},L=e.reactive({visible:!1,width:"840",title:"详情页配置"}),E=e.ref([]),x=()=>[{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:[]}],w=e.ref({}),b=()=>{const Se=E.value,oe=A.cloneDeep(Se);return oe==null||oe.forEach(ze=>{var ca;const Ke=ze==null?void 0:ze.prop;ze.value=(ca=w.value)==null?void 0:ca[Ke]}),oe},_=Se=>{var ze;w.value=Se;const oe=b();E.value=oe,r("change",(ze=ue())==null?void 0:ze.compData)},$=async()=>{await F();const Se=A.cloneDeep(V.value),oe=b();oe==null||oe.forEach(ze=>{var ca;const Ke=ze==null?void 0:ze.prop;ze.value=(ca=w==null?void 0:w.value)==null?void 0:ca[Ke],Ke==="mainKey"&&(ze.contents=Se)}),E.value=oe,L.visible=!0},V=e.ref([]),ne=e.ref([]),X=e.ref({}),me=e.ref({}),Me=()=>{const{compData:Se}=U.value||{},oe=Se==null?void 0:Se.find(J=>{const{key:ve}=J;return ve==="header"}),ze=(oe==null?void 0:oe.contents)||[],Ke=ze==null?void 0:ze.filter((J,ve)=>{const{label:pe}=J;return pe!=="操作"}),ca=Ke==null?void 0:Ke.findIndex((J,ve)=>{const{isMainKey:pe}=J;return pe});if(ca<0)return[];const Ya=Se==null?void 0:Se.find(J=>{const{key:ve}=J;return ve==="tableContents"}),R=(Ya==null?void 0:Ya.contents)||[];return R==null?void 0:R.map(J=>{const ve=J==null?void 0:J[0];let pe=ca;Ua.isObject(ve)&&(ve!=null&&ve.id)&&(pe=pe+1);const ya=J==null?void 0:J[pe];return{label:ya,value:ya}})},F=async()=>{const Se=await Me();V.value=Se},te=async Se=>{const oe=sessionStorage.getItem("systemKey");return await de.getItemData(Se,oe,"")},Z=async Se=>{const oe=Se;ne.value=oe==null?void 0:oe.map(ze=>{const{name:Ke}=ze;return X.value[Ke]=ze,{label:Ke,value:Ke}})},se=Se=>{const{comp:oe,compData:ze}=me.value||{};if(oe==="Table"){let Ke=b();Ke=Ke.filter(ca=>{const{prop:Ya}=ca;return Ya!=="formItems"}),ea(Ke,ze),E.value=Ke}},Be=async()=>{var ze,Ke;const Se=(ze=w==null?void 0:w.value)==null?void 0:ze.mainKey,oe=(Ke=k==null?void 0:k.value)==null?void 0:Ke.menu;if(Se){const Ya=`${oe==null?void 0:oe.join("/")}^${Se}`,R=await te(Ya);await Z(R);const j=b();j==null||j.forEach(J=>{(J==null?void 0:J.prop)==="group"&&(J.contents=ne.value)}),E.value=j}};e.watch(()=>{var Se;return(Se=w==null?void 0:w.value)==null?void 0:Se.mainKey},async(Se,oe)=>{Se!=oe&&Se&&await Be()});const Ve=async Se=>{const oe=X.value[Se];me.value=oe,await se()};e.watch(()=>{var Se;return(Se=w==null?void 0:w.value)==null?void 0:Se.group},async(Se,oe)=>{Se!=oe&&Se&&Ve(Se)});const he=async()=>{var oe;await Be();const Se=(oe=w.value)==null?void 0:oe.group;await Ve(Se)},N=e.ref([]),ie=e.ref({}),U=e.ref({}),De=async Se=>{const oe=Se==null?void 0:Se.join("/"),ze=sessionStorage.getItem("systemKey");return await de.getItemData(oe,ze,"")},Oe=async Se=>{const oe=await De(Se);N.value=oe==null?void 0:oe.map(ze=>{const{name:Ke}=ze;return ie.value[Ke]=ze,{label:Ke,value:Ke}})},Fe=async(Se,oe)=>{await Oe(Se);const ze=K();ze==null||ze.forEach(Ke=>{(Ke==null?void 0:Ke.prop)==="group"&&(Ke.contents=N.value)}),D.value=ze};e.watch(()=>{var Se;return(Se=k==null?void 0:k.value)==null?void 0:Se.menu},async(Se,oe)=>{const ze=Se==null?void 0:Se.join("/"),Ke=oe==null?void 0:oe.join("/");ze!=Ke&&await Fe(Se)});const ea=(Se,oe)=>{const ze=oe==null?void 0:oe.find(R=>{const{key:j}=R;return j==="header"}),Ke=(ze==null?void 0:ze.contents)||[],ca=Ke==null?void 0:Ke.filter((R,j)=>{const{label:J}=R;return J!=="操作"}),Ya=ca==null?void 0:ca.map((R,j)=>{const{label:J}=R;return{label:J,value:j}});Se==null||Se.forEach(R=>{const j=R==null?void 0:R.prop;(j==="nameCol"||j==="valueCol")&&(R.contents=Ya)})},Ba=Se=>{const{comp:oe,compData:ze}=U.value||{};if(oe==="Table"){k.value.formItems=[];let Ke=K();Ke=Ke.filter(ca=>{const{prop:Ya}=ca;return Ya!=="formItems"}),ea(Ke,ze),D.value=Ke}},ee=async Se=>{const oe=ie.value[Se];U.value=oe,await Ba()};e.watch(()=>{var Se;return(Se=k==null?void 0:k.value)==null?void 0:Se.group},async(Se,oe)=>{Se!=oe&&ee(Se)});const ua=async()=>{var ze,Ke;const Se=(ze=k.value)==null?void 0:ze.menu;await Fe(Se);const oe=(Ke=k.value)==null?void 0:Ke.group;await ee(oe)},ue=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:c.value},{key:"chartDataConfig",contents:k.value},{key:"chartDetailConfig",contents:w.value}]}),sa=()=>{o.visible=!1,u.visible=!1,L.visible=!1};return e.onMounted(async()=>{var oe,ze,Ke;D.value=M(),E.value=x();const Se=n==null?void 0:n.itemContents;c.value=((oe=Se==null?void 0:Se.find(ca=>ca.key==="chartBaseConfig"))==null?void 0:oe.contents)??{},k.value=((ze=Se==null?void 0:Se.find(ca=>ca.key==="chartDataConfig"))==null?void 0:ze.contents)??{},await ua(),w.value=((Ke=Se==null?void 0:Se.find(ca=>ca.key==="chartDetailConfig"))==null?void 0:Ke.contents)??{},await he()}),(Se,oe)=>{const ze=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",E6,[oe[4]||(oe[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(ze,{id:"themeButton",onClick:oe[0]||(oe[0]=Ke=>p())},{default:e.withCtx(()=>oe[3]||(oe[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",C6,[oe[6]||(oe[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(ze,{id:"themeButton",onClick:oe[1]||(oe[1]=Ke=>H())},{default:e.withCtx(()=>oe[5]||(oe[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",D6,[oe[8]||(oe[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(ze,{id:"themeButton",onClick:oe[2]||(oe[2]=Ke=>$())},{default:e.withCtx(()=>oe[7]||(oe[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(Dr.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:sa,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",B6,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:m},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",T6,[e.createVNode(ze,{class:"cancel-button button",onClick:sa,id:"themeBorderButton"},{default:e.withCtx(()=>oe[9]||(oe[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(ze,{class:"ok-button button",onClick:g,id:"themeButton"},{default:e.withCtx(()=>oe[10]||(oe[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(Dr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:sa,width:u.width},{default:e.withCtx(()=>[e.createElementVNode("div",N6,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:I},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",A6,[e.createVNode(ze,{class:"cancel-button button",onClick:sa,id:"themeBorderButton"},{default:e.withCtx(()=>oe[11]||(oe[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(ze,{class:"ok-button button",onClick:sa,id:"themeButton"},{default:e.withCtx(()=>oe[12]||(oe[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(Dr.ssDialog,{visible:L.visible,title:L.title,onBeforeDestroy:sa,width:L.width},{default:e.withCtx(()=>[e.createElementVNode("div",z6,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",M6,[e.createVNode(ze,{class:"cancel-button button",onClick:sa,id:"themeBorderButton"},{default:e.withCtx(()=>oe[13]||(oe[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(ze,{class:"ok-button button",onClick:sa,id:"themeButton"},{default:e.withCtx(()=>oe[14]||(oe[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),O6=Zl._export_sfc(I6,[["__scopeId","data-v-fe119645"]]),L6={class:"layout"},R6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const n=l,r=a;e.onMounted(async()=>{});const o=e.computed(()=>A.cloneDeep(r==null?void 0:r.itemData)||[]),s=e.computed(()=>{var g;const m=(g=o==null?void 0:o.value)==null?void 0:g.find(u=>{const{key:D}=u;return D==="baseConfig"});return m==null?void 0:m.contents}),h=e.computed(()=>{var g;const m=(g=o==null?void 0:o.value)==null?void 0:g.find(u=>{const{key:D}=u;return D==="children"});return m==null?void 0:m.contents}),c=e.computed(()=>{let m=A.cloneDeep(h.value)||[];const g=m.length;let u=0;const D=[];if(m=m.map(M=>{const k=M.span;return k?(M.span=Number(k),u=u+M.span):D.push(M),M}),u<24){const M=Math.floor((24-u)/g);D.forEach(k=>{k.span=M})}return m}),p=m=>{n("rowClick",m)};return(m,g)=>{var M;const u=e.resolveComponent("el-col"),D=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",L6,[e.createVNode(D,{style:e.normalizeStyle({height:(M=s.value)==null?void 0:M.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(k,K)=>(e.openBlock(),e.createBlock(u,{span:k==null?void 0:k.span},{default:e.withCtx(()=>{var I;return[e.unref(Bi)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(k.comp)),{key:e.unref(jn),compName:k.name,index:(k==null?void 0:k.id)??K,height:(I=s.value)==null?void 0:I.height,itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,onChange:e.unref(To),onContentChange:e.unref(No),onPageChange:e.unref(Ao),onRowClick:p},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),$6=Zl._export_sfc(R6,[["__scopeId","data-v-ab9a36ed"]]),V6={class:"layout-operate"},P6={class:"layout-module"},F6={class:"collapse-title-item"},j6={class:"collapse-title"},H6={class:"icon-content"},U6=["onClick"],q6={class:"comp-child"},W6=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l;e.onMounted(()=>{K()});const o=e.ref({}),s=e.ref({}),h=e.ref([]),c=w=>[{label:"高度",prop:"height",type:"input",value:w==null?void 0:w.height}],p=w=>{s.value=w,r("change",x(),!0)},m=e.ref([]),g=e.ref([]),u=w=>[{label:"占比",prop:"span",type:"input",value:w==null?void 0:w.span}],D=e.computed(()=>{const w=n==null?void 0:n.itemContents;return A.cloneDeep(w)}),M=e.computed(()=>{const w=D==null?void 0:D.value,b=w==null?void 0:w.find(_=>{const{key:$}=_;return $==="baseConfig"});return b==null?void 0:b.contents}),k=e.computed(()=>{const w=D==null?void 0:D.value,b=w==null?void 0:w.find(_=>{const{key:$}=_;return $==="children"});return b==null?void 0:b.contents}),K=()=>{var w;o.value=D.value||{},m.value=(k==null?void 0:k.value)||[],h.value=c(),h.value=(w=h.value)==null?void 0:w.map(b=>{var $;const{prop:_}=b;return b.value=($=M.value)==null?void 0:$[_],b})};e.watch(()=>{var w;return(w=k==null?void 0:k.value)==null?void 0:w.length},()=>{var w;m.value=(k==null?void 0:k.value)||[],g.value=(w=k.value)==null?void 0:w.map(b=>u(b))},{immediate:!0});const I=(w,b)=>{const _=A.cloneDeep(k==null?void 0:k.value);_[b].span=w.span,m.value=_,r("change",x(),!0)},H=w=>Ti(w),L=(w,b,_)=>{if(!w)return;const $=A.cloneDeep(k==null?void 0:k.value);$[_]&&($[_].compData=w,m.value=$,r("change",x(),!0))},E=w=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=A.cloneDeep(k==null?void 0:k.value);b=b==null?void 0:b.filter((_,$)=>w!==$),m.value=b,r("change",x(),!0),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=()=>({compData:[{key:"baseConfig",contents:s.value},{key:"children",contents:m==null?void 0:m.value}]});return(w,b)=>{const _=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",V6,[e.createElementVNode("div",P6,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(al.ssForm,{rowContents:h.value,isEnableWrap:!0,onChange:b[0]||(b[0]=$=>p($))},null,8,["rowContents"])])]),e.createVNode(Js.default,{class:"collapse-content",collapseContents:k.value},{title:e.withCtx(({item:$,index:V})=>[e.createElementVNode("div",F6,[e.createElementVNode("div",j6,e.toDisplayString($.name),1),e.createElementVNode("div",H6,[e.createElementVNode("div",{onClick:e.withModifiers(ne=>E(V),["stop"]),class:"icon-content"},[e.createVNode(_,{name:"Delete",style:{width:"16px",height:"16px"}})],8,U6)])])]),content:e.withCtx(({item:$,index:V})=>[e.createElementVNode("div",q6,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:g.value[V],key:V,isEnableWrap:!0,onChange:ne=>I(ne,V)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H($.comp+"Operate")),{itemContents:$==null?void 0:$.compData,originalItemContents:$.compData,onChange:ne=>L(ne,$,V)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),K6=Zl._export_sfc(W6,[["__scopeId","data-v-ba05456e"]]),G6=typeof window<"u";var _s;G6&&((_s=window==null?void 0:window.navigator)!=null&&_s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function pn(a){return a==null}function Rc(){}const Y6=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(Y6)));function J6(){const a=new Map;return{on(l,n){const r=a.get(l);r!=null&&r.add(n)||a.set(l,new Set([n]))},off(l,n){const r=a.get(l);r&&r.delete(n)},clear(l){const n=a.get(l);n&&n.clear()},clearAll(){a.clear()},emit(l,...n){const r=a.get(l);r&&r.forEach(o=>{o(...n)})}}}function Ss(a,l=16){if(typeof a!="function")return Rc;const n=(...s)=>{a(...s)};if(l<=0)return $c(n);let r=0,o;return function(...s){const h=Date.now(),c=h-r;clearTimeout(o),c>=l?(r=h,n(...s)):o=setTimeout(()=>{r=Date.now(),n(...s)},Math.max(0,l-c))}}function X6(a,l=100){if(typeof a!="function")return Rc;const n=(...o)=>{a(...o)};if(l<=0)return $c(n);let r;return function(...o){clearTimeout(r),r=setTimeout(()=>{n(...o)},l)}}function $c(a){if(typeof a!="function")return a;let l=!1,n,r;return function(...o){return n=o,l||(l=!0,r=Promise.resolve().then(()=>(l=!1,r=void 0,a(...n)))),r}}const Ui=new Set,Vc=new WeakMap;function Z6(){Ui.forEach(a=>{a(...Vc.get(a))}),Ui.clear()}function Zr(a,...l){if(typeof a!="function")return a;Vc.set(a,l),!Ui.has(a)&&(Ui.add(a),Ui.size===1&&Promise.resolve().then(Z6))}const Pc=Symbol("LAYOUT_KEY"),Fc=Symbol("EMITTER_KEY");function Q6(a){let l=0,n;for(let r=0,o=a.length;r<o;r++)n=a[r].y+a[r].h,n>l&&(l=n);return l}function wt(a){const l=Array(a.length);for(let n=0,r=a.length;n<r;n++)l[n]=e1(a[n]);return l}function e1(a){return{...a}}function jc(a,l){return!(a===l||a.x+a.w<=l.x||a.x>=l.x+l.w||a.y+a.h<=l.y||a.y>=l.y+l.h)}function _i(a,l,n){const r=Uc(a),o=qc(a),s=Array(a.length);for(let h=0,c=o.length;h<c;h++){let p=o[h];p.static||(p=a1(r,p,l,n),r.push(p)),s[a.findIndex(m=>m.i===p.i)]=p,p.moved=!1}return s}function a1(a,l,n,r){if(n)for(;l.y>0&&!qi(a,l);)l.y--;else if(r){const s=r[l.i].y;for(;l.y>s&&!qi(a,l);)l.y--}let o;for(;o=qi(a,l);)l.y=o.y+o.h;return l}function l1(a,l){const n=Uc(a);for(let r=0,o=a.length;r<o;r++){const s=a[r];if(s.x+s.w>l.cols&&(s.x=l.cols-s.w),s.x<0&&(s.x=0,s.w=l.cols),!s.static)n.push(s);else for(;qi(n,s);)s.y++}return a}function Es(a,l){for(let n=0,r=a.length;n<r;n++)if(a[n].i===l)return a[n]}function qi(a,l){for(let n=0,r=a.length;n<r;n++)if(jc(a[n],l))return a[n]}function Hc(a,l){return a.filter(n=>jc(n,l))}function Uc(a){return a.filter(l=>l.static)}function _t(a,l,n,r,o=!1,s=!1){if(l.static)return a;const h=l.x,c=l.y,p=r&&l.y>r;typeof n=="number"&&(l.x=n),typeof r=="number"&&(l.y=r),l.moved=!0;let m=qc(a);p&&(m=m.reverse());const g=Hc(m,l);if(s&&g.length)return l.x=h,l.y=c,l.moved=!1,a;for(let u=0,D=g.length;u<D;u++){const M=g[u];M.moved||l.y>M.y&&l.y-M.y>M.h/4||(M.static?a=Cs(a,M,l,o):a=Cs(a,l,M,o))}return a}function Cs(a,l,n,r){if(r){const o={x:n.x,y:n.y,w:n.w,h:n.h};if(o.y=Math.max(l.y-n.h,0),!qi(a,o))return _t(a,n,void 0,o.y,!1)}return _t(a,n,void 0,n.y+1,!1)}function r1(a,l,n,r){const o="translate3d("+l+"px,"+a+"px, 0)";return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:n+"px",height:r+"px",position:"absolute"}}function n1(a,l,n,r){const o="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:n+"px",height:r+"px",position:"absolute"}}function i1(a,l,n,r){return{top:a+"px",left:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function o1(a,l,n,r){return{top:a+"px",right:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function qc(a){return Array.from(a).sort(function(l,n){return l.y===n.y&&l.x===n.x?0:l.y>n.y||l.y===n.y&&l.x>n.x?1:-1})}function s1(a,l){l=l||"Layout";const n=["x","y","w","h"],r=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let o=0,s=a.length;o<s;o++){const h=a[o];for(let c=0;c<n.length;c++)if(typeof h[n[c]]!="number")throw new Error("VueGridLayout: "+l+"["+o+"]."+n[c]+" must be a number!");if(h.i===void 0||h.i===null)throw new Error("VueGridLayout: "+l+"["+o+"].i cannot be null!");if(typeof h.i!="number"&&typeof h.i!="string")throw new Error("VueGridLayout: "+l+"["+o+"].i must be a string or number!");if(r.indexOf(h.i)>=0)throw new Error("VueGridLayout: "+l+"["+o+"].i must be unique!");if(r.push(h.i),h.static!==void 0&&typeof h.static!="boolean")throw new Error("VueGridLayout: "+l+"["+o+"].static must be a boolean!")}}function c1(a,l="vgl"){const n=()=>`${l}-${a}`;return{b:n,be:r=>`${n()}__${r}`,bm:r=>`${n()}--${r}`,bem:(r,o)=>`${n()}__${r}--${o}`}}function Ds(a){return u1(a)}function u1(a){var l;const n=((l=a.target)==null?void 0:l.offsetParent)||document.body,r=a.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),o=a.clientX+n.scrollLeft-r.left,s=a.clientY+n.scrollTop-r.top;return{x:o,y:s}}function Bs(a,l,n,r){return d1(a)?{deltaX:n-a,deltaY:r-l,lastX:a,lastY:l,x:n,y:r}:{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}}function d1(a){return typeof a=="number"&&!Number.isNaN(a)}function p1(a,l){const n=Kc(a);let r=n[0];for(let o=1,s=n.length;o<s;o++){const h=n[o];l>a[h]&&(r=h)}return r}function Wc(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function f1(a,l,n,r,o,s,h){if(l[r])return wt(l[r]);let c=a;const p=Kc(n),m=p.slice(p.indexOf(r));for(let g=0,u=m.length;g<u;g++){const D=m[g];if(l[D]){c=l[D];break}}return c=wt(c||[]),_i(l1(c,{cols:s}),h)}function Kc(a){return Object.keys(a).sort((l,n)=>a[l]-a[n])}let h1="auto";function v1(){return typeof document<"u"}function Ts(){return v1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):h1}var ji={exports:{}},m1=ji.exports,Ns;function y1(){return Ns||(Ns=1,function(a,l){(function(n,r){a.exports=r()})(m1,function(){function n(t,i){var f=Object.keys(t);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);i&&(y=y.filter(function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable})),f.push.apply(f,y)}return f}function r(t){for(var i=1;i<arguments.length;i++){var f=arguments[i]!=null?arguments[i]:{};i%2?n(Object(f),!0).forEach(function(y){p(t,y,f[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(f)):n(Object(f)).forEach(function(y){Object.defineProperty(t,y,Object.getOwnPropertyDescriptor(f,y))})}return t}function o(t){return o=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},o(t)}function s(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function h(t,i){for(var f=0;f<i.length;f++){var y=i[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(t,K(y.key),y)}}function c(t,i,f){return i&&h(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,i,f){return(i=K(i))in t?Object.defineProperty(t,i,{value:f,enumerable:!0,configurable:!0,writable:!0}):t[i]=f,t}function m(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&u(t,i)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},g(t)}function u(t,i){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,y){return f.__proto__=y,f},u(t,i)}function D(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M(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,y=g(t);if(i){var S=g(this).constructor;f=Reflect.construct(y,arguments,S)}else f=y.apply(this,arguments);return function(O,G){if(G&&(typeof G=="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(O)}(this,f)}}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,i,f){var y=function(O,G){for(;!Object.prototype.hasOwnProperty.call(O,G)&&(O=g(O))!==null;);return O}(t,i);if(y){var S=Object.getOwnPropertyDescriptor(y,i);return S.get?S.get.call(arguments.length<3?t:f):S.value}},k.apply(this,arguments)}function K(t){var i=function(f,y){if(typeof f!="object"||f===null)return f;var S=f[Symbol.toPrimitive];if(S!==void 0){var O=S.call(f,y);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(t,"string");return typeof i=="symbol"?i:i+""}var I=function(t){return!(!t||!t.Window)&&t instanceof t.Window},H=void 0,L=void 0;function E(t){H=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(i)===i&&(t=t.wrap(t)),L=t}function x(t){return I(t)?t:(t.ownerDocument||t).defaultView||L.window}typeof window<"u"&&window&&E(window);var w=function(t){return!!t&&o(t)==="object"},b=function(t){return typeof t=="function"},_={window:function(t){return t===L||I(t)},docFrag:function(t){return w(t)&&t.nodeType===11},object:w,func:b,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||o(t)!=="object")return!1;var i=x(t)||L;return/object|function/.test(typeof Element>"u"?"undefined":o(Element))?t instanceof Element||t instanceof i.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return w(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return w(t)&&t.length!==void 0&&b(t.splice)}};function $(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 V(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="drag"){var y=f.prepared.axis;if(y==="x"||y==="y"){var S=y==="x"?"y":"x";i.page[S]=f.coords.start.page[S],i.client[S]=f.coords.start.client[S],i.delta[S]=0}}}var ne={id:"actions/drag",install:function(t){var i=t.actions,f=t.Interactable,y=t.defaults;f.prototype.draggable=ne.draggable,i.map.drag=ne,i.methodDict.drag="draggable",y.actions.drag=ne.defaults},listeners:{"interactions:before-action-move":$,"interactions:action-resume":$,"interactions:action-move":V,"auto-start:check":function(t){var i=t.interaction,f=t.interactable,y=t.buttons,S=f.options.drag;if(S&&S.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(y&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:$,move:V,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},X=ne,me={init:function(t){var i=t;me.document=i.document,me.DocumentFragment=i.DocumentFragment||Me,me.SVGElement=i.SVGElement||Me,me.SVGSVGElement=i.SVGSVGElement||Me,me.SVGElementInstance=i.SVGElementInstance||Me,me.Element=i.Element||Me,me.HTMLElement=i.HTMLElement||me.Element,me.Event=i.Event,me.Touch=i.Touch||Me,me.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Me(){}var F=me,te={init:function(t){var i=F.Element,f=t.navigator||{};te.supportsTouch="ontouchstart"in t||_.func(t.DocumentTouch)&&F.document instanceof t.DocumentTouch,te.supportsPointerEvent=f.pointerEnabled!==!1&&!!F.PointerEvent,te.isIOS=/iP(hone|od|ad)/.test(f.platform),te.isIOS7=/iP(hone|od|ad)/.test(f.platform)&&/OS 7[^\d]/.test(f.appVersion),te.isIe9=/MSIE 9/.test(f.userAgent),te.isOperaMobile=f.appName==="Opera"&&te.supportsTouch&&/Presto/.test(f.userAgent),te.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",te.pEventTypes=te.supportsPointerEvent?F.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,te.wheelEvent=F.document&&"onmousewheel"in F.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Z=te;function se(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function Be(t,i){for(;_.element(t);){if(he(t,i))return t;t=Ve(t)}return null}function Ve(t){var i=t.parentNode;if(_.docFrag(i)){for(;(i=i.host)&&_.docFrag(i););return i}return i}function he(t,i){return L!==H&&(i=i.replace(/\/deep\//g," ")),t[Z.prefixedMatchesSelector](i)}var N=function(t){return t.parentNode||t.host};function ie(t,i){for(var f,y=[],S=t;(f=N(S))&&S!==i&&f!==S.ownerDocument;)y.unshift(S),S=f;return y}function U(t,i,f){for(;_.element(t);){if(he(t,i))return!0;if((t=Ve(t))===f)return he(t,i)}return!1}function De(t){return t.correspondingUseElement||t}function Oe(t){var i=t instanceof F.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 Fe(t){var i,f=Oe(t);if(!Z.isIOS7&&f){var y={x:(i=(i=x(t))||L).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};f.left+=y.x,f.right+=y.x,f.top+=y.y,f.bottom+=y.y}return f}function ea(t){for(var i=[];t;)i.push(t),t=Ve(t);return i}function Ba(t){return!!_.string(t)&&(F.document.querySelector(t),!0)}function ee(t,i){for(var f in i)t[f]=i[f];return t}function ua(t,i,f){return t==="parent"?Ve(f):t==="self"?i.getRect(f):Be(f,t)}function ue(t,i,f,y){var S=t;return _.string(S)?S=ua(S,i,f):_.func(S)&&(S=S.apply(void 0,y)),_.element(S)&&(S=Fe(S)),S}function sa(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Se(t){return!t||"x"in t&&"y"in t||((t=ee({},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 oe(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 ze(t,i,f){var y=f&&t.options[f];return sa(ue(y&&y.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function Ke(t,i){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(ge){return!0},y=arguments.length>3?arguments[3]:void 0;if(y=y||{},_.string(t)&&t.search(" ")!==-1&&(t=ca(t)),_.array(t))return t.forEach(function(ge){return Ke(ge,i,f,y)}),y;if(_.object(t)&&(i=t,t=""),_.func(i)&&f(t))y[t]=y[t]||[],y[t].push(i);else if(_.array(i))for(var S=0,O=i;S<O.length;S++){var G=O[S];Ke(t,G,f,y)}else if(_.object(i))for(var Q in i)Ke(ca(Q).map(function(ge){return"".concat(t).concat(ge)}),i[Q],f,y);return y}function ca(t){return t.trim().split(/ +/)}var Ya=function(t,i){return Math.sqrt(t*t+i*i)},R=["webkit","moz"];function j(t,i){t.__set||(t.__set={});var f=function(S){if(R.some(function(O){return S.indexOf(O)===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(O){t.__set[S]=O},configurable:!0})};for(var y in i)f(y);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 ve(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function pe(t){return t instanceof F.Event||t instanceof F.Touch}function ya(t,i,f){return t=t||"page",(f=f||{}).x=i[t+"X"],f.y=i[t+"Y"],f}function aa(t,i){return i=i||{x:0,y:0},Z.isOperaMobile&&pe(t)?(ya("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ya("page",t,i),i}function ce(t){return _.number(t.pointerId)?t.pointerId:t.identifier}function ga(t,i,f){var y=i.length>1?Je(i):i[0];aa(y,t.page),function(S,O){O=O||{},Z.isOperaMobile&&pe(S)?ya("screen",S,O):ya("client",S,O)}(y,t.client),t.timeStamp=f}function Ae(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 Je(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},f=0;f<t.length;f++){var y=t[f];for(var S in i)i[S]+=y[S]}for(var O in i)i[O]/=t.length;return i}function Na(t){if(!t.length)return null;var i=Ae(t),f=Math.min(i[0].pageX,i[1].pageX),y=Math.min(i[0].pageY,i[1].pageY),S=Math.max(i[0].pageX,i[1].pageX),O=Math.max(i[0].pageY,i[1].pageY);return{x:f,y,left:f,top:y,right:S,bottom:O,width:S-f,height:O-y}}function Ca(t,i){var f=i+"X",y=i+"Y",S=Ae(t),O=S[0][f]-S[1][f],G=S[0][y]-S[1][y];return Ya(O,G)}function la(t,i){var f=i+"X",y=i+"Y",S=Ae(t),O=S[1][f]-S[0][f],G=S[1][y]-S[0][y];return 180*Math.atan2(G,O)/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 F.Touch?"touch":"mouse"}function va(t){var i=_.func(t.composedPath)?t.composedPath():t.path;return[De(i?i[0]:t.target),De(t.currentTarget)]}var W=function(){function t(i){s(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return c(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(W.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Te=function(t,i){for(var f=0;f<i.length;f++){var y=i[f];t.push(y)}return t},Ie=function(t){return Te([],t)},we=function(t,i){for(var f=0;f<t.length;f++)if(i(t[f],f,t))return f;return-1},wa=function(t,i){return t[we(t,i)]},oa=function(t){m(f,t);var i=M(f);function f(y,S,O){var G;s(this,f),(G=i.call(this,S._interaction)).dropzone=void 0,G.dragEvent=void 0,G.relatedTarget=void 0,G.draggable=void 0,G.propagationStopped=!1,G.immediatePropagationStopped=!1;var Q=O==="dragleave"?y.prev:y.cur,ge=Q.element,je=Q.dropzone;return G.type=O,G.target=ge,G.currentTarget=ge,G.dropzone=je,G.dragEvent=S,G.relatedTarget=S.target,G.draggable=S.interactable,G.timeStamp=S.timeStamp,G}return c(f,[{key:"reject",value:function(){var y=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 O=S.activeDrops,G=we(O,function(ge){var je=ge.dropzone,Ce=ge.element;return je===y.dropzone&&Ce===y.target});S.activeDrops.splice(G,1);var Q=new f(S,this.dragEvent,"dropdeactivate");Q.dropzone=this.dropzone,Q.target=this.target,this.dropzone.fire(Q)}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}(W);function Qe(t,i){for(var f=0,y=t.slice();f<y.length;f++){var S=y[f],O=S.dropzone,G=S.element;i.dropzone=O,i.target=G,O.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function He(t,i){for(var f=function(O,G){for(var Q=[],ge=0,je=O.interactables.list;ge<je.length;ge++){var Ce=je[ge];if(Ce.options.drop.enabled){var ra=Ce.options.drop.accept;if(!(_.element(ra)&&ra!==G||_.string(ra)&&!he(G,ra)||_.func(ra)&&!ra({dropzone:Ce,draggableElement:G})))for(var Da=0,Ja=Ce.getAllElements();Da<Ja.length;Da++){var Wa=Ja[Da];Wa!==G&&Q.push({dropzone:Ce,element:Wa,rect:Ce.getRect(Wa)})}}}return Q}(t,i),y=0;y<f.length;y++){var S=f[y];S.rect=S.dropzone.getRect(S.element)}return f}function qe(t,i,f){for(var y=t.dropState,S=t.interactable,O=t.element,G=[],Q=0,ge=y.activeDrops;Q<ge.length;Q++){var je=ge[Q],Ce=je.dropzone,ra=je.element,Da=je.rect,Ja=Ce.dropCheck(i,f,S,O,ra,Da);G.push(Ja?ra:null)}var Wa=function(Qa){for(var xl,ml,El,Ul=[],Cl=0;Cl<Qa.length;Cl++){var Il=Qa[Cl],Ml=Qa[xl];if(Il&&Cl!==xl)if(Ml){var Wr=N(Il),or=N(Ml);if(Wr!==Il.ownerDocument)if(or!==Il.ownerDocument)if(Wr!==or){Ul=Ul.length?Ul:ie(Ml);var Xr=void 0;if(Ml instanceof F.HTMLElement&&Il instanceof F.SVGElement&&!(Il instanceof F.SVGSVGElement)){if(Il===or)continue;Xr=Il.ownerSVGElement}else Xr=Il;for(var cn=ie(Xr,Ml.ownerDocument),Sn=0;cn[Sn]&&cn[Sn]===Ul[Sn];)Sn++;var hi=[cn[Sn-1],cn[Sn],Ul[Sn]];if(hi[0])for(var Qn=hi[0].lastChild;Qn;){if(Qn===hi[1]){xl=Cl,Ul=cn;break}if(Qn===hi[2])break;Qn=Qn.previousSibling}}else El=Ml,(parseInt(x(ml=Il).getComputedStyle(ml).zIndex,10)||0)>=(parseInt(x(El).getComputedStyle(El).zIndex,10)||0)&&(xl=Cl);else xl=Cl}else xl=Cl}return xl}(G);return y.activeDrops[Wa]||null}function fe(t,i,f){var y=t.dropState,S={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return f.type==="dragstart"&&(S.activate=new oa(y,f,"dropactivate"),S.activate.target=null,S.activate.dropzone=null),f.type==="dragend"&&(S.deactivate=new oa(y,f,"dropdeactivate"),S.deactivate.target=null,S.deactivate.dropzone=null),y.rejected||(y.cur.element!==y.prev.element&&(y.prev.dropzone&&(S.leave=new oa(y,f,"dragleave"),f.dragLeave=S.leave.target=y.prev.element,f.prevDropzone=S.leave.dropzone=y.prev.dropzone),y.cur.dropzone&&(S.enter=new oa(y,f,"dragenter"),f.dragEnter=y.cur.element,f.dropzone=y.cur.dropzone)),f.type==="dragend"&&y.cur.dropzone&&(S.drop=new oa(y,f,"drop"),f.dropzone=y.cur.dropzone,f.relatedTarget=y.cur.element),f.type==="dragmove"&&y.cur.dropzone&&(S.move=new oa(y,f,"dropmove"),f.dropzone=y.cur.dropzone)),S}function ke(t,i){var f=t.dropState,y=f.activeDrops,S=f.cur,O=f.prev;i.leave&&O.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&&Qe(y,i.deactivate),f.prev.dropzone=S.dropzone,f.prev.element=S.element}function da(t,i){var f=t.interaction,y=t.iEvent,S=t.event;if(y.type==="dragmove"||y.type==="dragend"){var O=f.dropState;i.dynamicDrop&&(O.activeDrops=He(i,f.element));var G=y,Q=qe(f,G,S);O.rejected=O.rejected&&!!Q&&Q.dropzone===O.cur.dropzone&&Q.element===O.cur.element,O.cur.dropzone=Q&&Q.dropzone,O.cur.element=Q&&Q.element,O.events=fe(f,0,G)}}var La={id:"actions/drop",install:function(t){var i=t.actions,f=t.interactStatic,y=t.Interactable,S=t.defaults;t.usePlugin(X),y.prototype.dropzone=function(O){return function(G,Q){if(_.object(Q)){if(G.options.drop.enabled=Q.enabled!==!1,Q.listeners){var ge=Ke(Q.listeners),je=Object.keys(ge).reduce(function(ra,Da){return ra[/^(enter|leave)/.test(Da)?"drag".concat(Da):/^(activate|deactivate|move)/.test(Da)?"drop".concat(Da):Da]=ge[Da],ra},{}),Ce=G.options.drop.listeners;Ce&&G.off(Ce),G.on(je),G.options.drop.listeners=je}return _.func(Q.ondrop)&&G.on("drop",Q.ondrop),_.func(Q.ondropactivate)&&G.on("dropactivate",Q.ondropactivate),_.func(Q.ondropdeactivate)&&G.on("dropdeactivate",Q.ondropdeactivate),_.func(Q.ondragenter)&&G.on("dragenter",Q.ondragenter),_.func(Q.ondragleave)&&G.on("dragleave",Q.ondragleave),_.func(Q.ondropmove)&&G.on("dropmove",Q.ondropmove),/^(pointer|center)$/.test(Q.overlap)?G.options.drop.overlap=Q.overlap:_.number(Q.overlap)&&(G.options.drop.overlap=Math.max(Math.min(1,Q.overlap),0)),"accept"in Q&&(G.options.drop.accept=Q.accept),"checker"in Q&&(G.options.drop.checker=Q.checker),G}return _.bool(Q)?(G.options.drop.enabled=Q,G):G.options.drop}(this,O)},y.prototype.dropCheck=function(O,G,Q,ge,je,Ce){return function(ra,Da,Ja,Wa,Qa,xl,ml){var El=!1;if(!(ml=ml||ra.getRect(xl)))return!!ra.options.drop.checker&&ra.options.drop.checker(Da,Ja,El,ra,xl,Wa,Qa);var Ul=ra.options.drop.overlap;if(Ul==="pointer"){var Cl=ze(Wa,Qa,"drag"),Il=aa(Da);Il.x+=Cl.x,Il.y+=Cl.y;var Ml=Il.x>ml.left&&Il.x<ml.right,Wr=Il.y>ml.top&&Il.y<ml.bottom;El=Ml&&Wr}var or=Wa.getRect(Qa);if(or&&Ul==="center"){var Xr=or.left+or.width/2,cn=or.top+or.height/2;El=Xr>=ml.left&&Xr<=ml.right&&cn>=ml.top&&cn<=ml.bottom}return or&&_.number(Ul)&&(El=Math.max(0,Math.min(ml.right,or.right)-Math.max(ml.left,or.left))*Math.max(0,Math.min(ml.bottom,or.bottom)-Math.max(ml.top,or.top))/(or.width*or.height)>=Ul),ra.options.drop.checker&&(El=ra.options.drop.checker(Da,Ja,El,ra,xl,Wa,Qa)),El}(this,O,G,Q,ge,je,Ce)},f.dynamicDrop=function(O){return _.bool(O)?(t.dynamicDrop=O,f):t.dynamicDrop},ee(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,S.actions.drop=La.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,y=(t.event,t.iEvent);if(f.prepared.name==="drag"){var S=f.dropState;S.activeDrops=[],S.events={},S.activeDrops=He(i,f.element),S.events=fe(f,0,y),S.events.activate&&(Qe(S.activeDrops,S.events.activate),i.fire("actions/drop:start",{interaction:f,dragEvent:y}))}},"interactions:action-move":da,"interactions:after-action-move":function(t,i){var f=t.interaction,y=t.iEvent;if(f.prepared.name==="drag"){var S=f.dropState;ke(f,S.events),i.fire("actions/drop:move",{interaction:f,dragEvent:y}),S.events={}}},"interactions:action-end":function(t,i){if(t.interaction.prepared.name==="drag"){var f=t.interaction,y=t.iEvent;da(t,i),ke(f,f.dropState.events),i.fire("actions/drop:end",{interaction:f,dragEvent:y})}},"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:He,getDrop:qe,getDropEvents:fe,fireDropEvents:ke,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},dl=La;function Ol(t){var i=t.interaction,f=t.iEvent,y=t.phase;if(i.prepared.name==="gesture"){var S=i.pointers.map(function(je){return je.pointer}),O=y==="start",G=y==="end",Q=i.interactable.options.deltaSource;if(f.touches=[S[0],S[1]],O)f.distance=Ca(S,Q),f.box=Na(S),f.scale=1,f.ds=0,f.angle=la(S,Q),f.da=0,i.gesture.startDistance=f.distance,i.gesture.startAngle=f.angle;else if(G||i.pointers.length<2){var ge=i.prevEvent;f.distance=ge.distance,f.box=ge.box,f.scale=ge.scale,f.ds=0,f.angle=ge.angle,f.da=0}else f.distance=Ca(S,Q),f.box=Na(S),f.scale=f.distance/i.gesture.startDistance,f.angle=la(S,Q),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 sl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,f=t.Interactable,y=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=sl,i.methodDict.gesture="gesturable",y.actions.gesture=sl.defaults},listeners:{"interactions:action-start":Ol,"interactions:action-move":Ol,"interactions:action-end":Ol,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},Fl=sl;function Fa(t,i,f,y,S,O,G){if(!i)return!1;if(i===!0){var Q=_.number(O.width)?O.width:O.right-O.left,ge=_.number(O.height)?O.height:O.bottom-O.top;if(G=Math.min(G,Math.abs((t==="left"||t==="right"?Q:ge)/2)),Q<0&&(t==="left"?t="right":t==="right"&&(t="left")),ge<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var je=Q>=0?O.left:O.right;return f.x<je+G}if(t==="top"){var Ce=ge>=0?O.top:O.bottom;return f.y<Ce+G}if(t==="right")return f.x>(Q>=0?O.right:O.left)-G;if(t==="bottom")return f.y>(ge>=0?O.bottom:O.top)-G}return!!_.element(y)&&(_.element(i)?i===y:U(y,i,S))}function Vl(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.resizeAxes){var y=i;f.interactable.options.resize.square?(f.resizeAxes==="y"?y.delta.x=y.delta.y:y.delta.y=y.delta.x,y.axes="xy"):(y.axes=f.resizeAxes,f.resizeAxes==="x"?y.delta.y=0:f.resizeAxes==="y"&&(y.delta.x=0))}}var zl,Aa,rl={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,f=t.browser,y=t.Interactable,S=t.defaults;rl.cursors=function(O){return O.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(f),rl.defaultMargin=f.supportsTouch||f.supportsPointerEvent?20:10,y.prototype.resizable=function(O){return function(G,Q,ge){return _.object(Q)?(G.options.resize.enabled=Q.enabled!==!1,G.setPerAction("resize",Q),G.setOnEvents("resize",Q),_.string(Q.axis)&&/^x$|^y$|^xy$/.test(Q.axis)?G.options.resize.axis=Q.axis:Q.axis===null&&(G.options.resize.axis=ge.defaults.actions.resize.axis),_.bool(Q.preserveAspectRatio)?G.options.resize.preserveAspectRatio=Q.preserveAspectRatio:_.bool(Q.square)&&(G.options.resize.square=Q.square),G):_.bool(Q)?(G.options.resize.enabled=Q,G):G.options.resize}(this,O,t)},i.map.resize=rl,i.methodDict.resize="resizable",S.actions.resize=rl.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(i){var f=i.iEvent,y=i.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var S=f,O=y.rect;y._rects={start:ee({},O),corrected:ee({},O),previous:ee({},O),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},S.edges=y.prepared.edges,S.rect=y._rects.corrected,S.deltaRect=y._rects.delta}})(t),Vl(t)},"interactions:action-move":function(t){(function(i){var f=i.iEvent,y=i.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var S=f,O=y.interactable.options.resize.invert,G=O==="reposition"||O==="negate",Q=y.rect,ge=y._rects,je=ge.start,Ce=ge.corrected,ra=ge.delta,Da=ge.previous;if(ee(Da,Ce),G){if(ee(Ce,Q),O==="reposition"){if(Ce.top>Ce.bottom){var Ja=Ce.top;Ce.top=Ce.bottom,Ce.bottom=Ja}if(Ce.left>Ce.right){var Wa=Ce.left;Ce.left=Ce.right,Ce.right=Wa}}}else Ce.top=Math.min(Q.top,je.bottom),Ce.bottom=Math.max(Q.bottom,je.top),Ce.left=Math.min(Q.left,je.right),Ce.right=Math.max(Q.right,je.left);for(var Qa in Ce.width=Ce.right-Ce.left,Ce.height=Ce.bottom-Ce.top,Ce)ra[Qa]=Ce[Qa]-Da[Qa];S.edges=y.prepared.edges,S.rect=Ce,S.deltaRect=ra}})(t),Vl(t)},"interactions:action-end":function(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.prepared.edges){var y=i;y.edges=f.prepared.edges,y.rect=f._rects.corrected,y.deltaRect=f._rects.delta}},"auto-start:check":function(t){var i=t.interaction,f=t.interactable,y=t.element,S=t.rect,O=t.buttons;if(S){var G=ee({},i.coords.cur.page),Q=f.options.resize;if(Q&&Q.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(O&Q.mouseButtons)!=0)){if(_.object(Q.edges)){var ge={left:!1,right:!1,top:!1,bottom:!1};for(var je in ge)ge[je]=Fa(je,Q.edges[je],G,i._latestPointer.eventTarget,y,S,Q.margin||rl.defaultMargin);ge.left=ge.left&&!ge.right,ge.top=ge.top&&!ge.bottom,(ge.left||ge.right||ge.top||ge.bottom)&&(t.action={name:"resize",edges:ge})}else{var Ce=Q.axis!=="y"&&G.x>S.right-rl.defaultMargin,ra=Q.axis!=="x"&&G.y>S.bottom-rl.defaultMargin;(Ce||ra)&&(t.action={name:"resize",axes:(Ce?"x":"")+(ra?"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,y=t.name,S=rl.cursors,O=null;if(f)O=S[y+f];else if(i){for(var G="",Q=0,ge=["top","bottom","left","right"];Q<ge.length;Q++){var je=ge[Q];i[je]&&(G+=je)}O=S[G]}return O},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},nl=rl,ul={id:"actions",install:function(t){t.usePlugin(Fl),t.usePlugin(nl),t.usePlugin(X),t.usePlugin(dl)}},Ra=0,cl={request:function(t){return zl(t)},cancel:function(t){return Aa(t)},init:function(t){if(zl=t.requestAnimationFrame,Aa=t.cancelAnimationFrame,!zl)for(var i=["ms","moz","webkit","o"],f=0;f<i.length;f++){var y=i[f];zl=t["".concat(y,"RequestAnimationFrame")],Aa=t["".concat(y,"CancelAnimationFrame")]||t["".concat(y,"CancelRequestAnimationFrame")]}zl=zl&&zl.bind(t),Aa=Aa&&Aa.bind(t),zl||(zl=function(S){var O=Date.now(),G=Math.max(0,16-(O-Ra)),Q=t.setTimeout(function(){S(O+G)},G);return Ra=O+G,Q},Aa=function(S){return clearTimeout(S)})}},ll={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){ll.isScrolling=!0,cl.cancel(ll.i),t.autoScroll=ll,ll.interaction=t,ll.prevTime=ll.now(),ll.i=cl.request(ll.scroll)},stop:function(){ll.isScrolling=!1,ll.interaction&&(ll.interaction.autoScroll=null),cl.cancel(ll.i)},scroll:function(){var t=ll.interaction,i=t.interactable,f=t.element,y=t.prepared.name,S=i.options[y].autoScroll,O=Ne(S.container,i,f),G=ll.now(),Q=(G-ll.prevTime)/1e3,ge=S.speed*Q;if(ge>=1){var je={x:ll.x*ge,y:ll.y*ge};if(je.x||je.y){var Ce=Ue(O);_.window(O)?O.scrollBy(je.x,je.y):O&&(O.scrollLeft+=je.x,O.scrollTop+=je.y);var ra=Ue(O),Da={x:ra.x-Ce.x,y:ra.y-Ce.y};(Da.x||Da.y)&&i.fire({type:"autoscroll",target:f,interactable:i,delta:Da,interaction:t,container:O})}ll.prevTime=G}ll.isScrolling&&(cl.cancel(ll.i),ll.i=cl.request(ll.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()&&ll.check(i.interactable,i.prepared.name))if(i.simulation)ll.x=ll.y=0;else{var y,S,O,G,Q=i.interactable,ge=i.element,je=i.prepared.name,Ce=Q.options[je].autoScroll,ra=Ne(Ce.container,Q,ge);if(_.window(ra))G=f.clientX<ll.margin,y=f.clientY<ll.margin,S=f.clientX>ra.innerWidth-ll.margin,O=f.clientY>ra.innerHeight-ll.margin;else{var Da=Oe(ra);G=f.clientX<Da.left+ll.margin,y=f.clientY<Da.top+ll.margin,S=f.clientX>Da.right-ll.margin,O=f.clientY>Da.bottom-ll.margin}ll.x=S?1:G?-1:0,ll.y=O?1:y?-1:0,ll.isScrolling||(ll.margin=Ce.margin,ll.speed=Ce.speed,ll.start(i))}}};function Ne(t,i,f){return(_.string(t)?ua(t,i,f):t)||x(f)}function Ue(t){return _.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var na={id:"auto-scroll",install:function(t){var i=t.defaults,f=t.actions;t.autoScroll=ll,ll.now=function(){return t.now()},f.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=ll.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,ll.stop(),ll.interaction&&(ll.interaction=null)},"interactions:stop":ll.stop,"interactions:action-move":function(t){return ll.onInteractionMove(t)}}},re=na;function ia(t,i){var f=!1;return function(){return f||(L.console.warn(i),f=!0),t.apply(this,arguments)}}function Va(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Le(t){return _.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ja(t){return _.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Ma={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(f,y,S,O){var G=function(Q,ge,je,Ce,ra){var Da=Q.getRect(Ce),Ja=ge.buttons||{0:1,1:4,3:8,4:16}[ge.button],Wa={action:null,interactable:Q,interaction:je,element:Ce,rect:Da,buttons:Ja};return ra.fire("auto-start:check",Wa),Wa.action}(this,y,S,O,t);return this.options.actionChecker?this.options.actionChecker(f,y,G,this,O,S):G},i.prototype.ignoreFrom=ia(function(f){return this._backCompatOption("ignoreFrom",f)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=ia(function(f){return this._backCompatOption("allowFrom",f)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=ja,i.prototype.styleCursor=Le}};function il(t,i,f,y,S){return i.testIgnoreAllow(i.options[t.name],f,y)&&i.options[t.name].enabled&&ka(i,f,t,S)?t:null}function We(t,i,f,y,S,O,G){for(var Q=0,ge=y.length;Q<ge;Q++){var je=y[Q],Ce=S[Q],ra=je.getAction(i,f,t,Ce);if(ra){var Da=il(ra,je,Ce,O,G);if(Da)return{action:Da,interactable:je,element:Ce}}}return{action:null,interactable:null,element:null}}function pa(t,i,f,y,S){var O=[],G=[],Q=y;function ge(Ce){O.push(Ce),G.push(Q)}for(;_.element(Q);){O=[],G=[],S.interactables.forEachMatch(Q,ge);var je=We(t,i,f,O,G,y,S);if(je.action&&!je.interactable.options[je.action.name].manualStart)return je;Q=Ve(Q)}return{action:null,interactable:null,element:null}}function ma(t,i,f){var y=i.action,S=i.interactable,O=i.element;y=y||{name:null},t.interactable=S,t.element=O,Va(t.prepared,y),t.rect=S&&y.name?S.getRect(O):null,Jl(t,f),f.fire("autoStart:prepared",{interaction:t})}function ka(t,i,f,y){var S=t.options,O=S[f.name].max,G=S[f.name].maxPerElement,Q=y.autoStart.maxInteractions,ge=0,je=0,Ce=0;if(!(O&&G&&Q))return!1;for(var ra=0,Da=y.interactions.list;ra<Da.length;ra++){var Ja=Da[ra],Wa=Ja.prepared.name;if(Ja.interacting()&&(++ge>=Q||Ja.interactable===t&&((je+=Wa===f.name?1:0)>=O||Ja.element===i&&(Ce++,Wa===f.name&&Ce>=G))))return!1}return Q>0}function _e(t,i){return _.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function Tl(t,i,f){var y=f.autoStart.cursorElement;y&&y!==t&&(y.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,f.autoStart.cursorElement=i?t:null}function Jl(t,i){var f=t.interactable,y=t.element,S=t.prepared;if(t.pointerType==="mouse"&&f&&f.options.styleCursor){var O="";if(S.name){var G=f.options[S.name].cursorChecker;O=_.func(G)?G(S,f,y,t._interacting):i.actions.map[S.name].getCursor(S)}Tl(t.element,O||"",i)}else i.autoStart.cursorElement&&Tl(i.autoStart.cursorElement,"",i)}var rr={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,f=t.defaults;t.usePlugin(Ma),f.base.actionChecker=null,f.base.styleCursor=!0,ee(f.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(y){return _e(y,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ka,cursorElement:null}},listeners:{"interactions:down":function(t,i){var f=t.interaction,y=t.pointer,S=t.event,O=t.eventTarget;f.interacting()||ma(f,pa(f,y,S,O,i),i)},"interactions:move":function(t,i){(function(f,y){var S=f.interaction,O=f.pointer,G=f.event,Q=f.eventTarget;S.pointerType!=="mouse"||S.pointerIsDown||S.interacting()||ma(S,pa(S,O,G,Q,y),y)})(t,i),function(f,y){var S=f.interaction;if(S.pointerIsDown&&!S.interacting()&&S.pointerWasMoved&&S.prepared.name){y.fire("autoStart:before-start",f);var O=S.interactable,G=S.prepared.name;G&&O&&(O.options[G].manualStart||!ka(O,S.element,S.prepared,y)?S.stop():(S.start(S.prepared,O,S.element),Jl(S,y)))}}(t,i)},"interactions:stop":function(t,i){var f=t.interaction,y=f.interactable;y&&y.options.styleCursor&&Tl(f.element,"",i)}},maxInteractions:_e,withinInteractionLimit:ka,validateAction:il},er=rr,pr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var f=t.interaction,y=t.eventTarget,S=t.dx,O=t.dy;if(f.prepared.name==="drag"){var G=Math.abs(S),Q=Math.abs(O),ge=f.interactable.options.drag,je=ge.startAxis,Ce=G>Q?"x":G<Q?"y":"xy";if(f.prepared.axis=ge.lockAxis==="start"?Ce[0]:ge.lockAxis,Ce!=="xy"&&je!=="xy"&&je!==Ce){f.prepared.name=null;for(var ra=y,Da=function(Wa){if(Wa!==f.interactable){var Qa=f.interactable.options.drag;if(!Qa.manualStart&&Wa.testIgnoreAllow(Qa,ra,y)){var xl=Wa.getAction(f.downPointer,f.downEvent,f,ra);if(xl&&xl.name==="drag"&&function(ml,El){if(!El)return!1;var Ul=El.options.drag.startAxis;return ml==="xy"||Ul==="xy"||Ul===ml}(Ce,Wa)&&er.validateAction(xl,Wa,ra,y,i))return Wa}}};_.element(ra);){var Ja=i.interactables.forEachMatch(ra,Da);if(Ja){f.prepared.name="drag",f.interactable=Ja,f.element=ra;break}ra=Ve(ra)}}}}}};function Gl(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 Re={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(er),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=Gl(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;Gl(i)>0&&(i.prepared.name=null)}},getHoldDuration:Gl},jl=Re,fr={id:"auto-start",install:function(t){t.usePlugin(er),t.usePlugin(jl),t.usePlugin(pr)}},Tr=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 hr(t){var i=t.interaction,f=t.event;i.interactable&&i.interactable.checkAndPreventDefault(f)}var Hl={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=Tr,i.prototype.checkAndPreventDefault=function(f){return function(y,S,O){var G=y.options.preventDefault;if(G!=="never")if(G!=="always"){if(S.events.supportsPassive&&/^touch(start|move)$/.test(O.type)){var Q=x(O.target).document,ge=S.getDocOptions(Q);if(!ge||!ge.events||ge.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(O.type)||_.element(O.target)&&he(O.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||O.preventDefault()}else O.preventDefault()}(this,t,f)},t.interactions.docEvents.push({type:"dragstart",listener:function(f){for(var y=0,S=t.interactions.list;y<S.length;y++){var O=S[y];if(O.element&&(O.element===f.target||se(O.element,f.target)))return void O.interactable.checkAndPreventDefault(f)}}})},listeners:["down","move","up","cancel"].reduce(function(t,i){return t["interactions:".concat(i)]=hr,t},{})};function Lr(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 Pl(t){var i={};for(var f in t){var y=t[f];_.plainObject(y)?i[f]=Pl(y):_.array(y)?i[f]=Ie(y):i[f]=y}return i}var Nr=function(){function t(i){s(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=Ur(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(t,[{key:"start",value:function(i,f){var y,S,O=i.phase,G=this.interaction,Q=function(je){var Ce=je.interactable.options[je.prepared.name],ra=Ce.modifiers;return ra&&ra.length?ra:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Da){var Ja=Ce[Da];return Ja&&Ja.enabled&&{options:Ja,methods:Ja._methods}}).filter(function(Da){return!!Da})}(G);this.prepareStates(Q),this.startEdges=ee({},G.edges),this.edges=ee({},this.startEdges),this.startOffset=(y=G.rect,S=f,y?{left:S.x-y.left,top:S.y-y.top,right:y.right-S.x,bottom:y.bottom-S.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var ge=this.fillArg({phase:O,pageCoords:f,preEnd:!1});return this.result=Ur(),this.startAll(ge),this.result=this.setAll(ge)}},{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,y=this.states;f<y.length;f++){var S=y[f];S.methods.start&&(i.state=S,S.methods.start(i))}}},{key:"setAll",value:function(i){var f=i.phase,y=i.preEnd,S=i.skipModifiers,O=i.rect,G=i.edges;i.coords=ee({},i.pageCoords),i.rect=ee({},O),i.edges=ee({},G);for(var Q=S?this.states.slice(S):this.states,ge=Ur(i.coords,i.rect),je=0;je<Q.length;je++){var Ce,ra=Q[je],Da=ra.options,Ja=ee({},i.coords),Wa=null;(Ce=ra.methods)!=null&&Ce.set&&this.shouldDo(Da,y,f)&&(i.state=ra,Wa=ra.methods.set(i),oe(i.edges,i.rect,{x:i.coords.x-Ja.x,y:i.coords.y-Ja.y})),ge.eventProps.push(Wa)}ee(this.edges,i.edges),ge.delta.x=i.coords.x-i.pageCoords.x,ge.delta.y=i.coords.y-i.pageCoords.y,ge.rectDelta.left=i.rect.left-O.left,ge.rectDelta.right=i.rect.right-O.right,ge.rectDelta.top=i.rect.top-O.top,ge.rectDelta.bottom=i.rect.bottom-O.bottom;var Qa=this.result.coords,xl=this.result.rect;if(Qa&&xl){var ml=ge.rect.left!==xl.left||ge.rect.right!==xl.right||ge.rect.top!==xl.top||ge.rect.bottom!==xl.bottom;ge.changed=ml||Qa.x!==ge.coords.x||Qa.y!==ge.coords.y}return ge}},{key:"applyToInteraction",value:function(i){var f=this.interaction,y=i.phase,S=f.coords.cur,O=f.coords.start,G=this.result,Q=this.startDelta,ge=G.delta;y==="start"&&ee(this.startDelta,G.delta);for(var je=0,Ce=[[O,Q],[S,ge]];je<Ce.length;je++){var ra=Ce[je],Da=ra[0],Ja=ra[1];Da.page.x+=Ja.x,Da.page.y+=Ja.y,Da.client.x+=Ja.x,Da.client.y+=Ja.y}var Wa=this.result.rectDelta,Qa=i.rect||f.rect;Qa.left+=Wa.left,Qa.right+=Wa.right,Qa.top+=Wa.top,Qa.bottom+=Wa.bottom,Qa.width=Qa.right-Qa.left,Qa.height=Qa.bottom-Qa.top}},{key:"setAndApply",value:function(i){var f=this.interaction,y=i.phase,S=i.preEnd,O=i.skipModifiers,G=this.setAll(this.fillArg({preEnd:S,phase:y,pageCoords:i.modifiedCoords||f.coords.cur.page}));if(this.result=G,!G.changed&&(!O||O<this.states.length)&&f.interacting())return!1;if(i.modifiedCoords){var Q=f.coords.cur.page,ge={x:i.modifiedCoords.x-Q.x,y:i.modifiedCoords.y-Q.y};G.coords.x+=ge.x,G.coords.y+=ge.y,G.delta.x+=ge.x,G.delta.y+=ge.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var f=i.interaction,y=i.event,S=this.states;if(S&&S.length){for(var O=!1,G=0;G<S.length;G++){var Q=S[G];i.state=Q;var ge=Q.options,je=Q.methods,Ce=je.beforeEnd&&je.beforeEnd(i);if(Ce)return this.endResult=Ce,!1;O=O||!O&&this.shouldDo(ge,!0,i.phase,!0)}O&&f.move({event:y,preEnd:!0})}}},{key:"stop",value:function(i){var f=i.interaction;if(this.states&&this.states.length){var y=ee({states:this.states,interactable:f.interactable,element:f.element,rect:null},i);this.fillArg(y);for(var S=0,O=this.states;S<O.length;S++){var G=O[S];y.state=G,G.methods.stop&&G.methods.stop(y)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var f=0;f<i.length;f++){var y=i[f],S=y.options,O=y.methods,G=y.name;this.states.push({options:S,methods:O,index:f,name:G})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var f=i.interaction,y=f.coords,S=f.rect,O=f.modification;if(O.result){for(var G=O.startDelta,Q=O.result,ge=Q.delta,je=Q.rectDelta,Ce=0,ra=[[y.start,G],[y.cur,ge]];Ce<ra.length;Ce++){var Da=ra[Ce],Ja=Da[0],Wa=Da[1];Ja.page.x-=Wa.x,Ja.page.y-=Wa.y,Ja.client.x-=Wa.x,Ja.client.y-=Wa.y}S.left-=je.left,S.right-=je.right,S.top-=je.top,S.bottom-=je.bottom}}},{key:"shouldDo",value:function(i,f,y,S){return!(!i||i.enabled===!1||S&&!i.endOnly||i.endOnly&&!f||y==="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 Pl(f)}),this.result=Ur(ee({},i.result.coords),ee({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function Ur(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 wr(t,i){var f=t.defaults,y={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},S=function(O){var G=O||{};for(var Q in G.enabled=G.enabled!==!1,f)Q in G||(G[Q]=f[Q]);var ge={options:G,methods:y,name:i,enable:function(){return G.enabled=!0,ge},disable:function(){return G.enabled=!1,ge}};return ge};return i&&typeof i=="string"&&(S._defaults=f,S._methods=y),S}function ql(t){var i=t.iEvent,f=t.interaction.modification.result;f&&(i.modifiers=f.eventProps)}var ln={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new Nr(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,y=f.setAndApply(t);return i.edges=f.edges,y},"interactions:before-action-end":function(t){var i=t.interaction,f=i.modification,y=f.beforeEnd(t);return i.edges=f.startEdges,y},"interactions:action-start":ql,"interactions:action-move":ql,"interactions:action-end":ql,"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)}}},_r=ln,Ql={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Vr=function(t){m(f,t);var i=M(f);function f(y,S,O,G,Q,ge,je){var Ce;s(this,f),(Ce=i.call(this,y)).relatedTarget=null,Ce.screenX=void 0,Ce.screenY=void 0,Ce.button=void 0,Ce.buttons=void 0,Ce.ctrlKey=void 0,Ce.shiftKey=void 0,Ce.altKey=void 0,Ce.metaKey=void 0,Ce.page=void 0,Ce.client=void 0,Ce.delta=void 0,Ce.rect=void 0,Ce.x0=void 0,Ce.y0=void 0,Ce.t0=void 0,Ce.dt=void 0,Ce.duration=void 0,Ce.clientX0=void 0,Ce.clientY0=void 0,Ce.velocity=void 0,Ce.speed=void 0,Ce.swipe=void 0,Ce.axes=void 0,Ce.preEnd=void 0,Q=Q||y.element;var ra=y.interactable,Da=(ra&&ra.options||Ql).deltaSource,Ja=ze(ra,Q,O),Wa=G==="start",Qa=G==="end",xl=Wa?D(Ce):y.prevEvent,ml=Wa?y.coords.start:Qa?{page:xl.page,client:xl.client,timeStamp:y.coords.cur.timeStamp}:y.coords.cur;return Ce.page=ee({},ml.page),Ce.client=ee({},ml.client),Ce.rect=ee({},y.rect),Ce.timeStamp=ml.timeStamp,Qa||(Ce.page.x-=Ja.x,Ce.page.y-=Ja.y,Ce.client.x-=Ja.x,Ce.client.y-=Ja.y),Ce.ctrlKey=S.ctrlKey,Ce.altKey=S.altKey,Ce.shiftKey=S.shiftKey,Ce.metaKey=S.metaKey,Ce.button=S.button,Ce.buttons=S.buttons,Ce.target=Q,Ce.currentTarget=Q,Ce.preEnd=ge,Ce.type=je||O+(G||""),Ce.interactable=ra,Ce.t0=Wa?y.pointers[y.pointers.length-1].downTime:xl.t0,Ce.x0=y.coords.start.page.x-Ja.x,Ce.y0=y.coords.start.page.y-Ja.y,Ce.clientX0=y.coords.start.client.x-Ja.x,Ce.clientY0=y.coords.start.client.y-Ja.y,Ce.delta=Wa||Qa?{x:0,y:0}:{x:Ce[Da].x-xl[Da].x,y:Ce[Da].y-xl[Da].y},Ce.dt=y.coords.delta.timeStamp,Ce.duration=Ce.timeStamp-Ce.t0,Ce.velocity=ee({},y.coords.velocity[Da]),Ce.speed=Ya(Ce.velocity.x,Ce.velocity.y),Ce.swipe=Qa||G==="inertiastart"?Ce.getSwipe():null,Ce}return c(f,[{key:"getSwipe",value:function(){var y=this._interaction;if(y.prevEvent.speed<600||this.timeStamp-y.prevEvent.timeStamp>150)return null;var S=180*Math.atan2(y.prevEvent.velocityY,y.prevEvent.velocityX)/Math.PI;S<0&&(S+=360);var O=112.5<=S&&S<247.5,G=202.5<=S&&S<337.5;return{up:G,down:!G&&22.5<=S&&S<157.5,left:O,right:!O&&(292.5<=S||S<67.5),angle:S,speed:y.prevEvent.speed,velocity:{x:y.prevEvent.velocityX,y:y.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),f}(W);Object.defineProperties(Vr.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 Ir=c(function t(i,f,y,S,O){s(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=y,this.downTime=S,this.downTarget=O}),Rr=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),vn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),tn=0,mn=function(){function t(i){var f=this,y=i.pointerType,S=i.scopeFire;s(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=ia(function(Ce){this.move(Ce)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=tn++,this._scopeFire=S,this.pointerType=y;var O=this;this._proxy={};var G=function(Ce){Object.defineProperty(f._proxy,Ce,{get:function(){return O[Ce]}})};for(var Q in Rr)G(Q);var ge=function(Ce){Object.defineProperty(f._proxy,Ce,{value:function(){return O[Ce].apply(O,arguments)}})};for(var je in vn)ge(je);this._scopeFire("interactions:new",{interaction:this})}return c(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,f,y){var S=this.updatePointer(i,f,y,!0),O=this.pointers[S];this._scopeFire("interactions:down",{pointer:i,event:f,eventTarget:y,pointerIndex:S,pointerInfo:O,type:"down",interaction:this})}},{key:"start",value:function(i,f,y){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!f.options[i.name].enabled)&&(Va(this.prepared,i),this.interactable=f,this.element=y,this.rect=f.getRect(y),this.edges=this.prepared.edges?ee({},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,y){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,f,y,!1);var S,O,G=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(S=this.coords.cur.client.x-this.coords.start.client.x,O=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ya(S,O)>this.pointerMoveTolerance);var Q,ge,je,Ce=this.getPointerIndex(i),ra={pointer:i,pointerIndex:Ce,pointerInfo:this.pointers[Ce],event:f,type:"move",eventTarget:y,dx:S,dy:O,duplicate:G,interaction:this};G||(Q=this.coords.velocity,ge=this.coords.delta,je=Math.max(ge.timeStamp/1e3,.001),Q.page.x=ge.page.x/je,Q.page.y=ge.page.y/je,Q.client.x=ge.client.x/je,Q.client.y=ge.client.y/je,Q.timeStamp=je),this._scopeFire("interactions:move",ra),G||this.simulation||(this.interacting()&&(ra.type=null,this.move(ra)),this.pointerWasMoved&&J(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||ve(this.coords.delta),(i=ee({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,y,S){var O=this.getPointerIndex(i);O===-1&&(O=this.updatePointer(i,f,y,!1));var G=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(G),{pointer:i,pointerIndex:O,pointerInfo:this.pointers[O],event:f,eventTarget:y,type:G,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=ce(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:we(this.pointers,function(y){return y.id===f})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,f,y,S){var O,G,Q,ge=ce(i),je=this.getPointerIndex(i),Ce=this.pointers[je];return S=S!==!1&&(S||/(down|start)$/i.test(f.type)),Ce?Ce.pointer=i:(Ce=new Ir(ge,i,f,null,null),je=this.pointers.length,this.pointers.push(Ce)),ga(this.coords.cur,this.pointers.map(function(ra){return ra.pointer}),this._now()),O=this.coords.delta,G=this.coords.prev,Q=this.coords.cur,O.page.x=Q.page.x-G.page.x,O.page.y=Q.page.y-G.page.y,O.client.x=Q.client.x-G.client.x,O.client.y=Q.client.y-G.client.y,O.timeStamp=Q.timeStamp-G.timeStamp,S&&(this.pointerIsDown=!0,Ce.downTime=this.coords.cur.timeStamp,Ce.downTarget=y,j(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,y),this._scopeFire("interactions:update-pointer",{pointer:i,event:f,eventTarget:y,down:S,pointerInfo:Ce,pointerIndex:je,interaction:this}),je}},{key:"removePointer",value:function(i,f){var y=this.getPointerIndex(i);if(y!==-1){var S=this.pointers[y];this._scopeFire("interactions:remove-pointer",{pointer:i,event:f,eventTarget:null,pointerIndex:y,pointerInfo:S,interaction:this}),this.pointers.splice(y,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,f,y){this._latestPointer.pointer=i,this._latestPointer.event=f,this._latestPointer.eventTarget=y}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,f,y,S){return new Vr(this,i,this.prepared.name,f,this.element,y,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,y=i.phase,S=i.preEnd,O=i.type,G=this.rect;if(G&&y==="move"&&(oe(this.edges,G,this.coords.delta[this.interactable.options.deltaSource]),G.width=G.right-G.left,G.height=G.bottom-G.top),this._scopeFire("interactions:before-action-".concat(y),i)===!1)return!1;var Q=i.iEvent=this._createPreparedEvent(f,y,S,O);return this._scopeFire("interactions:action-".concat(y),i),y==="start"&&(this.prevEvent=Q),this._fireEvent(Q),this._scopeFire("interactions:after-action-".concat(y),i),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function nr(t){vr(t.interaction)}function vr(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),oe(t.edges,t.rect,i),i.x=0,i.y=0,!0}function jr(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,y=t.client,S=i.x,O=i.y;f.x+=S,f.y+=O,y.x+=S,y.y+=O}vn.offsetBy="";var ir={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=jr},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":nr,"interactions:before-action-move":nr,"interactions:before-action-end":function(t){var i=t.interaction;if(vr(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}}},Ll=ir,xr=function(){function t(i){s(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 c(t,[{key:"start",value:function(i){var f=this.interaction,y=Sl(f);if(!y||!y.enabled)return!1;var S=f.coords.velocity.client,O=Ya(S.x,S.y),G=this.modification||(this.modification=new Nr(f));if(G.copyFrom(f.modification),this.t0=f._now(),this.allowResume=y.allowResume,this.v0=O,this.currentOffset={x:0,y:0},this.startCoords=f.coords.cur.page,this.modifierArg=G.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-f.coords.cur.timeStamp<50&&O>y.minSpeed&&O>y.endSpeed)this.startInertia();else{if(G.result=G.setAll(this.modifierArg),!G.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,y=Sl(this.interaction),S=y.resistance,O=-Math.log(y.endSpeed/this.v0)/S;this.targetOffset={x:(f.x-O)/S,y:(f.y-O)/S},this.te=O,this.lambda_v0=S/this.v0,this.one_ve_v0=1-y.endSpeed/this.v0;var G=this.modification,Q=this.modifierArg;Q.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},G.result=G.setAll(Q),G.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+G.result.delta.x,y:this.targetOffset.y+G.result.delta.y}),this.onNextFrame(function(){return i.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var i=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return i.smoothEndTick()})}},{key:"onNextFrame",value:function(i){var f=this;this.timeout=cl.request(function(){f.active&&i()})}},{key:"inertiaTick",value:function(){var i,f,y,S,O,G,Q,ge=this,je=this.interaction,Ce=Sl(je).resistance,ra=(je._now()-this.t0)/1e3;if(ra<this.te){var Da,Ja=1-(Math.exp(-Ce*ra)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,f=0,y=this.targetOffset.x,S=this.targetOffset.y,O=this.modifiedOffset.x,G=this.modifiedOffset.y,Da={x:Br(Q=Ja,i,y,O),y:Br(Q,f,S,G)}):Da={x:this.targetOffset.x*Ja,y:this.targetOffset.y*Ja};var Wa={x:Da.x-this.currentOffset.x,y:Da.y-this.currentOffset.y};this.currentOffset.x+=Wa.x,this.currentOffset.y+=Wa.y,je.offsetBy(Wa),je.move(),this.onNextFrame(function(){return ge.inertiaTick()})}else je.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,f=this.interaction,y=f._now()-this.t0,S=Sl(f).smoothEndDuration;if(y<S){var O={x:xn(y,0,this.targetOffset.x,S),y:xn(y,0,this.targetOffset.y,S)},G={x:O.x-this.currentOffset.x,y:O.y-this.currentOffset.y};this.currentOffset.x+=G.x,this.currentOffset.y+=G.y,f.offsetBy(G),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,y=i.event,S=i.eventTarget,O=this.interaction;O.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),O.updatePointer(f,y,S,!0),O._doPhase({interaction:O,event:y,phase:"resume"}),J(O.coords.prev,O.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,cl.cancel(this.timeout)}}]),t}();function Sl(t){var i=t.interactable,f=t.prepared;return i&&i.options&&f.name&&i.options[f.name].inertia}var ar={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(Ll),t.usePlugin(_r),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 xr(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,y=i.inertia;if(y.active)for(var S=f;_.element(S);){if(S===i.element){y.resume(t);break}S=Ve(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":ql,"interactions:action-inertiastart":ql,"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 Br(t,i,f,y){var S=1-t;return S*S*i+2*S*t*f+t*t*y}function xn(t,i,f,y){return-f*(t/=y)*(t-2)+i}var Nn=ar;function wn(t,i){for(var f=0;f<i.length;f++){var y=i[f];if(t.immediatePropagationStopped)break;y(t)}}var Un=function(){function t(i){s(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ee({},i||{})}return c(t,[{key:"fire",value:function(i){var f,y=this.global;(f=this.types[i.type])&&wn(i,f),!i.propagationStopped&&y&&(f=y[i.type])&&wn(i,f)}},{key:"on",value:function(i,f){var y=Ke(i,f);for(i in y)this.types[i]=Te(this.types[i]||[],y[i])}},{key:"off",value:function(i,f){var y=Ke(i,f);for(i in y){var S=this.types[i];if(S&&S.length)for(var O=0,G=y[i];O<G.length;O++){var Q=G[O],ge=S.indexOf(Q);ge!==-1&&S.splice(ge,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),Ln=function(){function t(i){s(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,j(this,i)}return c(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function _n(t){return _.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function An(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Rn={id:"events",install:function(t){var i,f=[],y={},S=[],O={add:G,remove:Q,addDelegate:function(Ce,ra,Da,Ja,Wa){var Qa=_n(Wa);if(!y[Da]){y[Da]=[];for(var xl=0;xl<S.length;xl++){var ml=S[xl];G(ml,Da,ge),G(ml,Da,je,!0)}}var El=y[Da],Ul=wa(El,function(Cl){return Cl.selector===Ce&&Cl.context===ra});Ul||(Ul={selector:Ce,context:ra,listeners:[]},El.push(Ul)),Ul.listeners.push({func:Ja,options:Qa})},removeDelegate:function(Ce,ra,Da,Ja,Wa){var Qa,xl=_n(Wa),ml=y[Da],El=!1;if(ml)for(Qa=ml.length-1;Qa>=0;Qa--){var Ul=ml[Qa];if(Ul.selector===Ce&&Ul.context===ra){for(var Cl=Ul.listeners,Il=Cl.length-1;Il>=0;Il--){var Ml=Cl[Il];if(Ml.func===Ja&&An(Ml.options,xl)){Cl.splice(Il,1),Cl.length||(ml.splice(Qa,1),Q(ra,Da,ge),Q(ra,Da,je,!0)),El=!0;break}}if(El)break}}},delegateListener:ge,delegateUseCapture:je,delegatedEvents:y,documents:S,targets:f,supportsOptions:!1,supportsPassive:!1};function G(Ce,ra,Da,Ja){if(Ce.addEventListener){var Wa=_n(Ja),Qa=wa(f,function(xl){return xl.eventTarget===Ce});Qa||(Qa={eventTarget:Ce,events:{}},f.push(Qa)),Qa.events[ra]||(Qa.events[ra]=[]),wa(Qa.events[ra],function(xl){return xl.func===Da&&An(xl.options,Wa)})||(Ce.addEventListener(ra,Da,O.supportsOptions?Wa:Wa.capture),Qa.events[ra].push({func:Da,options:Wa}))}}function Q(Ce,ra,Da,Ja){if(Ce.addEventListener&&Ce.removeEventListener){var Wa=we(f,function(Wr){return Wr.eventTarget===Ce}),Qa=f[Wa];if(Qa&&Qa.events)if(ra!=="all"){var xl=!1,ml=Qa.events[ra];if(ml){if(Da==="all"){for(var El=ml.length-1;El>=0;El--){var Ul=ml[El];Q(Ce,ra,Ul.func,Ul.options)}return}for(var Cl=_n(Ja),Il=0;Il<ml.length;Il++){var Ml=ml[Il];if(Ml.func===Da&&An(Ml.options,Cl)){Ce.removeEventListener(ra,Da,O.supportsOptions?Cl:Cl.capture),ml.splice(Il,1),ml.length===0&&(delete Qa.events[ra],xl=!0);break}}}xl&&!Object.keys(Qa.events).length&&f.splice(Wa,1)}else for(ra in Qa.events)Qa.events.hasOwnProperty(ra)&&Q(Ce,ra,"all")}}function ge(Ce,ra){for(var Da=_n(ra),Ja=new Ln(Ce),Wa=y[Ce.type],Qa=va(Ce)[0],xl=Qa;_.element(xl);){for(var ml=0;ml<Wa.length;ml++){var El=Wa[ml],Ul=El.selector,Cl=El.context;if(he(xl,Ul)&&se(Cl,Qa)&&se(Cl,xl)){var Il=El.listeners;Ja.currentTarget=xl;for(var Ml=0;Ml<Il.length;Ml++){var Wr=Il[Ml];An(Wr.options,Da)&&Wr.func(Ja)}}}xl=Ve(xl)}}function je(Ce){return ge(Ce,!0)}return(i=t.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return O.supportsOptions=!0},get passive(){return O.supportsPassive=!0}}),t.events=O,O}},rn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,f=rn.methodOrder;i<f.length;i++){var y=f[i],S=rn[y](t);if(S)return S}return null},simulationResume:function(t){var i=t.pointerType,f=t.eventType,y=t.eventTarget,S=t.scope;if(!/down|start/i.test(f))return null;for(var O=0,G=S.interactions.list;O<G.length;O++){var Q=G[O],ge=y;if(Q.simulation&&Q.simulation.allowResume&&Q.pointerType===i)for(;ge;){if(ge===Q.element)return Q;ge=Ve(ge)}}return null},mouseOrPen:function(t){var i,f=t.pointerId,y=t.pointerType,S=t.eventType,O=t.scope;if(y!=="mouse"&&y!=="pen")return null;for(var G=0,Q=O.interactions.list;G<Q.length;G++){var ge=Q[G];if(ge.pointerType===y){if(ge.simulation&&!zn(ge,f))continue;if(ge.interacting())return ge;i||(i=ge)}}if(i)return i;for(var je=0,Ce=O.interactions.list;je<Ce.length;je++){var ra=Ce[je];if(!(ra.pointerType!==y||/down/i.test(S)&&ra.simulation))return ra}return null},hasPointer:function(t){for(var i=t.pointerId,f=0,y=t.scope.interactions.list;f<y.length;f++){var S=y[f];if(zn(S,i))return S}return null},idle:function(t){for(var i=t.pointerType,f=0,y=t.scope.interactions.list;f<y.length;f++){var S=y[f];if(S.pointers.length===1){var O=S.interactable;if(O&&(!O.options.gesture||!O.options.gesture.enabled))continue}else if(S.pointers.length>=2)continue;if(!S.interacting()&&i===S.pointerType)return S}return null}};function zn(t,i){return t.pointers.some(function(f){return f.id===i})}var qn=rn,Pr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Wn(t,i){return function(f){var y=i.interactions.list,S=$a(f),O=va(f),G=O[0],Q=O[1],ge=[];if(/^touch/.test(f.type)){i.prevTouchTime=i.now();for(var je=0,Ce=f.changedTouches;je<Ce.length;je++){var ra=Ce[je],Da={pointer:ra,pointerId:ce(ra),pointerType:S,eventType:f.type,eventTarget:G,curEventTarget:Q,scope:i},Ja=yn(Da);ge.push([Da.pointer,Da.eventTarget,Da.curEventTarget,Ja])}}else{var Wa=!1;if(!Z.supportsPointerEvent&&/mouse/.test(f.type)){for(var Qa=0;Qa<y.length&&!Wa;Qa++)Wa=y[Qa].pointerType!=="mouse"&&y[Qa].pointerIsDown;Wa=Wa||i.now()-i.prevTouchTime<500||f.timeStamp===0}if(!Wa){var xl={pointer:f,pointerId:ce(f),pointerType:S,eventType:f.type,curEventTarget:Q,eventTarget:G,scope:i},ml=yn(xl);ge.push([xl.pointer,xl.eventTarget,xl.curEventTarget,ml])}}for(var El=0;El<ge.length;El++){var Ul=ge[El],Cl=Ul[0],Il=Ul[1],Ml=Ul[2];Ul[3][t](Cl,f,Il,Ml)}}}function yn(t){var i=t.pointerType,f=t.scope,y={interaction:qn.search(t),searchDetails:t};return f.fire("interactions:find",y),y.interaction||f.interactions.new({pointerType:i})}function Ni(t,i){var f=t.doc,y=t.scope,S=t.options,O=y.interactions.docEvents,G=y.events,Q=G[i];for(var ge in y.browser.isIOS&&!S.events&&(S.events={passive:!1}),G.delegatedEvents)Q(f,ge,G.delegateListener),Q(f,ge,G.delegateUseCapture,!0);for(var je=S&&S.events,Ce=0;Ce<O.length;Ce++){var ra=O[Ce];Q(f,ra.type,ra.listener,je)}}var Lo={id:"core/interactions",install:function(t){for(var i={},f=0;f<Pr.length;f++){var y=Pr[f];i[y]=Wn(y,t)}var S,O=Z.pEventTypes;function G(){for(var Q=0,ge=t.interactions.list;Q<ge.length;Q++){var je=ge[Q];if(je.pointerIsDown&&je.pointerType==="touch"&&!je._interacting)for(var Ce=function(){var Ja=Da[ra];t.documents.some(function(Wa){return se(Wa.doc,Ja.downTarget)})||je.removePointer(Ja.pointer,Ja.event)},ra=0,Da=je.pointers;ra<Da.length;ra++)Ce()}}(S=F.PointerEvent?[{type:O.down,listener:G},{type:O.down,listener:i.pointerDown},{type:O.move,listener:i.pointerMove},{type:O.up,listener:i.pointerUp},{type:O.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:G},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(Q){for(var ge=0,je=t.interactions.list;ge<je.length;ge++)je[ge].documentBlur(Q)}}),t.prevTouchTime=0,t.Interaction=function(Q){m(je,Q);var ge=M(je);function je(){return s(this,je),ge.apply(this,arguments)}return c(je,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(Ce){t.interactions.pointerMoveTolerance=Ce}},{key:"_now",value:function(){return t.now()}}]),je}(mn),t.interactions={list:[],new:function(Q){Q.scopeFire=function(je,Ce){return t.fire(je,Ce)};var ge=new t.Interaction(Q);return t.interactions.list.push(ge),ge},listeners:i,docEvents:S,pointerMoveTolerance:1},t.usePlugin(Hl)},listeners:{"scope:add-document":function(t){return Ni(t,"add")},"scope:remove-document":function(t){return Ni(t,"remove")},"interactable:unset":function(t,i){for(var f=t.interactable,y=i.interactions.list.length-1;y>=0;y--){var S=i.interactions.list[y];S.interactable===f&&(S.stop(),i.fire("interactions:destroy",{interaction:S}),S.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(y,1))}}},onDocSignal:Ni,doOnInteractions:Wn,methodNames:Pr},Ro=Lo,Cn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(Cn||{}),$o=function(){function t(i,f,y,S){s(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Un,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=f.actions,this.target=i,this._context=f.context||y,this._win=x(Ba(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=S,this.set(f)}return c(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,y){var S,O=this,G=(S=this._actions.map[i])==null?void 0:S.filterEventType,Q=function(ge){return(G==null||G(ge))&&Lr(ge,O._actions)};(_.array(f)||_.object(f))&&this._onOff(Cn.Off,i,f,void 0,Q),(_.array(y)||_.object(y))&&this._onOff(Cn.On,i,y,void 0,Q)}},{key:"setPerAction",value:function(i,f){var y=this._defaults;for(var S in f){var O=S,G=this.options[i],Q=f[O];O==="listeners"&&this.updatePerActionListeners(i,G.listeners,Q),_.array(Q)?G[O]=Ie(Q):_.plainObject(Q)?(G[O]=ee(G[O]||{},Pl(Q)),_.object(y.perAction[O])&&"enabled"in y.perAction[O]&&(G[O].enabled=Q.enabled!==!1)):_.bool(Q)&&_.object(y.perAction[O])?G[O].enabled=Q:G[O]=Q}}},{key:"getRect",value:function(i){return i=i||(_.element(this.target)?this.target:null),_.string(this.target)&&(i=i||this._context.querySelector(this.target)),Fe(i)}},{key:"rectChecker",value:function(i){var f=this;return _.func(i)?(this.getRect=function(y){var S=ee({},i.apply(f,y));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(Ba(f)||_.object(f)){for(var y in this.options[i]=f,this._actions.map)this.options[y][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||se(this._context,i)}},{key:"testIgnoreAllow",value:function(i,f,y){return!this.testIgnore(i.ignoreFrom,f,y)&&this.testAllow(i.allowFrom,f,y)}},{key:"testAllow",value:function(i,f,y){return!i||!!_.element(y)&&(_.string(i)?U(y,i,f):!!_.element(i)&&se(i,y))}},{key:"testIgnore",value:function(i,f,y){return!(!i||!_.element(y))&&(_.string(i)?U(y,i,f):!!_.element(i)&&se(i,y))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,f,y,S,O){_.object(f)&&!_.array(f)&&(S=y,y=null);var G=Ke(f,y,O);for(var Q in G){Q==="wheel"&&(Q=Z.wheelEvent);for(var ge=0,je=G[Q];ge<je.length;ge++){var Ce=je[ge];Lr(Q,this._actions)?this.events[i===Cn.On?"on":"off"](Q,Ce):_.string(this.target)?this._scopeEvents[i===Cn.On?"addDelegate":"removeDelegate"](this.target,this._context,Q,Ce,S):this._scopeEvents[i===Cn.On?"add":"remove"](this.target,Q,Ce,S)}}return this}},{key:"on",value:function(i,f,y){return this._onOff(Cn.On,i,f,y)}},{key:"off",value:function(i,f,y){return this._onOff(Cn.Off,i,f,y)}},{key:"set",value:function(i){var f=this._defaults;for(var y in _.object(i)||(i={}),this.options=Pl(f.base),this._actions.methodDict){var S=y,O=this._actions.methodDict[S];this.options[S]={},this.setPerAction(S,ee(ee({},f.perAction),f.actions[S])),this[O](i[S])}for(var G in i)G!=="getRect"?_.func(this[G])&&this[G](i[G]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(_.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var f=this._scopeEvents.delegatedEvents[i],y=f.length-1;y>=0;y--){var S=f[y],O=S.selector,G=S.context,Q=S.listeners;O===this.target&&G===this._context&&f.splice(y,1);for(var ge=Q.length-1;ge>=0;ge--)this._scopeEvents.removeDelegate(this.target,this._context,i,Q[ge][0],Q[ge][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),Vo=function(){function t(i){var f=this;s(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(y){var S=y.interactable,O=S.target,G=_.string(O)?f.selectorMap[O]:O[f.scope.id],Q=we(G,function(ge){return ge===S});G.splice(Q,1)}})}return c(t,[{key:"new",value:function(i,f){f=ee(f||{},{actions:this.scope.actions});var y=new this.scope.Interactable(i,f,this.scope.document,this.scope.events);return this.scope.addDocument(y._doc),this.list.push(y),_.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(y)):(y.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(y)),this.scope.fire("interactable:new",{target:i,options:f,interactable:y,win:this.scope._win}),y}},{key:"getExisting",value:function(i,f){var y=f&&f.context||this.scope.document,S=_.string(i),O=S?this.selectorMap[i]:i[this.scope.id];if(O)return wa(O,function(G){return G._context===y&&(S||G.inContext(i))})}},{key:"forEachMatch",value:function(i,f){for(var y=0,S=this.list;y<S.length;y++){var O=S[y],G=void 0;if((_.string(O.target)?_.element(i)&&he(i,O.target):i===O.target)&&O.inContext(i)&&(G=f(O)),G!==void 0)return G}}}]),t}(),Po=function(){function t(){var i=this;s(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Z,this.defaults=Pl(Ql),this.Eventable=Un,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(y){var S=function O(G,Q){var ge=y.interactables.getExisting(G,Q);return ge||((ge=y.interactables.new(G,Q)).events.global=O.globalEvents),ge};return S.getPointerAverage=Je,S.getTouchBBox=Na,S.getTouchDistance=Ca,S.getTouchAngle=la,S.getElementRect=Fe,S.getElementClientRect=Oe,S.matchesSelector=he,S.closest=Be,S.globalEvents={},S.version="1.10.27",S.scope=y,S.use=function(O,G){return this.scope.usePlugin(O,G),this},S.isSet=function(O,G){return!!this.scope.interactables.get(O,G&&G.context)},S.on=ia(function(O,G,Q){if(_.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),_.array(O)){for(var ge=0,je=O;ge<je.length;ge++){var Ce=je[ge];this.on(Ce,G,Q)}return this}if(_.object(O)){for(var ra in O)this.on(ra,O[ra],G);return this}return Lr(O,this.scope.actions)?this.globalEvents[O]?this.globalEvents[O].push(G):this.globalEvents[O]=[G]:this.scope.events.add(this.scope.document,O,G,{options:Q}),this},"The interact.on() method is being deprecated"),S.off=ia(function(O,G,Q){if(_.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),_.array(O)){for(var ge=0,je=O;ge<je.length;ge++){var Ce=je[ge];this.off(Ce,G,Q)}return this}if(_.object(O)){for(var ra in O)this.off(ra,O[ra],G);return this}var Da;return Lr(O,this.scope.actions)?O in this.globalEvents&&(Da=this.globalEvents[O].indexOf(G))!==-1&&this.globalEvents[O].splice(Da,1):this.scope.events.remove(this.scope.document,O,G,Q),this},"The interact.off() method is being deprecated"),S.debug=function(){return this.scope},S.supportsTouch=function(){return Z.supportsTouch},S.supportsPointerEvent=function(){return Z.supportsPointerEvent},S.stop=function(){for(var O=0,G=this.scope.interactions.list;O<G.length;O++)G[O].stop();return this},S.pointerMoveTolerance=function(O){return _.number(O)?(this.scope.interactions.pointerMoveTolerance=O,this):this.scope.interactions.pointerMoveTolerance},S.addDocument=function(O,G){this.scope.addDocument(O,G)},S.removeDocument=function(O){this.scope.removeDocument(O)},S}(this),this.InteractEvent=Vr,this.Interactable=void 0,this.interactables=new Vo(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(y){return i.removeDocument(y.target)};var f=this;this.Interactable=function(y){m(O,y);var S=M(O);function O(){return s(this,O),S.apply(this,arguments)}return c(O,[{key:"_defaults",get:function(){return f.defaults}},{key:"set",value:function(G){return k(g(O.prototype),"set",this).call(this,G),f.fire("interactable:set",{options:G,interactable:this}),this}},{key:"unset",value:function(){k(g(O.prototype),"unset",this).call(this);var G=f.interactables.list.indexOf(this);G<0||(f.interactables.list.splice(G,1),f.fire("interactable:unset",{interactable:this}))}}]),O}($o)}return c(t,[{key:"addListeners",value:function(i,f){this.listenerMaps.push({id:f,map:i})}},{key:"fire",value:function(i,f){for(var y=0,S=this.listenerMaps;y<S.length;y++){var O=S[y].map[i];if(O&&O(f,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(f,y){return f.isInitialized=!0,_.window(y)&&E(y),F.init(y),Z.init(y),cl.init(y),f.window=y,f.document=y.document,f.usePlugin(Ro),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 y=0,S=this.listenerMaps.length,O=i.before.reduce(function(Q,ge){return Q[ge]=!0,Q[Ai(ge)]=!0,Q},{});y<S;y++){var G=this.listenerMaps[y].id;if(G&&(O[G]||O[Ai(G)]))break}this.listenerMaps.splice(y,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 y=x(i);f=f?ee({},f):{},this.documents.push({doc:i,options:f}),this.events.documents.push(i),i!==this.document&&this.events.add(y,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:y,scope:this,options:f})}},{key:"removeDocument",value:function(i){var f=this.getDocIndex(i),y=x(i),S=this.documents[f].options;this.events.remove(y,"unload",this.onWindowUnload),this.documents.splice(f,1),this.events.documents.splice(f,1),this.fire("scope:remove-document",{doc:i,window:y,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 Ai(t){return t&&t.replace(/\/.*$/,"")}var Ji=new Po,qr=Ji.interactStatic,Fo=typeof globalThis<"u"?globalThis:window;Ji.init(Fo);var jo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(y){var S=y[0],O=y[1];return S in t||O in t}),f=function(y,S){for(var O=t.range,G=t.limits,Q=G===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:G,ge=t.offset,je=ge===void 0?{x:0,y:0}:ge,Ce={range:O,grid:t,x:null,y:null},ra=0;ra<i.length;ra++){var Da=i[ra],Ja=Da[0],Wa=Da[1],Qa=Math.round((y-je.x)/t[Ja]),xl=Math.round((S-je.y)/t[Wa]);Ce[Ja]=Math.max(Q.left,Math.min(Q.right,Qa*t[Ja]+je.x)),Ce[Wa]=Math.max(Q.top,Math.min(Q.bottom,xl*t[Wa]+je.y))}return Ce};return f.grid=t,f.coordFields=i,f}}),zi={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=ee(i.snappers||{},jo),i.createSnapGrid=i.snappers.grid}},Ho=zi,Mi={start:function(t){var i=t.state,f=t.rect,y=t.edges,S=t.pageCoords,O=i.options,G=O.ratio,Q=O.enabled,ge=i.options,je=ge.equalDelta,Ce=ge.modifiers;G==="preserve"&&(G=f.width/f.height),i.startCoords=ee({},S),i.startRect=ee({},f),i.ratio=G,i.equalDelta=je;var ra=i.linkedEdges={top:y.top||y.left&&!y.bottom,left:y.left||y.top&&!y.right,bottom:y.bottom||y.right&&!y.top,right:y.right||y.bottom&&!y.left};if(i.xIsPrimaryAxis=!(!y.left&&!y.right),i.equalDelta){var Da=(ra.left?1:-1)*(ra.top?1:-1);i.edgeSign={x:Da,y:Da}}else i.edgeSign={x:ra.left?-1:1,y:ra.top?-1:1};if(Q!==!1&&ee(y,ra),Ce!=null&&Ce.length){var Ja=new Nr(t.interaction);Ja.copyFrom(t.interaction.modification),Ja.prepareStates(Ce),i.subModification=Ja,Ja.startAll(r({},t))}},set:function(t){var i=t.state,f=t.rect,y=t.coords,S=i.linkedEdges,O=ee({},y),G=i.equalDelta?Xi:Zi;if(ee(t.edges,S),G(i,i.xIsPrimaryAxis,y,f),!i.subModification)return null;var Q=ee({},f);oe(S,Q,{x:y.x-O.x,y:y.y-O.y});var ge=i.subModification.setAll(r(r({},t),{},{rect:Q,edges:S,pageCoords:y,prevCoords:y,prevRect:Q})),je=ge.delta;return ge.changed&&(G(i,Math.abs(je.x)>Math.abs(je.y),ge.coords,ge.rect),ee(y,ge.coords)),ge.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Xi(t,i,f){var y=t.startCoords,S=t.edgeSign;i?f.y=y.y+(f.x-y.x)*S.y:f.x=y.x+(f.y-y.y)*S.x}function Zi(t,i,f,y){var S=t.startRect,O=t.startCoords,G=t.ratio,Q=t.edgeSign;if(i){var ge=y.width/G;f.y=O.y+(ge-S.height)*Q.y}else{var je=y.height*G;f.x=O.x+(je-S.width)*Q.x}}var Uo=wr(Mi,"aspectRatio"),Qi=function(){};Qi._defaults={};var ci=Qi;function sn(t,i,f){return _.func(t)?ue(t,i.interactable,i.element,[f.x,f.y,i]):ue(t,i.interactable,i.element)}var Kn={start:function(t){var i=t.rect,f=t.startOffset,y=t.state,S=t.interaction,O=t.pageCoords,G=y.options,Q=G.elementRect,ge=ee({left:0,top:0,right:0,bottom:0},G.offset||{});if(i&&Q){var je=sn(G.restriction,S,O);if(je){var Ce=je.right-je.left-i.width,ra=je.bottom-je.top-i.height;Ce<0&&(ge.left+=Ce,ge.right+=Ce),ra<0&&(ge.top+=ra,ge.bottom+=ra)}ge.left+=f.left-i.width*Q.left,ge.top+=f.top-i.height*Q.top,ge.right+=f.right-i.width*(1-Q.right),ge.bottom+=f.bottom-i.height*(1-Q.bottom)}y.offset=ge},set:function(t){var i=t.coords,f=t.interaction,y=t.state,S=y.options,O=y.offset,G=sn(S.restriction,f,i);if(G){var Q=function(ge){return!ge||"left"in ge&&"top"in ge||((ge=ee({},ge)).left=ge.x||0,ge.top=ge.y||0,ge.right=ge.right||ge.left+ge.width,ge.bottom=ge.bottom||ge.top+ge.height),ge}(G);i.x=Math.max(Math.min(Q.right-O.right,i.x),Q.left+O.left),i.y=Math.max(Math.min(Q.bottom-O.bottom,i.y),Q.top+O.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ii=wr(Kn,"restrict"),eo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ao={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function lo(t,i){for(var f=0,y=["top","left","bottom","right"];f<y.length;f++){var S=y[f];S in t||(t[S]=i[S])}return t}var Gn={noInner:eo,noOuter:ao,start:function(t){var i,f=t.interaction,y=t.startOffset,S=t.state,O=S.options;O&&(i=sa(sn(O.offset,f,f.coords.start.page))),i=i||{x:0,y:0},S.offset={top:i.y+y.top,left:i.x+y.left,bottom:i.y-y.bottom,right:i.x-y.right}},set:function(t){var i=t.coords,f=t.edges,y=t.interaction,S=t.state,O=S.offset,G=S.options;if(f){var Q=ee({},i),ge=sn(G.inner,y,Q)||{},je=sn(G.outer,y,Q)||{};lo(ge,eo),lo(je,ao),f.top?i.y=Math.min(Math.max(je.top+O.top,Q.y),ge.top+O.top):f.bottom&&(i.y=Math.max(Math.min(je.bottom+O.bottom,Q.y),ge.bottom+O.bottom)),f.left?i.x=Math.min(Math.max(je.left+O.left,Q.x),ge.left+O.left):f.right&&(i.x=Math.max(Math.min(je.right+O.right,Q.x),ge.right+O.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ro=wr(Gn,"restrictEdges"),Yn=ee({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Kn.defaults),no=wr({start:Kn.start,set:Kn.set,defaults:Yn},"restrictRect"),io={width:-1/0,height:-1/0},Jn={width:1/0,height:1/0},qo=wr({start:function(t){return Gn.start(t)},set:function(t){var i=t.interaction,f=t.state,y=t.rect,S=t.edges,O=f.options;if(S){var G=Se(sn(O.min,i,t.coords))||io,Q=Se(sn(O.max,i,t.coords))||Jn;f.options={endOnly:O.endOnly,inner:ee({},Gn.noInner),outer:ee({},Gn.noOuter)},S.top?(f.options.inner.top=y.bottom-G.height,f.options.outer.top=y.bottom-Q.height):S.bottom&&(f.options.inner.bottom=y.top+G.height,f.options.outer.bottom=y.top+Q.height),S.left?(f.options.inner.left=y.right-G.width,f.options.outer.left=y.right-Q.width):S.right&&(f.options.inner.right=y.left+G.width,f.options.outer.right=y.left+Q.width),Gn.set(t),f.options=O}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ui={start:function(t){var i,f=t.interaction,y=t.interactable,S=t.element,O=t.rect,G=t.state,Q=t.startOffset,ge=G.options,je=ge.offsetWithOrigin?function(Da){var Ja=Da.interaction.element,Wa=sa(ue(Da.state.options.origin,null,null,[Ja])),Qa=Wa||ze(Da.interactable,Ja,Da.interaction.prepared.name);return Qa}(t):{x:0,y:0};if(ge.offset==="startCoords")i={x:f.coords.start.page.x,y:f.coords.start.page.y};else{var Ce=ue(ge.offset,y,S,[f]);(i=sa(Ce)||{x:0,y:0}).x+=je.x,i.y+=je.y}var ra=ge.relativePoints;G.offsets=O&&ra&&ra.length?ra.map(function(Da,Ja){return{index:Ja,relativePoint:Da,x:Q.left-O.width*Da.x+i.x,y:Q.top-O.height*Da.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,f=t.coords,y=t.state,S=y.options,O=y.offsets,G=ze(i.interactable,i.element,i.prepared.name),Q=ee({},f),ge=[];S.offsetWithOrigin||(Q.x-=G.x,Q.y-=G.y);for(var je=0,Ce=O;je<Ce.length;je++)for(var ra=Ce[je],Da=Q.x-ra.x,Ja=Q.y-ra.y,Wa=0,Qa=S.targets.length;Wa<Qa;Wa++){var xl=S.targets[Wa],ml=void 0;(ml=_.func(xl)?xl(Da,Ja,i._proxy,ra,Wa):xl)&&ge.push({x:(_.number(ml.x)?ml.x:Da)+ra.x,y:(_.number(ml.y)?ml.y:Ja)+ra.y,range:_.number(ml.range)?ml.range:S.range,source:xl,index:Wa,offset:ra})}for(var El={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ul=0;Ul<ge.length;Ul++){var Cl=ge[Ul],Il=Cl.range,Ml=Cl.x-Q.x,Wr=Cl.y-Q.y,or=Ya(Ml,Wr),Xr=or<=Il;Il===1/0&&El.inRange&&El.range!==1/0&&(Xr=!1),El.target&&!(Xr?El.inRange&&Il!==1/0?or/Il<El.distance/El.range:Il===1/0&&El.range!==1/0||or<El.distance:!El.inRange&&or<El.distance)||(El.target=Cl,El.distance=or,El.range=Il,El.inRange=Xr,El.delta.x=Ml,El.delta.y=Wr)}return El.inRange&&(f.x=El.target.x,f.y=El.target.y),y.closest=El,El},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Xn=wr(ui,"snap"),di={start:function(t){var i=t.state,f=t.edges,y=i.options;if(!f)return null;t.state={options:{targets:null,relativePoints:[{x:f.left?0:1,y:f.top?0:1}],offset:y.offset||"self",origin:{x:0,y:0},range:y.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],ui.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,f=t.state,y=t.coords,S=f.options,O=f.offsets,G={x:y.x-O[0].x,y:y.y-O[0].y};f.options=ee({},S),f.options.targets=[];for(var Q=0,ge=S.targets||[];Q<ge.length;Q++){var je=ge[Q],Ce=void 0;if(Ce=_.func(je)?je(G.x,G.y,i):je){for(var ra=0,Da=f.targetFields;ra<Da.length;ra++){var Ja=Da[ra],Wa=Ja[0],Qa=Ja[1];if(Wa in Ce||Qa in Ce){Ce.x=Ce[Wa],Ce.y=Ce[Qa];break}}f.options.targets.push(Ce)}}var xl=ui.set(t);return f.options=S,xl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Wo=wr(di,"snapSize"),Oi={aspectRatio:Uo,restrictEdges:ro,restrict:Ii,restrictRect:no,restrictSize:qo,snapEdges:wr({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],di.start(t)):null},set:di.set,defaults:ee(Pl(di.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Xn,snapSize:Wo,spring:ci,avoid:ci,transform:ci,rubberband:ci},Ko={id:"modifiers",install:function(t){var i=t.interactStatic;for(var f in t.usePlugin(_r),t.usePlugin(Ho),i.modifiers=Oi,Oi){var y=Oi[f],S=y._defaults,O=y._methods;S._methods=O,t.defaults.perAction[f]=S}}},Go=Ko,oo=function(t){m(f,t);var i=M(f);function f(y,S,O,G,Q,ge){var je;if(s(this,f),j(D(je=i.call(this,Q)),O),O!==S&&j(D(je),S),je.timeStamp=ge,je.originalEvent=O,je.type=y,je.pointerId=ce(S),je.pointerType=$a(S),je.target=G,je.currentTarget=null,y==="tap"){var Ce=Q.getPointerIndex(S);je.dt=je.timeStamp-Q.pointers[Ce].downTime;var ra=je.timeStamp-Q.tapTime;je.double=!!Q.prevTap&&Q.prevTap.type!=="doubletap"&&Q.prevTap.target===je.target&&ra<500}else y==="doubletap"&&(je.dt=S.timeStamp-Q.tapTime,je.double=!0);return je}return c(f,[{key:"_subtractOrigin",value:function(y){var S=y.x,O=y.y;return this.pageX-=S,this.pageY-=O,this.clientX-=S,this.clientY-=O,this}},{key:"_addOrigin",value:function(y){var S=y.x,O=y.y;return this.pageX+=S,this.pageY+=O,this.clientX+=S,this.clientY+=O,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),f}(W),Zn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Zn,t.defaults.actions.pointerEvents=Zn.defaults,ee(t.actions.phaselessTypes,Zn.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,y=t.pointer,S=t.event,O=t.eventTarget;t.duplicate||f.pointerIsDown&&!f.pointerWasMoved||(f.pointerIsDown&&Ri(t),Dn({interaction:f,pointer:y,event:S,eventTarget:O,type:"move"},i))},"interactions:down":function(t,i){(function(f,y){for(var S=f.interaction,O=f.pointer,G=f.event,Q=f.eventTarget,ge=f.pointerIndex,je=S.pointers[ge].hold,Ce=ea(Q),ra={interaction:S,pointer:O,event:G,eventTarget:Q,type:"hold",targets:[],path:Ce,node:null},Da=0;Da<Ce.length;Da++){var Ja=Ce[Da];ra.node=Ja,y.fire("pointerEvents:collect-targets",ra)}if(ra.targets.length){for(var Wa=1/0,Qa=0,xl=ra.targets;Qa<xl.length;Qa++){var ml=xl[Qa].eventable.options.holdDuration;ml<Wa&&(Wa=ml)}je.duration=Wa,je.timeout=setTimeout(function(){Dn({interaction:S,eventTarget:Q,pointer:O,event:G,type:"hold"},y)},Wa)}})(t,i),Dn(t,i)},"interactions:up":function(t,i){Ri(t),Dn(t,i),function(f,y){var S=f.interaction,O=f.pointer,G=f.event,Q=f.eventTarget;S.pointerWasMoved||Dn({interaction:S,eventTarget:Q,pointer:O,event:G,type:"tap"},y)}(t,i)},"interactions:cancel":function(t,i){Ri(t),Dn(t,i)}},PointerEvent:oo,fire:Dn,collectEventTargets:Li,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Dn(t,i){var f=t.interaction,y=t.pointer,S=t.event,O=t.eventTarget,G=t.type,Q=t.targets,ge=Q===void 0?Li(t,i):Q,je=new oo(G,y,S,O,f,i.now());i.fire("pointerEvents:new",{pointerEvent:je});for(var Ce={interaction:f,pointer:y,event:S,eventTarget:O,targets:ge,type:G,pointerEvent:je},ra=0;ra<ge.length;ra++){var Da=ge[ra];for(var Ja in Da.props||{})je[Ja]=Da.props[Ja];var Wa=ze(Da.eventable,Da.node);if(je._subtractOrigin(Wa),je.eventable=Da.eventable,je.currentTarget=Da.node,Da.eventable.fire(je),je._addOrigin(Wa),je.immediatePropagationStopped||je.propagationStopped&&ra+1<ge.length&&ge[ra+1].node!==je.currentTarget)break}if(i.fire("pointerEvents:fired",Ce),G==="tap"){var Qa=je.double?Dn({interaction:f,pointer:y,event:S,eventTarget:O,type:"doubletap"},i):je;f.prevTap=Qa,f.tapTime=Qa.timeStamp}return je}function Li(t,i){var f=t.interaction,y=t.pointer,S=t.event,O=t.eventTarget,G=t.type,Q=f.getPointerIndex(y),ge=f.pointers[Q];if(G==="tap"&&(f.pointerWasMoved||!ge||ge.downTarget!==O))return[];for(var je=ea(O),Ce={interaction:f,pointer:y,event:S,eventTarget:O,type:G,path:je,targets:[],node:null},ra=0;ra<je.length;ra++){var Da=je[ra];Ce.node=Da,i.fire("pointerEvents:collect-targets",Ce)}return G==="hold"&&(Ce.targets=Ce.targets.filter(function(Ja){var Wa,Qa;return Ja.eventable.options.holdDuration===((Wa=f.pointers[Q])==null||(Qa=Wa.hold)==null?void 0:Qa.duration)})),Ce.targets}function Ri(t){var i=t.interaction,f=t.pointerIndex,y=i.pointers[f].hold;y&&y.timeout&&(clearTimeout(y.timeout),y.timeout=null)}var Yo=Object.freeze({__proto__:null,default:Zn});function Jo(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Xo={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Zn);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)]=Jo,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,y=t.pointerEvent,S=t.eventTarget,O=t.targets;if(y.type==="hold"&&O.length){var G=O[0].eventable.options.holdRepeatInterval;G<=0||(f.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:f,eventTarget:S,type:"hold",pointer:y,event:y},i)},G))}}})},pi=Xo,Zo={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(y){return ee(this.events.options,y),this};var f=i.prototype._backCompatOption;i.prototype._backCompatOption=function(y,S){var O=f.call(this,y,S);return O===this&&(this.events.options[y]=S),O}},listeners:{"pointerEvents:collect-targets":function(t,i){var f=t.targets,y=t.node,S=t.type,O=t.eventTarget;i.interactables.forEachMatch(y,function(G){var Q=G.events,ge=Q.options;Q.types[S]&&Q.types[S].length&&G.testIgnoreAllow(ge,y,O)&&f.push({node:y,eventable:Q,props:{interactable:G}})})},"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,y=t.options;ee(f.events.options,i.pointerEvents.defaults),ee(f.events.options,y.pointerEvents||{})}}},Qo=Zo,et={id:"pointer-events",install:function(t){t.usePlugin(Yo),t.usePlugin(pi),t.usePlugin(Qo)}},at=et,to={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(f){return function(y,S,O){for(var G=y.getAllElements(),Q=O.window.Promise,ge=Q?[]:null,je=function(){var ra=G[Ce],Da=y.getRect(ra);if(!Da)return 1;var Ja,Wa=wa(O.interactions.list,function(ml){return ml.interacting()&&ml.interactable===y&&ml.element===ra&&ml.prepared.name===S.name});if(Wa)Wa.move(),ge&&(Ja=Wa._reflowPromise||new Q(function(ml){Wa._reflowResolve=ml}));else{var Qa=Se(Da),xl=function(ml){return{coords:ml,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:Qa.x,y:Qa.y},client:{x:Qa.x,y:Qa.y},timeStamp:O.now()});Ja=function(ml,El,Ul,Cl,Il){var Ml=ml.interactions.new({pointerType:"reflow"}),Wr={interaction:Ml,event:Il,pointer:Il,eventTarget:Ul,phase:"reflow"};Ml.interactable=El,Ml.element=Ul,Ml.prevEvent=Il,Ml.updatePointer(Il,Il,Ul,!0),ve(Ml.coords.delta),Va(Ml.prepared,Cl),Ml._doPhase(Wr);var or=ml.window,Xr=or.Promise,cn=Xr?new Xr(function(Sn){Ml._reflowResolve=Sn}):void 0;return Ml._reflowPromise=cn,Ml.start(Cl,El,Ul),Ml._interacting?(Ml.move(Wr),Ml.end(Il)):(Ml.stop(),Ml._reflowResolve()),Ml.removePointer(Il,Il),cn}(O,y,ra,S,xl)}ge&&ge.push(Ja)},Ce=0;Ce<G.length&&!je();Ce++);return ge&&Q.all(ge).then(function(){return y})}(this,f,t)}},listeners:{"interactions:stop":function(t,i){var f=t.interaction;f.pointerType==="reflow"&&(f._reflowResolve&&f._reflowResolve(),function(y,S){y.splice(y.indexOf(S),1)}(i.interactions.list,f))}}},fi=to;if(qr.use(Hl),qr.use(Ll),qr.use(at),qr.use(Nn),qr.use(Go),qr.use(fr),qr.use(ul),qr.use(re),qr.use(fi),qr.default=qr,o(a)==="object"&&a)try{a.exports=qr}catch{}return qr.default=qr,qr})}(ji,ji.exports)),ji.exports}var g1=y1();const As=A.getDefaultExportFromCjs(g1),Mo=e.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(a,{expose:l,emit:n}){const r=a,o=n,s=e.inject(Pc),h=e.inject(Fc);if(!s)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const c=e.shallowRef(null),p=e.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let m=!1,g=!1,u=NaN,D=NaN,M=NaN,k=NaN,K=-1,I=-1,H=-1,L=-1,E=r.x,x=r.y,w=r.w,b=r.h;const _=e.ref(),$=e.reactive({i:e.toRef(r,"i"),state:p,wrapper:_,calcXY:ue});function V(pe){Ke(pe)}function ne(){ca()}function X(pe){pn(r.isDraggable)&&(p.draggable=pe)}function me(pe){pn(r.isResizable)&&(p.resizable=pe)}function Me(pe){pn(r.isBounded)&&(p.bounded=pe)}function F(pe){p.transformScale=pe}function te(pe){p.rowHeight=pe}function Z(pe){p.maxRows=pe}function se(){p.rtl=Ts()==="rtl",ca()}function Be(pe){p.cols=Math.floor(pe)}s.increaseItem($),e.onBeforeMount(()=>{p.rtl=Ts()==="rtl"}),e.onMounted(()=>{s.responsive&&s.lastBreakpoint?p.cols=Wc(s.lastBreakpoint,s.cols):p.cols=s.colNum,p.rowHeight=s.rowHeight,p.containerWidth=s.width!==null?s.width:100,p.margin=s.margin!==void 0?s.margin.map(Number):[10,10],p.maxRows=s.maxRows,pn(r.isDraggable)?p.draggable=s.isDraggable:p.draggable=r.isDraggable,pn(r.isResizable)?p.resizable=s.isResizable:p.resizable=r.isResizable,pn(r.isBounded)?p.bounded=s.isBounded:p.bounded=r.isBounded,p.transformScale=s.transformScale,p.useCssTransforms=s.useCssTransforms,p.useStyleCursor=s.useStyleCursor,e.watchEffect(()=>{E=r.x,x=r.y,b=r.h,w=r.w,Zr(Fe)}),h.on("updateWidth",V),h.on("compact",ne),h.on("setDraggable",X),h.on("setResizable",me),h.on("setBounded",Me),h.on("setTransformScale",F),h.on("setRowHeight",te),h.on("setMaxRows",Z),h.on("directionchange",se),h.on("setColNum",Be)}),e.onBeforeUnmount(()=>{h.off("updateWidth",V),h.off("compact",ne),h.off("setDraggable",X),h.off("setResizable",me),h.off("setBounded",Me),h.off("setTransformScale",F),h.off("setRowHeight",te),h.off("setMaxRows",Z),h.off("directionchange",se),h.off("setColNum",Be),c.value&&(c.value.unset(),c.value=null),s.decreaseItem($)}),l({state:p,wrapper:_});const Ve=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,he=e.computed(()=>p.resizable&&!r.static),N=e.computed(()=>s.isMirrored?!p.rtl:p.rtl),ie=e.computed(()=>(p.draggable||p.resizable)&&!r.static),U=c1("item"),De=e.computed(()=>({[U.b()]:!0,[U.bm("resizable")]:he.value,[U.bm("static")]:r.static,[U.bm("resizing")]:p.isResizing,[U.bm("dragging")]:p.isDragging,[U.bm("transform")]:p.useCssTransforms,[U.bm("rtl")]:N.value,[U.bm("no-touch")]:Ve&&ie.value})),Oe=e.computed(()=>[U.be("resizer"),N.value&&U.bem("resizer","rtl")].filter(Boolean));e.watch(()=>r.isDraggable,pe=>{p.draggable=pe}),e.watch(()=>r.static,()=>{Zr(j),Zr(ve)}),e.watch(()=>p.draggable,()=>{Zr(j)}),e.watch(()=>r.isResizable,pe=>{p.resizable=pe}),e.watch(()=>r.isBounded,pe=>{p.bounded=pe}),e.watch(()=>p.resizable,()=>{Zr(ve)}),e.watch(()=>p.rowHeight,()=>{Zr(Fe),Zr(ea)}),e.watch([()=>p.cols,()=>p.containerWidth],()=>{Zr(ve),Zr(Fe),Zr(ea)}),e.watch([()=>r.minH,()=>r.maxH,()=>r.minW,()=>r.maxW],()=>{Zr(ve)}),e.watch(N,()=>{Zr(ve),Zr(Fe)}),e.watch([()=>s.margin,()=>s.margin[0],()=>s.margin[1]],()=>{const pe=s.margin;!pe||pe[0]===p.margin[0]&&pe[1]===p.margin[1]||(p.margin=pe.map(Number),Zr(Fe),Zr(ea))});function Fe(){r.x+r.w>p.cols?(E=0,w=r.w>p.cols?p.cols:r.w):(E=r.x,w=r.w);const pe=ua(E,x,w,b);p.isDragging&&(pe.top=p.dragging.top,N.value?pe.right=p.dragging.left:pe.left=p.dragging.left),p.isResizing&&(pe.width=p.resizing.width,pe.height=p.resizing.height);let ya;p.useCssTransforms?N.value?ya=n1(pe.top,pe.right,pe.width,pe.height):ya=r1(pe.top,pe.left,pe.width,pe.height):N.value?ya=o1(pe.top,pe.right,pe.width,pe.height):ya=i1(pe.top,pe.left,pe.width,pe.height),p.style=ya}function ea(){const pe={};for(const ya of["width","height"]){const aa=p.style[ya].match(/^(\d+)px$/);if(!aa)return;pe[ya]=aa[1]}o("container-resized",r.i,r.h,r.w,pe.height,pe.width)}function Ba(pe){if(r.static)return;const ya=pe.type;if(ya==="resizestart"&&p.isResizing||ya!=="resizestart"&&!p.isResizing)return;const aa=Ds(pe);if(pn(aa))return;const{x:ce,y:ga}=aa,Ae={width:0,height:0};let Je;switch(ya){case"resizestart":{ve(),K=w,I=b,Je=ua(E,x,w,b),Ae.width=Je.width,Ae.height=Je.height,p.resizing=Ae,p.isResizing=!0;break}case"resizemove":{!pe.edges.right&&!pe.edges.left&&(M=ce),!pe.edges.top&&!pe.edges.bottom&&(k=ga);const Na=Bs(M,k,ce,ga);N.value?Ae.width=p.resizing.width-Na.deltaX/p.transformScale:Ae.width=p.resizing.width+Na.deltaX/p.transformScale,Ae.height=p.resizing.height+Na.deltaY/p.transformScale,p.resizing=Ae;break}case"resizeend":{Je=ua(E,x,w,b),Ae.width=Je.width,Ae.height=Je.height,p.resizing={width:-1,height:-1},p.isResizing=!1;break}}Je=ze(Ae.height,Ae.width),Je.w<r.minW&&(Je.w=r.minW),Je.w>r.maxW&&(Je.w=r.maxW),Je.h<r.minH&&(Je.h=r.minH),Je.h>r.maxH&&(Je.h=r.maxH),Je.h<1&&(Je.h=1),Je.w<1&&(Je.w=1),M=ce,k=ga,(w!==Je.w||b!==Je.h)&&o("resize",r.i,Je.h,Je.w,Ae.height,Ae.width),pe.type==="resizeend"&&(K!==w||I!==b)&&o("resized",r.i,Je.h,Je.w,Ae.height,Ae.width),h.emit("resizeEvent",pe.type,r.i,E,x,Je.h,Je.w)}function ee(pe){if(r.static||p.isResizing)return;const ya=pe.type;if(ya==="dragstart"&&p.isDragging||ya!=="dragstart"&&!p.isDragging)return;const aa=Ds(pe);if(pn(aa))return;const{x:ce,y:ga}=aa,Ae=pe.target;if(!Ae.offsetParent)return;const Je={top:0,left:0};switch(ya){case"dragstart":{H=E,L=x;const Ca=Ae.offsetParent.getBoundingClientRect(),la=Ae.getBoundingClientRect(),$a=la.left/p.transformScale,va=Ca.left/p.transformScale,W=la.right/p.transformScale,Te=Ca.right/p.transformScale,Ie=la.top/p.transformScale,we=Ca.top/p.transformScale;N.value?Je.left=(W-Te)*-1:Je.left=$a-va,Je.top=Ie-we,p.dragging=Je,p.isDragging=!0;break}case"dragmove":{const Ca=Bs(u,D,ce,ga);if(N.value?Je.left=p.dragging.left-Ca.deltaX/p.transformScale:Je.left=p.dragging.left+Ca.deltaX/p.transformScale,Je.top=p.dragging.top+Ca.deltaY/p.transformScale,p.bounded){const la=Ae.offsetParent.clientHeight-Se(r.h,p.rowHeight,p.margin[1]);Je.top=oe(Je.top,0,la);const $a=sa(),va=p.containerWidth-Se(r.w,$a,p.margin[0]);Je.left=oe(Je.left,0,va)}p.dragging=Je;break}case"dragend":{const Ca=Ae.offsetParent.getBoundingClientRect(),la=Ae.getBoundingClientRect(),$a=la.left/p.transformScale,va=Ca.left/p.transformScale,W=la.right/p.transformScale,Te=Ca.right/p.transformScale,Ie=la.top/p.transformScale,we=Ca.top/p.transformScale;N.value?Je.left=(W-Te)*-1:Je.left=$a-va,Je.top=Ie-we,p.dragging={top:-1,left:-1},p.isDragging=!1;break}}let Na;N.value,Na=ue(Je.top,Je.left),u=ce,D=ga,(E!==Na.x||x!==Na.y)&&o("move",r.i,Na.x,Na.y),pe.type==="dragend"&&(H!==E||L!==x)&&o("moved",r.i,Na.x,Na.y),h.emit("dragEvent",pe.type,r.i,Na.x,Na.y,b,w)}function ua(pe,ya,aa,ce){const ga=sa();let Ae;return N.value?Ae={right:Math.round(ga*pe+(pe+1)*p.margin[0]),top:Math.round(p.rowHeight*ya+(ya+1)*p.margin[1]),width:aa===1/0?aa:Math.round(ga*aa+Math.max(0,aa-1)*p.margin[0]),height:ce===1/0?ce:Math.round(p.rowHeight*ce+Math.max(0,ce-1)*p.margin[1])}:Ae={left:Math.round(ga*pe+(pe+1)*p.margin[0]),top:Math.round(p.rowHeight*ya+(ya+1)*p.margin[1]),width:aa===1/0?aa:Math.round(ga*aa+Math.max(0,aa-1)*p.margin[0]),height:ce===1/0?ce:Math.round(p.rowHeight*ce+Math.max(0,ce-1)*p.margin[1])},Ae}function ue(pe,ya){const aa=sa();let ce=Math.round((ya-p.margin[0])/(aa+p.margin[0])),ga=Math.round((pe-p.margin[1])/(p.rowHeight+p.margin[1]));return ce=Math.max(Math.min(ce,p.cols-w),0),ga=Math.max(Math.min(ga,p.maxRows-b),0),{x:ce,y:ga}}function sa(){return(p.containerWidth-p.margin[0]*(p.cols+1))/p.cols}function Se(pe,ya,aa){return Number.isFinite(pe)?Math.round(ya*pe+Math.max(0,pe-1)*aa):pe}function oe(pe,ya,aa){return Math.max(Math.min(pe,aa),ya)}function ze(pe,ya,aa=!1){const ce=sa();let ga=Math.round((ya+p.margin[0])/(ce+p.margin[0])),Ae=0;return aa?Ae=Math.ceil((pe+p.margin[1])/(p.rowHeight+p.margin[1])):Ae=Math.round((pe+p.margin[1])/(p.rowHeight+p.margin[1])),ga=Math.max(Math.min(ga,p.cols-E),0),Ae=Math.max(Math.min(Ae,p.maxRows-x),0),{w:ga,h:Ae}}function Ke(pe,ya){p.containerWidth=pe}function ca(){Fe()}function Ya(){!c.value&&_.value&&(c.value=As(_.value),p.useStyleCursor||c.value.styleCursor(!1))}const R=Ss(ee);function j(){if(Ya(),!!c.value)if(p.draggable&&!r.static){const pe={ignoreFrom:r.dragIgnoreFrom,allowFrom:r.dragAllowFrom,...r.dragOption};c.value.draggable(pe),m||(m=!0,c.value.on("dragstart dragmove dragend",ya=>{ya.type==="dragmove"?R(ya):ee(ya)}))}else c.value.draggable({enabled:!1})}const J=Ss(Ba);function ve(){if(Ya(),!!c.value)if(p.resizable&&!r.static){const pe=ua(0,0,r.maxW,r.maxH),ya=ua(0,0,r.minW,r.minH),aa={edges:{left:N.value?`.${Oe.value[0]}`:!1,right:N.value?!1:`.${Oe.value[0]}`,bottom:`.${Oe.value[0]}`,top:!1},ignoreFrom:r.resizeIgnoreFrom,restrictSize:{min:{height:ya.height*p.transformScale,width:ya.width*p.transformScale},max:{height:pe.height*p.transformScale,width:pe.width*p.transformScale}},...r.resizeOption};r.preserveAspectRatio&&(aa.modifiers=[As.modifiers.aspectRatio({ratio:"preserve"})]),c.value.resizable(aa),g||(g=!0,c.value.on("resizestart resizemove resizeend",ce=>{ce.type==="resizemove"?J(ce):Ba(ce)}))}else c.value.resizable({enabled:!1})}return(pe,ya)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:_,class:e.normalizeClass(De.value),style:e.normalizeStyle(p.style)},[e.renderSlot(pe.$slots,"default"),he.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Oe.value)},null,2)):e.createCommentVNode("",!0)],6))}}),si=typeof window<"u";var zs;si&&(zs=window==null?void 0:window.navigator)!=null&&zs.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ms(a){return a!=null}function Is(){}const b1=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(b1)));const k1=si&&("ontouchstart"in window||w1()>0),x1=k1?"pointerdown":"click";function w1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function _1(a,l,n=window.Event){const{type:r,bubbles:o=!1,cancelable:s=!1,...h}=l;if(!Ms(r)||r==="")return!1;let c;return Ms(n)?c=new n(r,{bubbles:o,cancelable:s}):(c=document.createEvent("HTMLEvents"),c.initEvent(r,o,s)),Object.assign(c,h),a.dispatchEvent(c)}const S1="clickoutside",E1=new Set;si&&document.addEventListener(x1,a=>{const l=a.target,n=a.composedPath&&a.composedPath();E1.forEach(r=>{r!==l&&(n?!n.includes(r):!r.contains(l))&&(!r.__transferElement||r.__transferElement!==l&&!r.__transferElement.contains(l))&&_1(r,{type:S1})})},!0);const C1=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let wo;if(si){for(const a of C1)if(a[1]in document){wo=a;break}}e.computed(()=>!1);const D1=new Set,B1=new WeakMap;if(si&&wo){const a=wo[2],l=wo[4];document.addEventListener(l,()=>{if(D1.forEach(n=>{n.value=!1}),document[a]){const n=B1.get(document[a]);n&&(n.value=!0)}},!1)}const Gc=new Map;Gc.set("x",0);Gc.set("y",0);var oi=[],T1=function(){return oi.some(function(a){return a.activeTargets.length>0})},N1=function(){return oi.some(function(a){return a.skippedTargets.length>0})},Os="ResizeObserver loop completed with undelivered notifications.",A1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:Os}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=Os),window.dispatchEvent(a)},Yi;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Yi||(Yi={}));var ti=function(a){return Object.freeze(a)},z1=function(){function a(l,n){this.inlineSize=l,this.blockSize=n,ti(this)}return a}(),Yc=function(){function a(l,n,r,o){return this.x=l,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ti(this)}return a.prototype.toJSON=function(){var l=this,n=l.x,r=l.y,o=l.top,s=l.right,h=l.bottom,c=l.left,p=l.width,m=l.height;return{x:n,y:r,top:o,right:s,bottom:h,left:c,width:p,height:m}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Bt=function(a){return a instanceof SVGElement&&"getBBox"in a},Jc=function(a){if(Bt(a)){var l=a.getBBox(),n=l.width,r=l.height;return!n&&!r}var o=a,s=o.offsetWidth,h=o.offsetHeight;return!(s||h||a.getClientRects().length)},Ls=function(a){var l;if(a instanceof Element)return!0;var n=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(n&&a instanceof n.Element)},M1=function(a){switch(a.tagName){case"INPUT":if(a.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Wi=typeof window<"u"?window:{},go=new WeakMap,Rs=/auto|scroll/,I1=/^tb|vertical/,O1=/msie|trident/i.test(Wi.navigator&&Wi.navigator.userAgent),Tn=function(a){return parseFloat(a||"0")},Ci=function(a,l,n){return a===void 0&&(a=0),l===void 0&&(l=0),n===void 0&&(n=!1),new z1((n?l:a)||0,(n?a:l)||0)},$s=ti({devicePixelContentBoxSize:Ci(),borderBoxSize:Ci(),contentBoxSize:Ci(),contentRect:new Yc(0,0,0,0)}),Xc=function(a,l){if(l===void 0&&(l=!1),go.has(a)&&!l)return go.get(a);if(Jc(a))return go.set(a,$s),$s;var n=getComputedStyle(a),r=Bt(a)&&a.ownerSVGElement&&a.getBBox(),o=!O1&&n.boxSizing==="border-box",s=I1.test(n.writingMode||""),h=!r&&Rs.test(n.overflowY||""),c=!r&&Rs.test(n.overflowX||""),p=r?0:Tn(n.paddingTop),m=r?0:Tn(n.paddingRight),g=r?0:Tn(n.paddingBottom),u=r?0:Tn(n.paddingLeft),D=r?0:Tn(n.borderTopWidth),M=r?0:Tn(n.borderRightWidth),k=r?0:Tn(n.borderBottomWidth),K=r?0:Tn(n.borderLeftWidth),I=u+m,H=p+g,L=K+M,E=D+k,x=c?a.offsetHeight-E-a.clientHeight:0,w=h?a.offsetWidth-L-a.clientWidth:0,b=o?I+L:0,_=o?H+E:0,$=r?r.width:Tn(n.width)-b-w,V=r?r.height:Tn(n.height)-_-x,ne=$+I+w+L,X=V+H+x+E,me=ti({devicePixelContentBoxSize:Ci(Math.round($*devicePixelRatio),Math.round(V*devicePixelRatio),s),borderBoxSize:Ci(ne,X,s),contentBoxSize:Ci($,V,s),contentRect:new Yc(u,p,$,V)});return go.set(a,me),me},Zc=function(a,l,n){var r=Xc(a,n),o=r.borderBoxSize,s=r.contentBoxSize,h=r.devicePixelContentBoxSize;switch(l){case Yi.DEVICE_PIXEL_CONTENT_BOX:return h;case Yi.BORDER_BOX:return o;default:return s}},L1=function(){function a(l){var n=Xc(l);this.target=l,this.contentRect=n.contentRect,this.borderBoxSize=ti([n.borderBoxSize]),this.contentBoxSize=ti([n.contentBoxSize]),this.devicePixelContentBoxSize=ti([n.devicePixelContentBoxSize])}return a}(),Qc=function(a){if(Jc(a))return 1/0;for(var l=0,n=a.parentNode;n;)l+=1,n=n.parentNode;return l},R1=function(){var a=1/0,l=[];oi.forEach(function(s){if(s.activeTargets.length!==0){var h=[];s.activeTargets.forEach(function(c){var p=new L1(c.target),m=Qc(c.target);h.push(p),c.lastReportedSize=Zc(c.target,c.observedBox),m<a&&(a=m)}),l.push(function(){s.callback.call(s.observer,h,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=l;n<r.length;n++){var o=r[n];o()}return a},Vs=function(a){oi.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(n){n.isActive()&&(Qc(n.target)>a?l.activeTargets.push(n):l.skippedTargets.push(n))})})},$1=function(){var a=0;for(Vs(a);T1();)a=R1(),Vs(a);return N1()&&A1(),a>0},ut,eu=[],V1=function(){return eu.splice(0).forEach(function(a){return a()})},P1=function(a){if(!ut){var l=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return V1()}).observe(n,r),ut=function(){n.textContent="".concat(l?l--:l++)}}eu.push(a),ut()},F1=function(a){P1(function(){requestAnimationFrame(a)})},_o=0,j1=function(){return!!_o},H1=250,U1={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ps=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fs=function(a){return a===void 0&&(a=0),Date.now()+a},dt=!1,q1=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var n=this;if(l===void 0&&(l=H1),!dt){dt=!0;var r=Fs(l);F1(function(){var o=!1;try{o=$1()}finally{if(dt=!1,l=r-Fs(),!j1())return;o?n.run(1e3):l>0?n.run(l):n.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,n=function(){return l.observer&&l.observer.observe(document.body,U1)};document.body?n():Wi.addEventListener("DOMContentLoaded",n)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ps.forEach(function(n){return Wi.addEventListener(n,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),Ps.forEach(function(n){return Wi.removeEventListener(n,l.listener,!0)}),this.stopped=!0)},a}(),St=new q1,js=function(a){!_o&&a>0&&St.start(),_o+=a,!_o&&St.stop()},W1=function(a){return!Bt(a)&&!M1(a)&&getComputedStyle(a).display==="inline"},K1=function(){function a(l,n){this.target=l,this.observedBox=n||Yi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=Zc(this.target,this.observedBox,!0);return W1(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),G1=function(){function a(l,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=n}return a}(),bo=new WeakMap,Hs=function(a,l){for(var n=0;n<a.length;n+=1)if(a[n].target===l)return n;return-1},ko=function(){function a(){}return a.connect=function(l,n){var r=new G1(l,n);bo.set(l,r)},a.observe=function(l,n,r){var o=bo.get(l),s=o.observationTargets.length===0;Hs(o.observationTargets,n)<0&&(s&&oi.push(o),o.observationTargets.push(new K1(n,r&&r.box)),js(1),St.schedule())},a.unobserve=function(l,n){var r=bo.get(l),o=Hs(r.observationTargets,n),s=r.observationTargets.length===1;o>=0&&(s&&oi.splice(oi.indexOf(r),1),r.observationTargets.splice(o,1),js(-1))},a.disconnect=function(l){var n=this,r=bo.get(l);r.observationTargets.slice().forEach(function(o){return n.unobserve(l,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},a}(),Y1=function(){function a(l){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof l!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ko.connect(this,l)}return a.prototype.observe=function(l,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ls(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.observe(this,l,n)},a.prototype.unobserve=function(l){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ls(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.unobserve(this,l)},a.prototype.disconnect=function(){ko.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Io=new WeakMap;function J1(a){var l;for(let n=0,r=a.length;n<r;++n){const o=a[n],s=Io.get(o.target);if(typeof s=="function"){const{inlineSize:h,blockSize:c}=((l=o.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:p,offsetHeight:m}=o.target;s(Object.assign(o,{offsetWidth:p,offsetHeight:m,width:h??p,height:c??m}))}}}const au=new(si&&window.ResizeObserver||Y1)(J1);function Us(a,l){Io.set(a,l),au.observe(a)}function qs(a){Io.has(a)&&(au.unobserve(a),Io.delete(a))}function X1(a={}){let l=Is;const n=e.watch(()=>e.unref(a.target),o=>{l(),!(!o||typeof a.onResize!="function")&&(Us(o,a.onResize),l=()=>{qs(o),l=Is})},{immediate:!0}),r=()=>{n(),l()};return e.getCurrentScope()&&e.onScopeDispose(r),{observeResize:Us,unobserveResize:qs,unobserve:r}}const Z1=e.ref(!1);e.computed(()=>Z1.value);const Ws="__theme_style__",pt="__theme_observer__",Ks=e.reactive(new Map),Gs=new Map;e.watch(Ks,()=>{if(!si)return;Gs.clear();const a=document.head.querySelector(`#${Ws}`);a&&document.head.removeChild(a);const l=document.createElement("style");let n=`.${pt} { width: 1px }`,r=1;for(const[o,[s,h]]of Ks.entries())n+=` html.${s} .${pt}, .${h} .${pt} { width: ${++r}px }`,Gs.set(r,o);l.textContent=n,l.id=Ws,document.head.appendChild(l)});const lu=e.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(a,{expose:l,emit:n}){const r=a,o=n,s=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),h=new Map,c=e.ref(r.layout),p=e.ref(),{observeResize:m,unobserveResize:g}=X1(),u=J6();u.on("resizeEvent",D),u.on("dragEvent",M),e.onBeforeMount(()=>{o("layout-before-mount",c.value)}),e.onMounted(()=>{o("layout-mounted",c.value),e.nextTick(()=>{s1(c.value),s.originalLayout=c.value,e.nextTick(()=>{V(),p.value&&m(p.value,X6(E,16)),_i(c.value,r.verticalCompact),o("layout-updated",c.value),L(),E()})})}),e.onBeforeUnmount(()=>{u.clearAll(),p.value&&g(p.value)});function D(X,me,Me,F,te,Z){_(X,me,Me,F,te,Z)}function M(X,me,Me,F,te,Z){b(X,me,Me,F,te,Z)}e.watch(()=>s.width,(X,me)=>{e.nextTick(()=>{u.emit("updateWidth",X),me===-1&&e.nextTick(()=>{o("layout-ready",c.value)}),L()})}),e.watch(()=>[r.layout,r.layout.length],()=>{c.value=r.layout,H()}),e.watch(()=>r.colNum,X=>{u.emit("setColNum",X)}),e.watch(()=>r.rowHeight,X=>{u.emit("setRowHeight",X)}),e.watch(()=>r.isDraggable,X=>{u.emit("setDraggable",X)}),e.watch(()=>r.isResizable,X=>{u.emit("setResizable",X)}),e.watch(()=>r.isBounded,X=>{u.emit("setBounded",X)}),e.watch(()=>r.transformScale,X=>{u.emit("setTransformScale",X)}),e.watch(()=>r.responsive,X=>{X||(o("update:layout",s.originalLayout),u.emit("setColNum",r.colNum)),E()}),e.watch(()=>r.maxRows,X=>{u.emit("setMaxRows",X)}),e.watch([()=>r.margin,()=>r.margin[1]],L),e.provide(Pc,e.reactive({...e.toRefs(r),...e.toRefs(s),increaseItem:k,decreaseItem:K})),e.provide(Fc,u),l({state:s,getItem:I,resizeEvent:_,dragEvent:b,layoutUpdate:H});function k(X){h.set(X.i,X)}function K(X){h.delete(X.i)}function I(X){return h.get(X)}function H(){if(!pn(c.value)&&!pn(s.originalLayout)){if(c.value.length!==s.originalLayout.length){const X=ne(c.value,s.originalLayout);if(X.length>0)if(c.value.length>s.originalLayout.length)s.originalLayout=s.originalLayout.concat(X);else{const me=new Set(X.map(Me=>Me.i));s.originalLayout=s.originalLayout.filter(Me=>!me.has(Me.i))}s.lastLayoutLength=c.value.length,V()}_i(c.value,r.verticalCompact),u.emit("updateWidth",s.width),L(),o("layout-updated",c.value)}}function L(){s.mergedStyle={height:x()}}function E(){p.value&&(s.width=p.value.offsetWidth),u.emit("resizeEvent")}function x(){if(!r.autoSize)return;const X=parseFloat(r.margin[1]);return Q6(c.value)*(r.rowHeight+X)+X+"px"}let w;function b(X,me,Me,F,te,Z){let se=Es(c.value,me);pn(se)&&(se={h:0,w:0,x:0,y:0,i:""}),X==="dragstart"&&!r.verticalCompact&&(w=c.value.reduce((Be,{i:Ve,x:he,y:N})=>({...Be,[Ve]:{x:he,y:N}}),{})),X==="dragmove"||X==="dragstart"?(s.placeholder.i=me,s.placeholder.x=se.x,s.placeholder.y=se.y,s.placeholder.w=Z,s.placeholder.h=te,e.nextTick(()=>{s.isDragging=!0}),u.emit("updateWidth",s.width)):e.nextTick(()=>{s.isDragging=!1}),c.value=_t(c.value,se,Me,F,!0,r.preventCollision),r.restoreOnDrag?(se.static=!0,_i(c.value,r.verticalCompact,w),se.static=!1):_i(c.value,r.verticalCompact),u.emit("compact"),L(),X==="dragend"&&(w=void 0,o("layout-updated",c.value))}function _(X,me,Me,F,te,Z){let se=Es(c.value,me);pn(se)&&(se={h:0,w:0,x:0,y:0,i:""});let Be;if(r.preventCollision){const Ve=Hc(c.value,{...se,w:Z,h:te}).filter(he=>he.i!==se.i);if(Be=Ve.length>0,Be){let he=1/0,N=1/0;Ve.forEach(ie=>{ie.x>se.x&&(he=Math.min(he,ie.x)),ie.y>se.y&&(N=Math.min(N,ie.y))}),Number.isFinite(he)&&(se.w=he-se.x),Number.isFinite(N)&&(se.h=N-se.y)}}Be||(se.w=Z,se.h=te),X==="resizestart"||X==="resizemove"?(s.placeholder.i=me,s.placeholder.x=Me,s.placeholder.y=F,s.placeholder.w=se.w,s.placeholder.h=se.h,e.nextTick(()=>{s.isDragging=!0}),u.emit("updateWidth",s.width)):X&&e.nextTick(()=>{s.isDragging=!1}),r.responsive&&$(),_i(c.value,r.verticalCompact),u.emit("compact"),L(),X==="resizeend"&&o("layout-updated",c.value)}function $(){const X=p1(r.breakpoints,s.width);if(X===s.lastBreakpoint)return;const me=Wc(X,r.cols);!pn(s.lastBreakpoint)&&!s.layouts[s.lastBreakpoint]&&(s.layouts[s.lastBreakpoint]=wt(c.value));const Me=f1(s.originalLayout,s.layouts,r.breakpoints,X,s.lastBreakpoint,me,r.verticalCompact);s.layouts[X]=Me,s.lastBreakpoint!==X&&o("breakpoint-changed",X,Me),c.value=Me,o("update:layout",Me),s.lastBreakpoint=X,u.emit("setColNum",me)}function V(){s.layouts=Object.assign({},r.responsiveLayouts)}function ne(X,me){const Me=new Set(me.map(se=>se.i)),F=new Set(X.map(se=>se.i)),te=X.filter(se=>!Me.has(se.i)),Z=me.filter(se=>!F.has(se.i));return te.concat(Z)}return(X,me)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:p,class:"vgl-layout",style:e.normalizeStyle(s.mergedStyle)},[X.$slots.default?e.renderSlot(X.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(c.value,Me=>(e.openBlock(),e.createBlock(Mo,e.mergeProps({key:Me.i,ref_for:!0},Me),{default:e.withCtx(()=>[e.renderSlot(X.$slots,"item",{item:Me})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Mo,{class:"vgl-item--placeholder",x:s.placeholder.x,y:s.placeholder.y,w:s.placeholder.w,h:s.placeholder.h,i:s.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,s.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();const Q1={key:0,class:"item-view-group"},ev={key:0,class:"item-view-group"},av=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const n=A.useModelComp(A.pinia),{isEdit:r}=A.storeToRefs(n),o=Hn(A.pinia),s=l,h=a,c=e.ref(""),p=e.computed(()=>h==null?void 0:h.children),m=e.computed(()=>{var L,E,x,w;return((L=h==null?void 0:h.children)==null?void 0:L.length)>0&&((E=h==null?void 0:h.children)!=null&&E.every(b=>b==null?void 0:b.layout))?(w=(x=h==null?void 0:h.children)==null?void 0:x[0])==null?void 0:w.layout:"vertical"}),g=L=>{c.value=L,s("radioChange",L)},u=e.computed(()=>{var L,E;return((E=(L=h==null?void 0:h.children)==null?void 0:L[0])==null?void 0:E.isGridLayout)||!1}),D=e.ref((h==null?void 0:h.level)+1),M=e.computed(()=>{if(!(h!=null&&h.children)||!Array.isArray(h.children)||h.children.length<2)return!1;const L=h.children.some(x=>(x==null?void 0:x.name)==="测量系统配置表"&&(x==null?void 0:x.comp)==="ParentItem"),E=h.children.some(x=>(x==null?void 0:x.name)==="测量系统传递表"&&(x==null?void 0:x.comp)==="ParentItem");return L&&E}),k=e.computed(()=>{var E,x,w,b,_,$;let L=(E=h==null?void 0:h.children)==null?void 0:E.filter(V=>V==null?void 0:V.choice);if(o.setSelectTab((x=L==null?void 0:L[0])==null?void 0:x.choiceName),(c==null?void 0:c.value)!=="")return(w=h==null?void 0:h.children)==null?void 0:w.filter(V=>!(V!=null&&V.choiceName)||(V==null?void 0:V.choiceName)===(c==null?void 0:c.value));{let V=(_=(b=h==null?void 0:h.children)==null?void 0:b.find(ne=>ne==null?void 0:ne.choice))==null?void 0:_.choiceName;return($=h==null?void 0:h.children)==null?void 0:$.filter(ne=>!(ne!=null&&ne.choiceName)||(ne==null?void 0:ne.choiceName)===V)}}),K=L=>{const E=(L==null?void 0:L.menuFilter)||[];return Array.isArray(E)&&(E==null?void 0:E.some(x=>{const w=typeof x=="string"?x:JSON.stringify(x);return w==null?void 0:w.includes("HideGroup=Yes")}))};e.watch(()=>h==null?void 0:h.children,()=>{M.value},{deep:!0});const I=L=>{s("rowClick",L)},H=(L,E)=>{s("routeUrl",L,E)};return(L,E)=>u.value?(e.openBlock(),e.createBlock(e.unref(lu),{key:0,layout:p.value,"onUpdate:layout":E[0]||(E[0]=x=>p.value=x),"is-draggable":e.unref(r)==="edit","is-resizable":e.unref(r)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(x,w)=>(e.openBlock(),e.createBlock(e.unref(Mo),{key:x.i,x:x.x,y:x.y,"min-h":x.minH,"max-h":x.maxH,"min-w":x.minW,w:x.w,h:x.h,i:x.i},{default:e.withCtx(()=>{var b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:w===((b=h==null?void 0:h.children)==null?void 0:b.length)-1?"0px":"24px"})},[(($=(_=x==null?void 0:x.component)==null?void 0:_.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((V=x==null?void 0:x.component)!=null&&V.name)?(e.openBlock(),e.createElementBlock("div",Q1,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:(parseInt(D.value.toString())-1)*12+"px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString((ne=x==null?void 0:x.component)==null?void 0:ne.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)((X=x==null?void 0:x.component)==null?void 0:X.comp)),{pageLayout:m.value,config:{showIndex:(me=e.unref(ur)[w])==null?void 0:me.showIndex,allowMove:(Me=e.unref(ur)[w])==null?void 0:Me.allowMove,viewport:(F=e.unref(ur)[w])==null?void 0:F.viewport,status:(te=e.unref(ur)[w])==null?void 0:te.status},related:x==null?void 0:x.relatedTables,compName:x==null?void 0:x.component.name,compNames:e.unref(wc),itemData:(Z=x==null?void 0:x.component)==null?void 0:Z.compData,childItemData:(se=x==null?void 0:x.component)==null?void 0:se.itemChildData,key:e.unref(jn),cacheNewData:e.unref(xc),onChange:e.unref(To),index:(x==null?void 0:x.id)??w,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:(Be=x==null?void 0:x.component)==null?void 0:Be.tableId,allMapContents:e.unref(bt),children:(Ve=x==null?void 0:x.component)==null?void 0:Ve.children,level:D.value,onRowClick:I,onRouteUrl:H,onClickTrigger:e.unref(_c),onClickMainKey:e.unref(Sc),onRadioChange:g},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(k.value,(x,w)=>{var b,_;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(x==null?void 0:x.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(w)===((b=h==null?void 0:h.children)==null?void 0:b.length)-1?"0px":"24px"})},[((_=x==null?void 0:x.comp)==null?void 0:_.toUpperCase())!=="TABLE"&&x.name?(e.openBlock(),e.createElementBlock("div",ev,[K(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:parseInt(D.value.toString())>1?"12px":"0px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString(x.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(x.comp)),{compName:x.name,groupNames:x==null?void 0:x.nameContents,config:{showIndex:x==null?void 0:x.showIndex,allowMove:x==null?void 0:x.allowMove,viewport:x==null?void 0:x.viewport,status:x==null?void 0:x.status},itemData:x==null?void 0:x.compData,related:x==null?void 0:x.relatedTables,childItemData:x==null?void 0:x.itemChildData,key:e.unref(jn),onChange:e.unref(To),index:(x==null?void 0:x.id)??w,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:x==null?void 0:x.tableId,allMapContents:e.unref(bt),children:x==null?void 0:x.children,level:D.value,onRowClick:I,onRouteUrl:H,onRadioChange:g},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),lv=Zl._export_sfc(av,[["__scopeId","data-v-bafbdd45"]]),rv={class:"radio-group-container"},nv=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(),s=Hn(A.pinia),{selectTab:h}=A.storeToRefs(s);e.watch(()=>n==null?void 0:n.itemData,()=>{o.value=h.value},{immediate:!0,deep:!0});const c=p=>{o.value=p,r("radioChange",o.value)};return(p,m)=>(e.openBlock(),e.createElementBlock("div",rv,[e.createVNode(al.ssRadio,{modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=g=>o.value=g),content:n==null?void 0:n.itemData,onChange:c},null,8,["modelValue","content"])]))}}),iv=Zl._export_sfc(nv,[["__scopeId","data-v-177d64c3"]]),ru=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),ov={TABLE:Bc,FORM:xs,STATICFORM:Tc,TABLEOPERATE:Jh,TABLESTYLE:f2,TABLEEXTEND:v2,TABLEINTERACTION:g2,FORMOPERATE:ws,FOLD:G2,CALCULATOR:e4,METHODBUTTON:r4,AVATARUPLOAD:ls.ssAvatar,SIGNATURE:ls.ssSignature,FORMTOP:xs,STEP:v4,STEPOPERATE:V2,TIMELINE:x4,TIMELINEOPERATE:q2,FORMTOPOPERATE:ws,SIGNATUREOPERATE:p4,AVATARUPLOADOPERATE:o4,TABS:S4,TABSOPERATE:c6,CHART:S6,CHARTOPERATE:O6,LAYOUT:$6,LAYOUTOPERATE:K6,PARENTITEM:lv,RADIO:iv};function Ti(a){return ov[a==null?void 0:a.toUpperCase()]||null}exports.De=lu;exports.activeStepInfo=Si;exports.addContents=Ki;exports.addVisibleDialog=Dt;exports.affixItems=E0;exports.allMapContents=bt;exports.analyzeMenu=ac;exports.cacheNewData=xc;exports.clickMainKey=Sc;exports.clickSavePage=S0;exports.clickStep=Cc;exports.clickTrigger=_c;exports.compId=jn;exports.compNames=wc;exports.compShow=Bi;exports.existLayouts=M0;exports.fixChangeValue=Et;exports.generateLayouts=c2;exports.getComponent=Ti;exports.getComponents=Gi;exports.getPageConstruct=Gd;exports.getPageData=Jr;exports.getSliceContLength=V0;exports.gridRowHeight=n2;exports.gridRowHeightHmPg=r2;exports.isStepLayout=Dc;exports.onBack=w0;exports.onButtonChange=T0;exports.onChange=To;exports.onClick=_0;exports.onClickStep=I0;exports.onContentChange=No;exports.onExtendTaskEnd=z0;exports.onOk=N0;exports.onPageBack=L0;exports.onPageChange=Ao;exports.onSelectFixContent=x0;exports.renderShowItems=bc;exports.showItems=ur;exports.sliceTableLength=kc;exports.slotContent=ru;exports.ssTable=Bc;exports.st=Mo;exports.stepItems=P0;exports.tabChange=O0;exports.toolBar=A0;exports.useFormComp=Ct;exports.useModelLoader=_f;exports.verifyButton=R0;
|
|
25
|
+
${gr}`,duration:5e3,showClose:!0})}else Ua.ElMessage.success("导出成功")}else Ua.ElMessage.error(((Xa=Rl==null?void 0:Rl.data)==null?void 0:Xa.message)||"导出失败")}catch(Sa){console.error("导出paraform失败:",Sa),Ua.ElMessage.error("导出失败:"+((Sa==null?void 0:Sa.message)||"未知错误"))}finally{Ea.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((xa=Sl.value)==null?void 0:xa.length)===0)return Ua.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Za=Ae.value)==null?void 0:Za.length)===0)return Ua.ElMessage.warning("暂无数据导出");let Ea=["序号",...(Oa=(ye=F.value)==null?void 0:ye.map($e=>$e==null?void 0:$e.prop))==null?void 0:Oa.filter($e=>$e!=="操作")],Sa=d==="导出全部"?Ae.value:Sl.value;const T=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Sa=Sa==null?void 0:Sa.map($e=>Object.fromEntries(Object.entries($e).filter(([ta])=>!T.includes(ta)))),Ea=["序号",...Ea],Sa=Sa==null?void 0:Sa.map(($e,ta)=>({序号:ta+1,...$e}));let Y=(u==null?void 0:u.compName)||"表格信息";Po(Sa,Y,Ea,Y)}else if(d==="OCR识别")nl.value=!0,Ra.value=[],Ue.value=1,na.value.clear(),re.value.clear(),ia.value=0;else if(d==="迁移")f.selectRow=v,f.show=!0;else if(d==="生成方法"){let Ea=await Jf(v),Sa;v!==""?Sa=[v]:Sa=A.cloneDeep(Ae.value),Sa=Sa==null?void 0:Sa.map(Y=>(Y.输出值=Ea,Y));const T={fixContent:Sa,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:F.value,name:u==null?void 0:u.groupNames};Me("change",T)}else if(((ba=B==null?void 0:B.extra)==null?void 0:ba.type)==="methodButton"){let Ea;v!==""?Ea=[v]:Ea=A.cloneDeep(Ae.value);const T={fixContent:await vt(Ea,F==null?void 0:F.value,"Manual",Ae.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:F.value,name:u==null?void 0:u.groupNames};Me("change",T)}}},iu=async(d,v)=>{var B,z,P,C,le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa,Za,ye;try{let Oa,ba;const Ea=(B=pe.value[Se.value+_])==null?void 0:B.filter(Ta=>{var el;return((el=Ta==null?void 0:Ta.key)==null?void 0:el.type)==="structureMethod"}),Sa=(z=pe.value[Se.value+_])==null?void 0:z.filter(Ta=>{var el;return((el=Ta==null?void 0:Ta.key)==null?void 0:el.type)==="structure"}),T=Ea==null?void 0:Ea.find(Ta=>{var el,qa;return((qa=(el=Ta==null?void 0:Ta.value)==null?void 0:el.pageData)==null?void 0:qa.method)==="保存"});if(!T)return;const Y=(ae=(le=pe.value[(C=(P=T==null?void 0:T.value)==null?void 0:P.pageData)==null?void 0:C.path])==null?void 0:le.filter(Ta=>{var el;return((el=Ta==null?void 0:Ta.key)==null?void 0:el.type)==="data"}))==null?void 0:ae.find(Ta=>{var el,qa,pl,fl;return((qa=(el=Ta==null?void 0:Ta.value)==null?void 0:el.tableData)==null?void 0:qa.算法名称)===((fl=(pl=T==null?void 0:T.value)==null?void 0:pl.pageData)==null?void 0:fl.method)});if(!Y)return;const $e={buttonName:(be=(q=T==null?void 0:T.value)==null?void 0:q.pageData)==null?void 0:be.method,api:(Ge=(Ee=Y==null?void 0:Y.value)==null?void 0:Ee.tableData)==null?void 0:Ge.算法体,content:Sa==null?void 0:Sa.map(Ta=>{var el;return(el=Ta==null?void 0:Ta.value)==null?void 0:el.pageData}),extraContent:[],extraValues:(Xe=(Pe=T==null?void 0:T.value)==null?void 0:Pe.pageData)==null?void 0:Xe.data,methodName:(Ia=(_a=T==null?void 0:T.value)==null?void 0:_a.pageData)==null?void 0:Ia.path};if(!d)return;const ta={...d,compData:(za=d==null?void 0:d.compData)==null?void 0:za.map(Ta=>{var el;return(Ta==null?void 0:Ta.key)==="formContent"?{...Ta,contents:(el=Ta==null?void 0:Ta.contents)==null?void 0:el.map(qa=>(qa==null?void 0:qa.prop)===v?{...qa,value:""}:qa)}:Ta})},xe={key:{pageKey:Se.value+_,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:ta}},fa=await Ua.axios.post($e.api,xe,{headers:{"Content-Type":"application/json"}});return((Ze=fa==null?void 0:fa.data)==null?void 0:Ze.code)===200&&(Oa=(xa=(Xa=fa==null?void 0:fa.data)==null?void 0:Xa.result)==null?void 0:xa.latestReportCode,ba=(ye=(Za=fa==null?void 0:fa.data)==null?void 0:Za.result)==null?void 0:ye.status),{newMainKeyValue:Oa,newStatus:ba}}catch(Oa){throw Ua.ElMessage.error(Oa),new Error(Oa)}},Nt=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const ou=async(d,v,B)=>{var q,be;let z=d==null?void 0:d[v==null?void 0:v.prop],P=1,C,le;const ae=A.cloneDeep(Se).value+_+z;if(ae){Nt.value="",C=(q=pe.value[ae])==null?void 0:q.filter(Pe=>{var Xe;return((Xe=Pe==null?void 0:Pe.key)==null?void 0:Xe.type)==="structure"});const Ee=C==null?void 0:C.find(Pe=>{var Xe,_a,Ia;return((Ia=(_a=(Xe=Pe==null?void 0:Pe.value)==null?void 0:Xe.pageData)==null?void 0:_a.comp)==null?void 0:Ia.toUpperCase())==="FORM"});le={...(be=Ee==null?void 0:Ee.value)==null?void 0:be.pageData,id:Ee==null?void 0:Ee.id};const Ge=await iu(le,v==null?void 0:v.prop);if(Nt.value=Ge==null?void 0:Ge.newStatus,Ge!=null&&Ge.newMainKeyValue)return Ge==null?void 0:Ge.newMainKeyValue}if(Ae.value.some(Ee=>(Ee==null?void 0:Ee[v==null?void 0:v.prop])===z)){const Ee=z;for(;Ae.value.some(Ge=>(Ge==null?void 0:Ge[v==null?void 0:v.prop])===`${Ee}(${P})`);)P++;z=`${Ee}(${P})`}return z},tu=async(d,v,B)=>{var C,le,ae,q;let z,P;if(await ou(B==null?void 0:B.data,B==null?void 0:B.firstCol),z=A.cloneDeep(Se).value+_,P=A.cloneDeep(z)+`loading${((C=hl.value)==null?void 0:C.account)||((le=hl.value)==null?void 0:le.账号)}`,v){const be=(q=(ae=pe.value[P])==null?void 0:ae.filter(Ee=>{var Ge;return((Ge=Ee==null?void 0:Ee.key)==null?void 0:Ge.parentTable)===""}))==null?void 0:q.map(Ee=>{var Ge;return{id:Ee==null?void 0:Ee.id,...(Ge=Ee==null?void 0:Ee.value)==null?void 0:Ge.pageData}});(be==null?void 0:be.length)>0||await de.loadingConstruct(z,P,null,null,null),ca.setRouteToChildPath(A.cloneDeep(Se).value),ue.setActiveMenuPath(P)}else ca.setRouteToChildPath(A.cloneDeep(Se).value),ue.setActiveMenuPath(P)},su=()=>{Ve.value=!1,fe.value=[],he.value=!1},$i=d=>{var C,le,ae,q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa;const v=[];Be.value=A.cloneDeep(F.value),(le=de.getColumnChild((C=A.cloneDeep(F.value))==null?void 0:C.filter(T=>(T==null?void 0:T.label)!=="操作")))==null||le.forEach((T,Y)=>{var $e,ta,xe;T!=null&&T.formType&&(($e=T==null?void 0:T.formType)==null?void 0:$e.toUpperCase())==="SELECT"||T!=null&&T.menuId?v.push({label:(ta=T==null?void 0:T.prop)!=null&&ta.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",name:(T==null?void 0:T.prop)??"t"+Y,prop:T==null?void 0:T.prop,type:"Select",value:(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Y,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,multipleLimit:T==null?void 0:T.multipleLimit,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,relatedValueId:T==null?void 0:T.relatedValueId,disabled:T==null?void 0:T.disabled,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,allSelectionContents:(T==null?void 0:T.allSelectionContents)??[],filterContent:T==null?void 0:T.filterContent,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly}):v.push({label:(xe=T==null?void 0:T.prop)!=null&&xe.includes(".")?T==null?void 0:T.prop:(T==null?void 0:T.label)??(T==null?void 0:T.prop)??"",prop:T==null?void 0:T.prop,name:(T==null?void 0:T.prop)??"t"+Y,type:!(T!=null&&T.formType)||(T==null?void 0:T.formType)===""?"Input":T==null?void 0:T.formType,value:(T==null?void 0:T.formType)==="Upload"?(d==null?void 0:d[T==null?void 0:T.prop])??"{}":(d==null?void 0:d[T==null?void 0:T.prop])??(T==null?void 0:T.value)??"",id:(T==null?void 0:T.id)??Y,contents:(T==null?void 0:T.options)??[],multiple:(T==null?void 0:T.multiple)??!1,width:1,isFormColHidden:T==null?void 0:T.isFormColHidden,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled,relatedValueId:T==null?void 0:T.relatedValueId,menus:T==null?void 0:T.menus,groups:T==null?void 0:T.groups,words:T==null?void 0:T.words,filter:T==null?void 0:T.filter,bindMenus:T==null?void 0:T.bindMenus,isMainPath:T==null?void 0:T.isMainPath,required:(T==null?void 0:T.required)??!1,relatedContents:T==null?void 0:T.relatedContents,mainKey:T==null?void 0:T.mainKey,relatedContents:T==null?void 0:T.relatedContents,functionName:T==null?void 0:T.functionName,functionRelatedWords:T==null?void 0:T.functionRelatedWords,calculatorFilter:T==null?void 0:T.calculatorFilter,isReadonly:T==null?void 0:T.isReadonly})}),d===""||!d||(Ca.value=(d==null?void 0:d.id)??"");let B=de.getColumnChild((ae=A.cloneDeep(F.value))==null?void 0:ae.filter(T=>(T==null?void 0:T.label)!=="操作"));Qe.value&&((q=Qe.value)==null?void 0:q.length)>0&&(Qe.value=(be=A.cloneDeep(Qe).value)==null?void 0:be.map(T=>{var $e;let Y=(T==null?void 0:T.prop)||(($e=B==null?void 0:B.find(ta=>(ta==null?void 0:ta.label)===(T==null?void 0:T.label)))==null?void 0:$e.prop);return Y&&(T.value=d[Y]),T})),La.value=Qe.value&&((Ee=Qe.value)==null?void 0:Ee.length)>0?de.getTableFormToForm(Qe.value):v,La.value=((Ge=La.value)==null?void 0:Ge.map(T=>({...T,disabled:(T==null?void 0:T.prop)==="disabled"?!0:T==null?void 0:T.disabled})))??La.value;let z=[],P=((_a=(Xe=(Pe=u.itemData)==null?void 0:Pe.filter(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:Xe[0])==null?void 0:_a.contents)??"";if(P=de.analyzeSplitToContent(P,","),(P==null?void 0:P.length)>0&&(z=P.flat()),(z==null?void 0:z.length)>0){let T=z==null?void 0:z.filter(fa=>fa==null?void 0:fa.includes("@Type"));if(T=T==null?void 0:T[(T==null?void 0:T.length)-1],(T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T){let fa=(za=(Ia=T==null?void 0:T.replace("=",w))==null?void 0:Ia.split(w))==null?void 0:za[1];((Ze=fa==null?void 0:fa.trim())==null?void 0:Ze.toUpperCase())==="MANUAL"&&(u==null||u.index,La.value=(Xa=La.value)==null?void 0:Xa.map((Ta,el)=>Ta))}let Y=(xa=La.value)==null?void 0:xa.filter(fa=>fa==null?void 0:fa.mainKey),$e;Y==null||Y.forEach(fa=>{var el;if($e!==void 0)return;let Ta=fa==null?void 0:fa.menus;((el=Y==null?void 0:Y.filter(qa=>qa==null?void 0:qa.mainKey))==null?void 0:el.length)>1&&($e=Ta,fa==null||fa.groups)});let ta=[],xe=new Map;if(Y==null||Y.forEach(fa=>{var Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl;if((Ta=fa==null?void 0:fa.prop)!=null&&Ta.includes(".")){let Dl=[];xe.get(((qa=(el=fa==null?void 0:fa.prop)==null?void 0:el.split("."))==null?void 0:qa[0])+(fa!=null&&fa.isMainPath?0:1)+((pl=fa==null?void 0:fa.groups)==null?void 0:pl[0]))&&(Dl=xe.get((($l=(fl=fa==null?void 0:fa.prop)==null?void 0:fl.split("."))==null?void 0:$l[0])+(fa!=null&&fa.isMainPath?0:1)+((Ha=fa==null?void 0:fa.groups)==null?void 0:Ha[0]))),Dl.push(fa),xe.set(((Pa=(yl=fa==null?void 0:fa.prop)==null?void 0:yl.split("."))==null?void 0:Pa[0])+(fa!=null&&fa.isMainPath?0:1)+((ol=fa==null?void 0:fa.groups)==null?void 0:ol[0]),Dl)}else{let Dl=[];xe.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((Ka=fa==null?void 0:fa.groups)==null?void 0:Ka[0]))&&(Dl=xe.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((tl=fa==null?void 0:fa.groups)==null?void 0:tl[0]))),Dl.push(fa),xe.set("normal"+(fa!=null&&fa.isMainPath?0:1)+((wl=fa==null?void 0:fa.groups)==null?void 0:wl[0]),Dl)}}),ta=Array.from(xe.values()),(ta==null?void 0:ta.length)>0)for(let fa in ta){let Ta=ta==null?void 0:ta[fa];if((Ta==null?void 0:Ta.length)!==1){if((Ta==null?void 0:Ta.length)>1){let el=Ta==null?void 0:Ta.map(ol=>ol==null?void 0:ol.prop),qa=Ta==null?void 0:Ta.map(ol=>ol==null?void 0:ol.label),pl=Ta==null?void 0:Ta.map(ol=>ol==null?void 0:ol.value),fl=(Za=A.cloneDeep(Ta))==null?void 0:Za[0],$l=(ye=La.value)==null?void 0:ye.findIndex(ol=>(ol==null?void 0:ol.prop)===(fl==null?void 0:fl.prop)),Ha=(Oa=La.value)==null?void 0:Oa.slice(0,$l),yl=(Ea=La.value)==null?void 0:Ea.slice($l,(ba=La.value)==null?void 0:ba.length);fl.label=qa==null?void 0:qa.join("·"),fl.value=pl==null?void 0:pl.join(" "),fl.value.trim()===""&&(fl.value=""),fl.prop=el==null?void 0:el.join("·");let Pa=Ta==null?void 0:Ta.map(ol=>{var Ka;return(Ka=ol==null?void 0:ol.words)==null?void 0:Ka.join(".")});fl.relatedWords=Pa,fl.usingType="parent",yl.unshift(fl),La.value=[...Ha,...yl],La.value=(Sa=La.value)==null?void 0:Sa.map(ol=>(el!=null&&el.find(Ka=>Ka===(ol==null?void 0:ol.prop))&&(ol.isFormColHidden=!0,ol.relatedWords=Pa),ol))}}}}},cu=()=>{var v;const d=(v=o.value)==null?void 0:v.$el;d&&Bl.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:B=>{var le;const{oldIndex:z,newIndex:P}=B;if(z===P)return;const C=sn.value.splice(z,1)[0];sn.value.splice(P,0,C),F.value=(le=F.value)==null?void 0:le.slice().sort((ae,q)=>{if(ae.label==="操作")return 1;if(q.label==="操作")return-1;const be=sn.value.findIndex(Ge=>Ge.label===ae.label),Ee=sn.value.findIndex(Ge=>Ge.label===q.label);return be-Ee})}})};e.onMounted(()=>{oa.value=window.innerWidth-240*2,window.addEventListener("keydown",Xi)});const uu=()=>{e.nextTick(()=>{cu()})},du=()=>{c.value=!0},rt=(d,v)=>{var z;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let B;return d.children=(z=d.children)==null?void 0:z.map(P=>{var C,le;if((P==null?void 0:P.id)===Ca.value){let ae={};for(let q in P){let be=(C=v==null?void 0:v.find(Ee=>(Ee==null?void 0:Ee.prop)===q))==null?void 0:C.label;be?ae[q]=(le=Ql.value)==null?void 0:le[be]:ae[q]=P[q]??""}P=Object.assign(ae,Ql.value),B=P}else{let ae=rt(P,v);P=ae==null?void 0:ae.contents,B=ae==null?void 0:ae.currentSelectContents}return P}),{contents:d,currentSelectContents:B}},At=(d,v)=>{let B,z;return d!=null&&d.find(P=>(P==null?void 0:P.id)===Ca.value)?B=d==null?void 0:d.map(P=>{var C,le,ae;if((P==null?void 0:P.id)===Ca.value){let q={};for(let Ee in P){let Ge=(C=v==null?void 0:v.find(Pe=>(Pe==null?void 0:Pe.prop)===Ee))==null?void 0:C.label;Ge?q[Ee]=((le=Ql.value)==null?void 0:le[Ge])??"":q[Ee]=P[Ee]??""}let be=Ql.value;for(let Ee in q)(ae=Ql.value)!=null&&ae[Ee]||(be[Ee]=(q==null?void 0:q[Ee])??"");P=be,z=P}return P}):B=d==null?void 0:d.map(P=>{var C,le,ae,q;if((P==null?void 0:P.id)===Ca.value){let be={};for(let Ee in P){let Ge=(C=v==null?void 0:v.find(Pe=>(Pe==null?void 0:Pe.prop)===Ee))==null?void 0:C.label;Ge?be[Ee]=(le=Ql.value)==null?void 0:le[Ge]:be[Ee]=P[Ee]??""}P=Object.assign(be,Ql.value),z=P}else P=(ae=rt(P,v))==null?void 0:ae.contents,z=(q=rt(P,v))==null?void 0:q.currentSelectContents;return P}),{newContents:B,currentSelectContents:z}},zt=(d,v,B)=>{var z,P;return d[v==null?void 0:v.prop]=B,typeof d.id=="number"&&(d.id=(z=d.id)==null?void 0:z.toString()),d.children&&((P=d.children)==null?void 0:P.length)>0&&(d.children=d.children.map(zt)),d},Mt=d=>{var B;const v=[];return v.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((B=d.children)==null||B.forEach(z=>{v.push(...Mt(z))})),(v==null?void 0:v.length)>0?v==null?void 0:v.map(z=>{const P={...z};return delete P.children,P}):[]},so=["Pacific6000数据采集装置.通道号","通道号"],Vi=d=>{if(!d)return"";const v=so.map(B=>d==null?void 0:d[B]).find(B=>B!=null&&String(B).trim()!=="");return v==null?"":String(v).trim()},nt=async(d,v=void 0)=>{if(!d)return!1;try{const B=Xe=>{var _a,Ia,za;return Xe?typeof(Xe==null?void 0:Xe.value)=="string"?Xe.value:((za=(Ia=(_a=Xe==null?void 0:Xe._custom)==null?void 0:_a.value)==null?void 0:Ia.value)==null?void 0:za.value)||"":""},z=Array.isArray(nr.value)?nr.value:[],P=B(z.find(Xe=>(Xe==null?void 0:Xe.condition)==="child")),C=(Se.value||"").replace(/\/+$/,""),le=P?`${C}/${P}`:C,ae=await Jr(le||Se.value,!1),q=String(aa.value||"").trim(),be=Xe=>String(Xe||"").trim(),Ee=(Xe,_a=[],Ia="")=>{if(!Array.isArray(Xe))return _a;for(const za of Xe){const Ze=be((za==null?void 0:za.choiceName)||(za==null?void 0:za.name0)||Ia);(za==null?void 0:za.comp)==="Table"&&(!q||Ze===q)&&_a.push(za),Array.isArray(za==null?void 0:za.children)&&Ee(za.children,_a,Ze),Array.isArray(za==null?void 0:za.tab)&&Ee(za.tab,_a,Ze),Array.isArray(za==null?void 0:za.choice)&&Ee(za.choice,_a,Ze)}return _a},Ge=Ee(ae||[]),Pe=String((u==null?void 0:u.compName)||"");return Ge.some(Xe=>{var Ia,za;const _a=((za=(Ia=Xe==null?void 0:Xe.compData)==null?void 0:Ia.find(Ze=>(Ze==null?void 0:Ze.key)==="tableContents"))==null?void 0:za.contents)||[];return!Array.isArray(_a)||_a.length===0?!1:_a.some(Ze=>{if(String((Xe==null?void 0:Xe.name)||"")===Pe&&(Ze==null?void 0:Ze.id)===v)return!1;const xa=Vi(Ze);return!!xa&&xa===d})})}catch{return(Ae.value||[]).some(z=>{if((z==null?void 0:z.id)===v)return!1;const P=Vi(z);return!!P&&P===d})}},Pi=async(d=!0,v,B)=>{var be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa,T,Y,$e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl;if(Ql.value){const Pa=(Ee=de.getColumnChild((be=A.cloneDeep(F.value))==null?void 0:be.filter(Ka=>(Ka==null?void 0:Ka.label)!=="操作")))==null?void 0:Ee.filter(Ka=>(Ka==null?void 0:Ka.required)===!0);for(let Ka=0;Ka<((Pa==null?void 0:Pa.length)??0);Ka++){const tl=Pa[Ka],wl=tl==null?void 0:tl.prop,Dl=(tl==null?void 0:tl.label)??wl,Cr=(Ge=Ql.value)==null?void 0:Ge[wl];if(Cr===""||Cr===null||Cr===void 0||Array.isArray(Cr)&&Cr.length===0){Ua.ElMessage.error(`${Dl}不能为空`);return}}const ol=Vi(Ql.value);if(ol&&await nt(ol,Ca.value||void 0)){Ua.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=de.getColumnChild((Pe=A.cloneDeep(F.value))==null?void 0:Pe.filter(Pa=>(Pa==null?void 0:Pa.label)!=="操作")),P,C=A.cloneDeep(Ae.value);if(!Ql.value){Te.value=!1;return}if(Ca.value===""){$a.value++;let Pa;Pa={id:$a.value.toString()};try{Pa.sort=Xn(0,Ae.value||[])}catch{}Pa!=null&&Pa.children&&(Pa={...Pa,children:(Xe=Pa.children)==null?void 0:Xe.map(Ka=>zt(Ka,v,B))});const ol=Object.assign(Ql.value,Pa);C.unshift(ol),P=ol}else C=(_a=At(C,z))==null?void 0:_a.newContents,P=(Ia=At(C,z))==null?void 0:Ia.currentSelectContents;const le=(za=u.itemData)==null?void 0:za.filter(Pa=>(Pa==null?void 0:Pa.key)==="childTree")[0];if(((Ze=le==null?void 0:le.contents)==null?void 0:Ze.length)>0){W.value="编辑";const Pa=[];C==null||C.forEach((tl,wl)=>{var Cr;let Dl={};if(Array.isArray(tl)){let Rl=[];tl==null||tl.filter(bl=>!(bl!=null&&bl.id)).forEach((bl,Al)=>{var Xl,Nl,Yl,tr,Wl,yr,Gr;if((Nl=(Xl=_r.value)==null?void 0:Xl[Al])!=null&&Nl.prop&&!Array.isArray(bl)){let gr={};gr[_r.value[Al].column]=bl,R!=null&&R.value&&((Yl=R==null?void 0:R.value)==null?void 0:Yl.length)>0&&((tr=R==null?void 0:R.value)!=null&&tr.find(dr=>JSON.stringify(dr==null?void 0:dr[0])===JSON.stringify(gr)))&&(Rl=(Wl=R==null?void 0:R.value)==null?void 0:Wl.find(dr=>JSON.stringify(dr==null?void 0:dr[0])===JSON.stringify(gr))),Rl&&Rl.length>0?Dl[_r.value[Al].prop]=Rl!=null&&Rl.find(dr=>{var mr;return((mr=Object.keys(dr))==null?void 0:mr[0])===_r.value[Al].column})?(yr=Rl==null?void 0:Rl.find(dr=>{var mr;return((mr=Object.keys(dr))==null?void 0:mr[0])===_r.value[Al].column}))==null?void 0:yr[_r.value[Al].column]:bl:Dl[_r.value[Al].prop]=bl}else Array.isArray(bl)&&((Gr=_r.value[Al])!=null&&Gr.prop?Dl[_r.value[Al].prop]=bl:Dl.children=mt(bl,_r.value))})}else Dl=tl;if(Array.isArray(tl)&&tl.some(Rl=>Rl==null?void 0:Rl.id)){const Rl=(Cr=tl==null?void 0:tl.find(bl=>bl.id))==null?void 0:Cr.id;Pa.push(Object.assign(Dl,{id:io(Rl)}))}else Dl.id?Pa.push(Dl):Pa.push(Object.assign(Dl,{id:wl.toString()}))});const ol=(Ae.value||[]).map(tl=>String(tl==null?void 0:tl.id)),Ka=ui(Pa,ol);Ae.value=Rt(Ka,le,F.value)}Ot(Ae.value),Ir.value=Ae.value;const ae=If(Ir.value,mn.value,C);let q=[];if(j.value?(q=(Xa=A.cloneDeep(j).value.singleContent)==null?void 0:Xa.filter(Pa=>(Pa==null?void 0:Pa.id)!==(P==null?void 0:P.id)),q.push(P)):q=[P],Ll.value){const Pa={content:ae,singleContent:((xa=le==null?void 0:le.contents)==null?void 0:xa.length)>0?q==null?void 0:q.flatMap(Mt):q,index:u==null?void 0:u.index,buttonName:"编辑",column:F.value,parentTableId:u==null?void 0:u.parentTableId};ca.setCacheUpdatingData(Pa)}if((Za=F.value)==null||Za.forEach(Pa=>{(Pa==null?void 0:Pa.formType)==="Upload"&&(P[Pa.prop]=P[Pa.prop]===""?"{}":typeof P[Pa.prop]!="string"?JSON.stringify(P[Pa.prop]):P[Pa.prop])}),d){(Ea=(ba=(Oa=(ye=u.itemData)==null?void 0:ye.find(Ka=>(Ka==null?void 0:Ka.key)==="filterAllType"))==null?void 0:Oa.value)==null?void 0:ba.find(Ka=>(Ka==null?void 0:Ka.value)==="onConditionContents"))==null||Ea.content;let Pa=(Sa=u.itemData)==null?void 0:Sa.filter(Ka=>(Ka==null?void 0:Ka.key)==="filterAllType");Pa=Array.from(new Map(Pa.filter(Boolean).map((Ka,tl)=>[Ka.value,{...Ka,_idx:tl}])).values()).sort((Ka,tl)=>Ka._idx-tl._idx).map(({_idx:Ka,...tl})=>tl),Pa=(T=Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])==null?void 0:T.value;const ol={fixContent:[P],buttonName:W.value,relatedContents:u==null?void 0:u.related,columns:F.value,name:u==null?void 0:u.groupNames};ca.setTableLoading(u==null?void 0:u.index),Te.value=!1,Ql.value=void 0,Me("change",ol)}if((ta=($e=(Y=La.value)==null?void 0:Y[0])==null?void 0:$e.optionUrl)!=null&&ta.menuId){Te.value=!1;let Pa=(xe=u.itemData)==null?void 0:xe.filter(ol=>(ol==null?void 0:ol.key)==="filterAllType");if((Pa==null?void 0:Pa.length)>0){let ol=Pa==null?void 0:Pa.map(wl=>wl==null?void 0:wl.value),Ka=(el=(Ta=(fa=ol.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Num")}))==null?void 0:fa.content)==null?void 0:Ta.split(":"))==null?void 0:el[1];((fl=(pl=(qa=ol.flat().find(wl=>{var Dl;return(Dl=wl==null?void 0:wl.content)==null?void 0:Dl.includes("@Type:")}))==null?void 0:qa.content)==null?void 0:pl.split(":"))==null?void 0:fl[1])!=="Manual"&&(Ka=parseInt(Ka),Ae.value=(yl=Ae.value)==null?void 0:yl.slice((($l=Ae.value)==null?void 0:$l.length)-Ka,(Ha=Ae.value)==null?void 0:Ha.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",Xi),F.value=[],Ae.value=[],Be.value=[],Ba.value=[],Qe.value=[],He.value=[],fe.value=[],ke.value=[],La.value=[],Sl.value=[],o.value=null,Ln.value=""});const co=async(d,v,B)=>{var Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa;ar.value=(B==null?void 0:B.prop)??(B==null?void 0:B.property);const z=A.cloneDeep(u.itemData),P=((Xe=z==null?void 0:z.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Xe.contents)??[];let C=P==null?void 0:P.find((T,Y)=>{var $e,ta,xe;return(T==null?void 0:T.prop)===ar.value||(T==null?void 0:T.label)===ar.value||(Y==null?void 0:Y.toString())===((xe=(ta=($e=ar.value)==null?void 0:$e.split("a"))==null?void 0:ta[1])==null?void 0:xe.toString())});const le=de.getColumnChild((_a=A.cloneDeep(F.value))==null?void 0:_a.filter(T=>(T==null?void 0:T.label)!=="操作"));if(C||(C=le==null?void 0:le.find(T=>(T==null?void 0:T.prop)===ar.value||(T==null?void 0:T.label)===ar.value)),C&&!((Ia=C==null?void 0:C.menus)!=null&&Ia.length)&&!((za=C==null?void 0:C.groups)!=null&&za.length)&&!((Ze=C==null?void 0:C.words)!=null&&Ze.length)){const T=(Xa=La.value)==null?void 0:Xa.find(Y=>(Y==null?void 0:Y.prop)===ar.value);T&&(C={...C,menus:(T==null?void 0:T.menus)??(C==null?void 0:C.menus),groups:(T==null?void 0:T.groups)??(C==null?void 0:C.groups),words:(T==null?void 0:T.words)??(C==null?void 0:C.words),bindMenus:(T==null?void 0:T.bindMenus)??(C==null?void 0:C.bindMenus),isMainPath:(T==null?void 0:T.isMainPath)??(C==null?void 0:C.isMainPath),relatedContents:(T==null?void 0:T.relatedContents)??(C==null?void 0:C.relatedContents),endChildMenu:(T==null?void 0:T.endChildMenu)??(C==null?void 0:C.endChildMenu)})}if(C&&((xa=La==null?void 0:La.value)==null||xa.forEach(T=>{var Y,$e,ta,xe,fa;(T==null?void 0:T.prop)===(C==null?void 0:C.prop)&&(T!=null&&T.endChildMenu)&&((Y=C==null?void 0:C.prop)!=null&&Y.includes(".")&&((ta=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:ta[0])!==((fa=(xe=T==null?void 0:T.prop)==null?void 0:xe.split("."))==null?void 0:fa[0])?C.endChildMenu=T==null?void 0:T.value:C.endChildMenu=T==null?void 0:T.endChildMenu)})),!C)return;const ae=ar.value,q=(Za=Ae.value)==null?void 0:Za.findIndex(T=>(T==null?void 0:T.id)===(v==null?void 0:v.id));q!==-1&&ae&&(Ae.value[q]={...Ae.value[q],[ae]:d});const be=T=>{Array.isArray(T)&&T.forEach(Y=>{Array.isArray(Y==null?void 0:Y.allSelectionContents)&&Y.allSelectionContents.length>0&&(Y.contactValue=Ae.value[q]??v),Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&be(Y.children)})};be(F.value),C.value=d,C.endChildMenu=C.endChildMenu||"";let Ee=C!=null&&C.isMainPath&&(C!=null&&C.mainKey)?C==null?void 0:C.value:"";const Ge=T=>{Array.isArray(T)&&T.forEach(Y=>{var ta,xe;if(((Y==null?void 0:Y.type)==="Select"||(Y==null?void 0:Y.formType)&&Y.formType.toUpperCase()==="SELECT"||(Y==null?void 0:Y.columnType)&&Y.columnType.toUpperCase()==="SELECT")&&Array.isArray(Y==null?void 0:Y.menus)&&Y.menus.length>0&&Y.menus[Y.menus.length-1]===""&&(C!=null&&C.isMainPath)&&(C!=null&&C.mainKey)){const fa=(ta=Y==null?void 0:Y.prop)!=null&&ta.includes(".")?Y.prop.split(".")[0]:null,Ta=(xe=C==null?void 0:C.prop)!=null&&xe.includes(".")?C.prop.split(".")[0]:null;(!fa||!Ta||fa===Ta)&&(Y.endChildMenu=Ee)}Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&Ge(Y.children)})};if(Ge(F.value),!!(C!=null&&C.mainKey)&&Array.isArray(C==null?void 0:C.menus)&&(C==null?void 0:C.menus.length)>0&&(C!=null&&C.value)&&(C==null?void 0:C.value)!==""){let T=C!=null&&C.relatedContents&&((ye=C==null?void 0:C.relatedContents)==null?void 0:ye.length)>0?(Oa=C==null?void 0:C.relatedContents)==null?void 0:Oa.find(Y=>{var $e,ta,xe,fa;return(Y==null?void 0:Y[(fa=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:fa[((xe=(ta=C==null?void 0:C.prop)==null?void 0:ta.split("."))==null?void 0:xe.length)-1]])===(C==null?void 0:C.value)}):await us(C);if(T){const Y={...v};le==null||le.forEach($e=>{var ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl;($e==null?void 0:$e.prop)!==(C==null?void 0:C.prop)&&(C!=null&&C.relatedContents&&((ta=C==null?void 0:C.relatedContents)==null?void 0:ta.length)>0?(xe=$e==null?void 0:$e.prop)!=null&&xe.includes(".")&&((Ta=(fa=$e==null?void 0:$e.prop)==null?void 0:fa.split("."))==null?void 0:Ta[0])===((qa=(el=C==null?void 0:C.prop)==null?void 0:el.split("."))==null?void 0:qa[0])?Y[$e.prop]=T[(Ha=(pl=$e==null?void 0:$e.prop)==null?void 0:pl.split("."))==null?void 0:Ha[(($l=(fl=$e==null?void 0:$e.prop)==null?void 0:fl.split("."))==null?void 0:$l.length)-1]]??Y[$e.prop]:Y[$e.prop]=(T==null?void 0:T[$e.prop])??Y[$e.prop]:de.same((C==null?void 0:C.menus)??[],($e==null?void 0:$e.menus)??[])&&de.same((C==null?void 0:C.groups)??[],($e==null?void 0:$e.groups)??[])&&!de.same((C==null?void 0:C.words)??[],($e==null?void 0:$e.words)??[])?(yl=$e==null?void 0:$e.prop)!=null&&yl.includes(".")&&((ol=(Pa=$e==null?void 0:$e.prop)==null?void 0:Pa.split("."))==null?void 0:ol[0])!==((tl=(Ka=C==null?void 0:C.prop)==null?void 0:Ka.split("."))==null?void 0:tl[0])||(Y[$e.prop]=(T==null?void 0:T[(wl=$e==null?void 0:$e.words)==null?void 0:wl.join(".")])??(T==null?void 0:T[$e.prop])??Y[$e.prop]):(!($e!=null&&$e.isMainPath)&&de.same((C==null?void 0:C.bindMenus)??[],($e==null?void 0:$e.bindMenus)??[]),Y[$e.prop]=(T==null?void 0:T[$e.prop])??Y[$e.prop]))}),Ae.value=(ba=A.cloneDeep(Ae.value))==null?void 0:ba.map($e=>($e==null?void 0:$e.id)===(v==null?void 0:v.id)?{...Y,id:$e==null?void 0:$e.id}:$e)}}if((Ea=C==null?void 0:C.optionUrl)!=null&&Ea.menuSelect){let T="";le==null||le.forEach(ta=>{var xe,fa,Ta,el,qa;T===""&&((Ta=(fa=(xe=ta==null?void 0:ta.optionUrl)==null?void 0:xe.groupSelect)==null?void 0:fa[1])!=null&&Ta.includes("["))&&(T=(qa=(el=ta==null?void 0:ta.optionUrl)==null?void 0:el.groupSelect)==null?void 0:qa[1])});let Y=await yt(C),$e;if(Y==null||Y.forEach(ta=>{var xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl;T===((fa=(xe=C==null?void 0:C.optionUrl)==null?void 0:xe.groupSelect)==null?void 0:fa[1])&&((qa=(el=(Ta=C==null?void 0:C.optionUrl)==null?void 0:Ta.groupSelect)==null?void 0:el[1])!=null&&qa.includes("["))&&((yl=A.cloneDeep(ta))==null?void 0:yl[(Ha=($l=(fl=(pl=C==null?void 0:C.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:fl[1])==null?void 0:$l.replaceAll("[",""))==null?void 0:Ha.replaceAll("]","")])===(C==null?void 0:C.value)&&($e=ta)}),$e){const ta={...v};le==null||le.forEach(xe=>{var fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol;($e!=null&&$e[xe==null?void 0:xe.label]||$e!=null&&$e[(qa=(el=(Ta=(fa=xe==null?void 0:xe.optionUrl)==null?void 0:fa.groupSelect)==null?void 0:Ta[1])==null?void 0:el.replaceAll("[",""))==null?void 0:qa.replaceAll("]","")])&&(($l=(fl=(pl=xe==null?void 0:xe.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:fl[1])!=null&&$l.includes("["))&&(ta[xe.prop]=($e==null?void 0:$e[xe==null?void 0:xe.label])||($e==null?void 0:$e[(ol=(Pa=(yl=(Ha=xe==null?void 0:xe.optionUrl)==null?void 0:Ha.groupSelect)==null?void 0:yl[1])==null?void 0:Pa.replaceAll("[",""))==null?void 0:ol.replaceAll("]","")]))}),Ae.value=(Sa=A.cloneDeep(Ae.value))==null?void 0:Sa.map(xe=>(xe==null?void 0:xe.id)===(v==null?void 0:v.id)?{...ta,id:xe==null?void 0:xe.id}:xe)}}},pu=async d=>{var Xe,_a,Ia,za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa,T;if(!d)return;const v=A.cloneDeep(Ql.value||{});Ql.value=d;const B=Vi(v),z=Vi(Ql.value);if(z&&z!==B&&await nt(z,Ca.value||void 0)){Ua.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),so.forEach($e=>{if(Object.prototype.hasOwnProperty.call(Ql.value||{},$e)||Object.prototype.hasOwnProperty.call(v||{},$e)){const ta=(v==null?void 0:v[$e])??"";Ql.value[$e]=ta,d[$e]=ta}}),La.value=(La.value||[]).map($e=>{if(!($e!=null&&$e.prop)||!so.includes($e.prop))return $e;const ta=(v==null?void 0:v[$e.prop])??"";return{...$e,value:ta,selectValue:ta===""?[]:[ta]}});return}let P=A.cloneDeep(u.itemData);P==null||P.map(Y=>{var $e,ta,xe,fa;return(Y==null?void 0:Y.key)==="header"&&(Array.isArray(($e=Y.contents)==null?void 0:$e[0])?Y.contents=(xe=de.getColumnChild((ta=Y.contents)==null?void 0:ta[0]))==null?void 0:xe.map((Ta,el)=>{var qa,pl,fl,$l,Ha,yl;return((fl=(pl=(qa=La.value)==null?void 0:qa.find(Pa=>(Pa==null?void 0:Pa.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:pl.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray(($l=Object.values(d))==null?void 0:$l[el])?Ta.value=[(Ha=Object.values(d))==null?void 0:Ha[el]]:Ta.value=(yl=Object.values(d))==null?void 0:yl[el],Ta}):Y.contents=(fa=Y.contents)==null?void 0:fa.map((Ta,el)=>{var qa,pl,fl,$l,Ha,yl;return((fl=(pl=(qa=La.value)==null?void 0:qa.find(Pa=>(Pa==null?void 0:Pa.prop)===(Ta==null?void 0:Ta.prop)))==null?void 0:pl.optionUrl)==null?void 0:fl.multiple)===!0&&!Array.isArray(($l=Object.values(d))==null?void 0:$l[el])?Ta.value=[(Ha=Object.values(d))==null?void 0:Ha[el]]:Ta.value=(yl=Object.values(d))==null?void 0:yl[el],Ta})),Y});let C=La.value,le=(Xe=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Xe.contents;if(ar.value||(C=C==null?void 0:C.map(Y=>{var $e;return Y.value=Y.value??(($e=le==null?void 0:le.find((ta,xe)=>(ta==null?void 0:ta.prop)===(Y==null?void 0:Y.name)))==null?void 0:$e.value),Y})),!Br.value)return;let ae=A.cloneDeep(ar.value);(_a=ar.value)!=null&&_a.includes("·")&&(ar.value=(za=(Ia=ar.value)==null?void 0:Ia.split("·"))==null?void 0:za[0]);let q=(Xa=(Ze=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ze.contents)==null?void 0:Xa.find((Y,$e)=>(Y==null?void 0:Y.prop)===ar.value);(xa=La==null?void 0:La.value)==null||xa.forEach(Y=>{var $e,ta,xe,fa,Ta,el,qa,pl,fl;(Y==null?void 0:Y.prop)===(q==null?void 0:q.prop)&&(Y!=null&&Y.endChildMenu)&&(($e=q==null?void 0:q.prop)!=null&&$e.includes(".")&&((xe=(ta=q==null?void 0:q.prop)==null?void 0:ta.split("."))==null?void 0:xe[0])!==((Ta=(fa=Y==null?void 0:Y.prop)==null?void 0:fa.split("."))==null?void 0:Ta[0])?q.endChildMenu=(qa=(el=Y==null?void 0:Y.value)==null?void 0:el.split(" "))==null?void 0:qa[0]:q.endChildMenu=(fl=(pl=Y==null?void 0:Y.endChildMenu)==null?void 0:pl.split(" "))==null?void 0:fl[0])});let be=q!=null&&q.isMainPath&&(q!=null&&q.mainKey)?q==null?void 0:q.value:"",Ee=C,Ge=Z.value;if(Ge!=null&&Ge.find(Y=>(q==null?void 0:q.prop)===(Y==null?void 0:Y.key))&&(Ge=Ge==null?void 0:Ge.filter(Y=>(q==null?void 0:q.prop)!==(Y==null?void 0:Y.key))),Ge!=null&&Ge.find(Y=>ae===(Y==null?void 0:Y.key))&&(Ge=Ge==null?void 0:Ge.filter(Y=>ae!==(Y==null?void 0:Y.key))),(q==null?void 0:q.formType)==="Select"?Ee=Ee==null?void 0:Ee.map(Y=>{var $e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl;return(Y==null?void 0:Y.type)==="Select"&&((($e=Y==null?void 0:Y.allSelectionContents)==null?void 0:$e.length)>0&&(Y.contactValue=d),((q==null?void 0:q.prop)===(Y==null?void 0:Y.prop)||ae===(Y==null?void 0:Y.prop))&&q&&(Array.isArray(q.value)&&((ta=q.value)==null?void 0:ta.length)>0&&((xe=q.value)!=null&&xe.every(wl=>typeof wl=="string"))?(Ge.push({key:Y==null?void 0:Y.prop,value:[(Ta=q.value)==null?void 0:Ta[((fa=q.value)==null?void 0:fa.length)-1]]}),Y.selectValue=(el=Ge==null?void 0:Ge.find(wl=>(wl==null?void 0:wl.key)===(Y==null?void 0:Y.prop)))==null?void 0:el.value):Array.isArray(q.value)&&((qa=q.value)==null?void 0:qa.length)===0?(Ge=[],Y.selectValue=[],d[Y==null?void 0:Y.prop]=""):Array.isArray(Y.value)&&Ge.push({key:Y==null?void 0:Y.prop,value:[(pl=Y.value)==null?void 0:pl[(Y==null?void 0:Y.length)-1]]})),(($l=Y==null?void 0:Y.menus)==null?void 0:$l[((fl=Y==null?void 0:Y.menus)==null?void 0:fl.length)-1])===""&&(q!=null&&q.isMainPath)&&(q!=null&&q.mainKey)&&((Ha=Y==null?void 0:Y.prop)!=null&&Ha.includes(".")&&((Pa=(yl=Y==null?void 0:Y.prop)==null?void 0:yl.split("."))==null?void 0:Pa[0])!==((Ka=(ol=q==null?void 0:q.prop)==null?void 0:ol.split("."))==null?void 0:Ka[0])||(Y.endChildMenu=(tl=be==null?void 0:be.split(" "))==null?void 0:tl[0]))),Y.value=(d==null?void 0:d[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y}):(q==null?void 0:q.formType)!=="Input"&&(Ee=Ee==null?void 0:Ee.map(Y=>(Y.value=(d==null?void 0:d[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y))),Z.value=Ge,Ee!=null&&Ee.some(Y=>(Y==null?void 0:Y.functionName)&&(Y==null?void 0:Y.functionName)!=="")){let Y=await vt([d],F==null?void 0:F.value,"Auto",Ae.value),$e=[];(Za=Ee==null?void 0:Ee.filter(xe=>(xe==null?void 0:xe.functionName)&&(xe==null?void 0:xe.functionName)!==""))==null||Za.forEach(xe=>{var fa;((fa=xe==null?void 0:xe.functionRelatedWords)==null?void 0:fa.length)>0&&($e=[...$e,...xe==null?void 0:xe.functionRelatedWords])}),$e=$e==null?void 0:$e.filter(xe=>(xe==null?void 0:xe[0])!=="@");let ta=[];for(let xe in Y==null?void 0:Y[0])$e!=null&&$e.find(fa=>xe===fa||(xe==null?void 0:xe.includes("."+fa)))&&ta.push(((ye=Y==null?void 0:Y[0])==null?void 0:ye[xe])!=="");(Y==null?void 0:Y.length)>0&&ta.every(xe=>xe)&&(Ee=Ee==null?void 0:Ee.map(xe=>{var fa;return xe.value=((fa=Y==null?void 0:Y[0])==null?void 0:fa[xe==null?void 0:xe.prop])??xe.value,xe})),Ql.value=Y==null?void 0:Y[0]}if(La.value=Ee,q=Object.assign({},q??{},{relatedWords:(ba=(Oa=La==null?void 0:La.value)==null?void 0:Oa.find(Y=>(Y==null?void 0:Y.prop)===(q==null?void 0:q.prop)))==null?void 0:ba.relatedWords}),(q==null?void 0:q.mainKey)&&(q!=null&&q.value)&&(q==null?void 0:q.value)!==""){let Y=q!=null&&q.relatedContents&&((Ea=q==null?void 0:q.relatedContents)==null?void 0:Ea.length)>0?(Sa=q==null?void 0:q.relatedContents)==null?void 0:Sa.find($e=>{var ta,xe,fa,Ta;return($e==null?void 0:$e[(Ta=(ta=q==null?void 0:q.prop)==null?void 0:ta.split("."))==null?void 0:Ta[((fa=(xe=q==null?void 0:q.prop)==null?void 0:xe.split("."))==null?void 0:fa.length)-1]])===(q==null?void 0:q.value)}):await us(q);if(Y&&JSON.stringify(Y)!=="{}"){let $e=Ee;$e=$e==null?void 0:$e.map(xe=>{var fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl,Dl,Cr,Rl,bl,Al,Xl,Nl;if((q==null?void 0:q.prop)===(xe==null?void 0:xe.prop))xe.value=(Y==null?void 0:Y[(fa=xe==null?void 0:xe.words)==null?void 0:fa.join(".")])??(Y==null?void 0:Y[xe==null?void 0:xe.prop])??Y[(pl=(Ta=xe==null?void 0:xe.prop)==null?void 0:Ta.split("."))==null?void 0:pl[((qa=(el=xe==null?void 0:xe.prop)==null?void 0:el.split("."))==null?void 0:qa.length)-1]];else if(q!=null&&q.relatedContents&&((fl=q==null?void 0:q.relatedContents)==null?void 0:fl.length)>0)xe.value=($l=xe==null?void 0:xe.prop)!=null&&$l.includes(".")&&((yl=(Ha=xe==null?void 0:xe.prop)==null?void 0:Ha.split("."))==null?void 0:yl[0])===((ol=(Pa=q==null?void 0:q.prop)==null?void 0:Pa.split("."))==null?void 0:ol[0])?Y[(Dl=(Ka=xe==null?void 0:xe.prop)==null?void 0:Ka.split("."))==null?void 0:Dl[((wl=(tl=xe==null?void 0:xe.prop)==null?void 0:tl.split("."))==null?void 0:wl.length)-1]]:(Y==null?void 0:Y[xe==null?void 0:xe.prop])??(xe==null?void 0:xe.value);else if(de.same((q==null?void 0:q.menus)??[],(xe==null?void 0:xe.menus)??[])&&de.same((q==null?void 0:q.groups)??[],(xe==null?void 0:xe.groups)??[])&&!de.same((q==null?void 0:q.words)??[],(xe==null?void 0:xe.words)??[]))if((Cr=xe==null?void 0:xe.prop)!=null&&Cr.includes(".")&&((bl=(Rl=xe==null?void 0:xe.prop)==null?void 0:Rl.split("."))==null?void 0:bl[0])!==((Xl=(Al=q==null?void 0:q.prop)==null?void 0:Al.split("."))==null?void 0:Xl[0])){let Yl=Object.keys(Y);Yl=Yl==null?void 0:Yl.find(tr=>{var Wl;return tr==null?void 0:tr.includes("."+((Wl=xe==null?void 0:xe.words)==null?void 0:Wl.join(".")))}),xe.value=(Y==null?void 0:Y[Yl])??(Y==null?void 0:Y[xe==null?void 0:xe.prop])??xe.value}else{let Yl=Object.keys(Y);Yl=Yl==null?void 0:Yl.find(tr=>{var Wl;return tr==null?void 0:tr.includes("."+((Wl=xe==null?void 0:xe.words)==null?void 0:Wl.join(".")))}),xe.value=(Y==null?void 0:Y[(Nl=xe==null?void 0:xe.words)==null?void 0:Nl.join(".")])??(Y==null?void 0:Y[Yl])??(Y==null?void 0:Y[xe==null?void 0:xe.prop])??xe.value}else!(xe!=null&&xe.isMainPath)&&de.same((q==null?void 0:q.bindMenus)??[],(xe==null?void 0:xe.bindMenus)??[]),xe.value=(Y==null?void 0:Y[xe==null?void 0:xe.prop])??xe.value;return xe}),La.value=$e;let ta={};(T=La.value)==null||T.forEach(xe=>{ta[xe.prop]=xe==null?void 0:xe.value}),Ql.value=ta}}Br.value=!0,I.value=!1},fu=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",hu=d=>{var C,le;const v=(le=(C=Qe.value)==null?void 0:C.find(ae=>(ae==null?void 0:ae.label)===(d==null?void 0:d.label)))==null?void 0:le.multiple,B=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ae.value.forEach(ae=>{const q=ae==null?void 0:ae[B];v&&Eo.isString(q)&&(ae[B]=[q]),!v&&!Eo.isString(q)&&(ae[B]="")})},It=(d,v)=>{var B;return v==null||v.forEach(z=>{d[z==null?void 0:z.prop]=z==null?void 0:z.value}),d.children&&((B=d.children)==null?void 0:B.length)>0&&(d.children=d.children.map(z=>It(z,v))),d},it=d=>{var B,z,P,C,le,ae;$i("");const v=(B=La.value)==null?void 0:B.reduce((q,be)=>(q[be.name]=be.value,q),{});if(((z=Object.keys(v))==null?void 0:z.length)>0){Ql.value=v,Ca.value="",$a.value=(P=Ae.value)==null?void 0:P.length,ke.value=(C=da.value)==null?void 0:C.filter(be=>(be==null?void 0:be.label)!=="新增");const q=(ae=(le=Be.value)==null?void 0:le.filter(be=>(be==null?void 0:be.label)!=="操作"))==null?void 0:ae.map(be=>{var Ge,Pe,Xe;const Ee=(Pe=(Ge=Qe.value)==null?void 0:Ge.find(_a=>(_a==null?void 0:_a.label)===(be==null?void 0:be.label)))==null?void 0:Pe.multiple;return hu(be),{...be,contents:(be==null?void 0:be.options)??[],optionUrl:be!=null&&be.formMenuSelect&&((Xe=be==null?void 0:be.formMenuSelect)==null?void 0:Xe.length)>0?{groupSelect:be==null?void 0:be.groupSelect,menuSelect:be==null?void 0:be.formMenuSelect,selectRelateType:"",type:be==null?void 0:be.formType,multiple:Ee}:null}});F.value=q==null?void 0:q.map(be=>It(be,[{prop:"type",value:"edit"},{prop:"columnType",value:fu(be==null?void 0:be.formType)||(be==null?void 0:be.columnType)}])),d==="createClick"&&(W.value="新增",Pi(!0))}},vi={START:"开始时间",END:"结束时间",HOURS:"工时"},vu=(d,v)=>Number(A.dayjs(v).diff(A.dayjs(d),"day",!0).toFixed(1)),Ot=d=>{var C;const v=u.itemData,B=(C=v==null?void 0:v.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:C.contents,z=new Map;return B==null||B.forEach((le,ae)=>{const{label:q}=le;z.set(q,ae)}),!z.has(vi.START)||!z.has(vi.END)||!z.has(vi.HOURS)?d:d==null?void 0:d.map(le=>{const ae=le==null?void 0:le[vi.START],q=le==null?void 0:le[vi.END],be=vu(ae,q);return ae&&q&&(le[vi.HOURS]=`${be}天`),le})},Lt=(d,v,B=0)=>{if(B>((v==null?void 0:v.length)??""))return d;const z=v==null?void 0:v[B],P=new Map;for(const le of d){const ae=le[z];P.has(ae)||P.set(ae,[]),P.get(ae)&&P.get(ae).push(le)}const C=[];for(const[le,ae]of P){const[q,...be]=ae,Ee={...q};B+1===((v==null?void 0:v.length)??"")?Ee.children=ae==null?void 0:ae.map(Ge=>(Ge.level=A.cloneDeep(B)+1,Ge)).filter((Ge,Pe)=>Pe!==0):be.length>0&&(Ee.children=Lt(be,v,B+1)),Ee.level=B,C.push(Ee)}return C},Rt=(d,v,B)=>{var P;if(!(v!=null&&v.contents)||((P=v==null?void 0:v.contents)==null?void 0:P.length)===0)return d;let z=[];return z=Lt(d,v==null?void 0:v.contents,0),z},$t=async(d,v)=>{var za,Ze,Xa,xa,Za,ye,Oa,ba,Ea,Sa,T,Y,$e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol,Ka,tl,wl,Dl,Cr,Rl,bl,Al,Xl,Nl,Yl,tr,Wl,yr,Gr,gr,dr,mr,Pt,Ft,jt;const B=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="header");d==null||d.filter(ha=>(ha==null?void 0:ha.key)==="tableIndexColumn")[0];const z=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="childTree")[0];let P=!0;if((Xa=(Ze=(za=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:za.value)==null?void 0:Ze.find(ha=>(ha==null?void 0:ha.value)==="onPamButtonContents"))!=null&&Xa.content){let ha=(ye=(Za=(xa=d==null?void 0:d.find(_l=>(_l==null?void 0:_l.key)==="filterAllType"))==null?void 0:xa.value)==null?void 0:Za.find(_l=>(_l==null?void 0:_l.value)==="onPamButtonContents"))==null?void 0:ye.content;ha=(Oa=ha==null?void 0:ha.split(":"))==null?void 0:Oa[1],ha=(ba=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:ba.split(","),P=!!(ha!=null&&ha.find(_l=>_l==="操作"))}const C=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="page"),le=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="rowButton"),ae=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="extraButton"),q=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableContents"),be=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="bottomButton"),Ee=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableIndex");Qe.value=(Sa=(Ea=d==null?void 0:d.filter(ha=>(ha==null?void 0:ha.key)==="tableToForm"))==null?void 0:Ea[0])==null?void 0:Sa.contents,va.value=(C==null?void 0:C.contents)??!0;let Ge=[];vr.value===""?Ge=B==null?void 0:B[0]:Ge=(B==null?void 0:B.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+vr.value+")"))??(B==null?void 0:B.find(ha=>!(ha!=null&&ha.selectLabel)));let Pe=[];vr.value===""?Pe=Ee==null?void 0:Ee[0]:Pe=(Ee==null?void 0:Ee.find(ha=>(ha==null?void 0:ha.selectLabel)==="("+vr.value+")"))??(Ee==null?void 0:Ee.find(ha=>!(ha!=null&&ha.selectLabel)));let Xe=[],_a=[];if(((T=Ge==null?void 0:Ge.contents)==null?void 0:T.length)>0){let ha=[],_l=Ge==null?void 0:Ge.contents;if(Array.isArray(_l==null?void 0:_l[0])&&((Y=_l==null?void 0:_l[0])!=null&&Y.every(Ga=>!(Ga!=null&&Ga.children)))&&(_l=_l==null?void 0:_l[0]),_l.some(Ga=>Array.isArray(Ga)&&(Ga==null?void 0:Ga.find(Ye=>Ye.children))))ha=($e=de.getGradeColumns(_l,P))==null?void 0:$e[0],ha!=null&&ha.find(Ga=>(Ga==null?void 0:Ga.label)==="操作")||ha.push({label:"操作",prop:"operate",type:"operate"});else{let Ga=_l.some(Ye=>Array.isArray(Ye))?_l==null?void 0:_l[0]:_l;Ga!=null&&Ga.find(Ye=>(Ye==null?void 0:Ye.label)==="操作")||Ga.push({label:"操作",prop:"operate",type:"operate"}),Ga==null||Ga.forEach((Ye,lr)=>{var Or,Fr,Ar,ai,gi,bi,Sr,En,$n,ki,on,Vn,Wt,Kt,Gt,Yt,Jt,Xt,Zt,Qt,es;if((Fr=(Or=Se.value)==null?void 0:Or.split("/"))==null||Fr.forEach(sr=>{var br,Bn,as;sr!==""&&((as=(Bn=(br=sr==null?void 0:sr.split(_+"updateLoading"))==null?void 0:br[0])==null?void 0:Bn.split(_+"loading"))==null||as[0])}),Ye!=null&&Ye.methodContent){let sr=(gi=(ai=(Ar=Ye==null?void 0:Ye.methodContent)==null?void 0:Ar.replace("@","%%#"))==null?void 0:ai.split("%%#"))==null?void 0:gi[1];if(sr=sr==null?void 0:sr.slice(0,(sr==null?void 0:sr.length)-1),sr=de.contentTransArrayToAllNoExtra(sr??"",","),(bi=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("@Button")))!=null&&bi.includes("Prop")&&((Sr=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("Type")))!=null&&Sr.includes("Manual"))){let br=($n=(En=sr==null?void 0:sr.find(Bn=>Bn==null?void 0:Bn.includes("@Button")))==null?void 0:En.split(":"))==null?void 0:$n[1];br=((Vn=(on=(ki=br==null?void 0:br.replaceAll("[",""))==null?void 0:ki.replaceAll("]",""))==null?void 0:on.split(","))==null?void 0:Vn[1])??"算法执行",Xe.push(br)}else if((Wt=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("@Button")))!=null&&Wt.includes("Row")&&((Kt=sr==null?void 0:sr.find(br=>br==null?void 0:br.includes("Type")))!=null&&Kt.includes("Manual"))){let br=(Yt=(Gt=sr==null?void 0:sr.find(Bn=>Bn==null?void 0:Bn.includes("@Button")))==null?void 0:Gt.split(":"))==null?void 0:Yt[1];br=((Zt=(Xt=(Jt=br==null?void 0:br.replaceAll("[",""))==null?void 0:Jt.replaceAll("]",""))==null?void 0:Xt.split(","))==null?void 0:Zt[1])??"算法执行",_a.push(br)}}(Qt=Qe.value)==null||Qt.find(sr=>(sr==null?void 0:sr.prop)===(Ye==null?void 0:Ye.prop));let Hr=((es=Ye==null?void 0:Ye.filter)==null?void 0:es.includes("@EditRead=Read"))??!1;ha.push({label:(Ye==null?void 0:Ye.label)==="操作"?P?"操作":"":(Ye==null?void 0:Ye.label)??"",prop:(Ye==null?void 0:Ye.label)==="操作"?"operate":(Ye==null?void 0:Ye.prop)??"a"+lr,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)??lr,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)??lr===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,multiple:(Ye==null?void 0:Ye.multiple)??!1,multipleLimit:Ye==null?void 0:Ye.multipleLimit,isReadonly:Hr})})}H.value=(ta=be==null?void 0:be[0])==null?void 0:ta.contents;const un=de.getNewColumnChild(ha),Ht=Ga=>Array.isArray(Ga)?Ga.map(Ye=>(Array.isArray(Ye==null?void 0:Ye.children)&&Ye.children.length>0?(Ye.sortable=!1,Ht(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)):Ga;Ht(un),await eo(un),r0(te.value,un),F.value=un,Ba.value=un,n.value=(xe=F.value)==null?void 0:xe.map(Ga=>Ga==null?void 0:Ga.label);let dn=(Ta=(fa=de.getAllLeafNodes(F.value))==null?void 0:fa.filter(Ga=>(Ga==null?void 0:Ga.type)!=="operate"))==null?void 0:Ta.map((Ga,Ye)=>({prop:(Ga==null?void 0:Ga.prop)??"a"+Ye,column:Ga.label}));_r.value=dn;let nn=[];vr.value===""?nn=q==null?void 0:q[0]:nn=(q==null?void 0:q.find(Ga=>(Ga==null?void 0:Ga.selectLabel)==="("+vr.value+")"))??(q==null?void 0:q.find(Ga=>!(Ga!=null&&Ga.selectLabel)));let ei=Array.isArray((el=nn==null?void 0:nn.contents)==null?void 0:el[0])&&((qa=nn==null?void 0:nn.contents)!=null&&qa[0].every(Ga=>Array.isArray(Ga)))?(pl=nn==null?void 0:nn.contents)==null?void 0:pl[0]:nn==null?void 0:nn.contents;Pe!=null&&Pe.contents&&((fl=Pe==null?void 0:Pe.contents)==null?void 0:fl.length)!==0&&(ei=($l=A.cloneDeep(ei))==null?void 0:$l.map((Ga,Ye)=>{if(!Array.isArray(Ga)){let lr={};for(let Hr in Ga)Hr!=="id"&&Hr!=="index"&&(lr[Hr]=Ga[Hr]);Ga=Object.values(lr)}return Ga}));const Bu=!!((Ha=F.value)!=null&&Ha.find(Ga=>Ga.prop==="index"));ei=uc(ei,Pe==null?void 0:Pe.contents,Bu);const mi=[];ei==null||ei.forEach((Ga,Ye)=>{var Hr;let lr={};if(Array.isArray(Ga)){let Or=[];Ga==null||Ga.filter(Fr=>!(Fr!=null&&Fr.id)).forEach((Fr,Ar)=>{var ai,gi,bi,Sr,En,$n;if((ai=dn==null?void 0:dn[Ar])!=null&&ai.prop&&!Array.isArray(Fr)){let ki={};ki[dn[Ar].column]=Fr,R!=null&&R.value&&((gi=R==null?void 0:R.value)==null?void 0:gi.length)>0&&((bi=R==null?void 0:R.value)!=null&&bi.find(on=>JSON.stringify(on==null?void 0:on[0])===JSON.stringify(ki)))&&(Or=(Sr=R==null?void 0:R.value)==null?void 0:Sr.find(on=>JSON.stringify(on==null?void 0:on[0])===JSON.stringify(ki))),Or&&Or.length>0?lr[dn[Ar].prop]=Or!=null&&Or.find(on=>{var Vn;return((Vn=Object.keys(on))==null?void 0:Vn[0])===dn[Ar].column})?(En=Or==null?void 0:Or.find(on=>{var Vn;return((Vn=Object.keys(on))==null?void 0:Vn[0])===dn[Ar].column}))==null?void 0:En[dn[Ar].column]:Fr:lr[dn[Ar].prop]=Fr}else Array.isArray(Fr)&&(($n=dn[Ar])!=null&&$n.prop?lr[dn[Ar].prop]=Fr:lr.children=mt(Fr,dn))})}else lr=Ga;if(Array.isArray(Ga)&&Ga.some(Or=>Or==null?void 0:Or.id)){const Or=(Hr=Ga==null?void 0:Ga.find(Fr=>Fr.id))==null?void 0:Hr.id;mi.push(Object.assign(lr,{id:io(Or)}))}else lr.id?mi.push(lr):mi.push(Object.assign(lr,{id:Ye.toString()}))});try{const Ga=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),Ye=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),lr=Ga==null?void 0:Ga.tableId,Hr=Ga==null?void 0:Ga.compIndex;if(lr&&Array.isArray(Ye)&&Ye.length>0&&String(lr)===String(u==null?void 0:u.parentTableId)&&String(Hr)===String(u==null?void 0:u.index)){const Or=new Set(mi.map(Ar=>String(Ar==null?void 0:Ar.id))),Fr=Ye.filter(Ar=>!Or.has(String(Ar)));if(Fr.length>0){const Ar=Ga==null?void 0:Ga.pageKey,ai=Ar!=null&&Ar.startsWith("/")?Ar.substring(1):Ar;((v==null?void 0:v[Ar])||(v==null?void 0:v[ai])||[]).filter(Sr=>{var En,$n;return((En=Sr==null?void 0:Sr.key)==null?void 0:En.type)==="data"&&String(($n=Sr==null?void 0:Sr.key)==null?void 0:$n.tableId)===String(lr)&&Fr.includes(Sr==null?void 0:Sr.id)}).forEach(Sr=>{var En;Or.has(String(Sr==null?void 0:Sr.id))||(mi.push({id:Sr==null?void 0:Sr.id,...((En=Sr==null?void 0:Sr.value)==null?void 0:En.tableData)||{}}),Or.add(String(Sr==null?void 0:Sr.id)))})}}}catch{}let yi=null;try{const Ga=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,Ye=JSON.parse(sessionStorage.getItem(Ga)||"null");Array.isArray(Ye)&&Ye.length>0&&(yi=new Set(Ye.map(lr=>String(lr))))}catch{}const Ut=Array.from(((yl=Na.value)==null?void 0:yl.values())||[]).filter(Ga=>!(!(Ga!=null&&Ga._isOCRRow&&(Ga==null?void 0:Ga._ocrTableId)===(u==null?void 0:u.index))||yi&&yi.has(String(Ga==null?void 0:Ga.id)))),Tu=(Ae.value||[]).map(Ga=>String(Ga==null?void 0:Ga.id)),qt=ui(mi,Tu);if(Ae.value=Rt(qt,z,F.value),Je.value=qt,(Pa=Je.value)==null||Pa.forEach(Ga=>{var Ye;(Ye=Na.value)==null||Ye.set(Ga.id,Ga)}),yi&&yi.size>0)try{const Ga=new Set(Array.from(yi.values()));Ae.value=(Ae.value||[]).filter(Ye=>!Ga.has(String(Ye==null?void 0:Ye.id))),Je.value=(Je.value||[]).filter(Ye=>!Ga.has(String(Ye==null?void 0:Ye.id))),Ga.forEach(Ye=>{var lr,Hr;try{(Hr=(lr=Na.value)==null?void 0:lr.delete)==null||Hr.call(lr,Ye)}catch{}})}catch{}const uo=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ot=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(uo&&Array.isArray(ot)&&ot.length>0&&String(uo==null?void 0:uo.compIndex)===String(u==null?void 0:u.index)){const Ga=new Set((Je.value||[]).map(Ye=>String(Ye==null?void 0:Ye.id)));ot.filter(Ye=>!Ga.has(String(Ye)))}if(Ut.length>0){const Ga=new Set((Ae.value||[]).map(lr=>lr==null?void 0:lr.id)),Ye=Ut.filter(lr=>!Ga.has(lr.id));Ye.length>0&&(Ae.value=[...Ae.value||[],...Ye],Je.value=[...Je.value||[],...Ye],Ye.forEach(lr=>{var Hr;return(Hr=Na.value)==null?void 0:Hr.set(lr.id,lr)}))}}else F.value=[],Be.value=[],Ae.value=[],Je.value=[],Na.value=new Map;if(_a=[...new Set(_a)],_a=_a==null?void 0:_a.map(ha=>({label:ha,type:"methodButton"})),((ol=le==null?void 0:le.contents)==null?void 0:ol.length)>0?He.value=le==null?void 0:le.contents:He.value=[],He.value=[...He.value,..._a],Xe=[...new Set(Xe)],Xe=Xe==null?void 0:Xe.map(ha=>({label:ha,type:"methodButton"})),((Ka=ae==null?void 0:ae.contents)==null?void 0:Ka.length)>0)if((Dl=(wl=(tl=d==null?void 0:d.find(ha=>(ha==null?void 0:ha.key)==="filterAllType"))==null?void 0:tl.value)==null?void 0:wl.find(ha=>(ha==null?void 0:ha.value)==="onButtonContents"))!=null&&Dl.content){let ha=(bl=(Rl=(Cr=d==null?void 0:d.find(_l=>(_l==null?void 0:_l.key)==="filterAllType"))==null?void 0:Cr.value)==null?void 0:Rl.find(_l=>(_l==null?void 0:_l.value)==="onButtonContents"))==null?void 0:bl.content;if(ha=(Al=ha==null?void 0:ha.split(":"))==null?void 0:Al[1],ha=(Xl=ha.slice(1,(ha==null?void 0:ha.length)-1))==null?void 0:Xl.split(","),ke.value=(Nl=ae==null?void 0:ae.contents)==null?void 0:Nl.filter(_l=>ha==null?void 0:ha.find(un=>un===(_l==null?void 0:_l.label))),da.value=(Yl=ae==null?void 0:ae.contents)==null?void 0:Yl.filter(_l=>ha==null?void 0:ha.find(un=>un===(_l==null?void 0:_l.label))),(tr=ae==null?void 0:ae.contents)!=null&&tr.some(_l=>(_l==null?void 0:_l.label)==="OCR识别")&&!((Wl=ke.value)!=null&&Wl.some(_l=>(_l==null?void 0:_l.label)==="OCR识别"))){const _l=(yr=ae==null?void 0:ae.contents)==null?void 0:yr.find(un=>(un==null?void 0:un.label)==="OCR识别");ke.value=[...ke.value,_l],da.value=[...da.value,_l]}K.value=!!(ha!=null&&ha.find(_l=>_l==="搜索")),V.value=!!(ha!=null&&ha.find(_l=>_l==="块状显示"))}else ke.value=ae==null?void 0:ae.contents,da.value=ae==null?void 0:ae.contents;else ke.value=[],da.value=[];ke.value=[...ke.value,...Xe],da.value=[...da.value,...Xe],typeof Se.value=="string"&&Se.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?((Gr=ke.value)!=null&&Gr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(ke.value=[...ke.value||[],{label:"OCR识别"}]),(gr=da.value)!=null&&gr.some(ha=>(ha==null?void 0:ha.label)==="OCR识别")||(da.value=[...da.value||[],{label:"OCR识别"}])):(ke.value=(ke.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别"),da.value=(da.value||[]).filter(ha=>(ha==null?void 0:ha.label)!=="OCR识别")),(dr=ke.value)!=null&&dr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(ke.value=[...ke.value||[],{label:"切换视图"}]),(mr=da.value)!=null&&mr.some(ha=>(ha==null?void 0:ha.label)==="切换视图")||(da.value=[...da.value||[],{label:"切换视图"}]),$a.value=((Pt=Ae==null?void 0:Ae.value)==null?void 0:Pt.length)??0,Ot(Ae.value),Ir.value=Ae.value,Ll.value&&(F.value=(jt=(Ft=Be.value)==null?void 0:Ft.filter(ha=>(ha==null?void 0:ha.label)!=="操作"))==null?void 0:jt.map(ha=>{var _l;return{...ha,type:"edit",optionUrl:ha!=null&&ha.formMenuSelect&&((_l=ha==null?void 0:ha.formMenuSelect)==null?void 0:_l.length)>0?{groupSelect:ha==null?void 0:ha.groupSelect,menuSelect:ha==null?void 0:ha.formMenuSelect,selectRelateType:"",type:ha==null?void 0:ha.formType}:null}}),it())};e.watch(()=>[u.itemData,vr.value,tn.value,mn.value,R==null?void 0:R.value],async()=>{var d,v,B,z,P,C;if((d=u==null?void 0:u.itemData)!=null&&d.find(le=>(le==null?void 0:le.key)==="columnPath")&&!((v=J.value)!=null&&v.find(le=>{var ae,q;return(le==null?void 0:le.key)===((q=(ae=u==null?void 0:u.itemData)==null?void 0:ae.find(be=>(be==null?void 0:be.key)==="columnPath"))==null?void 0:q.contents)}))){let le=J.value,ae={key:(z=(B=u==null?void 0:u.itemData)==null?void 0:B.find(q=>(q==null?void 0:q.key)==="columnPath"))==null?void 0:z.contents,value:(C=(P=u==null?void 0:u.itemData)==null?void 0:P.find(q=>(q==null?void 0:q.key)==="columnUsingPath"))==null?void 0:C.contents};le!=null&&le.find(q=>(q==null?void 0:q.key)===(ae==null?void 0:ae.key))?le=le==null?void 0:le.map(q=>((q==null?void 0:q.key)===(ae==null?void 0:ae.key)&&(q.value=ae.value),q)):le.push(ae),ca.setTableViewContents(le)}await $t(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&($i(d==null?void 0:d.form),W.value=d==null?void 0:d.dialogTitle,qe.value=!0,Te.value=!0)},{immediate:!0,deep:!0});const mu=()=>{var d;(d=k.value)!=null&&d.includes("read")&&(Ll.value=!Ll.value)},yu=()=>{xr.value=!xr.value};e.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var v;k.value=d,(d==null?void 0:d.length)===0?Ll.value=!1:(d!=null&&d.includes("read")||(Ll.value=!0),d!=null&&d.includes("edit")||(Ll.value=!1)),M.value=((v=u==null?void 0:u.config)==null?void 0:v.showIndex)||Ll.value},{immediate:!0}),e.watch(()=>Ll.value,d=>{var v;d?(it("viewChange"),ca.setCacheUpdatingData(null)):(ke.value=da.value,F.value=Ba.value,j.value&&(ca.setTableLoading(u==null?void 0:u.index),Me("change",j.value))),M.value=d||((v=u==null?void 0:u.config)==null?void 0:v.showIndex),Sl.value=[]},{immediate:!0}),e.watch(()=>{var d;return(d=yn.value)==null?void 0:d.length},d=>{d===0&&(me.currentPage=1)}),e.watch(()=>u==null?void 0:u.compNames,d=>{f.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),e.ref(!1);const gu=(d,v)=>{var B;it("createClick"),v===me.pageSize&&(me.currentPage=Math.ceil(((B=Ae.value)==null?void 0:B.length)/me.pageSize))},bu=async(d,v,B)=>{var P,C,le,ae,q;const z=(v==null?void 0:v.property)??(v==null?void 0:v.prop);if(z&&so.includes(z)&&B!==void 0&&B!==null&&String(B).trim()!==""){const be=String(B).trim();if(await nt(be,d==null?void 0:d.id)){Ua.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Ge=(P=Ae.value)==null?void 0:P.findIndex(Xe=>(Xe==null?void 0:Xe.id)===(d==null?void 0:d.id)),Pe=Ge!==-1?(le=(C=Ae.value)==null?void 0:C[Ge])==null?void 0:le[z]:void 0;z&&(d[z]=Pe??"");return}}if(Ll.value){const be=d==null?void 0:d.id;be!=null&&(h.value.has(be)||h.value.set(be,A.cloneDeep(d)),s.value.add(be));const Ee=(ae=Ae.value)==null?void 0:ae.findIndex(Ge=>(Ge==null?void 0:Ge.id)===(d==null?void 0:d.id));Ee!==-1&&z&&(Ae.value[Ee]={...Ae.value[Ee],[z]:B}),co(B,d,v);return}co(B,d,v),Ql.value=A.cloneDeep(d),Ca.value=d==null?void 0:d.id,$a.value=(q=Ae.value)==null?void 0:q.length,W.value=d!=null&&d._isTemp?"新增":"编辑",Pi(!1)},ku=async()=>{var d,v;try{const B=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const P=z.split("_")[1];P&&(B.push(`content_${P}`),B.push(`struct_${P}`))}})),B.length===0&&(u!=null&&u.itemData)){const z=(v=(d=u.itemData)==null?void 0:d.find(P=>(P==null?void 0:P.key)==="contentTableId"))==null?void 0:v.contents;z&&(B.push(`content_${z}`),B.push(`struct_${z}`))}return B}catch(B){return console.error("获取 tableNames 失败:",B),[]}},xu=async(d,v,B)=>{var C,le;if(!B||typeof B!="string"||B.trim()===""){const ae=(v==null?void 0:v.property)??(v==null?void 0:v.prop),q=`${d==null?void 0:d.id}:${ae}`;p.value.delete(q),g.value.set(q,!1);return}const z=(v==null?void 0:v.property)??(v==null?void 0:v.prop),P=`${d==null?void 0:d.id}:${z}`;g.value.set(P,!0);try{const ae=await ku();if(ae.length===0){console.warn("未找到同名表,跳过全局搜索"),p.value.delete(P),g.value.set(P,!1);return}const q=parseInt((C=hl.value)==null?void 0:C.plat_id);if(!q){console.warn("platId 无效,跳过全局搜索"),p.value.delete(P),g.value.set(P,!1);return}const be=await A.getAllTables({platId:q,tableNames:ae??[]}),Ee=((le=be==null?void 0:be.data)==null?void 0:le.result)||[],Ge=[],Pe=[];for(let Xe=0;Xe<Ee.length;Xe+=2)Xe+1<Ee.length&&Pe.push([Ee[Xe],Ee[Xe+1]]);Pe.forEach(([Xe,_a])=>{var Za;if(!Array.isArray(Xe)||Xe.length===0||!Array.isArray(_a)||_a.length===0)return;const Ia=_a[0];let za=((Za=Ia==null?void 0:Ia.结构)==null?void 0:Za.contents)??[];if(!Array.isArray(za)||za.length===0)return;let Ze=A.cloneDeep(za);if(Array.isArray(Ze==null?void 0:Ze[0])&&(Ze=de.getColumnChild(Ze[0])),!Array.isArray(Ze)||Ze.length===0||!Ze.some(ye=>(ye==null?void 0:ye.prop)===z))return;[...Xe].sort((ye,Oa)=>{const ba=Number((ye==null?void 0:ye.update_time)??0);return Number((Oa==null?void 0:Oa.update_time)??0)-ba}).slice(0,20).forEach(ye=>{const Oa=ye[z];if(Oa!=null){const ba=String(Oa);ba.toLowerCase().includes(B.toLowerCase())&&Ge.findIndex(Sa=>{var T;return ye.id&&((T=Sa.rowData)==null?void 0:T.id)===ye.id?!0:Sa.label===ba})===-1&&Ge.push({label:ba,rowData:A.cloneDeep(ye),sourceTable:(Ia==null?void 0:Ia.source_table)||""})}})}),p.value.set(P,Ge)}catch(ae){console.error("全局搜索建议失败:",ae),p.value.delete(P)}finally{g.value.set(P,!1)}},wu=(d,v,B)=>{if(!Ll.value)return;const z=(v==null?void 0:v.property)??(v==null?void 0:v.prop),P=(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)||"";if(P&&P.toUpperCase()!=="INPUT"&&P!=="")return;const C=`${d==null?void 0:d.id}:${z}`;if(m.has(C)&&clearTimeout(m.get(C)),!B||B.trim()===""){p.value.delete(C),g.value.set(C,!1);return}const le=setTimeout(()=>{xu(d,{prop:z,property:z},B),m.delete(C)},300);m.set(C,le)};function _u(d,v){const B=`${d==null?void 0:d.id}:${(v==null?void 0:v.property)??(v==null?void 0:v.prop)}`;return p.value.get(B)||[]}const Su=(d,v,B)=>{var be;if(!B||!B.rowData)return;const z=B.rowData,P=d==null?void 0:d.id,C=(v==null?void 0:v.property)??(v==null?void 0:v.prop);(de.getAllLeafNodes(F.value)||[]).filter(Ee=>(Ee==null?void 0:Ee.type)!=="operate"&&(Ee==null?void 0:Ee.label)!=="操作"&&(Ee==null?void 0:Ee.prop)!=="operate").forEach(Ee=>{const Ge=Ee==null?void 0:Ee.prop;Ge&&z[Ge]!==void 0&&(d[Ge]=z[Ge])}),(be=Ae.value)==null||be.findIndex(Ee=>(Ee==null?void 0:Ee.id)===P),P!=null&&(h.value.has(P)||h.value.set(P,A.cloneDeep(d)),s.value.add(P));const q=`${P}:${C}`;p.value.delete(q),g.value.set(q,!1),co(d[C],d,v)},Kr=d=>{var q,be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa;const{row:v,column:B,item:z,slotData:P}=d;let C=v!=null&&v[B==null?void 0:B.prop]||(v==null?void 0:v[B==null?void 0:B.prop])===0?((be=(q=v==null?void 0:v[B==null?void 0:B.prop])==null?void 0:q[0])==null?void 0:be.contents)??((v==null?void 0:v[B==null?void 0:B.prop])===0?"0":v==null?void 0:v[B==null?void 0:B.prop]):((Ge=(Ee=v==null?void 0:v[z==null?void 0:z.prop])==null?void 0:Ee[0])==null?void 0:Ge.contents)??(v==null?void 0:v[z==null?void 0:z.prop])??((Xe=(Pe=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Pe[0])==null?void 0:Xe.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((za=(Ia=v==null?void 0:v[(_a=z==null?void 0:z.child)==null?void 0:_a.prop])==null?void 0:Ia[0])==null?void 0:za.contents)??(v==null?void 0:v[(Ze=z==null?void 0:z.child)==null?void 0:Ze.prop]),ae=Array.isArray(C)&&!(C!=null&&C.every(xa=>typeof xa=="string"||typeof xa=="number"))?"查看":C;if(ae=Array.isArray(ae)?ae.join(","):ae,(B==null?void 0:B.formType)==="Date")if(!ae||ae===""||ae===null||ae===void 0)ae="";else{const xa=A.dayjs(ae,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ae=xa.isValid()?xa.format("YYYYMMDD"):ae??""}return Array.isArray(B==null?void 0:B.relatedPages)&&((Xa=B==null?void 0:B.relatedPages)==null?void 0:Xa.length)>0&&(ae="详情页"),ae},Eu=d=>{var be,Ee,Ge,Pe,Xe,_a,Ia,za,Ze,Xa;const{row:v,column:B,item:z,slotData:P}=d;let C=v!=null&&v[B==null?void 0:B.prop]?((Ee=(be=v==null?void 0:v[B==null?void 0:B.prop])==null?void 0:be[0])==null?void 0:Ee.contents)??(v==null?void 0:v[B==null?void 0:B.prop]):((Pe=(Ge=v==null?void 0:v[z==null?void 0:z.prop])==null?void 0:Ge[0])==null?void 0:Pe.contents)??(v==null?void 0:v[z==null?void 0:z.prop])??((_a=(Xe=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Xe[0])==null?void 0:_a.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((Ze=(za=v==null?void 0:v[(Ia=z==null?void 0:z.child)==null?void 0:Ia.prop])==null?void 0:za[0])==null?void 0:Ze.contents)??(v==null?void 0:v[(Xa=z==null?void 0:z.child)==null?void 0:Xa.prop]);const ae=Array.isArray(C)&&!(C!=null&&C.every(xa=>typeof xa=="string"||typeof xa=="number")),q=Array.isArray(C)&&(C==null?void 0:C.find(xa=>xa==null?void 0:xa.url));return ae&&q},Cu=d=>{var P,C,le,ae;if(!(d!=null&&d.column))return!1;const v=Se.value==="试验任务/任务管理",B=(u==null?void 0:u.compName)==="任务列表",z=((C=(P=d==null?void 0:d.column)==null?void 0:P.filter)==null?void 0:C.includes("@TextRGBA"))||((ae=(le=d==null?void 0:d.column)==null?void 0:le.filter)==null?void 0:ae.includes("@TextBackRGBA"));return v&&B&&z},Du=(d,v)=>d.find(B=>Object.values(B).some(z=>z===v));return e.watch(()=>ze.value,async d=>{if(d){ue.setContentLoading(!0),await e.nextTick();const v=Du(Ae.value,d==null?void 0:d.data);if(!v)return ue.setContentLoading(!1);await Li(d==null?void 0:d.data,null,v,{data:d==null?void 0:d.data}),ue.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>u==null?void 0:u.cacheNewData,d=>{var v;d&&(Array.isArray(d)?d.forEach(B=>{var z,P,C,le,ae;if(换,String(B==null?void 0:B.compId)===String(u==null?void 0:u.index)&&(B!=null&&B.resId)&&((z=B==null?void 0:B.data)!=null&&z.id)){const q=(P=B==null?void 0:B.data)==null?void 0:P.id,be=B==null?void 0:B.resId;if(Ae.value=(C=Ae.value)==null?void 0:C.map(Ee=>{if((Ee==null?void 0:Ee.id)===q){const Ge={...Ee,id:be};return delete Ge._isOCRRow,delete Ge._ocrTableId,Ge}return Ee}),(ae=(le=Na.value)==null?void 0:le.has)!=null&&ae.call(le,q)){const Ge={...Na.value.get(q)||{},id:be};delete Ge._isOCRRow,delete Ge._ocrTableId,Na.value.delete(q),Na.value.set(be,Ge)}rl(u==null?void 0:u.index,q,be)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(Ae.value=(v=Ae.value)==null?void 0:v.map(B=>{var z;if((B==null?void 0:B.id)===((z=d==null?void 0:d.data)==null?void 0:z.id)){const P={...B,id:d==null?void 0:d.resId};return delete P._isOCRRow,delete P._ocrTableId,P}return B})))},{immediate:!0,deep:!0}),(d,v)=>{var Ze,Xa,xa,Za;const B=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),P=e.resolveComponent("el-switch"),C=e.resolveComponent("el-checkbox"),le=e.resolveComponent("el-radio"),ae=e.resolveComponent("el-radio-group"),q=e.resolveComponent("el-checkbox-group"),be=e.resolveComponent("el-button"),Ee=e.resolveComponent("el-icon"),Ge=e.resolveComponent("el-progress"),Pe=e.resolveComponent("el-alert"),Xe=e.resolveComponent("el-table-column"),_a=e.resolveComponent("el-table"),Ia=e.resolveComponent("el-upload"),za=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",j0,[xn.value?(e.openBlock(),e.createBlock(al.ssTable,{id:"excel-table",pageObj:me,showIndex:M.value,isTree:(Ze=a.compItem)==null?void 0:Ze.isTree,summaryInfo:X,columns:F.value,defaultSort:se,isCardViewport:xr.value,checkedColumns:n.value,key:Rr.value+F.value,tableData:yn.value,isEditViewport:Ll.value,isShowPagination:va.value,isShowEdit:!1,isShowDelete:!1,allowSelect:D.value,onDbClickRow:Dn,extraButton:ke.value,rowButton:He.value,cacheExtraButtons:da.value,isClearSelection:((Xa=Sl.value)==null?void 0:Xa.length)===0,onDoCurrentChange:Ni,onDoSizeChange:Lo,onSortChange:Ro,onContentClick:Li,onRowClick:Yo,onSelectChange:Uo,onCellChange:bu,onCellInput:wu,onSelectSuggest:Su,onChange:co,onPreview:ro,onSubmitEditingTable:Zi,onHandleColEditChange:Ji,onHandleColTypeChange:qr,onClickButton:lt,onAddNewRow:Fo,bottomButton:H.value,allowRowAddOrDelete:Zn.value},e.createSlots({headerButton:e.withCtx(ye=>{var Oa,ba,Ea,Sa;return[a.showHeader?(e.openBlock(),e.createBlock(bf,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(ya)===e.unref(Se),filterValues:Go.value,selectNums:(Oa=Sl.value)==null?void 0:Oa.length,dataNums:(ba=Ae.value)==null?void 0:ba.length,compName:a.compName,isDevMode:a.isDevMode,buttons:ye.buttons,menuFilter:(Sa=(Ea=a.compItem)==null?void 0:Ea.component)==null?void 0:Sa.menuFilter,onButtonClick:v[1]||(v[1]=(T,Y,$e)=>lt(T,Y,{extra:$e})),columns:F.value,onFilter:oo,onGetImportData:Vo,level:a.level,filterShow:K.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var ye,Oa,ba,Ea;return[((ye=Ae.value)==null?void 0:ye.length)>0&&a.allowOperate&&V.value?(e.openBlock(),e.createElementBlock("div",q0,[(Oa=k.value)!=null&&Oa.includes("read")&&((ba=k.value)!=null&&ba.includes("edit"))&&((Ea=He.value)!=null&&Ea.some(Sa=>(Sa==null?void 0:Sa.label)==="编辑"))&&!xr.value&&e.unref(ya)!==e.unref(Se)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:mu},[e.createVNode(B,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:ye,index:Oa})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ba=>gu(ye,Oa)},[e.createVNode(B,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,W0)]),operateCol:e.withCtx(()=>[e.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:uu,onBeforeEnter:du},{reference:e.withCtx(()=>[e.createElementVNode("span",K0,[e.createVNode(B,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",G0,[v[20]||(v[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(P,{"model-value":$.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:v[2]||(v[2]=ye=>ao(ye))},null,8,["model-value"]),v[21]||(v[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(q,{modelValue:n.value,"onUpdate:modelValue":v[3]||(v[3]=ye=>n.value=ye),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:o},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(sn.value,ye=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ye.label},[e.createVNode(C,{value:ye.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:ye.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(ye.label),9,Y0)]),_:2},1032,["value"]),e.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Oa;return[e.createElementVNode("div",J0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Oa=Object.keys(ye))==null?void 0:Oa.filter(ba=>{var Ea;return(Ea=E.value)==null?void 0:Ea.find(Sa=>(Sa==null?void 0:Sa.value)===ba)}),ba=>{var Ea,Sa;return e.openBlock(),e.createElementBlock("div",{key:ba},[L[ba]=="radio"?(e.openBlock(),e.createElementBlock("div",X0,[v[19]||(v[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(ae,{"model-value":ye==null?void 0:ye[ba],onChange:T=>Kn(T,ba,ye)},{default:e.withCtx(()=>{var T,Y;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Y=(T=E.value)==null?void 0:T.find($e=>($e==null?void 0:$e.value)===ba))==null?void 0:Y.options,$e=>(e.openBlock(),e.createBlock(le,{key:$e==null?void 0:$e.value,label:$e==null?void 0:$e.value,value:$e==null?void 0:$e.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($e==null?void 0:$e.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),L[ba]=="switch"?(e.openBlock(),e.createBlock(P,{key:1,"model-value":ye==null?void 0:ye[ba],"active-text":(Sa=(Ea=E.value)==null?void 0:Ea.find(T=>(T==null?void 0:T.value)===ba))==null?void 0:Sa.label,onChange:T=>Kn(T,ba,ye)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",Z0,[e.createVNode(B,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(ye=>{var Oa,ba,Ea,Sa,T,Y,$e,ta,xe,fa,Ta,el,qa,pl,fl,$l,Ha,yl,Pa,ol;return[((Oa=ye==null?void 0:ye.column)==null?void 0:Oa.label)==="证书附件"||((ba=ye==null?void 0:ye.column)==null?void 0:ba.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",Q0,[e.createVNode(B,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Ka=>hi(ye),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Eu(ye)?(e.openBlock(),e.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",e3,e.toDisplayString(Kr(ye)),1)]),default:e.withCtx(()=>{var Ka,tl;return[e.createElementVNode("div",a3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((tl=ye==null?void 0:ye.row)==null?void 0:tl[(Ka=ye==null?void 0:ye.column)==null?void 0:Ka.prop],wl=>(e.openBlock(),e.createElementBlock("div",l3,[e.createElementVNode("div",{class:"prop-url",title:Yn(wl),onClick:Dl=>di(wl)},e.toDisplayString(Yn(wl)),9,r3),e.createElementVNode("div",{class:"prop-download",onClick:Dl=>Wo(wl)}," 下载 ",8,n3)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[Cu(ye)?(e.openBlock(),e.createBlock(Vu,{key:0,value:Kr(ye),columnContent:ye==null?void 0:ye.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(Kr(ye))&&((Sa=(Ea=Kr(ye))==null?void 0:Ea.toString())!=null&&Sa.includes(".txt")||(Y=(T=Kr(ye))==null?void 0:T.toString())!=null&&Y.includes(".cpt")||(ta=($e=Kr(ye))==null?void 0:$e.toString())!=null&&ta.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Kr(ye))&&((fa=(xe=Kr(ye))==null?void 0:xe.toString())!=null&&fa.includes(".txt")||(el=(Ta=Kr(ye))==null?void 0:Ta.toString())!=null&&el.includes(".cpt")||(pl=(qa=Kr(ye))==null?void 0:qa.toString())!=null&&pl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Kr(ye))&&(($l=(fl=Kr(ye))==null?void 0:fl.toString())!=null&&$l.includes(".txt")||(yl=(Ha=Kr(ye))==null?void 0:Ha.toString())!=null&&yl.includes(".cpt")||(ol=(Pa=Kr(ye))==null?void 0:Pa.toString())!=null&&ol.includes(".cyd"))?"pointer":"",marginLeft:(ye==null?void 0:ye.colIndex)===0?`${((ye==null?void 0:ye.level)??0)*20}px`:0}),onClick:Ka=>{var tl;return qn(Kr(ye),((tl=ye==null?void 0:ye.column)==null?void 0:tl.relatedPages)??[])}},e.toDisplayString(Kr(ye)===0?"0":Kr(ye)),13,i3))],64))]}),_:2},[((xa=He.value)==null?void 0:xa.length)>0?{name:"actions",fn:e.withCtx(({item:ye,fIndex:Oa})=>[e.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",H0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Oi(He.value,ye),(ba,Ea)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ea,onClick:e.withModifiers(Sa=>lt(ba==null?void 0:ba.label,ye,{extra:ba}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:ba==null?void 0:ba.textColor}),class:"extra-button-label"},e.toDisplayString(ba==null?void 0:ba.label),5)],8,U0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton","allowRowAddOrDelete"])):e.createCommentVNode("",!0),Ll.value?(e.openBlock(),e.createElementBlock("div",o3,[e.createVNode(be,{id:"themeBorderButton",onClick:Ho},{default:e.withCtx(()=>v[22]||(v[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(be,{class:"ok-button",id:"themeButton",onClick:zi},{default:e.withCtx(()=>v[23]||(v[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(Dr.ssDialog,{title:W.value,visible:Te.value,width:ir.value,onBeforeDestroy:lo,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",t3,[e.createVNode(al.ssForm,{ref_key:"formRef",ref:Ie,rowContents:La.value,showOperator:!1,onChange:pu,isEnableWrap:!1,onFixChangeValue:Ko,onClickTrigger:Gn,isEdit:la.value,onBlurChange:Qi,onCreate:ci,onTagChange:zn},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[qe.value?(e.openBlock(),e.createElementBlock("div",s3,[e.createVNode(be,{onClick:v[4]||(v[4]=ye=>Te.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>v[24]||(v[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(be,{class:"ok-button",onClick:v[5]||(v[5]=ye=>Pi(!0)),id:"themeButton"},{default:e.withCtx(()=>v[25]||(v[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(Dr.ssDialog,{title:W.value,visible:wa.value,width:oa.value,onBeforeDestroy:v[7]||(v[7]=ye=>wa.value=!1)},{default:e.withCtx(()=>[e.createVNode(Af)]),footer:e.withCtx(()=>[e.createElementVNode("div",c3,[e.createVNode(be,{onClick:v[6]||(v[6]=ye=>wa.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>v[26]||(v[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(be,{class:"ok-button",onClick:Jo,id:"themeButton"},{default:e.withCtx(()=>v[27]||(v[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),ee.value?(e.openBlock(),e.createBlock(al.ssFilePreview,{key:2,fileDataList:ua.value,onDestroy:Ri},null,8,["fileDataList"])):e.createCommentVNode("",!0),Ve.value?(e.openBlock(),e.createBlock(Dr.ssDialog,{key:3,visible:Ve.value,onBeforeDestroy:su,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:fe.value,threeData:N.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(Dr.ssDialog,{title:"OCR扫描录入",visible:nl.value,"close-on-click-modal":!1,onBeforeDestroy:El,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[v[38]||(v[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",u3,[e.createElementVNode("div",d3,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ue.value===1}])},v[28]||(v[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),v[31]||(v[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ue.value===2}])},v[29]||(v[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),v[32]||(v[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:Ue.value===3}])},v[30]||(v[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),Ue.value===1?(e.openBlock(),e.createElementBlock("div",p3,[e.createVNode(be,{onClick:t,class:"ocr-action-btn",disabled:ul.value,size:"default"},{default:e.withCtx(()=>v[33]||(v[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(be,{onClick:Xr,class:"ocr-action-btn",disabled:ul.value,size:"default"},{default:e.withCtx(()=>v[34]||(v[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),Ue.value===1?(e.openBlock(),e.createElementBlock("div",f3,[e.createElementVNode("div",h3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ra.value,(ye,Oa)=>{var ba;return e.openBlock(),e.createElementBlock("div",{key:Oa,class:"ocr-file-item"},[e.createElementVNode("div",v3,[ye.raw&&((ba=ye.raw.type)!=null&&ba.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:Ul(ye),alt:"预览",class:"thumbnail-image"},null,8,m3)):(e.openBlock(),e.createElementBlock("div",y3,[e.createVNode(Ee,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:Cl(ye)==="uploading",processing:Cl(ye)==="processing",completed:Cl(ye)==="completed"||Cl(ye)==="uploaded",failed:Cl(ye)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",g3,[v[35]||(v[35]=e.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),e.createElementVNode("circle",{class:e.normalizeClass(["progress-ring-fill",{completed:Cl(ye)==="completed"||Cl(ye)==="uploaded",uploading:Cl(ye)==="uploading",processing:Cl(ye)==="processing",failed:Cl(ye)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:Cl(ye)==="failed"?"#f56c6c":Cl(ye)==="completed"||Cl(ye)==="uploaded"?"#67c23a":"#409eff","stroke-width":Cl(ye)==="completed"||Cl(ye)==="uploaded"||Cl(ye)==="failed"?3:2,"stroke-dasharray":Wr(ye),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,b3)])),Cl(ye)==="completed"||Cl(ye)==="uploaded"?(e.openBlock(),e.createElementBlock("div",k3,[e.createVNode(Ee,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.check_default))]),_:1})])):e.createCommentVNode("",!0),Cl(ye)==="failed"?(e.openBlock(),e.createElementBlock("div",x3,[e.createVNode(Ee,{class:"error-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.close_default))]),_:1})])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"file-delete-btn",onClick:Ea=>nu(Oa)},[e.createVNode(Ee,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.close_default))]),_:1})],8,w3)]),e.createElementVNode("div",_3,e.toDisplayString(ye.name||"文件名123"),1)])}),128))]),Ra.value.length>0?(e.openBlock(),e.createElementBlock("div",S3,[e.createVNode(be,{onClick:ra,class:"ocr-start-recognize-btn",disabled:ul.value||Ra.value.length===0,size:"default"},{default:e.withCtx(()=>v[36]||(v[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),Ue.value===1?(e.openBlock(),e.createElementBlock("div",E3,[e.createVNode(Ge,{percentage:ia.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),Ue.value===2?(e.openBlock(),e.createElementBlock("div",C3,[e.createElementVNode("div",D3,[e.createVNode(Pe,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",B3,[e.createVNode(_a,{data:Le.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(Xe,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ja.value,ye=>(e.openBlock(),e.createBlock(Xe,{key:ye.prop,prop:ye.prop,"min-width":ye.minWidth||230,"class-name":ye.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",T3,[e.createElementVNode("span",null,e.toDisplayString(ye.label),1)])]),default:e.withCtx(({row:Oa,$index:ba})=>{var Ea,Sa,T;return[ye.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:xl(Oa[ye.prop]),fontWeight:500})},e.toDisplayString(Qa(Oa[ye.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[ka.value!==ba?(e.openBlock(),e.createElementBlock("span",N3,e.toDisplayString(Oa[ye.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(il(ye.prop)),{key:1,modelValue:Oa[ye.prop],"onUpdate:modelValue":Y=>Oa[ye.prop]=Y,size:"small",placeholder:"请输入"+ye.label,content:((Ea=Ma(ye.prop))==null?void 0:Ea.contents)??((Sa=Ma(ye.prop))==null?void 0:Sa.options)??[],optionUrl:(T=Ma(ye.prop))==null?void 0:T.optionUrl,onChange:Y=>Wa(ba,ye.prop,Y),onFocus:Y=>_e.value=ye.prop,onBlur:v[8]||(v[8]=Y=>_e.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(Xe,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:ye})=>[ka.value===ye?(e.openBlock(),e.createBlock(Ee,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Oa=>ml(ye),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(B,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Oa=>ml(ye),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),Ue.value===3?(e.openBlock(),e.createElementBlock("div",A3,[e.createVNode(Ee,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.check_default))]),_:1}),v[37]||(v[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Ia,{ref:"ocrUploadRef","file-list":Ra.value,"onUpdate:fileList":v[9]||(v[9]=ye=>Ra.value=ye),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":je,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[Ue.value!==3?(e.openBlock(),e.createElementBlock("div",z3,[e.createVNode(be,{onClick:cn,class:"ocr-start-recognize-btn",disabled:Ue.value===1||ul.value},{default:e.withCtx(()=>v[39]||(v[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(be,{onClick:Sn,class:"ocr-start-recognize-btn",disabled:ul.value},{default:e.withCtx(()=>v[40]||(v[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(Yf,{visible:fi.value,onConfirm:i,onCancel:v[10]||(v[10]=ye=>fi.value=!1)},null,8,["visible"]),e.createVNode(kd,{visible:ll.value,"onUpdate:visible":v[11]||(v[11]=ye=>ll.value=ye),versions:Ne.value},null,8,["visible","versions"]),e.createVNode(od,{visible:Tl.value,"onUpdate:visible":v[12]||(v[12]=ye=>Tl.value=ye),images:Jl.value,"default-image-name":rr.value,"field-meta":ka.value!==null?((Za=Le.value[ka.value])==null?void 0:Za.__ocrFieldMeta)||{}:{},"focused-field-name":_e.value,onClose:v[13]||(v[13]=ye=>Tl.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(Md,{visible:er.value,"onUpdate:visible":v[14]||(v[14]=ye=>er.value=ye),candidates:pr.value,"name-prop":hr.value,"mfr-prop":Hl.value,columns:F.value,onSubmit:wr,onPreviewFile:Qn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode(Pd,{visible:Va.value,"onUpdate:visible":v[15]||(v[15]=ye=>Va.value=ye),ocrPreviewData:Le.value,"onUpdate:ocrPreviewData":v[16]||(v[16]=ye=>Le.value=ye),ocrSelectedFields:ma.value,"onUpdate:ocrSelectedFields":v[17]||(v[17]=ye=>ma.value=ye),ocrPreviewColumns:ja.value,onConfirm:Ja,onFieldChange:v[18]||(v[18]=({rowIndex:ye,prop:Oa,value:ba})=>Wa(ye,Oa,ba))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(Dr.ssDialog,{title:f.title,visible:f.show,width:f.width,onBeforeDestroy:Q},{default:e.withCtx(()=>[e.createElementVNode("div",M3,[e.createVNode(al.ssForm,{rowContents:f==null?void 0:f.contents,formRules:f==null?void 0:f.formRules,showOperator:!1,buttonValue:f.buttonValue,isEdit:la.value,isStartJustify:!1,onOnButtonClick:ge},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(Dr.ssDialog,{title:"",visible:y.show,width:y.width,alignCenter:!0,onBeforeDestroy:S},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",I3,e.toDisplayString(y.title),1),e.createVNode(za,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>v[41]||(v[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",O3,[e.createVNode(za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(Ln.value||"暂无"),1)]),_:1}),e.createElementVNode("div",L3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y==null?void 0:y.buttonValue,ye=>(e.openBlock(),e.createBlock(be,{key:ye==null?void 0:ye.label,style:e.normalizeStyle({background:ye==null?void 0:ye.background,color:ye==null?void 0:ye.color}),onClick:Oa=>G(ye==null?void 0:ye.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ye==null?void 0:ye.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(kf,{columns:y==null?void 0:y.columns,tableData:y==null?void 0:y.tableData},{content:e.withCtx(({row:ye,item:Oa,slotData:ba,scope:Ea,column:Sa,columnProp:T,$index:Y})=>[e.createTextVNode(e.toDisplayString((ye==null?void 0:ye[Sa==null?void 0:Sa.prop])||(ye==null?void 0:ye[Sa==null?void 0:Sa.label])||(ye==null?void 0:ye[Sa==null?void 0:Sa.property])||(ba==null?void 0:ba[Sa==null?void 0:Sa.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"])])}}},Bc=Zl._export_sfc($3,[["__scopeId","data-v-8dd3d056"]]),V3={key:1,class:"static-form-body"},P3=["onClick"],F3={key:1},j3=e.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,o=w=>{switch(w){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},s=e.computed(()=>{var $;const w=($=n.itemData)==null?void 0:$.find(V=>(V==null?void 0:V.key)==="formContent"),b=(w==null?void 0:w.contents)||[];return(n.fields&&n.fields.length>0?n.fields:b).filter(V=>(V==null?void 0:V.label)||(V==null?void 0:V.isHideInForm)).map(V=>{let ne=V==null?void 0:V.value;Array.isArray(ne)&&(ne=ne.map(F=>F==null?"":typeof F=="object"?F.label??F.value??F.name??JSON.stringify(F):String(F)).filter(Boolean).join(",")),ne!=null&&typeof ne=="object"&&(ne=ne.label??ne.value??ne.name??JSON.stringify(ne));const X=V.isHideInForm?"":V.label??"",me=ne==null||ne===""?"-":String(ne),Me=X==="使用状态";return{label:X,value:me,isStatus:Me,tagType:Me?o(me):"",width:V.width??1,field:V}})}),h=e.ref(null),c=e.ref(null),p=e.computed(()=>{const w=Number(n==null?void 0:n.textSize),b=de.rgbaToColor(n==null?void 0:n.textColor),_={},$={},V={},ne={};return!Number.isNaN(w)&&w&&(_.fontSize=`${w}px`,$.fontSize=`${w+1}px`,V.fontSize=`${w}px`,ne.fontSize=`${w}px`),b&&($.color=b,V.color=b,ne.color=b),{item:_,label:$,value:V,empty:ne}}),m=e.ref(""),g=e.ref(""),u=e.ref(!1),D=async w=>{if(w){g.value&&(URL.revokeObjectURL(g.value),g.value="");try{const b=await A.platformDownloadFile({url:w}),_=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});g.value=URL.createObjectURL(_)}catch{g.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,w=>{w&&(m.value=w)},{immediate:!0}),e.watch(m,w=>{D(w)},{immediate:!0});const M=()=>{var w;(w=c.value)==null||w.click()},k=async w=>{var $,V,ne;const b=w.target,_=($=b==null?void 0:b.files)==null?void 0:$[0];if(!_){b.value="";return}u.value=!0;try{const X=new FormData;X.append("file",_);const me=await A.platformUploadFile(X),Me=(ne=(V=me==null?void 0:me.data)==null?void 0:V.result)==null?void 0:ne.url;Me?(m.value=Me,r("update:backGroundImage",Me),D(Me),Ua.ElMessage.success("背景图片上传成功")):Ua.ElMessage.error("背景图片上传失败")}catch{Ua.ElMessage.error("背景图片上传失败")}finally{u.value=!1,b.value=""}},K=e.computed(()=>g.value?{backgroundImage:`url(${g.value})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),I=w=>al.getComponent(w),H=w=>{if(!w)return;const b=w.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},L=(w,b,_)=>{n.disabled||(h.value=b,e.nextTick(()=>{H(_.currentTarget)}))},E=()=>{h.value=null},x=w=>{const b=w!=null&&w.width&&w.width>0?w.width:1,$=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${$}`,maxWidth:$,minWidth:"0",boxSizing:"border-box"}};return(w,b)=>{const _=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(K.value),onClick:b[2]||(b[2]=$=>(n==null?void 0:n.backGround)==="Yes"&&M())},[(n==null?void 0:n.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=e.withModifiers($=>M(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:k},null,544),b[3]||(b[3]=e.createElementVNode("img",{src:al._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),s.value.length?(e.openBlock(),e.createElementBlock("div",V3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,($,V)=>{var ne,X,me,Me,F,te,Z,se,Be;return e.openBlock(),e.createElementBlock("div",{key:V,class:"static-form-item",style:e.normalizeStyle({...x($),...p.value.item}),onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"]))},[$.label&&!((ne=$==null?void 0:$.field)!=null&&ne.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(p.value.label)},e.toDisplayString($.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(p.value.value),onClick:Ve=>{var he;return(he=$.field)!=null&&he.isNoClick?null:L($,V,Ve)}},[h.value===V&&$.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I(((X=$.field)==null?void 0:X.type)??"Input")),{key:0,modelValue:$.field.value,"onUpdate:modelValue":Ve=>$.field.value=Ve,isEdit:!0,disabled:(me=$.field)==null?void 0:me.disabled,content:((Me=$.field)==null?void 0:Me.contents)??[],optionUrl:$.field,originalValue:(F=$.field)==null?void 0:F.value,config:(te=$.field)==null?void 0:te.config,configModel:((Z=$.field)==null?void 0:Z.prop)??((se=$.field)==null?void 0:se.name),selectedTagList:((Be=$.field)==null?void 0:Be.selectValue)??[],onBlur:E,onBlurChange:E},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.isStatus?(e.openBlock(),e.createBlock(_,{key:0,type:$.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",F3,e.toDisplayString($.value??"-"),1))],64))],12,P3)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(p.value.empty)}," 暂无数据 ",4))],4)}}}),Tc=Zl._export_sfc(j3,[["__scopeId","data-v-74b02d73"]]),H3={class:"form-content"},U3={title:"选择标签"},q3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},W3={class:"col-operate-wrap"},K3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},G3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(a,{emit:l}){const n=()=>{c.value=!1,p.value=!1,m.value=[]},r=a;e.computed(()=>{var Ie;const W=(Ie=ea.value)==null?void 0:Ie.split("/");return(W==null?void 0:W.some(we=>(we==null?void 0:we.includes("updateLoading"))||(we==null?void 0:we.includes("loading"))))?!1:Ve.value==="view"});const o=l,s=e.ref(""),h=e.ref([]),c=e.ref(!1),p=e.ref(!1),m=e.ref([]),{getFileExtension:g}=So.useThreeSystem(),u=e.ref(),D=e.ref(!1),M=e.ref(!1),k=A.useUnit(A.pinia),{chooseTitle:K}=A.storeToRefs(k),I=e.ref([]),H=e.ref(),L=e.ref(!1),E=e.ref([]),x=cc(A.pinia),w=Ct(A.pinia),b=e.ref(!1),_=e.ref(),$=e.ref(),V=e.ref(),ne=e.ref(),X=e.ref(),me=A.useLoginState(A.pinia),{loginUserInfo:Me}=A.storeToRefs(me),F=e.ref(),te=e.ref(!0),Z=A.useModelComp(A.pinia),{tableViewContents:se,itemData:Be,isEdit:Ve,routeToChildPath:he,lockingPage:N,homepageBackgroundTableId:ie}=A.storeToRefs(Z),U=e.ref(null),De=e.ref(!1),Oe=e.ref(!1),Fe=A.useMenuState(),{activeMenuPath:ea}=A.storeToRefs(Fe),Ba=de.useOriginalState(A.pinia),{originalPath:ee}=A.storeToRefs(Ba),{compType:ua,hasEditable:ue}=Ys.useRole(),sa=()=>!ue(r.config,{type:ua.FORM});e.computed(()=>ea.value==="设备管理/试验设备"&&r.compName==="设备概要");const Se=async()=>{var Ie,we,wa;const W=ie==null?void 0:ie.value,Te=(Ie=Me==null?void 0:Me.value)==null?void 0:Ie.plat_id;if(!(!W||!Te))try{const oa=await A.getAllTables({platId:parseInt(Te),tableNames:[`content_${W}`,`struct_${W}`],user_unique_id:"0"}),Qe=((wa=(we=oa==null?void 0:oa.data)==null?void 0:we.result)==null?void 0:wa[0])??[],He=String((r==null?void 0:r.index)??""),qe=Qe==null?void 0:Qe.find(fe=>String(fe==null?void 0:fe.relatedForm_id)===He);qe!=null&&qe.backgroundImg_url&&(ne.value=qe.backgroundImg_url)}catch(oa){console.error("获取首页背景图片表数据失败:",oa)}},oe=e.ref([]),ze=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Ke=async W=>{Oe.value=W,await pe("disabled",null,W,!0)},ca=async W=>{await pe("operable",null,W,!0)};e.watch(()=>ea.value,async()=>{h.value=[],m.value=[]},{deep:!0,immediate:!0});const Ya=()=>{e.nextTick(()=>{ve()})},R=W=>{var Te;h.value=(Te=h.value)==null?void 0:Te.map(Ie=>({...Ie,isFormColHidden:!(W!=null&&W.includes(Ie.label))}))};e.onUnmounted(()=>{U.value=null});const j=W=>{o("clickTrigger",W)},J=async W=>{var Te,Ie,we,wa,oa,Qe;if(W===""){let He="";(Te=h.value)==null||Te.forEach(da=>{da!=null&&da.isMain&&(He=da==null?void 0:da.value)});let qe=await de.getItemData(he.value,sessionStorage.getItem("systemKey"),"");He=((Qe=(oa=(wa=(we=(Ie=qe==null?void 0:qe[0])==null?void 0:Ie.compData)==null?void 0:we.find(da=>(da==null?void 0:da.key)==="mainRouters"))==null?void 0:wa.contents)==null?void 0:oa[0])==null?void 0:Qe.routerContent)+ee.value+He;let ke=await de.getItemData(He,sessionStorage.getItem("systemKey"),"");L.value=!0,E.value=ke==null?void 0:ke.filter(da=>(da==null?void 0:da.comp)!=="methodButton"),o("routeUrl",E.value)}},ve=()=>{var Te;const W=(Te=U.value)==null?void 0:Te.$el;W&&Bl.Sortable.create(W,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ie=>{const{oldIndex:we,newIndex:wa}=Ie;if(we===wa)return;const oa=h.value.splice(we,1)[0];h.value.splice(wa,0,oa)}})},pe=async(W,Te,Ie,we=!1)=>{try{Z.setRefreshCurStructure(!1)}catch{Ua.ElMessage.error("编辑处理失败")}},ya=async(W,Te)=>{await pe()},aa=async(W,Te)=>{W&&await pe()},ce=async(W,Te,Ie)=>{await pe(Te,Ie,W,!1)},ga=(W,Te)=>{F.value===Te?te.value=!1:te.value=!0,F.value=Te==null?void 0:Te.changeProp},Ae=async W=>{var Qe;ne.value=W;const Te=r.itemData,Ie=Te==null?void 0:Te.find(He=>(He==null?void 0:He.key)==="backGroundImage");Ie?Ie.contents=W:Te==null||Te.push({key:"backGroundImage",contents:W}),o("change",{key:"backGroundImage",contents:W});const we=ie==null?void 0:ie.value,wa=r==null?void 0:r.index,oa=(Qe=Me==null?void 0:Me.value)==null?void 0:Qe.plat_id;if(!(!we||!oa||!wa||!W))try{await A.pageBatchAddApi({platId:parseInt(oa),changeContents:[{tableName:`content_${we}`,tableContents:[{backgroundImg_url:W,relatedForm_id:String(wa)}]}],user_unique_id:"0"})}catch(He){console.error("保存背景图片记录失败:",He),Ua.ElMessage.error("背景图片记录保存失败")}},Je=async W=>{var Ie,we,wa,oa,Qe,He,qe,fe,ke,da,La,dl,Ol,sl,Fl;let Te=[];if((Ie=W==null?void 0:W.toString())!=null&&Ie.includes(".urdf")){if(W.includes(",")){Ua.ElMessage.error("当前版本仅允许单个urdf预览!");return}m.value=[{url:W,extension:g(W)}],p.value=!0,c.value=!0;return}if((we=W==null?void 0:W.toString())!=null&&we.includes(".stl")||(wa=W==null?void 0:W.toString())!=null&&wa.includes(".STL")||(oa=W==null?void 0:W.toString())!=null&&oa.includes(".obj")||(Qe=W==null?void 0:W.toString())!=null&&Qe.includes(".mtl")){const Vl=((He=W==null?void 0:W.toString())==null?void 0:He.split(",")).map(zl=>({url:zl,extension:g(zl)}));m.value=Vl,p.value=!1,c.value=!0;return}if((qe=W==null?void 0:W.toString())!=null&&qe.includes(".stl")||(fe=W==null?void 0:W.toString())!=null&&fe.includes(".STL")||(ke=W==null?void 0:W.toString())!=null&&ke.includes(".obj")||(da=W==null?void 0:W.toString())!=null&&da.includes(".mtl")){let Fa,Vl=[],zl={};if(Array.isArray(W)?Fa=W:Fa=W==null?void 0:W.split(","),Fa==null||Fa.forEach(Aa=>{Aa.includes(".mtl")?Vl.push(Aa):zl.blob=zl.blob?zl.blob+","+Aa:Aa}),(Vl==null?void 0:Vl.length)>0&&(zl.mtlBlobs=Vl),(dl=(La=Object.values(zl))==null?void 0:La[0])!=null&&dl.includes("http:"))Te.push(zl);else{const Aa=new Blob([zl.blob],{type:"application/octet-stream;charset=UTF-8"});let rl=URL.createObjectURL(Aa),nl="";(Ol=W==null?void 0:W.split("/"))==null||Ol.forEach((ul,Ra)=>{var cl;Ra===((cl=W==null?void 0:W.split("/"))==null?void 0:cl.length)-1&&(nl=ul)}),(sl=zl.blob)!=null&&sl.includes(".stl")&&(nl=(nl==null?void 0:nl.replaceAll(">",""))+".urdf"),H.value=[{name:nl,blobUrl:rl}],M.value=!0}}else{const Fa=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Vl=await Ua.axios.get(W,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Fa.close()}),zl=new Blob([Vl.data],{type:"application/octet-stream;charset=UTF-8"});let Aa=URL.createObjectURL(zl),rl="";(Fl=W==null?void 0:W.split("/"))==null||Fl.forEach((nl,ul)=>{var Ra;ul===((Ra=W==null?void 0:W.split("/"))==null?void 0:Ra.length)-1&&(rl=nl)}),H.value=[{name:rl,blobUrl:Aa}],M.value=!0}(Te==null?void 0:Te.length)>0&&w.setBlobUrls(Te)},Na=()=>{M.value=!1},Ca=W=>{var oa,Qe,He,qe;const Te=(Qe=(oa=al.safeClone(r.itemData))==null?void 0:oa.find(fe=>(fe==null?void 0:fe.key)==="formContent"))==null?void 0:Qe.contents,Ie=al.safeClone(W.content);let we={};Ie&&((He=Object.values(Ie))==null?void 0:He.length)>0&&((qe=Object.values(Ie))==null||qe.forEach((fe,ke)=>{we[Te[ke].key]=fe}));const wa={content:we,index:r==null?void 0:r.index,buttonName:W==null?void 0:W.buttonName};o("change",wa)};e.computed(()=>"http://222.92.178.198:62001");const la=async W=>{var La,dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll,Ne;if(!W)return;(dl=(La=r==null?void 0:r.itemData)==null?void 0:La.find(Ue=>(Ue==null?void 0:Ue.key)==="parentFormPath"))==null||dl.contents;let Te=se.value;(Te==null?void 0:Te.length)>0&&(Te=Te==null?void 0:Te.map(Ue=>{var re,ia,Va,Le;let na=(re=Ue==null?void 0:Ue.key)==null?void 0:re.split("/");return(r==null?void 0:r.compName)===(na==null?void 0:na[0])&&(ia=h.value)!=null&&ia.find(ja=>(ja==null?void 0:ja.prop)===(na==null?void 0:na[1]))&&(Ue.value=(Le=(Va=h.value)==null?void 0:Va.find(ja=>(ja==null?void 0:ja.prop)===(na==null?void 0:na[1])))==null?void 0:Le.value),Ue}),Z.setTableViewContents(Te));const Ie=al.safeClone(r.itemData);let we=Ie==null?void 0:Ie.map(Ue=>{var na;return(Ue==null?void 0:Ue.key)==="formContent"&&((na=Ue.contents)==null||na.map((re,ia)=>{var Va,Le,ja,Ma,il,We,pa,ma,ka,_e,Tl,Jl,rr,er,pr,Gl,Re,jl,fr,Tr,hr;return re.type=(Le=(Va=h.value)==null?void 0:Va.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:Le.type,re.options=re!=null&&re.options?re.options:((il=(Ma=(ja=re==null?void 0:re.key)==null?void 0:ja.split("$"))==null?void 0:Ma[1])==null?void 0:il.length)>0?(ka=(ma=Lu((pa=(We=re==null?void 0:re.key)==null?void 0:We.split("$"))==null?void 0:pa[1]))==null?void 0:ma.split(","))==null?void 0:ka.map(Hl=>({label:Hl,value:Hl})):[],(_e=re==null?void 0:re.key)!=null&&_e.includes("$")&&(re.key=(Jl=(Tl=re==null?void 0:re.key)==null?void 0:Tl.split("$"))==null?void 0:Jl[0]),re.signature=(er=(rr=h.value)==null?void 0:rr.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:er.signature,re.isLoginUser=(Gl=(pr=h.value)==null?void 0:pr.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:Gl.isLoginUser,re.value=(Re=Object.values(W))==null?void 0:Re[ia],re.isFormColHidden=(fr=(jl=h.value)==null?void 0:jl.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:fr.isFormColHidden,re.isHideInForm=(hr=(Tr=h.value)==null?void 0:Tr.find(Hl=>(Hl==null?void 0:Hl.prop)===(re==null?void 0:re.prop)))==null?void 0:hr.isHideInForm,re})),Ue}),wa=h.value,oa=(sl=(Ol=al.safeClone(we))==null?void 0:Ol.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:sl.contents;if(wa=wa==null?void 0:wa.map(Ue=>{var na,re;return(Ue==null?void 0:Ue.type)==="Select"&&((na=Ue==null?void 0:Ue.allSelectionContents)==null?void 0:na.length)>0&&(Ue.contactValue=W),Ue.value=(re=oa==null?void 0:oa.find((ia,Va)=>((ia==null?void 0:ia.id)??Va)===(Ue==null?void 0:Ue.id)))==null?void 0:re.value,Ue}),!te.value){o("contentChange",{contents:we,index:r.index});return}let Qe="",He=(Vl=(Fa=(Fl=al.safeClone(we))==null?void 0:Fl.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:Fa.contents)==null?void 0:Vl.find((Ue,na)=>{var re,ia,Va;return(Ue==null?void 0:Ue.label)===F.value||na.toString()===((Va=(ia=(re=F.value)==null?void 0:re.split("t"))==null?void 0:ia[1])==null?void 0:Va.toString())}),qe=(zl=He==null?void 0:He.optionUrl)==null?void 0:zl.menuSelect,fe=!0;if((nl=(rl=(Aa=al.safeClone(we))==null?void 0:Aa.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:rl.contents)==null||nl.forEach(Ue=>{var na,re,ia,Va,Le,ja;fe&&((ia=(re=(na=Ue==null?void 0:Ue.optionUrl)==null?void 0:na.groupSelect)==null?void 0:re[1])!=null&&ia.includes("["))&&(Qe=(Le=(Va=Ue==null?void 0:Ue.optionUrl)==null?void 0:Va.groupSelect)==null?void 0:Le[1],JSON.stringify(qe)===JSON.stringify((ja=Ue==null?void 0:Ue.optionUrl)==null?void 0:ja.menuSelect)&&(fe=!1))}),(ul=He==null?void 0:He.optionUrl)!=null&&ul.menuSelect&&te.value){let Ue=await yt(He),na,re=(Ra=He==null?void 0:He.optionUrl)==null?void 0:Ra.menuSelect;if(Ue==null||Ue.forEach(ia=>{var Va,Le,ja,Ma,il,We,pa,ma,ka,_e;Qe===((Le=(Va=He==null?void 0:He.optionUrl)==null?void 0:Va.groupSelect)==null?void 0:Le[1])&&((il=(Ma=(ja=He==null?void 0:He.optionUrl)==null?void 0:ja.groupSelect)==null?void 0:Ma[1])!=null&&il.includes("["))&&((_e=al.safeClone(ia))==null?void 0:_e[(ka=(ma=(pa=(We=He==null?void 0:He.optionUrl)==null?void 0:We.groupSelect)==null?void 0:pa[1])==null?void 0:ma.replaceAll("[",""))==null?void 0:ka.replaceAll("]","")])===(He==null?void 0:He.value)&&(na=ia)}),na){let ia=al.safeClone(wa);ia=ia==null?void 0:ia.map(Le=>{var ja,Ma,il,We,pa,ma,ka,_e,Tl,Jl,rr;return(na!=null&&na[Le==null?void 0:Le.label]||na!=null&&na[(We=(il=(Ma=(ja=Le==null?void 0:Le.optionUrl)==null?void 0:ja.groupSelect)==null?void 0:Ma[1])==null?void 0:il.replaceAll("[",""))==null?void 0:We.replaceAll("]","")])&&((ka=(ma=(pa=Le==null?void 0:Le.optionUrl)==null?void 0:pa.groupSelect)==null?void 0:ma[1])!=null&&ka.includes("["))&&re!=null&&re.every(er=>{var pr,Gl;return(Gl=(pr=Le==null?void 0:Le.optionUrl)==null?void 0:pr.menuSelect)==null?void 0:Gl.includes(er)})&&(Le.value=(na==null?void 0:na[Le==null?void 0:Le.label])||(na==null?void 0:na[(rr=(Jl=(Tl=(_e=Le==null?void 0:Le.optionUrl)==null?void 0:_e.groupSelect)==null?void 0:Tl[1])==null?void 0:Jl.replaceAll("[",""))==null?void 0:rr.replaceAll("]","")]),Array.isArray(Le.value)&&Le.value.every(er=>(er==null?void 0:er.url)&&(er==null?void 0:er.name))&&(Le.type="Upload")),Le}),ia=ia==null?void 0:ia.map(Le=>{var ja,Ma,il;return(ja=Le==null?void 0:Le.optionUrl)!=null&&ja.oldMenuSelect&&(Le.optionUrl.menuSelect=(il=(Ma=al.safeClone(Le))==null?void 0:Ma.optionUrl)==null?void 0:il.oldMenuSelect),Le}),h.value=al.safeClone(ia);let Va=al.safeClone(ia);Va=Va==null?void 0:Va.map(Le=>{var ja,Ma,il,We,pa,ma;return(Ma=(ja=Le==null?void 0:Le.optionUrl)==null?void 0:ja.menuSelect)!=null&&Ma.some(ka=>ka==null?void 0:ka.includes("["))&&(Le.optionUrl.oldMenuSelect=(We=(il=al.safeClone(Le))==null?void 0:il.optionUrl)==null?void 0:We.menuSelect,Le.optionUrl.menuSelect=(ma=(pa=Le==null?void 0:Le.optionUrl)==null?void 0:pa.menuSelect)==null?void 0:ma.map(ka=>{var _e,Tl,Jl,rr;if(ka!=null&&ka.includes("[")){let er=(Tl=(_e=ka==null?void 0:ka.replaceAll("[","").replaceAll("]",""))==null?void 0:_e.split(":"))==null?void 0:Tl[1];ka=(rr=(Jl=al.safeClone(ia))==null?void 0:Jl.find(pr=>(pr==null?void 0:pr.label)===er))==null?void 0:rr.value}return ka})),Le}),h.value=Va}else h.value=wa;we=we==null?void 0:we.map(ia=>{var Va;return(ia==null?void 0:ia.key)==="formContent"&&(ia.contents=(Va=ia.contents)==null?void 0:Va.map(Le=>{var ja,Ma,il,We;return Le.value=((Ma=(ja=h.value)==null?void 0:ja.find(pa=>(pa==null?void 0:pa.label)===(Le==null?void 0:Le.key)))==null?void 0:Ma.value)??(Le==null?void 0:Le.value),Le.type=((We=(il=h.value)==null?void 0:il.find(pa=>(pa==null?void 0:pa.prop)===(Le==null?void 0:Le.key)))==null?void 0:We.type)??(Le==null?void 0:Le.type),Le})),ia})}te.value=!1,o("contentChange",{contents:we,index:r.index});let ke=[],da=[];if((ll=al.safeClone((cl=we==null?void 0:we.find(Ue=>(Ue==null?void 0:Ue.key)==="formContent"))==null?void 0:cl.contents))==null||ll.forEach(Ue=>{var na;Array.isArray(Ue==null?void 0:Ue.value)&&((na=Ue==null?void 0:Ue.value)!=null&&na.find(re=>{var ia;return(ia=re==null?void 0:re.url)==null?void 0:ia.includes(".obj")}))&&(da=Ue==null?void 0:Ue.value)}),(da==null?void 0:da.length)>0){const Ue=(Ne=al.safeClone(da))==null?void 0:Ne.filter(na=>{var re;return(re=na==null?void 0:na.url)==null?void 0:re.includes(".obj")});Ue==null||Ue.forEach(na=>{var ia,Va,Le,ja;const re=(ia=da==null?void 0:da.filter(Ma=>{var il;return(Ma==null?void 0:Ma.name)===(na==null?void 0:na.name)&&((il=Ma==null?void 0:Ma.url)==null?void 0:il.includes(".mtl"))}))==null?void 0:ia.map(Ma=>Ma==null?void 0:Ma.url);ke.push({objUrl:na==null?void 0:na.url,mtlUrls:((Va=da==null?void 0:da.filter(Ma=>{var il;return(Ma==null?void 0:Ma.name)===(na==null?void 0:na.name)&&((il=Ma==null?void 0:Ma.url)==null?void 0:il.includes(".mtl"))}))==null?void 0:Va.length)===1?(ja=(Le=da==null?void 0:da.filter(Ma=>{var il;return(Ma==null?void 0:Ma.name)===(na==null?void 0:na.name)&&((il=Ma==null?void 0:Ma.url)==null?void 0:il.includes(".mtl"))}))==null?void 0:Le[0])==null?void 0:ja.url:re})}),w.setObjUrl(ke)}},$a=(W,Te,Ie)=>{let we="";const wa=Te==null?void 0:Te.map(oa=>{var Qe;return(Qe=oa==null?void 0:oa.value)==null?void 0:Qe.pageData});return wa==null||wa.forEach(oa=>{var Qe;(oa==null?void 0:oa.name)===(W==null?void 0:W[0])&&((Qe=oa==null?void 0:oa.compData)==null||Qe.forEach(He=>{var qe;(He==null?void 0:He.key)==="formContent"&&((qe=He==null?void 0:He.contents)==null||qe.forEach(fe=>{var ke;(fe==null?void 0:fe.prop)===(W==null?void 0:W[1])&&(we=(fe==null?void 0:fe.value)===""?de.judgeContents((ke=al.safeClone(fe))==null?void 0:ke.optionUrl,Ie):fe==null?void 0:fe.value)}))}))}),we},va=(W,Te,Ie,we)=>{var He,qe;let wa="",oa="";(He=al.safeClone(Te))==null||He.forEach((fe,ke)=>{fe!=null&&fe.includes("[")?oa=oa+ee.value+W[ke]:oa=oa===""?oa+fe:oa+"/"+fe});let Qe=(qe=we[oa])==null?void 0:qe.map(fe=>{var ke;return(ke=fe==null?void 0:fe.value)==null?void 0:ke.pageData});return Qe==null||Qe.forEach(fe=>{var ke;(fe==null?void 0:fe.name)===(Ie==null?void 0:Ie[0])&&((ke=fe==null?void 0:fe.compData)==null||ke.forEach(da=>{var La;(da==null?void 0:da.key)==="formContent"&&((La=da==null?void 0:da.contents)==null||La.forEach(dl=>{(dl==null?void 0:dl.prop)===(Ie==null?void 0:Ie[1])&&(wa=dl==null?void 0:dl.value)}))}))}),wa};return e.watch(()=>ie==null?void 0:ie.value,async()=>{await Se()},{immediate:!0}),e.watch(()=>r.itemData,async()=>{var dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll,Ne,Ue,na,re,ia,Va,Le,ja,Ma,il,We,pa,ma;const W=(dl=r.itemData)==null?void 0:dl.find(ka=>(ka==null?void 0:ka.key)==="formContent");let Te=(Ol=r.itemData)==null?void 0:Ol.find(ka=>(ka==null?void 0:ka.key)==="backGround");Te&&((sl=Te==null?void 0:Te.contents)==null?void 0:sl.length)>0&&(s.value=((Fa=(Fl=Te==null?void 0:Te.contents)==null?void 0:Fl[0])==null?void 0:Fa.url)??"",console.log(232,s==null?void 0:s.value));const Ie=(Vl=al.safeClone(r.itemData))==null?void 0:Vl.find(ka=>(ka==null?void 0:ka.key)==="formButton"),we=(zl=al.safeClone(r.itemData))==null?void 0:zl.find(ka=>(ka==null?void 0:ka.key)==="formFlex"),wa=(Aa=al.safeClone(r.itemData))==null?void 0:Aa.find(ka=>(ka==null?void 0:ka.key)==="formWrap"),oa=(rl=al.safeClone(r.itemData))==null?void 0:rl.find(ka=>(ka==null?void 0:ka.key)==="enableWrap"),Qe=(nl=al.safeClone(r.itemData))==null?void 0:nl.find(ka=>(ka==null?void 0:ka.key)==="textSize"),He=(ul=al.safeClone(r.itemData))==null?void 0:ul.find(ka=>(ka==null?void 0:ka.key)==="textRGBA"),qe=(Ra=al.safeClone(r.itemData))==null?void 0:Ra.find(ka=>(ka==null?void 0:ka.key)==="backGround"),fe=(cl=al.safeClone(r.itemData))==null?void 0:cl.find(ka=>(ka==null?void 0:ka.key)==="backGroundImage");(wa==null?void 0:wa.contents)==="纵向"?D.value=!1:D.value=!0;const ke=Number(Qe==null?void 0:Qe.contents);_.value=Number.isNaN(ke)?void 0:ke,$.value=He==null?void 0:He.contents,V.value=qe==null?void 0:qe.contents,ne.value=fe==null?void 0:fe.contents;const da=oa==null?void 0:oa.contents;if(da===void 0?b.value=ri.BLOCK:typeof da=="boolean"?b.value=da?ri.ORDINARY:ri.BLOCK:b.value=da,X.value=typeof(we==null?void 0:we.contents)!="boolean"?!(!(we!=null&&we.contents)===""||((ll=we==null?void 0:we.contents)==null?void 0:ll.toUpperCase())==="VERTICAL"):we==null?void 0:we.contents,((Ne=W==null?void 0:W.contents)==null?void 0:Ne.length)>0&&Array.isArray(W==null?void 0:W.contents)){let ka=r.allMapContents;const _e=(na=(Ue=al.safeClone(W))==null?void 0:Ue.contents)==null?void 0:na.map((Re,jl)=>{var Vr,Ir,Rr,vn,tn,mn,nr,vr,jr,hl,ir,Ll,xr;let fr=(Re==null?void 0:Re.label)??(Re==null?void 0:Re.key)??"";Re==null||Re.type;let Tr=(Re==null?void 0:Re.options)??[];if((Vr=Re==null?void 0:Re.key)!=null&&Vr.includes("$")&&(fr=(Ir=al.safeClone(Re==null?void 0:Re.key).split("$"))==null?void 0:Ir[0],((vn=(Rr=al.safeClone(Re==null?void 0:Re.key).split("$"))==null?void 0:Rr[1])==null?void 0:vn.length)>0)){const[Sl,ar]=(mn=(tn=al.safeClone(Re==null?void 0:Re.key).split("$"))==null?void 0:tn[1])==null?void 0:mn.split(/[()]/);(nr=de.FormType.find(Br=>(Br==null?void 0:Br.key)===Sl))==null||nr.value,((vr=ar==null?void 0:ar.split(","))==null?void 0:vr.length)>0&&(Tr=(jr=ar==null?void 0:ar.split(","))==null?void 0:jr.map(Br=>({label:Br,value:Br})))}let hr=Re==null?void 0:Re.options;((hl=Re==null?void 0:Re.optionUrl)==null?void 0:hl.selectRelateType)==="自定义绑定"&&(hr=(Ll=(ir=Re==null?void 0:Re.optionUrl)==null?void 0:ir.defaultSelect)==null?void 0:Ll.map(Sl=>({label:Sl,value:Sl})));let Hl=(Re==null?void 0:Re.menuPath)??[],Lr=(Re==null?void 0:Re.groups)??[],Pl=(Re==null?void 0:Re.columns)??[],Nr=!1,Ur=(Re==null?void 0:Re.isFormColHidden)??!1,wr="",ql=Re!=null&&Re.value?Re.value:(hr==null?void 0:hr.length)>0?(xr=hr==null?void 0:hr[0])==null?void 0:xr.value:(Re==null?void 0:Re.value)??"",ln=!1,_r="Input";return((hr==null?void 0:hr.length)>0||(Hl==null?void 0:Hl.length)>0)&&(_r="Select"),(Array.isArray(wr)&&(wr!=null&&wr.every(Sl=>(Sl==null?void 0:Sl.name)&&(Sl==null?void 0:Sl.url)))||Array.isArray(ql)&&(ql!=null&&ql.every(Sl=>(Sl==null?void 0:Sl.name)&&(Sl==null?void 0:Sl.url))))&&(_r="upload"),Re!=null&&Re.isMainUrl&&(_r="Url"),{label:fr??"",name:fr??"t"+jl,prop:fr??al.safeClone(Re==null?void 0:Re.key),type:(Re==null?void 0:Re.type)??_r,value:(Re==null?void 0:Re.type)==="Date"&&ql===""?new Date:ql,id:(Re==null?void 0:Re.id)??jl,contents:(hr==null?void 0:hr.length)>0?hr:Tr??[],width:(Re==null?void 0:Re.width)??1,isLoginUser:Nr,config:Re==null?void 0:Re.config,optionUrl:(Re==null?void 0:Re.optionUrl)??Re,isFormColHidden:Ur,isHideInForm:(Re==null?void 0:Re.isHideInForm)??!1,signature:ln,isMain:Re==null?void 0:Re.isMain,required:(Re==null?void 0:Re.required)??!1,isMainUrl:Re==null?void 0:Re.isMainUrl,operable:(Re==null?void 0:Re.operable)??!1,disabled:(Re==null?void 0:Re.disabled)??!1,isSync:Re==null?void 0:Re.isSync,menus:Hl,groups:Lr,words:Pl,allSelectionContents:Re==null?void 0:Re.allContents,filterContent:Re==null?void 0:Re.filterContents,isNoClick:(Re==null?void 0:Re.isNoClick)??!1}}),Tl=_e==null?void 0:_e.map(Re=>Re==null?void 0:Re.value);let Jl="";Tl==null||Tl.forEach(Re=>{Re!==""&&Re!==void 0&&(Jl=Jl===""?Re:Jl+"/"+Re)}),x.setSelectArray(Tl),x.setSelectString(Jl);let rr=(re=al.safeClone(_e))==null?void 0:re.map(Re=>(Re!=null&&Re.value&&de.IsJson(Re==null?void 0:Re.value)&&Array.isArray(JSON.parse(Re==null?void 0:Re.value))&&(Re.value=JSON.parse(Re.value)),Re)),er={};rr==null||rr.forEach(Re=>{er[Re.label]=Re==null?void 0:Re.value}),rr=rr==null?void 0:rr.map(Re=>{var jl,fr,Tr,hr,Hl,Lr,Pl,Nr,Ur;if((Re==null?void 0:Re.type)==="Select"&&((jl=Re==null?void 0:Re.allSelectionContents)==null?void 0:jl.length)>0&&(Re.contactValue=er),(Tr=(fr=Re==null?void 0:Re.optionUrl)==null?void 0:fr.menuSelect)!=null&&Tr.some(wr=>wr==null?void 0:wr.includes("["))){let wr="";Re.optionUrl.oldMenuSelect=(Hl=(hr=al.safeClone(Re))==null?void 0:hr.optionUrl)==null?void 0:Hl.menuSelect,Re.optionUrl.menuSelect=(Pl=(Lr=Re==null?void 0:Re.optionUrl)==null?void 0:Lr.menuSelect)==null?void 0:Pl.map(ql=>{var ln,_r,Ql,Vr,Ir,Rr;if(ql!=null&&ql.includes("[")){let vn=(_r=(ln=ql==null?void 0:ql.replaceAll("[","").replaceAll("]",""))==null?void 0:ln.split(":"))==null?void 0:_r[1];wr=$a((Ql=ql==null?void 0:ql.replaceAll("[","").replaceAll("]",""))==null?void 0:Ql.split(":"),ka==null?void 0:ka[ea.value],ka),ql=((Ir=(Vr=al.safeClone(rr))==null?void 0:Vr.find(tn=>(tn==null?void 0:tn.label)===vn))==null?void 0:Ir.value)||$a((Rr=ql==null?void 0:ql.replaceAll("[","").replaceAll("]",""))==null?void 0:Rr.split(":"),ka==null?void 0:ka[ea.value],ka)}return ql}),wr!==""&&Re.value===""&&(Re.value=va(Re.optionUrl.menuSelect,Re.optionUrl.oldMenuSelect,(Nr=Re==null?void 0:Re.optionUrl)==null?void 0:Nr.groupSelect,ka),Array.isArray(Re.value)&&((Ur=Re.value)!=null&&Ur.every(ql=>ql==null?void 0:ql.url))&&(Re.type="UPLOAD"))}return Re}),h.value=rr,Oe.value=((ia=h.value)==null?void 0:ia.every(Re=>Re==null?void 0:Re.disabled))||N.value===ea.value,De.value=(Va=h.value)==null?void 0:Va.every(Re=>Re==null?void 0:Re.operable),oe.value=(Le=h.value)==null?void 0:Le.map(Re=>Re==null?void 0:Re.label);let pr=[],Gl=[];if((ja=al.safeClone(h.value))==null||ja.forEach(Re=>{var jl;Array.isArray(Re==null?void 0:Re.value)&&((jl=Re==null?void 0:Re.value)!=null&&jl.find(fr=>{var Tr;return(Tr=fr==null?void 0:fr.url)==null?void 0:Tr.includes(".obj")}))&&(Gl=Re==null?void 0:Re.value)}),(Gl==null?void 0:Gl.length)>0){const Re=(Ma=al.safeClone(Gl))==null?void 0:Ma.filter(jl=>{var fr;return(fr=jl==null?void 0:jl.url)==null?void 0:fr.includes(".obj")});Re==null||Re.forEach(jl=>{var Tr,hr,Hl,Lr;const fr=(Tr=Gl==null?void 0:Gl.filter(Pl=>{var Nr;return(Pl==null?void 0:Pl.name)===(jl==null?void 0:jl.name)&&((Nr=Pl==null?void 0:Pl.url)==null?void 0:Nr.includes(".mtl"))}))==null?void 0:Tr.map(Pl=>Pl==null?void 0:Pl.url);pr.push({objUrl:jl==null?void 0:jl.url,mtlUrls:((hr=Gl==null?void 0:Gl.filter(Pl=>{var Nr;return(Pl==null?void 0:Pl.name)===(jl==null?void 0:jl.name)&&((Nr=Pl==null?void 0:Pl.url)==null?void 0:Nr.includes(".mtl"))}))==null?void 0:hr.length)===1?(Lr=(Hl=Gl==null?void 0:Gl.filter(Pl=>{var Nr;return(Pl==null?void 0:Pl.name)===(jl==null?void 0:jl.name)&&((Nr=Pl==null?void 0:Pl.url)==null?void 0:Nr.includes(".mtl"))}))==null?void 0:Hl[0])==null?void 0:Lr.url:fr})}),w.setObjUrl(pr)}(il=al.safeClone(h.value))==null||il.forEach(Re=>{var jl,fr,Tr,hr,Hl,Lr,Pl,Nr,Ur,wr,ql,ln,_r;if((fr=(jl=Re==null?void 0:Re.value)==null?void 0:jl.toString())!=null&&fr.includes(".stl")||(hr=(Tr=Re==null?void 0:Re.value)==null?void 0:Tr.toString())!=null&&hr.includes(".STL")||(Lr=(Hl=Re==null?void 0:Re.value)==null?void 0:Hl.toString())!=null&&Lr.includes(".obj")||(Nr=(Pl=Re==null?void 0:Re.value)==null?void 0:Pl.toString())!=null&&Nr.includes(".mtl")||(wr=(Ur=Re==null?void 0:Re.value)==null?void 0:Ur.toString())!=null&&wr.includes(".urdf")){let Ql={},Vr=[],Ir;Array.isArray(Re==null?void 0:Re.value)?Ir=Re==null?void 0:Re.value:Ir=(ql=Re==null?void 0:Re.value)==null?void 0:ql.split(","),Ir==null||Ir.forEach(Rr=>{Rr.includes(".mtl")?Vr.push(Rr):Ql.blob=Ql.blob==="undefined"?Rr:Ql.blob+","+Rr}),(Vr==null?void 0:Vr.length)>0&&(Ql.mtlBlobs=Vr),(_r=(ln=Object.values(Ql))==null?void 0:ln[0])!=null&&_r.includes("http:")}})}else h.value=[];let La=se.value;if((La==null?void 0:La.length)>0&&(La=La==null?void 0:La.map(ka=>{var Tl,Jl,rr,er;let _e=(Tl=ka==null?void 0:ka.key)==null?void 0:Tl.split("/");return(r==null?void 0:r.compName)===(_e==null?void 0:_e[0])&&(Jl=h.value)!=null&&Jl.find(pr=>(pr==null?void 0:pr.prop)===(_e==null?void 0:_e[1]))&&(ka.value=(er=(rr=h.value)==null?void 0:rr.find(pr=>(pr==null?void 0:pr.prop)===(_e==null?void 0:_e[1])))==null?void 0:er.value),ka}),Z.setTableViewContents(La)),r!=null&&r.formRules)u.value=r==null?void 0:r.formRules;else{let ka={};(We=al.safeClone(h).value)==null||We.forEach(_e=>{((_e==null?void 0:_e.isMain)===!0||(_e==null?void 0:_e.required)===!0)&&(ka[(_e==null?void 0:_e.prop)??(_e==null?void 0:_e.name)]=[{required:!0,message:`${(_e==null?void 0:_e.label)||(_e==null?void 0:_e.prop)||(_e==null?void 0:_e.name)}不能为空`}])}),u.value=ka}if(((pa=Ie==null?void 0:Ie.contents)==null?void 0:pa.length)>0){const ka=[];(ma=Ie==null?void 0:Ie.contents)==null||ma.forEach((_e,Tl)=>{(_e==null?void 0:_e.label)!==""&&ka.push({label:(_e==null?void 0:_e.label)??"",id:(_e==null?void 0:_e.id)??Tl,type:(_e==null?void 0:_e.type)??"",background:_e==null?void 0:_e.background})}),I.value=ka}else I.value=[]},{deep:!0,immediate:!0}),e.watch(()=>N.value,W=>{Oe.value=W===ea.value},{immediate:!0}),(W,Te)=>{var He;const Ie=e.resolveComponent("svg-icon"),we=e.resolveComponent("el-switch"),wa=e.resolveComponent("el-checkbox"),oa=e.resolveComponent("el-popover"),Qe=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",H3,[b.value===e.unref(ri).TEXT?(e.openBlock(),e.createBlock(Tc,{key:0,itemData:a.itemData,compName:a.compName,fields:h.value,textSize:_.value,textColor:$.value,backGround:V.value,backGroundImage:ne.value,disabled:Oe.value||sa(),"onUpdate:backGroundImage":Ae,style:e.normalizeStyle({backGroundImage:s.value!==""?`url("${s.value}")`:void 0})},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled","style"])):b.value===e.unref(ri).BLOCK?(e.openBlock(),e.createBlock(Cf,{key:1,items:(He=h.value)==null?void 0:He.map(qe=>({label:qe!=null&&qe.isHideInForm?"":qe==null?void 0:qe.label,value:qe==null?void 0:qe.value,width:(qe==null?void 0:qe.width)??1,field:qe})),textSize:_.value,textColor:$.value,backGround:V.value,backGroundImage:ne.value,disabled:Oe.value||sa(),"onUpdate:backGroundImage":Ae,style:e.normalizeStyle({backGroundImage:s.value!==""?`url("${s.value}")`:void 0})},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled","style"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":b.value===e.unref(ri).ORDINARY})},[e.createVNode(al.ssForm,{rowContents:h.value,formRules:u.value,buttonValue:I.value,isRowFlex:!1,isEnableWrap:!0,textSize:_.value,textColor:$.value,backGround:V.value,backGroundImage:ne.value,onOnButtonClick:Ca,onChange:la,formDisabled:Oe.value||sa(),formLabelsOperable:De.value,isButtonRow:D.value,onPreview:Je,onBlurChange:ga,style:e.normalizeStyle({backGroundImage:s.value!==""?`url("${s.value}")`:void 0}),onHandleColEditChange:ya,onHandleColTypeChange:aa,onRouteUrl:J,onClickTrigger:j,"onUpdate:backGroundImage":Ae},{operateCol:e.withCtx(({renderColumns:qe,formDisabled:fe,formLabelsOperable:ke})=>[e.createVNode(oa,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Ya},{reference:e.withCtx(()=>[e.createElementVNode("span",U3,[e.createVNode(Ie,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",q3,[Te[1]||(Te[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(we,{"model-value":fe,"active-text":"禁用","inactive-text":"",onChange:Ke,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(we,{"model-value":ke,"active-text":"编辑所有标签","inactive-text":"",onChange:ca},null,8,["model-value"]),Te[2]||(Te[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(Qe,{modelValue:oe.value,"onUpdate:modelValue":Te[0]||(Te[0]=da=>oe.value=da),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:U,onChange:R},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(qe,da=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:da.label},[e.createVNode(wa,{value:da.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(da.label),1)]),_:2},1032,["value"]),e.createVNode(oa,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(Ie,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var La;return[e.createElementVNode("div",W3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((La=Object.keys(da))==null?void 0:La.filter(dl=>{var Ol;return(Ol=ze.value)==null?void 0:Ol.find(sl=>(sl==null?void 0:sl.value)===dl)}),dl=>{var Ol,sl;return e.openBlock(),e.createElementBlock("div",{key:dl},[e.createVNode(al._sfc_main$1,{value:da==null?void 0:da[dl],"active-text":(sl=(Ol=ze.value)==null?void 0:Ol.find(Fl=>(Fl==null?void 0:Fl.value)===dl))==null?void 0:sl.label,inactiveText:"",onChange:Fl=>ce(Fl,dl,da)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",K3,[e.createVNode(Ie,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow","style"])],2)),M.value?(e.openBlock(),e.createBlock(al.ssFilePreview,{key:3,fileDataList:H.value,onDestroy:Na},null,8,["fileDataList"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createBlock(Dr.ssDialog,{key:4,visible:c.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:m.value,onGetAnimationData:W.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},xs=Zl._export_sfc(G3,[["__scopeId","data-v-60e34f22"]]),zo=e.ref(0),Nc=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=A.cloneDeep(a))==null?void 0:l.map(r=>(zo.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??zo.value,children:Nc(r==null?void 0:r.children)},r))},Y3=a=>{var n;return(n=A.cloneDeep(a))==null?void 0:n.map(r=>(zo.value++,r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":r==null?void 0:r.prop,width:r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??zo.value,children:Nc(r==null?void 0:r.children)},r))},Ac=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===l)?(n=A.cloneDeep(a))==null?void 0:n.filter(o=>(o==null?void 0:o.id)!==l):(a=a==null?void 0:a.map(r=>(r.children=Ac(r==null?void 0:r.children,l),r)),a)},zc=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=A.cloneDeep(a))==null?void 0:n.map(o=>((o==null?void 0:o.id)===(l==null?void 0:l.id)&&(o=l),o)):(a=a==null?void 0:a.map(r=>(r.children=zc(r==null?void 0:r.children,l),r)),a)},Mc=(a,l)=>{var n;return a!=null&&a.find(r=>{var o;return(r==null?void 0:r.id)===((o=l==null?void 0:l.contents)==null?void 0:o.id)})?(n=A.cloneDeep(a))==null?void 0:n.map(o=>{var s;return(o==null?void 0:o.id)===((s=l==null?void 0:l.contents)==null?void 0:s.id)&&(o=l==null?void 0:l.contents),o}):(a=a==null?void 0:a.map(r=>(r.children=Mc(r==null?void 0:r.children,l),r)),a)},Ic=(a,l)=>{var n;return a!=null&&a.find(r=>(r==null?void 0:r.id)===(l==null?void 0:l.id))?(n=A.cloneDeep(a))==null?void 0:n.map(o=>((o==null?void 0:o.id)===(l==null?void 0:l.id)&&(o!=null&&o.children||(o.children=[]),o.children.push(l.contents)),o)):(a=a==null?void 0:a.map(r=>(r.children=Ic(r==null?void 0:r.children,l),r)),a)},cr=[{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"}],J3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],X3=[{label:"新增",value:"add"}],In=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:X3},{key:"background",label:"按钮背景色",type:"Color"}],On=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:J3},{key:"textColor",label:"按钮颜色",type:"Color"}],Z3={class:"table-header-child"},Q3={class:"table-header-child-main"},eh={class:"table-header-child-content"},ah={class:"table-header-child-content-item"},lh={class:"fix-button"},rh={key:0},nh={class:"form-content"},ih={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(!1),s=e.ref(""),h=de.useTableComp(A.pinia),{tableIndex:c}=A.storeToRefs(h);e.ref(0);const p=e.ref(""),m=e.ref([]),g=e.ref([]),u=E=>{var w;o.value=!0;let x=[];cr==null||cr.forEach(b=>{let _=A.cloneDeep(c.value)+1;h.setTableIndex(_),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:c.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((w=E==null?void 0:E.children)==null?void 0:w.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),p.value=E==null?void 0:E.id,m.value=x,g.value=x},D=E=>{r("fixChange",A.cloneDeep(E))},M=E=>{r("deleteChange",A.cloneDeep(E))},k=E=>{o.value=!0;let x=[];cr==null||cr.forEach(w=>{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),x.push({label:w==null?void 0:w.label,name:w==null?void 0:w.label,type:w.type,value:"",id:c.value,contents:w==null?void 0:w.options})}),s.value=E==null?void 0:E.id,m.value=x,g.value=x},K=E=>{let x=A.cloneDeep(g.value);x=x==null?void 0:x.map(w=>(w.children||(w.value=E==null?void 0:E[w.name]),w)),g.value=x},I=()=>{var x,w;m.value=g.value;let E={};if(p.value!=="")E.id=p.value,(x=m.value)==null||x.forEach(b=>{const _=cr==null?void 0:cr.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),E.id="id"+c.value,(w=m.value)==null||w.forEach(_=>{const $=cr==null?void 0:cr.find(V=>(V==null?void 0:V.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}p.value="",m.value=[],g.value=[]},H=()=>{o.value=!1,p.value="",s.value="",m.value=[],g.value=[]},L=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",E),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(E,x)=>{const w=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Z3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(b,_)=>(e.openBlock(),e.createElementBlock("div",Q3,[e.createElementVNode("div",eh,[e.createElementVNode("div",ah,e.toDisplayString(b.label),1),e.createElementVNode("div",lh,[e.createVNode(w,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>k(b)},null,8,["onClick"]),e.createVNode(w,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>u(b)},null,8,["onClick"]),e.createVNode(w,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>L(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",rh,[e.createVNode(Oc,{tableChildContents:b==null?void 0:b.children,onDeleteChange:M,onFixChange:D},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Dr.ssDialog,{visible:o.value,onBeforeDestroy:H,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",nh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:K},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:H,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:I},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},oh=Zl._export_sfc(ih,[["__scopeId","data-v-e0fef72d"]]),th={class:"table-header-child"},sh={class:"table-header-child-main"},ch={class:"table-header-child-content"},uh={class:"table-header-child-content-item"},dh={class:"fix-button"},ph={key:0},fh={class:"form-content"},hh={class:"dialog-footer"},vh={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(!1),s=e.ref(""),h=de.useTableComp(A.pinia),{tableIndex:c}=A.storeToRefs(h),p=e.ref(""),m=e.ref([]),g=e.ref([]),u=E=>{r("fixChange",A.cloneDeep(E))},D=E=>{var w;o.value=!0;let x=[];cr==null||cr.forEach(b=>{let _=A.cloneDeep(c.value)+1;h.setTableIndex(_),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:c.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((w=E==null?void 0:E.children)==null?void 0:w.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),p.value=E==null?void 0:E.id,m.value=x,g.value=x},M=E=>{o.value=!0;let x=[];cr==null||cr.forEach(w=>{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),x.push({label:w==null?void 0:w.label,name:w==null?void 0:w.label,type:w.type,value:"",id:c.value,contents:w==null?void 0:w.options})}),s.value=E==null?void 0:E.id,m.value=x,g.value=x},k=E=>{let x=A.cloneDeep(g.value);x=x==null?void 0:x.map(w=>(w.children||(w.value=E==null?void 0:E[w.name]),w)),g.value=x},K=()=>{var x,w;m.value=g.value;let E={};if(p.value!=="")E.id=p.value,(x=m.value)==null||x.forEach(b=>{const _=cr==null?void 0:cr.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));_?E[_.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(c.value)+1;h.setTableIndex(b),E.id="idChild"+c.value,(w=m.value)==null||w.forEach(_=>{const $=cr==null?void 0:cr.find(V=>(V==null?void 0:V.label)===(_==null?void 0:_.label));$?E[$.key]=_.value:_!=null&&_.children&&_.children.length>0&&(E.children=_.children)}),o.value=!1,r("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}p.value="",m.value=[],g.value=[]},I=()=>{o.value=!1,p.value="",s.value="",m.value=[],g.value=[]},H=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{r("deleteChange",E),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},L=E=>{r("deleteChange",E)};return(E,x)=>{const w=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",th,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(_,$)=>(e.openBlock(),e.createElementBlock("div",sh,[e.createElementVNode("div",ch,[e.createElementVNode("div",uh,e.toDisplayString(_.label),1),e.createElementVNode("div",dh,[e.createVNode(w,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>M(_)},null,8,["onClick"]),e.createVNode(w,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>D(_)},null,8,["onClick"]),e.createVNode(w,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>H(_)},null,8,["onClick"])])]),_!=null&&_.children&&_.children.length>0?(e.openBlock(),e.createElementBlock("div",ph,[e.createVNode(oh,{tableChildContents:_==null?void 0:_.children,onDeleteChange:L,onFixChange:u},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Dr.ssDialog,{visible:o.value,onBeforeDestroy:I,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",fh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",hh,[e.createVNode(b,{onClick:I,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Oc=Zl._export_sfc(vh,[["__scopeId","data-v-ebd68fa1"]]),mh={class:"table-operate-content"},yh={class:"table-operate-item"},gh={class:"operate-title"},bh={class:"operate-content"},kh={class:"fix-content"},xh={class:"fix-content-label"},wh={class:"fix-button"},_h={key:0},Sh={class:"operate-title"},Eh={class:"operate-content"},Ch={class:"fix-content"},Dh={class:"fix-content-label"},Bh={class:"fix-button"},Th={class:"operate-title"},Nh={class:"operate-content"},Ah={class:"fix-content"},zh={class:"fix-content-label"},Mh={class:"fix-button"},Ih={class:"operate-title"},Oh={class:"operate-content"},Lh={class:"fix-content"},Rh={class:"fix-content-label"},$h={class:"fix-button"},Vh={class:"operate-content"},Ph={style:{display:"flex","justify-content":"space-between"}},Fh={class:"form-content"},jh={class:"dialog-footer"},Hh={class:"form-content"},Uh={class:"dialog-footer"},qh={class:"form-content"},Wh={class:"dialog-footer"},Kh={class:"form-content"},Gh={class:"dialog-footer"},Yh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]),s=e.ref(!1),h=e.ref(!1),c=e.ref([]),p=e.ref(!1),m=e.ref([]),g=e.ref(!1),u=e.ref([]),D=e.ref(""),M=e.ref(""),k=e.ref([]),K=e.ref([]),I=e.ref([]),H=e.ref([]),L=e.ref(!1),E=e.ref([]),x=e.ref([]),w=e.ref(0),b=e.ref([]),_=e.ref([]),$=e.ref([]),V=()=>{L.value=!0;let R=[];In==null||In.forEach(j=>{w.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:(j==null?void 0:j.key)==="background"?"var(--ssComponent-primary-color)":"",id:w.value,contents:j==null?void 0:j.options})}),E.value=R,x.value=R},ne=()=>{var j,J,ve;h.value=!0;let R=[];(ve=(J=(j=de.FormContent)==null?void 0:j.find(pe=>(pe==null?void 0:pe.key)==="Input"))==null?void 0:J.value)==null||ve.forEach(pe=>{w.value++,R.push({label:pe==null?void 0:pe.label,name:(pe==null?void 0:pe.name)||(pe==null?void 0:pe.label),type:pe.type,value:(pe==null?void 0:pe.label)==="类型"?"Input":"",id:w.value,contents:pe==null?void 0:pe.options})}),b.value=R,_.value=R},X=R=>{R||(b.value=_.value)},me=async R=>{var j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca;if((R==null?void 0:R.类型)!==((J=(j=_.value)==null?void 0:j.find(la=>(la==null?void 0:la.label)==="类型"))==null?void 0:J.value)){let la=[],$a=await((ya=(pe=(ve=de.FormContent)==null?void 0:ve.find(va=>(va==null?void 0:va.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:pe.value)==null?void 0:ya.value)?await((Je=(Ae=(ga=de.FormContent)==null?void 0:ga.find(va=>(va==null?void 0:va.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:Ae.value)==null?void 0:Je.value):(ce=(aa=de.FormContent)==null?void 0:aa.find(va=>(va==null?void 0:va.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:ce.value;if($a==null||$a.forEach(va=>{w.value++,la.push({label:va==null?void 0:va.label,name:(va==null?void 0:va.name)||(va==null?void 0:va.label),type:va.type,value:va!=null&&va.属性名?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):(R==null?void 0:R[va.label])??"",id:w.value,contents:va==null?void 0:va.options,prop:(va==null?void 0:va.prop)||(va==null?void 0:va.name)||(va==null?void 0:va.label)})}),R!=null&&R.菜单选项&&((Na=R==null?void 0:R.菜单选项)==null?void 0:Na.length)>0){const va=await de.menuToContentType(R==null?void 0:R.菜单选项);la=la==null?void 0:la.map(W=>((W==null?void 0:W.name)==="组信息选项"&&(W.contents=va),W))}_.value=await de.selectToBase(A.cloneDeep(la)),b.value=await de.selectToBase(A.cloneDeep(la))}else{let la=A.cloneDeep(b.value);if(la=la==null?void 0:la.map($a=>($a.value=R==null?void 0:R[$a.name],$a)),R!=null&&R.菜单选项&&((Ca=R==null?void 0:R.菜单选项)==null?void 0:Ca.length)>0){const $a=await de.menuToContentType(R==null?void 0:R.菜单选项);la=la==null?void 0:la.map(va=>((va==null?void 0:va.name)==="组信息选项"&&(va.contents=$a),va))}la=de.formToOptionsContents(la),_.value=await de.selectToBase(A.cloneDeep(la))}},Me=async R=>{await me(R),b.value=_.value},F=(R,j)=>{if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="selectRelateType"){const J=j==null?void 0:j.optionUrl;return(J==null?void 0:J.selectRelateType)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="menuSelect"){const J=j==null?void 0:j.optionUrl;return(J==null?void 0:J.menuSelect)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="groupSelect"){const J=j==null?void 0:j.optionUrl;return(J==null?void 0:J.groupSelect)||j[R.key]}if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="originalContent")return(j==null?void 0:j.value)||j[R.key];if((j==null?void 0:j.type)=="Select"&&(R==null?void 0:R.key)==="multiple"){const J=j[R.key];return Xs(J)?J:R.default}return(R==null?void 0:R.label)==="类型"&&j[R.key]===""?"Input":(R==null?void 0:R.key)==="isFormColHidden"&&!j[R.key]?!1:j[R.key]},te=async R=>{var ve,pe,ya,aa,ce,ga,Ae,Je,Na;h.value=!0;let j=[];const J=await((ya=(pe=(ve=de.FormContent)==null?void 0:ve.find(Ca=>(Ca==null?void 0:Ca.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:pe.value)==null?void 0:ya.value)?await((Je=(Ae=(ga=de.FormContent)==null?void 0:ga.find(Ca=>(Ca==null?void 0:Ca.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:Ae.value)==null?void 0:Je.value):(ce=(aa=de.FormContent)==null?void 0:aa.find(Ca=>(Ca==null?void 0:Ca.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:ce.value;if(J==null||J.forEach(Ca=>{w.value++,j.push({label:Ca==null?void 0:Ca.label,name:(Ca==null?void 0:Ca.name)||(Ca==null?void 0:Ca.label),type:Ca.type,value:(Ca==null?void 0:Ca.label)==="属性名"?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):F(Ca,R),id:w.value,contents:Ca==null?void 0:Ca.options})}),R!=null&&R.menuSelect&&((Na=R==null?void 0:R.menuSelect)==null?void 0:Na.length)>0){const Ca=await de.menuToContentType(R==null?void 0:R.menuSelect);j=j==null?void 0:j.map(la=>((la==null?void 0:la.name)==="组信息选项"&&(la.contents=Ca),la))}D.value=R==null?void 0:R.id,b.value=await de.selectToBase(de.formToOptionsContents(j)),_.value=await de.selectToBase(de.formToOptionsContents(j))},Z=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;$.value=(j=A.cloneDeep($.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="tableToForm"&&(ve.contents=$.value),ve))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},se=()=>{h.value=!1,b.value=[],D.value=""},Be=async()=>{var ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca;b.value=_.value;let R={};D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value);let j=await((ya=(pe=(ve=de.FormContent)==null?void 0:ve.find(la=>{var $a,va;return(la==null?void 0:la.key)===(((va=($a=b.value)==null?void 0:$a.find(W=>(W==null?void 0:W.label)==="类型"))==null?void 0:va.value)??"label")}))==null?void 0:pe.value)==null?void 0:ya.value)??((ce=(aa=de.FormContent)==null?void 0:aa.find(la=>{var $a,va;return(la==null?void 0:la.key)===(((va=($a=b.value)==null?void 0:$a.find(W=>(W==null?void 0:W.label)==="类型"))==null?void 0:va.value)??"label")}))==null?void 0:ce.value);if((ga=b.value)==null||ga.forEach(la=>{const $a=j==null?void 0:j.find(va=>(va==null?void 0:va.label)===(la==null?void 0:la.label));$a&&(R[$a.key]=la.value)}),R.name=R.label,(Ae=$.value)!=null&&Ae.find(la=>la.id===R.id))$.value=(Je=$.value)==null?void 0:Je.map(la=>(la.id===R.id&&(la=R),la));else{let la=A.cloneDeep($.value);$.value||($.value=[]),la.push(R),$.value=la}$.value=$.value.map(({id:la,...$a})=>$a),h.value=!1,D.value="";let J=A.cloneDeep(n.originalItemContents);(Na=A.cloneDeep(n.originalItemContents))!=null&&Na.find(la=>(la==null?void 0:la.key)==="tableToForm")?J=(Ca=A.cloneDeep(n.originalItemContents))==null?void 0:Ca.map(la=>((la==null?void 0:la.key)==="tableToForm"&&(la.contents=$.value),la)):J.push({key:"tableToForm",contents:$.value}),r("change",J)},Ve=R=>{L.value=!0;let j=[];In==null||In.forEach(J=>{w.value++,j.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:R[J.key],id:w.value,contents:J==null?void 0:J.options})}),D.value=R==null?void 0:R.id,E.value=j,x.value=j};e.watch(()=>g.value,()=>{var j,J;let R=A.cloneDeep(n.originalItemContents);(j=A.cloneDeep(n.originalItemContents))!=null&&j.find(ve=>(ve==null?void 0:ve.key)==="page")?R=(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="page"&&(ve.contents=g.value),ve)):R.push({key:"page",contents:g.value}),r("change",R)},{deep:!0});const he=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;K.value=(j=A.cloneDeep(K.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="extraButton"&&(ve.contents=K.value),ve))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},N=()=>{var J,ve,pe,ya,aa;E.value=x.value;let R={};if(D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value),(J=E.value)==null||J.forEach(ce=>{const ga=In==null?void 0:In.find(Ae=>(Ae==null?void 0:Ae.label)===(ce==null?void 0:ce.label));ga?R[ga.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(R.children=ce.children)}),(ve=K.value)!=null&&ve.find(ce=>ce.id===R.id))K.value=(pe=K.value)==null?void 0:pe.map(ce=>(ce.id===R.id&&(ce=R),ce));else{let ce=A.cloneDeep(K.value)??[];ce.push(R),K.value=ce}L.value=!1,D.value="";let j=A.cloneDeep(n.originalItemContents);(ya=A.cloneDeep(n.originalItemContents))!=null&&ya.find(ce=>(ce==null?void 0:ce.key)==="extraButton")?j=(aa=A.cloneDeep(n.originalItemContents))==null?void 0:aa.map(ce=>((ce==null?void 0:ce.key)==="extraButton"&&(ce.contents=K.value),ce)):j.push({key:"extraButton",contents:K.value}),r("change",j)},ie=R=>{let j=A.cloneDeep(x.value);j=j==null?void 0:j.map(J=>(J.children||(J.value=R==null?void 0:R[J.name]),J)),x.value=j},U=()=>{L.value=!1,E.value=[],D.value=""},De=R=>{p.value=!0;let j=[];On==null||On.forEach(J=>{w.value++,j.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:R[J.key],id:w.value,contents:J==null?void 0:J.options})}),D.value=R==null?void 0:R.id,I.value=j,H.value=j},Oe=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;k.value=(j=A.cloneDeep(k.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>((ve==null?void 0:ve.key)==="rowButton"&&(ve.contents=k.value),ve))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Fe=()=>{s.value=!0;let R=[];cr==null||cr.forEach(j=>{w.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:w.value,contents:j==null?void 0:j.options})}),m.value=R,u.value=R},ea=()=>{p.value=!0;let R=[];On==null||On.forEach(j=>{w.value++,R.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:"",id:w.value,contents:j==null?void 0:j.options})}),I.value=R,H.value=R},Ba=R=>{let j=A.cloneDeep(H.value);j=j==null?void 0:j.map(J=>(J.children||(J.value=R==null?void 0:R[J.name]),J)),H.value=j},ee=()=>{var J,ve,pe,ya,aa;I.value=H.value;let R={};if(D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value),(J=I.value)==null||J.forEach(ce=>{const ga=On==null?void 0:On.find(Ae=>(Ae==null?void 0:Ae.label)===(ce==null?void 0:ce.label));ga?R[ga.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(R.children=ce.children)}),(ve=k.value)!=null&&ve.find(ce=>ce.id===R.id))k.value=(pe=k.value)==null?void 0:pe.map(ce=>(ce.id===R.id&&(ce=R),ce));else{let ce=A.cloneDeep(k.value);ce.push(R),k.value=ce}p.value=!1,D.value="";let j=A.cloneDeep(n.originalItemContents);(ya=A.cloneDeep(n.originalItemContents))!=null&&ya.find(ce=>(ce==null?void 0:ce.key)==="rowButton")?j=(aa=A.cloneDeep(n.originalItemContents))==null?void 0:aa.map(ce=>((ce==null?void 0:ce.key)==="rowButton"&&(ce.contents=k.value),ce)):j.push({key:"rowButton",contents:k.value}),r("change",j)},ua=()=>{p.value=!1,D.value="",H.value=[],I.value=[]},ue=R=>{s.value=!0;let j=[];cr==null||cr.forEach(J=>{w.value++,j.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:"",id:w.value,contents:J==null?void 0:J.options})}),m.value=j,M.value=R==null?void 0:R.id,u.value=j},sa=R=>{var j;c.value=Ac(A.cloneDeep(c.value),R==null?void 0:R.id),r("change",(j=A.cloneDeep(n.originalItemContents))==null?void 0:j.map(J=>{var ve;return(J==null?void 0:J.key)==="header"&&(J.contents=(ve=c.value)!=null&&ve.some(pe=>pe==null?void 0:pe.children)?[c.value]:c.value),J}))},Se=R=>{var J,ve,pe;R.type==="fix"?R.id!==""?c.value=Mc(c.value,R):c.value=zc(c.value,R==null?void 0:R.contents):c.value=Ic(c.value,R),c.value=(J=c.value)!=null&&J.some(ya=>ya==null?void 0:ya.children)?[c.value]:c.value,D.value="";let j=A.cloneDeep(n.originalItemContents);(ve=A.cloneDeep(n.originalItemContents))!=null&&ve.find(ya=>(ya==null?void 0:ya.key)==="header")?j=(pe=A.cloneDeep(n.originalItemContents))==null?void 0:pe.map(ya=>((ya==null?void 0:ya.key)==="header"&&(ya.contents=c.value),ya)):j.push({key:"header",contents:c.value}),r("change",j)},oe=R=>{var J;s.value=!0;let j=[];cr==null||cr.forEach(ve=>{w.value++,j.push({label:ve==null?void 0:ve.label,name:ve==null?void 0:ve.label,type:ve.type,value:R[ve.key],id:w.value,contents:ve==null?void 0:ve.options})}),R!=null&&R.children&&((J=R==null?void 0:R.children)==null?void 0:J.length)>0&&j.push({children:R==null?void 0:R.children,isFormColHidden:!0}),D.value=R==null?void 0:R.id,M.value="",m.value=j,u.value=j},ze=R=>{let j=A.cloneDeep(u.value);j=j==null?void 0:j.map(J=>(J.children||(J.value=R==null?void 0:R[J.name]),J)),u.value=j},Ke=()=>{s.value=!1,D.value="",M.value="",u.value=[]},ca=()=>{var J,ve,pe,ya,aa,ce;m.value=u.value;let R={};if(D.value!==""?R.id=D.value:(w.value++,R.id="id"+w.value),(J=m.value)==null||J.forEach(ga=>{const Ae=cr==null?void 0:cr.find(Je=>(Je==null?void 0:Je.label)===(ga==null?void 0:ga.label));Ae?R[Ae.key]=ga.value:ga!=null&&ga.children&&ga.children.length>0&&(R.children=ga.children)}),(ve=c.value)!=null&&ve.find(ga=>ga.id===R.id))c.value=(pe=c.value)==null?void 0:pe.map(ga=>(ga.id===R.id&&(ga=R),ga));else{let ga=A.cloneDeep(c.value)??[];M.value===""?ga.push(R):ga=ga==null?void 0:ga.map(Ae=>(Ae.id===M.value&&(Ae.children||(Ae.children=[]),Ae.children.push(R)),Ae)),c.value=ga}c.value=(ya=c.value)!=null&&ya.some(ga=>ga==null?void 0:ga.children)?[c.value]:c.value,s.value=!1,D.value="",M.value="";let j=A.cloneDeep(n.originalItemContents);(aa=A.cloneDeep(n.originalItemContents))!=null&&aa.find(ga=>(ga==null?void 0:ga.key)==="header")?j=(ce=A.cloneDeep(n.originalItemContents))==null?void 0:ce.map(ga=>((ga==null?void 0:ga.key)==="header"&&(ga.contents=c.value),ga)):j.push({key:"header",contents:c.value}),r("change",j)},Ya=R=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,J;c.value=(j=A.cloneDeep(c.value))==null?void 0:j.filter(ve=>(ve==null?void 0:ve.id)!==(R==null?void 0:R.id)),r("change",(J=A.cloneDeep(n.originalItemContents))==null?void 0:J.map(ve=>{var pe;return(ve==null?void 0:ve.key)==="header"&&(ve.contents=(pe=c.value)!=null&&pe.some(ya=>ya==null?void 0:ya.children)?[c.value]:c.value),ve})),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(o.value=A.cloneDeep(n.originalItemContents),c.value=(j=(R=o.value)==null?void 0:R.find(we=>(we==null?void 0:we.key)==="header"))==null?void 0:j.contents,k.value=(ve=(J=o.value)==null?void 0:J.find(we=>(we==null?void 0:we.key)==="rowButton"))==null?void 0:ve.contents,K.value=(ya=(pe=o.value)==null?void 0:pe.find(we=>(we==null?void 0:we.key)==="extraButton"))==null?void 0:ya.contents,g.value=(ce=(aa=o.value)==null?void 0:aa.find(we=>(we==null?void 0:we.key)==="page"))!=null&&ce.contents?!!((Ae=(ga=o.value)==null?void 0:ga.find(we=>(we==null?void 0:we.key)==="page"))!=null&&Ae.contents):!1,$.value=(Na=(Je=o.value)==null?void 0:Je.find(we=>(we==null?void 0:we.key)==="tableToForm"))==null?void 0:Na.contents,c.value=(Ca=c.value)==null?void 0:Ca.map((we,wa)=>(Array.isArray(we)?we=Y3(we):we={label:(we==null?void 0:we.label)??"",prop:(we==null?void 0:we.label)==="操作"?"operate":we==null?void 0:we.prop,width:we!=null&&we.width?parseInt(we.width):"",fixed:(we==null?void 0:we.fixed)??void 0,sortable:(we==null?void 0:we.sortable)??!1,align:(we==null?void 0:we.align)??"left",showOverflowTooltip:(we==null?void 0:we.showOverflowTooltip)??!0,isNotDrag:(we==null?void 0:we.isNotDrag)??!1,isEditCol:(we==null?void 0:we.isEditCol)??!1,isOperate:(we==null?void 0:we.isOperate)??!1,id:(we==null?void 0:we.id)??wa,formMenuSelect:(we==null?void 0:we.formMenuSelect)??void 0,groupSelect:(we==null?void 0:we.groupSelect)??void 0},we)),c.value=(la=c.value)!=null&&la.every(we=>Array.isArray(we))?($a=c.value)==null?void 0:$a[0]:c.value,k.value=(va=k.value)==null?void 0:va.map((we,wa)=>we={label:(we==null?void 0:we.label)??"",type:(we==null?void 0:we.type)??"",textColor:(we==null?void 0:we.textColor)??"#000000",id:(we==null?void 0:we.id)??wa}),K.value=(W=K.value)==null?void 0:W.map((we,wa)=>we={label:(we==null?void 0:we.label)??"",type:(we==null?void 0:we.type)??"",background:(we==null?void 0:we.background)??"var(--ssComponent-primary-color)",id:(we==null?void 0:we.id)??wa}),$.value)$.value=(Ie=$.value)==null?void 0:Ie.map(we=>{w.value++;let wa=we;return wa.id=w.value,wa});else{let we=[];const wa=(Te=de.getColumnChild(A.cloneDeep(c.value)))==null?void 0:Te.filter(oa=>(oa==null?void 0:oa.prop)!=="operate");wa==null||wa.forEach(oa=>{var Qe;w.value++,we.push({label:oa==null?void 0:oa.label,name:(oa==null?void 0:oa.prop)||(oa==null?void 0:oa.label),type:oa!=null&&oa.groupSelect?"Select":"Input",value:"",id:w.value,contents:oa==null?void 0:oa.options,menuSelect:oa==null?void 0:oa.formMenuSelect,groupSelect:(Qe=oa==null?void 0:oa.groupSelect)==null?void 0:Qe.split(":"),selectRelateType:"关联绑定列"})}),$.value=we}},{deep:!0,immediate:!0}),(R,j)=>{const J=e.resolveComponent("svg-icon"),ve=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",mh,[e.createElementVNode("div",yh,[e.createElementVNode("div",gh,[j[2]||(j[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(ve,{class:"icon-content",onClick:Fe,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[1]||(j[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",bh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",kh,[e.createElementVNode("div",xh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",wh,[e.createVNode(J,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>ue(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>oe(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Ya(pe)},null,8,["onClick"])])]),pe!=null&&pe.children&&pe.children.length>0?(e.openBlock(),e.createElementBlock("div",_h,[e.createVNode(Oc,{tableChildContents:pe==null?void 0:pe.children,onDeleteChange:sa,onFixChange:Se},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Sh,[j[4]||(j[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:ea},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[3]||(j[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",Eh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",Ch,[e.createElementVNode("div",Dh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",Bh,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>De(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Oe(pe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Th,[j[6]||(j[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:V},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[5]||(j[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",Nh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",Ah,[e.createElementVNode("div",zh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",Mh,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>Ve(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>he(pe)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Ih,[j[8]||(j[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(ve,{class:"icon-content",id:"themeButton",onClick:ne},{icon:e.withCtx(()=>[e.createVNode(J,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[j[7]||(j[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",Oh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(pe,ya)=>(e.openBlock(),e.createElementBlock("div",{key:ya},[e.createElementVNode("div",Lh,[e.createElementVNode("div",Rh,e.toDisplayString(pe==null?void 0:pe.label),1),e.createElementVNode("div",$h,[e.createVNode(J,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>te(pe)},null,8,["onClick"]),e.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Z(pe)},null,8,["onClick"])])])]))),128))]),j[10]||(j[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",Vh,[e.createElementVNode("div",Ph,[j[9]||(j[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(al._sfc_main$1,{modelValue:g.value,"onUpdate:modelValue":j[0]||(j[0]=pe=>g.value=pe)},null,8,["modelValue"])])])]),e.createVNode(Dr.ssDialog,{visible:s.value,onBeforeDestroy:Ke,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Fh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:ze},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",jh,[e.createVNode(ve,{onClick:Ke,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[11]||(j[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(ve,{class:"ok-button button",onClick:ca,id:"themeButton"},{default:e.withCtx(()=>j[12]||(j[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:p.value,onBeforeDestroy:ua,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Hh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:Ba},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Uh,[e.createVNode(ve,{onClick:ua,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[13]||(j[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(ve,{class:"ok-button button",onClick:ee,id:"themeButton"},{default:e.withCtx(()=>j[14]||(j[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:L.value,onBeforeDestroy:U,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",qh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:ie},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Wh,[e.createVNode(ve,{onClick:U,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[15]||(j[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(ve,{class:"ok-button button",onClick:N,id:"themeButton"},{default:e.withCtx(()=>j[16]||(j[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:h.value,onBeforeDestroy:se,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Kh,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:me,onChangeVisible:X,onBlurChange:Me},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Gh,[e.createVNode(ve,{onClick:se,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>j[17]||(j[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(ve,{class:"ok-button button",onClick:Be,id:"themeButton"},{default:e.withCtx(()=>j[18]||(j[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},Jh=Zl._export_sfc(Yh,[["__scopeId","data-v-7a6b87b5"]]),Xh=A.useModelComp(A.pinia),{pageMapState:Zh}=A.storeToRefs(Xh),Qh=A.useMenuState(A.pinia),{activeMenuPath:e2}=A.storeToRefs(Qh),a2=e.ref(24),l2=e.ref(6),r2=e.ref(10),n2=e.ref(70),i2=e.ref(.18),o2=e.ref(45),t2=(a,l,n,r)=>{var o,s,h,c,p,m,g,u,D,M,k,K,I,H,L,E;return{x:((s=(o=a==null?void 0:a.value)==null?void 0:o.tableData)==null?void 0:s.x)||l%2*12,y:((c=(h=a==null?void 0:a.value)==null?void 0:h.tableData)==null?void 0:c.y)||l,w:((m=(p=a==null?void 0:a.value)==null?void 0:p.tableData)==null?void 0:m.w)||a2.value,h:((u=(g=a==null?void 0:a.value)==null?void 0:g.tableData)==null?void 0:u.h)||n,minW:((M=(D=a==null?void 0:a.value)==null?void 0:D.tableData)==null?void 0:M.minW)||l2.value,minH:((K=(k=a==null?void 0:a.value)==null?void 0:k.tableData)==null?void 0:K.minH)||i2.value,maxH:((H=(I=a==null?void 0:a.value)==null?void 0:I.tableData)==null?void 0:H.maxH)||o2.value,i:((E=(L=a==null?void 0:a.value)==null?void 0:L.tableData)==null?void 0:E.i)||l,id:(a==null?void 0:a.id)||l+"",component:r}},s2=(a,l)=>{var r,o,s,h,c,p,m,g;let n=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((r=a==null?void 0:a.comp)==null?void 0:r.toUpperCase())==="TABLE"){if(((h=(s=(o=a==null?void 0:a.compData)==null?void 0:o.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:s.contents)==null?void 0:h.length)===0)return 2}else((c=a==null?void 0:a.comp)==null?void 0:c.toUpperCase())==="FORM"&&(n=((g=(m=(p=a==null?void 0:a.compData)==null?void 0:p.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:m.contents)==null?void 0:g.length)/5);return n*2},Lc=(a,l,n)=>{var h,c;const r=(c=(h=Zh.value)==null?void 0:h[e2.value])==null?void 0:c.filter(p=>{var m;return((m=p==null?void 0:p.key)==null?void 0:m.type)==="gridLayout"}),o=r==null?void 0:r.find(p=>{var m,g,u;return((u=(g=(m=p==null?void 0:p.value)==null?void 0:m.tableData)==null?void 0:g.component)==null?void 0:u.id)===a.id}),s=s2(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((p,m)=>Lc(p,m))),{...t2(o,l,s,a)}},c2=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const n=A.cloneDeep(a);return Array.isArray(a)?n==null?void 0:n.map((r,o)=>Lc(r,o)):[]},u2=a=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),d2=(a,l)=>a==null?void 0:a.map(n=>{for(const r in l)if(r===(n==null?void 0:n.prop))return{...n,value:l[r]};return n}),p2=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]);e.watch(()=>n.compType,c=>{var g;const p=u2(n==null?void 0:n.optionItems),m=c?(g=p[c==null?void 0:c.toUpperCase()])==null?void 0:g[n==null?void 0:n.target]:[];o.value=m==null?void 0:m.map(u=>{for(const[D,M]of Object.entries((n==null?void 0:n.comp)||{}))if((u==null?void 0:u.prop)===D)return{...u,value:M};return u})},{immediate:!0});const s=c=>al.getComponent(c),h=c=>{var p,m;(c==null?void 0:c.prop)==="layout"&&(c==null?void 0:c.value)==="horizontal"?o.value=(p=o.value)==null?void 0:p.map(g=>{var u;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(u=g==null?void 0:g.options)==null?void 0:u.map(D=>({...D,disabled:!0}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!0}:g}):o.value=(m=o.value)==null?void 0:m.map(g=>{var u;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(u=g==null?void 0:g.options)==null?void 0:u.map(D=>({...D,disabled:!1}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!1}:g}),r("change",{target:n==null?void 0:n.target,styleConfigs:o.value,prop:c==null?void 0:c.prop})};return(c,p)=>{const m=e.resolveComponent("el-col"),g=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,u=>(e.openBlock(),e.createBlock(g,{class:"style-row",key:u==null?void 0:u.prop},{default:e.withCtx(()=>[e.createVNode(m,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u==null?void 0:u.label)+":",1)]),_:2},1024),e.createVNode(m,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(u.type)),{modelValue:u.value,"onUpdate:modelValue":D=>u.value=D,content:u==null?void 0:u.options,optionUrl:u==null?void 0:u.optionUrl,disabled:u==null?void 0:u.disabled,activeText:u==null?void 0:u.activeText,inactiveText:u==null?void 0:u.inactiveText,onChange:D=>h(u)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),f2=Zl._export_sfc(p2,[["__scopeId","data-v-6c233914"]]),h2=e.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(a,{emit:l}){const n=a,r=l,o=[{required:!0,message:"输入不能为空",trigger:"blur"}],s=e.ref([]),h=H=>H==null?void 0:H.reduce((L,E)=>(L[E==null?void 0:E.prop]=E==null?void 0:E.rule,L),{}),c=e.computed(()=>({formRules:h(s.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),p=e.ref([]),m=e.ref(""),g=(H,L,E)=>{var b;let x=[];(n==null?void 0:n.activeTabName)==="任务配置"?(x=[{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:H},{label:"按钮名称",value:"按钮名称",children:L}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"任务名称",rule:o},{prop:"任务关键词",rule:o},{prop:"执行任务",rule:o},{prop:"执行动作",rule:o},{prop:"执行交互",rule:o}]):(n==null?void 0:n.activeTabName)==="任务关联"&&(x=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(b=n==null?void 0:n.relatedData)==null?void 0:b.map(_=>({label:_==null?void 0:_.任务名称,value:_==null?void 0:_.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"关联名称",rule:o},{prop:"关联状态",rule:o},{prop:"关联形式",rule:o},{prop:"关联任务集合",rule:o}]);let w;return E&&(E==null?void 0:E.length)>0?w=[...x,...u(H,L,E)]:w=x,w},u=(H,L,E)=>{const x=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return E?x==null?void 0:x.filter(w=>E==null?void 0:E.includes(w==null?void 0:w.prop)):x},D=(H,L)=>{var _,$,V,ne,X,me,Me,F,te;const E=((X=(ne=(V=($=(_=n==null?void 0:n.comp)==null?void 0:_.compData)==null?void 0:$.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:V.contents)==null?void 0:ne.filter(Z=>(Z==null?void 0:Z.label)!=="操作"))==null?void 0:X.map(Z=>({value:Z==null?void 0:Z.prop,label:Z.label})))||[],x=/button/i,w=((te=(F=(Me=(me=n==null?void 0:n.comp)==null?void 0:me.compData)==null?void 0:Me.filter(Z=>x.test(Z==null?void 0:Z.key)))==null?void 0:F.flatMap(Z=>Z==null?void 0:Z.contents))==null?void 0:te.map(Z=>({value:Z==null?void 0:Z.label,label:Z.label})))||[],b=g(E,w,H);p.value=L?d2(b,L):b,H&&(H==null?void 0:H.length)>0&&s.value.push(...H==null?void 0:H.map(Z=>({prop:Z,rule:o})))};e.onMounted(()=>{D(null,n==null?void 0:n.extendItem)});const M=H=>{const L=H==null?void 0:H[m.value];if(m.value==="执行任务"){if(!(L!=null&&L.join("/")))return;const E=L==null?void 0:L.join("/");D(E==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:E==="进度设置/进度条"?["进度关键词"]:null,H)}},k=H=>{r("change",{target:n==null?void 0:n.target,extendConfigs:H})},K=(H,L)=>{m.value=L==null?void 0:L.changeProp,M(H)},I=H=>{r("onButtonClick",H)};return(H,L)=>(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,key:p.value,isStartJustify:!1,isEnableWrap:!1,formRules:c.value.formRules,buttonValue:c.value.buttonValue,onChange:k,onBlurChange:K,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue"]))}}),v2=Zl._export_sfc(h2,[["__scopeId","data-v-7c660c1f"]]),m2={};function y2(a,l){return null}const g2=Zl._export_sfc(m2,[["render",y2]]),b2={class:"form-operate-content"},k2={class:"form-operate-item"},x2={class:"operate-title"},w2={class:"operate-content"},_2={class:"fix-content"},S2={class:"fix-button"},E2={class:"operate-title"},C2={class:"operate-content"},D2={class:"fix-content"},B2={class:"fix-button"},T2={style:{display:"flex","justify-content":"space-between"}},N2={class:"form-content"},A2={class:"dialog-footer"},z2={class:"form-content"},M2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(!1),s=e.ref([]),h=e.ref([]),c=e.ref(!1),p=e.ref([]),m=e.ref([]),g=e.ref(""),u=e.ref(!1),D=e.ref(0),M=e.ref([]),k=e.ref([]),K=(F,te)=>{if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="selectRelateType"){const Z=te==null?void 0:te.optionUrl;return(Z==null?void 0:Z.selectRelateType)||te[F.key]}if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="menuSelect"){const Z=te==null?void 0:te.optionUrl;return(Z==null?void 0:Z.menuSelect)||te[F.key]}if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="groupSelect"){const Z=te==null?void 0:te.optionUrl;return(Z==null?void 0:Z.groupSelect)||te[F.key]}if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="originalContent")return(te==null?void 0:te.value)||te[F.key];if((te==null?void 0:te.type)=="Select"&&(F==null?void 0:F.key)==="multiple"){const Z=te[F.key];return Xs(Z)?Z:F.default}return(F==null?void 0:F.label)==="类型"&&te[F.key]===""?"Input":(F==null?void 0:F.key)==="isFormColHidden"&&!te[F.key]?!1:te[F.key]},I=async F=>{var se,Be,Ve,he,N,ie;o.value=!0;let te=[];const Z=await((Ve=(Be=(se=de.FormContent)==null?void 0:se.find(U=>(U==null?void 0:U.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:Be.value)==null?void 0:Ve.value)??((N=(he=de.FormContent)==null?void 0:he.find(U=>(U==null?void 0:U.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:N.value);if(Z==null||Z.forEach(U=>{D.value++,te.push({label:U==null?void 0:U.label,name:U==null?void 0:U.label,type:U.type,prop:U==null?void 0:U.prop,value:K(U,F),id:D.value,contents:U==null?void 0:U.options,width:(F==null?void 0:F.width)??1})}),F!=null&&F.menuSelect&&((ie=F==null?void 0:F.menuSelect)==null?void 0:ie.length)>0){const U=await de.menuToContentType(F==null?void 0:F.menuSelect);te=te==null?void 0:te.map(De=>((De==null?void 0:De.name)==="组信息选项"&&(De.contents=U),De))}g.value=F==null?void 0:F.id,s.value=await de.selectToBase(de.formToOptionsContents(te)),h.value=await de.selectToBase(de.formToOptionsContents(te))},H=F=>{var Z;c.value=!0;let te=[];(Z=de.FormButton)==null||Z.forEach(se=>{D.value++,te.push({label:se==null?void 0:se.label,name:se==null?void 0:se.label,type:se.type,value:(se==null?void 0:se.label)==="类型"&&F[se.key]===""?"normal":F[se.key],id:D.value,contents:se==null?void 0:se.options})}),M.value=te,k.value=te,g.value=F==null?void 0:F.id};e.watch(()=>u.value,()=>{var te,Z;let F=A.cloneDeep(n.originalItemContents);(te=A.cloneDeep(n.originalItemContents))!=null&&te.find(se=>(se==null?void 0:se.key)==="enableWrap")?F=(Z=A.cloneDeep(n.originalItemContents))==null?void 0:Z.map(se=>((se==null?void 0:se.key)==="enableWrap"&&(se.contents=!u.value),se)):F.push({key:"enableWrap",contents:!u.value}),r("change",F)},{deep:!0});const L=()=>{var Z,se,Be,Ve,he;M.value=k.value;let F={};if(g.value!==""?F.id=g.value:(D.value++,F.id="id"+D.value),(Z=M.value)==null||Z.forEach(N=>{var U;const ie=(U=de.FormButton)==null?void 0:U.find(De=>(De==null?void 0:De.label)===(N==null?void 0:N.label));ie&&(F[ie.key]=N.value)}),(se=p.value)!=null&&se.find(N=>N.id===F.id))p.value=(Be=p.value)==null?void 0:Be.map(N=>(N.id===F.id&&(N=F),N));else{let N=A.cloneDeep(p.value);p.value||(p.value=[]),N.push(F),p.value=N}c.value=!1,g.value="";let te=A.cloneDeep(n.originalItemContents);(Ve=A.cloneDeep(n.originalItemContents))!=null&&Ve.find(N=>(N==null?void 0:N.key)==="formButton")?te=(he=A.cloneDeep(n.originalItemContents))==null?void 0:he.map(N=>((N==null?void 0:N.key)==="formButton"&&(N.contents=p.value),N)):te.push({key:"formButton",contents:p.value}),r("change",te)},E=F=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var te,Z;m.value=(te=A.cloneDeep(m.value))==null?void 0:te.filter(se=>(se==null?void 0:se.id)!==(F==null?void 0:F.id)),r("change",(Z=A.cloneDeep(n.originalItemContents))==null?void 0:Z.map(se=>((se==null?void 0:se.key)==="formContent"&&(se.contents=m.value),se))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=F=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var te,Z;p.value=(te=A.cloneDeep(p.value))==null?void 0:te.filter(se=>(se==null?void 0:se.id)!==(F==null?void 0:F.id)),r("change",(Z=A.cloneDeep(n.originalItemContents))==null?void 0:Z.map(se=>((se==null?void 0:se.key)==="formButton"&&(se.contents=p.value),se))),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=()=>{var te;c.value=!0;let F=[];(te=de.FormButton)==null||te.forEach(Z=>{D.value++,F.push({label:Z==null?void 0:Z.label,name:Z==null?void 0:Z.label,type:Z.type,value:(Z==null?void 0:Z.label)==="类型"?"normal":"",id:D.value,contents:Z==null?void 0:Z.options})}),M.value=F,k.value=F},b=()=>{var te,Z,se;o.value=!0;let F=[];(se=(Z=(te=de.FormContent)==null?void 0:te.find(Be=>(Be==null?void 0:Be.key)==="Input"))==null?void 0:Z.value)==null||se.forEach(Be=>{D.value++,F.push({label:Be==null?void 0:Be.label,name:Be==null?void 0:Be.label,type:Be.type,value:(Be==null?void 0:Be.label)==="类型"?"Input":"",id:D.value,contents:Be==null?void 0:Be.options})}),s.value=F,h.value=F},_=F=>{let te=A.cloneDeep(k.value);te=te==null?void 0:te.map(Z=>(Z.value=F==null?void 0:F[Z.name],Z)),k.value=te},$=F=>{const te=F.find(Be=>(Be==null?void 0:Be.name)==="类型");if((te==null?void 0:te.value)!="Select")return;const Z=F.find(Be=>(Be==null?void 0:Be.name)==="多选"),se=F.find(Be=>(Be==null?void 0:Be.name)==="初始值");Z!=null&&Z.value&&Eo.isString(se.value)&&(se.value=[se.value]),!(Z!=null&&Z.value)&&!Eo.isString(se.value)&&(se.value="")},V=async F=>{var te,Z,se,Be,Ve,he,N,ie,U,De,Oe,Fe;if((F==null?void 0:F.类型)!==((Z=(te=h.value)==null?void 0:te.find(ea=>(ea==null?void 0:ea.label)==="类型"))==null?void 0:Z.value)){let ea=[];const Ba=await((Ve=(Be=(se=de.FormContent)==null?void 0:se.find(ee=>(ee==null?void 0:ee.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:Be.value)==null?void 0:Ve.value)?await((De=(U=(ie=de.FormContent)==null?void 0:ie.find(ee=>(ee==null?void 0:ee.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:U.value)==null?void 0:De.value):(N=(he=de.FormContent)==null?void 0:he.find(ee=>(ee==null?void 0:ee.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:N.value;if(Ba==null||Ba.forEach(ee=>{var ue,sa;D.value++;const ua=Ou(ee==null?void 0:ee.default)?(F==null?void 0:F[ee.label])??ee.value??"":ee==null?void 0:ee.default;ea.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:ua,prop:ee==null?void 0:ee.prop,id:D.value,contents:ee==null?void 0:ee.options,width:((sa=(ue=h.value)==null?void 0:ue[0])==null?void 0:sa.width)??1})}),F!=null&&F.菜单选项&&((Oe=F==null?void 0:F.菜单选项)==null?void 0:Oe.length)>0){const ee=await de.menuToContentType(F==null?void 0:F.菜单选项);ea=ea==null?void 0:ea.map(ua=>((ua==null?void 0:ua.name)==="组信息选项"&&(ua.contents=ee),ua))}$(ea),h.value=await de.selectToBase(A.cloneDeep(ea)),s.value=await de.selectToBase(A.cloneDeep(ea))}else{let ea=A.cloneDeep(h.value);if(ea=ea==null?void 0:ea.map(Ba=>(Ba.value=F==null?void 0:F[Ba.name],Ba)),F!=null&&F.菜单选项&&((Fe=F==null?void 0:F.菜单选项)==null?void 0:Fe.length)>0){const Ba=await de.menuToContentType(F==null?void 0:F.菜单选项);ea=ea==null?void 0:ea.map(ee=>((ee==null?void 0:ee.name)==="组信息选项"&&(ee.contents=Ba),ee))}ea=de.formToOptionsContents(ea),$(ea),h.value=await de.selectToBase(A.cloneDeep(ea))}},ne=F=>{F||(s.value=h.value)},X=async F=>{await V(F),s.value=h.value},me=Bl.debounce(async()=>{var se,Be,Ve,he,N,ie,U,De,Oe,Fe,ea,Ba;s.value=h.value;let F={};F.width=((Be=(se=s.value)==null?void 0:se[0])==null?void 0:Be.width)??1,g.value!==""?F.id=g.value:(D.value++,F.id="id"+D.value);let te=await((N=(he=(Ve=de.FormContent)==null?void 0:Ve.find(ee=>{var ua,ue;return(ee==null?void 0:ee.key)===(((ue=(ua=s.value)==null?void 0:ua.find(sa=>(sa==null?void 0:sa.label)==="类型"))==null?void 0:ue.value)??"label")}))==null?void 0:he.value)==null?void 0:N.value)??((U=(ie=de.FormContent)==null?void 0:ie.find(ee=>{var ua,ue;return(ee==null?void 0:ee.key)===(((ue=(ua=s.value)==null?void 0:ua.find(sa=>(sa==null?void 0:sa.label)==="类型"))==null?void 0:ue.value)??"label")}))==null?void 0:U.value);if((De=s.value)==null||De.forEach(ee=>{const ua=te==null?void 0:te.find(ue=>(ue==null?void 0:ue.label)===(ee==null?void 0:ee.label));ua&&(F[ua.key]=ee.value)}),F.width=F.width?F.width:1,F.key=F==null?void 0:F.label,F.isFormColHidden=F==null?void 0:F.isFormColHidden,(Oe=m.value)!=null&&Oe.find(ee=>ee.id===F.id))m.value=(Fe=m.value)==null?void 0:Fe.map(ee=>(ee.id===F.id&&(ee=F),ee));else{let ee=A.cloneDeep(m.value);ee.push(F),m.value=ee}m.value=m.value.map(({id:ee,...ua})=>ua),o.value=!1,g.value="";let Z=A.cloneDeep(n.originalItemContents);(ea=A.cloneDeep(n.originalItemContents))!=null&&ea.find(ee=>(ee==null?void 0:ee.key)==="formContent")?Z=(Ba=A.cloneDeep(n.originalItemContents))==null?void 0:Ba.map(ee=>((ee==null?void 0:ee.key)==="formContent"&&(ee.contents=m.value),ee)):Z.push({key:"formContent",contents:m.value}),r("change",Z)},300),Me=()=>{o.value=!1,c.value=!1,g.value="",h.value=[],k.value=[]};return e.watch(()=>n.originalItemContents,()=>{var te,Z,se,Be,Ve,he;if(!n.originalItemContents||n.originalItemContents.length===0)return;const F=A.cloneDeep(n.originalItemContents);m.value=((te=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:te.contents)??[],p.value=((Z=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="formButton"))==null?void 0:Z.contents)??[],u.value=(se=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&se.contents?!((Be=F==null?void 0:F.find(N=>(N==null?void 0:N.key)==="enableWrap"))!=null&&Be.contents):!0,m.value=(Ve=A.cloneDeep(m.value))==null?void 0:Ve.map((N,ie)=>{var De;let U=N;return U.id=(N==null?void 0:N.id)??ie,N!=null&&N.label||(N.label=(N==null?void 0:N.key)??(N==null?void 0:N.label)??""),N!=null&&N.type||(N.type=(N==null?void 0:N.type)??""),N.contents=((De=N==null?void 0:N.options)==null?void 0:De.length)===0?(N==null?void 0:N.contents)??"":N==null?void 0:N.options,U}),m.value=de.formToOptionsContents(m.value),p.value=(he=p.value)==null?void 0:he.map((N,ie)=>N={label:(N==null?void 0:N.label)??"",type:(N==null?void 0:N.type)??"",background:(N==null?void 0:N.background)??"var(--ssComponent-primary-color)",id:ie})},{deep:!0,immediate:!0}),(F,te)=>{const Z=e.resolveComponent("svg-icon"),se=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",b2,[e.createElementVNode("div",k2,[e.createElementVNode("div",x2,[te[2]||(te[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(se,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[te[1]||(te[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",w2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(Be,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",_2,[e.createElementVNode("div",null,e.toDisplayString(Be.label),1),e.createElementVNode("div",S2,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>I(Be)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>E(Be)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",E2,[te[4]||(te[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(se,{class:"icon-content",id:"themeButton",onClick:w},{icon:e.withCtx(()=>[e.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[te[3]||(te[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",C2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(Be,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve},[e.createElementVNode("div",D2,[e.createElementVNode("div",null,e.toDisplayString(Be.label),1),e.createElementVNode("div",B2,[e.createVNode(Z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>H(Be)},null,8,["onClick"]),e.createVNode(Z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:he=>x(Be)},null,8,["onClick"])])])]))),128))]),te[6]||(te[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",T2,[te[5]||(te[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(al._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":te[0]||(te[0]=Be=>u.value=Be)},null,8,["modelValue"])])]),e.createVNode(Dr.ssDialog,{visible:o.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",N2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:V,onChangeVisible:ne,onBlurChange:X},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",A2,[e.createVNode(se,{onClick:Me,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>te[7]||(te[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(se,{class:"ok-button button",onClick:e.unref(me),id:"themeButton"},{default:e.withCtx(()=>te[8]||(te[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(Dr.ssDialog,{visible:c.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",z2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Me,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:L},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ws=Zl._export_sfc(M2,[["__scopeId","data-v-20850524"]]),I2={class:"step-module content"},O2={class:"module-data"},L2={class:"step-module layout"},R2={class:"form-content"},$2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),s=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),h=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.reactive({visible:!1,width:"40%",title:"步骤条"}),p=e.ref("create"),m=e.ref({}),g=e.ref([]),u=I=>{var H;m.value=I,r("change",(H=k())==null?void 0:H.compData)},D=(I,H)=>{var L,E;switch(I){case"create":(L=s.value)==null||L.forEach(x=>{x.value=""}),p.value="create",c.visible=!0;break;case"update":(E=s.value)==null||E.forEach(x=>{x.value=H[x==null?void 0:x.prop]}),p.value="update",c.visible=!0;break;case"delete":g.value.splice(H,1),p.value="delete";break}},M=I=>{var H,L,E;if((I==null?void 0:I.buttonName)==="确认"){const x=A.cloneDeep(I==null?void 0:I.content);switch(Object.keys(x).forEach(w=>{x[w]===""&&delete x[w]}),p.value){case"create":g.value.push({...x,index:((H=g.value)==null?void 0:H.length)+1});break;case"update":g.value=(L=g.value)==null?void 0:L.map(w=>w.index===(x==null?void 0:x.index)?{...w,title:x==null?void 0:x.title,description:x==null?void 0:x.description}:w);break}r("change",(E=k())==null?void 0:E.compData),c.visible=!1}else c.visible=!1},k=()=>({comp:"Step",compData:[{key:"stepList",contents:g.value},{key:"stepConfig",contents:m.value}]}),K=()=>{c.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,I=>{var H,L;I&&(m.value=((H=I==null?void 0:I.find(E=>E.key==="stepConfig"))==null?void 0:H.contents)??{},g.value=((L=I==null?void 0:I.find(E=>E.key==="stepList"))==null?void 0:L.contents)??[])},{immediate:!0}),(I,H)=>{const L=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",I2,[H[2]||(H[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:H[0]||(H[0]=x=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(L,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",O2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:w},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.title),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...x,index:w+1})},{default:e.withCtx(()=>H[3]||(H[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",w)},{default:e.withCtx(()=>H[4]||(H[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",L2,[H[5]||(H[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(al.ssForm,{rowContents:o.value,onChange:u},null,8,["rowContents"])])]),e.createVNode(Dr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:K,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",R2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:h.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),V2=Zl._export_sfc($2,[["__scopeId","data-v-7dbd17f2"]]),P2={class:"step-module content"},F2={class:"module-data"},j2={class:"step-module layout"},H2={class:"form-content"},U2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref("create"),s=e.ref({}),h=e.ref([]),c=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),p=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),m=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),g=e.reactive({visible:!1,width:"40%",title:"时间线"}),u=I=>{var H;s.value=I,r("change",(H=k())==null?void 0:H.compData)},D=(I,H)=>{var L,E;switch(I){case"create":(L=p.value)==null||L.forEach(x=>{x.value=""}),o.value="create",g.visible=!0;break;case"update":(E=p.value)==null||E.forEach(x=>{x.value=H[x==null?void 0:x.prop]}),o.value="update",g.visible=!0;break;case"delete":h.value.splice(H,1),o.value="delete";break}},M=I=>{var H,L,E,x;if((I==null?void 0:I.buttonName)==="确认"){const w=A.cloneDeep(I==null?void 0:I.content);switch(Object.keys(w).forEach(b=>{w[b]===""&&delete w[b]}),o.value){case"create":(L=h.value)==null||L.push({...w,index:((H=h.value)==null?void 0:H.length)+1});break;case"update":h.value=(E=h.value)==null?void 0:E.map(b=>b.index===(w==null?void 0:w.index)?{...b,content:w==null?void 0:w.content,timestamp:w==null?void 0:w.timestamp}:b);break}r("change",(x=k())==null?void 0:x.compData),g.visible=!1}else g.visible=!1},k=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:h.value},{key:"timeLineConfig",contents:s.value}]}),K=()=>{g.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,I=>{var H,L;I&&(s.value=((H=I==null?void 0:I.find(E=>E.key==="timeLineConfig"))==null?void 0:H.contents)??{},h.value=((L=I==null?void 0:I.find(E=>E.key==="timeLineList"))==null?void 0:L.contents)??[])},{immediate:!0}),(I,H)=>{const L=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",P2,[H[2]||(H[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:H[0]||(H[0]=x=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(L,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",F2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:w},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.content),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...x,index:w+1})},{default:e.withCtx(()=>H[3]||(H[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",w)},{default:e.withCtx(()=>H[4]||(H[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",j2,[H[5]||(H[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(al.ssForm,{rowContents:c.value,onChange:u},null,8,["rowContents"])])]),e.createVNode(Dr.ssDialog,{visible:g.visible,title:g.title,onBeforeDestroy:K,width:g.width},{default:e.withCtx(()=>[e.createElementVNode("div",H2,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,key:p.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),q2=Zl._export_sfc(U2,[["__scopeId","data-v-39ffc861"]]),W2={};function K2(a,l){return e.openBlock(),e.createElementBlock("div")}const G2=Zl._export_sfc(W2,[["render",K2]]),Y2={class:"extra-content"},J2={key:0},X2={key:1},Z2={class:"dialog-footer"},Q2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const n=a,r=e.ref(0),o=e.ref(),s=e.ref(),h=l,c=e.ref(!1),p=e.ref({}),m=e.ref({}),g=e.ref();e.watch(()=>[n.itemData],()=>{var x;const E=A.cloneDeep(n.itemData);o.value=(x=A.cloneDeep(E))==null?void 0:x.map(w=>{var b;if(w.key==="extra"){let _=[];(b=w.value)==null||b.forEach($=>{var V;_.push((V=Object.values($))==null?void 0:V[0])}),w.value=_}return w})},{deep:!0,immediate:!0});const u=(E,x,w,b)=>{var $;let _={};(($=E==null?void 0:E[0])==null?void 0:$.contents)==="详情"&&(c.value=!0,_[x]=E,s.value=E==null?void 0:E.filter(V=>(V==null?void 0:V.key)!=="tableContentName"),p.value=_,m.value=w,g.value=b.id)},D=E=>{var V,ne,X,me;const x=(ne=(V=Object.values(A.cloneDeep(p.value)))==null?void 0:V[0])==null?void 0:ne.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),w=(me=(X=Object.values(A.cloneDeep(p.value)))==null?void 0:X[0])==null?void 0:me.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=w==null?void 0:w.map((Me,F)=>{var te;return F===E.index&&(Me==null?void 0:Me.comp)==="Table"&&(Me.compData=(te=Me.compData)==null?void 0:te.map(Z=>{var se,Be;return(Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=(Be=(se=E.content)==null?void 0:se.map(Ve=>{let he={};for(let N in Ve)N!=="id"&&(he[N]=Ve[N]);return he}))==null?void 0:Be.map(Ve=>Object.values(Ve))),Z})),Me});b.unshift(x==null?void 0:x[0]);let _=A.cloneDeep(p.value),$={};for(let Me in _)$[Me]=b;p.value=$},M=()=>{c.value=!1,p.value={},m.value={},g.value=void 0,r.value++},k=E=>{var V,ne,X,me;const x=(ne=(V=Object.values(A.cloneDeep(p.value)))==null?void 0:V[0])==null?void 0:ne.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),w=(me=(X=Object.values(A.cloneDeep(p.value)))==null?void 0:X[0])==null?void 0:me.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=w==null?void 0:w.map((Me,F)=>(F===E.index&&(Me.compData=E.contents),Me));b.unshift(x==null?void 0:x[0]);let _=A.cloneDeep(p.value),$={};for(let Me in _)$[Me]=b;p.value=$},K=()=>{var x,w;let E={};for(let b in m.value)b===((x=Object.keys(p.value))==null?void 0:x[0])?E[b]=(w=Object.values(p.value))==null?void 0:w[0]:E[b]=m.value[b];h("change",{buttonName:"编辑",index:g.value,singleContent:E},"methodData"),c.value=!1,p.value={},m.value={},g.value=void 0},I=()=>{c.value=!1,p.value={},m.value={},g.value=void 0},H=E=>{h("change",E,"methodData")},L=E=>Ti(E);return(E,x)=>{const w=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",Y2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:r.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",J2)):(e.openBlock(),e.createElementBlock("div",X2,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:_,index:(b==null?void 0:b.id)??_,onContentClick:u,onChange:H},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Dr.ssDialog,{visible:c.value,onBeforeDestroy:I},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L(b.comp)),{itemData:b==null?void 0:b.compData,onChange:D,childItemData:b==null?void 0:b.itemChildData,key:_,onContentChange:k,index:(b==null?void 0:b.id)??_,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",Z2,[e.createVNode(w,{class:"cancel-button footer-button",onClick:M,id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(w,{class:"confirm-button footer-button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},e4=Zl._export_sfc(Q2,[["__scopeId","data-v-2d9c5ab2"]]),a4={key:0,class:"method-content"},l4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),n=de.useOriginalState(A.pinia),{originalPath:r}=A.storeToRefs(n),o=a,s=e.ref(!1),h=e.ref(),c=de.useTableComp(A.pinia),{multipleTableConst:p}=A.storeToRefs(c),m=A.useModelComp(A.pinia),g=e.ref(!1),u=A.useMenuState(A.pinia),D=A.useLoginState(A.pinia),{itemData:M,isEdit:k,routeToChildPath:K,tableViewContents:I,lockingPage:H,payloadTypes:L}=A.storeToRefs(m),{activeMenuPath:E,platform:x,childMenu:w}=A.storeToRefs(u),{loginUserInfo:b}=A.storeToRefs(D),_=e.ref(!1),$=async()=>{var he,N;(he=l.value)!=null&&he.find(ie=>(ie==null?void 0:ie.buttonName)==="保存")&&await Z((N=l.value)==null?void 0:N.find(ie=>(ie==null?void 0:ie.buttonName)==="保存")),await de.onSaveBack()};e.watch(()=>M.value,async()=>{k.value==="view"&&!_.value&&await Ve(A.cloneDeep(o.itemData)),_.value=!1},{deep:!0});const V=()=>{s.value=!1,h.value=void 0},ne=he=>he.map(N=>{const ie={};for(const U in N){const De=N[U];if(U.includes(p.value)){const Oe=U.split(p.value);let Fe=ie;Oe.forEach((ea,Ba)=>{Ba===Oe.length-1?Fe[ea]=De:(Fe[ea]||(Fe[ea]={}),Fe=Fe[ea])})}else ie[U]=De}return ie}),X=async(he,N,ie=[])=>{var De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya;let U=(De=A.cloneDeep(N))==null?void 0:De.filter(R=>(R==null?void 0:R.comp)!=="methodButton");if(he!=null&&he.includes("[")){let R=(ee=(Ba=(ea=(Fe=(Oe=A.cloneDeep(he))==null?void 0:Oe.split("["))==null?void 0:Fe[1])==null?void 0:ea.split("]"))==null?void 0:Ba[0])==null?void 0:ee.split(":"),j="";if(R!=null&&R[0]){let J=(ua=U==null?void 0:U.find(ve=>(ve==null?void 0:ve.name)===(R==null?void 0:R[0])))==null?void 0:ua.compData;if(!J){let ve=(ue=he==null?void 0:he.split("["))==null?void 0:ue[0],pe=await de.getItemData(ve,sessionStorage.getItem("systemKey"),"",!1,"","",ie);J=(sa=pe==null?void 0:pe.find(ya=>(ya==null?void 0:ya.name)===(R==null?void 0:R[0])))==null?void 0:sa.compData}J==null||J.forEach(ve=>{var pe,ya,aa,ce,ga,Ae;if((ve==null?void 0:ve.key)==="formContent")(pe=ve==null?void 0:ve.contents)==null||pe.forEach(Je=>{var Na;(Je==null?void 0:Je.key)===(R==null?void 0:R[1])&&(Array.isArray(Je==null?void 0:Je.value)?j=Je==null?void 0:Je.value:j=(Na=Je==null?void 0:Je.value)==null?void 0:Na.toString())});else if((ve==null?void 0:ve.key)==="tableContents"){let Je=[],Na=(ya=J==null?void 0:J.find(la=>(la==null?void 0:la.key)==="header"))==null?void 0:ya.contents,Ca=(R==null?void 0:R[1])??"";if(Na!=null&&Na.every(la=>Array.isArray(la))){let la=de.getColumnChild((ga=Na==null?void 0:Na[0])==null?void 0:ga.filter($a=>($a==null?void 0:$a.label)!=="操作"));(Ae=ve.contents)==null||Ae.forEach($a=>{let va={};$a=$a==null?void 0:$a.filter(W=>!(W!=null&&W.id)),la==null||la.forEach((W,Te)=>{let Ie=$a[Te];typeof $a[Te]=="number"&&(Ie=$a[Te].toString()),(Ca===""||Ca===W.prop)&&(va[W.prop]=Ie)}),Je.push(va)}),Je=ne(Je)}else{let la=(aa=Na==null?void 0:Na.map($a=>$a==null?void 0:$a.label))==null?void 0:aa.filter($a=>$a!=="操作");(ce=ve.contents)==null||ce.forEach($a=>{let va={};$a=$a==null?void 0:$a.filter(W=>!(W!=null&&W.id)),la==null||la.forEach((W,Te)=>{let Ie=$a[Te];typeof $a[Te]=="number"&&(Ie=$a[Te].toString()),(Ca===""||Ca===W)&&(va[W]=Ie)}),Je.push(va)})}j=Je}})}return j}else if(he!=null&&he.includes("/")){let R={};return(Se=A.cloneDeep(U))==null||Se.forEach((j,J)=>{var ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa;if((j==null?void 0:j.comp)==="Table"){let Qe=Array.isArray((ya=(pe=(ve=j==null?void 0:j.compData)==null?void 0:ve.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:pe.contents)==null?void 0:ya[0])?(Ae=(ga=(ce=(aa=j==null?void 0:j.compData)==null?void 0:aa.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:ce.contents)==null?void 0:ga[0])==null?void 0:Ae.some(ke=>ke==null?void 0:ke.children):[],He=(Ca=(Na=(Je=j==null?void 0:j.compData)==null?void 0:Je.find(ke=>(ke==null?void 0:ke.key)==="tableContents"))==null?void 0:Na.contents)==null?void 0:Ca.map(ke=>(ke!=null&&ke.find(da=>da==null?void 0:da.id)&&(ke=ke.slice(1)),ke)),qe=(Te=(W=(va=($a=(la=j==null?void 0:j.compData)==null?void 0:la.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:$a.contents)==null?void 0:va[0])==null?void 0:W[0])==null?void 0:Te.label,fe=(we=(Ie=j==null?void 0:j.compData)==null?void 0:Ie.find(ke=>(ke==null?void 0:ke.key)==="header"))==null?void 0:we.contents;if(Qe)(Qe==null?void 0:Qe.length)===0?R[j.name]=R!=null&&R[j.name]?R[j.name]:de.tableToForm(He,fe):R[qe]=de.tableToForm(He,fe);else{const ke=[];fe=fe.slice(1,fe.length-1),fe==null||fe.forEach((da,La)=>{He==null||He.forEach(dl=>{ke.push({key:da.label+dl[0],value:dl[La+1]})})}),R["form"+J]=ke}}else{const Qe=(oa=(wa=j.compData)==null?void 0:wa.find(qe=>(qe==null?void 0:qe.key)==="formContent"))==null?void 0:oa.contents;R!=null&&R.form||(R.form=[]);const He=[];Qe==null||Qe.forEach(qe=>{qe.key!==""&&(qe={key:(qe==null?void 0:qe.key)??(qe==null?void 0:qe.label),value:qe==null?void 0:qe.value},He.push(qe))}),R.form=[...He,...A.cloneDeep(R==null?void 0:R.form)]}}),R}else{if(he==="createInsofDataApi"){let R=(oe=A.cloneDeep(N))==null?void 0:oe[0];return R={comp:(ze=A.cloneDeep(R))==null?void 0:ze.comp,compData:(Ke=A.cloneDeep(R))==null?void 0:Ke.compData,name:(ca=A.cloneDeep(R))==null?void 0:ca.name,isShow:(Ya=A.cloneDeep(R))==null?void 0:Ya.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:E.value},value:{pageData:R}}}return he}},me=async(he,N,ie)=>{var Oe,Fe,ea;let U=await de.getItemData(N,sessionStorage.getItem("systemKey"),""),De=U==null?void 0:U.find(Ba=>(Ba==null?void 0:Ba.name)===(ie==null?void 0:ie[0]));if(De){if((De==null?void 0:De.comp)==="Table"){let Ba={};for(let ze in A.cloneDeep(he))A.cloneDeep(he)[ze]!=="loginUser"?Ba[ze]=A.cloneDeep(he)[ze]:Ba[ze]=((Oe=b.value)==null?void 0:Oe.account)||((Fe=b.value)==null?void 0:Fe.账号);let ee=[],ua=Ba;Array.isArray(he)||(ua=[Ba]),ua==null||ua.forEach(ze=>{ee.push({[ze[ie[1]]]:ze})});let ue=[],sa=ee==null?void 0:ee.map(ze=>{var Ke;return(Ke=Object.keys(ze))==null?void 0:Ke[0]});U==null||U.forEach(ze=>{var Ke;(ze==null?void 0:ze.name)===(ie==null?void 0:ie[0])&&((Ke=ze==null?void 0:ze.compData)==null||Ke.forEach(ca=>{var Ya;(ca==null?void 0:ca.key)==="tableContents"&&((Ya=ca==null?void 0:ca.contents)==null||Ya.forEach(R=>{R!=null&&R.some(j=>sa.includes(j))&&ue.push({[R.find(j=>j.id).id]:R.find(j=>sa.includes(j))})}))}))});let Se=ue==null?void 0:ue.map(ze=>{var Ke;return(Ke=Object.keys(ze))==null?void 0:Ke[0]}),oe=[];if(Se==null||Se.forEach(ze=>{var Ya;let Ke=(Ya=ue==null?void 0:ue.find(R=>{var j;return((j=Object.keys(R))==null?void 0:j[0].toString())===ze.toString()}))==null?void 0:Ya[ze],ca=ee==null?void 0:ee.find(R=>{var j;return((j=Object.keys(R))==null?void 0:j[0])===Ke});oe.push({id:parseInt(ze),value:{tableData:ca[Ke]}})}),(oe==null?void 0:oe.length)>0)return oe}else if((De==null?void 0:De.comp)==="Form"){let Ba=A.cloneDeep(De);Ba.compData=(ea=Ba.compData)==null?void 0:ea.map(ue=>{var sa;return(ue==null?void 0:ue.key)==="formContent"&&(ue.contents=(sa=ue.contents)==null?void 0:sa.map(Se=>((Se==null?void 0:Se.key)===(ie==null?void 0:ie[1])&&(Se.value=(he==null?void 0:he[Se==null?void 0:Se.prop])||he),Se))),ue});let ee={};for(let ue in Ba)ue!=="id"&&(ee[ue]=Ba[ue]);let ua=[];if(ua.push({id:De==null?void 0:De.id,keyType:ie==null?void 0:ie[1],value:{pageData:ee}}),(ua==null?void 0:ua.length)>0)return ua}}},Me=async(he,N,ie)=>{var Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe;let U=await de.getItemData(N,sessionStorage.getItem("systemKey"),""),De=U==null?void 0:U.find(ze=>(ze==null?void 0:ze.name)===(ie==null?void 0:ie[0]));if(De){if((De==null?void 0:De.comp)==="Table"){let ze={};for(let Ke in A.cloneDeep(he))A.cloneDeep(he)[Ke]!=="loginUser"?ze[Ke]=A.cloneDeep(he)[Ke]:ze[Ke]=((Oe=b.value)==null?void 0:Oe.account)||((Fe=b.value)==null?void 0:Fe.账号);await Mr.createInsofDataApi({key:{type:"data",pageKey:N,tableId:De==null?void 0:De.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ze}})}else if((De==null?void 0:De.comp)==="Form"){let ze=A.cloneDeep(De),Ke=Object.keys(he),ca="";(Ba=(ea=A.cloneDeep(ze))==null?void 0:ea.compData)==null||Ba.forEach(pe=>{var ya,aa;(pe==null?void 0:pe.key)==="formContent"&&((aa=(ya=A.cloneDeep(pe))==null?void 0:ya.contents)==null||aa.forEach(ce=>{var ga;Ke.includes(ce==null?void 0:ce.key)&&(ce==null?void 0:ce.value)===((ga=b.value)==null?void 0:ga.姓名)&&(ca=ce==null?void 0:ce.key)}))});let Ya=[];(ee=Object.values(he[ca]))==null||ee.forEach(pe=>{pe!=null&&pe.includes("(")&&Ya.push(pe)}),Ya=[...new Set(Ya)];const R=Ya==null?void 0:Ya.map(async pe=>{var Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa;let ya="";($a=(la=(Ca=(Na=(Je=(Ae=A.cloneDeep(pe))==null?void 0:Ae.split("("))==null?void 0:Je[1])==null?void 0:Na.split(")"))==null?void 0:Ca[0])==null?void 0:la.split(":"))==null||$a.forEach(oa=>{ya=ya===""?ya+oa.replaceAll("'",""):ya+"/"+oa.replaceAll("'","")});let aa=[];(wa=(we=(Ie=(Te=(W=(va=A.cloneDeep(pe))==null?void 0:va.split("<"))==null?void 0:W[1])==null?void 0:Te.split(">"))==null?void 0:Ie[0])==null?void 0:we.split(":"))==null||wa.forEach(oa=>{aa.push(oa.replaceAll("'",""))});const ce=await de.getItemData(ya,sessionStorage.getItem("systemKey"),"");let ga="";return ce==null||ce.forEach(oa=>{var Qe;oa.name===(aa==null?void 0:aa[0])&&((Qe=oa==null?void 0:oa.compData)==null||Qe.forEach(He=>{var qe;(He==null?void 0:He.key)==="formContent"&&((qe=He.contents)==null||qe.forEach(fe=>{(fe==null?void 0:fe.key)===(aa==null?void 0:aa[1])&&(ga=fe==null?void 0:fe.value)}))}))}),{[pe]:ga}}),j=await Promise.all(R);ze.compData=(ue=(ua=A.cloneDeep(ze))==null?void 0:ua.compData)==null?void 0:ue.map(pe=>{var ya,aa;return(pe==null?void 0:pe.key)==="formContent"&&(pe.contents=(aa=(ya=A.cloneDeep(pe))==null?void 0:ya.contents)==null?void 0:aa.map(ce=>{var ga,Ae,Je,Na;return(ga=he[ca])!=null&&ga[ce==null?void 0:ce.key]&&(he[ca][ce==null?void 0:ce.key].includes("(")?ce.value=(Ae=j==null?void 0:j.find(Ca=>{var la;return((la=Object.keys(Ca))==null?void 0:la[0])===he[ca][ce==null?void 0:ce.key]}))==null?void 0:Ae[he[ca][ce==null?void 0:ce.key]]:ce.value=(Na=(Je=A.cloneDeep(he))==null?void 0:Je[ca])==null?void 0:Na[ce==null?void 0:ce.key]),ce})),pe});const J=await Mr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let ve="";((sa=J==null?void 0:J.data)==null?void 0:sa.type)==="success"&&((oe=(Se=J==null?void 0:J.data)==null?void 0:Se.result)==null||oe.forEach(pe=>{var ya,aa;((aa=(ya=pe==null?void 0:pe.value)==null?void 0:ya.pageData)==null?void 0:aa.name)===(ie==null?void 0:ie[0])&&(ve=pe.id)}),await Mr.updateInsofDataApi({id:ve,value:{pageData:ze}}))}}},F=(he,N="",ie={})=>{for(const[U,De]of Object.entries(he)){const Oe=N?`${N}.${U}`:U;De!==null&&typeof De=="object"&&!Array.isArray(De)&&Object.prototype.toString.call(De)!=="[object Date]"?F(De,Oe,ie):ie[Oe]=De}return ie},te=async(he,N,ie,U)=>{var Fe,ea,Ba,ee,ua,ue,sa,Se,oe,ze,Ke,ca,Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na;let De=await de.getItemData(N,sessionStorage.getItem("systemKey"),""),Oe=De==null?void 0:De.find(Ca=>(Ca==null?void 0:Ca.name)===(ie==null?void 0:ie[0]));if(Oe){if(!(ie!=null&&ie[1])&&(Oe==null?void 0:Oe.comp)==="Table"){let Ca={},la=[],$a=(ea=(Fe=Oe==null?void 0:Oe.compData)==null?void 0:Fe.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:ea.contents;$a!=null&&$a.every(Te=>Array.isArray(Te))?la=(ee=de.getColumnChild((Ba=$a==null?void 0:$a[0])==null?void 0:Ba.filter(Te=>(Te==null?void 0:Te.label)!=="操作")))==null?void 0:ee.map(Te=>Te==null?void 0:Te.prop):la=$a==null?void 0:$a.map(Te=>Te==null?void 0:Te.label);for(let Te in A.cloneDeep(he))if(A.cloneDeep(he)[Te]!=="loginUser"){let Ie=F(A.cloneDeep(he)[Te]),we={};for(let wa in Ie)if(la!=null&&la.find(oa=>oa===wa))we[wa]=Ie[wa];else if(la!=null&&la.find(oa=>(oa==null?void 0:oa.toUpperCase())===(wa==null?void 0:wa.toUpperCase()))){let oa=la==null?void 0:la.find(Qe=>(Qe==null?void 0:Qe.toUpperCase())===(wa==null?void 0:wa.toUpperCase()));we[oa]=Ie[wa]}Ca[Te]=we}else Ca[Te]=((ua=b.value)==null?void 0:ua.account)||((ue=b.value)==null?void 0:ue.账号);let va=await Mr.getInsofDataApi({keyLikes:{tableId:Oe==null?void 0:Oe.id}});if(((Se=(sa=va==null?void 0:va.data)==null?void 0:sa.result)==null?void 0:Se.length)>0){let Te=(ze=(oe=va==null?void 0:va.data)==null?void 0:oe.result)==null?void 0:ze.map(Ie=>Ie==null?void 0:Ie.id);(Te==null?void 0:Te.length)>0&&await Mr.batchDeleteInsofDataApi({ids:Te})}let W=[];if((Ke=Oe==null?void 0:Oe.compData)!=null&&Ke.find(Te=>(Te==null?void 0:Te.key)==="pageColumn")&&((R=(Ya=(ca=Oe==null?void 0:Oe.compData)==null?void 0:ca.find(Te=>(Te==null?void 0:Te.key)==="pageColumn"))==null?void 0:Ya.contents)!=null&&R.includes("["))){const Te=await Mr.getInsofDataApi({id:Oe==null?void 0:Oe.tableId});let Ie=((pe=(ve=(J=(j=Te==null?void 0:Te.data)==null?void 0:j.result)==null?void 0:J[0])==null?void 0:ve.key)==null?void 0:pe.pageKey)??"";(ya=Object.values(Ca))==null||ya.forEach(we=>{W.push({key:{type:"data",pageKey:Ie,tableId:Oe==null?void 0:Oe.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:we}})})}else(aa=Object.values(Ca))==null||aa.forEach(Te=>{W.push({key:{type:"data",pageKey:N,tableId:Oe==null?void 0:Oe.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Te}})});(W==null?void 0:W.length)>0&&await Mr.batchAddInsofDataApi({dataList:W})}else if(!(ie!=null&&ie[1])&&(Oe==null?void 0:Oe.comp)==="Form"){let Ca=A.cloneDeep(Oe);Ca.compData=(ga=(ce=A.cloneDeep(Ca))==null?void 0:ce.compData)==null?void 0:ga.map(va=>{var W,Te;return(va==null?void 0:va.key)==="formContent"&&(va.contents=(Te=(W=A.cloneDeep(va))==null?void 0:W.contents)==null?void 0:Te.map(Ie=>{var we,wa;return(we=A.cloneDeep(he))!=null&&we[Ie==null?void 0:Ie.key]&&(Ie.value=(wa=A.cloneDeep(he))==null?void 0:wa[Ie==null?void 0:Ie.key]),Ie})),va});const la=await Mr.getInsofDataApi({key:{type:"structure",pageKey:N,systemKey:sessionStorage.getItem("systemKey")}});let $a="";((Ae=la==null?void 0:la.data)==null?void 0:Ae.type)==="success"&&((Na=(Je=la==null?void 0:la.data)==null?void 0:Je.result)==null||Na.forEach(va=>{var W,Te;((Te=(W=va==null?void 0:va.value)==null?void 0:W.pageData)==null?void 0:Te.name)===(ie==null?void 0:ie[0])&&($a=va.id)}),await Mr.updateInsofDataApi({id:$a,value:{pageData:Ca}}))}}},Z=async he=>{var N,ie,U,De,Oe,Fe,ea,Ba,ee,ua,ue,sa,Se,oe;u.setImportLoading(!0);try{if(he.api){let ze=new WeakMap,Ke=await de.getItemData((w==null?void 0:w.value)===""?E.value:w==null?void 0:w.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze),ca="";if(Ke=Ke==null?void 0:Ke.map(aa=>{var ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie;if((aa==null?void 0:aa.comp)==="Form")aa.compData=(ce=aa.compData)==null?void 0:ce.map(we=>{var wa;return(we==null?void 0:we.key)==="formContent"&&(we.contents=(wa=we.contents)==null?void 0:wa.map(oa=>{var Qe;if((oa==null?void 0:oa.value)===""&&(oa==null?void 0:oa.type)==="Select"){let He=de.judgeContents((Qe=A.cloneDeep(oa))==null?void 0:Qe.optionUrl,ze);oa.value=oa.value||He}return oa})),we});else if((aa==null?void 0:aa.comp)==="Table"&&(ga=aa.compData)!=null&&ga.find(we=>(we==null?void 0:we.key)==="pageColumn")){let we=(Je=(Ae=aa.compData)==null?void 0:Ae.find(He=>(He==null?void 0:He.key)==="pageColumn"))==null?void 0:Je.contents,wa=((Ca=(Na=aa.compData)==null?void 0:Na.find(He=>(He==null?void 0:He.key)==="pageGroup"))==null?void 0:Ca.contents)??"",oa=(va=($a=(la=we==null?void 0:we.split("["))==null?void 0:la[1])==null?void 0:$a.split("]"))==null?void 0:va[0];ca=((W=we==null?void 0:we.split("["))==null?void 0:W[0])+((Ie=(Te=I.value)==null?void 0:Te.find(He=>(He==null?void 0:He.key)===oa))==null?void 0:Ie.value)}return aa}),!(ca===""||ca==="")){const aa=await de.getItemData(ca,sessionStorage.getItem("systemKey"),"",!1,"","",ze);Ke=Ke==null?void 0:Ke.map(ce=>{var ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa;if((ce==null?void 0:ce.comp)==="Table"&&(ga=ce.compData)!=null&&ga.find(oa=>(oa==null?void 0:oa.key)==="pageColumn")){let oa=(Je=(Ae=ce.compData)==null?void 0:Ae.find(ke=>(ke==null?void 0:ke.key)==="pageColumn"))==null?void 0:Je.contents,Qe=((Ca=(Na=ce.compData)==null?void 0:Na.find(ke=>(ke==null?void 0:ke.key)==="pageGroup"))==null?void 0:Ca.contents)??"",He=(va=($a=(la=oa==null?void 0:oa.split("["))==null?void 0:la[1])==null?void 0:$a.split("]"))==null?void 0:va[0],qe=((W=oa==null?void 0:oa.split("["))==null?void 0:W[0])+((Ie=(Te=I.value)==null?void 0:Te.find(ke=>(ke==null?void 0:ke.key)===He))==null?void 0:Ie.value),fe=(we=aa==null?void 0:aa.find(ke=>(ke==null?void 0:ke.name)===(Qe===""?o==null?void 0:o.compName:Qe)))==null?void 0:we.compData;ce.compData=(wa=ce.compData)==null?void 0:wa.map(ke=>{var da;return(ke==null?void 0:ke.key)==="tableContents"&&(ke.contents=(da=fe==null?void 0:fe.find(La=>(La==null?void 0:La.key)==="tableContents"))==null?void 0:da.contents),ke})}return ce})}let Ya={};if(((ie=(N=he==null?void 0:he.extraValues)==null?void 0:N.input)==null?void 0:ie.length)>0){const aa=(De=(U=he==null?void 0:he.extraValues)==null?void 0:U.input)==null?void 0:De.map(async ce=>{var ga;se!=null&&se.find(Ae=>Ae===ce)?Ya=await X(ce,Ke):Ya[Object.keys(ce)[0]]=await X((ga=Object.values(ce))==null?void 0:ga[0],Ke,ze)});await Promise.all(aa)}else Ya=await X("/",Ke);let R=!1;(Fe=(Oe=he==null?void 0:he.extraValues)==null?void 0:Oe.output)==null||Fe.forEach(aa=>{var ce,ga;(ga=(ce=Object.values(aa))==null?void 0:ce[0])!=null&&ga.includes(".doc")&&(R=!0)});let j;if(R){const aa=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});j=await Ua.axios.post(he.api,Ya,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{aa.close()})}else j=await Ua.axios.post(he.api,Ya,{headers:{"Content-Type":"application/json"}});let J=(ua=(ee=(Ba=(ea=A.cloneDeep(he))==null?void 0:ea.extraValues)==null?void 0:Ba.output)==null?void 0:ee.map(aa=>{var ce,ga,Ae,Je,Na,Ca,la,$a,va,W,Te,Ie,we,wa,oa,Qe;if(!((ga=(ce=Object.values(aa))==null?void 0:ce[0])!=null&&ga.includes(".doc"))){let He=(W=(va=($a=(Je=A.cloneDeep((Ae=Object.values(aa))==null?void 0:Ae[0]))==null?void 0:Je.split("["))==null?void 0:$a[((la=(Ca=A.cloneDeep((Na=Object.values(aa))==null?void 0:Na[0]))==null?void 0:Ca.split("["))==null?void 0:la.length)-1])==null?void 0:va.split("]"))==null?void 0:W[0],qe=He==null?void 0:He.split(":"),fe=(we=A.cloneDeep((Te=Object.values(aa))==null?void 0:Te[0]))==null?void 0:we.substring(0,A.cloneDeep((Ie=Object.values(aa))==null?void 0:Ie[0]).lastIndexOf("["));if(fe=(oa=A.cloneDeep(fe))==null?void 0:oa.slice(0,((wa=A.cloneDeep(fe))==null?void 0:wa.length)-1),fe!=null&&fe.includes("[")){let ke="";if((Qe=de.contentTransArrayToAll(fe,"/"))==null||Qe.forEach(da=>{var La,dl,Ol,sl,Fl,Fa,Vl;if(!(da!=null&&da.includes("[")))ke=ke===""?ke+da.replaceAll("/",""):ke+"/"+da.replaceAll("/","");else{let zl=A.cloneDeep(da).slice(1,((La=A.cloneDeep(da))==null?void 0:La.length)-1),Aa=(Fa=(Fl=(sl=(Ol=(dl=A.cloneDeep(zl))==null?void 0:dl.split("["))==null?void 0:Ol[1])==null?void 0:sl.split("]"))==null?void 0:Fl[0])==null?void 0:Fa.split(":"),rl="",nl=(Vl=Ke==null?void 0:Ke.find(ul=>(ul==null?void 0:ul.name)===(Aa==null?void 0:Aa[0])))==null?void 0:Vl.compData;nl==null||nl.forEach(ul=>{var Ra;(ul==null?void 0:ul.key)==="formContent"&&((Ra=ul==null?void 0:ul.contents)==null||Ra.forEach(cl=>{(cl==null?void 0:cl.key)===(Aa==null?void 0:Aa[1])&&(rl=cl==null?void 0:cl.value)}))}),ke=ke===""?ke+rl.replaceAll("/",""):ke+"/"+rl.replaceAll("/","")}}),fe=ke,fe[(fe==null?void 0:fe.length)-1]!=="/")return fe}}}))==null?void 0:ua.filter(aa=>aa);J=[...new Set(A.cloneDeep(J))];let ve=J==null?void 0:J.map(async aa=>{let ce=await de.getItemData(aa,sessionStorage.getItem("systemKey"),"",!1,"","",ze);if((ce==null?void 0:ce.length)===0)return await de.getParentContents(aa)});await Promise.all(ve);let pe=[],ya=(Se=(sa=(ue=A.cloneDeep(he))==null?void 0:ue.extraValues)==null?void 0:sa.output)==null?void 0:Se.map(async aa=>{var $a,va,W,Te,Ie,we,wa,oa,Qe,He,qe,fe,ke,da,La,dl,Ol,sl,Fl,Fa,Vl,zl,Aa,rl,nl,ul,Ra,cl,ll,Ne,Ue,na,re,ia,Va,Le,ja,Ma,il,We,pa,ma,ka,_e,Tl,Jl,rr,er,pr,Gl,Re,jl,fr,Tr,hr,Hl,Lr,Pl,Nr,Ur,wr,ql,ln,_r,Ql,Vr,Ir,Rr,vn,tn;if((va=($a=Object.values(aa))==null?void 0:$a[0])!=null&&va.includes(".doc")){var ce=new Blob([j.data],{type:"application/octet-stream;charset=UTF-8"}),ga=j.headers["content-disposition"],Ae=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),Je=Ae.exec(ga),Na=Je==null?void 0:Je[1],Ca=document.createElement("a"),la=window.URL.createObjectURL(ce);h.value=[{name:Na,blobUrl:la}],s.value=!0}else{let mn=(He=(Qe=(oa=(Te=A.cloneDeep((W=Object.values(aa))==null?void 0:W[0]))==null?void 0:Te.split("["))==null?void 0:oa[((wa=(we=A.cloneDeep((Ie=Object.values(aa))==null?void 0:Ie[0]))==null?void 0:we.split("["))==null?void 0:wa.length)-1])==null?void 0:Qe.split("]"))==null?void 0:He[0],nr=mn==null?void 0:mn.split(":"),vr=(ke=A.cloneDeep((qe=Object.values(aa))==null?void 0:qe[0]))==null?void 0:ke.substring(0,A.cloneDeep((fe=Object.values(aa))==null?void 0:fe[0]).lastIndexOf("["));if(vr!=null&&vr.includes("[")?vr=(La=A.cloneDeep(vr))==null?void 0:La.slice(0,((da=A.cloneDeep(vr))==null?void 0:da.length)-1):vr===""&&(vr=E.value),vr=vr.replaceAll("<","[").replaceAll(">","]"),vr!=null&&vr.includes("[")){let hl="";(dl=de.contentTransArrayToAll(vr,"/"))==null||dl.forEach((ir,Ll)=>{var xr,Sl,ar,Br,xn,Nn,wn,Un,Ln,_n,An;if(!(ir!=null&&ir.includes("[")))hl=hl===""?hl+ir.replaceAll("/",""):hl+"/"+ir.replaceAll("/","");else{let Rn="",rn="";(xr=A.cloneDeep(ir))!=null&&xr.includes("]")?(Rn=A.cloneDeep(ir).slice(1,((Sl=A.cloneDeep(ir))==null?void 0:Sl.length)-1),rn=(wn=(Nn=(xn=(Br=(ar=A.cloneDeep(Rn))==null?void 0:ar.split("["))==null?void 0:Br[1])==null?void 0:xn.split("]"))==null?void 0:Nn[0])==null?void 0:wn.split(":")):(Rn=A.cloneDeep(ir).slice(1,(Un=A.cloneDeep(ir))==null?void 0:Un.length),rn=(Ln=A.cloneDeep(Rn))==null?void 0:Ln.split("/"));let zn="",qn=(_n=Ke==null?void 0:Ke.find(Pr=>(Pr==null?void 0:Pr.name)===(rn==null?void 0:rn[0])))==null?void 0:_n.compData;qn==null||qn.forEach(Pr=>{var Wn;(Pr==null?void 0:Pr.key)==="formContent"&&((Wn=Pr==null?void 0:Pr.contents)==null||Wn.forEach(yn=>{(yn==null?void 0:yn.key)===(rn==null?void 0:rn[1])&&(zn=yn==null?void 0:yn.value)}))}),((An=de.contentTransArrayToAll(vr,"/"))==null?void 0:An.length)-1!==Ll?hl=hl===""?hl+zn.replaceAll("/",""):hl+"/"+zn.replaceAll("/",""):hl=hl+r.value+zn.replaceAll("/","")}}),(Ol=E.value)!=null&&Ol.includes(hl)?vr=E.value:vr=hl}let jr=A.cloneDeep((sl=Object.keys(aa))==null?void 0:sl[0]);if(((Fl=j==null?void 0:j.data)==null?void 0:Fl.statusCode)===200||((Fa=j==null?void 0:j.data)==null?void 0:Fa.code)===200){if(((zl=(Vl=j==null?void 0:j.data)==null?void 0:Vl.data)!=null&&zl[jr]||(rl=(Aa=j==null?void 0:j.data)==null?void 0:Aa.result)!=null&&rl[jr])&&(nr==null?void 0:nr.length)===1)return await te(((ul=(nl=j==null?void 0:j.data)==null?void 0:nl.data)==null?void 0:ul[jr])||((cl=(Ra=j==null?void 0:j.data)==null?void 0:Ra.result)==null?void 0:cl[jr]),A.cloneDeep(vr),nr,ca);if((Ne=(ll=j==null?void 0:j.data)==null?void 0:ll.data)!=null&&Ne[jr]||(na=(Ue=j==null?void 0:j.data)==null?void 0:Ue.result)!=null&&na[jr]){let hl=await me(((ia=(re=j==null?void 0:j.data)==null?void 0:re.data)==null?void 0:ia[jr])||((Le=(Va=j==null?void 0:j.data)==null?void 0:Va.result)==null?void 0:Le[jr]),A.cloneDeep(vr),nr);return hl&&(pe=[...pe,...hl]),hl}else{if(!((ja=j==null?void 0:j.data)!=null&&ja.data)){let hl=await de.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,"","",ze);hl=hl==null?void 0:hl.map(Ll=>{var xr;return(Ll==null?void 0:Ll.name)===(nr==null?void 0:nr[0])&&(Ll.compData=(xr=Ll.compData)==null?void 0:xr.map(Sl=>{var ar;return(Sl==null?void 0:Sl.key)==="formContent"&&(Sl.contents=(ar=Sl.contents)==null?void 0:ar.map(Br=>{var xn,Nn;return(Br==null?void 0:Br.key)===(nr==null?void 0:nr[1])&&(Br.value=(Nn=(xn=j==null?void 0:j.data)==null?void 0:xn.result)==null?void 0:Nn[jr==null?void 0:jr.replaceAll(":","")]),Br})),Sl})),Ll});let ir=[];(Ma=hl==null?void 0:hl.filter(Ll=>(Ll==null?void 0:Ll.comp)==="Form"))==null||Ma.forEach(async Ll=>{let xr={};for(let Sl in Ll)Sl!=="id"&&(xr[Sl]=Ll[Sl]);ir.push({id:Ll==null?void 0:Ll.id,value:{pageData:xr}})}),(ir==null?void 0:ir.length)>0&&await Mr.batchUpdateInsofDataApi({dataList:ir});return}if((nr==null?void 0:nr.length)===1){const hl=(pa=(We=(il=j==null?void 0:j.data)==null?void 0:il.data)==null?void 0:We.path)==null?void 0:pa.path;let ir="";(Jl=(Tl=(_e=(ka=(ma=hl==null?void 0:hl.split("("))==null?void 0:ma[1])==null?void 0:ka.split(")"))==null?void 0:_e[0])==null?void 0:Tl.split(":"))==null||Jl.forEach(Sl=>{var ar,Br;ir=ir===""?ir+((ar=Sl==null?void 0:Sl.replaceAll("'",""))==null?void 0:ar.trim()):ir+"/"+((Br=Sl==null?void 0:Sl.replaceAll("'",""))==null?void 0:Br.trim())});let Ll=[(Re=(Gl=(pr=(er=(rr=hl==null?void 0:hl.split("<"))==null?void 0:rr[1])==null?void 0:er.split(">"))==null?void 0:pr[0])==null?void 0:Gl.replaceAll("'",""))==null?void 0:Re.trim()],xr;return(Tr=(fr=(jl=j==null?void 0:j.data)==null?void 0:jl.data)==null?void 0:fr.data)!=null&&Tr[nr==null?void 0:nr[0]]?xr=await te((Lr=(Hl=(hr=j==null?void 0:j.data)==null?void 0:hr.data)==null?void 0:Hl.data)==null?void 0:Lr[nr==null?void 0:nr[0]],ir,nr,ca):xr=await Me((Nr=(Pl=j==null?void 0:j.data)==null?void 0:Pl.data)==null?void 0:Nr.data,ir,Ll,ze),xr}else{const hl=(ql=(wr=(Ur=j==null?void 0:j.data)==null?void 0:Ur.data)==null?void 0:wr.path)==null?void 0:ql.path;let ir="";return(Ir=(Vr=(Ql=(_r=(ln=hl==null?void 0:hl.split("("))==null?void 0:ln[1])==null?void 0:_r.split(")"))==null?void 0:Ql[0])==null?void 0:Vr.split(":"))==null||Ir.forEach(xr=>{var Sl,ar;ir=ir===""?ir+((Sl=xr==null?void 0:xr.replaceAll("'",""))==null?void 0:Sl.trim()):ir+"/"+((ar=xr==null?void 0:xr.replaceAll("'",""))==null?void 0:ar.trim())}),await me((tn=(vn=(Rr=j==null?void 0:j.data)==null?void 0:Rr.data)==null?void 0:vn.data)==null?void 0:tn[nr==null?void 0:nr[0]],ir,nr)}}}}});if(await Promise.all(ya),(pe==null?void 0:pe.length)>0){let aa=[];pe==null||pe.forEach(Ae=>{aa!=null&&aa.find(Je=>{var Na,Ca,la,$a;return((Ca=(Na=Je==null?void 0:Je.value)==null?void 0:Na.pageData)==null?void 0:Ca.name)===(($a=(la=Ae==null?void 0:Ae.value)==null?void 0:la.pageData)==null?void 0:$a.name)})||aa.push(Ae)});let ce=[];aa==null||aa.forEach(Ae=>{var Ca,la,$a,va;let Je=A.cloneDeep(Ae);Je.value.pageData.compData=(Ca=Je.value.pageData.compData)==null?void 0:Ca.map(W=>{var Te;return(W==null?void 0:W.key)==="formContent"&&(W.contents=(Te=W.contents)==null?void 0:Te.map(Ie=>{var wa,oa,Qe,He;let we=(wa=A.cloneDeep(pe))==null?void 0:wa.find(qe=>(qe==null?void 0:qe.keyType)===(Ie==null?void 0:Ie.key));if(we){let qe=(He=(Qe=(oa=we.value.pageData.compData)==null?void 0:oa.find(fe=>(fe==null?void 0:fe.key)==="formContent"))==null?void 0:Qe.contents)==null?void 0:He.find(fe=>(fe==null?void 0:fe.key)===(Ie==null?void 0:Ie.key));Ie.value=qe==null?void 0:qe.value}return Ie})),W}),ce.push({id:Je==null?void 0:Je.id,value:Je==null?void 0:Je.value});let Na=[];(va=($a=(la=Je==null?void 0:Je.value)==null?void 0:la.pageData)==null?void 0:$a.compData)==null||va.forEach(W=>{var Te;(W==null?void 0:W.key)==="formContent"&&((Te=W==null?void 0:W.contents)==null||Te.forEach(Ie=>{var we,wa,oa,Qe,He,qe;if((wa=(we=Ie==null?void 0:Ie.optionUrl)==null?void 0:we.menuSelect)!=null&&wa.find(fe=>fe==null?void 0:fe.includes("[")))if(Na!=null&&Na.find(fe=>{var ke,da,La;return((ke=fe==null?void 0:fe.key)==null?void 0:ke.join(","))===((La=(da=Ie==null?void 0:Ie.optionUrl)==null?void 0:da.menuSelect)==null?void 0:La.join(","))})){let fe=(oa=Na==null?void 0:Na.find(ke=>{var da,La,dl;return((da=ke==null?void 0:ke.key)==null?void 0:da.join(","))===((dl=(La=Ie==null?void 0:Ie.optionUrl)==null?void 0:La.menuSelect)==null?void 0:dl.join(","))}))==null?void 0:oa.value;fe.push({key:Ie==null?void 0:Ie.prop,groups:(Qe=Ie==null?void 0:Ie.optionUrl)==null?void 0:Qe.groupSelect,value:Ie==null?void 0:Ie.value}),Na=Na==null?void 0:Na.map(ke=>{var da,La,dl;return((da=ke==null?void 0:ke.key)==null?void 0:da.join(","))===((dl=(La=Ie==null?void 0:Ie.optionUrl)==null?void 0:La.menuSelect)==null?void 0:dl.join(","))&&(ke.value=fe),ke})}else Na.push({key:(He=Ie==null?void 0:Ie.optionUrl)==null?void 0:He.menuSelect,value:[{key:Ie==null?void 0:Ie.prop,groups:(qe=Ie==null?void 0:Ie.optionUrl)==null?void 0:qe.groupSelect,value:Ie==null?void 0:Ie.value}]})}))}),(Na==null?void 0:Na.length)>0&&(Na=Na==null?void 0:Na.map(W=>{var Ie;let Te="";return(Ie=W==null?void 0:W.key)==null||Ie.forEach(we=>{var wa;if(!(we!=null&&we.includes("[")))Te=Te===""?Te+we:Te+"/"+we;else{let oa="",Qe=(wa=we==null?void 0:we.replaceAll("[","").replaceAll("]",""))==null?void 0:wa.split(":");Ke==null||Ke.forEach(He=>{var qe;(He==null?void 0:He.name)===(Qe==null?void 0:Qe[0])&&((qe=He==null?void 0:He.compData)==null||qe.forEach(fe=>{var ke;(fe==null?void 0:fe.key)==="formContent"&&((ke=fe==null?void 0:fe.contents)==null||ke.forEach(da=>{(da==null?void 0:da.prop)===(Qe==null?void 0:Qe[1])&&(oa=da==null?void 0:da.value)}))}))}),Te=Te+r.value+oa}}),W.key=Te,W})),Na==null||Na.forEach(W=>{var wa,oa,Qe;let Te=(wa=ze[W.key])==null?void 0:wa.find(He=>{var qe,fe,ke,da,La,dl,Ol;return((fe=(qe=He==null?void 0:He.value)==null?void 0:qe.pageData)==null?void 0:fe.name)===((La=(da=(ke=W==null?void 0:W.value)==null?void 0:ke[0])==null?void 0:da.groups)==null?void 0:La[0])&&((Ol=(dl=He==null?void 0:He.value)==null?void 0:dl.pageData)==null?void 0:Ol.name)!==void 0}),Ie=Te==null?void 0:Te.id,we=(oa=Te==null?void 0:Te.value)==null?void 0:oa.pageData;we.compData=(Qe=we.compData)==null?void 0:Qe.map(He=>{var qe;return(He==null?void 0:He.key)==="formContent"&&(He.contents=(qe=He.contents)==null?void 0:qe.map(fe=>{var da;let ke=(da=W.value)==null?void 0:da.find(La=>(La==null?void 0:La.key)===(fe==null?void 0:fe.prop));return ke&&(fe.value=ke.value),fe})),He}),ce.push({id:Ie,value:{pageData:we}})})});let ga=(oe=A.cloneDeep(pe))==null?void 0:oe[0];(ce==null?void 0:ce.length)>0&&await Mr.batchUpdateInsofDataApi({dataList:ce})}m.setFreshContent(!0)}u.setImportLoading(!1)}catch{Ua.ElMessage.error("方法执行错误,请查看方法!"),u.setImportLoading(!1)}_.value=!0},se=["createInsofDataApi"],Be=Bl.debounce(async he=>{Z(he)},100),Ve=async he=>{var Fe,ea,Ba;const N=A.cloneDeep(he);let ie,U=new WeakMap;he!=null&&he[0].path&&(ie=await(N==null?void 0:N.map(async(ee,ua)=>{var Ya,R,j,J,ve,pe,ya,aa,ce,ga,Ae,Je,Na,Ca,la,$a;const sa=(Ya=U[ee==null?void 0:ee.path])==null?void 0:Ya.filter(va=>{var W;return((W=va==null?void 0:va.key)==null?void 0:W.type)==="data"});let Se="";const oe=await de.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);sa==null||sa.forEach(va=>{var W,Te,Ie,we,wa;((Te=(W=va==null?void 0:va.value)==null?void 0:W.tableData)==null?void 0:Te.算法名称)===((Ie=N==null?void 0:N[ua])==null?void 0:Ie.method)&&(Se=(wa=(we=va==null?void 0:va.value)==null?void 0:we.tableData)==null?void 0:wa.算法体)});const ze=await de.getItemData(ee==null?void 0:ee.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);let Ke="",ca=(ve=(J=(j=(R=ze==null?void 0:ze[0])==null?void 0:R.compData)==null?void 0:j.find(va=>(va==null?void 0:va.key)==="header"))==null?void 0:J.contents)==null?void 0:ve.findIndex(va=>(va==null?void 0:va.prop)==="算法体");return(ya=(pe=ze==null?void 0:ze[0])==null?void 0:pe.compData)==null||ya.forEach(va=>{var W;(va==null?void 0:va.key)==="tableContents"&&((W=va==null?void 0:va.contents)==null||W.forEach(Te=>{Te!=null&&Te.find(Ie=>Ie===(ee==null?void 0:ee.method))&&(Ke=Te[ca])}))}),{buttonName:((aa=N==null?void 0:N[ua])==null?void 0:aa.method)||((Ae=(ga=(ce=sa==null?void 0:sa[0])==null?void 0:ce.value)==null?void 0:ga.tableData)==null?void 0:Ae.算法名称),api:(Se===""?(Ca=(Na=(Je=sa==null?void 0:sa[0])==null?void 0:Je.value)==null?void 0:Na.tableData)==null?void 0:Ca.算法体:Se)||Ke,content:oe==null?void 0:oe.filter(va=>va.comp!=="methodButton"),extraContent:(la=A.cloneDeep(ee.value))==null?void 0:la.slice(1),methodName:(ee==null?void 0:ee.path)??"",extraValues:($a=N==null?void 0:N[ua])==null?void 0:$a.data}})));const De=N==null?void 0:N.map(async ee=>{var ze,Ke,ca,Ya,R,j;const ua=(ze=resAll.data.result)==null?void 0:ze.filter(J=>{var ve,pe,ya;return((ve=J==null?void 0:J.key)==null?void 0:ve.parentTable)===""&&((pe=J==null?void 0:J.key)==null?void 0:pe.type)==="method"&&((ya=J==null?void 0:J.key)==null?void 0:ya.methodName)===J.method}),ue=ua==null?void 0:ua[0],sa=(Ke=resAll.data.result)==null?void 0:Ke.filter(J=>{var ve,pe;return((ve=J==null?void 0:J.key)==null?void 0:ve.type)==="methodData"&&((pe=J==null?void 0:J.key)==null?void 0:pe.tableId)===(ue==null?void 0:ue.id)}),Se=await de.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U),oe=sa==null?void 0:sa[0];return{buttonName:(ca=ue==null?void 0:ue.key)==null?void 0:ca.methodKey,api:(R=(Ya=oe==null?void 0:oe.value)==null?void 0:Ya.tableData)==null?void 0:R[0],content:Se==null?void 0:Se.filter(J=>J.comp!=="methodButton"),extraContent:(j=A.cloneDeep(ee.value))==null?void 0:j.slice(1),methodName:(ee==null?void 0:ee.method)??""}}),Oe=(Fe=he==null?void 0:he[0])!=null&&Fe.path&&((ea=he==null?void 0:he[0])==null?void 0:ea.path)!==""?await Promise.all(ie):await Promise.all(De);l.value=Oe==null?void 0:Oe.filter(ee=>ee==null?void 0:ee.extraContent),(Ba=l.value)==null||Ba.forEach(ee=>{var ua;ee.api===""&&((ua=ee.content)==null||ua.forEach(ue=>{var sa;ue.comp=="Table"&&m.setExtraContents(de.methodTableToContent(ue.compData,(sa=ee.extraContent)==null?void 0:sa[0]))}))})};return e.watch(()=>o.itemData,async()=>{k.value=="view"&&!_.value&&await Ve(A.cloneDeep(o.itemData)),_.value=!1},{immediate:!0,deep:!0}),(he,N)=>{var ie,U,De;return e.unref(k)!=="edit"?(e.openBlock(),e.createElementBlock("div",a4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ie=l.value)==null?void 0:ie.filter(Oe=>(Oe==null?void 0:Oe.buttonName)!=="保存"),Oe=>{var Fe;return e.openBlock(),e.createElementBlock("div",null,[Oe.api!==""?(e.openBlock(),e.createBlock(e.unref(rs._sfc_main),{key:0,disabled:e.unref(H)===e.unref(E)&&!((Fe=Oe==null?void 0:Oe.buttonName)!=null&&Fe.includes("预览")),class:"calculator-content",modelValue:Oe.buttonName,onClickTrigger:ea=>e.unref(Be)(Oe),loading:g.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(K)!==""&&((De=e.unref(E))==null?void 0:De[((U=e.unref(E))==null?void 0:U.length)-1])!==e.unref(r)?(e.openBlock(),e.createBlock(e.unref(rs._sfc_main),{key:0,class:"calculator-content",onClickTrigger:$,modelValue:"保存"})):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(al.ssFilePreview,{key:0,fileDataList:h.value,onDestroy:V},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},r4=Zl._export_sfc(l4,[["__scopeId","data-v-063aa9af"]]),n4={};function i4(a,l){return" 567 "}const o4=Zl._export_sfc(n4,[["render",i4]]),t4={class:"module content"},s4={class:"module data"},c4={class:"module layout"},u4={class:"form-content"},d4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.reactive({visible:!1,width:"40%",title:"签名配置"}),s=e.ref("create"),h=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),p=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),m=e.ref({}),g=e.ref([]),u=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:g.value},{key:"signConfig",contents:m.value}]}),D=I=>{var H;m.value=A.cloneDeep(I),r("change",(H=u())==null?void 0:H.compData)},M=I=>{var H,L;if((I==null?void 0:I.buttonName)==="确认"){const E=A.cloneDeep(I==null?void 0:I.content);switch(s.value){case"create":g.value.push({...E,index:((H=g.value)==null?void 0:H.length)+1});break}r("change",(L=u())==null?void 0:L.compData),o.visible=!1}else o.visible=!1},k=(I,H)=>{var L,E;switch(I){case"create":(L=p.value)==null||L.forEach(x=>{x.value=""}),s.value="create",o.visible=!0;break;case"update":(E=p.value)==null||E.forEach(x=>{x.value=H[x==null?void 0:x.prop]}),s.value="update",o.visible=!0;break;case"delete":g.value.splice(H,1),s.value="delete";break}},K=()=>{o.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,I=>{var H,L;I&&(m.value=((H=I==null?void 0:I.find(E=>E.key==="signConfig"))==null?void 0:H.contents)??{},g.value=((L=I==null?void 0:I.find(E=>E.key==="signTypeList"))==null?void 0:L.contents)??[])},{immediate:!0}),(I,H)=>{const L=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",t4,[H[2]||(H[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:H[0]||(H[0]=x=>k("create"))},{icon:e.withCtx(()=>[e.createVNode(L,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",s4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:w},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.label),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>k("update",{...x,index:w+1})},{default:e.withCtx(()=>H[3]||(H[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>k("delete",w)},{default:e.withCtx(()=>H[4]||(H[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",c4,[e.createVNode(al.ssForm,{rowContents:c.value,onChange:D},null,8,["rowContents"])])]),e.createVNode(Dr.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:K,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",u4,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:p.value,key:p.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:h.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),p4=Zl._export_sfc(d4,[["__scopeId","data-v-487e0536"]]),f4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(0),s=e.computed(()=>{var u,D;return(u=n==null?void 0:n.stepConfig)!=null&&u.allowTrigger?o.value:(D=n==null?void 0:n.stepConfig)==null?void 0:D.active}),h=(u,D)=>{o.value=D-1,r("clickStep",u,D)};e.onMounted(()=>{var u;r("clickStep",(u=n==null?void 0:n.stepList)==null?void 0:u[0],0)});const c=u=>al.getComponent(u),p=()=>{var D;const u=(D=n==null?void 0:n.stepList)==null?void 0:D.find((M,k)=>k+1===s.value);return console.log("findStep",u),u?u==null?void 0:u.children:[]},m=u=>{r("clickTrigger",u)},g=u=>{r("changeTrigger",u)};return(u,D)=>{var K,I,H,L,E;const M=e.resolveComponent("el-step"),k=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k,{direction:(K=a.stepConfig)==null?void 0:K.direction,active:s.value,"finish-status":"success",simple:(I=a.stepConfig)==null?void 0:I.simple,"align-center":((H=a.stepConfig)==null?void 0:H.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(x,w)=>(e.openBlock(),e.createBlock(M,{key:w,class:"step-item",onClick:b=>h(x,w+1)},{title:e.withCtx(()=>[e.renderSlot(u.$slots,"title",{title:x==null?void 0:x.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(u.$slots,"description",{descriptions:x==null?void 0:x.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(L=a.stepConfig)!=null&&L.allowTrigger&&((E=a.stepConfig)!=null&&E.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p(),(x,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(x==null?void 0:x.type)),{modelValue:x.value,"onUpdate:modelValue":b=>x.value=b,onClickTrigger:m,onChangeTrigger:g,content:x==null?void 0:x.content},e.createSlots({_:2},[e.renderList(u.$slots,(b,_)=>({name:_,fn:e.withCtx($=>[e.renderSlot(u.$slots,_,e.mergeProps({ref_for:!0},$||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),h4=Zl._export_sfc(f4,[["__scopeId","data-v-fdbd6832"]]),v4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const n=a,r=l,o=e.ref({}),s=e.ref([]),h=(c,p)=>{r("clickStep",c,p)};return e.watch(()=>n==null?void 0:n.itemData,c=>{var u,D,M,k;o.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let p=((u=c==null?void 0:c.find(K=>(K==null?void 0:K.key)==="stepName"))==null?void 0:u.contents)??[],m=[];(M=(D=c==null?void 0:c.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:D.contents)==null||M.forEach(K=>{m.push({label:K==null?void 0:K.label,prop:K==null?void 0:K.prop,name:K==null?void 0:K.prop,type:"text",disabled:!0})});let g=((k=c==null?void 0:c.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:k.contents)??[];p=p==null?void 0:p.map((K,I)=>{let H=m==null?void 0:m.map(L=>{var E;return{...L,value:(E=g==null?void 0:g[I])==null?void 0:E[L==null?void 0:L.prop]}});return{title:K,description:H}}),s.value=p},{immediate:!0,deep:!0}),(c,p)=>{const m=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(h4,{stepConfig:o.value,stepList:s.value,onClickStep:h},{icon:e.withCtx(()=>[e.createVNode(m,{name:"import"})]),title:e.withCtx(({title:g})=>[e.createTextVNode(e.toDisplayString(g),1)]),description:e.withCtx(({descriptions:g})=>[e.createVNode(al.ssForm,{ref:"formRef",rowContents:g,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),m4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,n)=>{const r=e.resolveComponent("el-timeline-item"),o=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(o,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(s,h)=>(e.openBlock(),e.createBlock(r,{key:h,timestamp:s.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"content",{content:s==null?void 0:s.content,timestamp:s==null?void 0:s.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),y4=Zl._export_sfc(m4,[["__scopeId","data-v-4172a886"]]),g4={class:"line-content"},b4={class:"line-time"},k4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,n=e.ref({}),r=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,o=>{var s,h;r.value=(s=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineList"))==null?void 0:s.contents,n.value=(h=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineConfig"))==null?void 0:h.contents},{immediate:!0}),(o,s)=>(e.openBlock(),e.createBlock(y4,{activities:r.value,timeLineConfig:n.value},{content:e.withCtx(({content:h,timestamp:c})=>[e.createElementVNode("span",g4,e.toDisplayString(h),1),e.createElementVNode("span",b4,e.toDisplayString(c),1)]),_:1},8,["activities","timeLineConfig"]))}}),x4=Zl._export_sfc(k4,[["__scopeId","data-v-b4d9deed"]]),w4={class:"tabs-content"},_4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(a,{emit:l}){const n=a,r=l,o=e.ref();e.watch(()=>n==null?void 0:n.itemData,()=>{o.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const s=D=>{r("change",D)},h=(D,M)=>{r("contentChange",D,M)},c=D=>{r("pageChange",D)},p=D=>{r("rowClick",D)},m=(D,M)=>{r("routeUrl",D,M)},g=D=>{r("clickTrigger",D)},u=(D,M)=>{r("clickMainKey",D,M)};return(D,M)=>{var k,K;return e.openBlock(),e.createElementBlock("div",w4,[(k=o.value)!=null&&k.length?(e.openBlock(),e.createBlock(al.ssTab,{tabsContents:o.value,key:(K=o.value)==null?void 0:K.length},{pane:e.withCtx(({tab:I,index:H})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(I==null?void 0:I.comp)),{related:I==null?void 0:I.relatedTables,compNames:n==null?void 0:n.compNames,compName:I==null?void 0:I.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:a.isDevMode,itemData:I==null?void 0:I.compData,childItemData:I==null?void 0:I.itemChildData,onChange:s,index:(I==null?void 0:I.id)??H,config:{showIndex:I==null?void 0:I.showIndex,allowMove:I==null?void 0:I.allowMove,viewport:I==null?void 0:I.viewport,status:I==null?void 0:I.status},onContentChange:h,onPageChange:c,onRowClick:p,onRouteUrl:m,parentTableId:I==null?void 0:I.tableId,allMapContents:a.allMapContents,children:I==null?void 0:I.children,level:1,onClickTrigger:g,onClickMainKey:u},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),S4=Zl._export_sfc(_4,[["__scopeId","data-v-1ea318b4"]]),E4={class:"type-select"},C4=["onClick"],D4={class:"list-icon"},B4={__name:"modelSelect",setup(a){const l=Hn(A.pinia),{itemData:n}=A.storeToRefs(l),r=o=>{const s=A.cloneDeep(n.value);s.push({comp:o.comp,name:o.name,compData:[]}),l.setItemData(s)};return(o,s)=>{const h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",E4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ru),(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:p},[e.createElementVNode("div",{class:"list-content",onClick:m=>r(c)},[e.createElementVNode("div",D4,[e.createVNode(h,{name:c.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(c.name),1)],8,C4)]))),128))])}}},T4=Zl._export_sfc(B4,[["__scopeId","data-v-91799bf8"]]),N4={class:"fill-content"},A4={class:"operate-content"},z4={class:"collapse-title-content"},M4={class:"collapse-title-item"},I4={key:1},O4=["onClick"],L4={class:"icon-content"},R4={key:0,class:"edit-content"},$4=["onClick"],V4={class:"comp-child"},P4={__name:"modelFill",setup(a){const l=Hn(A.pinia),{itemData:n,originalData:r}=A.storeToRefs(l),o=e.ref([]);e.ref([]);const s=e.ref([]),h=e.ref([]),c=M=>{var K;let k=(K=A.cloneDeep(h.value))==null?void 0:K.map((I,H)=>(M===H&&(I.content=!0),I));h.value=k},p=M=>{var K;let k=(K=A.cloneDeep(h.value))==null?void 0:K.map((I,H)=>(M===H&&(I.content=!1),I));h.value=k,o.value=A.cloneDeep(n.value)},m=(M,k)=>{var L;let K=(L=A.cloneDeep(h.value))==null?void 0:L.map((E,x)=>(M===x&&(E.content=!1),E));h.value=K;const I=A.cloneDeep(n.value),H=I==null?void 0:I.filter((E,x)=>(x===M&&(E.name=k),E));l.setOriginalData(H),l.setItemData(H)};e.watch(()=>n.value,()=>{var M,k,K;!n.value||((M=n.value)==null?void 0:M.length)===0?o.value=[]:o.value=(k=A.cloneDeep(n.value))==null?void 0:k.filter(I=>(I==null?void 0:I.comp)!=="methodButton"),s.value=o.value,h.value=(K=A.cloneDeep(s.value))==null?void 0:K.map((I,H)=>({id:H,content:!1}))},{deep:!0,immediate:!0});const g=M=>Ti(M),u=(M,k,K)=>{var H,L;if(!M)return;let I=A.cloneDeep(n.value);I=(H=I==null?void 0:I.map((E,x)=>(x===K&&(E.compData=M),E)))==null?void 0:H.filter(E=>(E==null?void 0:E.comp)!=="methodButton"),h.value=(L=A.cloneDeep(I))==null?void 0:L.map((E,x)=>({id:x,content:!1})),l.setOriginalData(I),l.setItemData(I)},D=M=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const k=A.cloneDeep(n.value),K=k==null?void 0:k.filter((I,H)=>H!==M);l.setOriginalData(K),l.setItemData(K),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(M,k)=>{const K=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",N4,[k[1]||(k[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",A4,[e.createVNode(Js.default,{class:"collapse-content",collapseContents:o.value},{title:e.withCtx(({item:I,index:H})=>{var L,E,x,w,b,_,$,V,ne,X;return[e.createElementVNode("div",z4,[e.createElementVNode("div",M4,[(E=(L=h.value)==null?void 0:L.find(me=>me.id===H))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:I.name&&I.name!==""?"8px":"0px"})},e.toDisplayString(I.name),5)),(w=(x=h.value)==null?void 0:x.find(me=>me.id===H))!=null&&w.content?(e.openBlock(),e.createElementBlock("div",I4,[e.createVNode(al.ssInput,{modelValue:I.name,"onUpdate:modelValue":me=>I.name=me,onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(_=(b=h.value)==null?void 0:b.find(me=>me.id===H))!=null&&_.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(me=>c(H),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Edit",style:{width:"16px",height:"16px"}})],8,O4))]),e.createElementVNode("div",L4,[(V=($=h.value)==null?void 0:$.find(me=>me.id===H))!=null&&V.content?(e.openBlock(),e.createElementBlock("div",R4,[e.createVNode(K,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(me=>p(H),["stop"])},null,8,["onClick"]),e.createVNode(K,{name:"Save",onClick:e.withModifiers(me=>m(H,I.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(X=(ne=h.value)==null?void 0:ne.find(me=>me.id===H))!=null&&X.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(me=>D(H),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Delete",style:{width:"16px",height:"16px"}})],8,$4))])])]}),content:e.withCtx(({item:I,index:H})=>{var L,E;return[e.createElementVNode("div",V4,[e.createTextVNode(e.toDisplayString(g(I.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g(I.comp+"Operate")),{itemContents:I==null?void 0:I.compData,originalItemContents:(E=(L=s.value)==null?void 0:L.find((x,w)=>w===H))==null?void 0:E.compData,onChange:x=>u(x,I,H)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},F4=Zl._export_sfc(P4,[["__scopeId","data-v-a46a44b9"]]),j4={key:0,class:"show-content"},H4={style:{display:"flex"}},U4={__name:"modelShow",setup(a){const l=Hn(A.pinia),{itemData:n}=A.storeToRefs(l),r=e.ref([]);e.watch(()=>n.value,()=>{var s;!n.value||((s=n.value)==null?void 0:s.length)===0?r.value=[]:r.value=A.cloneDeep(n.value)},{deep:!0,immediate:!0});const o=s=>Ti(s);return(s,h)=>{var c;return((c=r.value)==null?void 0:c.length)>0?(e.openBlock(),e.createElementBlock("div",j4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(p,m)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:m},[e.createElementVNode("div",H4,e.toDisplayString(p.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(p.comp)),{itemData:p==null?void 0:p.compData,childItemData:p==null?void 0:p.itemChildData,key:m},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},q4=Zl._export_sfc(U4,[["__scopeId","data-v-3f3e863e"]]),W4={class:"tabs-header"},K4={class:"tabs-list"},G4={class:"tab-name"},Y4={class:"tab-actions"},J4=["onClick"],X4=["onClick"],Z4=["onClick"],Q4={class:"model-operate"},e6={class:"model-select",style:{display:"unset"}},a6={class:"existing-components"},l6={class:"component-list"},r6=["onClick"],n6={class:"component-info"},i6={class:"component-type"},o6={class:"component-name"},t6={class:"model-fill"},s6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.ref([]),s=e.ref(!1),h=e.ref(""),c=e.ref({title:""}),p=e.ref(-1),m=e.ref(!1),g=e.ref(-1),u=e.ref(new WeakMap),D=e.ref(null),M=Hn(A.pinia),{itemData:k}=A.storeToRefs(M),K=()=>{h.value="新增标签页",c.value.title="",p.value=-1,s.value=!0},I=he=>{h.value="修改标签页",c.value.title=o.value[he].title,p.value=he,s.value=!0},H=he=>{const N=x(he);u.value.delete(N),o.value.splice(he,1),Ve()},L=()=>{if(c.value.title.trim()){if(p.value===-1){const he={title:c.value.title,value:c.value.title,label:c.value.title,children:[],id:E()};o.value.push(he)}else o.value[p.value].title=c.value.title,o.value[p.value].value=c.value.title,o.value[p.value].label=c.value.title;s.value=!1,Ve()}},E=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,x=he=>{const N=o.value[he];return N.id||(N.id=E()),N.id},w=he=>{var U;g.value=he;const N=x(he);D.value=A.cloneDeep(k.value);let ie=u.value.get(N);!ie&&((U=o.value[he].children)==null?void 0:U.length)>0&&(ie=V(o.value[he].children)),ie?M.setItemData(A.cloneDeep(ie)):M.setItemData([]),m.value=!0},b=e.computed(()=>{const he=A.useModelComp(A.pinia),N=A.storeToRefs(he).itemData.value;return console.log("可用组件数据",N),!N||!Array.isArray(N)?[]:N.filter(ie=>{var U;if(ie.comp==="Tabs"&&g.value>=0){const De=x(g.value);if((U=ie.compData)==null?void 0:U.some(Fe=>{var ea;return Fe.key==="stepList"&&((ea=Fe.contents)==null?void 0:ea.some(Ba=>Ba.id===De))}))return!1}return!0})}),_=he=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[he]||he,$=he=>{var N;try{const ie=A.cloneDeep(he);ie.id=Date.now()+Math.random(),ie.comp==="Tabs"&&((N=ie.compData)==null||N.forEach(De=>{De.key==="stepList"&&De.contents&&De.contents.forEach(Oe=>{Oe.id=E()})}));const U=A.cloneDeep(k.value);U.push(ie),M.setItemData(U)}catch(ie){console.error("添加组件失败:",ie)}},V=he=>he.map(N=>{var ie;switch(N.type){case"form":return{comp:"Form",name:N.value||"表单",compData:ne(N.content)};case"table":return{comp:"Table",name:N.value||"表格",compData:X(N.content)};default:return{comp:"Unknown",name:N.value||"",compData:((ie=N.content)==null?void 0:ie.originalData)||[]}}}),ne=he=>{if(!he)return[];const N=[];return he.rowContents&&N.push({key:"formContent",contents:he.rowContents}),he.buttonValue&&N.push({key:"formButton",contents:he.buttonValue}),typeof he.isEnableWrap<"u"&&N.push({key:"enableWrap",contents:he.isEnableWrap}),N},X=he=>[],me=()=>{if(g.value>=0&&g.value<o.value.length){const he=x(g.value);u.value.set(he,A.cloneDeep(k.value)),o.value[g.value].children=te(k.value),console.log("保存后的数据",te(k.value))}m.value=!1,g.value=-1,D.value=null,Ve()},Me=()=>{D.value&&M.setItemData(A.cloneDeep(D.value)),m.value=!1,g.value=-1,D.value=null},F=()=>{m.value&&Me()},te=he=>{if(!Array.isArray(he))throw new Error("sourceData must be an array");return he.map((N,ie)=>{if(!N||typeof N!="object")return N;const{comp:U,name:De,compData:Oe}=N;switch(U){case"Form":return{type:"form",content:Z(Oe||[]),value:"表单"};case"Table":return{type:"table",content:se(Oe||[]),value:"表格"};default:return{type:"xxx",content:Be(Oe||[]),value:""}}})},Z=he=>{const N={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},ie={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return he.forEach((U,De)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${De}:`,U);return}const{key:Oe,contents:Fe}=U,ea=ie[Oe];if(!ea){console.warn(`Unknown Form config key: ${Oe}`);return}Oe==="enableWrap"?N[ea]=!!Fe:N[ea]=Array.isArray(Fe)?Fe:[]}),N},se=he=>{const N={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},ie={header:"columns",tableContents:"tableData"};return he.forEach((U,De)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${De}:`,U);return}const{key:Oe,contents:Fe}=U,ea=ie[Oe];if(!ea){console.warn(`Unknown Table config key: ${Oe}`);return}N[ea]=Array.isArray(Fe)?Fe:[]}),N},Be=he=>(console.log("Default conversion logic - to be implemented"),{originalData:he,processed:!1,componentType:"unknown"}),Ve=()=>{const he=[{key:"stepList",contents:o.value}];r("change",he)};return e.watch(()=>n.itemContents,he=>{if(he&&he.length>0){const N=he.find(ie=>ie.key==="stepList");N&&N.contents&&(o.value=N.contents.map(ie=>({title:ie.title||"",value:ie.value||ie.title||"",label:ie.label||ie.title||"",children:ie.children||[],id:ie.id||E()})))}},{immediate:!0,deep:!0}),(he,N)=>{const ie=e.resolveComponent("svg-icon"),U=e.resolveComponent("el-input"),De=e.resolveComponent("el-form-item"),Oe=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",W4,[N[6]||(N[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:K},[e.createVNode(ie,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),N[5]||(N[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",K4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(Fe,ea)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:ea},[e.createElementVNode("span",G4,e.toDisplayString(Fe.title),1),e.createElementVNode("div",Y4,[e.createElementVNode("button",{onClick:Ba=>I(ea)},"修改标题",8,J4),e.createElementVNode("button",{onClick:Ba=>w(ea)},"布局调整",8,X4),e.createElementVNode("button",{onClick:Ba=>H(ea)},"删除",8,Z4)])]))),128))]),e.createVNode(Dr.ssDialog,{modelValue:s.value,"onUpdate:modelValue":N[2]||(N[2]=Fe=>s.value=Fe),title:h.value,onBeforeDestroy:N[3]||(N[3]=Fe=>s.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:N[1]||(N[1]=Fe=>s.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:L},"确定")]),default:e.withCtx(()=>[e.createVNode(Oe,{model:c.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(De,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:c.value.title,"onUpdate:modelValue":N[0]||(N[0]=Fe=>c.value.title=Fe),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Dr.ssDialog,{modelValue:m.value,"onUpdate:modelValue":N[4]||(N[4]=Fe=>m.value=Fe),title:"布局调整",fullScreen:"",onBeforeDestroy:F},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:Me},"取消"),e.createElementVNode("button",{onClick:me},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",Q4,[e.createElementVNode("div",e6,[e.createVNode(T4),e.createElementVNode("div",a6,[N[8]||(N[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",l6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,Fe=>(e.openBlock(),e.createElementBlock("div",{key:Fe.id,class:"component-item",onClick:ea=>$(Fe)},[e.createElementVNode("div",n6,[e.createElementVNode("span",i6,e.toDisplayString(_(Fe.comp)),1),e.createElementVNode("span",o6,e.toDisplayString(Fe.name),1)]),N[7]||(N[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,r6))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:he.innerWidth},[e.createVNode(q4)])),e.createElementVNode("div",t6,[e.createVNode(F4)])])]),_:1},8,["modelValue"])])}}},c6=Zl._export_sfc(s6,[["__scopeId","data-v-9096ed0d"]]);function u6(){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 d6(a){return{type:"line",...a}}function p6(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:[{type:"value"}],series:[]}}function f6(a){return{type:"bar",barWidth:"60%",...a}}function h6(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function v6(a){return{type:"pie",radius:"80%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...a}}const m6=()=>({title:{text:"",left:"center"},tooltip:{trigger:"item"},xAxis:{scale:!0},yAxis:{scale:!0},series:[]}),y6=a=>({type:"scatter",symbolSize:20,...a}),kn={Line:{initBaseoptions:u6,initSeries:d6},Bar:{initBaseoptions:p6,initSeries:f6},Pie:{initBaseoptions:h6,initSeries:v6},Scatter:{initBaseoptions:m6,initSeries:y6}},g6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";const m=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(m==null||m.forEach(D=>{var M;g.push((M=n==null?void 0:n[0])==null?void 0:M[D])}),!m||!g)return p;p.xAxis.data=m;const u=c({data:g});return p.series.push(u),p},b6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";const m=l==null?void 0:l.map(D=>D==null?void 0:D.prop);let g=[];if(m==null||m.forEach(D=>{var M;g.push((M=n==null?void 0:n[0])==null?void 0:M[D])}),!m||!g)return p;p.xAxis.data=m;const u=c({data:g});return p.series.push(u),p},k6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";const m=l==null?void 0:l.map(M=>M==null?void 0:M.prop);let g=[];if(m==null||m.forEach(M=>{var k;g.push((k=n==null?void 0:n[0])==null?void 0:k[M])}),!m||!g)return p;const u=[];for(let M=0;M<m.length;M++){const k=m[M],K=g[M];u.push({name:k,value:K})}const D=c({data:u});return p.series.push(D),p},x6=({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:n})=>{const{type:r,title:o}=a||{},s=kn==null?void 0:kn[r];if(!s)return;const{initBaseoptions:h,initSeries:c}=s,p=h();p.title.text=o??"";let m=[];const g=l==null?void 0:l.map(M=>M==null?void 0:M.prop);if(m=g==null?void 0:g.map(M=>{var K;let k=[];return k.push(M),k.push((K=n==null?void 0:n[0])==null?void 0:K[M]),k}),!m)return p;const D=c({data:m});return p.series.push(D),p},w6=async(a=[])=>{var h,c,p;const l=((h=a==null?void 0:a.find(m=>m.key==="ChartType"))==null?void 0:h.contents)??{},n=((c=a==null?void 0:a.find(m=>m.key==="header"))==null?void 0:c.contents)??[],r=((p=a==null?void 0:a.find(m=>m.key==="tableContents"))==null?void 0:p.contents)??[];let{type:o}=l,s={};return o==="Line"&&(s=await g6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),o==="Bar"&&(s=await b6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),o==="Pie"&&(s=await k6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),o==="Scatter"&&(s=await x6({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})),s},_6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(a){const l=a,n=e.ref({});e.onMounted(async()=>{const o=l==null?void 0:l.itemData;n.value=await w6(o)});const r=e.computed(()=>(l==null?void 0:l.height)||"300px");return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:r.value})},[e.createVNode(zu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),S6=Zl._export_sfc(_6,[["__scopeId","data-v-d4c081e8"]]),E6={class:"chart-module layout"},C6={class:"chart-module content"},D6={class:"chart-module content"},B6={class:"form-content"},T6={class:"dialog-footer"},N6={class:"form-content"},A6={class:"dialog-footer"},z6={class:"form-content"},M6={class:"dialog-footer"},I6=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l,o=e.reactive({visible:!1,width:"840",title:"基础配置"}),s=e.ref([]),h=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],c=e.ref({}),p=()=>{var Se;s.value=h(),(Se=s.value)==null||Se.forEach(oe=>{var Ke;const ze=oe==null?void 0:oe.prop;oe.value=(Ke=c==null?void 0:c.value)==null?void 0:Ke[ze]}),o.visible=!0},m=Se=>{c.value=Se},g=()=>{var Se;o.visible=!1,r("change",(Se=ue())==null?void 0:Se.compData)},u=e.reactive({visible:!1,width:"840",title:"数据配置"}),D=e.ref([]),M=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],k=e.ref({}),K=()=>{const Se=D.value,oe=A.cloneDeep(Se);return oe==null||oe.forEach(ze=>{var ca;const Ke=ze==null?void 0:ze.prop;ze.value=(ca=k.value)==null?void 0:ca[Ke]}),oe},I=Se=>{var ze;k.value=Se;const oe=K();D.value=oe,r("change",(ze=ue())==null?void 0:ze.compData)},H=async()=>{const Se=await de.getMenusContent(),oe=K();oe==null||oe.forEach(ze=>{(ze==null?void 0:ze.prop)==="menu"&&(ze.contents=Se)}),D.value=oe,u.visible=!0,await Fe(k.value.menu),await ee(k.value.group)},L=e.reactive({visible:!1,width:"840",title:"详情页配置"}),E=e.ref([]),x=()=>[{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:[]}],w=e.ref({}),b=()=>{const Se=E.value,oe=A.cloneDeep(Se);return oe==null||oe.forEach(ze=>{var ca;const Ke=ze==null?void 0:ze.prop;ze.value=(ca=w.value)==null?void 0:ca[Ke]}),oe},_=Se=>{var ze;w.value=Se;const oe=b();E.value=oe,r("change",(ze=ue())==null?void 0:ze.compData)},$=async()=>{await F();const Se=A.cloneDeep(V.value),oe=b();oe==null||oe.forEach(ze=>{var ca;const Ke=ze==null?void 0:ze.prop;ze.value=(ca=w==null?void 0:w.value)==null?void 0:ca[Ke],Ke==="mainKey"&&(ze.contents=Se)}),E.value=oe,L.visible=!0},V=e.ref([]),ne=e.ref([]),X=e.ref({}),me=e.ref({}),Me=()=>{const{compData:Se}=U.value||{},oe=Se==null?void 0:Se.find(J=>{const{key:ve}=J;return ve==="header"}),ze=(oe==null?void 0:oe.contents)||[],Ke=ze==null?void 0:ze.filter((J,ve)=>{const{label:pe}=J;return pe!=="操作"}),ca=Ke==null?void 0:Ke.findIndex((J,ve)=>{const{isMainKey:pe}=J;return pe});if(ca<0)return[];const Ya=Se==null?void 0:Se.find(J=>{const{key:ve}=J;return ve==="tableContents"}),R=(Ya==null?void 0:Ya.contents)||[];return R==null?void 0:R.map(J=>{const ve=J==null?void 0:J[0];let pe=ca;Ua.isObject(ve)&&(ve!=null&&ve.id)&&(pe=pe+1);const ya=J==null?void 0:J[pe];return{label:ya,value:ya}})},F=async()=>{const Se=await Me();V.value=Se},te=async Se=>{const oe=sessionStorage.getItem("systemKey");return await de.getItemData(Se,oe,"")},Z=async Se=>{const oe=Se;ne.value=oe==null?void 0:oe.map(ze=>{const{name:Ke}=ze;return X.value[Ke]=ze,{label:Ke,value:Ke}})},se=Se=>{const{comp:oe,compData:ze}=me.value||{};if(oe==="Table"){let Ke=b();Ke=Ke.filter(ca=>{const{prop:Ya}=ca;return Ya!=="formItems"}),ea(Ke,ze),E.value=Ke}},Be=async()=>{var ze,Ke;const Se=(ze=w==null?void 0:w.value)==null?void 0:ze.mainKey,oe=(Ke=k==null?void 0:k.value)==null?void 0:Ke.menu;if(Se){const Ya=`${oe==null?void 0:oe.join("/")}^${Se}`,R=await te(Ya);await Z(R);const j=b();j==null||j.forEach(J=>{(J==null?void 0:J.prop)==="group"&&(J.contents=ne.value)}),E.value=j}};e.watch(()=>{var Se;return(Se=w==null?void 0:w.value)==null?void 0:Se.mainKey},async(Se,oe)=>{Se!=oe&&Se&&await Be()});const Ve=async Se=>{const oe=X.value[Se];me.value=oe,await se()};e.watch(()=>{var Se;return(Se=w==null?void 0:w.value)==null?void 0:Se.group},async(Se,oe)=>{Se!=oe&&Se&&Ve(Se)});const he=async()=>{var oe;await Be();const Se=(oe=w.value)==null?void 0:oe.group;await Ve(Se)},N=e.ref([]),ie=e.ref({}),U=e.ref({}),De=async Se=>{const oe=Se==null?void 0:Se.join("/"),ze=sessionStorage.getItem("systemKey");return await de.getItemData(oe,ze,"")},Oe=async Se=>{const oe=await De(Se);N.value=oe==null?void 0:oe.map(ze=>{const{name:Ke}=ze;return ie.value[Ke]=ze,{label:Ke,value:Ke}})},Fe=async(Se,oe)=>{await Oe(Se);const ze=K();ze==null||ze.forEach(Ke=>{(Ke==null?void 0:Ke.prop)==="group"&&(Ke.contents=N.value)}),D.value=ze};e.watch(()=>{var Se;return(Se=k==null?void 0:k.value)==null?void 0:Se.menu},async(Se,oe)=>{const ze=Se==null?void 0:Se.join("/"),Ke=oe==null?void 0:oe.join("/");ze!=Ke&&await Fe(Se)});const ea=(Se,oe)=>{const ze=oe==null?void 0:oe.find(R=>{const{key:j}=R;return j==="header"}),Ke=(ze==null?void 0:ze.contents)||[],ca=Ke==null?void 0:Ke.filter((R,j)=>{const{label:J}=R;return J!=="操作"}),Ya=ca==null?void 0:ca.map((R,j)=>{const{label:J}=R;return{label:J,value:j}});Se==null||Se.forEach(R=>{const j=R==null?void 0:R.prop;(j==="nameCol"||j==="valueCol")&&(R.contents=Ya)})},Ba=Se=>{const{comp:oe,compData:ze}=U.value||{};if(oe==="Table"){k.value.formItems=[];let Ke=K();Ke=Ke.filter(ca=>{const{prop:Ya}=ca;return Ya!=="formItems"}),ea(Ke,ze),D.value=Ke}},ee=async Se=>{const oe=ie.value[Se];U.value=oe,await Ba()};e.watch(()=>{var Se;return(Se=k==null?void 0:k.value)==null?void 0:Se.group},async(Se,oe)=>{Se!=oe&&ee(Se)});const ua=async()=>{var ze,Ke;const Se=(ze=k.value)==null?void 0:ze.menu;await Fe(Se);const oe=(Ke=k.value)==null?void 0:Ke.group;await ee(oe)},ue=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:c.value},{key:"chartDataConfig",contents:k.value},{key:"chartDetailConfig",contents:w.value}]}),sa=()=>{o.visible=!1,u.visible=!1,L.visible=!1};return e.onMounted(async()=>{var oe,ze,Ke;D.value=M(),E.value=x();const Se=n==null?void 0:n.itemContents;c.value=((oe=Se==null?void 0:Se.find(ca=>ca.key==="chartBaseConfig"))==null?void 0:oe.contents)??{},k.value=((ze=Se==null?void 0:Se.find(ca=>ca.key==="chartDataConfig"))==null?void 0:ze.contents)??{},await ua(),w.value=((Ke=Se==null?void 0:Se.find(ca=>ca.key==="chartDetailConfig"))==null?void 0:Ke.contents)??{},await he()}),(Se,oe)=>{const ze=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",E6,[oe[4]||(oe[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(ze,{id:"themeButton",onClick:oe[0]||(oe[0]=Ke=>p())},{default:e.withCtx(()=>oe[3]||(oe[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",C6,[oe[6]||(oe[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(ze,{id:"themeButton",onClick:oe[1]||(oe[1]=Ke=>H())},{default:e.withCtx(()=>oe[5]||(oe[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",D6,[oe[8]||(oe[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(ze,{id:"themeButton",onClick:oe[2]||(oe[2]=Ke=>$())},{default:e.withCtx(()=>oe[7]||(oe[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(Dr.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:sa,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",B6,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:m},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",T6,[e.createVNode(ze,{class:"cancel-button button",onClick:sa,id:"themeBorderButton"},{default:e.withCtx(()=>oe[9]||(oe[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(ze,{class:"ok-button button",onClick:g,id:"themeButton"},{default:e.withCtx(()=>oe[10]||(oe[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(Dr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:sa,width:u.width},{default:e.withCtx(()=>[e.createElementVNode("div",N6,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:I},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",A6,[e.createVNode(ze,{class:"cancel-button button",onClick:sa,id:"themeBorderButton"},{default:e.withCtx(()=>oe[11]||(oe[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(ze,{class:"ok-button button",onClick:sa,id:"themeButton"},{default:e.withCtx(()=>oe[12]||(oe[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(Dr.ssDialog,{visible:L.visible,title:L.title,onBeforeDestroy:sa,width:L.width},{default:e.withCtx(()=>[e.createElementVNode("div",z6,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",M6,[e.createVNode(ze,{class:"cancel-button button",onClick:sa,id:"themeBorderButton"},{default:e.withCtx(()=>oe[13]||(oe[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(ze,{class:"ok-button button",onClick:sa,id:"themeButton"},{default:e.withCtx(()=>oe[14]||(oe[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),O6=Zl._export_sfc(I6,[["__scopeId","data-v-fe119645"]]),L6={class:"layout"},R6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const n=l,r=a;e.onMounted(async()=>{});const o=e.computed(()=>A.cloneDeep(r==null?void 0:r.itemData)||[]),s=e.computed(()=>{var g;const m=(g=o==null?void 0:o.value)==null?void 0:g.find(u=>{const{key:D}=u;return D==="baseConfig"});return m==null?void 0:m.contents}),h=e.computed(()=>{var g;const m=(g=o==null?void 0:o.value)==null?void 0:g.find(u=>{const{key:D}=u;return D==="children"});return m==null?void 0:m.contents}),c=e.computed(()=>{let m=A.cloneDeep(h.value)||[];const g=m.length;let u=0;const D=[];if(m=m.map(M=>{const k=M.span;return k?(M.span=Number(k),u=u+M.span):D.push(M),M}),u<24){const M=Math.floor((24-u)/g);D.forEach(k=>{k.span=M})}return m}),p=m=>{n("rowClick",m)};return(m,g)=>{var M;const u=e.resolveComponent("el-col"),D=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",L6,[e.createVNode(D,{style:e.normalizeStyle({height:(M=s.value)==null?void 0:M.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(k,K)=>(e.openBlock(),e.createBlock(u,{span:k==null?void 0:k.span},{default:e.withCtx(()=>{var I;return[e.unref(Bi)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(k.comp)),{key:e.unref(jn),compName:k.name,index:(k==null?void 0:k.id)??K,height:(I=s.value)==null?void 0:I.height,itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,onChange:e.unref(To),onContentChange:e.unref(No),onPageChange:e.unref(Ao),onRowClick:p},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),$6=Zl._export_sfc(R6,[["__scopeId","data-v-ab9a36ed"]]),V6={class:"layout-operate"},P6={class:"layout-module"},F6={class:"collapse-title-item"},j6={class:"collapse-title"},H6={class:"icon-content"},U6=["onClick"],q6={class:"comp-child"},W6=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const n=a,r=l;e.onMounted(()=>{K()});const o=e.ref({}),s=e.ref({}),h=e.ref([]),c=w=>[{label:"高度",prop:"height",type:"input",value:w==null?void 0:w.height}],p=w=>{s.value=w,r("change",x(),!0)},m=e.ref([]),g=e.ref([]),u=w=>[{label:"占比",prop:"span",type:"input",value:w==null?void 0:w.span}],D=e.computed(()=>{const w=n==null?void 0:n.itemContents;return A.cloneDeep(w)}),M=e.computed(()=>{const w=D==null?void 0:D.value,b=w==null?void 0:w.find(_=>{const{key:$}=_;return $==="baseConfig"});return b==null?void 0:b.contents}),k=e.computed(()=>{const w=D==null?void 0:D.value,b=w==null?void 0:w.find(_=>{const{key:$}=_;return $==="children"});return b==null?void 0:b.contents}),K=()=>{var w;o.value=D.value||{},m.value=(k==null?void 0:k.value)||[],h.value=c(),h.value=(w=h.value)==null?void 0:w.map(b=>{var $;const{prop:_}=b;return b.value=($=M.value)==null?void 0:$[_],b})};e.watch(()=>{var w;return(w=k==null?void 0:k.value)==null?void 0:w.length},()=>{var w;m.value=(k==null?void 0:k.value)||[],g.value=(w=k.value)==null?void 0:w.map(b=>u(b))},{immediate:!0});const I=(w,b)=>{const _=A.cloneDeep(k==null?void 0:k.value);_[b].span=w.span,m.value=_,r("change",x(),!0)},H=w=>Ti(w),L=(w,b,_)=>{if(!w)return;const $=A.cloneDeep(k==null?void 0:k.value);$[_]&&($[_].compData=w,m.value=$,r("change",x(),!0))},E=w=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=A.cloneDeep(k==null?void 0:k.value);b=b==null?void 0:b.filter((_,$)=>w!==$),m.value=b,r("change",x(),!0),Ua.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=()=>({compData:[{key:"baseConfig",contents:s.value},{key:"children",contents:m==null?void 0:m.value}]});return(w,b)=>{const _=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",V6,[e.createElementVNode("div",P6,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(al.ssForm,{rowContents:h.value,isEnableWrap:!0,onChange:b[0]||(b[0]=$=>p($))},null,8,["rowContents"])])]),e.createVNode(Js.default,{class:"collapse-content",collapseContents:k.value},{title:e.withCtx(({item:$,index:V})=>[e.createElementVNode("div",F6,[e.createElementVNode("div",j6,e.toDisplayString($.name),1),e.createElementVNode("div",H6,[e.createElementVNode("div",{onClick:e.withModifiers(ne=>E(V),["stop"]),class:"icon-content"},[e.createVNode(_,{name:"Delete",style:{width:"16px",height:"16px"}})],8,U6)])])]),content:e.withCtx(({item:$,index:V})=>[e.createElementVNode("div",q6,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(al.ssForm,{rowContents:g.value[V],key:V,isEnableWrap:!0,onChange:ne=>I(ne,V)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H($.comp+"Operate")),{itemContents:$==null?void 0:$.compData,originalItemContents:$.compData,onChange:ne=>L(ne,$,V)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),K6=Zl._export_sfc(W6,[["__scopeId","data-v-ba05456e"]]),G6=typeof window<"u";var _s;G6&&((_s=window==null?void 0:window.navigator)!=null&&_s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function pn(a){return a==null}function Rc(){}const Y6=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(Y6)));function J6(){const a=new Map;return{on(l,n){const r=a.get(l);r!=null&&r.add(n)||a.set(l,new Set([n]))},off(l,n){const r=a.get(l);r&&r.delete(n)},clear(l){const n=a.get(l);n&&n.clear()},clearAll(){a.clear()},emit(l,...n){const r=a.get(l);r&&r.forEach(o=>{o(...n)})}}}function Ss(a,l=16){if(typeof a!="function")return Rc;const n=(...s)=>{a(...s)};if(l<=0)return $c(n);let r=0,o;return function(...s){const h=Date.now(),c=h-r;clearTimeout(o),c>=l?(r=h,n(...s)):o=setTimeout(()=>{r=Date.now(),n(...s)},Math.max(0,l-c))}}function X6(a,l=100){if(typeof a!="function")return Rc;const n=(...o)=>{a(...o)};if(l<=0)return $c(n);let r;return function(...o){clearTimeout(r),r=setTimeout(()=>{n(...o)},l)}}function $c(a){if(typeof a!="function")return a;let l=!1,n,r;return function(...o){return n=o,l||(l=!0,r=Promise.resolve().then(()=>(l=!1,r=void 0,a(...n)))),r}}const Ui=new Set,Vc=new WeakMap;function Z6(){Ui.forEach(a=>{a(...Vc.get(a))}),Ui.clear()}function Zr(a,...l){if(typeof a!="function")return a;Vc.set(a,l),!Ui.has(a)&&(Ui.add(a),Ui.size===1&&Promise.resolve().then(Z6))}const Pc=Symbol("LAYOUT_KEY"),Fc=Symbol("EMITTER_KEY");function Q6(a){let l=0,n;for(let r=0,o=a.length;r<o;r++)n=a[r].y+a[r].h,n>l&&(l=n);return l}function wt(a){const l=Array(a.length);for(let n=0,r=a.length;n<r;n++)l[n]=e1(a[n]);return l}function e1(a){return{...a}}function jc(a,l){return!(a===l||a.x+a.w<=l.x||a.x>=l.x+l.w||a.y+a.h<=l.y||a.y>=l.y+l.h)}function _i(a,l,n){const r=Uc(a),o=qc(a),s=Array(a.length);for(let h=0,c=o.length;h<c;h++){let p=o[h];p.static||(p=a1(r,p,l,n),r.push(p)),s[a.findIndex(m=>m.i===p.i)]=p,p.moved=!1}return s}function a1(a,l,n,r){if(n)for(;l.y>0&&!qi(a,l);)l.y--;else if(r){const s=r[l.i].y;for(;l.y>s&&!qi(a,l);)l.y--}let o;for(;o=qi(a,l);)l.y=o.y+o.h;return l}function l1(a,l){const n=Uc(a);for(let r=0,o=a.length;r<o;r++){const s=a[r];if(s.x+s.w>l.cols&&(s.x=l.cols-s.w),s.x<0&&(s.x=0,s.w=l.cols),!s.static)n.push(s);else for(;qi(n,s);)s.y++}return a}function Es(a,l){for(let n=0,r=a.length;n<r;n++)if(a[n].i===l)return a[n]}function qi(a,l){for(let n=0,r=a.length;n<r;n++)if(jc(a[n],l))return a[n]}function Hc(a,l){return a.filter(n=>jc(n,l))}function Uc(a){return a.filter(l=>l.static)}function _t(a,l,n,r,o=!1,s=!1){if(l.static)return a;const h=l.x,c=l.y,p=r&&l.y>r;typeof n=="number"&&(l.x=n),typeof r=="number"&&(l.y=r),l.moved=!0;let m=qc(a);p&&(m=m.reverse());const g=Hc(m,l);if(s&&g.length)return l.x=h,l.y=c,l.moved=!1,a;for(let u=0,D=g.length;u<D;u++){const M=g[u];M.moved||l.y>M.y&&l.y-M.y>M.h/4||(M.static?a=Cs(a,M,l,o):a=Cs(a,l,M,o))}return a}function Cs(a,l,n,r){if(r){const o={x:n.x,y:n.y,w:n.w,h:n.h};if(o.y=Math.max(l.y-n.h,0),!qi(a,o))return _t(a,n,void 0,o.y,!1)}return _t(a,n,void 0,n.y+1,!1)}function r1(a,l,n,r){const o="translate3d("+l+"px,"+a+"px, 0)";return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:n+"px",height:r+"px",position:"absolute"}}function n1(a,l,n,r){const o="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:n+"px",height:r+"px",position:"absolute"}}function i1(a,l,n,r){return{top:a+"px",left:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function o1(a,l,n,r){return{top:a+"px",right:l+"px",width:n+"px",height:r+"px",position:"absolute"}}function qc(a){return Array.from(a).sort(function(l,n){return l.y===n.y&&l.x===n.x?0:l.y>n.y||l.y===n.y&&l.x>n.x?1:-1})}function s1(a,l){l=l||"Layout";const n=["x","y","w","h"],r=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let o=0,s=a.length;o<s;o++){const h=a[o];for(let c=0;c<n.length;c++)if(typeof h[n[c]]!="number")throw new Error("VueGridLayout: "+l+"["+o+"]."+n[c]+" must be a number!");if(h.i===void 0||h.i===null)throw new Error("VueGridLayout: "+l+"["+o+"].i cannot be null!");if(typeof h.i!="number"&&typeof h.i!="string")throw new Error("VueGridLayout: "+l+"["+o+"].i must be a string or number!");if(r.indexOf(h.i)>=0)throw new Error("VueGridLayout: "+l+"["+o+"].i must be unique!");if(r.push(h.i),h.static!==void 0&&typeof h.static!="boolean")throw new Error("VueGridLayout: "+l+"["+o+"].static must be a boolean!")}}function c1(a,l="vgl"){const n=()=>`${l}-${a}`;return{b:n,be:r=>`${n()}__${r}`,bm:r=>`${n()}--${r}`,bem:(r,o)=>`${n()}__${r}--${o}`}}function Ds(a){return u1(a)}function u1(a){var l;const n=((l=a.target)==null?void 0:l.offsetParent)||document.body,r=a.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),o=a.clientX+n.scrollLeft-r.left,s=a.clientY+n.scrollTop-r.top;return{x:o,y:s}}function Bs(a,l,n,r){return d1(a)?{deltaX:n-a,deltaY:r-l,lastX:a,lastY:l,x:n,y:r}:{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}}function d1(a){return typeof a=="number"&&!Number.isNaN(a)}function p1(a,l){const n=Kc(a);let r=n[0];for(let o=1,s=n.length;o<s;o++){const h=n[o];l>a[h]&&(r=h)}return r}function Wc(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function f1(a,l,n,r,o,s,h){if(l[r])return wt(l[r]);let c=a;const p=Kc(n),m=p.slice(p.indexOf(r));for(let g=0,u=m.length;g<u;g++){const D=m[g];if(l[D]){c=l[D];break}}return c=wt(c||[]),_i(l1(c,{cols:s}),h)}function Kc(a){return Object.keys(a).sort((l,n)=>a[l]-a[n])}let h1="auto";function v1(){return typeof document<"u"}function Ts(){return v1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):h1}var ji={exports:{}},m1=ji.exports,Ns;function y1(){return Ns||(Ns=1,function(a,l){(function(n,r){a.exports=r()})(m1,function(){function n(t,i){var f=Object.keys(t);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);i&&(y=y.filter(function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable})),f.push.apply(f,y)}return f}function r(t){for(var i=1;i<arguments.length;i++){var f=arguments[i]!=null?arguments[i]:{};i%2?n(Object(f),!0).forEach(function(y){p(t,y,f[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(f)):n(Object(f)).forEach(function(y){Object.defineProperty(t,y,Object.getOwnPropertyDescriptor(f,y))})}return t}function o(t){return o=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},o(t)}function s(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function h(t,i){for(var f=0;f<i.length;f++){var y=i[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(t,K(y.key),y)}}function c(t,i,f){return i&&h(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,i,f){return(i=K(i))in t?Object.defineProperty(t,i,{value:f,enumerable:!0,configurable:!0,writable:!0}):t[i]=f,t}function m(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&u(t,i)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},g(t)}function u(t,i){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,y){return f.__proto__=y,f},u(t,i)}function D(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M(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,y=g(t);if(i){var S=g(this).constructor;f=Reflect.construct(y,arguments,S)}else f=y.apply(this,arguments);return function(O,G){if(G&&(typeof G=="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(O)}(this,f)}}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,i,f){var y=function(O,G){for(;!Object.prototype.hasOwnProperty.call(O,G)&&(O=g(O))!==null;);return O}(t,i);if(y){var S=Object.getOwnPropertyDescriptor(y,i);return S.get?S.get.call(arguments.length<3?t:f):S.value}},k.apply(this,arguments)}function K(t){var i=function(f,y){if(typeof f!="object"||f===null)return f;var S=f[Symbol.toPrimitive];if(S!==void 0){var O=S.call(f,y);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(t,"string");return typeof i=="symbol"?i:i+""}var I=function(t){return!(!t||!t.Window)&&t instanceof t.Window},H=void 0,L=void 0;function E(t){H=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(i)===i&&(t=t.wrap(t)),L=t}function x(t){return I(t)?t:(t.ownerDocument||t).defaultView||L.window}typeof window<"u"&&window&&E(window);var w=function(t){return!!t&&o(t)==="object"},b=function(t){return typeof t=="function"},_={window:function(t){return t===L||I(t)},docFrag:function(t){return w(t)&&t.nodeType===11},object:w,func:b,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||o(t)!=="object")return!1;var i=x(t)||L;return/object|function/.test(typeof Element>"u"?"undefined":o(Element))?t instanceof Element||t instanceof i.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return w(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return w(t)&&t.length!==void 0&&b(t.splice)}};function $(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 V(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="drag"){var y=f.prepared.axis;if(y==="x"||y==="y"){var S=y==="x"?"y":"x";i.page[S]=f.coords.start.page[S],i.client[S]=f.coords.start.client[S],i.delta[S]=0}}}var ne={id:"actions/drag",install:function(t){var i=t.actions,f=t.Interactable,y=t.defaults;f.prototype.draggable=ne.draggable,i.map.drag=ne,i.methodDict.drag="draggable",y.actions.drag=ne.defaults},listeners:{"interactions:before-action-move":$,"interactions:action-resume":$,"interactions:action-move":V,"auto-start:check":function(t){var i=t.interaction,f=t.interactable,y=t.buttons,S=f.options.drag;if(S&&S.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(y&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:$,move:V,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},X=ne,me={init:function(t){var i=t;me.document=i.document,me.DocumentFragment=i.DocumentFragment||Me,me.SVGElement=i.SVGElement||Me,me.SVGSVGElement=i.SVGSVGElement||Me,me.SVGElementInstance=i.SVGElementInstance||Me,me.Element=i.Element||Me,me.HTMLElement=i.HTMLElement||me.Element,me.Event=i.Event,me.Touch=i.Touch||Me,me.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Me(){}var F=me,te={init:function(t){var i=F.Element,f=t.navigator||{};te.supportsTouch="ontouchstart"in t||_.func(t.DocumentTouch)&&F.document instanceof t.DocumentTouch,te.supportsPointerEvent=f.pointerEnabled!==!1&&!!F.PointerEvent,te.isIOS=/iP(hone|od|ad)/.test(f.platform),te.isIOS7=/iP(hone|od|ad)/.test(f.platform)&&/OS 7[^\d]/.test(f.appVersion),te.isIe9=/MSIE 9/.test(f.userAgent),te.isOperaMobile=f.appName==="Opera"&&te.supportsTouch&&/Presto/.test(f.userAgent),te.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",te.pEventTypes=te.supportsPointerEvent?F.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,te.wheelEvent=F.document&&"onmousewheel"in F.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Z=te;function se(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function Be(t,i){for(;_.element(t);){if(he(t,i))return t;t=Ve(t)}return null}function Ve(t){var i=t.parentNode;if(_.docFrag(i)){for(;(i=i.host)&&_.docFrag(i););return i}return i}function he(t,i){return L!==H&&(i=i.replace(/\/deep\//g," ")),t[Z.prefixedMatchesSelector](i)}var N=function(t){return t.parentNode||t.host};function ie(t,i){for(var f,y=[],S=t;(f=N(S))&&S!==i&&f!==S.ownerDocument;)y.unshift(S),S=f;return y}function U(t,i,f){for(;_.element(t);){if(he(t,i))return!0;if((t=Ve(t))===f)return he(t,i)}return!1}function De(t){return t.correspondingUseElement||t}function Oe(t){var i=t instanceof F.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 Fe(t){var i,f=Oe(t);if(!Z.isIOS7&&f){var y={x:(i=(i=x(t))||L).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};f.left+=y.x,f.right+=y.x,f.top+=y.y,f.bottom+=y.y}return f}function ea(t){for(var i=[];t;)i.push(t),t=Ve(t);return i}function Ba(t){return!!_.string(t)&&(F.document.querySelector(t),!0)}function ee(t,i){for(var f in i)t[f]=i[f];return t}function ua(t,i,f){return t==="parent"?Ve(f):t==="self"?i.getRect(f):Be(f,t)}function ue(t,i,f,y){var S=t;return _.string(S)?S=ua(S,i,f):_.func(S)&&(S=S.apply(void 0,y)),_.element(S)&&(S=Fe(S)),S}function sa(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Se(t){return!t||"x"in t&&"y"in t||((t=ee({},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 oe(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 ze(t,i,f){var y=f&&t.options[f];return sa(ue(y&&y.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function Ke(t,i){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(ge){return!0},y=arguments.length>3?arguments[3]:void 0;if(y=y||{},_.string(t)&&t.search(" ")!==-1&&(t=ca(t)),_.array(t))return t.forEach(function(ge){return Ke(ge,i,f,y)}),y;if(_.object(t)&&(i=t,t=""),_.func(i)&&f(t))y[t]=y[t]||[],y[t].push(i);else if(_.array(i))for(var S=0,O=i;S<O.length;S++){var G=O[S];Ke(t,G,f,y)}else if(_.object(i))for(var Q in i)Ke(ca(Q).map(function(ge){return"".concat(t).concat(ge)}),i[Q],f,y);return y}function ca(t){return t.trim().split(/ +/)}var Ya=function(t,i){return Math.sqrt(t*t+i*i)},R=["webkit","moz"];function j(t,i){t.__set||(t.__set={});var f=function(S){if(R.some(function(O){return S.indexOf(O)===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(O){t.__set[S]=O},configurable:!0})};for(var y in i)f(y);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 ve(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function pe(t){return t instanceof F.Event||t instanceof F.Touch}function ya(t,i,f){return t=t||"page",(f=f||{}).x=i[t+"X"],f.y=i[t+"Y"],f}function aa(t,i){return i=i||{x:0,y:0},Z.isOperaMobile&&pe(t)?(ya("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ya("page",t,i),i}function ce(t){return _.number(t.pointerId)?t.pointerId:t.identifier}function ga(t,i,f){var y=i.length>1?Je(i):i[0];aa(y,t.page),function(S,O){O=O||{},Z.isOperaMobile&&pe(S)?ya("screen",S,O):ya("client",S,O)}(y,t.client),t.timeStamp=f}function Ae(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 Je(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},f=0;f<t.length;f++){var y=t[f];for(var S in i)i[S]+=y[S]}for(var O in i)i[O]/=t.length;return i}function Na(t){if(!t.length)return null;var i=Ae(t),f=Math.min(i[0].pageX,i[1].pageX),y=Math.min(i[0].pageY,i[1].pageY),S=Math.max(i[0].pageX,i[1].pageX),O=Math.max(i[0].pageY,i[1].pageY);return{x:f,y,left:f,top:y,right:S,bottom:O,width:S-f,height:O-y}}function Ca(t,i){var f=i+"X",y=i+"Y",S=Ae(t),O=S[0][f]-S[1][f],G=S[0][y]-S[1][y];return Ya(O,G)}function la(t,i){var f=i+"X",y=i+"Y",S=Ae(t),O=S[1][f]-S[0][f],G=S[1][y]-S[0][y];return 180*Math.atan2(G,O)/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 F.Touch?"touch":"mouse"}function va(t){var i=_.func(t.composedPath)?t.composedPath():t.path;return[De(i?i[0]:t.target),De(t.currentTarget)]}var W=function(){function t(i){s(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return c(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(W.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Te=function(t,i){for(var f=0;f<i.length;f++){var y=i[f];t.push(y)}return t},Ie=function(t){return Te([],t)},we=function(t,i){for(var f=0;f<t.length;f++)if(i(t[f],f,t))return f;return-1},wa=function(t,i){return t[we(t,i)]},oa=function(t){m(f,t);var i=M(f);function f(y,S,O){var G;s(this,f),(G=i.call(this,S._interaction)).dropzone=void 0,G.dragEvent=void 0,G.relatedTarget=void 0,G.draggable=void 0,G.propagationStopped=!1,G.immediatePropagationStopped=!1;var Q=O==="dragleave"?y.prev:y.cur,ge=Q.element,je=Q.dropzone;return G.type=O,G.target=ge,G.currentTarget=ge,G.dropzone=je,G.dragEvent=S,G.relatedTarget=S.target,G.draggable=S.interactable,G.timeStamp=S.timeStamp,G}return c(f,[{key:"reject",value:function(){var y=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 O=S.activeDrops,G=we(O,function(ge){var je=ge.dropzone,Ce=ge.element;return je===y.dropzone&&Ce===y.target});S.activeDrops.splice(G,1);var Q=new f(S,this.dragEvent,"dropdeactivate");Q.dropzone=this.dropzone,Q.target=this.target,this.dropzone.fire(Q)}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}(W);function Qe(t,i){for(var f=0,y=t.slice();f<y.length;f++){var S=y[f],O=S.dropzone,G=S.element;i.dropzone=O,i.target=G,O.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function He(t,i){for(var f=function(O,G){for(var Q=[],ge=0,je=O.interactables.list;ge<je.length;ge++){var Ce=je[ge];if(Ce.options.drop.enabled){var ra=Ce.options.drop.accept;if(!(_.element(ra)&&ra!==G||_.string(ra)&&!he(G,ra)||_.func(ra)&&!ra({dropzone:Ce,draggableElement:G})))for(var Da=0,Ja=Ce.getAllElements();Da<Ja.length;Da++){var Wa=Ja[Da];Wa!==G&&Q.push({dropzone:Ce,element:Wa,rect:Ce.getRect(Wa)})}}}return Q}(t,i),y=0;y<f.length;y++){var S=f[y];S.rect=S.dropzone.getRect(S.element)}return f}function qe(t,i,f){for(var y=t.dropState,S=t.interactable,O=t.element,G=[],Q=0,ge=y.activeDrops;Q<ge.length;Q++){var je=ge[Q],Ce=je.dropzone,ra=je.element,Da=je.rect,Ja=Ce.dropCheck(i,f,S,O,ra,Da);G.push(Ja?ra:null)}var Wa=function(Qa){for(var xl,ml,El,Ul=[],Cl=0;Cl<Qa.length;Cl++){var Il=Qa[Cl],Ml=Qa[xl];if(Il&&Cl!==xl)if(Ml){var Wr=N(Il),or=N(Ml);if(Wr!==Il.ownerDocument)if(or!==Il.ownerDocument)if(Wr!==or){Ul=Ul.length?Ul:ie(Ml);var Xr=void 0;if(Ml instanceof F.HTMLElement&&Il instanceof F.SVGElement&&!(Il instanceof F.SVGSVGElement)){if(Il===or)continue;Xr=Il.ownerSVGElement}else Xr=Il;for(var cn=ie(Xr,Ml.ownerDocument),Sn=0;cn[Sn]&&cn[Sn]===Ul[Sn];)Sn++;var hi=[cn[Sn-1],cn[Sn],Ul[Sn]];if(hi[0])for(var Qn=hi[0].lastChild;Qn;){if(Qn===hi[1]){xl=Cl,Ul=cn;break}if(Qn===hi[2])break;Qn=Qn.previousSibling}}else El=Ml,(parseInt(x(ml=Il).getComputedStyle(ml).zIndex,10)||0)>=(parseInt(x(El).getComputedStyle(El).zIndex,10)||0)&&(xl=Cl);else xl=Cl}else xl=Cl}return xl}(G);return y.activeDrops[Wa]||null}function fe(t,i,f){var y=t.dropState,S={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return f.type==="dragstart"&&(S.activate=new oa(y,f,"dropactivate"),S.activate.target=null,S.activate.dropzone=null),f.type==="dragend"&&(S.deactivate=new oa(y,f,"dropdeactivate"),S.deactivate.target=null,S.deactivate.dropzone=null),y.rejected||(y.cur.element!==y.prev.element&&(y.prev.dropzone&&(S.leave=new oa(y,f,"dragleave"),f.dragLeave=S.leave.target=y.prev.element,f.prevDropzone=S.leave.dropzone=y.prev.dropzone),y.cur.dropzone&&(S.enter=new oa(y,f,"dragenter"),f.dragEnter=y.cur.element,f.dropzone=y.cur.dropzone)),f.type==="dragend"&&y.cur.dropzone&&(S.drop=new oa(y,f,"drop"),f.dropzone=y.cur.dropzone,f.relatedTarget=y.cur.element),f.type==="dragmove"&&y.cur.dropzone&&(S.move=new oa(y,f,"dropmove"),f.dropzone=y.cur.dropzone)),S}function ke(t,i){var f=t.dropState,y=f.activeDrops,S=f.cur,O=f.prev;i.leave&&O.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&&Qe(y,i.deactivate),f.prev.dropzone=S.dropzone,f.prev.element=S.element}function da(t,i){var f=t.interaction,y=t.iEvent,S=t.event;if(y.type==="dragmove"||y.type==="dragend"){var O=f.dropState;i.dynamicDrop&&(O.activeDrops=He(i,f.element));var G=y,Q=qe(f,G,S);O.rejected=O.rejected&&!!Q&&Q.dropzone===O.cur.dropzone&&Q.element===O.cur.element,O.cur.dropzone=Q&&Q.dropzone,O.cur.element=Q&&Q.element,O.events=fe(f,0,G)}}var La={id:"actions/drop",install:function(t){var i=t.actions,f=t.interactStatic,y=t.Interactable,S=t.defaults;t.usePlugin(X),y.prototype.dropzone=function(O){return function(G,Q){if(_.object(Q)){if(G.options.drop.enabled=Q.enabled!==!1,Q.listeners){var ge=Ke(Q.listeners),je=Object.keys(ge).reduce(function(ra,Da){return ra[/^(enter|leave)/.test(Da)?"drag".concat(Da):/^(activate|deactivate|move)/.test(Da)?"drop".concat(Da):Da]=ge[Da],ra},{}),Ce=G.options.drop.listeners;Ce&&G.off(Ce),G.on(je),G.options.drop.listeners=je}return _.func(Q.ondrop)&&G.on("drop",Q.ondrop),_.func(Q.ondropactivate)&&G.on("dropactivate",Q.ondropactivate),_.func(Q.ondropdeactivate)&&G.on("dropdeactivate",Q.ondropdeactivate),_.func(Q.ondragenter)&&G.on("dragenter",Q.ondragenter),_.func(Q.ondragleave)&&G.on("dragleave",Q.ondragleave),_.func(Q.ondropmove)&&G.on("dropmove",Q.ondropmove),/^(pointer|center)$/.test(Q.overlap)?G.options.drop.overlap=Q.overlap:_.number(Q.overlap)&&(G.options.drop.overlap=Math.max(Math.min(1,Q.overlap),0)),"accept"in Q&&(G.options.drop.accept=Q.accept),"checker"in Q&&(G.options.drop.checker=Q.checker),G}return _.bool(Q)?(G.options.drop.enabled=Q,G):G.options.drop}(this,O)},y.prototype.dropCheck=function(O,G,Q,ge,je,Ce){return function(ra,Da,Ja,Wa,Qa,xl,ml){var El=!1;if(!(ml=ml||ra.getRect(xl)))return!!ra.options.drop.checker&&ra.options.drop.checker(Da,Ja,El,ra,xl,Wa,Qa);var Ul=ra.options.drop.overlap;if(Ul==="pointer"){var Cl=ze(Wa,Qa,"drag"),Il=aa(Da);Il.x+=Cl.x,Il.y+=Cl.y;var Ml=Il.x>ml.left&&Il.x<ml.right,Wr=Il.y>ml.top&&Il.y<ml.bottom;El=Ml&&Wr}var or=Wa.getRect(Qa);if(or&&Ul==="center"){var Xr=or.left+or.width/2,cn=or.top+or.height/2;El=Xr>=ml.left&&Xr<=ml.right&&cn>=ml.top&&cn<=ml.bottom}return or&&_.number(Ul)&&(El=Math.max(0,Math.min(ml.right,or.right)-Math.max(ml.left,or.left))*Math.max(0,Math.min(ml.bottom,or.bottom)-Math.max(ml.top,or.top))/(or.width*or.height)>=Ul),ra.options.drop.checker&&(El=ra.options.drop.checker(Da,Ja,El,ra,xl,Wa,Qa)),El}(this,O,G,Q,ge,je,Ce)},f.dynamicDrop=function(O){return _.bool(O)?(t.dynamicDrop=O,f):t.dynamicDrop},ee(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,S.actions.drop=La.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,y=(t.event,t.iEvent);if(f.prepared.name==="drag"){var S=f.dropState;S.activeDrops=[],S.events={},S.activeDrops=He(i,f.element),S.events=fe(f,0,y),S.events.activate&&(Qe(S.activeDrops,S.events.activate),i.fire("actions/drop:start",{interaction:f,dragEvent:y}))}},"interactions:action-move":da,"interactions:after-action-move":function(t,i){var f=t.interaction,y=t.iEvent;if(f.prepared.name==="drag"){var S=f.dropState;ke(f,S.events),i.fire("actions/drop:move",{interaction:f,dragEvent:y}),S.events={}}},"interactions:action-end":function(t,i){if(t.interaction.prepared.name==="drag"){var f=t.interaction,y=t.iEvent;da(t,i),ke(f,f.dropState.events),i.fire("actions/drop:end",{interaction:f,dragEvent:y})}},"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:He,getDrop:qe,getDropEvents:fe,fireDropEvents:ke,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},dl=La;function Ol(t){var i=t.interaction,f=t.iEvent,y=t.phase;if(i.prepared.name==="gesture"){var S=i.pointers.map(function(je){return je.pointer}),O=y==="start",G=y==="end",Q=i.interactable.options.deltaSource;if(f.touches=[S[0],S[1]],O)f.distance=Ca(S,Q),f.box=Na(S),f.scale=1,f.ds=0,f.angle=la(S,Q),f.da=0,i.gesture.startDistance=f.distance,i.gesture.startAngle=f.angle;else if(G||i.pointers.length<2){var ge=i.prevEvent;f.distance=ge.distance,f.box=ge.box,f.scale=ge.scale,f.ds=0,f.angle=ge.angle,f.da=0}else f.distance=Ca(S,Q),f.box=Na(S),f.scale=f.distance/i.gesture.startDistance,f.angle=la(S,Q),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 sl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,f=t.Interactable,y=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=sl,i.methodDict.gesture="gesturable",y.actions.gesture=sl.defaults},listeners:{"interactions:action-start":Ol,"interactions:action-move":Ol,"interactions:action-end":Ol,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},Fl=sl;function Fa(t,i,f,y,S,O,G){if(!i)return!1;if(i===!0){var Q=_.number(O.width)?O.width:O.right-O.left,ge=_.number(O.height)?O.height:O.bottom-O.top;if(G=Math.min(G,Math.abs((t==="left"||t==="right"?Q:ge)/2)),Q<0&&(t==="left"?t="right":t==="right"&&(t="left")),ge<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var je=Q>=0?O.left:O.right;return f.x<je+G}if(t==="top"){var Ce=ge>=0?O.top:O.bottom;return f.y<Ce+G}if(t==="right")return f.x>(Q>=0?O.right:O.left)-G;if(t==="bottom")return f.y>(ge>=0?O.bottom:O.top)-G}return!!_.element(y)&&(_.element(i)?i===y:U(y,i,S))}function Vl(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.resizeAxes){var y=i;f.interactable.options.resize.square?(f.resizeAxes==="y"?y.delta.x=y.delta.y:y.delta.y=y.delta.x,y.axes="xy"):(y.axes=f.resizeAxes,f.resizeAxes==="x"?y.delta.y=0:f.resizeAxes==="y"&&(y.delta.x=0))}}var zl,Aa,rl={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,f=t.browser,y=t.Interactable,S=t.defaults;rl.cursors=function(O){return O.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(f),rl.defaultMargin=f.supportsTouch||f.supportsPointerEvent?20:10,y.prototype.resizable=function(O){return function(G,Q,ge){return _.object(Q)?(G.options.resize.enabled=Q.enabled!==!1,G.setPerAction("resize",Q),G.setOnEvents("resize",Q),_.string(Q.axis)&&/^x$|^y$|^xy$/.test(Q.axis)?G.options.resize.axis=Q.axis:Q.axis===null&&(G.options.resize.axis=ge.defaults.actions.resize.axis),_.bool(Q.preserveAspectRatio)?G.options.resize.preserveAspectRatio=Q.preserveAspectRatio:_.bool(Q.square)&&(G.options.resize.square=Q.square),G):_.bool(Q)?(G.options.resize.enabled=Q,G):G.options.resize}(this,O,t)},i.map.resize=rl,i.methodDict.resize="resizable",S.actions.resize=rl.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(i){var f=i.iEvent,y=i.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var S=f,O=y.rect;y._rects={start:ee({},O),corrected:ee({},O),previous:ee({},O),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},S.edges=y.prepared.edges,S.rect=y._rects.corrected,S.deltaRect=y._rects.delta}})(t),Vl(t)},"interactions:action-move":function(t){(function(i){var f=i.iEvent,y=i.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var S=f,O=y.interactable.options.resize.invert,G=O==="reposition"||O==="negate",Q=y.rect,ge=y._rects,je=ge.start,Ce=ge.corrected,ra=ge.delta,Da=ge.previous;if(ee(Da,Ce),G){if(ee(Ce,Q),O==="reposition"){if(Ce.top>Ce.bottom){var Ja=Ce.top;Ce.top=Ce.bottom,Ce.bottom=Ja}if(Ce.left>Ce.right){var Wa=Ce.left;Ce.left=Ce.right,Ce.right=Wa}}}else Ce.top=Math.min(Q.top,je.bottom),Ce.bottom=Math.max(Q.bottom,je.top),Ce.left=Math.min(Q.left,je.right),Ce.right=Math.max(Q.right,je.left);for(var Qa in Ce.width=Ce.right-Ce.left,Ce.height=Ce.bottom-Ce.top,Ce)ra[Qa]=Ce[Qa]-Da[Qa];S.edges=y.prepared.edges,S.rect=Ce,S.deltaRect=ra}})(t),Vl(t)},"interactions:action-end":function(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.prepared.edges){var y=i;y.edges=f.prepared.edges,y.rect=f._rects.corrected,y.deltaRect=f._rects.delta}},"auto-start:check":function(t){var i=t.interaction,f=t.interactable,y=t.element,S=t.rect,O=t.buttons;if(S){var G=ee({},i.coords.cur.page),Q=f.options.resize;if(Q&&Q.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(O&Q.mouseButtons)!=0)){if(_.object(Q.edges)){var ge={left:!1,right:!1,top:!1,bottom:!1};for(var je in ge)ge[je]=Fa(je,Q.edges[je],G,i._latestPointer.eventTarget,y,S,Q.margin||rl.defaultMargin);ge.left=ge.left&&!ge.right,ge.top=ge.top&&!ge.bottom,(ge.left||ge.right||ge.top||ge.bottom)&&(t.action={name:"resize",edges:ge})}else{var Ce=Q.axis!=="y"&&G.x>S.right-rl.defaultMargin,ra=Q.axis!=="x"&&G.y>S.bottom-rl.defaultMargin;(Ce||ra)&&(t.action={name:"resize",axes:(Ce?"x":"")+(ra?"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,y=t.name,S=rl.cursors,O=null;if(f)O=S[y+f];else if(i){for(var G="",Q=0,ge=["top","bottom","left","right"];Q<ge.length;Q++){var je=ge[Q];i[je]&&(G+=je)}O=S[G]}return O},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},nl=rl,ul={id:"actions",install:function(t){t.usePlugin(Fl),t.usePlugin(nl),t.usePlugin(X),t.usePlugin(dl)}},Ra=0,cl={request:function(t){return zl(t)},cancel:function(t){return Aa(t)},init:function(t){if(zl=t.requestAnimationFrame,Aa=t.cancelAnimationFrame,!zl)for(var i=["ms","moz","webkit","o"],f=0;f<i.length;f++){var y=i[f];zl=t["".concat(y,"RequestAnimationFrame")],Aa=t["".concat(y,"CancelAnimationFrame")]||t["".concat(y,"CancelRequestAnimationFrame")]}zl=zl&&zl.bind(t),Aa=Aa&&Aa.bind(t),zl||(zl=function(S){var O=Date.now(),G=Math.max(0,16-(O-Ra)),Q=t.setTimeout(function(){S(O+G)},G);return Ra=O+G,Q},Aa=function(S){return clearTimeout(S)})}},ll={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){ll.isScrolling=!0,cl.cancel(ll.i),t.autoScroll=ll,ll.interaction=t,ll.prevTime=ll.now(),ll.i=cl.request(ll.scroll)},stop:function(){ll.isScrolling=!1,ll.interaction&&(ll.interaction.autoScroll=null),cl.cancel(ll.i)},scroll:function(){var t=ll.interaction,i=t.interactable,f=t.element,y=t.prepared.name,S=i.options[y].autoScroll,O=Ne(S.container,i,f),G=ll.now(),Q=(G-ll.prevTime)/1e3,ge=S.speed*Q;if(ge>=1){var je={x:ll.x*ge,y:ll.y*ge};if(je.x||je.y){var Ce=Ue(O);_.window(O)?O.scrollBy(je.x,je.y):O&&(O.scrollLeft+=je.x,O.scrollTop+=je.y);var ra=Ue(O),Da={x:ra.x-Ce.x,y:ra.y-Ce.y};(Da.x||Da.y)&&i.fire({type:"autoscroll",target:f,interactable:i,delta:Da,interaction:t,container:O})}ll.prevTime=G}ll.isScrolling&&(cl.cancel(ll.i),ll.i=cl.request(ll.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()&&ll.check(i.interactable,i.prepared.name))if(i.simulation)ll.x=ll.y=0;else{var y,S,O,G,Q=i.interactable,ge=i.element,je=i.prepared.name,Ce=Q.options[je].autoScroll,ra=Ne(Ce.container,Q,ge);if(_.window(ra))G=f.clientX<ll.margin,y=f.clientY<ll.margin,S=f.clientX>ra.innerWidth-ll.margin,O=f.clientY>ra.innerHeight-ll.margin;else{var Da=Oe(ra);G=f.clientX<Da.left+ll.margin,y=f.clientY<Da.top+ll.margin,S=f.clientX>Da.right-ll.margin,O=f.clientY>Da.bottom-ll.margin}ll.x=S?1:G?-1:0,ll.y=O?1:y?-1:0,ll.isScrolling||(ll.margin=Ce.margin,ll.speed=Ce.speed,ll.start(i))}}};function Ne(t,i,f){return(_.string(t)?ua(t,i,f):t)||x(f)}function Ue(t){return _.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var na={id:"auto-scroll",install:function(t){var i=t.defaults,f=t.actions;t.autoScroll=ll,ll.now=function(){return t.now()},f.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=ll.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,ll.stop(),ll.interaction&&(ll.interaction=null)},"interactions:stop":ll.stop,"interactions:action-move":function(t){return ll.onInteractionMove(t)}}},re=na;function ia(t,i){var f=!1;return function(){return f||(L.console.warn(i),f=!0),t.apply(this,arguments)}}function Va(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Le(t){return _.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ja(t){return _.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Ma={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(f,y,S,O){var G=function(Q,ge,je,Ce,ra){var Da=Q.getRect(Ce),Ja=ge.buttons||{0:1,1:4,3:8,4:16}[ge.button],Wa={action:null,interactable:Q,interaction:je,element:Ce,rect:Da,buttons:Ja};return ra.fire("auto-start:check",Wa),Wa.action}(this,y,S,O,t);return this.options.actionChecker?this.options.actionChecker(f,y,G,this,O,S):G},i.prototype.ignoreFrom=ia(function(f){return this._backCompatOption("ignoreFrom",f)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=ia(function(f){return this._backCompatOption("allowFrom",f)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=ja,i.prototype.styleCursor=Le}};function il(t,i,f,y,S){return i.testIgnoreAllow(i.options[t.name],f,y)&&i.options[t.name].enabled&&ka(i,f,t,S)?t:null}function We(t,i,f,y,S,O,G){for(var Q=0,ge=y.length;Q<ge;Q++){var je=y[Q],Ce=S[Q],ra=je.getAction(i,f,t,Ce);if(ra){var Da=il(ra,je,Ce,O,G);if(Da)return{action:Da,interactable:je,element:Ce}}}return{action:null,interactable:null,element:null}}function pa(t,i,f,y,S){var O=[],G=[],Q=y;function ge(Ce){O.push(Ce),G.push(Q)}for(;_.element(Q);){O=[],G=[],S.interactables.forEachMatch(Q,ge);var je=We(t,i,f,O,G,y,S);if(je.action&&!je.interactable.options[je.action.name].manualStart)return je;Q=Ve(Q)}return{action:null,interactable:null,element:null}}function ma(t,i,f){var y=i.action,S=i.interactable,O=i.element;y=y||{name:null},t.interactable=S,t.element=O,Va(t.prepared,y),t.rect=S&&y.name?S.getRect(O):null,Jl(t,f),f.fire("autoStart:prepared",{interaction:t})}function ka(t,i,f,y){var S=t.options,O=S[f.name].max,G=S[f.name].maxPerElement,Q=y.autoStart.maxInteractions,ge=0,je=0,Ce=0;if(!(O&&G&&Q))return!1;for(var ra=0,Da=y.interactions.list;ra<Da.length;ra++){var Ja=Da[ra],Wa=Ja.prepared.name;if(Ja.interacting()&&(++ge>=Q||Ja.interactable===t&&((je+=Wa===f.name?1:0)>=O||Ja.element===i&&(Ce++,Wa===f.name&&Ce>=G))))return!1}return Q>0}function _e(t,i){return _.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function Tl(t,i,f){var y=f.autoStart.cursorElement;y&&y!==t&&(y.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,f.autoStart.cursorElement=i?t:null}function Jl(t,i){var f=t.interactable,y=t.element,S=t.prepared;if(t.pointerType==="mouse"&&f&&f.options.styleCursor){var O="";if(S.name){var G=f.options[S.name].cursorChecker;O=_.func(G)?G(S,f,y,t._interacting):i.actions.map[S.name].getCursor(S)}Tl(t.element,O||"",i)}else i.autoStart.cursorElement&&Tl(i.autoStart.cursorElement,"",i)}var rr={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,f=t.defaults;t.usePlugin(Ma),f.base.actionChecker=null,f.base.styleCursor=!0,ee(f.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(y){return _e(y,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ka,cursorElement:null}},listeners:{"interactions:down":function(t,i){var f=t.interaction,y=t.pointer,S=t.event,O=t.eventTarget;f.interacting()||ma(f,pa(f,y,S,O,i),i)},"interactions:move":function(t,i){(function(f,y){var S=f.interaction,O=f.pointer,G=f.event,Q=f.eventTarget;S.pointerType!=="mouse"||S.pointerIsDown||S.interacting()||ma(S,pa(S,O,G,Q,y),y)})(t,i),function(f,y){var S=f.interaction;if(S.pointerIsDown&&!S.interacting()&&S.pointerWasMoved&&S.prepared.name){y.fire("autoStart:before-start",f);var O=S.interactable,G=S.prepared.name;G&&O&&(O.options[G].manualStart||!ka(O,S.element,S.prepared,y)?S.stop():(S.start(S.prepared,O,S.element),Jl(S,y)))}}(t,i)},"interactions:stop":function(t,i){var f=t.interaction,y=f.interactable;y&&y.options.styleCursor&&Tl(f.element,"",i)}},maxInteractions:_e,withinInteractionLimit:ka,validateAction:il},er=rr,pr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var f=t.interaction,y=t.eventTarget,S=t.dx,O=t.dy;if(f.prepared.name==="drag"){var G=Math.abs(S),Q=Math.abs(O),ge=f.interactable.options.drag,je=ge.startAxis,Ce=G>Q?"x":G<Q?"y":"xy";if(f.prepared.axis=ge.lockAxis==="start"?Ce[0]:ge.lockAxis,Ce!=="xy"&&je!=="xy"&&je!==Ce){f.prepared.name=null;for(var ra=y,Da=function(Wa){if(Wa!==f.interactable){var Qa=f.interactable.options.drag;if(!Qa.manualStart&&Wa.testIgnoreAllow(Qa,ra,y)){var xl=Wa.getAction(f.downPointer,f.downEvent,f,ra);if(xl&&xl.name==="drag"&&function(ml,El){if(!El)return!1;var Ul=El.options.drag.startAxis;return ml==="xy"||Ul==="xy"||Ul===ml}(Ce,Wa)&&er.validateAction(xl,Wa,ra,y,i))return Wa}}};_.element(ra);){var Ja=i.interactables.forEachMatch(ra,Da);if(Ja){f.prepared.name="drag",f.interactable=Ja,f.element=ra;break}ra=Ve(ra)}}}}}};function Gl(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 Re={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(er),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=Gl(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;Gl(i)>0&&(i.prepared.name=null)}},getHoldDuration:Gl},jl=Re,fr={id:"auto-start",install:function(t){t.usePlugin(er),t.usePlugin(jl),t.usePlugin(pr)}},Tr=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 hr(t){var i=t.interaction,f=t.event;i.interactable&&i.interactable.checkAndPreventDefault(f)}var Hl={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=Tr,i.prototype.checkAndPreventDefault=function(f){return function(y,S,O){var G=y.options.preventDefault;if(G!=="never")if(G!=="always"){if(S.events.supportsPassive&&/^touch(start|move)$/.test(O.type)){var Q=x(O.target).document,ge=S.getDocOptions(Q);if(!ge||!ge.events||ge.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(O.type)||_.element(O.target)&&he(O.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||O.preventDefault()}else O.preventDefault()}(this,t,f)},t.interactions.docEvents.push({type:"dragstart",listener:function(f){for(var y=0,S=t.interactions.list;y<S.length;y++){var O=S[y];if(O.element&&(O.element===f.target||se(O.element,f.target)))return void O.interactable.checkAndPreventDefault(f)}}})},listeners:["down","move","up","cancel"].reduce(function(t,i){return t["interactions:".concat(i)]=hr,t},{})};function Lr(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 Pl(t){var i={};for(var f in t){var y=t[f];_.plainObject(y)?i[f]=Pl(y):_.array(y)?i[f]=Ie(y):i[f]=y}return i}var Nr=function(){function t(i){s(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=Ur(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(t,[{key:"start",value:function(i,f){var y,S,O=i.phase,G=this.interaction,Q=function(je){var Ce=je.interactable.options[je.prepared.name],ra=Ce.modifiers;return ra&&ra.length?ra:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Da){var Ja=Ce[Da];return Ja&&Ja.enabled&&{options:Ja,methods:Ja._methods}}).filter(function(Da){return!!Da})}(G);this.prepareStates(Q),this.startEdges=ee({},G.edges),this.edges=ee({},this.startEdges),this.startOffset=(y=G.rect,S=f,y?{left:S.x-y.left,top:S.y-y.top,right:y.right-S.x,bottom:y.bottom-S.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var ge=this.fillArg({phase:O,pageCoords:f,preEnd:!1});return this.result=Ur(),this.startAll(ge),this.result=this.setAll(ge)}},{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,y=this.states;f<y.length;f++){var S=y[f];S.methods.start&&(i.state=S,S.methods.start(i))}}},{key:"setAll",value:function(i){var f=i.phase,y=i.preEnd,S=i.skipModifiers,O=i.rect,G=i.edges;i.coords=ee({},i.pageCoords),i.rect=ee({},O),i.edges=ee({},G);for(var Q=S?this.states.slice(S):this.states,ge=Ur(i.coords,i.rect),je=0;je<Q.length;je++){var Ce,ra=Q[je],Da=ra.options,Ja=ee({},i.coords),Wa=null;(Ce=ra.methods)!=null&&Ce.set&&this.shouldDo(Da,y,f)&&(i.state=ra,Wa=ra.methods.set(i),oe(i.edges,i.rect,{x:i.coords.x-Ja.x,y:i.coords.y-Ja.y})),ge.eventProps.push(Wa)}ee(this.edges,i.edges),ge.delta.x=i.coords.x-i.pageCoords.x,ge.delta.y=i.coords.y-i.pageCoords.y,ge.rectDelta.left=i.rect.left-O.left,ge.rectDelta.right=i.rect.right-O.right,ge.rectDelta.top=i.rect.top-O.top,ge.rectDelta.bottom=i.rect.bottom-O.bottom;var Qa=this.result.coords,xl=this.result.rect;if(Qa&&xl){var ml=ge.rect.left!==xl.left||ge.rect.right!==xl.right||ge.rect.top!==xl.top||ge.rect.bottom!==xl.bottom;ge.changed=ml||Qa.x!==ge.coords.x||Qa.y!==ge.coords.y}return ge}},{key:"applyToInteraction",value:function(i){var f=this.interaction,y=i.phase,S=f.coords.cur,O=f.coords.start,G=this.result,Q=this.startDelta,ge=G.delta;y==="start"&&ee(this.startDelta,G.delta);for(var je=0,Ce=[[O,Q],[S,ge]];je<Ce.length;je++){var ra=Ce[je],Da=ra[0],Ja=ra[1];Da.page.x+=Ja.x,Da.page.y+=Ja.y,Da.client.x+=Ja.x,Da.client.y+=Ja.y}var Wa=this.result.rectDelta,Qa=i.rect||f.rect;Qa.left+=Wa.left,Qa.right+=Wa.right,Qa.top+=Wa.top,Qa.bottom+=Wa.bottom,Qa.width=Qa.right-Qa.left,Qa.height=Qa.bottom-Qa.top}},{key:"setAndApply",value:function(i){var f=this.interaction,y=i.phase,S=i.preEnd,O=i.skipModifiers,G=this.setAll(this.fillArg({preEnd:S,phase:y,pageCoords:i.modifiedCoords||f.coords.cur.page}));if(this.result=G,!G.changed&&(!O||O<this.states.length)&&f.interacting())return!1;if(i.modifiedCoords){var Q=f.coords.cur.page,ge={x:i.modifiedCoords.x-Q.x,y:i.modifiedCoords.y-Q.y};G.coords.x+=ge.x,G.coords.y+=ge.y,G.delta.x+=ge.x,G.delta.y+=ge.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var f=i.interaction,y=i.event,S=this.states;if(S&&S.length){for(var O=!1,G=0;G<S.length;G++){var Q=S[G];i.state=Q;var ge=Q.options,je=Q.methods,Ce=je.beforeEnd&&je.beforeEnd(i);if(Ce)return this.endResult=Ce,!1;O=O||!O&&this.shouldDo(ge,!0,i.phase,!0)}O&&f.move({event:y,preEnd:!0})}}},{key:"stop",value:function(i){var f=i.interaction;if(this.states&&this.states.length){var y=ee({states:this.states,interactable:f.interactable,element:f.element,rect:null},i);this.fillArg(y);for(var S=0,O=this.states;S<O.length;S++){var G=O[S];y.state=G,G.methods.stop&&G.methods.stop(y)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var f=0;f<i.length;f++){var y=i[f],S=y.options,O=y.methods,G=y.name;this.states.push({options:S,methods:O,index:f,name:G})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var f=i.interaction,y=f.coords,S=f.rect,O=f.modification;if(O.result){for(var G=O.startDelta,Q=O.result,ge=Q.delta,je=Q.rectDelta,Ce=0,ra=[[y.start,G],[y.cur,ge]];Ce<ra.length;Ce++){var Da=ra[Ce],Ja=Da[0],Wa=Da[1];Ja.page.x-=Wa.x,Ja.page.y-=Wa.y,Ja.client.x-=Wa.x,Ja.client.y-=Wa.y}S.left-=je.left,S.right-=je.right,S.top-=je.top,S.bottom-=je.bottom}}},{key:"shouldDo",value:function(i,f,y,S){return!(!i||i.enabled===!1||S&&!i.endOnly||i.endOnly&&!f||y==="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 Pl(f)}),this.result=Ur(ee({},i.result.coords),ee({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function Ur(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 wr(t,i){var f=t.defaults,y={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},S=function(O){var G=O||{};for(var Q in G.enabled=G.enabled!==!1,f)Q in G||(G[Q]=f[Q]);var ge={options:G,methods:y,name:i,enable:function(){return G.enabled=!0,ge},disable:function(){return G.enabled=!1,ge}};return ge};return i&&typeof i=="string"&&(S._defaults=f,S._methods=y),S}function ql(t){var i=t.iEvent,f=t.interaction.modification.result;f&&(i.modifiers=f.eventProps)}var ln={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new Nr(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,y=f.setAndApply(t);return i.edges=f.edges,y},"interactions:before-action-end":function(t){var i=t.interaction,f=i.modification,y=f.beforeEnd(t);return i.edges=f.startEdges,y},"interactions:action-start":ql,"interactions:action-move":ql,"interactions:action-end":ql,"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)}}},_r=ln,Ql={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Vr=function(t){m(f,t);var i=M(f);function f(y,S,O,G,Q,ge,je){var Ce;s(this,f),(Ce=i.call(this,y)).relatedTarget=null,Ce.screenX=void 0,Ce.screenY=void 0,Ce.button=void 0,Ce.buttons=void 0,Ce.ctrlKey=void 0,Ce.shiftKey=void 0,Ce.altKey=void 0,Ce.metaKey=void 0,Ce.page=void 0,Ce.client=void 0,Ce.delta=void 0,Ce.rect=void 0,Ce.x0=void 0,Ce.y0=void 0,Ce.t0=void 0,Ce.dt=void 0,Ce.duration=void 0,Ce.clientX0=void 0,Ce.clientY0=void 0,Ce.velocity=void 0,Ce.speed=void 0,Ce.swipe=void 0,Ce.axes=void 0,Ce.preEnd=void 0,Q=Q||y.element;var ra=y.interactable,Da=(ra&&ra.options||Ql).deltaSource,Ja=ze(ra,Q,O),Wa=G==="start",Qa=G==="end",xl=Wa?D(Ce):y.prevEvent,ml=Wa?y.coords.start:Qa?{page:xl.page,client:xl.client,timeStamp:y.coords.cur.timeStamp}:y.coords.cur;return Ce.page=ee({},ml.page),Ce.client=ee({},ml.client),Ce.rect=ee({},y.rect),Ce.timeStamp=ml.timeStamp,Qa||(Ce.page.x-=Ja.x,Ce.page.y-=Ja.y,Ce.client.x-=Ja.x,Ce.client.y-=Ja.y),Ce.ctrlKey=S.ctrlKey,Ce.altKey=S.altKey,Ce.shiftKey=S.shiftKey,Ce.metaKey=S.metaKey,Ce.button=S.button,Ce.buttons=S.buttons,Ce.target=Q,Ce.currentTarget=Q,Ce.preEnd=ge,Ce.type=je||O+(G||""),Ce.interactable=ra,Ce.t0=Wa?y.pointers[y.pointers.length-1].downTime:xl.t0,Ce.x0=y.coords.start.page.x-Ja.x,Ce.y0=y.coords.start.page.y-Ja.y,Ce.clientX0=y.coords.start.client.x-Ja.x,Ce.clientY0=y.coords.start.client.y-Ja.y,Ce.delta=Wa||Qa?{x:0,y:0}:{x:Ce[Da].x-xl[Da].x,y:Ce[Da].y-xl[Da].y},Ce.dt=y.coords.delta.timeStamp,Ce.duration=Ce.timeStamp-Ce.t0,Ce.velocity=ee({},y.coords.velocity[Da]),Ce.speed=Ya(Ce.velocity.x,Ce.velocity.y),Ce.swipe=Qa||G==="inertiastart"?Ce.getSwipe():null,Ce}return c(f,[{key:"getSwipe",value:function(){var y=this._interaction;if(y.prevEvent.speed<600||this.timeStamp-y.prevEvent.timeStamp>150)return null;var S=180*Math.atan2(y.prevEvent.velocityY,y.prevEvent.velocityX)/Math.PI;S<0&&(S+=360);var O=112.5<=S&&S<247.5,G=202.5<=S&&S<337.5;return{up:G,down:!G&&22.5<=S&&S<157.5,left:O,right:!O&&(292.5<=S||S<67.5),angle:S,speed:y.prevEvent.speed,velocity:{x:y.prevEvent.velocityX,y:y.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),f}(W);Object.defineProperties(Vr.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 Ir=c(function t(i,f,y,S,O){s(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=y,this.downTime=S,this.downTarget=O}),Rr=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),vn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),tn=0,mn=function(){function t(i){var f=this,y=i.pointerType,S=i.scopeFire;s(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=ia(function(Ce){this.move(Ce)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=tn++,this._scopeFire=S,this.pointerType=y;var O=this;this._proxy={};var G=function(Ce){Object.defineProperty(f._proxy,Ce,{get:function(){return O[Ce]}})};for(var Q in Rr)G(Q);var ge=function(Ce){Object.defineProperty(f._proxy,Ce,{value:function(){return O[Ce].apply(O,arguments)}})};for(var je in vn)ge(je);this._scopeFire("interactions:new",{interaction:this})}return c(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,f,y){var S=this.updatePointer(i,f,y,!0),O=this.pointers[S];this._scopeFire("interactions:down",{pointer:i,event:f,eventTarget:y,pointerIndex:S,pointerInfo:O,type:"down",interaction:this})}},{key:"start",value:function(i,f,y){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!f.options[i.name].enabled)&&(Va(this.prepared,i),this.interactable=f,this.element=y,this.rect=f.getRect(y),this.edges=this.prepared.edges?ee({},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,y){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,f,y,!1);var S,O,G=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(S=this.coords.cur.client.x-this.coords.start.client.x,O=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ya(S,O)>this.pointerMoveTolerance);var Q,ge,je,Ce=this.getPointerIndex(i),ra={pointer:i,pointerIndex:Ce,pointerInfo:this.pointers[Ce],event:f,type:"move",eventTarget:y,dx:S,dy:O,duplicate:G,interaction:this};G||(Q=this.coords.velocity,ge=this.coords.delta,je=Math.max(ge.timeStamp/1e3,.001),Q.page.x=ge.page.x/je,Q.page.y=ge.page.y/je,Q.client.x=ge.client.x/je,Q.client.y=ge.client.y/je,Q.timeStamp=je),this._scopeFire("interactions:move",ra),G||this.simulation||(this.interacting()&&(ra.type=null,this.move(ra)),this.pointerWasMoved&&J(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||ve(this.coords.delta),(i=ee({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,y,S){var O=this.getPointerIndex(i);O===-1&&(O=this.updatePointer(i,f,y,!1));var G=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(G),{pointer:i,pointerIndex:O,pointerInfo:this.pointers[O],event:f,eventTarget:y,type:G,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=ce(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:we(this.pointers,function(y){return y.id===f})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,f,y,S){var O,G,Q,ge=ce(i),je=this.getPointerIndex(i),Ce=this.pointers[je];return S=S!==!1&&(S||/(down|start)$/i.test(f.type)),Ce?Ce.pointer=i:(Ce=new Ir(ge,i,f,null,null),je=this.pointers.length,this.pointers.push(Ce)),ga(this.coords.cur,this.pointers.map(function(ra){return ra.pointer}),this._now()),O=this.coords.delta,G=this.coords.prev,Q=this.coords.cur,O.page.x=Q.page.x-G.page.x,O.page.y=Q.page.y-G.page.y,O.client.x=Q.client.x-G.client.x,O.client.y=Q.client.y-G.client.y,O.timeStamp=Q.timeStamp-G.timeStamp,S&&(this.pointerIsDown=!0,Ce.downTime=this.coords.cur.timeStamp,Ce.downTarget=y,j(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,y),this._scopeFire("interactions:update-pointer",{pointer:i,event:f,eventTarget:y,down:S,pointerInfo:Ce,pointerIndex:je,interaction:this}),je}},{key:"removePointer",value:function(i,f){var y=this.getPointerIndex(i);if(y!==-1){var S=this.pointers[y];this._scopeFire("interactions:remove-pointer",{pointer:i,event:f,eventTarget:null,pointerIndex:y,pointerInfo:S,interaction:this}),this.pointers.splice(y,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,f,y){this._latestPointer.pointer=i,this._latestPointer.event=f,this._latestPointer.eventTarget=y}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,f,y,S){return new Vr(this,i,this.prepared.name,f,this.element,y,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,y=i.phase,S=i.preEnd,O=i.type,G=this.rect;if(G&&y==="move"&&(oe(this.edges,G,this.coords.delta[this.interactable.options.deltaSource]),G.width=G.right-G.left,G.height=G.bottom-G.top),this._scopeFire("interactions:before-action-".concat(y),i)===!1)return!1;var Q=i.iEvent=this._createPreparedEvent(f,y,S,O);return this._scopeFire("interactions:action-".concat(y),i),y==="start"&&(this.prevEvent=Q),this._fireEvent(Q),this._scopeFire("interactions:after-action-".concat(y),i),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function nr(t){vr(t.interaction)}function vr(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),oe(t.edges,t.rect,i),i.x=0,i.y=0,!0}function jr(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,y=t.client,S=i.x,O=i.y;f.x+=S,f.y+=O,y.x+=S,y.y+=O}vn.offsetBy="";var ir={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=jr},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":nr,"interactions:before-action-move":nr,"interactions:before-action-end":function(t){var i=t.interaction;if(vr(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}}},Ll=ir,xr=function(){function t(i){s(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 c(t,[{key:"start",value:function(i){var f=this.interaction,y=Sl(f);if(!y||!y.enabled)return!1;var S=f.coords.velocity.client,O=Ya(S.x,S.y),G=this.modification||(this.modification=new Nr(f));if(G.copyFrom(f.modification),this.t0=f._now(),this.allowResume=y.allowResume,this.v0=O,this.currentOffset={x:0,y:0},this.startCoords=f.coords.cur.page,this.modifierArg=G.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-f.coords.cur.timeStamp<50&&O>y.minSpeed&&O>y.endSpeed)this.startInertia();else{if(G.result=G.setAll(this.modifierArg),!G.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,y=Sl(this.interaction),S=y.resistance,O=-Math.log(y.endSpeed/this.v0)/S;this.targetOffset={x:(f.x-O)/S,y:(f.y-O)/S},this.te=O,this.lambda_v0=S/this.v0,this.one_ve_v0=1-y.endSpeed/this.v0;var G=this.modification,Q=this.modifierArg;Q.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},G.result=G.setAll(Q),G.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+G.result.delta.x,y:this.targetOffset.y+G.result.delta.y}),this.onNextFrame(function(){return i.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var i=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return i.smoothEndTick()})}},{key:"onNextFrame",value:function(i){var f=this;this.timeout=cl.request(function(){f.active&&i()})}},{key:"inertiaTick",value:function(){var i,f,y,S,O,G,Q,ge=this,je=this.interaction,Ce=Sl(je).resistance,ra=(je._now()-this.t0)/1e3;if(ra<this.te){var Da,Ja=1-(Math.exp(-Ce*ra)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,f=0,y=this.targetOffset.x,S=this.targetOffset.y,O=this.modifiedOffset.x,G=this.modifiedOffset.y,Da={x:Br(Q=Ja,i,y,O),y:Br(Q,f,S,G)}):Da={x:this.targetOffset.x*Ja,y:this.targetOffset.y*Ja};var Wa={x:Da.x-this.currentOffset.x,y:Da.y-this.currentOffset.y};this.currentOffset.x+=Wa.x,this.currentOffset.y+=Wa.y,je.offsetBy(Wa),je.move(),this.onNextFrame(function(){return ge.inertiaTick()})}else je.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,f=this.interaction,y=f._now()-this.t0,S=Sl(f).smoothEndDuration;if(y<S){var O={x:xn(y,0,this.targetOffset.x,S),y:xn(y,0,this.targetOffset.y,S)},G={x:O.x-this.currentOffset.x,y:O.y-this.currentOffset.y};this.currentOffset.x+=G.x,this.currentOffset.y+=G.y,f.offsetBy(G),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,y=i.event,S=i.eventTarget,O=this.interaction;O.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),O.updatePointer(f,y,S,!0),O._doPhase({interaction:O,event:y,phase:"resume"}),J(O.coords.prev,O.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,cl.cancel(this.timeout)}}]),t}();function Sl(t){var i=t.interactable,f=t.prepared;return i&&i.options&&f.name&&i.options[f.name].inertia}var ar={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(Ll),t.usePlugin(_r),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 xr(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,y=i.inertia;if(y.active)for(var S=f;_.element(S);){if(S===i.element){y.resume(t);break}S=Ve(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":ql,"interactions:action-inertiastart":ql,"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 Br(t,i,f,y){var S=1-t;return S*S*i+2*S*t*f+t*t*y}function xn(t,i,f,y){return-f*(t/=y)*(t-2)+i}var Nn=ar;function wn(t,i){for(var f=0;f<i.length;f++){var y=i[f];if(t.immediatePropagationStopped)break;y(t)}}var Un=function(){function t(i){s(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ee({},i||{})}return c(t,[{key:"fire",value:function(i){var f,y=this.global;(f=this.types[i.type])&&wn(i,f),!i.propagationStopped&&y&&(f=y[i.type])&&wn(i,f)}},{key:"on",value:function(i,f){var y=Ke(i,f);for(i in y)this.types[i]=Te(this.types[i]||[],y[i])}},{key:"off",value:function(i,f){var y=Ke(i,f);for(i in y){var S=this.types[i];if(S&&S.length)for(var O=0,G=y[i];O<G.length;O++){var Q=G[O],ge=S.indexOf(Q);ge!==-1&&S.splice(ge,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),Ln=function(){function t(i){s(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,j(this,i)}return c(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function _n(t){return _.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function An(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Rn={id:"events",install:function(t){var i,f=[],y={},S=[],O={add:G,remove:Q,addDelegate:function(Ce,ra,Da,Ja,Wa){var Qa=_n(Wa);if(!y[Da]){y[Da]=[];for(var xl=0;xl<S.length;xl++){var ml=S[xl];G(ml,Da,ge),G(ml,Da,je,!0)}}var El=y[Da],Ul=wa(El,function(Cl){return Cl.selector===Ce&&Cl.context===ra});Ul||(Ul={selector:Ce,context:ra,listeners:[]},El.push(Ul)),Ul.listeners.push({func:Ja,options:Qa})},removeDelegate:function(Ce,ra,Da,Ja,Wa){var Qa,xl=_n(Wa),ml=y[Da],El=!1;if(ml)for(Qa=ml.length-1;Qa>=0;Qa--){var Ul=ml[Qa];if(Ul.selector===Ce&&Ul.context===ra){for(var Cl=Ul.listeners,Il=Cl.length-1;Il>=0;Il--){var Ml=Cl[Il];if(Ml.func===Ja&&An(Ml.options,xl)){Cl.splice(Il,1),Cl.length||(ml.splice(Qa,1),Q(ra,Da,ge),Q(ra,Da,je,!0)),El=!0;break}}if(El)break}}},delegateListener:ge,delegateUseCapture:je,delegatedEvents:y,documents:S,targets:f,supportsOptions:!1,supportsPassive:!1};function G(Ce,ra,Da,Ja){if(Ce.addEventListener){var Wa=_n(Ja),Qa=wa(f,function(xl){return xl.eventTarget===Ce});Qa||(Qa={eventTarget:Ce,events:{}},f.push(Qa)),Qa.events[ra]||(Qa.events[ra]=[]),wa(Qa.events[ra],function(xl){return xl.func===Da&&An(xl.options,Wa)})||(Ce.addEventListener(ra,Da,O.supportsOptions?Wa:Wa.capture),Qa.events[ra].push({func:Da,options:Wa}))}}function Q(Ce,ra,Da,Ja){if(Ce.addEventListener&&Ce.removeEventListener){var Wa=we(f,function(Wr){return Wr.eventTarget===Ce}),Qa=f[Wa];if(Qa&&Qa.events)if(ra!=="all"){var xl=!1,ml=Qa.events[ra];if(ml){if(Da==="all"){for(var El=ml.length-1;El>=0;El--){var Ul=ml[El];Q(Ce,ra,Ul.func,Ul.options)}return}for(var Cl=_n(Ja),Il=0;Il<ml.length;Il++){var Ml=ml[Il];if(Ml.func===Da&&An(Ml.options,Cl)){Ce.removeEventListener(ra,Da,O.supportsOptions?Cl:Cl.capture),ml.splice(Il,1),ml.length===0&&(delete Qa.events[ra],xl=!0);break}}}xl&&!Object.keys(Qa.events).length&&f.splice(Wa,1)}else for(ra in Qa.events)Qa.events.hasOwnProperty(ra)&&Q(Ce,ra,"all")}}function ge(Ce,ra){for(var Da=_n(ra),Ja=new Ln(Ce),Wa=y[Ce.type],Qa=va(Ce)[0],xl=Qa;_.element(xl);){for(var ml=0;ml<Wa.length;ml++){var El=Wa[ml],Ul=El.selector,Cl=El.context;if(he(xl,Ul)&&se(Cl,Qa)&&se(Cl,xl)){var Il=El.listeners;Ja.currentTarget=xl;for(var Ml=0;Ml<Il.length;Ml++){var Wr=Il[Ml];An(Wr.options,Da)&&Wr.func(Ja)}}}xl=Ve(xl)}}function je(Ce){return ge(Ce,!0)}return(i=t.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return O.supportsOptions=!0},get passive(){return O.supportsPassive=!0}}),t.events=O,O}},rn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,f=rn.methodOrder;i<f.length;i++){var y=f[i],S=rn[y](t);if(S)return S}return null},simulationResume:function(t){var i=t.pointerType,f=t.eventType,y=t.eventTarget,S=t.scope;if(!/down|start/i.test(f))return null;for(var O=0,G=S.interactions.list;O<G.length;O++){var Q=G[O],ge=y;if(Q.simulation&&Q.simulation.allowResume&&Q.pointerType===i)for(;ge;){if(ge===Q.element)return Q;ge=Ve(ge)}}return null},mouseOrPen:function(t){var i,f=t.pointerId,y=t.pointerType,S=t.eventType,O=t.scope;if(y!=="mouse"&&y!=="pen")return null;for(var G=0,Q=O.interactions.list;G<Q.length;G++){var ge=Q[G];if(ge.pointerType===y){if(ge.simulation&&!zn(ge,f))continue;if(ge.interacting())return ge;i||(i=ge)}}if(i)return i;for(var je=0,Ce=O.interactions.list;je<Ce.length;je++){var ra=Ce[je];if(!(ra.pointerType!==y||/down/i.test(S)&&ra.simulation))return ra}return null},hasPointer:function(t){for(var i=t.pointerId,f=0,y=t.scope.interactions.list;f<y.length;f++){var S=y[f];if(zn(S,i))return S}return null},idle:function(t){for(var i=t.pointerType,f=0,y=t.scope.interactions.list;f<y.length;f++){var S=y[f];if(S.pointers.length===1){var O=S.interactable;if(O&&(!O.options.gesture||!O.options.gesture.enabled))continue}else if(S.pointers.length>=2)continue;if(!S.interacting()&&i===S.pointerType)return S}return null}};function zn(t,i){return t.pointers.some(function(f){return f.id===i})}var qn=rn,Pr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Wn(t,i){return function(f){var y=i.interactions.list,S=$a(f),O=va(f),G=O[0],Q=O[1],ge=[];if(/^touch/.test(f.type)){i.prevTouchTime=i.now();for(var je=0,Ce=f.changedTouches;je<Ce.length;je++){var ra=Ce[je],Da={pointer:ra,pointerId:ce(ra),pointerType:S,eventType:f.type,eventTarget:G,curEventTarget:Q,scope:i},Ja=yn(Da);ge.push([Da.pointer,Da.eventTarget,Da.curEventTarget,Ja])}}else{var Wa=!1;if(!Z.supportsPointerEvent&&/mouse/.test(f.type)){for(var Qa=0;Qa<y.length&&!Wa;Qa++)Wa=y[Qa].pointerType!=="mouse"&&y[Qa].pointerIsDown;Wa=Wa||i.now()-i.prevTouchTime<500||f.timeStamp===0}if(!Wa){var xl={pointer:f,pointerId:ce(f),pointerType:S,eventType:f.type,curEventTarget:Q,eventTarget:G,scope:i},ml=yn(xl);ge.push([xl.pointer,xl.eventTarget,xl.curEventTarget,ml])}}for(var El=0;El<ge.length;El++){var Ul=ge[El],Cl=Ul[0],Il=Ul[1],Ml=Ul[2];Ul[3][t](Cl,f,Il,Ml)}}}function yn(t){var i=t.pointerType,f=t.scope,y={interaction:qn.search(t),searchDetails:t};return f.fire("interactions:find",y),y.interaction||f.interactions.new({pointerType:i})}function Ni(t,i){var f=t.doc,y=t.scope,S=t.options,O=y.interactions.docEvents,G=y.events,Q=G[i];for(var ge in y.browser.isIOS&&!S.events&&(S.events={passive:!1}),G.delegatedEvents)Q(f,ge,G.delegateListener),Q(f,ge,G.delegateUseCapture,!0);for(var je=S&&S.events,Ce=0;Ce<O.length;Ce++){var ra=O[Ce];Q(f,ra.type,ra.listener,je)}}var Lo={id:"core/interactions",install:function(t){for(var i={},f=0;f<Pr.length;f++){var y=Pr[f];i[y]=Wn(y,t)}var S,O=Z.pEventTypes;function G(){for(var Q=0,ge=t.interactions.list;Q<ge.length;Q++){var je=ge[Q];if(je.pointerIsDown&&je.pointerType==="touch"&&!je._interacting)for(var Ce=function(){var Ja=Da[ra];t.documents.some(function(Wa){return se(Wa.doc,Ja.downTarget)})||je.removePointer(Ja.pointer,Ja.event)},ra=0,Da=je.pointers;ra<Da.length;ra++)Ce()}}(S=F.PointerEvent?[{type:O.down,listener:G},{type:O.down,listener:i.pointerDown},{type:O.move,listener:i.pointerMove},{type:O.up,listener:i.pointerUp},{type:O.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:G},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(Q){for(var ge=0,je=t.interactions.list;ge<je.length;ge++)je[ge].documentBlur(Q)}}),t.prevTouchTime=0,t.Interaction=function(Q){m(je,Q);var ge=M(je);function je(){return s(this,je),ge.apply(this,arguments)}return c(je,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(Ce){t.interactions.pointerMoveTolerance=Ce}},{key:"_now",value:function(){return t.now()}}]),je}(mn),t.interactions={list:[],new:function(Q){Q.scopeFire=function(je,Ce){return t.fire(je,Ce)};var ge=new t.Interaction(Q);return t.interactions.list.push(ge),ge},listeners:i,docEvents:S,pointerMoveTolerance:1},t.usePlugin(Hl)},listeners:{"scope:add-document":function(t){return Ni(t,"add")},"scope:remove-document":function(t){return Ni(t,"remove")},"interactable:unset":function(t,i){for(var f=t.interactable,y=i.interactions.list.length-1;y>=0;y--){var S=i.interactions.list[y];S.interactable===f&&(S.stop(),i.fire("interactions:destroy",{interaction:S}),S.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(y,1))}}},onDocSignal:Ni,doOnInteractions:Wn,methodNames:Pr},Ro=Lo,Cn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(Cn||{}),$o=function(){function t(i,f,y,S){s(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Un,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=f.actions,this.target=i,this._context=f.context||y,this._win=x(Ba(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=S,this.set(f)}return c(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,y){var S,O=this,G=(S=this._actions.map[i])==null?void 0:S.filterEventType,Q=function(ge){return(G==null||G(ge))&&Lr(ge,O._actions)};(_.array(f)||_.object(f))&&this._onOff(Cn.Off,i,f,void 0,Q),(_.array(y)||_.object(y))&&this._onOff(Cn.On,i,y,void 0,Q)}},{key:"setPerAction",value:function(i,f){var y=this._defaults;for(var S in f){var O=S,G=this.options[i],Q=f[O];O==="listeners"&&this.updatePerActionListeners(i,G.listeners,Q),_.array(Q)?G[O]=Ie(Q):_.plainObject(Q)?(G[O]=ee(G[O]||{},Pl(Q)),_.object(y.perAction[O])&&"enabled"in y.perAction[O]&&(G[O].enabled=Q.enabled!==!1)):_.bool(Q)&&_.object(y.perAction[O])?G[O].enabled=Q:G[O]=Q}}},{key:"getRect",value:function(i){return i=i||(_.element(this.target)?this.target:null),_.string(this.target)&&(i=i||this._context.querySelector(this.target)),Fe(i)}},{key:"rectChecker",value:function(i){var f=this;return _.func(i)?(this.getRect=function(y){var S=ee({},i.apply(f,y));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(Ba(f)||_.object(f)){for(var y in this.options[i]=f,this._actions.map)this.options[y][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||se(this._context,i)}},{key:"testIgnoreAllow",value:function(i,f,y){return!this.testIgnore(i.ignoreFrom,f,y)&&this.testAllow(i.allowFrom,f,y)}},{key:"testAllow",value:function(i,f,y){return!i||!!_.element(y)&&(_.string(i)?U(y,i,f):!!_.element(i)&&se(i,y))}},{key:"testIgnore",value:function(i,f,y){return!(!i||!_.element(y))&&(_.string(i)?U(y,i,f):!!_.element(i)&&se(i,y))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,f,y,S,O){_.object(f)&&!_.array(f)&&(S=y,y=null);var G=Ke(f,y,O);for(var Q in G){Q==="wheel"&&(Q=Z.wheelEvent);for(var ge=0,je=G[Q];ge<je.length;ge++){var Ce=je[ge];Lr(Q,this._actions)?this.events[i===Cn.On?"on":"off"](Q,Ce):_.string(this.target)?this._scopeEvents[i===Cn.On?"addDelegate":"removeDelegate"](this.target,this._context,Q,Ce,S):this._scopeEvents[i===Cn.On?"add":"remove"](this.target,Q,Ce,S)}}return this}},{key:"on",value:function(i,f,y){return this._onOff(Cn.On,i,f,y)}},{key:"off",value:function(i,f,y){return this._onOff(Cn.Off,i,f,y)}},{key:"set",value:function(i){var f=this._defaults;for(var y in _.object(i)||(i={}),this.options=Pl(f.base),this._actions.methodDict){var S=y,O=this._actions.methodDict[S];this.options[S]={},this.setPerAction(S,ee(ee({},f.perAction),f.actions[S])),this[O](i[S])}for(var G in i)G!=="getRect"?_.func(this[G])&&this[G](i[G]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(_.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var f=this._scopeEvents.delegatedEvents[i],y=f.length-1;y>=0;y--){var S=f[y],O=S.selector,G=S.context,Q=S.listeners;O===this.target&&G===this._context&&f.splice(y,1);for(var ge=Q.length-1;ge>=0;ge--)this._scopeEvents.removeDelegate(this.target,this._context,i,Q[ge][0],Q[ge][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),Vo=function(){function t(i){var f=this;s(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(y){var S=y.interactable,O=S.target,G=_.string(O)?f.selectorMap[O]:O[f.scope.id],Q=we(G,function(ge){return ge===S});G.splice(Q,1)}})}return c(t,[{key:"new",value:function(i,f){f=ee(f||{},{actions:this.scope.actions});var y=new this.scope.Interactable(i,f,this.scope.document,this.scope.events);return this.scope.addDocument(y._doc),this.list.push(y),_.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(y)):(y.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(y)),this.scope.fire("interactable:new",{target:i,options:f,interactable:y,win:this.scope._win}),y}},{key:"getExisting",value:function(i,f){var y=f&&f.context||this.scope.document,S=_.string(i),O=S?this.selectorMap[i]:i[this.scope.id];if(O)return wa(O,function(G){return G._context===y&&(S||G.inContext(i))})}},{key:"forEachMatch",value:function(i,f){for(var y=0,S=this.list;y<S.length;y++){var O=S[y],G=void 0;if((_.string(O.target)?_.element(i)&&he(i,O.target):i===O.target)&&O.inContext(i)&&(G=f(O)),G!==void 0)return G}}}]),t}(),Po=function(){function t(){var i=this;s(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Z,this.defaults=Pl(Ql),this.Eventable=Un,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(y){var S=function O(G,Q){var ge=y.interactables.getExisting(G,Q);return ge||((ge=y.interactables.new(G,Q)).events.global=O.globalEvents),ge};return S.getPointerAverage=Je,S.getTouchBBox=Na,S.getTouchDistance=Ca,S.getTouchAngle=la,S.getElementRect=Fe,S.getElementClientRect=Oe,S.matchesSelector=he,S.closest=Be,S.globalEvents={},S.version="1.10.27",S.scope=y,S.use=function(O,G){return this.scope.usePlugin(O,G),this},S.isSet=function(O,G){return!!this.scope.interactables.get(O,G&&G.context)},S.on=ia(function(O,G,Q){if(_.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),_.array(O)){for(var ge=0,je=O;ge<je.length;ge++){var Ce=je[ge];this.on(Ce,G,Q)}return this}if(_.object(O)){for(var ra in O)this.on(ra,O[ra],G);return this}return Lr(O,this.scope.actions)?this.globalEvents[O]?this.globalEvents[O].push(G):this.globalEvents[O]=[G]:this.scope.events.add(this.scope.document,O,G,{options:Q}),this},"The interact.on() method is being deprecated"),S.off=ia(function(O,G,Q){if(_.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),_.array(O)){for(var ge=0,je=O;ge<je.length;ge++){var Ce=je[ge];this.off(Ce,G,Q)}return this}if(_.object(O)){for(var ra in O)this.off(ra,O[ra],G);return this}var Da;return Lr(O,this.scope.actions)?O in this.globalEvents&&(Da=this.globalEvents[O].indexOf(G))!==-1&&this.globalEvents[O].splice(Da,1):this.scope.events.remove(this.scope.document,O,G,Q),this},"The interact.off() method is being deprecated"),S.debug=function(){return this.scope},S.supportsTouch=function(){return Z.supportsTouch},S.supportsPointerEvent=function(){return Z.supportsPointerEvent},S.stop=function(){for(var O=0,G=this.scope.interactions.list;O<G.length;O++)G[O].stop();return this},S.pointerMoveTolerance=function(O){return _.number(O)?(this.scope.interactions.pointerMoveTolerance=O,this):this.scope.interactions.pointerMoveTolerance},S.addDocument=function(O,G){this.scope.addDocument(O,G)},S.removeDocument=function(O){this.scope.removeDocument(O)},S}(this),this.InteractEvent=Vr,this.Interactable=void 0,this.interactables=new Vo(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(y){return i.removeDocument(y.target)};var f=this;this.Interactable=function(y){m(O,y);var S=M(O);function O(){return s(this,O),S.apply(this,arguments)}return c(O,[{key:"_defaults",get:function(){return f.defaults}},{key:"set",value:function(G){return k(g(O.prototype),"set",this).call(this,G),f.fire("interactable:set",{options:G,interactable:this}),this}},{key:"unset",value:function(){k(g(O.prototype),"unset",this).call(this);var G=f.interactables.list.indexOf(this);G<0||(f.interactables.list.splice(G,1),f.fire("interactable:unset",{interactable:this}))}}]),O}($o)}return c(t,[{key:"addListeners",value:function(i,f){this.listenerMaps.push({id:f,map:i})}},{key:"fire",value:function(i,f){for(var y=0,S=this.listenerMaps;y<S.length;y++){var O=S[y].map[i];if(O&&O(f,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(f,y){return f.isInitialized=!0,_.window(y)&&E(y),F.init(y),Z.init(y),cl.init(y),f.window=y,f.document=y.document,f.usePlugin(Ro),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 y=0,S=this.listenerMaps.length,O=i.before.reduce(function(Q,ge){return Q[ge]=!0,Q[Ai(ge)]=!0,Q},{});y<S;y++){var G=this.listenerMaps[y].id;if(G&&(O[G]||O[Ai(G)]))break}this.listenerMaps.splice(y,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 y=x(i);f=f?ee({},f):{},this.documents.push({doc:i,options:f}),this.events.documents.push(i),i!==this.document&&this.events.add(y,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:y,scope:this,options:f})}},{key:"removeDocument",value:function(i){var f=this.getDocIndex(i),y=x(i),S=this.documents[f].options;this.events.remove(y,"unload",this.onWindowUnload),this.documents.splice(f,1),this.events.documents.splice(f,1),this.fire("scope:remove-document",{doc:i,window:y,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 Ai(t){return t&&t.replace(/\/.*$/,"")}var Ji=new Po,qr=Ji.interactStatic,Fo=typeof globalThis<"u"?globalThis:window;Ji.init(Fo);var jo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(y){var S=y[0],O=y[1];return S in t||O in t}),f=function(y,S){for(var O=t.range,G=t.limits,Q=G===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:G,ge=t.offset,je=ge===void 0?{x:0,y:0}:ge,Ce={range:O,grid:t,x:null,y:null},ra=0;ra<i.length;ra++){var Da=i[ra],Ja=Da[0],Wa=Da[1],Qa=Math.round((y-je.x)/t[Ja]),xl=Math.round((S-je.y)/t[Wa]);Ce[Ja]=Math.max(Q.left,Math.min(Q.right,Qa*t[Ja]+je.x)),Ce[Wa]=Math.max(Q.top,Math.min(Q.bottom,xl*t[Wa]+je.y))}return Ce};return f.grid=t,f.coordFields=i,f}}),zi={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=ee(i.snappers||{},jo),i.createSnapGrid=i.snappers.grid}},Ho=zi,Mi={start:function(t){var i=t.state,f=t.rect,y=t.edges,S=t.pageCoords,O=i.options,G=O.ratio,Q=O.enabled,ge=i.options,je=ge.equalDelta,Ce=ge.modifiers;G==="preserve"&&(G=f.width/f.height),i.startCoords=ee({},S),i.startRect=ee({},f),i.ratio=G,i.equalDelta=je;var ra=i.linkedEdges={top:y.top||y.left&&!y.bottom,left:y.left||y.top&&!y.right,bottom:y.bottom||y.right&&!y.top,right:y.right||y.bottom&&!y.left};if(i.xIsPrimaryAxis=!(!y.left&&!y.right),i.equalDelta){var Da=(ra.left?1:-1)*(ra.top?1:-1);i.edgeSign={x:Da,y:Da}}else i.edgeSign={x:ra.left?-1:1,y:ra.top?-1:1};if(Q!==!1&&ee(y,ra),Ce!=null&&Ce.length){var Ja=new Nr(t.interaction);Ja.copyFrom(t.interaction.modification),Ja.prepareStates(Ce),i.subModification=Ja,Ja.startAll(r({},t))}},set:function(t){var i=t.state,f=t.rect,y=t.coords,S=i.linkedEdges,O=ee({},y),G=i.equalDelta?Xi:Zi;if(ee(t.edges,S),G(i,i.xIsPrimaryAxis,y,f),!i.subModification)return null;var Q=ee({},f);oe(S,Q,{x:y.x-O.x,y:y.y-O.y});var ge=i.subModification.setAll(r(r({},t),{},{rect:Q,edges:S,pageCoords:y,prevCoords:y,prevRect:Q})),je=ge.delta;return ge.changed&&(G(i,Math.abs(je.x)>Math.abs(je.y),ge.coords,ge.rect),ee(y,ge.coords)),ge.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Xi(t,i,f){var y=t.startCoords,S=t.edgeSign;i?f.y=y.y+(f.x-y.x)*S.y:f.x=y.x+(f.y-y.y)*S.x}function Zi(t,i,f,y){var S=t.startRect,O=t.startCoords,G=t.ratio,Q=t.edgeSign;if(i){var ge=y.width/G;f.y=O.y+(ge-S.height)*Q.y}else{var je=y.height*G;f.x=O.x+(je-S.width)*Q.x}}var Uo=wr(Mi,"aspectRatio"),Qi=function(){};Qi._defaults={};var ci=Qi;function sn(t,i,f){return _.func(t)?ue(t,i.interactable,i.element,[f.x,f.y,i]):ue(t,i.interactable,i.element)}var Kn={start:function(t){var i=t.rect,f=t.startOffset,y=t.state,S=t.interaction,O=t.pageCoords,G=y.options,Q=G.elementRect,ge=ee({left:0,top:0,right:0,bottom:0},G.offset||{});if(i&&Q){var je=sn(G.restriction,S,O);if(je){var Ce=je.right-je.left-i.width,ra=je.bottom-je.top-i.height;Ce<0&&(ge.left+=Ce,ge.right+=Ce),ra<0&&(ge.top+=ra,ge.bottom+=ra)}ge.left+=f.left-i.width*Q.left,ge.top+=f.top-i.height*Q.top,ge.right+=f.right-i.width*(1-Q.right),ge.bottom+=f.bottom-i.height*(1-Q.bottom)}y.offset=ge},set:function(t){var i=t.coords,f=t.interaction,y=t.state,S=y.options,O=y.offset,G=sn(S.restriction,f,i);if(G){var Q=function(ge){return!ge||"left"in ge&&"top"in ge||((ge=ee({},ge)).left=ge.x||0,ge.top=ge.y||0,ge.right=ge.right||ge.left+ge.width,ge.bottom=ge.bottom||ge.top+ge.height),ge}(G);i.x=Math.max(Math.min(Q.right-O.right,i.x),Q.left+O.left),i.y=Math.max(Math.min(Q.bottom-O.bottom,i.y),Q.top+O.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ii=wr(Kn,"restrict"),eo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},ao={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function lo(t,i){for(var f=0,y=["top","left","bottom","right"];f<y.length;f++){var S=y[f];S in t||(t[S]=i[S])}return t}var Gn={noInner:eo,noOuter:ao,start:function(t){var i,f=t.interaction,y=t.startOffset,S=t.state,O=S.options;O&&(i=sa(sn(O.offset,f,f.coords.start.page))),i=i||{x:0,y:0},S.offset={top:i.y+y.top,left:i.x+y.left,bottom:i.y-y.bottom,right:i.x-y.right}},set:function(t){var i=t.coords,f=t.edges,y=t.interaction,S=t.state,O=S.offset,G=S.options;if(f){var Q=ee({},i),ge=sn(G.inner,y,Q)||{},je=sn(G.outer,y,Q)||{};lo(ge,eo),lo(je,ao),f.top?i.y=Math.min(Math.max(je.top+O.top,Q.y),ge.top+O.top):f.bottom&&(i.y=Math.max(Math.min(je.bottom+O.bottom,Q.y),ge.bottom+O.bottom)),f.left?i.x=Math.min(Math.max(je.left+O.left,Q.x),ge.left+O.left):f.right&&(i.x=Math.max(Math.min(je.right+O.right,Q.x),ge.right+O.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ro=wr(Gn,"restrictEdges"),Yn=ee({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Kn.defaults),no=wr({start:Kn.start,set:Kn.set,defaults:Yn},"restrictRect"),io={width:-1/0,height:-1/0},Jn={width:1/0,height:1/0},qo=wr({start:function(t){return Gn.start(t)},set:function(t){var i=t.interaction,f=t.state,y=t.rect,S=t.edges,O=f.options;if(S){var G=Se(sn(O.min,i,t.coords))||io,Q=Se(sn(O.max,i,t.coords))||Jn;f.options={endOnly:O.endOnly,inner:ee({},Gn.noInner),outer:ee({},Gn.noOuter)},S.top?(f.options.inner.top=y.bottom-G.height,f.options.outer.top=y.bottom-Q.height):S.bottom&&(f.options.inner.bottom=y.top+G.height,f.options.outer.bottom=y.top+Q.height),S.left?(f.options.inner.left=y.right-G.width,f.options.outer.left=y.right-Q.width):S.right&&(f.options.inner.right=y.left+G.width,f.options.outer.right=y.left+Q.width),Gn.set(t),f.options=O}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ui={start:function(t){var i,f=t.interaction,y=t.interactable,S=t.element,O=t.rect,G=t.state,Q=t.startOffset,ge=G.options,je=ge.offsetWithOrigin?function(Da){var Ja=Da.interaction.element,Wa=sa(ue(Da.state.options.origin,null,null,[Ja])),Qa=Wa||ze(Da.interactable,Ja,Da.interaction.prepared.name);return Qa}(t):{x:0,y:0};if(ge.offset==="startCoords")i={x:f.coords.start.page.x,y:f.coords.start.page.y};else{var Ce=ue(ge.offset,y,S,[f]);(i=sa(Ce)||{x:0,y:0}).x+=je.x,i.y+=je.y}var ra=ge.relativePoints;G.offsets=O&&ra&&ra.length?ra.map(function(Da,Ja){return{index:Ja,relativePoint:Da,x:Q.left-O.width*Da.x+i.x,y:Q.top-O.height*Da.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,f=t.coords,y=t.state,S=y.options,O=y.offsets,G=ze(i.interactable,i.element,i.prepared.name),Q=ee({},f),ge=[];S.offsetWithOrigin||(Q.x-=G.x,Q.y-=G.y);for(var je=0,Ce=O;je<Ce.length;je++)for(var ra=Ce[je],Da=Q.x-ra.x,Ja=Q.y-ra.y,Wa=0,Qa=S.targets.length;Wa<Qa;Wa++){var xl=S.targets[Wa],ml=void 0;(ml=_.func(xl)?xl(Da,Ja,i._proxy,ra,Wa):xl)&&ge.push({x:(_.number(ml.x)?ml.x:Da)+ra.x,y:(_.number(ml.y)?ml.y:Ja)+ra.y,range:_.number(ml.range)?ml.range:S.range,source:xl,index:Wa,offset:ra})}for(var El={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ul=0;Ul<ge.length;Ul++){var Cl=ge[Ul],Il=Cl.range,Ml=Cl.x-Q.x,Wr=Cl.y-Q.y,or=Ya(Ml,Wr),Xr=or<=Il;Il===1/0&&El.inRange&&El.range!==1/0&&(Xr=!1),El.target&&!(Xr?El.inRange&&Il!==1/0?or/Il<El.distance/El.range:Il===1/0&&El.range!==1/0||or<El.distance:!El.inRange&&or<El.distance)||(El.target=Cl,El.distance=or,El.range=Il,El.inRange=Xr,El.delta.x=Ml,El.delta.y=Wr)}return El.inRange&&(f.x=El.target.x,f.y=El.target.y),y.closest=El,El},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Xn=wr(ui,"snap"),di={start:function(t){var i=t.state,f=t.edges,y=i.options;if(!f)return null;t.state={options:{targets:null,relativePoints:[{x:f.left?0:1,y:f.top?0:1}],offset:y.offset||"self",origin:{x:0,y:0},range:y.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],ui.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,f=t.state,y=t.coords,S=f.options,O=f.offsets,G={x:y.x-O[0].x,y:y.y-O[0].y};f.options=ee({},S),f.options.targets=[];for(var Q=0,ge=S.targets||[];Q<ge.length;Q++){var je=ge[Q],Ce=void 0;if(Ce=_.func(je)?je(G.x,G.y,i):je){for(var ra=0,Da=f.targetFields;ra<Da.length;ra++){var Ja=Da[ra],Wa=Ja[0],Qa=Ja[1];if(Wa in Ce||Qa in Ce){Ce.x=Ce[Wa],Ce.y=Ce[Qa];break}}f.options.targets.push(Ce)}}var xl=ui.set(t);return f.options=S,xl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Wo=wr(di,"snapSize"),Oi={aspectRatio:Uo,restrictEdges:ro,restrict:Ii,restrictRect:no,restrictSize:qo,snapEdges:wr({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],di.start(t)):null},set:di.set,defaults:ee(Pl(di.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Xn,snapSize:Wo,spring:ci,avoid:ci,transform:ci,rubberband:ci},Ko={id:"modifiers",install:function(t){var i=t.interactStatic;for(var f in t.usePlugin(_r),t.usePlugin(Ho),i.modifiers=Oi,Oi){var y=Oi[f],S=y._defaults,O=y._methods;S._methods=O,t.defaults.perAction[f]=S}}},Go=Ko,oo=function(t){m(f,t);var i=M(f);function f(y,S,O,G,Q,ge){var je;if(s(this,f),j(D(je=i.call(this,Q)),O),O!==S&&j(D(je),S),je.timeStamp=ge,je.originalEvent=O,je.type=y,je.pointerId=ce(S),je.pointerType=$a(S),je.target=G,je.currentTarget=null,y==="tap"){var Ce=Q.getPointerIndex(S);je.dt=je.timeStamp-Q.pointers[Ce].downTime;var ra=je.timeStamp-Q.tapTime;je.double=!!Q.prevTap&&Q.prevTap.type!=="doubletap"&&Q.prevTap.target===je.target&&ra<500}else y==="doubletap"&&(je.dt=S.timeStamp-Q.tapTime,je.double=!0);return je}return c(f,[{key:"_subtractOrigin",value:function(y){var S=y.x,O=y.y;return this.pageX-=S,this.pageY-=O,this.clientX-=S,this.clientY-=O,this}},{key:"_addOrigin",value:function(y){var S=y.x,O=y.y;return this.pageX+=S,this.pageY+=O,this.clientX+=S,this.clientY+=O,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),f}(W),Zn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Zn,t.defaults.actions.pointerEvents=Zn.defaults,ee(t.actions.phaselessTypes,Zn.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,y=t.pointer,S=t.event,O=t.eventTarget;t.duplicate||f.pointerIsDown&&!f.pointerWasMoved||(f.pointerIsDown&&Ri(t),Dn({interaction:f,pointer:y,event:S,eventTarget:O,type:"move"},i))},"interactions:down":function(t,i){(function(f,y){for(var S=f.interaction,O=f.pointer,G=f.event,Q=f.eventTarget,ge=f.pointerIndex,je=S.pointers[ge].hold,Ce=ea(Q),ra={interaction:S,pointer:O,event:G,eventTarget:Q,type:"hold",targets:[],path:Ce,node:null},Da=0;Da<Ce.length;Da++){var Ja=Ce[Da];ra.node=Ja,y.fire("pointerEvents:collect-targets",ra)}if(ra.targets.length){for(var Wa=1/0,Qa=0,xl=ra.targets;Qa<xl.length;Qa++){var ml=xl[Qa].eventable.options.holdDuration;ml<Wa&&(Wa=ml)}je.duration=Wa,je.timeout=setTimeout(function(){Dn({interaction:S,eventTarget:Q,pointer:O,event:G,type:"hold"},y)},Wa)}})(t,i),Dn(t,i)},"interactions:up":function(t,i){Ri(t),Dn(t,i),function(f,y){var S=f.interaction,O=f.pointer,G=f.event,Q=f.eventTarget;S.pointerWasMoved||Dn({interaction:S,eventTarget:Q,pointer:O,event:G,type:"tap"},y)}(t,i)},"interactions:cancel":function(t,i){Ri(t),Dn(t,i)}},PointerEvent:oo,fire:Dn,collectEventTargets:Li,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Dn(t,i){var f=t.interaction,y=t.pointer,S=t.event,O=t.eventTarget,G=t.type,Q=t.targets,ge=Q===void 0?Li(t,i):Q,je=new oo(G,y,S,O,f,i.now());i.fire("pointerEvents:new",{pointerEvent:je});for(var Ce={interaction:f,pointer:y,event:S,eventTarget:O,targets:ge,type:G,pointerEvent:je},ra=0;ra<ge.length;ra++){var Da=ge[ra];for(var Ja in Da.props||{})je[Ja]=Da.props[Ja];var Wa=ze(Da.eventable,Da.node);if(je._subtractOrigin(Wa),je.eventable=Da.eventable,je.currentTarget=Da.node,Da.eventable.fire(je),je._addOrigin(Wa),je.immediatePropagationStopped||je.propagationStopped&&ra+1<ge.length&&ge[ra+1].node!==je.currentTarget)break}if(i.fire("pointerEvents:fired",Ce),G==="tap"){var Qa=je.double?Dn({interaction:f,pointer:y,event:S,eventTarget:O,type:"doubletap"},i):je;f.prevTap=Qa,f.tapTime=Qa.timeStamp}return je}function Li(t,i){var f=t.interaction,y=t.pointer,S=t.event,O=t.eventTarget,G=t.type,Q=f.getPointerIndex(y),ge=f.pointers[Q];if(G==="tap"&&(f.pointerWasMoved||!ge||ge.downTarget!==O))return[];for(var je=ea(O),Ce={interaction:f,pointer:y,event:S,eventTarget:O,type:G,path:je,targets:[],node:null},ra=0;ra<je.length;ra++){var Da=je[ra];Ce.node=Da,i.fire("pointerEvents:collect-targets",Ce)}return G==="hold"&&(Ce.targets=Ce.targets.filter(function(Ja){var Wa,Qa;return Ja.eventable.options.holdDuration===((Wa=f.pointers[Q])==null||(Qa=Wa.hold)==null?void 0:Qa.duration)})),Ce.targets}function Ri(t){var i=t.interaction,f=t.pointerIndex,y=i.pointers[f].hold;y&&y.timeout&&(clearTimeout(y.timeout),y.timeout=null)}var Yo=Object.freeze({__proto__:null,default:Zn});function Jo(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Xo={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Zn);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)]=Jo,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,y=t.pointerEvent,S=t.eventTarget,O=t.targets;if(y.type==="hold"&&O.length){var G=O[0].eventable.options.holdRepeatInterval;G<=0||(f.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:f,eventTarget:S,type:"hold",pointer:y,event:y},i)},G))}}})},pi=Xo,Zo={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(y){return ee(this.events.options,y),this};var f=i.prototype._backCompatOption;i.prototype._backCompatOption=function(y,S){var O=f.call(this,y,S);return O===this&&(this.events.options[y]=S),O}},listeners:{"pointerEvents:collect-targets":function(t,i){var f=t.targets,y=t.node,S=t.type,O=t.eventTarget;i.interactables.forEachMatch(y,function(G){var Q=G.events,ge=Q.options;Q.types[S]&&Q.types[S].length&&G.testIgnoreAllow(ge,y,O)&&f.push({node:y,eventable:Q,props:{interactable:G}})})},"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,y=t.options;ee(f.events.options,i.pointerEvents.defaults),ee(f.events.options,y.pointerEvents||{})}}},Qo=Zo,et={id:"pointer-events",install:function(t){t.usePlugin(Yo),t.usePlugin(pi),t.usePlugin(Qo)}},at=et,to={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(f){return function(y,S,O){for(var G=y.getAllElements(),Q=O.window.Promise,ge=Q?[]:null,je=function(){var ra=G[Ce],Da=y.getRect(ra);if(!Da)return 1;var Ja,Wa=wa(O.interactions.list,function(ml){return ml.interacting()&&ml.interactable===y&&ml.element===ra&&ml.prepared.name===S.name});if(Wa)Wa.move(),ge&&(Ja=Wa._reflowPromise||new Q(function(ml){Wa._reflowResolve=ml}));else{var Qa=Se(Da),xl=function(ml){return{coords:ml,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:Qa.x,y:Qa.y},client:{x:Qa.x,y:Qa.y},timeStamp:O.now()});Ja=function(ml,El,Ul,Cl,Il){var Ml=ml.interactions.new({pointerType:"reflow"}),Wr={interaction:Ml,event:Il,pointer:Il,eventTarget:Ul,phase:"reflow"};Ml.interactable=El,Ml.element=Ul,Ml.prevEvent=Il,Ml.updatePointer(Il,Il,Ul,!0),ve(Ml.coords.delta),Va(Ml.prepared,Cl),Ml._doPhase(Wr);var or=ml.window,Xr=or.Promise,cn=Xr?new Xr(function(Sn){Ml._reflowResolve=Sn}):void 0;return Ml._reflowPromise=cn,Ml.start(Cl,El,Ul),Ml._interacting?(Ml.move(Wr),Ml.end(Il)):(Ml.stop(),Ml._reflowResolve()),Ml.removePointer(Il,Il),cn}(O,y,ra,S,xl)}ge&&ge.push(Ja)},Ce=0;Ce<G.length&&!je();Ce++);return ge&&Q.all(ge).then(function(){return y})}(this,f,t)}},listeners:{"interactions:stop":function(t,i){var f=t.interaction;f.pointerType==="reflow"&&(f._reflowResolve&&f._reflowResolve(),function(y,S){y.splice(y.indexOf(S),1)}(i.interactions.list,f))}}},fi=to;if(qr.use(Hl),qr.use(Ll),qr.use(at),qr.use(Nn),qr.use(Go),qr.use(fr),qr.use(ul),qr.use(re),qr.use(fi),qr.default=qr,o(a)==="object"&&a)try{a.exports=qr}catch{}return qr.default=qr,qr})}(ji,ji.exports)),ji.exports}var g1=y1();const As=A.getDefaultExportFromCjs(g1),Mo=e.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(a,{expose:l,emit:n}){const r=a,o=n,s=e.inject(Pc),h=e.inject(Fc);if(!s)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const c=e.shallowRef(null),p=e.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let m=!1,g=!1,u=NaN,D=NaN,M=NaN,k=NaN,K=-1,I=-1,H=-1,L=-1,E=r.x,x=r.y,w=r.w,b=r.h;const _=e.ref(),$=e.reactive({i:e.toRef(r,"i"),state:p,wrapper:_,calcXY:ue});function V(pe){Ke(pe)}function ne(){ca()}function X(pe){pn(r.isDraggable)&&(p.draggable=pe)}function me(pe){pn(r.isResizable)&&(p.resizable=pe)}function Me(pe){pn(r.isBounded)&&(p.bounded=pe)}function F(pe){p.transformScale=pe}function te(pe){p.rowHeight=pe}function Z(pe){p.maxRows=pe}function se(){p.rtl=Ts()==="rtl",ca()}function Be(pe){p.cols=Math.floor(pe)}s.increaseItem($),e.onBeforeMount(()=>{p.rtl=Ts()==="rtl"}),e.onMounted(()=>{s.responsive&&s.lastBreakpoint?p.cols=Wc(s.lastBreakpoint,s.cols):p.cols=s.colNum,p.rowHeight=s.rowHeight,p.containerWidth=s.width!==null?s.width:100,p.margin=s.margin!==void 0?s.margin.map(Number):[10,10],p.maxRows=s.maxRows,pn(r.isDraggable)?p.draggable=s.isDraggable:p.draggable=r.isDraggable,pn(r.isResizable)?p.resizable=s.isResizable:p.resizable=r.isResizable,pn(r.isBounded)?p.bounded=s.isBounded:p.bounded=r.isBounded,p.transformScale=s.transformScale,p.useCssTransforms=s.useCssTransforms,p.useStyleCursor=s.useStyleCursor,e.watchEffect(()=>{E=r.x,x=r.y,b=r.h,w=r.w,Zr(Fe)}),h.on("updateWidth",V),h.on("compact",ne),h.on("setDraggable",X),h.on("setResizable",me),h.on("setBounded",Me),h.on("setTransformScale",F),h.on("setRowHeight",te),h.on("setMaxRows",Z),h.on("directionchange",se),h.on("setColNum",Be)}),e.onBeforeUnmount(()=>{h.off("updateWidth",V),h.off("compact",ne),h.off("setDraggable",X),h.off("setResizable",me),h.off("setBounded",Me),h.off("setTransformScale",F),h.off("setRowHeight",te),h.off("setMaxRows",Z),h.off("directionchange",se),h.off("setColNum",Be),c.value&&(c.value.unset(),c.value=null),s.decreaseItem($)}),l({state:p,wrapper:_});const Ve=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,he=e.computed(()=>p.resizable&&!r.static),N=e.computed(()=>s.isMirrored?!p.rtl:p.rtl),ie=e.computed(()=>(p.draggable||p.resizable)&&!r.static),U=c1("item"),De=e.computed(()=>({[U.b()]:!0,[U.bm("resizable")]:he.value,[U.bm("static")]:r.static,[U.bm("resizing")]:p.isResizing,[U.bm("dragging")]:p.isDragging,[U.bm("transform")]:p.useCssTransforms,[U.bm("rtl")]:N.value,[U.bm("no-touch")]:Ve&&ie.value})),Oe=e.computed(()=>[U.be("resizer"),N.value&&U.bem("resizer","rtl")].filter(Boolean));e.watch(()=>r.isDraggable,pe=>{p.draggable=pe}),e.watch(()=>r.static,()=>{Zr(j),Zr(ve)}),e.watch(()=>p.draggable,()=>{Zr(j)}),e.watch(()=>r.isResizable,pe=>{p.resizable=pe}),e.watch(()=>r.isBounded,pe=>{p.bounded=pe}),e.watch(()=>p.resizable,()=>{Zr(ve)}),e.watch(()=>p.rowHeight,()=>{Zr(Fe),Zr(ea)}),e.watch([()=>p.cols,()=>p.containerWidth],()=>{Zr(ve),Zr(Fe),Zr(ea)}),e.watch([()=>r.minH,()=>r.maxH,()=>r.minW,()=>r.maxW],()=>{Zr(ve)}),e.watch(N,()=>{Zr(ve),Zr(Fe)}),e.watch([()=>s.margin,()=>s.margin[0],()=>s.margin[1]],()=>{const pe=s.margin;!pe||pe[0]===p.margin[0]&&pe[1]===p.margin[1]||(p.margin=pe.map(Number),Zr(Fe),Zr(ea))});function Fe(){r.x+r.w>p.cols?(E=0,w=r.w>p.cols?p.cols:r.w):(E=r.x,w=r.w);const pe=ua(E,x,w,b);p.isDragging&&(pe.top=p.dragging.top,N.value?pe.right=p.dragging.left:pe.left=p.dragging.left),p.isResizing&&(pe.width=p.resizing.width,pe.height=p.resizing.height);let ya;p.useCssTransforms?N.value?ya=n1(pe.top,pe.right,pe.width,pe.height):ya=r1(pe.top,pe.left,pe.width,pe.height):N.value?ya=o1(pe.top,pe.right,pe.width,pe.height):ya=i1(pe.top,pe.left,pe.width,pe.height),p.style=ya}function ea(){const pe={};for(const ya of["width","height"]){const aa=p.style[ya].match(/^(\d+)px$/);if(!aa)return;pe[ya]=aa[1]}o("container-resized",r.i,r.h,r.w,pe.height,pe.width)}function Ba(pe){if(r.static)return;const ya=pe.type;if(ya==="resizestart"&&p.isResizing||ya!=="resizestart"&&!p.isResizing)return;const aa=Ds(pe);if(pn(aa))return;const{x:ce,y:ga}=aa,Ae={width:0,height:0};let Je;switch(ya){case"resizestart":{ve(),K=w,I=b,Je=ua(E,x,w,b),Ae.width=Je.width,Ae.height=Je.height,p.resizing=Ae,p.isResizing=!0;break}case"resizemove":{!pe.edges.right&&!pe.edges.left&&(M=ce),!pe.edges.top&&!pe.edges.bottom&&(k=ga);const Na=Bs(M,k,ce,ga);N.value?Ae.width=p.resizing.width-Na.deltaX/p.transformScale:Ae.width=p.resizing.width+Na.deltaX/p.transformScale,Ae.height=p.resizing.height+Na.deltaY/p.transformScale,p.resizing=Ae;break}case"resizeend":{Je=ua(E,x,w,b),Ae.width=Je.width,Ae.height=Je.height,p.resizing={width:-1,height:-1},p.isResizing=!1;break}}Je=ze(Ae.height,Ae.width),Je.w<r.minW&&(Je.w=r.minW),Je.w>r.maxW&&(Je.w=r.maxW),Je.h<r.minH&&(Je.h=r.minH),Je.h>r.maxH&&(Je.h=r.maxH),Je.h<1&&(Je.h=1),Je.w<1&&(Je.w=1),M=ce,k=ga,(w!==Je.w||b!==Je.h)&&o("resize",r.i,Je.h,Je.w,Ae.height,Ae.width),pe.type==="resizeend"&&(K!==w||I!==b)&&o("resized",r.i,Je.h,Je.w,Ae.height,Ae.width),h.emit("resizeEvent",pe.type,r.i,E,x,Je.h,Je.w)}function ee(pe){if(r.static||p.isResizing)return;const ya=pe.type;if(ya==="dragstart"&&p.isDragging||ya!=="dragstart"&&!p.isDragging)return;const aa=Ds(pe);if(pn(aa))return;const{x:ce,y:ga}=aa,Ae=pe.target;if(!Ae.offsetParent)return;const Je={top:0,left:0};switch(ya){case"dragstart":{H=E,L=x;const Ca=Ae.offsetParent.getBoundingClientRect(),la=Ae.getBoundingClientRect(),$a=la.left/p.transformScale,va=Ca.left/p.transformScale,W=la.right/p.transformScale,Te=Ca.right/p.transformScale,Ie=la.top/p.transformScale,we=Ca.top/p.transformScale;N.value?Je.left=(W-Te)*-1:Je.left=$a-va,Je.top=Ie-we,p.dragging=Je,p.isDragging=!0;break}case"dragmove":{const Ca=Bs(u,D,ce,ga);if(N.value?Je.left=p.dragging.left-Ca.deltaX/p.transformScale:Je.left=p.dragging.left+Ca.deltaX/p.transformScale,Je.top=p.dragging.top+Ca.deltaY/p.transformScale,p.bounded){const la=Ae.offsetParent.clientHeight-Se(r.h,p.rowHeight,p.margin[1]);Je.top=oe(Je.top,0,la);const $a=sa(),va=p.containerWidth-Se(r.w,$a,p.margin[0]);Je.left=oe(Je.left,0,va)}p.dragging=Je;break}case"dragend":{const Ca=Ae.offsetParent.getBoundingClientRect(),la=Ae.getBoundingClientRect(),$a=la.left/p.transformScale,va=Ca.left/p.transformScale,W=la.right/p.transformScale,Te=Ca.right/p.transformScale,Ie=la.top/p.transformScale,we=Ca.top/p.transformScale;N.value?Je.left=(W-Te)*-1:Je.left=$a-va,Je.top=Ie-we,p.dragging={top:-1,left:-1},p.isDragging=!1;break}}let Na;N.value,Na=ue(Je.top,Je.left),u=ce,D=ga,(E!==Na.x||x!==Na.y)&&o("move",r.i,Na.x,Na.y),pe.type==="dragend"&&(H!==E||L!==x)&&o("moved",r.i,Na.x,Na.y),h.emit("dragEvent",pe.type,r.i,Na.x,Na.y,b,w)}function ua(pe,ya,aa,ce){const ga=sa();let Ae;return N.value?Ae={right:Math.round(ga*pe+(pe+1)*p.margin[0]),top:Math.round(p.rowHeight*ya+(ya+1)*p.margin[1]),width:aa===1/0?aa:Math.round(ga*aa+Math.max(0,aa-1)*p.margin[0]),height:ce===1/0?ce:Math.round(p.rowHeight*ce+Math.max(0,ce-1)*p.margin[1])}:Ae={left:Math.round(ga*pe+(pe+1)*p.margin[0]),top:Math.round(p.rowHeight*ya+(ya+1)*p.margin[1]),width:aa===1/0?aa:Math.round(ga*aa+Math.max(0,aa-1)*p.margin[0]),height:ce===1/0?ce:Math.round(p.rowHeight*ce+Math.max(0,ce-1)*p.margin[1])},Ae}function ue(pe,ya){const aa=sa();let ce=Math.round((ya-p.margin[0])/(aa+p.margin[0])),ga=Math.round((pe-p.margin[1])/(p.rowHeight+p.margin[1]));return ce=Math.max(Math.min(ce,p.cols-w),0),ga=Math.max(Math.min(ga,p.maxRows-b),0),{x:ce,y:ga}}function sa(){return(p.containerWidth-p.margin[0]*(p.cols+1))/p.cols}function Se(pe,ya,aa){return Number.isFinite(pe)?Math.round(ya*pe+Math.max(0,pe-1)*aa):pe}function oe(pe,ya,aa){return Math.max(Math.min(pe,aa),ya)}function ze(pe,ya,aa=!1){const ce=sa();let ga=Math.round((ya+p.margin[0])/(ce+p.margin[0])),Ae=0;return aa?Ae=Math.ceil((pe+p.margin[1])/(p.rowHeight+p.margin[1])):Ae=Math.round((pe+p.margin[1])/(p.rowHeight+p.margin[1])),ga=Math.max(Math.min(ga,p.cols-E),0),Ae=Math.max(Math.min(Ae,p.maxRows-x),0),{w:ga,h:Ae}}function Ke(pe,ya){p.containerWidth=pe}function ca(){Fe()}function Ya(){!c.value&&_.value&&(c.value=As(_.value),p.useStyleCursor||c.value.styleCursor(!1))}const R=Ss(ee);function j(){if(Ya(),!!c.value)if(p.draggable&&!r.static){const pe={ignoreFrom:r.dragIgnoreFrom,allowFrom:r.dragAllowFrom,...r.dragOption};c.value.draggable(pe),m||(m=!0,c.value.on("dragstart dragmove dragend",ya=>{ya.type==="dragmove"?R(ya):ee(ya)}))}else c.value.draggable({enabled:!1})}const J=Ss(Ba);function ve(){if(Ya(),!!c.value)if(p.resizable&&!r.static){const pe=ua(0,0,r.maxW,r.maxH),ya=ua(0,0,r.minW,r.minH),aa={edges:{left:N.value?`.${Oe.value[0]}`:!1,right:N.value?!1:`.${Oe.value[0]}`,bottom:`.${Oe.value[0]}`,top:!1},ignoreFrom:r.resizeIgnoreFrom,restrictSize:{min:{height:ya.height*p.transformScale,width:ya.width*p.transformScale},max:{height:pe.height*p.transformScale,width:pe.width*p.transformScale}},...r.resizeOption};r.preserveAspectRatio&&(aa.modifiers=[As.modifiers.aspectRatio({ratio:"preserve"})]),c.value.resizable(aa),g||(g=!0,c.value.on("resizestart resizemove resizeend",ce=>{ce.type==="resizemove"?J(ce):Ba(ce)}))}else c.value.resizable({enabled:!1})}return(pe,ya)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:_,class:e.normalizeClass(De.value),style:e.normalizeStyle(p.style)},[e.renderSlot(pe.$slots,"default"),he.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Oe.value)},null,2)):e.createCommentVNode("",!0)],6))}}),si=typeof window<"u";var zs;si&&(zs=window==null?void 0:window.navigator)!=null&&zs.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ms(a){return a!=null}function Is(){}const b1=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(b1)));const k1=si&&("ontouchstart"in window||w1()>0),x1=k1?"pointerdown":"click";function w1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function _1(a,l,n=window.Event){const{type:r,bubbles:o=!1,cancelable:s=!1,...h}=l;if(!Ms(r)||r==="")return!1;let c;return Ms(n)?c=new n(r,{bubbles:o,cancelable:s}):(c=document.createEvent("HTMLEvents"),c.initEvent(r,o,s)),Object.assign(c,h),a.dispatchEvent(c)}const S1="clickoutside",E1=new Set;si&&document.addEventListener(x1,a=>{const l=a.target,n=a.composedPath&&a.composedPath();E1.forEach(r=>{r!==l&&(n?!n.includes(r):!r.contains(l))&&(!r.__transferElement||r.__transferElement!==l&&!r.__transferElement.contains(l))&&_1(r,{type:S1})})},!0);const C1=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let wo;if(si){for(const a of C1)if(a[1]in document){wo=a;break}}e.computed(()=>!1);const D1=new Set,B1=new WeakMap;if(si&&wo){const a=wo[2],l=wo[4];document.addEventListener(l,()=>{if(D1.forEach(n=>{n.value=!1}),document[a]){const n=B1.get(document[a]);n&&(n.value=!0)}},!1)}const Gc=new Map;Gc.set("x",0);Gc.set("y",0);var oi=[],T1=function(){return oi.some(function(a){return a.activeTargets.length>0})},N1=function(){return oi.some(function(a){return a.skippedTargets.length>0})},Os="ResizeObserver loop completed with undelivered notifications.",A1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:Os}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=Os),window.dispatchEvent(a)},Yi;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Yi||(Yi={}));var ti=function(a){return Object.freeze(a)},z1=function(){function a(l,n){this.inlineSize=l,this.blockSize=n,ti(this)}return a}(),Yc=function(){function a(l,n,r,o){return this.x=l,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ti(this)}return a.prototype.toJSON=function(){var l=this,n=l.x,r=l.y,o=l.top,s=l.right,h=l.bottom,c=l.left,p=l.width,m=l.height;return{x:n,y:r,top:o,right:s,bottom:h,left:c,width:p,height:m}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Bt=function(a){return a instanceof SVGElement&&"getBBox"in a},Jc=function(a){if(Bt(a)){var l=a.getBBox(),n=l.width,r=l.height;return!n&&!r}var o=a,s=o.offsetWidth,h=o.offsetHeight;return!(s||h||a.getClientRects().length)},Ls=function(a){var l;if(a instanceof Element)return!0;var n=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(n&&a instanceof n.Element)},M1=function(a){switch(a.tagName){case"INPUT":if(a.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Wi=typeof window<"u"?window:{},go=new WeakMap,Rs=/auto|scroll/,I1=/^tb|vertical/,O1=/msie|trident/i.test(Wi.navigator&&Wi.navigator.userAgent),Tn=function(a){return parseFloat(a||"0")},Ci=function(a,l,n){return a===void 0&&(a=0),l===void 0&&(l=0),n===void 0&&(n=!1),new z1((n?l:a)||0,(n?a:l)||0)},$s=ti({devicePixelContentBoxSize:Ci(),borderBoxSize:Ci(),contentBoxSize:Ci(),contentRect:new Yc(0,0,0,0)}),Xc=function(a,l){if(l===void 0&&(l=!1),go.has(a)&&!l)return go.get(a);if(Jc(a))return go.set(a,$s),$s;var n=getComputedStyle(a),r=Bt(a)&&a.ownerSVGElement&&a.getBBox(),o=!O1&&n.boxSizing==="border-box",s=I1.test(n.writingMode||""),h=!r&&Rs.test(n.overflowY||""),c=!r&&Rs.test(n.overflowX||""),p=r?0:Tn(n.paddingTop),m=r?0:Tn(n.paddingRight),g=r?0:Tn(n.paddingBottom),u=r?0:Tn(n.paddingLeft),D=r?0:Tn(n.borderTopWidth),M=r?0:Tn(n.borderRightWidth),k=r?0:Tn(n.borderBottomWidth),K=r?0:Tn(n.borderLeftWidth),I=u+m,H=p+g,L=K+M,E=D+k,x=c?a.offsetHeight-E-a.clientHeight:0,w=h?a.offsetWidth-L-a.clientWidth:0,b=o?I+L:0,_=o?H+E:0,$=r?r.width:Tn(n.width)-b-w,V=r?r.height:Tn(n.height)-_-x,ne=$+I+w+L,X=V+H+x+E,me=ti({devicePixelContentBoxSize:Ci(Math.round($*devicePixelRatio),Math.round(V*devicePixelRatio),s),borderBoxSize:Ci(ne,X,s),contentBoxSize:Ci($,V,s),contentRect:new Yc(u,p,$,V)});return go.set(a,me),me},Zc=function(a,l,n){var r=Xc(a,n),o=r.borderBoxSize,s=r.contentBoxSize,h=r.devicePixelContentBoxSize;switch(l){case Yi.DEVICE_PIXEL_CONTENT_BOX:return h;case Yi.BORDER_BOX:return o;default:return s}},L1=function(){function a(l){var n=Xc(l);this.target=l,this.contentRect=n.contentRect,this.borderBoxSize=ti([n.borderBoxSize]),this.contentBoxSize=ti([n.contentBoxSize]),this.devicePixelContentBoxSize=ti([n.devicePixelContentBoxSize])}return a}(),Qc=function(a){if(Jc(a))return 1/0;for(var l=0,n=a.parentNode;n;)l+=1,n=n.parentNode;return l},R1=function(){var a=1/0,l=[];oi.forEach(function(s){if(s.activeTargets.length!==0){var h=[];s.activeTargets.forEach(function(c){var p=new L1(c.target),m=Qc(c.target);h.push(p),c.lastReportedSize=Zc(c.target,c.observedBox),m<a&&(a=m)}),l.push(function(){s.callback.call(s.observer,h,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=l;n<r.length;n++){var o=r[n];o()}return a},Vs=function(a){oi.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(n){n.isActive()&&(Qc(n.target)>a?l.activeTargets.push(n):l.skippedTargets.push(n))})})},$1=function(){var a=0;for(Vs(a);T1();)a=R1(),Vs(a);return N1()&&A1(),a>0},ut,eu=[],V1=function(){return eu.splice(0).forEach(function(a){return a()})},P1=function(a){if(!ut){var l=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return V1()}).observe(n,r),ut=function(){n.textContent="".concat(l?l--:l++)}}eu.push(a),ut()},F1=function(a){P1(function(){requestAnimationFrame(a)})},_o=0,j1=function(){return!!_o},H1=250,U1={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ps=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fs=function(a){return a===void 0&&(a=0),Date.now()+a},dt=!1,q1=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var n=this;if(l===void 0&&(l=H1),!dt){dt=!0;var r=Fs(l);F1(function(){var o=!1;try{o=$1()}finally{if(dt=!1,l=r-Fs(),!j1())return;o?n.run(1e3):l>0?n.run(l):n.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,n=function(){return l.observer&&l.observer.observe(document.body,U1)};document.body?n():Wi.addEventListener("DOMContentLoaded",n)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ps.forEach(function(n){return Wi.addEventListener(n,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),Ps.forEach(function(n){return Wi.removeEventListener(n,l.listener,!0)}),this.stopped=!0)},a}(),St=new q1,js=function(a){!_o&&a>0&&St.start(),_o+=a,!_o&&St.stop()},W1=function(a){return!Bt(a)&&!M1(a)&&getComputedStyle(a).display==="inline"},K1=function(){function a(l,n){this.target=l,this.observedBox=n||Yi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=Zc(this.target,this.observedBox,!0);return W1(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),G1=function(){function a(l,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=n}return a}(),bo=new WeakMap,Hs=function(a,l){for(var n=0;n<a.length;n+=1)if(a[n].target===l)return n;return-1},ko=function(){function a(){}return a.connect=function(l,n){var r=new G1(l,n);bo.set(l,r)},a.observe=function(l,n,r){var o=bo.get(l),s=o.observationTargets.length===0;Hs(o.observationTargets,n)<0&&(s&&oi.push(o),o.observationTargets.push(new K1(n,r&&r.box)),js(1),St.schedule())},a.unobserve=function(l,n){var r=bo.get(l),o=Hs(r.observationTargets,n),s=r.observationTargets.length===1;o>=0&&(s&&oi.splice(oi.indexOf(r),1),r.observationTargets.splice(o,1),js(-1))},a.disconnect=function(l){var n=this,r=bo.get(l);r.observationTargets.slice().forEach(function(o){return n.unobserve(l,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},a}(),Y1=function(){function a(l){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof l!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ko.connect(this,l)}return a.prototype.observe=function(l,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ls(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.observe(this,l,n)},a.prototype.unobserve=function(l){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ls(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.unobserve(this,l)},a.prototype.disconnect=function(){ko.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Io=new WeakMap;function J1(a){var l;for(let n=0,r=a.length;n<r;++n){const o=a[n],s=Io.get(o.target);if(typeof s=="function"){const{inlineSize:h,blockSize:c}=((l=o.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:p,offsetHeight:m}=o.target;s(Object.assign(o,{offsetWidth:p,offsetHeight:m,width:h??p,height:c??m}))}}}const au=new(si&&window.ResizeObserver||Y1)(J1);function Us(a,l){Io.set(a,l),au.observe(a)}function qs(a){Io.has(a)&&(au.unobserve(a),Io.delete(a))}function X1(a={}){let l=Is;const n=e.watch(()=>e.unref(a.target),o=>{l(),!(!o||typeof a.onResize!="function")&&(Us(o,a.onResize),l=()=>{qs(o),l=Is})},{immediate:!0}),r=()=>{n(),l()};return e.getCurrentScope()&&e.onScopeDispose(r),{observeResize:Us,unobserveResize:qs,unobserve:r}}const Z1=e.ref(!1);e.computed(()=>Z1.value);const Ws="__theme_style__",pt="__theme_observer__",Ks=e.reactive(new Map),Gs=new Map;e.watch(Ks,()=>{if(!si)return;Gs.clear();const a=document.head.querySelector(`#${Ws}`);a&&document.head.removeChild(a);const l=document.createElement("style");let n=`.${pt} { width: 1px }`,r=1;for(const[o,[s,h]]of Ks.entries())n+=` html.${s} .${pt}, .${h} .${pt} { width: ${++r}px }`,Gs.set(r,o);l.textContent=n,l.id=Ws,document.head.appendChild(l)});const lu=e.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(a,{expose:l,emit:n}){const r=a,o=n,s=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),h=new Map,c=e.ref(r.layout),p=e.ref(),{observeResize:m,unobserveResize:g}=X1(),u=J6();u.on("resizeEvent",D),u.on("dragEvent",M),e.onBeforeMount(()=>{o("layout-before-mount",c.value)}),e.onMounted(()=>{o("layout-mounted",c.value),e.nextTick(()=>{s1(c.value),s.originalLayout=c.value,e.nextTick(()=>{V(),p.value&&m(p.value,X6(E,16)),_i(c.value,r.verticalCompact),o("layout-updated",c.value),L(),E()})})}),e.onBeforeUnmount(()=>{u.clearAll(),p.value&&g(p.value)});function D(X,me,Me,F,te,Z){_(X,me,Me,F,te,Z)}function M(X,me,Me,F,te,Z){b(X,me,Me,F,te,Z)}e.watch(()=>s.width,(X,me)=>{e.nextTick(()=>{u.emit("updateWidth",X),me===-1&&e.nextTick(()=>{o("layout-ready",c.value)}),L()})}),e.watch(()=>[r.layout,r.layout.length],()=>{c.value=r.layout,H()}),e.watch(()=>r.colNum,X=>{u.emit("setColNum",X)}),e.watch(()=>r.rowHeight,X=>{u.emit("setRowHeight",X)}),e.watch(()=>r.isDraggable,X=>{u.emit("setDraggable",X)}),e.watch(()=>r.isResizable,X=>{u.emit("setResizable",X)}),e.watch(()=>r.isBounded,X=>{u.emit("setBounded",X)}),e.watch(()=>r.transformScale,X=>{u.emit("setTransformScale",X)}),e.watch(()=>r.responsive,X=>{X||(o("update:layout",s.originalLayout),u.emit("setColNum",r.colNum)),E()}),e.watch(()=>r.maxRows,X=>{u.emit("setMaxRows",X)}),e.watch([()=>r.margin,()=>r.margin[1]],L),e.provide(Pc,e.reactive({...e.toRefs(r),...e.toRefs(s),increaseItem:k,decreaseItem:K})),e.provide(Fc,u),l({state:s,getItem:I,resizeEvent:_,dragEvent:b,layoutUpdate:H});function k(X){h.set(X.i,X)}function K(X){h.delete(X.i)}function I(X){return h.get(X)}function H(){if(!pn(c.value)&&!pn(s.originalLayout)){if(c.value.length!==s.originalLayout.length){const X=ne(c.value,s.originalLayout);if(X.length>0)if(c.value.length>s.originalLayout.length)s.originalLayout=s.originalLayout.concat(X);else{const me=new Set(X.map(Me=>Me.i));s.originalLayout=s.originalLayout.filter(Me=>!me.has(Me.i))}s.lastLayoutLength=c.value.length,V()}_i(c.value,r.verticalCompact),u.emit("updateWidth",s.width),L(),o("layout-updated",c.value)}}function L(){s.mergedStyle={height:x()}}function E(){p.value&&(s.width=p.value.offsetWidth),u.emit("resizeEvent")}function x(){if(!r.autoSize)return;const X=parseFloat(r.margin[1]);return Q6(c.value)*(r.rowHeight+X)+X+"px"}let w;function b(X,me,Me,F,te,Z){let se=Es(c.value,me);pn(se)&&(se={h:0,w:0,x:0,y:0,i:""}),X==="dragstart"&&!r.verticalCompact&&(w=c.value.reduce((Be,{i:Ve,x:he,y:N})=>({...Be,[Ve]:{x:he,y:N}}),{})),X==="dragmove"||X==="dragstart"?(s.placeholder.i=me,s.placeholder.x=se.x,s.placeholder.y=se.y,s.placeholder.w=Z,s.placeholder.h=te,e.nextTick(()=>{s.isDragging=!0}),u.emit("updateWidth",s.width)):e.nextTick(()=>{s.isDragging=!1}),c.value=_t(c.value,se,Me,F,!0,r.preventCollision),r.restoreOnDrag?(se.static=!0,_i(c.value,r.verticalCompact,w),se.static=!1):_i(c.value,r.verticalCompact),u.emit("compact"),L(),X==="dragend"&&(w=void 0,o("layout-updated",c.value))}function _(X,me,Me,F,te,Z){let se=Es(c.value,me);pn(se)&&(se={h:0,w:0,x:0,y:0,i:""});let Be;if(r.preventCollision){const Ve=Hc(c.value,{...se,w:Z,h:te}).filter(he=>he.i!==se.i);if(Be=Ve.length>0,Be){let he=1/0,N=1/0;Ve.forEach(ie=>{ie.x>se.x&&(he=Math.min(he,ie.x)),ie.y>se.y&&(N=Math.min(N,ie.y))}),Number.isFinite(he)&&(se.w=he-se.x),Number.isFinite(N)&&(se.h=N-se.y)}}Be||(se.w=Z,se.h=te),X==="resizestart"||X==="resizemove"?(s.placeholder.i=me,s.placeholder.x=Me,s.placeholder.y=F,s.placeholder.w=se.w,s.placeholder.h=se.h,e.nextTick(()=>{s.isDragging=!0}),u.emit("updateWidth",s.width)):X&&e.nextTick(()=>{s.isDragging=!1}),r.responsive&&$(),_i(c.value,r.verticalCompact),u.emit("compact"),L(),X==="resizeend"&&o("layout-updated",c.value)}function $(){const X=p1(r.breakpoints,s.width);if(X===s.lastBreakpoint)return;const me=Wc(X,r.cols);!pn(s.lastBreakpoint)&&!s.layouts[s.lastBreakpoint]&&(s.layouts[s.lastBreakpoint]=wt(c.value));const Me=f1(s.originalLayout,s.layouts,r.breakpoints,X,s.lastBreakpoint,me,r.verticalCompact);s.layouts[X]=Me,s.lastBreakpoint!==X&&o("breakpoint-changed",X,Me),c.value=Me,o("update:layout",Me),s.lastBreakpoint=X,u.emit("setColNum",me)}function V(){s.layouts=Object.assign({},r.responsiveLayouts)}function ne(X,me){const Me=new Set(me.map(se=>se.i)),F=new Set(X.map(se=>se.i)),te=X.filter(se=>!Me.has(se.i)),Z=me.filter(se=>!F.has(se.i));return te.concat(Z)}return(X,me)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:p,class:"vgl-layout",style:e.normalizeStyle(s.mergedStyle)},[X.$slots.default?e.renderSlot(X.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(c.value,Me=>(e.openBlock(),e.createBlock(Mo,e.mergeProps({key:Me.i,ref_for:!0},Me),{default:e.withCtx(()=>[e.renderSlot(X.$slots,"item",{item:Me})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Mo,{class:"vgl-item--placeholder",x:s.placeholder.x,y:s.placeholder.y,w:s.placeholder.w,h:s.placeholder.h,i:s.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,s.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();const Q1={key:0,class:"item-view-group"},ev={key:0,class:"item-view-group"},av=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const n=A.useModelComp(A.pinia),{isEdit:r}=A.storeToRefs(n),o=Hn(A.pinia),s=l,h=a,c=e.ref(""),p=e.computed(()=>h==null?void 0:h.children),m=e.computed(()=>{var L,E,x,w;return((L=h==null?void 0:h.children)==null?void 0:L.length)>0&&((E=h==null?void 0:h.children)!=null&&E.every(b=>b==null?void 0:b.layout))?(w=(x=h==null?void 0:h.children)==null?void 0:x[0])==null?void 0:w.layout:"vertical"}),g=L=>{c.value=L,s("radioChange",L)},u=e.computed(()=>{var L,E;return((E=(L=h==null?void 0:h.children)==null?void 0:L[0])==null?void 0:E.isGridLayout)||!1}),D=e.ref((h==null?void 0:h.level)+1),M=e.computed(()=>{if(!(h!=null&&h.children)||!Array.isArray(h.children)||h.children.length<2)return!1;const L=h.children.some(x=>(x==null?void 0:x.name)==="测量系统配置表"&&(x==null?void 0:x.comp)==="ParentItem"),E=h.children.some(x=>(x==null?void 0:x.name)==="测量系统传递表"&&(x==null?void 0:x.comp)==="ParentItem");return L&&E}),k=e.computed(()=>{var E,x,w,b,_,$;let L=(E=h==null?void 0:h.children)==null?void 0:E.filter(V=>V==null?void 0:V.choice);if(o.setSelectTab((x=L==null?void 0:L[0])==null?void 0:x.choiceName),(c==null?void 0:c.value)!=="")return(w=h==null?void 0:h.children)==null?void 0:w.filter(V=>!(V!=null&&V.choiceName)||(V==null?void 0:V.choiceName)===(c==null?void 0:c.value));{let V=(_=(b=h==null?void 0:h.children)==null?void 0:b.find(ne=>ne==null?void 0:ne.choice))==null?void 0:_.choiceName;return($=h==null?void 0:h.children)==null?void 0:$.filter(ne=>!(ne!=null&&ne.choiceName)||(ne==null?void 0:ne.choiceName)===V)}}),K=L=>{const E=(L==null?void 0:L.menuFilter)||[];return Array.isArray(E)&&(E==null?void 0:E.some(x=>{const w=typeof x=="string"?x:JSON.stringify(x);return w==null?void 0:w.includes("HideGroup=Yes")}))};e.watch(()=>h==null?void 0:h.children,()=>{M.value},{deep:!0});const I=L=>{s("rowClick",L)},H=(L,E)=>{s("routeUrl",L,E)};return(L,E)=>u.value?(e.openBlock(),e.createBlock(e.unref(lu),{key:0,layout:p.value,"onUpdate:layout":E[0]||(E[0]=x=>p.value=x),"is-draggable":e.unref(r)==="edit","is-resizable":e.unref(r)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(x,w)=>(e.openBlock(),e.createBlock(e.unref(Mo),{key:x.i,x:x.x,y:x.y,"min-h":x.minH,"max-h":x.maxH,"min-w":x.minW,w:x.w,h:x.h,i:x.i},{default:e.withCtx(()=>{var b,_,$,V,ne,X,me,Me,F,te,Z,se,Be,Ve;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:w===((b=h==null?void 0:h.children)==null?void 0:b.length)-1?"0px":"24px"})},[(($=(_=x==null?void 0:x.component)==null?void 0:_.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((V=x==null?void 0:x.component)!=null&&V.name)?(e.openBlock(),e.createElementBlock("div",Q1,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:(parseInt(D.value.toString())-1)*12+"px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString((ne=x==null?void 0:x.component)==null?void 0:ne.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)((X=x==null?void 0:x.component)==null?void 0:X.comp)),{pageLayout:m.value,config:{showIndex:(me=e.unref(ur)[w])==null?void 0:me.showIndex,allowMove:(Me=e.unref(ur)[w])==null?void 0:Me.allowMove,viewport:(F=e.unref(ur)[w])==null?void 0:F.viewport,status:(te=e.unref(ur)[w])==null?void 0:te.status},related:x==null?void 0:x.relatedTables,compName:x==null?void 0:x.component.name,compNames:e.unref(wc),itemData:(Z=x==null?void 0:x.component)==null?void 0:Z.compData,childItemData:(se=x==null?void 0:x.component)==null?void 0:se.itemChildData,key:e.unref(jn),cacheNewData:e.unref(xc),onChange:e.unref(To),index:(x==null?void 0:x.id)??w,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:(Be=x==null?void 0:x.component)==null?void 0:Be.tableId,allMapContents:e.unref(bt),children:(Ve=x==null?void 0:x.component)==null?void 0:Ve.children,level:D.value,onRowClick:I,onRouteUrl:H,onClickTrigger:e.unref(_c),onClickMainKey:e.unref(Sc),onRadioChange:g},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(k.value,(x,w)=>{var b,_;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(x==null?void 0:x.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(w)===((b=h==null?void 0:h.children)==null?void 0:b.length)-1?"0px":"24px"})},[((_=x==null?void 0:x.comp)==null?void 0:_.toUpperCase())!=="TABLE"&&x.name?(e.openBlock(),e.createElementBlock("div",ev,[K(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:parseInt(D.value.toString())>1?"12px":"0px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString(x.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gi)(x.comp)),{compName:x.name,groupNames:x==null?void 0:x.nameContents,config:{showIndex:x==null?void 0:x.showIndex,allowMove:x==null?void 0:x.allowMove,viewport:x==null?void 0:x.viewport,status:x==null?void 0:x.status},itemData:x==null?void 0:x.compData,related:x==null?void 0:x.relatedTables,childItemData:x==null?void 0:x.itemChildData,key:e.unref(jn),onChange:e.unref(To),index:(x==null?void 0:x.id)??w,onContentChange:e.unref(No),onPageChange:e.unref(Ao),parentTableId:x==null?void 0:x.tableId,allMapContents:e.unref(bt),children:x==null?void 0:x.children,level:D.value,onRowClick:I,onRouteUrl:H,onRadioChange:g},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),lv=Zl._export_sfc(av,[["__scopeId","data-v-bafbdd45"]]),rv={class:"radio-group-container"},nv=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(),s=Hn(A.pinia),{selectTab:h}=A.storeToRefs(s);e.watch(()=>n==null?void 0:n.itemData,()=>{o.value=h.value},{immediate:!0,deep:!0});const c=p=>{o.value=p,r("radioChange",o.value)};return(p,m)=>(e.openBlock(),e.createElementBlock("div",rv,[e.createVNode(al.ssRadio,{modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=g=>o.value=g),content:n==null?void 0:n.itemData,onChange:c},null,8,["modelValue","content"])]))}}),iv=Zl._export_sfc(nv,[["__scopeId","data-v-177d64c3"]]),ru=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),ov={TABLE:Bc,FORM:xs,STATICFORM:Tc,TABLEOPERATE:Jh,TABLESTYLE:f2,TABLEEXTEND:v2,TABLEINTERACTION:g2,FORMOPERATE:ws,FOLD:G2,CALCULATOR:e4,METHODBUTTON:r4,AVATARUPLOAD:ls.ssAvatar,SIGNATURE:ls.ssSignature,FORMTOP:xs,STEP:v4,STEPOPERATE:V2,TIMELINE:x4,TIMELINEOPERATE:q2,FORMTOPOPERATE:ws,SIGNATUREOPERATE:p4,AVATARUPLOADOPERATE:o4,TABS:S4,TABSOPERATE:c6,CHART:S6,CHARTOPERATE:O6,LAYOUT:$6,LAYOUTOPERATE:K6,PARENTITEM:lv,RADIO:iv};function Ti(a){return ov[a==null?void 0:a.toUpperCase()]||null}exports.De=lu;exports.activeStepInfo=Si;exports.addContents=Ki;exports.addVisibleDialog=Dt;exports.affixItems=E0;exports.allMapContents=bt;exports.analyzeMenu=ac;exports.cacheNewData=xc;exports.clickMainKey=Sc;exports.clickSavePage=S0;exports.clickStep=Cc;exports.clickTrigger=_c;exports.compId=jn;exports.compNames=wc;exports.compShow=Bi;exports.existLayouts=M0;exports.fixChangeValue=Et;exports.generateLayouts=c2;exports.getComponent=Ti;exports.getComponents=Gi;exports.getPageConstruct=Gd;exports.getPageData=Jr;exports.getSliceContLength=V0;exports.gridRowHeight=n2;exports.gridRowHeightHmPg=r2;exports.isStepLayout=Dc;exports.onBack=w0;exports.onButtonChange=T0;exports.onChange=To;exports.onClick=_0;exports.onClickStep=I0;exports.onContentChange=No;exports.onExtendTaskEnd=z0;exports.onOk=N0;exports.onPageBack=L0;exports.onPageChange=Ao;exports.onSelectFixContent=x0;exports.renderShowItems=bc;exports.showItems=ur;exports.sliceTableLength=kc;exports.slotContent=ru;exports.ssTable=Bc;exports.st=Mo;exports.stepItems=P0;exports.tabChange=O0;exports.toolBar=A0;exports.useFormComp=Ct;exports.useModelLoader=_f;exports.verifyButton=R0;
|