ss-component-new 1.3.301 → 1.3.302

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.
Files changed (111) hide show
  1. package/dist/{MTLLoader-RDE-ZA7R.js → MTLLoader-BrEAUYmm.js} +1 -1
  2. package/dist/{MTLLoader-CLDHKsuZ.cjs → MTLLoader-DqRiQxtb.cjs} +1 -1
  3. package/dist/{OrbitControls-BdotT7Cg.cjs → OrbitControls-DjWgA8Ek.cjs} +1 -1
  4. package/dist/{OrbitControls-BMOJWSL-.js → OrbitControls-Xm3TiWSm.js} +1 -1
  5. package/dist/{URDFLoader-Y4l_xAEg.cjs → URDFLoader-BG8UBoRV.cjs} +1 -1
  6. package/dist/{URDFLoader-emHFNLHl.js → URDFLoader-BVq4-_nm.js} +2 -2
  7. package/dist/{animationData-BHoj-1LD.js → animationData-CKnGxrwv.js} +3 -3
  8. package/dist/{animationData-CQdthirF.cjs → animationData-CvSQOLjD.cjs} +1 -1
  9. package/dist/{array-P5J-DgMu.cjs → array-BWgfvvzW.cjs} +1 -1
  10. package/dist/{array-Cio8S2Pj.js → array-BpsLG-qe.js} +4 -4
  11. package/dist/clone-BkXJ1f6m.cjs +1 -0
  12. package/dist/{clone-DlNyA_zn.js → clone-DXbbt8Hm.js} +1 -1
  13. package/dist/{dayjs.min-73fIR1V_.cjs → dayjs.min-C_98bw1w.cjs} +1 -1
  14. package/dist/{dayjs.min-E1ZLJ-8j.js → dayjs.min-DuspkzAg.js} +1 -1
  15. package/dist/{iconfont-Cp7o4QAt.cjs → iconfont-Bh5e2p75.cjs} +1 -1
  16. package/dist/{iconfont-Cg9QlUoy.js → iconfont-CI2ln_lz.js} +2 -2
  17. package/dist/{index-BdGKsSb2.cjs → index--9RSY5nc.cjs} +1 -1
  18. package/dist/{index-Co-U8J6E.cjs → index-1hSToJw_.cjs} +1 -1
  19. package/dist/{index-CQY6ageG.cjs → index-92G6p6-P.cjs} +1 -1
  20. package/dist/{index-fAnqtn_m.cjs → index-B6OWlCN4.cjs} +1 -1
  21. package/dist/{index-0hpStIBH.js → index-B7B9vl_S.js} +4 -4
  22. package/dist/{index-D1vYje_p.cjs → index-BHp_Rra2.cjs} +1 -1
  23. package/dist/{index-6teHdmr0.js → index-BMj0wGQ5.js} +1 -1
  24. package/dist/{index-tT9c2s2F.js → index-BR5mRxoX.js} +47 -38
  25. package/dist/{index-CwOB279v.cjs → index-BVbA0cHb.cjs} +1 -1
  26. package/dist/{index-H8n2KFLX.cjs → index-BY-jyYWy.cjs} +1 -1
  27. package/dist/{index-B846yqBS.js → index-BbRiCABC.js} +2 -2
  28. package/dist/{index-BkOJA3nu.cjs → index-BcTkU3nu.cjs} +1 -1
  29. package/dist/{index-CwZs4rIC.js → index-BezhZle5.js} +6 -6
  30. package/dist/{index-CEwg_zdl.js → index-Bwv7RY5s.js} +1 -1
  31. package/dist/{index-DsUMFNuA.js → index-BzX1r1DQ.js} +6 -6
  32. package/dist/index-CAHcIkx6.cjs +1 -0
  33. package/dist/{index-BEEOZ_LN.js → index-CDVaGIeb.js} +1 -1
  34. package/dist/{index-cC0isUDx.cjs → index-CNFkoqud.cjs} +1 -1
  35. package/dist/index-CR2bMJxC.js +9785 -0
  36. package/dist/index-CR4U-WNu.cjs +2 -0
  37. package/dist/{index-DXKzYxhw.js → index-CT0_6X-e.js} +2 -2
  38. package/dist/{index-rjTawDw6.js → index-C_dda12R.js} +2 -2
  39. package/dist/{index-DmMl7DkC.js → index-CbuRLwLx.js} +4 -4
  40. package/dist/index-CcybWQ0a.cjs +25 -0
  41. package/dist/{index-PAFvx19H.cjs → index-D3Lc8UUG.cjs} +1 -1
  42. package/dist/{index-CkXAOjdK.js → index-D4rNc1Ug.js} +2 -2
  43. package/dist/{index-sqfOcL_Q.cjs → index-D6rBwYFi.cjs} +1 -1
  44. package/dist/{index-Cro-IzQv.cjs → index-D9VN9VwZ.cjs} +1 -1
  45. package/dist/{index-D58LRV4j.js → index-D9jDJTOl.js} +9 -9
  46. package/dist/{index-yXqsfBiR.cjs → index-DB7w6WMF.cjs} +1 -1
  47. package/dist/{index-DoQ2DjBA.js → index-DF7jIWvH.js} +2 -2
  48. package/dist/{index-BS23fm8I.js → index-DGknSo3g.js} +9 -9
  49. package/dist/{index-BJQ12PRZ.cjs → index-DIgF229o.cjs} +1 -1
  50. package/dist/{index-8VjHjOci.cjs → index-DJEST34U.cjs} +1 -1
  51. package/dist/{index-CtBrDQiG.cjs → index-DKl62QNQ.cjs} +1 -1
  52. package/dist/{index-BGYRY71Y.cjs → index-DOou0S80.cjs} +1 -1
  53. package/dist/{index-6egNZH3a.js → index-DPbLX2EM.js} +3 -3
  54. package/dist/{index-CEuh0_6n.js → index-DRSO21bq.js} +1 -1
  55. package/dist/index-DT8J-Un0.js +481 -0
  56. package/dist/index-De7jtHBb.cjs +1 -0
  57. package/dist/{index-C3RYFBPK.cjs → index-DliVCzLT.cjs} +1 -1
  58. package/dist/{index-C4Dlzm7P.js → index-DmmlczJa.js} +4 -4
  59. package/dist/{index-CPz5Q62a.js → index-DnqpKHUZ.js} +1 -1
  60. package/dist/{index-BohJ0pIH.cjs → index-DrZ2rTX6.cjs} +1 -1
  61. package/dist/{index-CagHv4za.js → index-DvF67cFp.js} +1 -1
  62. package/dist/{index-BREFniPq.js → index-DxKAizLR.js} +4 -4
  63. package/dist/{index-Ba_o-vqP.cjs → index-DzS8TUJx.cjs} +1 -1
  64. package/dist/{index-CsBViUVV.js → index-MM7KiUTF.js} +3 -3
  65. package/dist/{index-DsIkRvPS.cjs → index-Q9XfSrZY.cjs} +1 -1
  66. package/dist/{index-BxEBUPI0.cjs → index-R66yOvAG.cjs} +1 -1
  67. package/dist/{index-CAIY8beW.js → index-SQ7v5v4-.js} +3 -3
  68. package/dist/{index-CkTFRGxB.js → index-WrlsRfB9.js} +1 -1
  69. package/dist/{index-CqiskI7e.js → index-Y6ou98p7.js} +1 -1
  70. package/dist/{index-Dkvr_yZQ.cjs → index-apX7jShx.cjs} +1 -1
  71. package/dist/{index-d3eamXNt.js → index-fChGNUaV.js} +2 -2
  72. package/dist/{index-Cq0IbX2g.cjs → index-g7Wgp9gu.cjs} +1 -1
  73. package/dist/{index-Cck4n4WY.cjs → index-ucDLs-jz.cjs} +1 -1
  74. package/dist/{index-B47-vpvz.js → index-xocA7N1o.js} +7912 -7900
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-_g-HLUBE.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CA4D5g5S.cjs} +1 -1
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dmtv1jQ3.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ct_Gif7C.js} +4 -4
  77. package/dist/{main-C5mcsbRd.js → main-SWG15a-I.js} +4 -4
  78. package/dist/{main-D8ovrBi2.cjs → main-Yz4Oqt7r.cjs} +1 -1
  79. package/dist/{menu-BMAZOS2j.js → menu-BzDsNPVM.js} +648 -560
  80. package/dist/{menu-DopnPfbG.cjs → menu-DUkDo01b.cjs} +5 -6
  81. package/dist/{menuIndex-DhpobxSC.cjs → menuIndex-BkBrPObt.cjs} +1 -1
  82. package/dist/{menuIndex-DuWSagQ-.js → menuIndex-yuvNAovT.js} +1 -1
  83. package/dist/ss-component.cjs +1 -1
  84. package/dist/ss-component.css +1 -1
  85. package/dist/ss-component.js +12 -12
  86. package/dist/ss-component2.cjs +1 -1
  87. package/dist/ss-component2.js +12 -12
  88. package/dist/{threeModel-D3UmXNUb.cjs → threeModel-C63Sjop5.cjs} +1 -1
  89. package/dist/{threeModel-3JirGS2j.js → threeModel-b1yjN3xi.js} +4 -4
  90. package/dist/{threePreview-diIAbbKf.js → threePreview-EMOU8ESj.js} +4 -4
  91. package/dist/{threePreview-_Pa_rEAW.cjs → threePreview-T5JQIpIE.cjs} +1 -1
  92. package/dist/{threeSceneView-B5pQXPj7.cjs → threeSceneView-CVnwcWw9.cjs} +1 -1
  93. package/dist/{threeSceneView-DINMkVVz.js → threeSceneView-zDdeQECN.js} +14 -14
  94. package/dist/{threeSceneViewForCPMPIP-DqzjXWdH.js → threeSceneViewForCPMPIP-Cy9q2ndz.js} +8 -8
  95. package/dist/{threeSceneViewForCPMPIP-k5RanDHf.cjs → threeSceneViewForCPMPIP-DXVojXop.cjs} +1 -1
  96. package/dist/{threeTrackPathView-DFuI3kE-.cjs → threeTrackPathView-ewxBf_AV.cjs} +1 -1
  97. package/dist/{threeTrackPathView-CmGiZRgE.js → threeTrackPathView-jXEBNcpF.js} +4 -4
  98. package/dist/{threeViewerHost-B-HsQ66C.js → threeViewerHost-CQeDys9O.js} +3 -3
  99. package/dist/{threeViewerHost-msa4WUeH.cjs → threeViewerHost-WO0px6I6.cjs} +1 -1
  100. package/dist/{urdfTree-DwmC3WSP.js → urdfTree-BRwS94Xs.js} +1 -1
  101. package/dist/{urdfTree-CeTWjJ2Y.cjs → urdfTree-BVYJZhPX.cjs} +1 -1
  102. package/dist/{workpieceTreePanel-MbzDAYJO.js → workpieceTreePanel-D29Boj5S.js} +4 -4
  103. package/dist/{workpieceTreePanel-BjTo7Vbi.cjs → workpieceTreePanel-FDRKfo7x.cjs} +1 -1
  104. package/package.json +1 -1
  105. package/dist/clone-DZsVSfvJ.cjs +0 -1
  106. package/dist/index-5rsqoznF.cjs +0 -1
  107. package/dist/index-BWfqrsaY.cjs +0 -2
  108. package/dist/index-Br8-OQ_d.js +0 -679
  109. package/dist/index-BwyBfUCz.cjs +0 -1
  110. package/dist/index-D6yEF8Ru.js +0 -9698
  111. package/dist/index-DOCsP0-B.cjs +0 -25
@@ -1,25 +0,0 @@
1
- "use strict";var ku=Object.defineProperty;var xu=(l,n,r)=>n in l?ku(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var qr=(l,n,r)=>xu(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),el=require("./request-BC2w2vGr.cjs"),$n=require("./dayjs.min-73fIR1V_.cjs"),L=require("./menu-DopnPfbG.cjs"),dl=require("./index-BGYRY71Y.cjs"),Jl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Va=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-_g-HLUBE.cjs"),xr=require("./index-CUw6nGTo.cjs"),wi=require("./threeViewerHost-msa4WUeH.cjs"),ca=require("./index-BkOJA3nu.cjs"),wu=require("./index-DsNHJYr-.cjs"),_r=require("./index-CW4qJdP8.cjs"),Qt=require("./index-H8n2KFLX.cjs");require("./index-CwOB279v.cjs");const Ws=require("./index-Cq0IbX2g.cjs"),Vo=require("./index-W8p89C7t.cjs"),un=require("./index-CQY6ageG.cjs");;/* empty css */const _i=require("./isString-DNBlKLZH.cjs"),es=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ks=require("./index-BVaHwt5f.cjs"),_u=require("./index-Cro-IzQv.cjs"),On=require("./MTLLoader-CLDHKsuZ.cjs"),Cu=require("./URDFLoader-Y4l_xAEg.cjs");var Su="[object Boolean]";function Gs(l){return l===!0||l===!1||el.isObjectLike(l)&&el.baseGetTag(l)==Su}function Eu(l){return l===void 0}const Du=l=>l.match(/\((.*)\)/)[1],Bu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const n=l,r=a.ref(null),o=a.ref(!1),s=a.ref(null);return a.watch(()=>n==null?void 0:n.isVisible,()=>{o.value=n==null?void 0:n.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var c,m;(m=(c=r.value)==null?void 0:c.updatePopper)==null||m.call(c)})},{deep:!0,immediate:!0}),(c,m)=>{const p=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":m[0]||(m[0]=v=>o.value=v),trigger:n.trigger,title:n==null?void 0:n.title,placement:n==null?void 0:n.placement,width:n==null?void 0:n.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Nu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const n=l,r=a.computed(()=>{const o=String(n.value??"");return o==="已完成"?"task-status-completed":o==="进行中"?"task-status-running":o==="终止"||o==="暂停"?"task-status-stopped":""});return(o,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",r.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Tu=Jl._export_sfc(Nu,[["__scopeId","data-v-d81f59b4"]]);function Au(l,n,r,o={}){if(!l||!n||!r||r.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:c="rgba(255, 235, 59, 0.3)",strokeWidth:m=2,fillOpacity:p=.2}=o,v=l.getBoundingClientRect(),y=n.getBoundingClientRect(),u=n.naturalWidth,w=n.naturalHeight,B=y.width/u,R=y.height/w,E=Math.min(B,R),q=u*E,O=w*E,M=(v.width-q)/2,Z=(v.height-O)/2,C=r.map(([S,g])=>{const b=M+S*q,j=Z+g*O;return{x:b,y:j}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(C[0].x,C[0].y);for(let S=1;S<C.length;S++)s.lineTo(C[S].x,C[S].y);s.closePath();const _=c.replace(/[\d.]+\)$/,`${p})`);s.fillStyle=_,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=m,s.stroke()}function ko(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function as(l,n){if(!l||!n)return null;const r=l[n];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const zu={key:0,class:"ocr-img-preview-root"},Mu={class:"ocr-img-preview-window"},Iu={key:0,class:"img-preview-body"},Ou={class:"img-preview-header"},Lu={class:"img-header-left"},Ru={class:"img-name"},$u={key:0,class:"img-header-right"},Vu={class:"img-index"},Pu={key:0,class:"img-thumb-list"},Fu=["onClick"],ju={key:1,class:"thumb-placeholder"},Hu={class:"thumb-name"},Uu={class:"img-preview-container"},qu={key:0,class:"img-placeholder"},Wu={key:2,class:"img-placeholder"},Ku={key:0},Gu={key:1},Yu={key:1,class:"img-placeholder"},Ju=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:n}){const r=l,o=n,s=a.computed({get:()=>r.visible,set:D=>o("update:visible",D)});let c=!1,m="",p=0,v=0,y=0,u=0,w=0,B=0,R=null;const E=D=>{var ke,de;const re=(de=(ke=D==null?void 0:D.target)==null?void 0:ke.closest)==null?void 0:de.call(ke,".ocr-img-preview-window");return re||document.querySelector(".ocr-img-preview-window")},q=D=>{if(!D||D==="none")return{tx:0,ty:0};let re=D.match(/matrix\(([^)]+)\)/);if(re){const ke=re[1].split(",").map(de=>Number(de.trim()));return{tx:(ke==null?void 0:ke[4])||0,ty:(ke==null?void 0:ke[5])||0}}if(re=D.match(/matrix3d\(([^)]+)\)/),re){const ke=re[1].split(",").map(de=>Number(de.trim()));return{tx:(ke==null?void 0:ke[12])||0,ty:(ke==null?void 0:ke[13])||0}}return re=D.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),re?{tx:Number(re[1])||0,ty:Number(re[2])||0}:{tx:0,ty:0}},O=(D,re,ke)=>{D.style.transform=`translate(${re}px, ${ke}px)`},M=D=>{const re=E(D);if(!re)return;c=!0,R=re,m="move",p=D.clientX,v=D.clientY;const ke=window.getComputedStyle(re),{tx:de,ty:De}=q(ke.transform);w=de,B=De,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},Z=(D,re)=>{const ke=E(D);if(!ke)return;c=!0,R=ke,m=re,p=D.clientX,v=D.clientY;const de=ke.getBoundingClientRect();y=de.width,u=de.height;const De=window.getComputedStyle(ke),{tx:ha,ty:Sa}=q(De.transform);w=ha,B=Sa,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},C=D=>{if(!c||!R)return;const re=D.clientX-p,ke=D.clientY-v,de=360,De=420;let ha=y,Sa=u,Ja=w,le=B;if(m==="move"){Ja=w+re,le=B+ke,O(R,Ja,le);return}if(m.includes("right")&&(ha=Math.max(de,y+re)),m.includes("bottom")&&(Sa=Math.max(De,u+ke)),m.includes("left")){const la=y-re;la<de?(ha=de,Ja=w+(y-de)):(ha=la,Ja=w+re)}if(m.includes("top")){const la=u-ke;la<De?(Sa=De,le=B+(u-De)):(Sa=la,le=B+ke)}R.style.width=`${ha}px`,R.style.height=`${Sa}px`,O(R,Ja,le)},_=()=>{c=!1,m="",R=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)},S=a.ref([]),g=a.ref(!1);a.watch(()=>r.images,async D=>{if(!Array.isArray(D)||D.length===0){S.value=[];return}g.value=!0;const re=[];for(const ke of D)if(ke.url&&!ke.url.startsWith("blob:")&&!ke.url.startsWith("http"))try{const de=await Va.downloadFile(ke.url),De=URL.createObjectURL(de);re.push({...ke,blobUrl:De})}catch(de){console.error(`Failed to load image for preview: ${ke.url}`,de),re.push({...ke,blobUrl:""})}else re.push({...ke,blobUrl:ke.url});S.value=re,g.value=!1},{deep:!0,immediate:!0});const b=a.ref(0),j=a.ref(null),V=a.ref(null),G=a.computed(()=>S.value[b.value]||null),fe=()=>{if(!S.value.length){b.value=0;return}if(r.defaultImageName){const D=S.value.findIndex(re=>(re==null?void 0:re.name)===r.defaultImageName);b.value=D>=0?D:0}else b.value=0},Ne=D=>{if(!S.value.length)return;const re=Math.max(0,Math.min(D,S.value.length-1));b.value=re},Se=()=>Ne(b.value-1),Q=()=>Ne(b.value+1),ge=D=>{if(!D)return;const re=S.value.findIndex(ke=>(ke==null?void 0:ke.name)===D);re>=0&&(b.value=re)},J=()=>{if(!V.value)return;const D=V.value.parentElement;if(!D)return;const re=D.getBoundingClientRect();V.value.width=re.width,V.value.height=re.height},ue=()=>{var de,De;if(!V.value||!j.value||!r.focusedFieldName){V.value&&ko(V.value);return}const D=(de=j.value.$el)==null?void 0:de.querySelector("img");if(!D)return;if(!D.complete||D.naturalWidth===0){D.onload=()=>{a.nextTick(()=>{ue()})};return}const re=((De=G.value)==null?void 0:De.name)||"",ke=as(r.fieldMeta,r.focusedFieldName);if(!ke){ko(V.value);return}if(ke.imageName!==re){ko(V.value);return}J(),Au(V.value,D,ke.bboxNorm)},Ue=()=>{a.nextTick(()=>{J(),ue()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const D=as(r.fieldMeta,r.focusedFieldName);D!=null&&D.imageName&&ge(D.imageName),a.nextTick(()=>{ue()})}),a.watch(()=>{var D;return(D=G.value)==null?void 0:D.name},()=>{s.value&&a.nextTick(()=>{V.value&&ko(V.value),ue()})}),a.watch(()=>r.visible,D=>{D?(fe(),a.nextTick(()=>{J(),ue()})):V.value&&ko(V.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&fe()});let Ba=null;a.onMounted(()=>{var D;typeof ResizeObserver<"u"&&(Ba=new ResizeObserver(()=>{J(),a.nextTick(()=>{ue()})}),(D=V.value)!=null&&D.parentElement&&Ba.observe(V.value.parentElement))}),a.onUnmounted(()=>{Ba&&(Ba.disconnect(),Ba=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)});const ne=()=>{V.value&&ko(V.value),o("update:visible",!1),o("close")};return(D,re)=>{var Sa,Ja;const ke=a.resolveComponent("el-button"),de=a.resolveComponent("el-image"),De=a.resolveComponent("Loading"),ha=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",zu,[re[12]||(re[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Mu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(M,["stop"])},[re[8]||(re[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ne},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:re[0]||(re[0]=a.withModifiers(le=>Z(le,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:re[1]||(re[1]=a.withModifiers(le=>Z(le,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:re[2]||(re[2]=a.withModifiers(le=>Z(le,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:re[3]||(re[3]=a.withModifiers(le=>Z(le,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:re[4]||(re[4]=a.withModifiers(le=>Z(le,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:re[5]||(re[5]=a.withModifiers(le=>Z(le,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:re[6]||(re[6]=a.withModifiers(le=>Z(le,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:re[7]||(re[7]=a.withModifiers(le=>Z(le,"bottom-right"),["stop"]))},null,32),G.value?(a.openBlock(),a.createElementBlock("div",Iu,[a.createElementVNode("div",Ou,[a.createElementVNode("div",Lu,[a.createElementVNode("span",Ru,a.toDisplayString(G.value.name?G.value.name+(G.value.url&&G.value.url.lastIndexOf(".")!==-1?G.value.url.substring(G.value.url.lastIndexOf(".")):""):""),1)]),S.value.length>1?(a.openBlock(),a.createElementBlock("div",$u,[a.createVNode(ke,{size:"small",disabled:b.value===0,onClick:Se},{default:a.withCtx(()=>re[9]||(re[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Vu,a.toDisplayString(b.value+1)+" / "+a.toDisplayString(S.value.length),1),a.createVNode(ke,{size:"small",disabled:b.value===S.value.length-1,onClick:Q},{default:a.withCtx(()=>re[10]||(re[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),S.value.length>1?(a.openBlock(),a.createElementBlock("div",Pu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,(le,la)=>(a.openBlock(),a.createElementBlock("div",{key:(le.name||"")+"-"+la,class:a.normalizeClass(["img-thumb-item",{active:la===b.value}]),onClick:Ve=>Ne(la)},[le!=null&&le.blobUrl?(a.openBlock(),a.createBlock(de,{key:0,src:le.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[le.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",ju,"加载失败")),a.createElementVNode("div",Hu,a.toDisplayString(le.name||"-"),1)],10,Fu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Uu,[g.value?(a.openBlock(),a.createElementBlock("div",qu,[a.createVNode(ha,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(De)]),_:1}),re[11]||(re[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(Sa=G.value)!=null&&Sa.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(de,{ref_key:"imageRef",ref:j,src:G.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[G.value.blobUrl],onLoad:Ue},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:V,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Wu,[(Ja=G.value)!=null&&Ja.url?(a.openBlock(),a.createElementBlock("span",Ku,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Gu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Yu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Xu=Jl._export_sfc(Ju,[["__scopeId","data-v-48a4ecb1"]]),Zu={class:"cert-preview-body"},Qu={key:0,class:"pdf-preview-container"},ed={class:"thumbs"},ad=["onClick"],ld={class:"thumb-img"},rd=["src"],nd={key:1,class:"thumb-loading"},od={class:"thumb-title"},id={class:"viewer"},td={key:0,class:"viewer-img-wrap"},sd=["src"],cd={key:1,class:"viewer-loading"},ud=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(""),c=a.ref(""),m=a.computed(()=>(r.versions||[]).find(E=>String(E.versionId)===String(s.value))),p=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),u=()=>{try{Object.values(p.value||{}).forEach(E=>{E&&URL.revokeObjectURL(E)}),v.value&&URL.revokeObjectURL(v.value)}catch{}p.value={},v.value=""},w=async E=>{if(!E||E.fileType==="pdf")return;const q=Array.isArray(E.images)?E.images:[];for(const O of q){const M=O==null?void 0:O.url;if(!(!M||p.value[M]))try{const Z=await L.platformDownloadFile({url:M}),C=URL.createObjectURL(Z.data);p.value={...p.value,[M]:C}}catch{}}},B=async E=>{var O;if(!E||E.fileType!=="pdf"){v.value="";return}const q=E.sourceUrl||"";if(!q){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:q,versionId:E==null?void 0:E.versionId,certNo:E==null?void 0:E.certNo});const M=await L.platformDownloadFile({url:q});console.log("[CertificatePreview] PDF响应:",{url:q,status:M==null?void 0:M.status,size:(O=M==null?void 0:M.data)==null?void 0:O.size});const Z=URL.createObjectURL(M.data);v.value=Z;const C=E.certNo?String(E.certNo):"";y.value=C?`${C}.pdf`:"证书附件.pdf"}catch(M){console.error("[CertificatePreview] PDF加载失败:",{url:q,error:M}),v.value=""}};a.watch(()=>r.visible,async E=>{var O;if(!E){u();return}const q=(O=r.versions)==null?void 0:O[0];s.value=(q==null?void 0:q.versionId)||"",await w(q),await B(q)},{immediate:!0}),a.watch(()=>s.value,async()=>{var q,O;const E=m.value;if(!E){c.value="",v.value="";return}if(E.fileType==="pdf"){c.value="",await B(E);return}v.value="",c.value=((O=(q=E.images)==null?void 0:q[0])==null?void 0:O.url)||"",await w(E)},{immediate:!0});const R=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(E,q)=>{const O=a.resolveComponent("el-empty"),M=a.resolveComponent("el-tab-pane"),Z=a.resolveComponent("el-tabs"),C=a.resolveComponent("el-button"),_=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(_,{"model-value":E.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:R},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:R},{default:a.withCtx(()=>q[1]||(q[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[E.versions&&E.versions.length>0?(a.openBlock(),a.createBlock(Z,{key:0,modelValue:s.value,"onUpdate:modelValue":q[0]||(q[0]=S=>s.value=S),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.versions,S=>(a.openBlock(),a.createBlock(M,{key:S.versionId,name:S.versionId,label:S.label},{default:a.withCtx(()=>[a.createElementVNode("div",Zu,[S.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Qu,[v.value?(a.openBlock(),a.createBlock(dl.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(O,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",ed,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.images||[],g=>(a.openBlock(),a.createElementBlock("div",{key:g.url,class:a.normalizeClass(["thumb",{active:g.url===c.value}]),onClick:b=>c.value=g.url},[a.createElementVNode("div",ld,[p.value[g.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:p.value[g.url]},null,8,rd)):(a.openBlock(),a.createElementBlock("div",nd,"加载中"))]),a.createElementVNode("div",od,a.toDisplayString(g.name),1)],10,ad))),128))]),a.createElementVNode("div",id,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[p.value[c.value]?(a.openBlock(),a.createElementBlock("div",td,[a.createElementVNode("img",{class:"viewer-img",src:p.value[c.value]},null,8,sd)])):(a.openBlock(),a.createElementBlock("div",cd,"加载中"))],64)):(a.openBlock(),a.createBlock(O,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(O,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),dd=Jl._export_sfc(ud,[["__scopeId","data-v-220703c0"]]),pd={class:"ocr-candidate-wrap"},fd={class:"ocr-candidate-left"},hd={key:1},vd={key:0},md={key:1},yd={key:2},gd={key:3},bd={key:0,class:"ocr-candidate-right"},kd={class:"ocr-candidate-actions"},xd={key:1},wd={class:"dialog-footer"},_d={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:n}){const r=(b=[])=>{const j=[],V=G=>{(G||[]).forEach(fe=>{if(!fe)return;const Ne=fe.children||fe.childrens||fe.columns;Array.isArray(Ne)&&Ne.length>0?V(Ne):j.push(fe)})};return V(b),j},o=l,s=n,c=a.computed(()=>{var b;return((b=B.value)==null?void 0:b.allowAdd)!==!1}),m=a.computed(()=>{var b;return((b=B.value)==null?void 0:b.allowReplace)!==!1}),p=b=>{if(!b)return[];if(Array.isArray(b))return b;if(typeof b=="string")try{const j=JSON.parse(b);return Array.isArray(j)?j:[]}catch{return[]}return[]},v=b=>{s("preview-file",b)},y=a.ref([]),u=a.ref(0),w=a.ref("");a.watch(()=>o.candidates,b=>{var j,V;y.value=(b||[]).map(G=>({...G,...(G==null?void 0:G.ocrRow)||{},selectedTargetId:(G==null?void 0:G.selectedTargetId)||"",__decision:G==null?void 0:G.__decision})),u.value=0,w.value=((V=(j=y.value)==null?void 0:j[0])==null?void 0:V.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,b=>{var j,V;b&&(u.value=0,w.value=((V=(j=y.value)==null?void 0:j[0])==null?void 0:V.selectedTargetId)||"")});const B=a.computed(()=>{var j;const b=Number(u.value||0);return((j=y.value||[])==null?void 0:j[b])||null}),R=a.computed(()=>(r(o.columns||[])||[]).filter(V=>V&&V.prop).filter(V=>V.type!=="operate"&&V.label!=="操作"&&V.prop!=="operate")),E=a.computed(()=>R.value.filter(b=>b.label!=="证书附件"&&b.prop!=="证书附件")),q=b=>{if(!b)return;const j=(y.value||[]).findIndex(V=>(V==null?void 0:V.idx)===(b==null?void 0:b.idx));j>-1&&(u.value=j,w.value=(b==null?void 0:b.selectedTargetId)||"")},O=b=>{if(!b){w.value="";return}w.value=String((b==null?void 0:b.id)??"")},M=(b,j="")=>{const V=Number(u.value||0),G=y.value||[],fe=G[V];fe&&(fe.__decision=b,fe.selectedTargetId=j,w.value=j,y.value=[...G])},Z=()=>M("skip",""),C=()=>M("add",""),_=()=>{if(!w.value){el.ElMessage.warning("请先选择要替换的目标记录");return}M("replace",w.value)},S=()=>{s("update:visible",!1)},g=()=>{const b=y.value||[];if(b.find(V=>(V==null?void 0:V.__decision)==="replace"&&!(V!=null&&V.selectedTargetId))){el.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",b),s("update:visible",!1)};return(b,j)=>{const V=a.resolveComponent("el-table-column"),G=a.resolveComponent("svg-icon"),fe=a.resolveComponent("el-table"),Ne=a.resolveComponent("el-button"),Se=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(xr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:S},{default:a.withCtx(()=>{var Q,ge;return[a.createElementVNode("div",pd,[a.createElementVNode("div",fd,[j[0]||(j[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(fe,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:q},{default:a.withCtx(()=>[a.createVNode(V,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,J=>(a.openBlock(),a.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:a.withCtx(({row:ue})=>[J.label==="证书附件"||J.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(ue==null?void 0:ue[J.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ue=>v({row:ue,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",hd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(V,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:J})=>[a.createTextVNode(a.toDisplayString(((J==null?void 0:J.candidates)||[]).length),1)]),_:1}),a.createVNode(V,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:J})=>[(J==null?void 0:J.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",vd,"替换")):(J==null?void 0:J.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",md,"新增")):(J==null?void 0:J.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",yd,"跳过")):(a.openBlock(),a.createElementBlock("span",gd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",bd,[j[4]||(j[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",kd,[a.createVNode(Ne,{id:"themeBorderButton",onClick:Z},{default:a.withCtx(()=>j[1]||(j[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Ne,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>j[2]||(j[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Ne,{class:"ok-button",id:"themeButton",onClick:_,disabled:!m.value||!w.value},{default:a.withCtx(()=>j[3]||(j[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((Q=B.value)==null?void 0:Q.candidates)||[]).length===0?(a.openBlock(),a.createBlock(Se,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(fe,{data:((ge=B.value)==null?void 0:ge.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:O,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(V,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(R.value,J=>(a.openBlock(),a.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:a.withCtx(({row:ue})=>[J.label==="证书附件"||J.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(ue==null?void 0:ue[J.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ue=>v({row:ue,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",xd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ue==null?void 0:ue[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",wd,[a.createVNode(Ne,{id:"themeBorderButton",onClick:S},{default:a.withCtx(()=>j[5]||(j[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Ne,{class:"ok-button",id:"themeButton",onClick:g},{default:a.withCtx(()=>j[6]||(j[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Cd=Jl._export_sfc(_d,[["__scopeId","data-v-89e0489c"]]),Sd={class:"ocr-preview-content"},Ed={class:"ocr-preview-tip"},Dd={class:"ocr-preview-table"},Bd={style:{display:"flex","align-items":"center",gap:"8px"}},Nd={class:"dialog-footer"},Td={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref([]),m=a.ref([]);a.watch(()=>r.visible,R=>{R&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),m.value=[...r.ocrSelectedFields])});const p=(R,E)=>{const q=[...m.value];if(E)q.includes(R)||q.push(R);else{const O=q.indexOf(R);O>-1&&q.splice(O,1)}m.value=q,o("update:ocrSelectedFields",q)},v=(R,E,q)=>{o("fieldChange",{rowIndex:R,prop:E,value:q})},y=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},w=R=>typeof R!="number"?"-":`${(R*100).toFixed(1)}%`,B=R=>typeof R!="number"?"#606266":R>=.9?"#67c23a":R>=.7?"#e6a23c":"#f56c6c";return(R,E)=>{const q=a.resolveComponent("el-alert"),O=a.resolveComponent("el-table-column"),M=a.resolveComponent("el-checkbox"),Z=a.resolveComponent("el-input"),C=a.resolveComponent("el-table"),_=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(xr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Sd,[a.createElementVNode("div",Ed,[a.createVNode(q,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Dd,[a.createVNode(C,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(O,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,S=>(a.openBlock(),a.createBlock(O,{key:S.prop,prop:S.prop,"min-width":S.minWidth||230,"class-name":S.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Bd,[S.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(M,{key:0,"model-value":m.value.includes(S.prop),onChange:g=>p(S.prop,g),onClick:E[0]||(E[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(S.label),1)])]),default:a.withCtx(({row:g,$index:b})=>[S.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:B(g[S.prop]),fontWeight:500})},a.toDisplayString(w(g[S.prop])),5)):(a.openBlock(),a.createBlock(Z,{key:1,modelValue:g[S.prop],"onUpdate:modelValue":j=>g[S.prop]=j,size:"small",placeholder:"请输入"+S.label,onChange:j=>v(b,S.prop,j)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Nd,[a.createVNode(_,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>E[1]||(E[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(_,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>E[2]||(E[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Ad=Jl._export_sfc(Td,[["__scopeId","data-v-df66eb1f"]]),Co=l=>{var o;let n=l;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let r=(o=Va.analyzeSplitToContent(n,","))==null?void 0:o.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),Si(s)));return r=r==null?void 0:r.join(","),r};let za="$R",oo="[Any]";const zd=l=>{var m,p,v,y;let n={},r=l==null?void 0:l[0],o=(p=(m=r==null?void 0:r.replace("{",za))==null?void 0:m.split(za))==null?void 0:p[0];(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),o=o==null?void 0:o.split(":"),n.group=o;let s=l==null?void 0:l[1],c;return s!=null&&s.includes("{")?c=(y=(v=s==null?void 0:s.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:y.replaceAll(oo,""):c=s==null?void 0:s.replaceAll(oo,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),n.filter=c,n},Md=l=>{var w,B,R,E,q,O;let n=[],r=[],o=[],s=l==null?void 0:l.map(M=>{let Z=M==null?void 0:M.indexOf("@Form(");return Z>0?M==null?void 0:M.substring(0,Z):M}),c="",m=Va.analyzeSplitToContent(s==null?void 0:s[0],":");r=(w=m==null?void 0:m.filter(M=>!(M!=null&&M.includes("{"))&&!(M!=null&&M.includes("["))))==null?void 0:w.join(""),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),r!=null&&r.includes("(@")?r=(R=(B=r==null?void 0:r.replace("(@",za))==null?void 0:B.split(za))==null?void 0:R[0]:r!=null&&r.includes("@")&&(r=(q=(E=r==null?void 0:r.replace("@",za))==null?void 0:E.split(za))==null?void 0:q[0]);let p=m==null?void 0:m.filter(M=>(M==null?void 0:M.includes("{"))||(M==null?void 0:M.includes("["))),y=(p==null?void 0:p[0])??"";y=(O=Va.analyzeSplitToContent(y,","))==null?void 0:O.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)),(p==null?void 0:p.length)>1&&(n=Do(p==null?void 0:p[1]),n!=null&&n.every(M=>Array.isArray(M))&&(n=[n]));let u=[];return y==null||y.forEach((M,Z)=>{var Ne,Se,Q,ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha,wa;let C=(Ne=M==null?void 0:M.split("=="))==null?void 0:Ne[0],_=(Se=M==null?void 0:M.split("=="))==null?void 0:Se[1],S=[],g=[],b=[],j=[],V="Input",G=[],fe=[];if((M==null?void 0:M[0])!=="{"){if((_==null?void 0:_[0])==="$")_=_==null?void 0:_.slice(1,_==null?void 0:_.length),S=(ge=(Q=_==null?void 0:_.split("*"))==null?void 0:Q[0])==null?void 0:ge.split(":"),g=(D=(ne=(Ba=(Ue=(ue=(J=_==null?void 0:_.split("*"))==null?void 0:J[1])==null?void 0:ue.replace("{",za))==null?void 0:Ue.split(za))==null?void 0:Ba[0])==null?void 0:ne.split(":"))==null?void 0:D.filter(ta=>ta!==""),b=(ke=(re=_==null?void 0:_.replace("{",za))==null?void 0:re.split(za))==null?void 0:ke[1],b=b==null?void 0:b.replaceAll("}",""),b=b==null?void 0:b.split(":"),V="Select";else if(((de=Va.analyzeSplitToContent(M,"="))==null?void 0:de.length)>1){let ta=(De=C==null?void 0:C.split("="))==null?void 0:De[1];if(C=(ha=C==null?void 0:C.split("="))==null?void 0:ha[0],V="Select",!(M!=null&&M.includes("||")))ta=(Sa=ta==null?void 0:ta.split("/"))==null?void 0:Sa.map(We=>((We==null?void 0:We[(We==null?void 0:We.length)-1])==="/"&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),We)),j=ta==null?void 0:ta.map(We=>({label:We==null?void 0:We.replaceAll("'",""),value:We==null?void 0:We.replaceAll("'","")}));else{let We=[];(Ve=(la=(le=(Ja=M==null?void 0:M.replace("=",za))==null?void 0:Ja.split(za))==null?void 0:le[1])==null?void 0:la.split("||"))==null||Ve.forEach(Qe=>{var Ca,oe,_e;G.push((oe=(Ca=Qe==null?void 0:Qe.split("@Filter"))==null?void 0:Ca[0])==null?void 0:oe.split("/")),We.push((_e=Qe==null?void 0:Qe.split("@Filter"))==null?void 0:_e[1])}),fe=We==null?void 0:We.map(Qe=>(Qe=Qe==null?void 0:Qe.slice(1,(Qe==null?void 0:Qe.length)-1),Qe))}}else if(M!=null&&M.includes("@")&&!(M!=null&&M.includes("||"))){C=(Ze=($e=(ze=(Fe=(_a=C==null?void 0:C.replace("(@",za))==null?void 0:_a.split(za))==null?void 0:Fe[0])==null?void 0:ze.replace("@",za))==null?void 0:$e.split(za))==null?void 0:Ze[0];let ta=M!=null&&M.includes("(@")?"(@"+((qa=(Xa=M==null?void 0:M.replace("(@",za))==null?void 0:Xa.split(za))==null?void 0:qa[1]):"@"+((P=(F=M==null?void 0:M.replace("@",za))==null?void 0:F.split(za))==null?void 0:P[1]);if(ta=(X=Co(ta))==null?void 0:X.split(","),ta!=null&&ta.find(We=>We==null?void 0:We.includes("@Type"))){let We=(te=ta==null?void 0:ta.find(Qe=>Qe==null?void 0:Qe.includes("@Type")))==null?void 0:te.split("=");We!=null&&We.includes("File")&&(V="Upload"),We!=null&&We.includes("Date")&&(V="Date"),We!=null&&We.includes("DateTime")&&(V="DateTime"),We!=null&&We.includes("Time")&&(V="Time")}}C!=null&&C.includes("(@")||C!=null&&C.includes("@")&&(o.push(L.cloneDeep(C)),C=(xa=(ce=C==null?void 0:C.replace("@",za))==null?void 0:ce.split(za))==null?void 0:xa[0]),u.push({prop:C,label:C,value:"",menuPath:S,groups:g,columns:b,width:y==null?void 0:y.length,options:j,type:V,allContents:G,filterContents:fe})}else{c=c+"@"+((ra=Va.analyzeSplitToContent(M,"@"))==null?void 0:ra[1]);let ta=(Le=Va.analyzeSplitToContent(M,"@"))==null?void 0:Le[0];(ta==null?void 0:ta[(ta==null?void 0:ta.length)-1])==="@"&&(ta=ta==null?void 0:ta.slice(0,(ta==null?void 0:ta.length)-1));let We=(Ce=ta==null?void 0:ta.split("=="))==null?void 0:Ce[0],Qe=(Ea=ta==null?void 0:ta.split("=="))==null?void 0:Ea[1],Ca=(Pa=(ma=Qe==null?void 0:Qe.split("*"))==null?void 0:ma[0])==null?void 0:Pa.replace(oo,"");(Ca==null?void 0:Ca[0])==="$"&&(Ca=Ca==null?void 0:Ca.slice(1,Ca==null?void 0:Ca.length)),Ca=Va.analyzeSplitToContent(Ca,"$"),Ca=(Fa=Ca==null?void 0:Ca.map((oe,_e)=>{var Pe;return _e===0&&(Ca==null?void 0:Ca.length)>1&&(oe=(Pe=oe==null?void 0:oe.split(":"))==null?void 0:Pe[0]),(Ca==null?void 0:Ca.length)>1&&_e===(Ca==null?void 0:Ca.length)-1&&(oe=oe+":"),oe}))==null?void 0:Fa.join(":"),S=(Je=(ve=Ca==null?void 0:Ca.replaceAll("{",""))==null?void 0:ve.replaceAll("}",""))==null?void 0:Je.split(":"),g=(Ia=(Te=(pa=(ya=(Xe=(Ae=Qe==null?void 0:Qe.split("*"))==null?void 0:Ae[1])==null?void 0:Xe.replace("{",za))==null?void 0:ya.split(za))==null?void 0:pa[0])==null?void 0:Te.split(":"))==null?void 0:Ia.filter(oe=>oe!==""),b=(Ha=(ga=Qe==null?void 0:Qe.replace("{",za))==null?void 0:ga.split(za))==null?void 0:Ha[1],b=b==null?void 0:b.replaceAll("}",""),We=We==null?void 0:We.slice(1,(We==null?void 0:We.length)-1),b=b==null?void 0:b.split(","),V="Select",(wa=We==null?void 0:We.split(","))==null||wa.forEach((oe,_e)=>{var Pe,ie,Ka,vl;oe!=null&&oe.includes("(@")||oe!=null&&oe.includes("@")&&(o.push(L.cloneDeep(oe)),oe=(ie=(Pe=oe==null?void 0:oe.replace("@",za))==null?void 0:Pe.split(za))==null?void 0:ie[0]),u.push({prop:oe,label:oe,value:"",menuPath:S,groups:g,columns:(Ka=b==null?void 0:b[_e])==null?void 0:Ka.split(":"),width:(vl=We==null?void 0:We.split(","))==null?void 0:vl.length,type:V})})}}),{groupName:r,formContents:u,contents:n,filter:c,formColumn:y,hideContents:o}},Do=l=>{var o,s;if(!l||typeof l!="string")return[];let n=[],r=l.slice(1,(l==null?void 0:l.length)-1);if((r==null?void 0:r[0])!=="[")(o=Va.analyzeSplitToContent(r,","))==null||o.forEach(c=>{(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c.slice(0,(c==null?void 0:c.length)-1)),n.push(c??"")});else{let c=[];(s=Va.analyzeSplitToContent(r,","))==null||s.forEach(m=>{(m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),c.push(Do(m))}),n=c}return n},dt=(l,n)=>{var O,M,Z,C,_,S,g,b,j,V,G,fe,Ne,Se,Q,ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha,wa,ta,We,Qe,Ca;let r,o=[],s=[],c=[],m=[],p=[],v=[],y=[],u="Input",w,B="",R="",E=[],q="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let oe=Va.analyzeSplitToContent(l,"=");if((oe==null?void 0:oe.length)>1){l=oe==null?void 0:oe[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let ie=oe==null?void 0:oe[(oe==null?void 0:oe.length)-1];(ie==null?void 0:ie[0])==="&"&&(ie=ie==null?void 0:ie.slice(1,ie==null?void 0:ie.length)),R=(M=(O=ie==null?void 0:ie.replace("(",za))==null?void 0:O.split(za))==null?void 0:M[0];let Ka=(C=(Z=ie==null?void 0:ie.replace(")",za))==null?void 0:Z.split(za))==null?void 0:C[0];Ka=(S=(_=Ka==null?void 0:Ka.replace("(",za))==null?void 0:_.split(za))==null?void 0:S[1],(Ka==null?void 0:Ka[0])==="{"&&(Ka=Ka==null?void 0:Ka.slice(1,Ka==null?void 0:Ka.length)),(Ka==null?void 0:Ka[(Ka==null?void 0:Ka.length)-1])==="}"&&(Ka=Ka==null?void 0:Ka.slice(0,(Ka==null?void 0:Ka.length)-1)),E=Ka==null?void 0:Ka.split(",");let vl=(b=(g=ie==null?void 0:ie.replace(")",za))==null?void 0:g.split(za))==null?void 0:b[1];vl&&vl!==""&&(q=Co(vl))}r=(V=(j=l==null?void 0:l.replace("@Pam",za))==null?void 0:j.split(za))==null?void 0:V[0];let _e=(fe=(G=l==null?void 0:l.replace("@Pam",za))==null?void 0:G.split(za))==null?void 0:fe[1];_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1),_e=(Ne=Va.analyzeSplitToContent(_e,","))==null?void 0:Ne.map(ie=>(ie="@"+ie,ie));let Pe=_e==null?void 0:_e.find(ie=>ie==null?void 0:ie.includes("@Type"));Pe!=null&&Pe.includes("File")&&(u="Upload"),Pe!=null&&Pe.includes("Date")&&(u="Date"),Pe!=null&&Pe.includes("DateTime")&&(u="DateTime"),Pe!=null&&Pe.includes("Time")&&(u="Time"),w=_e==null?void 0:_e.find(ie=>ie==null?void 0:ie.includes("@IdentName")),w=w?(Q=(Se=w==null?void 0:w.replace("=",za))==null?void 0:Se.split(za))==null?void 0:Q[1]:r}else{if(r=(ge=l==null?void 0:l.split("=="))==null?void 0:ge[0],w=(J=l==null?void 0:l.split("=="))==null?void 0:J[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((Ba=(Ue=(ue=l==null?void 0:l.replace("=",za))==null?void 0:ue.split(za))==null?void 0:Ue[1])!=null&&Ba.includes("||")))if(r=(ne=l==null?void 0:l.split("="))==null?void 0:ne[0],w=r,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let _e=(D=l==null?void 0:l.split("(@"))==null?void 0:D[1];_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),_e=(ke=(re=_e==null?void 0:_e.replace("(",za))==null?void 0:re.split(za))==null?void 0:ke[1],_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),c==null||c.push(_e),l=(de=l==null?void 0:l.split("(@"))==null?void 0:de[0]}else{let _e=(De=l==null?void 0:l.split("@"))==null?void 0:De[1];_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),_e=(Sa=(ha=_e==null?void 0:_e.replace("(",za))==null?void 0:ha.split(za))==null?void 0:Sa[1],_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),c==null||c.push(_e),l=(Ja=l==null?void 0:l.split("@"))==null?void 0:Ja[0]}let oe=(la=(le=l==null?void 0:l.split("="))==null?void 0:le[1])==null?void 0:la.split("/");s.push(oe)}else o=(_a=Va.analyzeSplitToContent((Ve=l==null?void 0:l.split("="))==null?void 0:Ve[1],"/"))==null?void 0:_a.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)),o=o==null?void 0:o.map(oe=>({label:oe==null?void 0:oe.replaceAll("'",""),value:oe==null?void 0:oe.replaceAll("'","")}));else if(($e=(ze=(Fe=l==null?void 0:l.replace("=",za))==null?void 0:Fe.split(za))==null?void 0:ze[1])!=null&&$e.includes("||")){r=(Ze=l==null?void 0:l.split("="))==null?void 0:Ze[0],w=(Xa=l==null?void 0:l.split("="))==null?void 0:Xa[0];let oe=[];(X=(P=(F=(qa=l==null?void 0:l.replace("=",za))==null?void 0:qa.split(za))==null?void 0:F[1])==null?void 0:P.split("||"))==null||X.forEach(_e=>{var Pe,ie,Ka;s.push((ie=(Pe=_e==null?void 0:_e.split("@Filter"))==null?void 0:Pe[0])==null?void 0:ie.split("/")),oe.push((Ka=_e==null?void 0:_e.split("@Filter"))==null?void 0:Ka[1])}),c=oe==null?void 0:oe.map(_e=>(_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1),_e))}else{let oe=l==null?void 0:l.split("=="),_e=(te=oe==null?void 0:oe.filter(Pe=>(Pe==null?void 0:Pe[0])==="$"))==null?void 0:te[0];if(_e&&!(_e!=null&&_e.includes("&"))){let Pe=(ce=_e==null?void 0:_e.replace("*",za))==null?void 0:ce.split(za),ie=(Pe==null?void 0:Pe[0])===""?n==null?void 0:n.value:Pe==null?void 0:Pe[0];ie=(ra=(xa=ie==null?void 0:ie.replaceAll("{",""))==null?void 0:xa.replaceAll("}",""))==null?void 0:ra.replaceAll(oo,""),(ie==null?void 0:ie[0])==="$"&&(ie=(Le=ie==null?void 0:ie.slice(1,ie==null?void 0:ie.length))==null?void 0:Le.replaceAll(":","/")),m=ie==null?void 0:ie.split("/");let Ka=(Ea=(Ce=Pe==null?void 0:Pe[1])==null?void 0:Ce.replace("{",za))==null?void 0:Ea.split(za),vl=Ka==null?void 0:Ka[0];(vl==null?void 0:vl[(vl==null?void 0:vl.length)-1])===":"&&(vl=vl==null?void 0:vl.slice(0,(vl==null?void 0:vl.length)-1)),p=vl==null?void 0:vl.split(":"),v=(ve=(Fa=(Pa=(ma=Ka==null?void 0:Ka[1])==null?void 0:ma.replace("}",za))==null?void 0:Pa.split(za))==null?void 0:Fa[0])==null?void 0:ve.split(":");let Wl=(Xe=(Ae=(Je=Ka==null?void 0:Ka[(Ka==null?void 0:Ka.length)-1])==null?void 0:Je.replace("}",za))==null?void 0:Ae.split(za))==null?void 0:Xe[1];Wl&&Wl!==""&&(B=Co(Wl))}if(oe!=null&&oe.some(Pe=>(Pe==null?void 0:Pe[0])==="&")){let Pe=(ya=oe==null?void 0:oe.filter(vl=>(vl==null?void 0:vl[0])==="&"))==null?void 0:ya[0];(Pe==null?void 0:Pe[0])==="&"&&(Pe=Pe==null?void 0:Pe.slice(1,Pe==null?void 0:Pe.length)),R=(Te=(pa=Pe==null?void 0:Pe.replace("(",za))==null?void 0:pa.split(za))==null?void 0:Te[0];let ie=(ga=(Ia=Pe==null?void 0:Pe.replace(")",za))==null?void 0:Ia.split(za))==null?void 0:ga[0];ie=(wa=(Ha=ie==null?void 0:ie.replace("(",za))==null?void 0:Ha.split(za))==null?void 0:wa[1],(ie==null?void 0:ie[0])==="{"&&(ie=ie==null?void 0:ie.slice(1,ie==null?void 0:ie.length)),(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)),E=ie==null?void 0:ie.split(",");let Ka=(We=(ta=Pe==null?void 0:Pe.replace(")",za))==null?void 0:ta.split(za))==null?void 0:We[1];Ka&&Ka!==""&&(q=Co(Ka))}else if(!_e){let Pe=oe==null?void 0:oe[(oe==null?void 0:oe.length)-1];Pe=Pe==null?void 0:Pe.slice(1,(Pe==null?void 0:Pe.length)-1),Pe=Va.analyzeSplitToContent(Pe,","),Pe=Pe==null?void 0:Pe.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)),Pe=Pe==null?void 0:Pe.map(ie=>{var Ka,vl,Wl,Wa;if(ie=ie==null?void 0:ie.replaceAll("$",""),ie!=null&&ie.includes("{")){let fa="";ie=ie==null?void 0:ie.replaceAll("{","");let va=ie==null?void 0:ie.split("}");fa=((vl=(Ka=va==null?void 0:va[0])==null?void 0:Ka.split(":"))==null?void 0:vl[0])+":"+(va==null?void 0:va[1]),ie=fa,ie=ie+":"}if(ie!=null&&ie.includes(oo)){let fa="",va=ie==null?void 0:ie.split(oo);fa=((Wa=(Wl=va==null?void 0:va[0])==null?void 0:Wl.split(":"))==null?void 0:Wa[0])+":"+(va==null?void 0:va[1]),ie=fa,ie=ie+":"}return ie=ie==null?void 0:ie.replaceAll(":","/"),ie}),y=Pe}}u="Select"}else r=l,w=l;return r!=null&&r.includes("@Pam")&&(r=(Ca=(Qe=l==null?void 0:l.replace("@Pam",za))==null?void 0:Qe.split(za))==null?void 0:Ca[0],w=r),{label:r,prop:w,options:o,allContents:s,filterContents:c,menus:m,groups:p,words:v,align:"center",formType:u,filter:B,functionName:R,functionRelatedWords:E,calculatorFilter:q,relatedPages:y}},Ci=(l,n)=>{var o,s,c,m,p,v,y,u,w,B,R,E,q,O,M,Z,C,_,S,g,b,j,V,G,fe,Ne,Se,Q,ge;let r=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((m=(c=(s=(o=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:o.replace(":",za))==null?void 0:s.split(za))==null?void 0:c[0])!=null&&m.includes(","))){let J=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),ue=(p=J==null?void 0:J.replace(":",za))==null?void 0:p.split(za);if(((v=Va.analyzeSplitToContent(ue==null?void 0:ue[1],"="))==null?void 0:v.length)===1){let Ue=ue==null?void 0:ue[0],Ba=[];(w=Va.analyzeSplitToContent((u=ue==null?void 0:ue[1])==null?void 0:u.slice(1,((y=ue==null?void 0:ue[1])==null?void 0:y.length)-1),","))==null||w.forEach(ne=>{var D,re;((D=Va.analyzeSplitToContent(ne,"="))==null?void 0:D.length)>1?((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])===","&&(ne=ne==null?void 0:ne.slice(0,(ne==null?void 0:ne.length)-1)),Ba=[...Ba,...Ci(ne,n)]):((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])===","&&(ne=ne==null?void 0:ne.slice(0,(ne==null?void 0:ne.length)-1)),Ba.push((re=Ci(ne,n))==null?void 0:re[0]))}),r==null||r.push({label:Ue,prop:Ue,children:Ba,align:"center"})}else{let Ue=[];if(((B=Va.analyzeSplitToContent(J,"="))==null?void 0:B.length)>=2){let ne=(R=Va.analyzeSplitToContent(J,"="))==null?void 0:R[1],D=(E=Va.analyzeSplitToContent(ne,"/"))==null?void 0:E.map(re=>((re==null?void 0:re[(re==null?void 0:re.length)-1])==="/"&&(re=re==null?void 0:re.slice(0,(re==null?void 0:re.length)-1)),re));Ue=D==null?void 0:D.map(re=>(re=Do(re),re))}let Ba=(_=(C=(Z=(M=(O=(q=J==null?void 0:J.replace("{",za))==null?void 0:q.split(za))==null?void 0:O[1])==null?void 0:M.replace("}",za))==null?void 0:Z.split(za))==null?void 0:C[0])==null?void 0:_.split(",");Ba==null||Ba.forEach((ne,D)=>{(Ue==null?void 0:Ue.length)>0&&D===0?r==null||r.push({label:ne,prop:ne,align:"center",formType:"Select",relatedContents:Ue==null?void 0:Ue.map(re=>{let ke={};return Ba==null||Ba.forEach((de,De)=>{ke[de]=re==null?void 0:re[De]}),ke}),options:Ue==null?void 0:Ue.map(re=>({label:re==null?void 0:re[0],value:re==null?void 0:re[0]})),mainKey:!0}):r==null||r.push({label:ne,prop:ne,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((S=Va.analyzeSplitToContent(l,"="))==null?void 0:S.length)===2&&((b=(g=Va.analyzeSplitToContent(l,"="))==null?void 0:g[1])==null?void 0:b[0])==="["){let J=[];if(((j=Va.analyzeSplitToContent(l,"="))==null?void 0:j.length)>=2){let Ue=(V=Va.analyzeSplitToContent(l,"="))==null?void 0:V[1],Ba=(G=Va.analyzeSplitToContent(Ue,"/"))==null?void 0:G.map(ne=>((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])==="/"&&(ne=ne==null?void 0:ne.slice(0,(ne==null?void 0:ne.length)-1)),ne));J=Ba==null?void 0:Ba.map(ne=>(ne=Do(ne),ne))}let ue=(Ne=(fe=l==null?void 0:l.replace("}",za))==null?void 0:fe.split(za))==null?void 0:Ne[0];ue=(Se=ue==null?void 0:ue.slice(1,ue==null?void 0:ue.length))==null?void 0:Se.split(","),ue==null||ue.forEach((Ue,Ba)=>{(J==null?void 0:J.length)>0&&Ba===0?r==null||r.push({label:Ue,prop:Ue,align:"center",formType:"Select",relatedContents:J==null?void 0:J.map(ne=>{let D={};return ue==null||ue.forEach((re,ke)=>{D[re]=ne==null?void 0:ne[ke]}),D}),options:J==null?void 0:J.map(ne=>({label:ne==null?void 0:ne[0],value:ne==null?void 0:ne[0]})),mainKey:!0}):r==null||r.push({label:Ue,prop:Ue,align:"center"})})}else(Q=Va.analyzeSplitToContent(l,","))==null||Q.forEach(J=>{var ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha;if((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),(J==null?void 0:J[0])==="{"){let wa=Va.analyzeSplitToContent(J,"="),ta=wa==null?void 0:wa[(wa==null?void 0:wa.length)-1],We=[],Qe=[],Ca=[],oe=[],_e=[],Pe=(ue=ta==null?void 0:ta.replace("*",za))==null?void 0:ue.split(za),ie=(Pe==null?void 0:Pe[0])===""?n==null?void 0:n.value:Pe==null?void 0:Pe[0];if((ie==null?void 0:ie[0])==="$"&&((ne=(Ba=(Ue=ie==null?void 0:ie.replace("@",za))==null?void 0:Ue.split(za))==null?void 0:Ba[0])!=null&&ne.includes("{"))&&(ie=(D=ie==null?void 0:ie.replace("{",""))==null?void 0:D.replace("}","")),ie=ie==null?void 0:ie.replaceAll(oo,""),(ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===":"&&(ie=ie!=null&&ie.includes("(@")?((re=ie==null?void 0:ie.split("(@"))==null?void 0:re[0])+":":((ke=ie==null?void 0:ie.split("@"))==null?void 0:ke[0])+":"),(ie==null?void 0:ie[0])==="$"&&(ie=(de=ie==null?void 0:ie.slice(1,ie==null?void 0:ie.length))==null?void 0:de.replaceAll(":","/")),ie!=null&&ie.includes("$")){let va=(De=ie==null?void 0:ie.split("$"))==null?void 0:De[0];va=(ha=va==null?void 0:va.split("/"))==null?void 0:ha[0],ie=va+"/"+((Sa=ie==null?void 0:ie.split("$"))==null?void 0:Sa[1])+"/"}(ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])==="/"&&(ie==null?void 0:ie[(ie==null?void 0:ie.length)-2])==="/"&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),We=ie==null?void 0:ie.split("/");let Ka=(le=(Ja=Pe==null?void 0:Pe[1])==null?void 0:Ja.replace("{",za))==null?void 0:le.split(za);if((_a=(Ve=(la=Pe==null?void 0:Pe[1])==null?void 0:la.split("(@"))==null?void 0:Ve[0])!=null&&_a.includes("&&")||($e=(ze=(Fe=Pe==null?void 0:Pe[1])==null?void 0:Fe.split("@"))==null?void 0:ze[0])!=null&&$e.includes("&&")){let va=(Ze=Pe==null?void 0:Pe[1])!=null&&Ze.includes("(@")?(F=(qa=(Xa=Pe==null?void 0:Pe[1])==null?void 0:Xa.split("(@"))==null?void 0:qa[0])==null?void 0:F.split("&&"):(te=(X=(P=Pe==null?void 0:Pe[1])==null?void 0:P.split("@"))==null?void 0:X[0])==null?void 0:te.split("&&");oe=va==null?void 0:va.map(Ye=>{var Za,Ee;return(Ye==null?void 0:Ye[0])==="*"&&(Ye=Ye==null?void 0:Ye.slice(1,Ye==null?void 0:Ye.length)),Ye=(Ee=(Za=Ye==null?void 0:Ye.replace("{",za))==null?void 0:Za.split(za))==null?void 0:Ee[0],(Ye==null?void 0:Ye[(Ye==null?void 0:Ye.length)-1])===":"&&(Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1)),Ye=Ye==null?void 0:Ye.split(":"),Ye});let ba=[];va==null||va.forEach((Ye,Za)=>{var Ee,Ke;(Ye==null?void 0:Ye[0])==="*"&&(Ye=Ye==null?void 0:Ye.slice(1,Ye==null?void 0:Ye.length)),Ye=(Ke=(Ee=Ye==null?void 0:Ye.replace("{",za))==null?void 0:Ee.split(za))==null?void 0:Ke[1],(Ye==null?void 0:Ye[(Ye==null?void 0:Ye.length)-1])==="}"&&(Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1)),Ye=Ye==null?void 0:Ye.split(","),ba.push(Za===0?(Ye==null?void 0:Ye.length)-1:Ye==null?void 0:Ye.length),_e=[..._e,...Ye]}),ba=(ce=Va.prefixSum(ba))==null?void 0:ce.map(Ye=>Ye==null?void 0:Ye.total),oe=oe==null?void 0:oe.map((Ye,Za)=>({number:ba==null?void 0:ba[Za],contents:Ye}))}let vl=Ka==null?void 0:Ka[0];(vl==null?void 0:vl[(vl==null?void 0:vl.length)-1])===":"&&(vl=vl==null?void 0:vl.slice(0,(vl==null?void 0:vl.length)-1)),Qe=vl==null?void 0:vl.split(":"),Ca=(Ce=(Le=(ra=(xa=Ka==null?void 0:Ka[1])==null?void 0:xa.replace("}",za))==null?void 0:ra.split(za))==null?void 0:Le[0])==null?void 0:Ce.split(",");let Wl=(ma=wa==null?void 0:wa[0])==null?void 0:ma.slice(1,((Ea=wa==null?void 0:wa[0])==null?void 0:Ea.length)-2),Wa="",fa="";if((Pa=wa==null?void 0:wa[(wa==null?void 0:wa.length)-1])!=null&&Pa.includes("(@")?(fa=(Je=(ve=(Fa=wa==null?void 0:wa[(wa==null?void 0:wa.length)-1])==null?void 0:Fa.replace("(@",za))==null?void 0:ve.split(za))==null?void 0:Je[1],fa="(@"+fa):(Ae=wa==null?void 0:wa[(wa==null?void 0:wa.length)-1])!=null&&Ae.includes("@")&&(fa=(pa=(ya=(Xe=wa==null?void 0:wa[(wa==null?void 0:wa.length)-1])==null?void 0:Xe.replace("@",za))==null?void 0:ya.split(za))==null?void 0:pa[1],fa="@"+fa),((Te=Va.analyzeSplitToContent(fa,"&"))==null?void 0:Te.length)>1){let va=(ga=(Ia=Va.analyzeSplitToContent(fa,"}"))==null?void 0:Ia.map(ba=>{var Ye;return ba!=null&&ba.includes("@")||(ba=""),ba!=null&&ba.includes("@")&&(ba=(Ye=Va.analyzeSplitToContent(ba,":"))==null?void 0:Ye[0],(ba==null?void 0:ba[(ba==null?void 0:ba.length)-1])===":"&&(ba=ba==null?void 0:ba.slice(0,(ba==null?void 0:ba.length)-1)),(ba==null?void 0:ba[0])==="("&&(ba=ba==null?void 0:ba.slice(1,(ba==null?void 0:ba.length)-1))),ba}))==null?void 0:ga.filter(ba=>ba!=="");fa=(fa==null?void 0:fa.length)===1?va:"("+(va==null?void 0:va.join(","))+")"}fa&&fa!==""&&(Wa=Co(fa)),(Ha=Wl==null?void 0:Wl.split(","))==null||Ha.forEach((va,ba)=>{var Ye,Za,Ee;r.push({label:va,prop:va,align:"center",menus:We,groups:(oe==null?void 0:oe.length)===0?Qe:(Ye=oe==null?void 0:oe.find(Ke=>(Ke==null?void 0:Ke.number)>=ba))==null?void 0:Ye.contents,words:(_e==null?void 0:_e.length)===0?(Za=Ca==null?void 0:Ca[ba])==null?void 0:Za.split(":"):(Ee=_e==null?void 0:_e[ba])==null?void 0:Ee.split(":"),formType:(We==null?void 0:We.length)>0?"Select":"Input",mainKey:ba===0,filter:Wa,isMainPath:(oe==null?void 0:oe.findIndex(Ke=>(Ke==null?void 0:Ke.number)>=ba))===0})})}else r.push({label:J,prop:J,align:"center"})});else{let J=(ge=Va.analyzeSplitToContent(l,","))==null?void 0:ge.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue));J==null||J.forEach(ue=>{r.push(dt(ue,n))})}return r},Id=(l,n)=>{var m,p,v,y,u;let r=l;if(!l)return;let o="";((m=Va.analyzeSplitToContent(l,"}"))==null?void 0:m.length)>1&&(r=(p=Va.analyzeSplitToContent(l,"}"))==null?void 0:p[0],o=(v=Va.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let s=[],c=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=Va.analyzeSplitToContent(r,","))==null||y.forEach(w=>{var B;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(B=Ci(w,n))==null||B.forEach(R=>{s.push(R)}):s.push(dt(w,n))}),s!=null&&s.some(w=>{var B;return(B=w==null?void 0:w.prop)==null?void 0:B.includes("@")})&&(s=s==null?void 0:s.filter(w=>{var B;return!((B=w==null?void 0:w.prop)!=null&&B.includes("@"))})),o!==""&&((o==null?void 0:o[0])=="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),(u=Va.analyzeSplitToContent(o,","))==null||u.forEach(w=>{var B;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(B=Ci(w,n))==null||B.forEach(R=>{c.push(R)}):c.push(dt(w,n))})),{columns:s,secondColumns:c}},Si=l=>{var n,r,o,s,c;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let m=(r=(n=l==null?void 0:l.replace("(",za))==null?void 0:n.split(za))==null?void 0:r[1],p=(s=(o=l==null?void 0:l.replace("(",za))==null?void 0:o.split(za))==null?void 0:s[0];return m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1),m=(c=Va.analyzeSplitToContent(m,","))==null?void 0:c.map(v=>((v==null?void 0:v[(v==null?void 0:v.length)-1])===","&&(v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1)),p+v)),m=m==null?void 0:m.join(","),l!=null&&l.includes("@Quote")&&(m!=null&&m.includes("@QuoteType")||(m=m===""?m+"@QuoteType=Manual":m+",@QuoteType=Manual"),m!=null&&m.includes("@QuoteSonSync")||(m=m===""?m+"@QuoteSonSync=No":m+",@QuoteSonSync=No"),m!=null&&m.includes("@QuoteFatherSync")||(m=m===""?m+"@QuoteFatherSync=Yes":m+",@QuoteFatherSync=Yes")),m}},ls=l=>{let n=l==null?void 0:l.map(r=>{var o,s;return{menus:r==null?void 0:r.menus,content:((o=r==null?void 0:r.menus)==null?void 0:o.join("/"))+za+((s=r==null?void 0:r.groups)==null?void 0:s.join("/"))}});return n=n==null?void 0:n.filter(r=>{var o;return(r==null?void 0:r.menus)&&((o=r==null?void 0:r.menus)==null?void 0:o.length)>0}),n=n==null?void 0:n.map(r=>r==null?void 0:r.content),n=[...new Set(n)],n=n==null?void 0:n.map(r=>{var o,s;return{menus:(o=r==null?void 0:r.split(za))==null?void 0:o[0],groups:((s=r==null?void 0:r.split(za))==null?void 0:s[1])??[]}}),n},Od=(l,n,r="")=>{var M,Z,C,_,S,g,b,j,V,G,fe,Ne,Se,Q,ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha,wa,ta,We,Qe,Ca;let o=[];if(((M=l==null?void 0:l[0])==null?void 0:M[0])!=="*"&&((Z=l==null?void 0:l[0])==null?void 0:Z[0])!=="$")return;let s=Va.analyzeSplitToContent(l==null?void 0:l[0],":"),c=s==null?void 0:s.filter(oe=>!((oe==null?void 0:oe[0])!=="{"&&(oe==null?void 0:oe[0])!=="["));o=(C=s==null?void 0:s.filter(oe=>(oe==null?void 0:oe[0])!=="{"&&(oe==null?void 0:oe[0])!=="["))==null?void 0:C.join("");let m="",p="";if((o==null?void 0:o[(o==null?void 0:o.length)-1])===":"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o!=null&&o.includes("(@")&&(o==null?void 0:o[0])==="*"&&(m="(@"+((_=o==null?void 0:o.split("(@"))==null?void 0:_[1]),o=(S=o==null?void 0:o.split("(@"))==null?void 0:S[0]),o!=null&&o.includes("@")&&(o==null?void 0:o[0])==="*"&&(m="@"+((b=(g=o==null?void 0:o.replace("@",za))==null?void 0:g.split(za))==null?void 0:b[1]),o=(V=(j=o==null?void 0:o.replace("@",za))==null?void 0:j.split(za))==null?void 0:V[0]),(o==null?void 0:o[0])==="*"?(o=o==null?void 0:o.slice(1,o==null?void 0:o.length),o=o==null?void 0:o.split(":")):(p=L.cloneDeep(o)+":",o=[]),p=p+((c==null?void 0:c[0])??""),(p==null?void 0:p[(p==null?void 0:p.length)-1])===":"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),m!==""&&p!=="")if((p==null?void 0:p[(p==null?void 0:p.length)-1])===")")if(p!=null&&p.includes("(@")){let oe=(G=p==null?void 0:p.split("(@"))==null?void 0:G[0],_e=(fe=p==null?void 0:p.split("(@"))==null?void 0:fe[1];_e="(@"+(_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1))+m,p=oe+_e}else{let oe=(Se=(Ne=p==null?void 0:p.replace("@",za))==null?void 0:Ne.split(za))==null?void 0:Se[0],_e=(ge=(Q=p==null?void 0:p.replace("@",za))==null?void 0:Q.split(za))==null?void 0:ge[1];_e="(@"+_e+m,p=oe+_e}else p=p+m;let v=c==null?void 0:c[1];(p==null?void 0:p[0])==="["&&(v=L.cloneDeep(p)+(v??""),p="");let y=v?Do(v):[];!(y!=null&&y.every(oe=>Array.isArray(oe)))&&(y==null?void 0:y.length)>0&&(y=[y]);let u=(J=Va.analyzeSplitToContent(p,"@"))!=null&&J[1]?"@"+((ue=Va.analyzeSplitToContent(p,"@"))==null?void 0:ue[1]):"";if(p=(Ue=Va.analyzeSplitToContent(p,"@"))==null?void 0:Ue[0],p!=null&&p.includes("(@")&&(((Ba=Va.analyzeSplitToContent(p,"}"))==null?void 0:Ba.length)===1&&((ke=(ne=Va.analyzeSplitToContent(p,"}"))==null?void 0:ne[0])==null?void 0:ke[((re=(D=Va.analyzeSplitToContent(p,"}"))==null?void 0:D[0])==null?void 0:re.length)-1])===")"||(de=Va.analyzeSplitToContent(p,"}"))!=null&&de[1]&&((De=Va.analyzeSplitToContent(p,"}"))==null?void 0:De[1])!=="@")&&(u="(@"+((ha=p==null?void 0:p.split("(@"))==null?void 0:ha[1]),p=(Sa=p==null?void 0:p.split("(@"))==null?void 0:Sa[0]),(p==null?void 0:p[0])==="$"&&(u=L.cloneDeep(p)+(u??""),p=""),r!=="")if(m!==""){let oe=(Ja=Va.analyzeSplitToContent(r,":"))==null?void 0:Ja.map(_e=>{var Pe,ie;return(_e==null?void 0:_e[0])==="{"&&(_e=(ie=(Pe=_e==null?void 0:_e.replace("}",za))==null?void 0:Pe.split(za))==null?void 0:ie[1]),_e});r=(le=oe==null?void 0:oe.join(""))==null?void 0:le.replace(":(","("),u=(r==null?void 0:r[(r==null?void 0:r.length)-1])!==")"?r+m:(r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1))+","+m}else{let oe="";if(r!=null&&r.includes("(@")){let _e=(ze=(Fe=(_a=(Ve=(la=r==null?void 0:r.replace("(@",za))==null?void 0:la.split(za))==null?void 0:Ve[0])==null?void 0:_a.replace("{",za))==null?void 0:Fe.split(za))==null?void 0:ze[0];oe=((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===":"?_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1):_e)+"(@"+((Ze=($e=r==null?void 0:r.replace("(@",za))==null?void 0:$e.split(za))==null?void 0:Ze[1])}else if(r!=null&&r.includes("@")){let _e=(qa=(Xa=r==null?void 0:r.replace("@",za))==null?void 0:Xa.split(za))==null?void 0:qa[0];(_e==null?void 0:_e[0])==="$"?_e=(F=_e==null?void 0:_e.replaceAll("{",""))==null?void 0:F.replaceAll("}",""):_e=(X=(P=_e==null?void 0:_e.replace("{",za))==null?void 0:P.split(za))==null?void 0:X[0],oe=((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===":"?_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1):_e)+"@"+((ce=(te=r==null?void 0:r.replace("@",za))==null?void 0:te.split(za))==null?void 0:ce[1])}u=oe===""?r:oe}if(u!==""){(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),(u==null?void 0:u[(u==null?void 0:u.length)-1])===":"&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1));let oe="";if(u!=null&&u.includes("(@")){oe=(ra=(xa=u==null?void 0:u.replace("(@",za))==null?void 0:xa.split(za))==null?void 0:ra[0];let _e=(Ce=(Le=u==null?void 0:u.replace("(@",za))==null?void 0:Le.split(za))==null?void 0:Ce[1];_e="@"+(_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1));let Pe=(Ea=Va.analyzeSplitToContent(_e,","))==null?void 0:Ea.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==null?void 0:ie[(ie==null?void 0:ie.length)-1])!==")"&&(ie=ie+")"),Si(ie)));u=oe+"("+(Pe==null?void 0:Pe.join(","))+")"}else{oe=(Pa=(ma=u==null?void 0:u.replace("@",za))==null?void 0:ma.split(za))==null?void 0:Pa[0];let _e=(ve=(Fa=u==null?void 0:u.replace("@",za))==null?void 0:Fa.split(za))==null?void 0:ve[1];if(_e){_e="@"+_e;let Pe=(Je=Va.analyzeSplitToContent(_e,","))==null?void 0:Je.map(ie=>((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])!==")"&&(ie=ie+")"),Si(ie)));u=oe+"("+(Pe==null?void 0:Pe.join(","))+")"}else u=oe}}(p==null?void 0:p[(p==null?void 0:p.length)-1])==="@"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1));let w=Id(p,n),B=p===""?[]:(w==null?void 0:w.columns)??[],R=ca.getColumnChild(B),E=R;E=E==null?void 0:E.filter(oe=>{var _e,Pe;return(oe==null?void 0:oe.filter)&&(oe==null?void 0:oe.filter)!==""&&(((_e=oe==null?void 0:oe.filter)==null?void 0:_e.includes("@QuoteSonSync"))||((Pe=oe==null?void 0:oe.filter)==null?void 0:Pe.includes("@QuoteFatherSync")))});let q=E==null?void 0:E.filter(oe=>{var _e,Pe,ie;return((_e=oe==null?void 0:oe.filter)==null?void 0:_e.includes("@QuoteSonSync"))&&((ie=(Pe=oe==null?void 0:oe.filter)==null?void 0:Pe.split(","))==null?void 0:ie.find(Ka=>(Ka==null?void 0:Ka.includes("@QuoteSonSync"))&&(Ka==null?void 0:Ka.includes("Yes"))))}),O=E==null?void 0:E.filter(oe=>{var _e,Pe,ie;return((_e=oe==null?void 0:oe.filter)==null?void 0:_e.includes("@QuoteFatherSync"))&&((ie=(Pe=oe==null?void 0:oe.filter)==null?void 0:Pe.split(","))==null?void 0:ie.find(Ka=>(Ka==null?void 0:Ka.includes("@QuoteFatherSync"))&&(Ka==null?void 0:Ka.includes("Yes"))))});if(R=R==null?void 0:R.map(oe=>{var _e,Pe;return{menus:oe==null?void 0:oe.menus,content:((_e=oe==null?void 0:oe.menus)==null?void 0:_e.join("/"))+za+((Pe=oe==null?void 0:oe.groups)==null?void 0:Pe.join("/"))}}),O=ls(O),q=ls(q),R=R==null?void 0:R.filter(oe=>{var _e;return(oe==null?void 0:oe.menus)&&((_e=oe==null?void 0:oe.menus)==null?void 0:_e.length)>0}),R=R==null?void 0:R.map(oe=>oe==null?void 0:oe.content),R=[...new Set(R)],R=R==null?void 0:R.map(oe=>{var _e,Pe;return{menus:(_e=oe==null?void 0:oe.split(za))==null?void 0:_e[0],groups:((Pe=oe==null?void 0:oe.split(za))==null?void 0:Pe[1])??[]}}),B!=null&&B.some(oe=>{var _e;return Array.isArray(oe==null?void 0:oe.children)&&((_e=oe==null?void 0:oe.children)==null?void 0:_e.length)>0})&&(B=[B]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((Ae=y==null?void 0:y[0])!=null&&Ae.every(oe=>Array.isArray(oe)))?y=y==null?void 0:y.map((oe,_e)=>(oe=oe.map((Pe,ie)=>(Pe.unshift("{}"),Pe.unshift((ie+1).toString()),Pe)),oe)):y=y==null?void 0:y.map((oe,_e)=>(oe.unshift("{}"),oe.unshift((_e+1).toString()),oe))),w!=null&&w.secondColumns&&((Xe=w==null?void 0:w.secondColumns)==null?void 0:Xe.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((oe,_e)=>{var Pe,ie;return Array.isArray(oe==null?void 0:oe[0])?oe=oe==null?void 0:oe.map((Ka,vl)=>{var Wl,Wa;return Ka.unshift((Wa=(Wl=w==null?void 0:w.secondColumns)==null?void 0:Wl[vl])==null?void 0:Wa.prop),Ka}):oe.unshift((ie=(Pe=w==null?void 0:w.secondColumns)==null?void 0:Pe[_e])==null?void 0:ie.prop),oe}):y=(ya=w==null?void 0:w.secondColumns)==null?void 0:ya.map((oe,_e)=>(oe=[oe==null?void 0:oe.label],oe.push(_e),oe)),B.unshift({label:"",prop:"disabled",sortable:!1})),(B==null?void 0:B.length)>0){let oe=L.cloneDeep(B);Array.isArray(oe==null?void 0:oe[0])&&(oe=oe==null?void 0:oe[0]);let _e=ca.getColumnChild(oe);_e=_e==null?void 0:_e.map(Pe=>Pe==null?void 0:Pe.filter),_e=_e==null?void 0:_e.filter(Pe=>Pe&&Pe!==""),_e=[...new Set(_e)],(_e==null?void 0:_e.length)>0&&(u=za+(u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))+(u!=null&&u.slice(1,(u==null?void 0:u.length)-1)?",":"")+((pa=L.cloneDeep(_e))==null?void 0:pa.join(";")))}if((u==null?void 0:u[0])!=="("&&(u!=null&&u.includes("(@"))){let oe=(Ia=(Te=u==null?void 0:u.replace("(",za))==null?void 0:Te.split(za))==null?void 0:Ia[0],_e=[{menus:(Ha=(ga=oe==null?void 0:oe.split("*"))==null?void 0:ga[0])==null?void 0:Ha.replaceAll(":","/"),groups:(wa=oe==null?void 0:oe.split("*"))==null?void 0:wa[1]}],Pe=(We=(ta=u==null?void 0:u.replace("(",za))==null?void 0:ta.split(za))==null?void 0:We[1];(Pe==null?void 0:Pe[(Pe==null?void 0:Pe.length)-1])===")"&&(Pe=Pe==null?void 0:Pe.slice(0,(Pe==null?void 0:Pe.length)-1)),Pe=Va.analyzeSplitToContent(Pe,","),(Qe=Pe==null?void 0:Pe.find(ie=>ie==null?void 0:ie.includes("@QuoteFatherSync")))!=null&&Qe.includes("Yes")&&(O=[...O,..._e]),(Ca=Pe==null?void 0:Pe.find(ie=>ie==null?void 0:ie.includes("@QuoteSonSync")))!=null&&Ca.includes("Yes")&&(q=[...q,..._e])}return{groupName:o,tableColumns:B,tableFilter:u,tableContents:y,columns:(w==null?void 0:w.secondColumns)??[],relatedQuotes:R,fatherSyncContents:O,sonSyncContents:q}},Ys=(l,n)=>(l=l==null?void 0:l.map((r,o)=>{var s,c,m,p;if(Array.isArray(r))r=r==null?void 0:r.map(v=>{var y,u,w,B;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=Ys(v.children,n):((u=v==null?void 0:v.menus)==null?void 0:u.length)>0&&!((w=r==null?void 0:r[0])!=null&&w.isMainPath)&&(v.menus=(B=v.menus)==null?void 0:B.map((R,E)=>{var q,O;return((q=v.menus)==null?void 0:q.length)-1===E&&R===""&&(n==null?void 0:n.parentContent)+"/"!==((O=v.menus)==null?void 0:O.join("/"))&&(R=n==null?void 0:n.value),v}),v.bindMenus=v.menus)),v});else{if(o===0&&((s=r.menus)==null?void 0:s.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((c=r.menus)==null?void 0:c.length)>0&&!((m=l==null?void 0:l[0])!=null&&m.isMainPath)&&(r.menus=(p=r.menus)==null?void 0:p.map((v,y)=>{var u,w;return((u=r.menus)==null?void 0:u.length)-1===y&&v===""&&(n==null?void 0:n.parentContent)+"/"!==((w=r.menus)==null?void 0:w.join("/"))&&(v=n==null?void 0:n.value),v}),r.bindMenus=r.menus)}return r}),l),Ld=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Ys(r.contents,n)),r)),l),pt=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(o=>(o=pt(o,n),o)):r=r==null?void 0:r.map(o=>{var s,c;return o!=null&&o.children&&((s=o==null?void 0:o.children)==null?void 0:s.length)>0?o.children=pt(o==null?void 0:o.children,n):o!=null&&o.words&&((c=o==null?void 0:o.words)==null?void 0:c.length)>0&&(n!=null&&n.find(m=>{var p,v,y,u;return((u=(p=o==null?void 0:o.prop)==null?void 0:p.split("."))==null?void 0:u[((y=(v=o==null?void 0:o.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===m}))&&(o.mainKey=!0),o}),r};let ur="$R";const Rd=L.useUnit(L.pinia),{selectTitle:fn}=L.storeToRefs(Rd),hn=[{key:"@interfaceMaxRow",value:"onNumSlice",order:1},{key:"@QuoteType",value:"onRandomContents",order:2},{key:"@interfaceType",value:"onInterfaceTypeContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@QuoteMainPam",value:"onMainTagContents",order:3},{key:"@interfaceTopButton",value:"onButtonContents",order:1},{key:"@interfaceColumnButton",value:"onPamButtonContents",order:1},{key:"@interfaceRowButton",value:"onRowButtonContents",order:1},{key:"@interfaceBottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@interfaceRowNum",value:"onRowNum",order:1},{key:"@interfaceFixRow",value:"onFixRow",order:1},{key:"@interfaceReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@interfaceTab",value:"onTabs",order:1},{key:"@interfaceSinChoice",value:"onSinChoice",order:1},{key:"@interfaceTextSize",value:"onTextSize",order:1},{key:"@interfaceTextRGBA",value:"onTextRGBA",order:1},{key:"@interfacePosition",value:"onPosition",order:4},{key:"@interfaceSize",value:"onSize",order:4},{key:"@interfaceShowType",value:"onShowType",order:1},{key:"@interfaceStepName",value:"onStepName",order:1},{key:"@interfaceStep",value:"onStep",order:1},{key:"@interfaceBackGround",value:"onBackGround",order:1}];var no=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(no||{});const $d=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"backGround",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Vd=l=>{const n=Xs(l==null?void 0:l.filter);return n?Zs(l==null?void 0:l.contents,{position:n}):l==null?void 0:l.contents},Pd=l=>{const n=Xs(l==null?void 0:l.filter);return n?Zs(l==null?void 0:l.contents,{size:n}):l==null?void 0:l.contents},Fd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;const r=Number(l==null?void 0:l.filter);return n.push({key:"textSize",contents:Number.isNaN(r)?l==null?void 0:l.filter:r}),n}return l==null?void 0:l.contents},jd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"textRGBA",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Hd=l=>{var r;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(o=>{var s;return(o==null?void 0:o.key)==="tableContents"&&(o.contents=(s=o.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),o})},Ud=async l=>{var n,r,o,s,c,m,p,v,y,u,w,B,R,E,q,O,M,Z,C,_,S,g,b,j,V,G,fe,Ne,Se,Q;if((l==null?void 0:l.filter)==="Random")return(n=l==null?void 0:l.contents)==null?void 0:n.map(J=>((J==null?void 0:J.key)==="tableContents"&&(J.contents=Va.shuffle(J.contents)),J));if((l==null?void 0:l.filter)==="Auto"){let ge=(o=(r=l==null?void 0:l.contents)==null?void 0:r.find(de=>(de==null?void 0:de.key)==="header"))==null?void 0:o.contents;Array.isArray(ge==null?void 0:ge[0])&&(ge=ge==null?void 0:ge[0]),ge=ca.getColumnChild(ge);let J=ge==null?void 0:ge.filter(de=>(de==null?void 0:de.filter)&&(de==null?void 0:de.filter)!==""),ue=new Map,Ue=[];J==null||J.forEach(de=>{var De,ha;ue.get((De=de==null?void 0:de.menus)==null?void 0:De.join("/"))||(ue.set((ha=de==null?void 0:de.menus)==null?void 0:ha.join("/"),de),Ue.push(de))});let Ba=(c=(s=fn==null?void 0:fn.value)==null?void 0:s.find(de=>(de==null?void 0:de.condition)==="child"))==null?void 0:c.value,ne=Ue==null?void 0:Ue.map(de=>{var De,ha,Sa;return de=(De=de==null?void 0:de.menus)==null?void 0:De.join("/"),(de==null?void 0:de[(de==null?void 0:de.length)-1])==="/"&&((Sa=(ha=fn==null?void 0:fn.value)==null?void 0:ha.find(Ja=>(Ja==null?void 0:Ja.condition)==="child"))==null?void 0:Sa.parentContent)+"/"!==de?de=de+Ba:(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}),D=Ue==null?void 0:Ue.map(de=>de==null?void 0:de.groups),re=ne==null?void 0:ne.map(async de=>{let De=await Wr(de,!1);return{path:de,contents:De}});re=await Promise.all(re);let ke=re==null?void 0:re.map((de,De)=>{var Sa,Ja,le,la,Ve,_a,Fe;let ha=(Sa=de==null?void 0:de.contents)==null?void 0:Sa.filter(ze=>{var $e,Ze;return(ze==null?void 0:ze.name)===((Ze=D==null?void 0:D[De])==null?void 0:Ze[(($e=D==null?void 0:D[De])==null?void 0:$e.length)-1])});return ha=(la=(le=(Ja=ha==null?void 0:ha[0])==null?void 0:Ja.compData)==null?void 0:le.find(ze=>(ze==null?void 0:ze.key)==="tableContents"))==null?void 0:la.contents,(de==null?void 0:de.path)===((_a=(Ve=fn==null?void 0:fn.value)==null?void 0:Ve.find(ze=>(ze==null?void 0:ze.condition)==="child"))==null?void 0:_a.parentContent)&&(ha=((Fe=ha==null?void 0:ha.map(ze=>{for(let $e in ze)if(ze[$e]===Ba)return ze}))==null?void 0:Fe.filter(ze=>ze))??[]),ha??[]});if(ke=ke==null?void 0:ke.map(de=>(de=de==null?void 0:de.map(De=>{var Sa;let ha={};for(let Ja in De)if(J!=null&&J.find(le=>{var la,Ve;return((Ve=(la=le==null?void 0:le.words)==null?void 0:la[0])==null?void 0:Ve.replaceAll("'",""))===Ja})){let le=(Sa=J==null?void 0:J.find(la=>{var Ve,_a;return((_a=(Ve=la==null?void 0:la.words)==null?void 0:Ve[0])==null?void 0:_a.replaceAll("'",""))===Ja}))==null?void 0:Sa.prop;ha[le]=De==null?void 0:De[Ja]}return ha}),de)),ke=Va.cartesianProduct(ke),Array.isArray(ke==null?void 0:ke[0])&&(ke=ke==null?void 0:ke[0]),(ke==null?void 0:ke.length)>0&&((w=(p=(m=J==null?void 0:J[0])==null?void 0:m.menus)==null?void 0:p.join("/"))==null?void 0:w[((u=(y=(v=J==null?void 0:J[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:u.length)-1])==="/")return(B=l==null?void 0:l.contents)==null?void 0:B.map(De=>{var ha;return(De==null?void 0:De.key)==="tableContents"&&(ke==null?void 0:ke.length)>0&&(De.contents=((ha=De.contents)==null?void 0:ha.length)>0?De.contents:ke),De})}if((l==null?void 0:l.filter)==="Manual"){let ge=[],J=[],ue=(E=(R=l==null?void 0:l.contents)==null?void 0:R.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:E.contents;(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===")"?ue=(O=(q=ue==null?void 0:ue.replace("(",ur))==null?void 0:q.split(ur))==null?void 0:O[0]:ue="",ue!==""&&(ge=((Z=(M=ue==null?void 0:ue.split("*"))==null?void 0:M[0])==null?void 0:Z.split(":"))??[],J=((b=(g=(S=(_=(C=ue==null?void 0:ue.split("*"))==null?void 0:C[1])==null?void 0:_.replace("{",ur))==null?void 0:S.split(ur))==null?void 0:g[0])==null?void 0:b.split(":"))??[]);let Ue=(V=(j=l==null?void 0:l.contents)==null?void 0:j.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:V.contents;Ue=(fe=(G=Ue==null?void 0:Ue.replace("(",ur))==null?void 0:G.split(ur))==null?void 0:fe[1],Ue=Ue==null?void 0:Ue.slice(0,(Ue==null?void 0:Ue.length)-1);let Ba=(Ne=l==null?void 0:l.contents)==null?void 0:Ne.map(D=>{var re,ke,de,De,ha,Sa,Ja,le,la;return(D==null?void 0:D.key)==="header"&&((re=D==null?void 0:D.contents)!=null&&re.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(D==null?void 0:D.contents)&&!Array.isArray((ke=D==null?void 0:D.contents)==null?void 0:ke[0])?D.contents=(de=D==null?void 0:D.contents)==null?void 0:de.map((Ve,_a)=>{var Fe,ze,$e;return Ve!=null&&Ve.isMainPath||(_a===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=ge,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?J:Ve.groups,Ve.words=((ze=Ve.words)==null?void 0:ze.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=Ue,(!(Ve!=null&&Ve.menus)||(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(Ve.menus=ge)):(Ve.mainKey=!1,Ve.bindMenus=ge)),Ve}):Array.isArray((De=D==null?void 0:D.contents)==null?void 0:De[0])&&((Ja=(Sa=(ha=D==null?void 0:D.contents)==null?void 0:ha[0])==null?void 0:Sa.filter(()=>(ge==null?void 0:ge.length)>0))==null?void 0:Ja.length)>0&&(D.contents[0]=(la=(le=D==null?void 0:D.contents)==null?void 0:le[0])==null?void 0:la.map((Ve,_a)=>{var Fe,ze,$e;return Ve!=null&&Ve.isMainPath||(_a===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=ge,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?J:Ve.groups,Ve.words=((ze=Ve.words)==null?void 0:ze.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=Ue,(!(Ve!=null&&Ve.menus)||Array.isArray(Ve==null?void 0:Ve.menus)&&(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(ge==null?void 0:ge.length)>0&&(Ve.menus=ge)):(Ve.mainKey=!1,Ve.bindMenus=ge)),Ve}))),D}),ne=(Se=Ba==null?void 0:Ba.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:Se.contents;if(Array.isArray(ne==null?void 0:ne[0])&&(ne=ne==null?void 0:ne[0]),ne=ca.getColumnChild(ne),ne!=null&&ne.some(D=>{var re,ke;return((ke=D==null?void 0:D.menus)==null?void 0:ke[((re=D==null?void 0:D.menus)==null?void 0:re.length)-1])===""})){let D=(Q=fn==null?void 0:fn.value)==null?void 0:Q.find(re=>(re==null?void 0:re.condition)==="child");Ba=Ld(Ba,D)}return Ba}return l==null?void 0:l.contents},qd=async l=>{if((l==null?void 0:l.filter)==="Form"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:1}),n}if((l==null?void 0:l.filter)==="FormBlock"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:2}),n}if((l==null?void 0:l.filter)==="FormText"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:3}),n}return l==null?void 0:l.contents},Wd=l=>{var o,s,c,m;let n=l==null?void 0:l.filter;if(n!=null&&n.includes("*")&&(n="({"+((s=(o=n==null?void 0:n.replace("{",ur))==null?void 0:o.split(ur))==null?void 0:s[1])),n=(c=n==null?void 0:n.replaceAll("{",""))==null?void 0:c.replaceAll("}",""),(n==null?void 0:n[0])!=="("&&(n="("+n+")"),n.slice(1,(n==null?void 0:n.length)-1)==="undefined")return l==null?void 0:l.contents;let r=ca.calculatorAndToOr(n);if((r==null?void 0:r.length)>0){let p=[];return r==null||r.forEach(y=>{let u={};for(let w in y){let B=w;B!=null&&B.includes("[")||(u[B]=y[w])}p.push(u)}),(m=l==null?void 0:l.contents)==null?void 0:m.map(y=>{var w,B,R;let u=(B=(w=l==null?void 0:l.contents)==null?void 0:w.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:B.contents;if(u=(R=ca.getEqualChild(u))==null?void 0:R.filter(E=>(E==null?void 0:E.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let q=ca.tableToForm(y==null?void 0:y.contents,u);p==null||p.forEach(O=>{var M,Z;for(let C in O)!((M=q==null?void 0:q[0])!=null&&M.find(_=>{var S;return(_==null?void 0:_.key)===C||((S=_==null?void 0:_.key)==null?void 0:S.includes(C))}))&&!(q!=null&&q.find(_=>{var S;return(_==null?void 0:_.key)===C||((S=_==null?void 0:_.key)==null?void 0:S.includes(C))}))||(((Z=O[C])==null?void 0:Z[0])!=="!"?q=q==null?void 0:q.filter(_=>{var S,g;return((S=_==null?void 0:_.find(b=>{var j;return(b==null?void 0:b.key)===C||((j=b==null?void 0:b.key)==null?void 0:j.includes(C))}))==null?void 0:S.value)===O[C]||Array.isArray(O==null?void 0:O[C])&&((g=O==null?void 0:O[C])==null?void 0:g.find(b=>{var j;return((j=_==null?void 0:_.find(V=>{var G;return(V==null?void 0:V.key)===C||((G=V==null?void 0:V.key)==null?void 0:G.includes(C))}))==null?void 0:j.value)===b}))}):q=q==null?void 0:q.filter(_=>{var S;return((S=_==null?void 0:_.find(g=>{var b;return(g==null?void 0:g.key)===C||((b=g==null?void 0:g.key)==null?void 0:b.includes(C))}))==null?void 0:S.value)!==O[C]}))}),(q==null?void 0:q.length)===0?y.contents=[]:y.contents=q==null?void 0:q.map(O=>{let M={};return O==null||O.forEach(Z=>{M[Z==null?void 0:Z.key]=Z==null?void 0:Z.value}),M})}return y})}return l==null?void 0:l.contents},Kd=l=>l==null?void 0:l.contents,Gd=l=>l==null?void 0:l.contents,Yd=l=>{var n,r,o,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let c=(o=(r=l==null?void 0:l.filter)==null?void 0:r.slice(1,((n=l==null?void 0:l.filter)==null?void 0:n.length)-1))==null?void 0:o.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(p=>((p==null?void 0:p.key)==="header"&&(p.contents=pt(p.contents,c)),p))}return l==null?void 0:l.contents},Jd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(m=>({label:m,prop:m}))),s}):l==null?void 0:l.contents},Xd=l=>l==null?void 0:l.contents,Zd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(m=>({label:m,prop:m}))),s}):l==null?void 0:l.contents},Qd=l=>{var r;let n=(l==null?void 0:l.filter)??"";if((n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""){let o=l==null?void 0:l.contents,s=(r=n==null?void 0:n.split(","))==null?void 0:r.map(c=>({label:c,prop:c}));return o.push({key:"bottomButton",contents:s}),o}return l==null?void 0:l.contents},ep=l=>{var n,r,o,s;if(((n=l==null?void 0:l.filter)==null?void 0:n[0])!=="["){const c=parseInt(l==null?void 0:l.filter);return!c||Number.isNaN(c)?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(y=>(y.width=c,y))),p})}if(((o=l==null?void 0:l.filter)==null?void 0:o[0])==="["){let c=Do(l==null?void 0:l.filter),m=Array.isArray(c)?c.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return m.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const y=v.contents??[];v.contents=y.map((u,w)=>{const B=w+1;let R=0,E=0;for(let O=0;O<m.length;O++){if(E+=m[O],B<=E){R=O;break}O===m.length-1&&(R=m.length-1)}const q=m[R]||m[m.length-1]||1;return u.width=q,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},ap=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c,m,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((c=s==null?void 0:s.contents)==null?void 0:c[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(m=s.contents)==null?void 0:m.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},lp=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const o=c=>(r!=null&&r.find(m=>m===(c==null?void 0:c.prop))&&(c.required=!0),c!=null&&c.children&&Array.isArray(c.children)&&(c.children=c.children.map(m=>o(m))),c);return(n=l==null?void 0:l.contents)==null?void 0:n.map(c=>{var m,p,v;return(c==null?void 0:c.key)==="header"&&(Array.isArray((m=c==null?void 0:c.contents)==null?void 0:m[0])?c.contents[0]=(v=c.contents[0])==null?void 0:v.map(y=>o(y)):c.contents=(p=c.contents)==null?void 0:p.map(y=>o(y))),c})}return l==null?void 0:l.contents},rp=async l=>{var o,s,c,m,p,v,y,u,w,B,R,E,q,O,M,Z,C;const n=L.useUnit(L.pinia),{chooseTitle:r}=L.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let _=await Wr(((s=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:s.parentContent)??((m=(c=r==null?void 0:r.value)==null?void 0:c[0])==null?void 0:m.relatedContent),!1),S=(v=(p=r==null?void 0:r.value)==null?void 0:p[0])==null?void 0:v.value;(u=(y=_==null?void 0:_[0])==null?void 0:y.compData)!=null&&u.find(V=>(V==null?void 0:V.key)==="header")?_=(w=_==null?void 0:_[0])==null?void 0:w.compData:_=(R=(B=_==null?void 0:_.filter(V=>{var G;return(G=V==null?void 0:V.compData)==null?void 0:G.find(fe=>(fe==null?void 0:fe.key)==="header")}))==null?void 0:B[0])==null?void 0:R.compData;let g=(E=_==null?void 0:_.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:E.contents;Array.isArray(g==null?void 0:g[0])&&(g=g==null?void 0:g[0]),g=((q=g==null?void 0:g.find(V=>V==null?void 0:V.isMainKey))==null?void 0:q.prop)??((O=g==null?void 0:g[0])==null?void 0:O.prop);let b=(Z=(M=_==null?void 0:_.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:Z.find(V=>(V==null?void 0:V[g])===S);return(C=l==null?void 0:l.contents)==null?void 0:C.map(V=>{var G;return(V==null?void 0:V.key)==="formContent"&&(V.contents=(G=V.contents)==null?void 0:G.map(fe=>(fe.value=b==null?void 0:b[fe==null?void 0:fe.prop],fe))),V})}return l==null?void 0:l.contents},np=l=>{var n,r,o,s,c;if((n=l==null?void 0:l.extra)!=null&&n.row){let m=l==null?void 0:l.filter;if(m!=null&&m.includes("*")&&(m="({"+((o=(r=m==null?void 0:m.replace("{",ur))==null?void 0:r.split(ur))==null?void 0:o[1])),m=(s=m==null?void 0:m.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(m==null?void 0:m[0])!=="("&&(m="("+m+")"),m.slice(1,(m==null?void 0:m.length)-1)==="undefined")return l==null?void 0:l.contents;let p=ca.calculatorAndToOr(m),v=p==null?void 0:p[0],y=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let w in v)(v==null?void 0:v[w])===(y==null?void 0:y[w])?u.push(!0):u.push(!1);return u!=null&&u.every(w=>w===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},op=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"tab",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},ip=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"choice",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},tp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"fixType",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},sp=l=>{var n;if(l!=null&&l.filter){let r=l==null?void 0:l.contents,o=l==null?void 0:l.filter;return(o==null?void 0:o[0])==="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=(n=Va.analyzeSplitToContent(o,","))==null?void 0:n.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),s)),r.push({key:"stepName",contents:o}),r}return l==null?void 0:l.contents},cp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"step",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Js={onNumSlice:Hd,onRandomContents:Ud,onConditionContents:Wd,onFatherPaceContents:Kd,onPaceContents:Gd,onMainTagContents:Yd,onButtonContents:Jd,onPamButtonContents:Xd,onRowButtonContents:Zd,onRelated:rp,onRowNum:ep,onFixRow:ap,onReqItem:lp,onBottomButtonContents:Qd,onConditionContent:np,onTabs:op,onSinChoice:ip,onTextSize:Fd,onTextRGBA:jd,onPosition:Vd,onSize:Pd,onShowType:tp,onStepName:sp,onStep:cp,onInterfaceTypeContents:qd,onBackGround:$d},up=async(l,n)=>{var c,m,p,v,y,u,w,B,R,E,q,O,M,Z,C,_,S,g,b;let r="";if(((c=l==null?void 0:l.find(j=>(j==null?void 0:j.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(m=l==null?void 0:l.find(j=>(j==null?void 0:j.key)==="filter"))==null?void 0:m.contents),r===""||!r)return l;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(v=(p=r==null?void 0:r.replace("(",ur))==null?void 0:p.split(ur))==null?void 0:v[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(y=Va.analyzeSplitToContent(r,","))==null?void 0:y.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j!=null&&j.includes("(")||(j=j==null?void 0:j.replaceAll(":","=")),j)),s=l;for(let j in o){let V,G="";(u=o==null?void 0:o[j])!=null&&u.includes("(")?(V=(R=(B=(w=o==null?void 0:o[j])==null?void 0:w.replace("(",ur))==null?void 0:B.split(ur))==null?void 0:R[0],G="("+((O=(q=(E=o==null?void 0:o[j])==null?void 0:E.replace("(",ur))==null?void 0:q.split(ur))==null?void 0:O[1])):(V=(C=(Z=(M=o==null?void 0:o[j])==null?void 0:M.replace("=",ur))==null?void 0:Z.split(ur))==null?void 0:C[0],G=(g=(S=(_=o==null?void 0:o[j])==null?void 0:_.replace("=",ur))==null?void 0:S.split(ur))==null?void 0:g[1]);let fe=(b=hn==null?void 0:hn.find(Ne=>(Ne==null?void 0:Ne.key)===V))==null?void 0:b.value;if(fe){const Ne=Js[fe];s=await Ne({contents:s,filter:G})}}return s},_t=async(l,n)=>{var m,p,v,y,u,w,B,R,E,q,O,M,Z,C,_,S,g,b,j,V;let r="";if(((m=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:m.contents)!==""&&(r=(p=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:p.contents),r===""||!r)return l;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(y=(v=r==null?void 0:r.replace("(",ur))==null?void 0:v.split(ur))==null?void 0:y[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=Va.analyzeSplitToContent(r,","))==null?void 0:u.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])===","&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G!=null&&G.includes("(")||(G=G==null?void 0:G.replaceAll(":","=")),G)),s=l,c=new Map;o==null||o.forEach(G=>{var Ne,Se,Q;let fe=(Ne=G==null?void 0:G.split("="))==null?void 0:Ne[0];if(fe==="@MainPam"&&c.get(fe)){let ge=c.get(fe);ge=ge==null?void 0:ge.slice(0,(ge==null?void 0:ge.length)-1);let J=(Q=(Se=G==null?void 0:G.replace("{",ur))==null?void 0:Se.split(ur))==null?void 0:Q[1];J=ge+","+J,c.set(fe,J)}else c.set(fe,G)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((G,fe)=>{var Ne,Se;return((Ne=hn==null?void 0:hn.find(Q=>fe==null?void 0:fe.includes(Q==null?void 0:Q.key)))==null?void 0:Ne.order)-((Se=hn==null?void 0:hn.find(Q=>G==null?void 0:G.includes(Q==null?void 0:Q.key)))==null?void 0:Se.order)});for(let G in o){let fe,Ne="";(w=o==null?void 0:o[G])!=null&&w.includes("(")&&((B=o==null?void 0:o[G])!=null&&B.includes("@Filter"))?(fe=(q=(E=(R=o==null?void 0:o[G])==null?void 0:R.replace("(",ur))==null?void 0:E.split(ur))==null?void 0:q[0],Ne="("+((Z=(M=(O=o==null?void 0:o[G])==null?void 0:O.replace("(",ur))==null?void 0:M.split(ur))==null?void 0:Z[1])):(fe=(S=(_=(C=o==null?void 0:o[G])==null?void 0:C.replace("=",ur))==null?void 0:_.split(ur))==null?void 0:S[0],Ne=(j=(b=(g=o==null?void 0:o[G])==null?void 0:g.replace("=",ur))==null?void 0:b.split(ur))==null?void 0:j[1]);let Se=(V=hn==null?void 0:hn.find(Q=>(Q==null?void 0:Q.key)===fe))==null?void 0:V.value;if(Se){const Q=Js[Se];s=await Q({contents:s,filter:Ne,extra:n})}}return s},Xs=l=>{if(l==null)return null;const n=String(l).trim();if(!n.startsWith("[")||!n.endsWith("]"))return null;const r=n.slice(1,-1).split(",").map(o=>Number(o.trim()));return r.length<2||r.some(o=>Number.isNaN(o))?null:[r[0],r[1]]},Zs=(l,n)=>{var q,O,M,Z,C;const r=Array.isArray(l)?l:[],o=r.find(_=>(_==null?void 0:_.key)==="formContent"),s=Array.isArray(o==null?void 0:o.contents)?o.contents:[],c=((q=r.find(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"))==null?void 0:q.contents)??{},m=(s==null?void 0:s[0])??{};let p=((O=n==null?void 0:n.position)==null?void 0:O[0])??(c==null?void 0:c._positionStartRow)??(m==null?void 0:m._positionStartRow),v=((M=n==null?void 0:n.position)==null?void 0:M[1])??(c==null?void 0:c._positionRowSpan)??(m==null?void 0:m._positionRowSpan);(!p||Number.isNaN(p)||p<1)&&(p=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let y=((Z=n==null?void 0:n.size)==null?void 0:Z[0])??(c==null?void 0:c._sizeStart)??(m==null?void 0:m._sizeStart),u=((C=n==null?void 0:n.size)==null?void 0:C[1])??(c==null?void 0:c._sizeEnd)??(m==null?void 0:m._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(u===void 0||Number.isNaN(u))&&(u=1),y=Math.max(0,Math.min(1,y)),u=Math.max(0,Math.min(1,u)),u<=y&&(y=0,u=1);const w=u-y,B=Math.max(1,Math.round(1/w));let R=r.map(_=>{if((_==null?void 0:_.key)!=="formContent")return _;const S=Array.isArray(_==null?void 0:_.contents)?_.contents:[];return{..._,contents:S.map(g=>({...g,width:B,_positionStartRow:p,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u}))}});const E={_positionStartRow:p,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u};return R.some(_=>(_==null?void 0:_.key)==="_gridLayoutMeta")?R=R.map(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"?{..._,contents:E}:_):R.push({key:"_gridLayoutMeta",contents:E}),R};let ui="$R";const dp=L.useUnit(L.pinia),{selectTitle:pp}=L.storeToRefs(dp);let fp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],hp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],vp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],mp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const rs=async(l,n,r=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var w,B,R,E,q,O,M,Z,C,_,S,g,b,j,V,G,fe,Ne,Se,Q,ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha,wa,ta,We,Qe,Ca,oe,_e,Pe,ie,Ka,vl,Wl;let m=(E=(R=(B=(w=c==null?void 0:c.contents)==null?void 0:w.find(Wa=>{var fa;return(fa=Wa==null?void 0:Wa.key)==null?void 0:fa.includes("struct")}))==null?void 0:B.value)==null?void 0:R[0])==null?void 0:E.类型,p=Object.values(c==null?void 0:c.name);p=p==null?void 0:p.reverse();let v=(q=c==null?void 0:c.contents)==null?void 0:q.map(Wa=>Wa==null?void 0:Wa.key),y={comp:m,isShow:c==null?void 0:c.is_show,name:p==null?void 0:p[0],id:c==null?void 0:c.object_id,relatedTables:v,menuFilter:(O=c==null?void 0:c.filter)==null?void 0:O.menuFilter,status:c==null?void 0:c.status,fatherSyncContents:(M=c==null?void 0:c.filter)==null?void 0:M.fatherSyncs,relatedQuotes:(Z=c==null?void 0:c.filter)==null?void 0:Z.quotes,sonSyncContents:(C=c==null?void 0:c.filter)==null?void 0:C.sonSyncs,nameContents:(_=L.cloneDeep(p))==null?void 0:_.reverse()};for(let Wa in p)parseInt(Wa)>=1&&(y[`name${parseInt(Wa)-1}`]=p[Wa]);let u=Array.isArray((S=c==null?void 0:c.filter)==null?void 0:S.menuFilter)?(g=c==null?void 0:c.filter)==null?void 0:g.menuFilter:[];if(((b=u==null?void 0:u.filter(Wa=>Wa==null?void 0:Wa.includes("@Filter")))==null?void 0:b.length)>0){let Wa=u==null?void 0:u.filter(Ee=>Ee==null?void 0:Ee.includes("@Filter"));Wa=Wa==null?void 0:Wa[0],Wa=(V=(j=Wa==null?void 0:Wa.replace("(",ui))==null?void 0:j.split(ui))==null?void 0:V[1],Wa=Wa==null?void 0:Wa.slice(0,(Wa==null?void 0:Wa.length)-1),Wa!=null&&Wa.includes("*")&&(Wa=(fe=(G=Wa==null?void 0:Wa.replace("{",ui))==null?void 0:G.split(ui))==null?void 0:fe[1],Wa=Wa==null?void 0:Wa.replace("}","")),Wa=ca.calculatorAndToOr(Wa);let fa=(n==null?void 0:n.originPath)??"";(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));let va=await Wr(fa,!1),ba=(Ne=va==null?void 0:va.filter(Ee=>(Ee==null?void 0:Ee.comp)==="Table"))==null?void 0:Ne[0];ba=(Q=(Se=ba==null?void 0:ba.compData)==null?void 0:Se.find(Ee=>(Ee==null?void 0:Ee.key)==="tableContents"))==null?void 0:Q.contents;let Ye=(J=(ge=pp.value)==null?void 0:ge.find(Ee=>(Ee==null?void 0:Ee.condition)==="child"))==null?void 0:J.value;ba=(ue=ba==null?void 0:ba.map(Ee=>{for(let Ke in Ee)if((Ee==null?void 0:Ee[Ke])===Ye)return Ee}))==null?void 0:ue.filter(Ee=>Ee),ba=ba==null?void 0:ba[0],Wa=Wa==null?void 0:Wa[0];let Za=[];for(let Ee in Wa){let Ke="";el.isObject(ba)&&(Ke=(Ba=(Ue=Object.keys(ba))==null?void 0:Ue.filter(me=>me==null?void 0:me.includes("."+Ee)))==null?void 0:Ba[0]),Ke!==""&&(ba!=null&&ba[Ke])&&(Wa==null?void 0:Wa[Ee])===(ba==null?void 0:ba[Ke])||ba!=null&&ba[Ee]&&(Wa==null?void 0:Wa[Ee])===(ba==null?void 0:ba[Ee])?Za.push(!0):Za.push(!1)}if(Za!=null&&Za.some(Ee=>Ee===!1)&&((D=n==null?void 0:n.originPath)==null?void 0:D[((ne=n==null?void 0:n.originPath)==null?void 0:ne.length)-1])!=="/")return}if(m==="Table"||m==="Method"){let Wa=((re=c==null?void 0:c.contents)==null?void 0:re.find(qe=>{var K;return(K=qe==null?void 0:qe.key)==null?void 0:K.includes("content")}))||[],fa=[];y.comp="Table",Wa.value=(ke=Wa==null?void 0:Wa.value)==null?void 0:ke.sort((qe,K)=>parseInt(qe==null?void 0:qe.id)-parseInt(K==null?void 0:K.id)),Wa.value=(de=Wa==null?void 0:Wa.value)==null?void 0:de.map(qe=>{let K={};for(let aa in qe)JSON.stringify(qe==null?void 0:qe[aa])==="{}"?K[aa]="":K[aa]=qe==null?void 0:qe[aa];return K}),fa.push({key:"tableContents",contents:Wa==null?void 0:Wa.value});let va=(le=(Ja=(Sa=(ha=(De=c==null?void 0:c.contents)==null?void 0:De.find(qe=>{var K;return(K=qe==null?void 0:qe.key)==null?void 0:K.includes("struct")}))==null?void 0:ha.value)==null?void 0:Sa[0])==null?void 0:Ja.结构)==null?void 0:le.contents;Array.isArray(va==null?void 0:va[0])?va[0]=(la=va==null?void 0:va[0])==null?void 0:la.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"):va=va==null?void 0:va.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"),fa.push({key:"header",contents:va}),fa.push({key:"filter",contents:($e=(ze=(Fe=(_a=(Ve=c==null?void 0:c.contents)==null?void 0:Ve.find(qe=>{var K;return(K=qe==null?void 0:qe.key)==null?void 0:K.includes("struct")}))==null?void 0:_a.value)==null?void 0:Fe[0])==null?void 0:ze.引用)==null?void 0:$e.contents});let ba=fp,Ye=L.cloneDeep(hp);m==="Method"&&Ye.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(va==null?void 0:va[0])&&((Ze=va==null?void 0:va[0])==null?void 0:Ze.prop)==="disabled"&&(ba=vp,Ye=mp);const Za=["推力","真空","压力","温度","流量"],Ee=y.name;Ee&&Za.includes(Ee)&&(ba=[...ba],ba.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Ke=[];if(!Array.isArray(va==null?void 0:va[0])&&(va!=null&&va.some(qe=>{var K;return(qe==null?void 0:qe.calculatorFilter)&&((K=qe==null?void 0:qe.calculatorFilter)==null?void 0:K.includes("Manual"))}))){let qe=(Xa=va==null?void 0:va.map(K=>K==null?void 0:K.calculatorFilter))==null?void 0:Xa.filter(K=>K&&(K==null?void 0:K.includes("Manual")));qe==null||qe.forEach(K=>{var Ge;let aa=Va.analyzeSplitToContent(K,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(Cl=>Cl==null?void 0:Cl.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ke.push(Be)}}),Ke=[...new Set(Ke)],Ke=Ke==null?void 0:Ke.map(K=>({label:K,prop:K,type:"methodButton"}))}else if(Array.isArray(va==null?void 0:va[0])&&((qa=ca.getColumnChild(va==null?void 0:va[0]))!=null&&qa.some(qe=>{var K;return(qe==null?void 0:qe.calculatorFilter)&&((K=qe==null?void 0:qe.calculatorFilter)==null?void 0:K.includes("Manual"))}))){let qe=(P=(F=ca.getColumnChild(va==null?void 0:va[0]))==null?void 0:F.map(K=>K==null?void 0:K.calculatorFilter))==null?void 0:P.filter(K=>K&&(K==null?void 0:K.includes("Manual")));qe==null||qe.forEach(K=>{var Ge;let aa=Va.analyzeSplitToContent(K,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(Cl=>Cl==null?void 0:Cl.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ke.push(Be)}}),Ke=[...new Set(Ke)],Ke=Ke==null?void 0:Ke.map(K=>({label:K,prop:K,type:"methodButton"}))}fa.push({key:"extraButton",contents:ba}),fa.push({key:"rowButton",contents:[...Ye,...Ke]}),y.compData=await _t(fa,n),(X=y.compData)!=null&&X.find(qe=>(qe==null?void 0:qe.key)==="tab")&&(y.tab=(ce=(te=y.compData)==null?void 0:te.find(qe=>(qe==null?void 0:qe.key)==="tab"))==null?void 0:ce.contents),(xa=y.compData)!=null&&xa.find(qe=>(qe==null?void 0:qe.key)==="step")&&(y.step=(Le=(ra=y.compData)==null?void 0:ra.find(qe=>(qe==null?void 0:qe.key)==="step"))==null?void 0:Le.contents),(Ce=y.compData)!=null&&Ce.find(qe=>(qe==null?void 0:qe.key)==="choice")&&(y.choice=(ma=(Ea=y.compData)==null?void 0:Ea.find(qe=>(qe==null?void 0:qe.key)==="choice"))==null?void 0:ma.contents);let me="",Ra=(Pa=y==null?void 0:y.compData)==null?void 0:Pa.filter(qe=>(qe==null?void 0:qe.key)==="fixType");(Ra==null?void 0:Ra.length)>0&&r&&(me=(Fa=Ra==null?void 0:Ra[0])==null?void 0:Fa.contents,y.comp=me)}else if(m==="Form"){let Wa=[],fa=(Ae=(Je=(ve=c==null?void 0:c.contents)==null?void 0:ve.find(Ee=>{var Ke;return(Ke=Ee==null?void 0:Ee.key)==null?void 0:Ke.includes("content")}))==null?void 0:Je.value)==null?void 0:Ae[0],va=[],ba=Array.isArray((Xe=c==null?void 0:c.filter)==null?void 0:Xe.menuFilter)?(ya=c==null?void 0:c.filter)==null?void 0:ya.menuFilter:[];ba==null||ba.forEach(Ee=>{if(Ee!=null&&Ee.includes("@Param(Hide=Yes, prop=")){const Ke=Ee==null?void 0:Ee.match(/prop=([^,)]+)/);Ke!=null&&Ke[1]&&va.push(Ke==null?void 0:Ke[1])}});let Ye=(Ha=(ga=(Ia=(Te=(pa=c==null?void 0:c.contents)==null?void 0:pa.find(Ee=>{var Ke;return(Ke=Ee==null?void 0:Ee.key)==null?void 0:Ke.includes("struct")}))==null?void 0:Te.value)==null?void 0:Ia[0])==null?void 0:ga.结构)==null?void 0:Ha.contents,Za=(wa=Ye==null?void 0:Ye.map(Ee=>(Ee.value=fa==null?void 0:fa[Ee==null?void 0:Ee.prop],Ee)))==null?void 0:wa.filter(Ee=>(Ee==null?void 0:Ee.prop)!=="sort"&&(Ee==null?void 0:Ee.prop)!=="relatedId");Za=Za==null?void 0:Za.map(Ee=>(va!=null&&va.includes(Ee==null?void 0:Ee.prop)&&(Ee.isHideInForm=!0),Ee)),Wa.push({key:"filter",contents:(oe=(Ca=(Qe=(We=(ta=c==null?void 0:c.contents)==null?void 0:ta.find(Ee=>{var Ke;return(Ke=Ee==null?void 0:Ee.key)==null?void 0:Ke.includes("struct")}))==null?void 0:We.value)==null?void 0:Qe[0])==null?void 0:Ca.引用)==null?void 0:oe.contents}),Wa.push({key:"formContent",contents:Za}),Wa.push({key:"paramHideProps",contents:va}),y.compData=await up(Wa),(_e=y.compData)!=null&&_e.find(Ee=>(Ee==null?void 0:Ee.key)==="tab")&&(y.tab=(ie=(Pe=y.compData)==null?void 0:Pe.find(Ee=>(Ee==null?void 0:Ee.key)==="tab"))==null?void 0:ie.contents),(Ka=y.compData)!=null&&Ka.find(Ee=>(Ee==null?void 0:Ee.key)==="step")&&(y.step=(Wl=(vl=y.compData)==null?void 0:vl.find(Ee=>(Ee==null?void 0:Ee.key)==="step"))==null?void 0:Wl.contents)}return y});return o=await Promise.all(s),o},yp=L.useLoginState(L.pinia),{loginUserInfo:xo}=L.storeToRefs(yp),ft=async(l,n,r="Manual",o=[])=>{var v;let s=l,c;Array.isArray(n==null?void 0:n[0])?c=ca.getColumnChild(n==null?void 0:n[0]):c=n;let m=(v=c==null?void 0:c.filter(y=>{var u;return(y==null?void 0:y.calculatorFilter)&&((u=y==null?void 0:y.calculatorFilter)==null?void 0:u.includes(r))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:v.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),p=s==null?void 0:s.map(async y=>(y=await _p(y,m,c,r,s,o),y));return p=await Promise.all(p),p},gp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c;return Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=ca.getValueToObjectValue(n,ca.getColumnContents(s))),r==null||r.forEach(m=>{var p;if(n!=null&&n[m]){let v=n==null?void 0:n[m];c=c?v?Va.isEqual(v.toString(),c.toString()):void 0:v}else{let v=(p=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===m))==null?void 0:p.prop,y=(n==null?void 0:n[v])??0;c=c?y?Va.isEqual(y.toString(),c.toString()):void 0:y}}),n[o]=c===void 0?void 0:c?1:0,n},br=l=>{const[n,r,o]=L.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(o??0)},Gn=l=>{const n=c=>c.toString().padStart(2,"0"),r=Math.floor(l/3600),o=Math.floor(l%3600/60),s=l%60;return`${n(r)}:${n(o)}:${parseInt(n(s))}`},bp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=ca.getValueToObjectValue(n,ca.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,w,B,R,E,q,O,M;if(n!=null&&n[v]){if(c==="Row")if(!((u=((y=n==null?void 0:n[v])==null?void 0:y.toString())??"")!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let Z=+(n==null?void 0:n[v]);p=p+Z}else p=br(p.toString())+br((B=n==null?void 0:n[v])==null?void 0:B.toString()),p=Gn(p)}else if(c==="Row"){let Z=(R=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===v))==null?void 0:R.prop;if(!((q=Number.isNaN(n==null?void 0:n[Z])?"":(E=n==null?void 0:n[Z])==null?void 0:E.toString())!=null&&q.includes(":"))&&!((O=p==null?void 0:p.toString())!=null&&O.includes(":"))){let C=+((n==null?void 0:n[Z])??0);p=p+C}else p=br(p==null?void 0:p.toString())+br((M=(n==null?void 0:n[Z])??0)==null?void 0:M.toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=m==null?void 0:m.map(w=>{var B;return(w==null?void 0:w[y])??(w==null?void 0:w[(B=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:B.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let w=0;Number.isNaN(y)||(w=+y);let B=0;return Number.isNaN(u)||(B=+u),w+B},0)}return n[o]=p,n},kp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=ca.getValueToObjectValue(n,ca.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,w,B,R,E,q;if(n!=null&&n[v]){if(c==="Row")if(!((u=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let O=+(n==null?void 0:n[v]);p=p===0?p+O:p-O}else p=p===0?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())-br(n==null?void 0:n[v].toString()),p=Gn(p)}else if(c==="Row"){let O=(B=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:B.prop;if(!((E=Number.isNaN(n==null?void 0:n[O])?"":(R=n==null?void 0:n[O])==null?void 0:R.toString())!=null&&E.includes(":"))&&!((q=p==null?void 0:p.toString())!=null&&q.includes(":"))){let M=+((n==null?void 0:n[O])??0);p=p===0?p+M:p-M}else p=p===0?br(p.toString())+br(((n==null?void 0:n[O])??0).toString()):br(p.toString())-br(((n==null?void 0:n[O])??0).toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=m==null?void 0:m.map(w=>{var B;return(w==null?void 0:w[y])??(w==null?void 0:w[(B=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:B.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let w=0;Number.isNaN(y)||(w=+y);let B=0;return Number.isNaN(u)||(B=+u),w-B},0)}return n[o]=p,n},xp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=ca.getValueToObjectValue(n,ca.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,w,B,R,E,q;if(n!=null&&n[v]){if(c==="Row")if(!((u=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let O=+(n==null?void 0:n[v]);p=p===0?p+O:p*O}else p=p===0?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())*br(n==null?void 0:n[v].toString()),p=Gn(p)}else if(c==="Row"){let O=(B=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:B.prop;if(!(n!=null&&n[O]))p=void 0;else if(!((E=Number.isNaN(n==null?void 0:n[O])?"":(R=n==null?void 0:n[O])==null?void 0:R.toString())!=null&&E.includes(":"))&&!((q=p==null?void 0:p.toString())!=null&&q.includes(":"))){let M=+((n==null?void 0:n[O])??0);p=p===0?p+M:p*M}else p=p===0?br(p.toString())+br(((n==null?void 0:n[O])??0).toString()):br(p.toString())*br(((n==null?void 0:n[O])??0).toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=m==null?void 0:m.map(w=>{var B;return(w==null?void 0:w[y])??(w==null?void 0:w[(B=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:B.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let w=0;Number.isNaN(y)||(w=+y);let B=0;return Number.isNaN(u)||(B=+u),w*B},0)}return n[o]=p,n},wp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,m=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=ca.getValueToObjectValue(n,ca.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,w,B,R,E,q;if(n!=null&&n[v]){if(c==="Row")if(!((u=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let O=+(n==null?void 0:n[v]);p=p===0?p+O:p/O}else p=p===0?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())/br(n==null?void 0:n[v].toString()),p=Gn(p)}else if(c==="Row"){let O=(B=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:B.prop;if(!((E=Number.isNaN(n==null?void 0:n[O])?"":(R=n==null?void 0:n[O])==null?void 0:R.toString())!=null&&E.includes(":"))&&!((q=p==null?void 0:p.toString())!=null&&q.includes(":"))){let M=+((n==null?void 0:n[O])??0);p=p===0?p+M:p/M}else p=p===0?br(p.toString())+br(((n==null?void 0:n[O])??0).toString()):br(p.toString())/br(((n==null?void 0:n[O])??0).toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=m==null?void 0:m.map(w=>{var B;return(w==null?void 0:w[y])??(w==null?void 0:w[(B=s==null?void 0:s.find(R=>(R==null?void 0:R.label)===y))==null?void 0:B.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let w=0;Number.isNaN(y)||(w=+y);let B=0;return Number.isNaN(u)||(B=+u),w/B},0)}return n[o]=p.toFixed(2),n},di={Sum:bp,Substract:kp,Multiple:xp,Divide:wp,Compare:gp},_p=async(l,n,r,o="Auto",s,c=[])=>{var u,w,B,R,E,q,O,M,Z,C,_,S,g,b,j,V,G,fe,Ne,Se,Q;let m=l,p=[],v=await L.getPageDataApi({platId:parseInt((u=xo==null?void 0:xo.value)==null?void 0:u.plat_id),pageName:"menu"});v=(R=(B=(w=v==null?void 0:v.data)==null?void 0:w.result)==null?void 0:B.filter(ge=>(ge==null?void 0:ge.property_name)===""))==null?void 0:R[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let ge=await L.getPageDataApi({platId:parseInt((E=xo==null?void 0:xo.value)==null?void 0:E.plat_id),pageName:v});ge=(C=(Z=(M=(O=(q=ge==null?void 0:ge.data)==null?void 0:q.result)==null?void 0:O[0])==null?void 0:M.contents)==null?void 0:Z.find(J=>{var ue;return(ue=J==null?void 0:J.key)==null?void 0:ue.includes("content")}))==null?void 0:C.value,p=(_=ge==null?void 0:ge.map(J=>({functionName:J==null?void 0:J.函数名称,functionContent:J==null?void 0:J.输出值})))==null?void 0:_.filter(J=>(J==null?void 0:J.functionContent)!==""),p==null||p.forEach(J=>{y.push(J.functionName),di[J.functionName]=new Function("return "+J.functionContent)()})}if((n==null?void 0:n.length)===0)return m;for(let ge in n){let J=(S=n==null?void 0:n[ge])==null?void 0:S.functionName;const ue=di==null?void 0:di[J];let Ue=(g=n==null?void 0:n[ge])==null?void 0:g.methods;if(Ue=Va.analyzeSplitToContent(Ue,","),(b=Ue==null?void 0:Ue.find(Ba=>Ba==null?void 0:Ba.includes("@Type")))!=null&&b.includes(o)||(Ue==null?void 0:Ue.length)===0){let Ba=((G=(V=(j=Ue==null?void 0:Ue.find(ne=>ne==null?void 0:ne.includes("@Extent")))==null?void 0:j.replace(":","="))==null?void 0:V.split("="))==null?void 0:G[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(ne=>ne===J)){let ne="";try{let re=(fe=n==null?void 0:n[ge])==null?void 0:fe.functionRelatedWords,ke=(c==null?void 0:c.length)>0?c==null?void 0:c.map(De=>{var ha;return De==null?void 0:De[(ha=n==null?void 0:n[ge])==null?void 0:ha.prop]}):["0"];ke=ke==null?void 0:ke.map(De=>De==null?void 0:De.slice((De==null?void 0:De.length)-5,De==null?void 0:De.length)),ke=ke==null?void 0:ke.map(De=>Va.isNumber(parseInt(De))&&parseInt(De)?parseInt(De):0);let de=Math.max(...ke);re=re==null?void 0:re.map(De=>{if(De!=null&&De.includes("'"))return De==null?void 0:De.replaceAll("'","");if(De!=null&&De.includes("@"))return de+1;{let ha=Object.keys(m);return De=(m==null?void 0:m[De])??(m==null?void 0:m[ha==null?void 0:ha.find(Sa=>Sa==null?void 0:Sa.includes("."+De))]),De}}),ne=ue(...re)}catch(re){el.ElMessage.warning("关联数据出现错误,"+re.message)}let D=(Ne=n==null?void 0:n[ge])==null?void 0:Ne.prop;m[D]=ne}else m=ue({contents:m,valueString:(Se=n==null?void 0:n[ge])==null?void 0:Se.functionRelatedWords,prop:(Q=n==null?void 0:n[ge])==null?void 0:Q.prop,headers:r,typeString:Ba,allContents:s})}}return m},Cp=L.useLoginState(L.pinia),{loginUserInfo:Xr}=L.storeToRefs(Cp),Sp=L.useMenuState(L.pinia),{activeMenuPath:ns,currentMenuPath:pi}=L.storeToRefs(Sp),Qs=L.useUnit(L.pinia);let os="$R";const{selectTitle:So}=L.storeToRefs(Qs),ec=async(l,n)=>{var m,p,v,y,u,w,B,R,E,q,O,M,Z;let r=ns.value,o="",s=((m=So==null?void 0:So.value)==null?void 0:m.find(C=>(C==null?void 0:C.condition)==="child"&&!(C!=null&&C.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(r=n?r:(p=l==null?void 0:l[0])==null?void 0:p.object_name,o=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let c=[];if(o!==""){let C=o;(C==null?void 0:C[(C==null?void 0:C.length)-1])==="/"&&(C=C==null?void 0:C.slice(0,(C==null?void 0:C.length)-1));let _=await Wr(C,!1);_=(y=_==null?void 0:_[0])==null?void 0:y.compData;let S=(u=_==null?void 0:_.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:u.contents;S=((w=S==null?void 0:S.find(b=>b==null?void 0:b.isMainKey))==null?void 0:w.prop)??((B=S==null?void 0:S[0])==null?void 0:B.prop);let g=(E=(R=_==null?void 0:_.find(b=>(b==null?void 0:b.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:E.map(b=>({label:b==null?void 0:b[S],value:b==null?void 0:b[S]}));c=(q=o==null?void 0:o.split("/"))==null?void 0:q.map(b=>(b===""?s?(s.isShow=!0,b=s):b={value:b,condition:"child",options:g,parentContent:(o==null?void 0:o[(o==null?void 0:o.length)-1])==="/"?o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1):o,isShow:!0}:b={condition:"parent",value:b.trim(),isShow:!0},b))}if(r!==""){let C=(O=r==null?void 0:r.split("/"))==null?void 0:O.map(_=>(_={condition:"normal",value:_.trim(),isShow:!0},_));((M=C==null?void 0:C[0])==null?void 0:M.value)===((Z=c==null?void 0:c[0])==null?void 0:Z.value)&&(C=C==null?void 0:C.filter((_,S)=>S!==0)),c=[...c??[],...C??[]]}o===""&&s&&((s==null?void 0:s.parentContent)!==ns.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),Qs.setSelectTitle(c)},Ep=async l=>{var c,m,p,v,y,u,w,B,R;let n=await L.getPageDataApi({platId:parseInt((c=Xr==null?void 0:Xr.value)==null?void 0:c.plat_id),pageName:"menu"}),r=(m=n==null?void 0:n.data)==null?void 0:m.result,o=(u=(y=(v=(p=l==null?void 0:l.filter(E=>(E==null?void 0:E.comp)==="Table"))==null?void 0:p[0])==null?void 0:v.compData)==null?void 0:y.find(E=>(E==null?void 0:E.key)==="filter"))==null?void 0:u.contents;o=(R=(B=(w=o==null?void 0:o.replace("(",os))==null?void 0:w.split(os))==null?void 0:B[0])==null?void 0:R.replaceAll(":","/");let s=r==null?void 0:r.filter(E=>{var q;return(E==null?void 0:E.object_name)===pi.value+"/"||((q=pi.value)==null?void 0:q.includes(o))&&o+"/"===(E==null?void 0:E.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(E=>{var q;return(E==null?void 0:E.comp)==="Table"&&(E.compData=(q=E==null?void 0:E.compData)==null?void 0:q.map(O=>{var M,Z,C;return(O==null?void 0:O.key)==="header"&&(Array.isArray((M=O.contents)==null?void 0:M[0])?O.contents[0]=(C=O.contents[0])==null?void 0:C.map((_,S)=>{var g;return S===0&&(_.isExistChild=!0,(g=pi.value)!=null&&g.includes(o)&&(_.fatherPath=o)),_}):O.contents=(Z=O.contents)==null?void 0:Z.map((_,S)=>{var g;return S===0&&(_.isExistChild=!0,(g=pi.value)!=null&&g.includes(o)&&(_.fatherPath=o)),_})),O})),E})),l},Wr=async(l,n,r={})=>{var m,p,v,y,u,w,B,R,E,q,O,M;let o=await L.getPageDataApi({platId:parseInt((m=Xr==null?void 0:Xr.value)==null?void 0:m.plat_id),pageName:l}),s=(p=o==null?void 0:o.data)==null?void 0:p.result;if((s==null?void 0:s.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==l){let Z=await L.getPageDataApi({platId:parseInt((v=Xr==null?void 0:Xr.value)==null?void 0:v.plat_id),pageName:r==null?void 0:r.originPath});if(((u=(y=Z==null?void 0:Z.data)==null?void 0:y.result)==null?void 0:u.length)>0){let C=await rs((w=Z==null?void 0:Z.data)==null?void 0:w.result,r,!1);C=C==null?void 0:C.map(async g=>{var V,G,fe,Ne,Se,Q,ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa;let b=[],j=(V=Object.keys(g))==null?void 0:V.filter(F=>(F==null?void 0:F.includes("name"))&&F!=="nameContents");for(let F in g)j!=null&&j.find(P=>P===F)&&b.push(g==null?void 0:g[F]);if(b=b.reverse(),(g==null?void 0:g.comp)==="Table"){let F=(Ne=(fe=(G=g==null?void 0:g.compData)==null?void 0:G.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:fe.contents)==null?void 0:Ne.map(X=>{let te={};for(let ce in X)ce!=="id"&&ce!=="create_time"&&ce!=="update_time"&&ce!=="sort"&&ce!=="create_user_id"&&ce!=="update_user_id"&&ce!=="department_id"&&ce!=="relatedId"&&(te[ce]=X==null?void 0:X[ce]);return X=Object.values(te),X}),P=(Q=(Se=g==null?void 0:g.compData)==null?void 0:Se.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:Q.contents;if(Array.isArray(P==null?void 0:P[0])?(P[0].push({label:"排序",prop:"sort"}),P[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(ge=P[0])!=null&&ge.find(X=>(X==null?void 0:X.prop)==="disabled")&&(P[0]=(J=P[0])==null?void 0:J.filter(X=>(X==null?void 0:X.prop)!=="disabled"),P[0].unshift({label:"",prop:"disabled",sortable:!1}))):(P.push({label:"排序",prop:"sort"}),P.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),P!=null&&P.find(X=>(X==null?void 0:X.prop)==="disabled")&&(P=P==null?void 0:P.filter(X=>(X==null?void 0:X.prop)!=="disabled"),P.unshift({label:"",prop:"disabled",sortable:!1}))),P!=null&&P.some(X=>{var te;return(X==null?void 0:X.calculatorFilter)&&((te=X==null?void 0:X.calculatorFilter)==null?void 0:te.includes("Auto"))})&&(F=await ft(F,P,"Auto"),F=F==null?void 0:F.map(X=>Object.values(X))),g!=null&&g.fatherSyncContents){Array.isArray((ue=g==null?void 0:g.fatherSyncContents)==null?void 0:ue[0])&&(g.fatherSyncContents=(Ue=g==null?void 0:g.fatherSyncContents)==null?void 0:Ue[0]);let X=(Ba=So.value)==null?void 0:Ba.find(te=>(te==null?void 0:te.condition)==="child");g.fatherSyncContents=(ne=g==null?void 0:g.fatherSyncContents)==null?void 0:ne.map(te=>{var ce,xa,ra,Le,Ce,Ea;return((xa=te==null?void 0:te.menus)==null?void 0:xa[((ce=te==null?void 0:te.menus)==null?void 0:ce.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(te==null?void 0:te.menus)?te.menus=(te==null?void 0:te.menus)+(X==null?void 0:X.value):((Le=te==null?void 0:te.menus)==null?void 0:Le[((ra=te==null?void 0:te.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(te==null?void 0:te.menus)&&(te.menus=(Ea=te.menus)==null?void 0:Ea.slice(0,((Ce=te.menus)==null?void 0:Ce.length)-1)),te})}if(g!=null&&g.sonSyncContents){Array.isArray((D=g==null?void 0:g.sonSyncContents)==null?void 0:D[0])&&(g.sonSyncContents=(re=g==null?void 0:g.sonSyncContents)==null?void 0:re[0]);let X=(ke=So.value)==null?void 0:ke.find(te=>(te==null?void 0:te.condition)==="child");g.sonSyncContents=(de=g==null?void 0:g.sonSyncContents)==null?void 0:de.map(te=>{var ce,xa,ra,Le,Ce,Ea;return((xa=te==null?void 0:te.menus)==null?void 0:xa[((ce=te==null?void 0:te.menus)==null?void 0:ce.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(te==null?void 0:te.menus)?te.menus=(te==null?void 0:te.menus)+(X==null?void 0:X.value):((Le=te==null?void 0:te.menus)==null?void 0:Le[((ra=te==null?void 0:te.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(te==null?void 0:te.menus)&&(te.menus=(Ea=te.menus)==null?void 0:Ea.slice(0,((Ce=te.menus)==null?void 0:Ce.length)-1)),te})}if(g!=null&&g.relatedQuotes){Array.isArray((De=g==null?void 0:g.relatedQuotes)==null?void 0:De[0])&&(g.relatedQuotes=(ha=g==null?void 0:g.relatedQuotes)==null?void 0:ha[0]);let X=(Sa=So.value)==null?void 0:Sa.find(te=>(te==null?void 0:te.condition)==="child");g.relatedQuotes=(Ja=g==null?void 0:g.relatedQuotes)==null?void 0:Ja.map(te=>{var ce,xa,ra,Le,Ce,Ea;return((xa=te==null?void 0:te.menus)==null?void 0:xa[((ce=te==null?void 0:te.menus)==null?void 0:ce.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(te==null?void 0:te.menus)?te.menus=(te==null?void 0:te.menus)+(X==null?void 0:X.value):((Le=te==null?void 0:te.menus)==null?void 0:Le[((ra=te==null?void 0:te.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(te==null?void 0:te.menus)&&(te.menus=(Ea=te.menus)==null?void 0:Ea.slice(0,((Ce=te.menus)==null?void 0:Ce.length)-1)),te})}g={filter:(la=(le=g==null?void 0:g.compData)==null?void 0:le.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:la.contents,key:g==null?void 0:g.comp,name:b,tableColumns:P,tableContents:F,menuFilter:g==null?void 0:g.menuFilter,fatherSyncContents:g==null?void 0:g.fatherSyncContents,relatedQuotes:g==null?void 0:g.relatedQuotes,sonSyncContents:g==null?void 0:g.sonSyncContents}}else{let F=(Fe=(_a=(Ve=g==null?void 0:g.compData)==null?void 0:Ve.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:_a.contents)==null?void 0:Fe.map(X=>(X==null?void 0:X.value)??"");F=[F];let P=(Ze=($e=(ze=g==null?void 0:g.compData)==null?void 0:ze.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:$e.contents)==null?void 0:Ze.map(X=>(X.value="",X));g={contents:F,filter:(qa=(Xa=g==null?void 0:g.compData)==null?void 0:Xa.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:qa.contents,key:g==null?void 0:g.comp,name:b,value:P,fatherSyncContents:g==null?void 0:g.fatherSyncContents,relatedQuotes:g==null?void 0:g.relatedQuotes,sonSyncContents:g==null?void 0:g.sonSyncContents}}return g.isShow=!1,g}),C=await Promise.all(C);let _=[{key:"menuPath",contents:[{path:l,fatherPath:(E=(R=(B=Z==null?void 0:Z.data)==null?void 0:B.result)==null?void 0:R[0])==null?void 0:E.father_name,isShow:!1}]},{key:l,contents:C}];await L.createPlatFormDataApi({platId:parseInt((q=Xr==null?void 0:Xr.value)==null?void 0:q.plat_id),changeData:_});let S=await L.getPageDataApi({platId:parseInt((O=Xr==null?void 0:Xr.value)==null?void 0:O.plat_id),pageName:l});s=(M=S==null?void 0:S.data)==null?void 0:M.result}}n&&await ec(s,!!(r!=null&&r.originPath));let c=await rs(s,r);return n&&(c=await Ep(c)),c==null?void 0:c.filter(Z=>Z)},is=async l=>{var o,s,c,m,p,v,y,u,w,B,R;let n=(o=l==null?void 0:l.menus)==null?void 0:o.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+(l==null?void 0:l.endChildMenu)),(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+((c=(s=l.value)==null?void 0:s.split(" "))==null?void 0:c[0]));let r=await Wr(n,!1);if(r=(m=r==null?void 0:r.filter(E=>{var q,O;return(E==null?void 0:E.name)===((O=l==null?void 0:l.groups)==null?void 0:O[((q=l==null?void 0:l.groups)==null?void 0:q.length)-1])}))==null?void 0:m[0],(v=(p=r==null?void 0:r.compData)==null?void 0:p.find(E=>(E==null?void 0:E.key)==="tableContents"))!=null&&v.contents){r=(u=(y=r==null?void 0:r.compData)==null?void 0:y.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:u.contents;let E=((w=l==null?void 0:l.words)==null?void 0:w[0])??(l==null?void 0:l.prop);return r=r==null?void 0:r.filter(q=>{var O,M,Z,C;return(q==null?void 0:q[l!=null&&l.endChildMenu?E:(O=l==null?void 0:l.words)==null?void 0:O[0]])===(l!=null&&l.relatedWords&&((M=l==null?void 0:l.relatedWords)==null?void 0:M.length)>0?(C=(Z=l.value)==null?void 0:Z.split(" "))==null?void 0:C[0]:l.value)}),r==null?void 0:r[0]}else{let E=(R=(B=r==null?void 0:r.compData)==null?void 0:B.find(O=>(O==null?void 0:O.key)==="formContent"))==null?void 0:R.contents,q={};return E==null||E.forEach(O=>{q[O.prop]=O.value}),q}},Dp={key:0,class:"extra-button-content"},Bp={class:"table-operator-wrap"},Np={key:0,class:"extra-button-filter"},Tp={key:1,class:"extra-header"},Ap=["onClick"],zp={class:"table-op-text"},Mp={class:"table-op-text"},Ip={class:"drop-menu",style:{width:"120px"}},Op=["onClick"],Lp={key:0},Rp={key:1},$p=["onClick"],Vp={class:"table-op-text"},Pp={key:1,class:"extra-button-content tabs-button-wrapper"},Fp={class:"table-operator-wrap"},jp={class:"extra-button-filter"},Hp={key:0,class:"extra-header"},Up={class:"table-op-action"},qp={class:"table-op-text"},Wp={class:"drop-menu",style:{width:"120px"}},Kp={key:0},Gp={key:1},Yp=["onClick"],Jp={class:"table-op-text"},Xp={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:n}){const r=n,o=l,s=a.ref(""),c=a.ref(!1),m=a.ref([]),p=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),v=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function y(g,b){return g.map(j=>{const V={...j};return b.forEach(G=>{delete V[G]}),V})}function u(g){if(!g||g.t!=="n")return(g==null?void 0:g.v)??"";const b=g.v;if(g.z){const j=String(g.z).toLowerCase(),V=["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 Ne of V)if(j.includes(Ne))return w(b);const G=/[ymdhms]/.test(j),fe=/^[0#\.\,\s]+$/.test(j.replace(/[\\\/\-:]/g,""));if(G&&!fe)return w(b)}if(b>=1&&b<=73050){if(b<5e3)return b;if(b>=5e3&&b<4e4){const j=Math.floor((b-25569)/365.25)+1970;return j>=1970&&j<=2e3&&g.z&&/[ymd]/.test(String(g.z).toLowerCase())?w(b):b}if(b>=4e4)return w(b)}return b}function w(g){if(typeof g!="number")return g;try{const b=new Date((g-25569)*86400*1e3);if(isNaN(b.getTime()))return g;const j=b.getFullYear(),V=String(b.getMonth()+1).padStart(2,"0"),G=String(b.getDate()).padStart(2,"0");return`${j}-${V}-${G}`}catch{return g}}const B=g=>{const b=g.raw;if(!b)return;const j=new FileReader;j.onload=V=>{try{const G=new Uint8Array(V.target.result),fe=ca.readSync(G,{type:"array"}),Ne=fe.SheetNames[0],Se=fe.Sheets[Ne],ge=ca.utils.decode_range(Se["!ref"]).e.c+1,J=new Array(ge).fill(""),ue=[];for(const re in Se){if(re[0]==="!")continue;const{r:ke,c:de}=ca.utils.decode_cell(re),De=Se[re];let ha=u(De);if((ha==null||ha==="")&&(ha=""),ke===0)J[de]=ha;else{if(!ue[ke-1]){ue[ke-1]={};for(let Sa=0;Sa<ge;Sa++)ue[ke-1][`col_${Sa}`]=""}ue[ke-1][`col_${de}`]=ha}}for(let re=0;re<ge;re++)J[re]===void 0&&(J[re]="");const Ue=[];for(let re=0;re<J.length;re++)(!J[re]||J[re].toString().trim()==="")&&Ue.push(re);let Ba,ne;(Ue==null?void 0:Ue.length)>0?(el.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),Ba=J.filter((re,ke)=>!Ue.includes(ke)),ne=y(ue,Ue==null?void 0:Ue.map(re=>`col_${re}`))):(Ba=J,ne=ue);const D=ue==null?void 0:ue[0];if(!(D!=null&&D.hasOwnProperty("col_0")))return el.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",Ba,ne)}catch(G){throw el.ElMessage.error(G.message),new Error(G.message)}},j.readAsArrayBuffer(b)},R=g=>{var j;const b=(j=m.value)==null?void 0:j.reduce((V,G,fe)=>(fe===0?V[G.label]=g:V[G.label]=G==null?void 0:G.value,V),{});r("filter",b,g,!0)},E=(g,b={})=>{r("buttonClick",g,"",b)},q=g=>{var b,j;m.value=(j=(b=ca.getColumnChild(L.cloneDeep(g)))==null?void 0:b.filter(V=>(V==null?void 0:V.label)!==""&&(V==null?void 0:V.label)!=="操作"))==null?void 0:j.map(V=>({label:(V==null?void 0:V.label)??"",value:"",name:(V==null?void 0:V.prop)??"",isFormColHidden:V==null?void 0:V.isTableColHidden,width:2,prop:(V==null?void 0:V.prop)??""}))},O=a.ref(!1),M=g=>{var b;if((g==null?void 0:g.buttonName)==="确认"&&(r("filter",g==null?void 0:g.content),O.value=(g==null?void 0:g.content)&&Object.values(g==null?void 0:g.content).length>0),(g==null?void 0:g.buttonName)==="清空"){const j=L.cloneDeep(g==null?void 0:g.content);for(const V in j)j[V]="";m.value=(b=m.value)==null?void 0:b.map(V=>({...V,value:""})),r("filter",j),O.value=!1}c.value=!1},Z=()=>{c.value=!c.value},C=()=>{var b,j;m.value=(b=m.value)==null?void 0:b.map(V=>({...V,value:""}));const g=(j=m.value)==null?void 0:j.reduce((V,G)=>(V[G.label]=G.value,V),{});r("filter",g)},_=a.ref(null);let S;return S=g=>{var G;if(!c.value)return;const b=(G=_==null?void 0:_.value)==null?void 0:G.$el,j=b==null?void 0:b.contains(g.target);let V=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(fe=>{fe.contains(g.target)&&(V=!0)}),!j&&!V&&(c.value=!1)},a.onMounted(()=>{document.addEventListener("click",S),q(o.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",S)}),a.watch(()=>o.columns,()=>{q(o.columns)},{deep:!0,immediate:!0}),(g,b)=>{var Se,Q,ge,J,ue,Ue,Ba,ne;const j=a.resolveComponent("el-icon"),V=a.resolveComponent("svg-icon"),G=a.resolveComponent("el-input"),fe=a.resolveComponent("el-upload"),Ne=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",Dp,[a.createElementVNode("div",{class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(o==null?void 0:o.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((o==null?void 0:o.level)-1)*12+"px",fontWeight:600-((o==null?void 0:o.level)-1)*100>=400?600-((o==null?void 0:o.level)-1)*100:400,fontSize:17-(o==null?void 0:o.level)>=14?17-(o==null?void 0:o.level)+"px":"14px"})},a.toDisplayString(l.compName),7),a.createElementVNode("div",Bp,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",Np,[a.createVNode(Bu,{trigger:"contextmenu",ref_key:"popOverRef",ref:_,title:"",width:800,placement:"bottom-start",isVisible:c.value,"onUpdate:isVisible":b[4]||(b[4]=D=>c.value=D)},{reference:a.withCtx(()=>{var D,re,ke,de;return[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=De=>s.value=De),style:{"min-width":"80px"},placeholder:O.value?(ke=(re=(D=l.filterValues)==null?void 0:D.filter(De=>De))==null?void 0:re.slice(0,3))==null?void 0:ke.join("/"):"搜索","prefix-icon":a.unref(el.search_default),clearable:"",onInput:R,disabled:((de=m.value)==null?void 0:de.length)===0},{suffix:a.withCtx(()=>{var De,ha;return[!s.value&&((ha=(De=l.filterValues)==null?void 0:De.filter(Sa=>Sa))!=null&&ha.join("/"))?(a.openBlock(),a.createBlock(j,{key:0,style:{cursor:"pointer"},onClick:C},{default:a.withCtx(()=>[a.createVNode(a.unref(el.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Z,["stop"])},[a.createVNode(V,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:b[1]||(b[1]=a.withModifiers(()=>{},["stop"])),onKeyup:b[2]||(b[2]=a.withModifiers(()=>{},["stop"])),onKeypress:b[3]||(b[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:m.value,buttonValue:p.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:p.value,isStartJustify:!1,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((Se=l.buttons)==null?void 0:Se.length)>0?(a.openBlock(),a.createElementBlock("div",Tp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Q=l.buttons)==null?void 0:Q.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,re)=>{var ke;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:re},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(fe,{key:0,class:"upload-button-wrap","on-change":B,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var de;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:De=>E(D==null?void 0:D.label)},[a.createVNode(V,{class:"table-op-icon",name:(de=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:de.icon},null,8,["name"]),a.createElementVNode("span",zp,a.toDisplayString(D==null?void 0:D.label),1)],10,Ap)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(dl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var de;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(V,{class:"table-op-icon",name:(de=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:de.icon},null,8,["name"]),a.createElementVNode("span",Mp,a.toDisplayString(D==null?void 0:D.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Ip,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,de=>{var De,ha;return a.openBlock(),a.createElementBlock("div",{key:de==null?void 0:de.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:Sa=>!l.lockingPage&&E(de==null?void 0:de.label)},[a.createTextVNode(a.toDisplayString(de==null?void 0:de.label),1),(De=de==null?void 0:de.label)!=null&&De.includes("选中")?(a.openBlock(),a.createElementBlock("span",Lp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ha=de==null?void 0:de.label)!=null&&ha.includes("全部")?(a.openBlock(),a.createElementBlock("span",Rp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Op)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:de=>!l.lockingPage&&E(D==null?void 0:D.label,D)},[a.createVNode(V,{class:"table-op-icon",name:(ke=v==null?void 0:v.find(de=>(de==null?void 0:de.label)===(D==null?void 0:D.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Vp,a.toDisplayString(D==null?void 0:D.label),1)],10,$p)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Pp,[a.createElementVNode("div",Fp,[a.createElementVNode("div",jp,[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":b[5]||(b[5]=D=>s.value=D),style:{"min-width":"80px"},placeholder:O.value?(ue=(J=(ge=l.filterValues)==null?void 0:ge.filter(D=>D))==null?void 0:J.slice(0,3))==null?void 0:ue.join("/"):"搜索","prefix-icon":a.unref(el.search_default),clearable:"",onInput:R,disabled:((Ue=m.value)==null?void 0:Ue.length)===0},{suffix:a.withCtx(()=>{var D,re;return[!s.value&&((re=(D=l.filterValues)==null?void 0:D.filter(ke=>ke))!=null&&re.join("/"))?(a.openBlock(),a.createBlock(j,{key:0,style:{cursor:"pointer"},onClick:C},{default:a.withCtx(()=>[a.createVNode(a.unref(el.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Z,["stop"])},[a.createVNode(V,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((Ba=l.buttons)==null?void 0:Ba.length)>0?(a.openBlock(),a.createElementBlock("div",Hp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ne=l.buttons)==null?void 0:ne.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,re)=>{var ke;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:re},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(fe,{key:0,class:"upload-button-wrap","on-change":B,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var de;return[a.createElementVNode("div",Up,[a.createVNode(V,{class:"table-op-icon",name:(de=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:de.icon},null,8,["name"]),a.createElementVNode("span",qp,a.toDisplayString(D==null?void 0:D.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(dl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(Ne,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var de;return[a.createVNode(V,{class:"table-op-icon",name:(de=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:de.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(D==null?void 0:D.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Wp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,de=>(a.openBlock(),a.createBlock(Ne,{key:de==null?void 0:de.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:De=>E(de==null?void 0:de.label)},{default:a.withCtx(()=>{var De,ha;return[a.createTextVNode(a.toDisplayString(de==null?void 0:de.label),1),(De=de==null?void 0:de.label)!=null&&De.includes("选中")?(a.openBlock(),a.createElementBlock("span",Kp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ha=de==null?void 0:de.label)!=null&&ha.includes("全部")?(a.openBlock(),a.createElementBlock("span",Gp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:de=>!l.lockingPage&&E(D==null?void 0:D.label,D)},[a.createVNode(V,{class:"table-op-icon",name:(ke=v==null?void 0:v.find(de=>(de==null?void 0:de.label)===(D==null?void 0:D.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Jp,a.toDisplayString(D==null?void 0:D.label),1)],10,Yp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},Zp=Jl._export_sfc(Xp,[["__scopeId","data-v-3a44c010"]]),Qp={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(n,r)=>{const o=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,c=>{var m;return a.openBlock(),a.createBlock(o,{key:c==null?void 0:c.prop,label:c==null?void 0:c.label,prop:c==null?void 0:c.prop,fixed:(c==null?void 0:c.prop)==="operate"?"right":c==null?void 0:c.fixed,align:(c==null?void 0:c.align)??"left","show-overflow-tooltip":(c==null?void 0:c.showOverflowTooltip)??!0,width:c==null?void 0:c.width,"min-width":(c==null?void 0:c.minWidth)||((c==null?void 0:c.prop)==="operate"?80:(((m=c==null?void 0:c.label)==null?void 0:m.length)*2||4)*27)},{default:a.withCtx(p=>[a.renderSlot(n.$slots,"content",{row:p.row,column:p.column,$index:p.$index,scope:p}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(v,y)=>(a.openBlock(),a.createBlock(dl._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(n.$slots,(u,w)=>({name:w,fn:a.withCtx(({row:B,slotData:R,item:E,column:q})=>[a.renderSlot(n.$slots,w,a.mergeProps({ref_for:!0},R??B,{item:E??v,slotData:R??B,row:B,column:q,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class ef extends Va.Loader{constructor(n){super(n),this.littleEndian=!0}load(n,r,o,s){const c=this,m=new Va.FileLoader(c.manager);m.setPath(c.path),m.setResponseType("arraybuffer"),m.setRequestHeader(c.requestHeader),m.setWithCredentials(c.withCredentials),m.load(n,function(p){try{r(c.parse(p))}catch(v){s?s(v):console.error(v),c.manager.itemError(n)}},o,s)}_getDataView(n,r,o,s){switch(o){case"F":return s===8?n.getFloat64(r,this.littleEndian):n.getFloat32(r,this.littleEndian);case"I":return s===1?n.getInt8(r):s===2?n.getInt16(r,this.littleEndian):n.getInt32(r,this.littleEndian);case"U":return s===1?n.getUint8(r):s===2?n.getUint16(r,this.littleEndian):n.getUint32(r,this.littleEndian)}}parse(n){function r(R,E){const q=R.length,O=new Uint8Array(E);let M=0,Z=0,C,_,S;do if(C=R[M++],C<32){if(C++,Z+C>E)throw new Error("Output buffer is not large enough");if(M+C>q)throw new Error("Invalid compressed data");do O[Z++]=R[M++];while(--C)}else{if(_=C>>5,S=Z-((C&31)<<8)-1,M>=q)throw new Error("Invalid compressed data");if(_===7&&(_+=R[M++],M>=q))throw new Error("Invalid compressed data");if(S-=R[M++],Z+_+2>E)throw new Error("Output buffer is not large enough");if(S<0)throw new Error("Invalid compressed data");if(S>=Z)throw new Error("Invalid compressed data");do O[Z++]=O[S++];while(--_+2)}while(M<q);return O}function o(R){const E={},q=new Uint8Array(R);let O="",M="",Z=0,C=!1;const _=q.length;for(;Z<_&&C===!1;){const j=String.fromCharCode(q[Z++]);j===`
2
- `||j==="\r"?(M.trim().toLowerCase().startsWith("data")&&(C=!0),M=""):M+=j,O+=j}const S=O.search(/[\r\n]DATA\s(\S*)\s/i),g=/[\r\n]DATA\s(\S*)\s/i.exec(O.slice(S-1));if(E.data=g[1],E.headerLen=g[0].length+S,E.str=O.slice(0,E.headerLen),E.str=E.str.replace(/#.*/gi,""),E.version=/^VERSION (.*)/im.exec(E.str),E.fields=/^FIELDS (.*)/im.exec(E.str),E.size=/^SIZE (.*)/im.exec(E.str),E.type=/^TYPE (.*)/im.exec(E.str),E.count=/^COUNT (.*)/im.exec(E.str),E.width=/^WIDTH (.*)/im.exec(E.str),E.height=/^HEIGHT (.*)/im.exec(E.str),E.viewpoint=/^VIEWPOINT (.*)/im.exec(E.str),E.points=/^POINTS (.*)/im.exec(E.str),E.version!==null&&(E.version=parseFloat(E.version[1])),E.fields=E.fields!==null?E.fields[1].split(" "):[],E.type!==null&&(E.type=E.type[1].split(" ")),E.width!==null&&(E.width=parseInt(E.width[1])),E.height!==null&&(E.height=parseInt(E.height[1])),E.viewpoint!==null&&(E.viewpoint=E.viewpoint[1]),E.points!==null&&(E.points=parseInt(E.points[1],10)),E.points===null&&(E.points=E.width*E.height),E.size!==null&&(E.size=E.size[1].split(" ").map(function(j){return parseInt(j,10)})),E.count!==null)E.count=E.count[1].split(" ").map(function(j){return parseInt(j,10)});else{E.count=[];for(let j=0,V=E.fields.length;j<V;j++)E.count.push(1)}E.offset={};let b=0;for(let j=0,V=E.fields.length;j<V;j++)E.data==="ascii"?E.offset[E.fields[j]]=j:(E.offset[E.fields[j]]=b,b+=E.size[j]*E.count[j]);return E.rowSize=b,E}const s=o(n),c=[],m=[],p=[],v=[],y=[],u=new Va.Color;if(s.data==="ascii"){const R=s.offset,O=new TextDecoder().decode(n).slice(s.headerLen).split(`
3
- `);for(let M=0,Z=O.length;M<Z;M++){if(O[M]==="")continue;const C=O[M].split(" ");if(R.x!==void 0&&(c.push(parseFloat(C[R.x])),c.push(parseFloat(C[R.y])),c.push(parseFloat(C[R.z]))),R.rgb!==void 0){const _=s.fields.findIndex(fe=>fe==="rgb"),S=s.type[_],g=parseFloat(C[R.rgb]);let b=g;if(S==="F"){const fe=new Float32Array(1);fe[0]=g,b=new Int32Array(fe.buffer)[0]}const j=(b>>16&255)/255,V=(b>>8&255)/255,G=(b>>0&255)/255;u.setRGB(j,V,G,Va.SRGBColorSpace),p.push(u.r,u.g,u.b)}R.normal_x!==void 0&&(m.push(parseFloat(C[R.normal_x])),m.push(parseFloat(C[R.normal_y])),m.push(parseFloat(C[R.normal_z]))),R.intensity!==void 0&&v.push(parseFloat(C[R.intensity])),R.label!==void 0&&y.push(parseInt(C[R.label]))}}if(s.data==="binary_compressed"){const R=new Uint32Array(n.slice(s.headerLen,s.headerLen+8)),E=R[0],q=R[1],O=r(new Uint8Array(n,s.headerLen+8,E),q),M=new DataView(O.buffer),Z=s.offset;for(let C=0;C<s.points;C++){if(Z.x!==void 0){const _=s.fields.indexOf("x"),S=s.fields.indexOf("y"),g=s.fields.indexOf("z");c.push(this._getDataView(M,s.points*Z.x+s.size[_]*C,s.type[_],s.size[_])),c.push(this._getDataView(M,s.points*Z.y+s.size[S]*C,s.type[S],s.size[S])),c.push(this._getDataView(M,s.points*Z.z+s.size[g]*C,s.type[g],s.size[g]))}if(Z.rgb!==void 0){const _=s.fields.indexOf("rgb"),S=M.getUint8(s.points*Z.rgb+s.size[_]*C+2)/255,g=M.getUint8(s.points*Z.rgb+s.size[_]*C+1)/255,b=M.getUint8(s.points*Z.rgb+s.size[_]*C+0)/255;u.setRGB(S,g,b,Va.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(Z.normal_x!==void 0){const _=s.fields.indexOf("normal_x"),S=s.fields.indexOf("normal_y"),g=s.fields.indexOf("normal_z");m.push(this._getDataView(M,s.points*Z.normal_x+s.size[_]*C,s.type[_],s.size[_])),m.push(this._getDataView(M,s.points*Z.normal_y+s.size[S]*C,s.type[S],s.size[S])),m.push(this._getDataView(M,s.points*Z.normal_z+s.size[g]*C,s.type[g],s.size[g]))}if(Z.intensity!==void 0){const _=s.fields.indexOf("intensity");v.push(this._getDataView(M,s.points*Z.intensity+s.size[_]*C,s.type[_],s.size[_]))}if(Z.label!==void 0){const _=s.fields.indexOf("label");y.push(M.getInt32(s.points*Z.label+s.size[_]*C,this.littleEndian))}}}if(s.data==="binary"){const R=new DataView(n,s.headerLen),E=s.offset;for(let q=0,O=0;q<s.points;q++,O+=s.rowSize){if(E.x!==void 0){const M=s.fields.indexOf("x"),Z=s.fields.indexOf("y"),C=s.fields.indexOf("z");c.push(this._getDataView(R,O+E.x,s.type[M],s.size[M])),c.push(this._getDataView(R,O+E.y,s.type[Z],s.size[Z])),c.push(this._getDataView(R,O+E.z,s.type[C],s.size[C]))}if(E.rgb!==void 0){const M=R.getUint8(O+E.rgb+2)/255,Z=R.getUint8(O+E.rgb+1)/255,C=R.getUint8(O+E.rgb+0)/255;u.setRGB(M,Z,C,Va.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(E.normal_x!==void 0){const M=s.fields.indexOf("normal_x"),Z=s.fields.indexOf("normal_y"),C=s.fields.indexOf("normal_z");m.push(this._getDataView(R,O+E.normal_x,s.type[M],s.size[M])),m.push(this._getDataView(R,O+E.normal_y,s.type[Z],s.size[Z])),m.push(this._getDataView(R,O+E.normal_z,s.type[C],s.size[C]))}if(E.intensity!==void 0){const M=s.fields.indexOf("intensity");v.push(this._getDataView(R,O+E.intensity,s.type[M],s.size[M]))}E.label!==void 0&&y.push(R.getInt32(O+E.label,this.littleEndian))}}const w=new Va.BufferGeometry;c.length>0&&w.setAttribute("position",new Va.Float32BufferAttribute(c,3)),m.length>0&&w.setAttribute("normal",new Va.Float32BufferAttribute(m,3)),p.length>0&&w.setAttribute("color",new Va.Float32BufferAttribute(p,3)),v.length>0&&w.setAttribute("intensity",new Va.Float32BufferAttribute(v,1)),y.length>0&&w.setAttribute("label",new Va.Int32BufferAttribute(y,1)),w.computeBoundingSphere();const B=new Va.PointsMaterial({size:.005});return p.length>0&&(B.vertexColors=!0),new Va.Points(w,B)}}const af=L.useModelComp(L.pinia),{systemPath:ts}=L.storeToRefs(af),fi=a.ref(),ss=new WeakMap;function lf(l,n,r,o,s){const c=async B=>{try{const R=await L.platformDownloadFile({url:B});if(R.status!==200)throw new Error(`下载失败: ${R.status}`);return R.data}catch(R){throw console.error("addModelFromUrl失败:",R),R}},m=B=>new Promise((R,E)=>{const q=new FileReader;q.onload=O=>{try{const M=O.target.result,C=new On.MTLLoader().parse(M);C.preload(),R(C)}catch(M){E(M)}},q.onerror=()=>{E(new Error("MTL文件读取失败"))},q.readAsText(B)}),p=async B=>{const R={materials:{},create:function(E){return this.materials[E]?this.materials[E]:(console.warn(`Material '${E}' not found, using default material`),new Va.MeshPhongMaterial({color:8947848,side:Va.DoubleSide}))},getAsArray:function(){const E=[];for(const q in this.materials)E.push(this.materials[q]);return E},preload:function(){for(const E in this.materials)this.materials[E].map&&(this.materials[E].map.needsUpdate=!0)}};for(const E of B){const q=await m(E);Object.assign(R.materials,q.materials)}return R.preload(),R},v=async(B,R=[])=>new Promise((E,q)=>{const O=new FileReader;O.onload=async M=>{try{const Z=M.target.result;let C=null;R&&R.length>0&&(R.length===1?C=await m(R[0]):C=await p(R));const _=new On.OBJLoader;C&&_.setMaterials(C);const S=_.parse(Z);C||S.traverse(g=>{g.isMesh&&(g.material=new Va.MeshPhongMaterial({color:8947848,side:Va.DoubleSide}))}),E(S)}catch(Z){q(Z)}},O.onerror=()=>{q(new Error("OBJ文件读取失败"))},O.readAsText(B)}),y=async B=>{var R;try{r.value=!0;const{scene:E}=l();if(!E)throw new Error("Scene not initialized");s();const q=[];for(let O=0;O<B.length;O++){const M=B[O];o.value=`正在加载模型 ${O+1}/${B.length}...`;const Z=await c(M.objUrl),C=((R=M.objUrl)==null?void 0:R.split("/").pop())||`model_${O}.obj`,_=new File([Z],C,{type:Z.type});let S=[];if(M.mtlUrls){const b=Array.isArray(M.mtlUrls)?M.mtlUrls:[M.mtlUrls];for(let j=0;j<b.length;j++){const V=b[j],G=await c(V),fe=(V==null?void 0:V.split("/").pop())||`material_${O}_${j}.mtl`,Ne=new File([G],fe,{type:G.type});S.push(Ne)}}const g=await v(_,S);E.add(g),n.value.push(g),q.push(g)}return r.value=!1,q}catch(E){throw console.error("加载模型失败:",E),r.value=!1,E}},u=async(B,R,E=[],q=[])=>{let O;const M=B.toLowerCase();switch(M){case".txt":case".cpt":case".obj":const Z=await R.text();if(M===".txt"||M===".cpt"){const le=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ve=[...Z.matchAll(le)].map(ze=>({x:parseFloat(ze[1]),y:parseFloat(ze[2]),z:parseFloat(ze[3])})),_a=new Va.BufferGeometry,Fe=Ve.flatMap(ze=>[ze.x,ze.y,ze.z]);if(_a.setAttribute("position",new Va.Float32BufferAttribute(Fe,3)),M===".txt"){const ze=new Va.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});O=new Va.Points(_a,ze)}else if(M===".cpt"){const ze=new Va.LineBasicMaterial({color:"#5B5C99",linewidth:100});O=new Va.Line(_a,ze)}}else if(M===".obj"){const le=new On.OBJLoader;if(E&&E.length>0){const la=new On.MTLLoader;for(const Ve of E){const _a=await Ve.text(),Fe=la.parse(_a);Fe.preload(),le.setMaterials(Fe);break}}O=le.parse(Z),(!E||E.length===0)&&O.traverse(la=>{la.isMesh&&(la.material=new Va.MeshPhongMaterial({color:"#B3B3D4"})),la instanceof Va.Mesh&&(la.material.side=Va.DoubleSide)})}break;case".stl":const C=await R.arrayBuffer(),S=new On.STLLoader().parse(C),g=new Va.MeshPhongMaterial({color:"#B3B3D4",side:Va.DoubleSide});O=new Va.Mesh(S,g);break;case".nc":const b=["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"],j={"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 Va.Group,G=b.map(le=>new Promise((la,Ve)=>{new On.STLLoader().load(ts.value===""?`/model/${le}`:`${ts.value}\\${le}`,Fe=>{const ze=new Va.MeshPhongMaterial({color:j[le]||"#B3B3D4",side:Va.DoubleSide}),$e=new Va.Mesh(Fe,ze);la($e)},void 0,Ve)}));try{(await Promise.all(G)).forEach(la=>V.add(la)),O=V}catch(le){throw console.error("加载NC文件对应的STL文件失败:",le),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const fe=new ef,Ne=new Va.Group;try{const le=await el.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),la=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"}),Ve=await el.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),_a=new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"}),Fe=await new Promise(($e,Ze)=>{const Xa=URL.createObjectURL(la);fe.load(Xa,qa=>{const F=new Float32Array(qa.geometry.attributes.position.count*3);for(let P=0;P<qa.geometry.attributes.position.count;P++)F[P*3]=1,F[P*3+1]=0,F[P*3+2]=0;qa.geometry.setAttribute("color",new Va.BufferAttribute(F,3)),qa.material.vertexColors=!0,qa.scale.set(.3,.3,.3),URL.revokeObjectURL(Xa),$e(qa)},void 0,Ze)}),ze=await new Promise(($e,Ze)=>{const Xa=URL.createObjectURL(_a);fe.load(Xa,qa=>{const F=new Float32Array(qa.geometry.attributes.position.count*3);for(let P=0;P<qa.geometry.attributes.position.count;P++)F[P*3]=0,F[P*3+1]=1,F[P*3+2]=0;qa.geometry.setAttribute("color",new Va.BufferAttribute(F,3)),qa.material.vertexColors=!0,qa.scale.set(.3,.3,.3),URL.revokeObjectURL(Xa),$e(qa)},void 0,Ze)});Ne.add(Fe),Ne.add(ze),O=Ne}catch(le){throw console.error("PCD文件加载失败:",le),new Error("无法加载PCD文件")}break;case".urdf":const Se=URL.createObjectURL(R),Q=new Cu.URDFLoader,ge="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",J={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},ue=new WeakMap,Ue=new WeakMap,Ba=new WeakMap,ne=async le=>{if(ue.has(le))return console.log(`从缓存加载: ${le}`),ue.get(le);try{const la=await el.axios.get(`${ge}/${le}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ve=new Blob([la.data],{type:"application/octet-stream;charset=UTF-8"});return J.enableCache&&ue.set(le,Ve),Ve}catch(la){throw console.error(`加载文件失败: ${le}`,la),new Error(`无法加载文件: ${le}`)}},D=(le="default")=>{if(Ue.has(le))return Ue.get(le);const la=new Va.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Va.FrontSide});return Ue.set(le,la),la},re=le=>{try{le.isBufferGeometry&&le.mergeVertices&&le.mergeVertices(),le.computeVertexNormals&&le.computeVertexNormals(),le.computeBoundingSphere&&le.computeBoundingSphere(),le.deleteAttribute&&le.deleteAttribute("uv2")}catch(la){console.warn("几何体优化失败,使用原始几何体:",la)}return le},ke=async(le,la,Ve)=>{const _a=`stl_${la}`;if(Ba.has(_a)){const Ze=Ba.get(_a);return new Va.Mesh(Ze,D())}const Fe=await le.arrayBuffer();let $e=new On.STLLoader(Ve).parse(Fe);return $e=re($e),Ba.set(_a,$e),new Va.Mesh($e,D())},de=async(le,la,Ve)=>{const _a=`obj_${la}`;if(ue.has(_a))return ue.get(_a).clone();const Fe=await le.text(),ze=new On.OBJLoader(Ve),$e=la.replace(".obj",".mtl");try{const qa=await(await ne($e)).text(),P=new On.MTLLoader(Ve).parse(qa);P.preload(),ze.setMaterials(P)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${$e}`)}const Ze=ze.parse(Fe);return Ze.traverse(Xa=>{Xa.isMesh&&(Xa.geometry=re(Xa.geometry),Xa.castShadow=!0,Xa.receiveShadow=!0,Xa.renderOrder=1)}),ue.set(_a,Ze),Ze},De=(le,la)=>{const Ve=new Va.LOD;if(Ve.addLevel(le,0),le.geometry){const _a=le.geometry.clone(),Fe=new Va.Mesh(_a,le.material);Ve.addLevel(Fe,50)}return Ve};let ha=0,Sa=0;const Ja=[];Q.loadMeshCb=async(le,la,Ve,_a,Fe)=>{const ze=le.split("/").pop(),$e=Ve||(()=>{});ha++;const Ze=new Promise(async(Xa,qa)=>{try{const F=await ne(ze);if(!F||F.size===0)throw new Error(`文件为空: ${ze}`);const P=ze.split(".").pop().toLowerCase();let X;switch(P){case"stl":X=await ke(F,ze,la);break;case"obj":X=await de(F,ze,la);break;default:throw new Error(`不支持的文件格式: ${P}`)}J.enableLOD&&X.isMesh&&(X=De(X,ze)),$e(X),Sa++,_a&&_a({loaded:Sa,total:ha,progress:Sa/ha}),Xa(X)}catch(F){console.error(`mesh文件加载失败: ${ze}`,F);const P=new Va.Group;$e(P),Xa(P);const X=new Va.BoxGeometry(.1,.1,.1),te=new Va.MeshStandardMaterial({color:16711680,wireframe:!0});return new Va.Mesh(X,te)}});Ja.push(Ze)};try{if(!Se){fi.value=void 0;break}if(O=await Q.loadAsync(Se),console.log(`URDF文件加载完成,等待${ha}个mesh文件加载...`),Ja.length>0)try{await Promise.allSettled(Ja),console.log(`所有mesh文件处理完成,成功加载: ${Sa}/${ha}`)}catch(Ve){console.warn("部分mesh文件加载失败,但继续显示模型",Ve)}O.traverse(Ve=>{Ve.isMesh&&(Ve.castShadow=!0,Ve.receiveShadow=!0,Ve.renderOrder=1,Ve.material&&(Ve.material.needsUpdate=!0))}),console.time("计算包围盒");const le=new Va.Box3;le.expandByObject(O);const la=`urdf_${Date.now()}`;O.userData.boundingBox=le.clone(),O.userData.modelId=la,ss.set(la,{box:le.clone(),center:le.getCenter(new Va.Vector3),size:le.getSize(new Va.Vector3),maxSize:Math.max(...le.getSize(new Va.Vector3).toArray())}),fi.value=O,console.log("URDF模型加载完成并优化")}catch(le){console.error("URDF加载失败:",le),fi.value=void 0}finally{Se&&URL.revokeObjectURL(Se)}break;default:throw new Error(`不支持的文件格式: ${B}`)}return O};return{addModelsFromUrls:y,loadModelByDefaultPath:async B=>{console.log(B);try{r.value=!0,o.value="正在加载模型...";const{scene:R}=l();if(!R)throw new Error("Scene not initialized");s(),await new Promise(q=>setTimeout(q,100));const E=[];for(let q=0;q<B.length;q++){const O=B[q],M=await u(O.suffix,O.blob,O.mtlBlobs||[],O.meshFiles||[]);M&&(R.add(M),n.value.push(M),E.push(M))}return r.value=!1,o.value="",E}catch(R){throw console.error("加载模型失败:",R),r.value=!1,o.value="",R}},urdfModel:fi,modelBoundingBoxes:ss}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var n=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var o,s,c,m,p,v=function(w,B){B.parentNode.insertBefore(w,B)};if(n&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(w){console&&console.log(w)}}o=function(){var w,B=document.createElement("div");B.innerHTML=l._iconfont_svg_string_4827314,(B=B.getElementsByTagName("svg")[0])&&(B.setAttribute("aria-hidden","true"),B.style.position="absolute",B.style.width=0,B.style.height=0,B.style.overflow="hidden",B=B,(w=document.body).firstChild?v(B,w.firstChild):w.appendChild(B))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),o()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(c=o,m=l.document,p=!1,u(),m.onreadystatechange=function(){m.readyState=="complete"&&(m.onreadystatechange=null,y())})}function y(){p||(p=!0,c())}function u(){try{m.documentElement.doScroll("left")}catch{return void setTimeout(u,50)}y()}})(window);const rf=["onClick"],nf=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(null),m=S=>{if(Array.isArray(S)&&S.length>=3){const[g,b,j,V]=S;return V!==void 0?`rgba(${g}, ${b}, ${j}, ${V})`:`rgb(${g}, ${b}, ${j})`}if(typeof S=="string"){const g=S.trim();if(g.startsWith("[")&&g.endsWith("]")){const b=g.slice(1,-1).split(",").map(j=>Number(j.trim()));if(b.length>=3&&b.every(j=>!Number.isNaN(j))){const[j,V,G,fe]=b;return fe!==void 0?`rgba(${j}, ${V}, ${G}, ${fe})`:`rgb(${j}, ${V}, ${G})`}}return g}},p=a.computed(()=>{const S=Number(r==null?void 0:r.textSize),g=m(r==null?void 0:r.textColor),b={},j={};return!Number.isNaN(S)&&S&&(b.fontSize=`${S}px`,j.fontSize=`${S}px`),g&&(b.color=g,j.color=g),{label:b,value:j}}),v=a.ref(""),y=a.ref(""),u=a.ref(!1),w=async S=>{if(S){y.value&&(URL.revokeObjectURL(y.value),y.value="");try{const g=await L.platformDownloadFile({url:S}),b=new Blob([g==null?void 0:g.data],{type:(g==null?void 0:g.headers["content-type"])||"image/*"});y.value=URL.createObjectURL(b)}catch{y.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,S=>{S&&(v.value=S)},{immediate:!0}),a.watch(v,S=>{w(S)},{immediate:!0});const B=()=>{var S;(S=c.value)==null||S.click()},R=async S=>{var j,V,G;const g=S.target,b=(j=g==null?void 0:g.files)==null?void 0:j[0];if(!b){g.value="";return}u.value=!0;try{const fe=new FormData;fe.append("file",b);const Ne=await L.platformUploadFile(fe),Se=(G=(V=Ne==null?void 0:Ne.data)==null?void 0:V.result)==null?void 0:G.url;Se?(v.value=Se,o("update:backGroundImage",Se),w(Se),el.ElMessage.success("背景图片上传成功")):el.ElMessage.error("背景图片上传失败")}catch{el.ElMessage.error("背景图片上传失败")}finally{u.value=!1,g.value=""}},E=a.computed(()=>y.value?{backgroundImage:`url(${y.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),q=S=>dl.getComponent(S),O=S=>{if(!S)return;const g=S.querySelector("input, textarea, .el-input__inner");g&&typeof g.focus=="function"&&g.focus()},M=(S,g,b)=>{r.disabled||S.field&&(s.value=g,a.nextTick(()=>{O(b.currentTarget)}))},Z=()=>{s.value=null},C=S=>{var b;const g=((b=S==null?void 0:S.field)==null?void 0:b.value)??(S==null?void 0:S.value);return g==null||g===""?"-":g},_=S=>{const g=S!=null&&S.width&&S.width>0?S.width:1,j=`calc((100% - ${(g-1)*16}px) / ${g})`;return{flex:`0 0 ${j}`,maxWidth:j,minWidth:"140px",boxSizing:"border-box"}};return(S,g)=>(a.openBlock(),a.createElementBlock("div",{class:"statistics-cards-container",style:a.normalizeStyle(E.value),onClick:g[2]||(g[2]=b=>(r==null?void 0:r.backGround)==="Yes"&&B())},[(r==null?void 0:r.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:g[0]||(g[0]=a.withModifiers(b=>B(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:R},null,544),g[3]||(g[3]=a.createElementVNode("img",{src:dl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.items,(b,j)=>{var V,G,fe,Ne,Se,Q,ge,J;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:j,style:a.normalizeStyle(_(b)),onClick:g[1]||(g[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(p.value.label)},a.toDisplayString(b==null?void 0:b.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(p.value.value),onClick:ue=>M(b,j,ue)},[s.value===j&&b.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(q(((V=b.field)==null?void 0:V.type)??"Input")),{key:0,modelValue:b.field.value,"onUpdate:modelValue":ue=>b.field.value=ue,isEdit:!0,disabled:(G=b.field)==null?void 0:G.disabled,content:((fe=b.field)==null?void 0:fe.contents)??[],optionUrl:b.field,originalValue:(Ne=b.field)==null?void 0:Ne.value,config:(Se=b.field)==null?void 0:Se.config,configModel:((Q=b.field)==null?void 0:Q.prop)??((ge=b.field)==null?void 0:ge.name),selectedTagList:((J=b.field)==null?void 0:J.selectValue)??[],onBlur:Z,onBlurChange:Z},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C(b)),1)],64))],12,rf)],4)}),128))],4))}}),of=Jl._export_sfc(nf,[["__scopeId","data-v-423d9eb1"]]),ac=L.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),tf={class:"calculator-content"},sf={class:"calculator-child"},cf={class:"calculator-child"},uf=a.defineComponent({__name:"calculator",setup(l){const n=a.ref(),r=a.ref();return a.onMounted(()=>{n.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(o,s)=>(a.openBlock(),a.createElementBlock("div",tf,[a.createElementVNode("div",sf,[a.createVNode(dl.ssForm,{rowContents:n.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",cf,[a.createVNode(dl.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),df=Jl._export_sfc(uf,[["__scopeId","data-v-73db0fe7"]]),ht=(l,n)=>{let r=l,o=n;return Array.isArray(r)&&(r=r==null?void 0:r.map((s,c)=>{if(Array.isArray(s)){let m={};return s=s==null?void 0:s.forEach((p,v)=>{var y;(y=o==null?void 0:o[v])!=null&&y.prop?m[o[v].prop]=p:Array.isArray(p)&&(m.children=ht(p,o))}),Object.assign(m,{id:c})}else return s})),r},lc=(l,n,r)=>{let o=l,s=n;return o=o==null?void 0:o.map((c,m)=>{var p,v;return!Array.isArray(c)||!((p=s==null?void 0:s[m])!=null&&p.label)&&!r||(c.unshift(((v=s==null?void 0:s[m])==null?void 0:v.label)??""),c.some(y=>Array.isArray(y))&&(c=c==null?void 0:c.map(y=>{var u;return Array.isArray(y)&&(y=lc(y,(u=s==null?void 0:s[m])==null?void 0:u.children,r)),y}))),c}),o},pf=(l,n,r)=>{if(n==="")return l==null?void 0:l.filter(o=>(o==null?void 0:o.id)!==r);{const o=n.split("-");return ff(l,o,r)}},ff=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=o==null?void 0:o.filter(c=>c.id!==r):o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=rc(c,s,r)),c)),o},rc=(l,n,r)=>{var c,m;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=(c=o.children)==null?void 0:c.filter(p=>p.id!==r):o.children=(m=o.children)==null?void 0:m.map(p=>(p.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),p=rc(p,s,r)),p)),o},hf=(l,n,r)=>{if(n==="")return r;{const o=n.split("-");return vf(l,o,r)}},vf=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=r:o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=nc(c,s,r)),c)),o},nc=(l,n,r)=>{var c;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=r:o.children=(c=o.children)==null?void 0:c.map(m=>(m.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),m=nc(m,s,r)),m)),o};class mf{constructor(n={}){qr(this,"url");qr(this,"heartbeatInterval");qr(this,"socket",null);qr(this,"isConnected",!1);qr(this,"heartTimer",null);qr(this,"canvas",null);qr(this,"ctx",null);qr(this,"mainCamCutMode",0);qr(this,"pMainShowStartX",0);qr(this,"pMainShowStartY",0);qr(this,"onLog");qr(this,"onDevCount");qr(this,"onResolution");qr(this,"onCameraStatus");qr(this,"onPhoto");this.url=n.url??"ws://127.0.0.1:22225",this.heartbeatInterval=n.heartbeatInterval??3e3}init(n,r,o){var m;(m=this.canvas)!=null&&m.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=r,s.height=o;const c=s.getContext("2d");if(!c)throw new Error("无法获取 CanvasRenderingContext2D");n.appendChild(s),this.canvas=s,this.ctx=c}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((n,r)=>{const o=new WebSocket(this.url);o.binaryType="arraybuffer",o.onopen=()=>{this.socket=o,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),n()},o.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),r(s)},o.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},o.onmessage=s=>{this.handleMessage(s)}})}destroy(){var n;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(n=this.canvas)!=null&&n.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(n=0){this.sendBytes(new Uint8Array([119,136,81,n]))}chooseResolution(n){if(!Array.isArray(n)||n.length===0)return null;const r=n.find(s=>s.width===2592&&s.height===1944);return r||[...n].sort((s,c)=>c.width*c.height-s.width*s.height)[0]||null}openCamera(n=0,r=1280,o=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=n,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=r>>8&255,s[9]=r&255,s[10]=o>>8&255,s[11]=o&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(n){var r;(r=this.onLog)==null||r.call(this,n)}sendBytes(n){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(n.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(n){var s,c,m,p,v,y;const r=new Uint8Array(n.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const o=r[2];if(o===80){const u=r[3],w=r.length-4,B=new Uint8Array(w);for(let q=0;q<w;q++)B[q]=r[4+q];const E=decodeURIComponent(this.byteToString(B)).split("|");(s=this.onDevCount)==null||s.call(this,u,E);return}if(o===81){const u=r[3]||0,w=[];for(let B=0;B<u;B++){const R=(r[4+B*4+0]||0)*256+(r[4+B*4+1]||0),E=(r[4+B*4+2]||0)*256+(r[4+B*4+3]||0);w.push({width:R,height:E,text:`${R}*${E}`})}(c=this.onResolution)==null||c.call(this,u,w);return}if(o===1){r[3]===1&&((m=this.onCameraStatus)==null||m.call(this,"opened")),r[3]===3&&((p=this.onCameraStatus)==null||p.call(this,"closed"));return}if(o===16){if(r[3]===1){const w=r[4]*256+r[5],B=r[6]*65536+r[7]*256+r[8];let R="";if(w>0){const O=new Uint8Array(w);for(let M=0;M<w;M++)O[M]=r[9+M];R=decodeURIComponent(this.byteToString(O))}const E=new Uint8Array(B);for(let O=0;O<B;O++)E[O]=r[9+w+O];const q=this.uint8ArrayToString(E);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:R,base64:q})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(o===204){if(!this.canvas||!this.ctx)return;const u=r[3]*256+r[4],w=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const B=this.ctx.createImageData(u,w);let R=11;for(let E=0;E<B.data.length;E+=4)B.data[E+0]=r[R],B.data[E+1]=r[R+1],B.data[E+2]=r[R+2],B.data[E+3]=255,R+=3;this.ctx.putImageData(B,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}byteToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}}const yf={style:{display:"flex",gap:"16px",height:"100%"}},gf={key:0,style:{color:"var(--el-text-color-secondary)"}},bf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},kf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},xf={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"auto",padding:"8px"}},wf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},_f={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Cf=["src","onClick"],Sf=["onClick"],Ef={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Df={class:"dialog-footer"},Bf=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(!1),m=a.ref([]),p=a.ref(""),v=a.ref(!1),y=a.ref([]),u=new mf({url:"ws://127.0.0.1:22225"});function w(V,G){var J;const fe=V.split(","),Ne=((J=fe[0].match(/:(.*?);/))==null?void 0:J[1])??"image/jpeg",Se=atob(fe[1]);let Q=Se.length;const ge=new Uint8Array(Q);for(;Q--;)ge[Q]=Se.charCodeAt(Q);return new File([ge],G,{type:Ne})}function B(){u.onLog=V=>{console.log("[GPY]",V)},u.onDevCount=(V,G)=>{if(p.value+=`设备数量=${V},设备=${G.join(",")}
4
- `,V>0){p.value+=`检测到设备,正在获取分辨率...
5
- `;try{u.getResolution(0)}catch(fe){p.value+=`获取分辨率失败:${(fe==null?void 0:fe.message)??fe}
6
- `}}else p.value+=`未检测到高拍仪设备!
7
- `},u.onResolution=(V,G)=>{if(V<=0||!Array.isArray(G)||G.length===0){p.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
- `;try{u.openCamera(0,1280,720)}catch(Ne){p.value+=`打开摄像头失败:${(Ne==null?void 0:Ne.message)??Ne}
9
- `}return}const fe=u.chooseResolution(G);if(!fe){p.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
- `;try{u.openCamera(0,1280,720)}catch(Ne){p.value+=`打开摄像头失败:${(Ne==null?void 0:Ne.message)??Ne}
11
- `}return}p.value+=`获取分辨率 ${fe.text}成功,打开摄像头...
12
- `;try{u.closeCamera(),setTimeout(()=>{try{u.openCamera(0,fe.width,fe.height)}catch(Ne){p.value+=`打开摄像头失败:${(Ne==null?void 0:Ne.message)??Ne}
13
- `}},100)}catch{try{u.openCamera(0,fe.width,fe.height)}catch(Ne){p.value+=`打开摄像头失败:${(Ne==null?void 0:Ne.message)??Ne}
14
- `}}},u.onCameraStatus=V=>{V==="opened"?(c.value=!0,p.value+=`摄像头已打开
15
- `):(c.value=!1,p.value+=`摄像头已关闭
16
- `)},u.onPhoto=V=>{if(V.flag===0&&V.base64){const G=`data:image/jpeg;base64,${V.base64}`,fe=w(G,`gpy-capture-${Date.now()}.jpg`);m.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:G,file:fe}),p.value+=`拍照完成,已接收图片(当前 ${m.value.length} 张)
17
- `}else p.value+=`拍照失败 flag=${V.flag}
18
- `}}const R=async()=>{if(await a.nextTick(),!s.value)return;E(),B();const V=s.value.getBoundingClientRect();u.init(s.value,Math.floor(V.width),Math.floor(V.height)),p.value+=`正在连接设备服务...
19
- `,await u.connect(),p.value+=`正在获取设备数量...
20
- `,u.getDevCount()},E=()=>{try{u.destroy()}catch(V){console.error(V)}c.value=!1,m.value=[],p.value="",v.value=!1,y.value=[]};a.watch(()=>r.visible,V=>{V?R():E()});const q=()=>{try{u.bestSize()}catch(V){console.error(V)}},O=()=>{try{u.rotateLeft()}catch(V){console.error(V)}},M=()=>{try{u.rotateRight()}catch(V){console.error(V)}},Z=()=>{try{u.focus()}catch(V){console.error(V)}},C=()=>{p.value+=`正在拍照...
21
- `;try{u.photo()}catch(V){p.value+=`拍照调用失败:${(V==null?void 0:V.message)??V}
22
- `}},_=()=>{m.value.length>0?o("confirm",m.value.map(V=>V.file)):o("confirm",[])},S=V=>{V<0||V>=m.value.length||(m.value.splice(V,1),p.value+=`已删除一张图片(剩余 ${m.value.length} 张)
23
- `)},g=V=>{if(!V)return;const G=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:G,blobUrl:V}],v.value=!0},b=()=>{v.value=!1},j=()=>{E(),o("cancel")};return(V,G)=>{const fe=a.resolveComponent("el-input"),Ne=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(xr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:j,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",yf,[a.createElementVNode("div",{ref_key:"cameraBox",ref:s,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[c.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",gf,"初始化摄像头..."))],512),a.createElementVNode("div",bf,[a.createElementVNode("div",kf,[G[0]||(G[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",xf,[m.value.length===0?(a.openBlock(),a.createElementBlock("div",wf,"暂无图片")):(a.openBlock(),a.createElementBlock("div",_f,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(Se,Q)=>(a.openBlock(),a.createElementBlock("div",{key:Se.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:Se.url,onClick:ge=>g(Se.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,Cf),a.createElementVNode("div",{onClick:ge=>S(Q),style:{position:"absolute",top:"4px",right:"4px",width:"18px",height:"18px","border-radius":"50%",background:"rgba(0,0,0,0.55)",color:"#fff",display:"flex","align-items":"center","justify-content":"center",cursor:"pointer","font-size":"12px"},title:"删除"},"×",8,Sf)]))),128))]))],512)]),a.createElementVNode("div",Ef,[G[1]||(G[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(fe,{type:"textarea",value:p.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Df,[a.createVNode(Ne,{onClick:q,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[2]||(G[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Ne,{onClick:O,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[3]||(G[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Ne,{onClick:M,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[4]||(G[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Ne,{onClick:Z,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[5]||(G[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Ne,{onClick:C,disabled:!c.value,id:"themeButton"},{default:a.withCtx(()=>G[6]||(G[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),G[9]||(G[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(Ne,{onClick:_,disabled:m.value.length===0,id:"themeButton"},{default:a.withCtx(()=>G[7]||(G[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Ne,{onClick:j,id:"themeBorderButton"},{default:a.withCtx(()=>G[8]||(G[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:b},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),Nf=Jl._export_sfc(Bf,[["__scopeId","data-v-24a2050a"]]);function oc(l){return el.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function Tf(l){return el.axios.get(l,{responseType:"blob"})}const cs=L.useMenuState(L.pinia),Af=async l=>{var c,m,p,v,y,u;let n=l==null?void 0:l.导入文件,r=l==null?void 0:l.函数参数,o=(c=n==null?void 0:n[0])==null?void 0:c.url,s="";if(!(o!=null&&o.includes("http"))||!(o!=null&&o.includes("https"))){cs.setContentLoading(!0);const w=await L.platformDownloadFile({url:o});let B=w==null?void 0:w.data;const R=new FormData;R.append("file",B,((m=n==null?void 0:n[0])==null?void 0:m.name)+"."+((p=o==null?void 0:o.split("."))==null?void 0:p[1])),R.append("query",r);let E=await oc(R);E=(u=(y=(v=E==null?void 0:E.data)==null?void 0:v.data)==null?void 0:y.response)==null?void 0:u.replace("generateResult",l==null?void 0:l.函数名称),s=E,cs.setContentLoading(!1)}return s},Ct=L.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),Ei={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},us={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class zf{constructor(n){qr(this,"config");this.config={...us,...n}}updateConfig(n){this.config={...this.config,...n}}getConfig(){return{...this.config}}validateFileSize(n){const r=this.config.maxSize*1024*1024;return n.size<=r}validateFileType(n){return n.type.startsWith("image/")||n.type==="application/pdf"}getAuthorizationToken(){const n=el.Local.get(el.accessTokenKey);return n?`Bearer ${n}`:""}buildOCRRequest(n,r){return{title:r,form:{OCR图片文件:n}}}async recognize(n,r){const o=this.getAuthorizationToken(),s=this.buildOCRRequest(n,r),c=this.config.apiUrl||us.apiUrl;return(await el.axios.post(c,s,{headers:{"Content-Type":"application/json",Authorization:o}})).data}getFieldAliases(n){return Ei[n]?Ei[n]:[n]}extractTableHeaders(n){const r=[],o=new Set,s=m=>{const p=m==null?void 0:m.label;return!(!p||p==="操作"||p===this.config.columnName||(m==null?void 0:m.type)==="operate"||(m==null?void 0:m.prop)==="operate")},c=m=>{(m||[]).forEach(p=>{if(!p)return;const v=(p==null?void 0:p.children)||(p==null?void 0:p.child)||(p==null?void 0:p.columns);if(Array.isArray(v)&&v.length>0){c(v);return}if(s(p)){const y=p.label;if(!o.has(y)){o.add(y);const u=this.getFieldAliases(y);r.push(u)}}})};return c(n||[]),r}}function ic(l){return new zf(l)}ic();const vt=async(l,n)=>{var m,p,v,y,u,w,B,R,E,q,O,M,Z,C,_,S,g;let r=(p=(m=L.cloneDeep(l))==null?void 0:m.optionUrl)==null?void 0:p.menuSelect,o=[];r==null||r.forEach(b=>{});let s="",c=await ca.menuToParent(r);if(c==null||c.forEach(b=>{var j,V,G,fe;(b==null?void 0:b.name)===(((fe=(G=(V=(j=L.cloneDeep(l))==null?void 0:j.optionUrl)==null?void 0:V.groupSelect)==null?void 0:G[0])==null?void 0:fe.replaceAll("'",""))??"")&&(s=b==null?void 0:b.id)}),n){s=n;const b=await _r.getInsofDataApi({id:s}),j=(w=(u=(y=(v=b==null?void 0:b.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:u.key)==null?void 0:w.pageKey;c=await ca.getItemData(j,sessionStorage.getItem("systemKey"),"")}if(s!==""){let b;n?b=(B=c==null?void 0:c.find(G=>(G==null?void 0:G.id)===n))==null?void 0:B.compData:b=(R=c==null?void 0:c.find(G=>{var fe,Ne,Se,Q;return(G==null?void 0:G.name)===(((Ne=(fe=l==null?void 0:l.groupSelect)==null?void 0:fe.split(":"))==null?void 0:Ne[0])||((Q=(Se=l==null?void 0:l.optionUrl)==null?void 0:Se.groupSelect)==null?void 0:Q[0]))}))==null?void 0:R.compData;let j=(q=(E=b==null?void 0:b.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:E.contents)==null?void 0:q.map(G=>G==null?void 0:G.label);(M=(O=b==null?void 0:b.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:O.contents)!=null&&M.every(G=>Array.isArray(G))&&(j=(_=ca.getColumnChild((C=(Z=b==null?void 0:b.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:Z.contents)==null?void 0:C[0]))==null?void 0:_.map(G=>G==null?void 0:G.prop));let V=(g=(S=b==null?void 0:b.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:S.contents)==null?void 0:g.map(G=>{if(Array.isArray(G))G=G==null?void 0:G.filter(fe=>!(fe!=null&&fe.id));else{let fe={};for(let Ne in G)Ne!=="id"&&(fe[Ne]=G==null?void 0:G[Ne]);G=fe}return G});V==null||V.forEach(G=>{Array.isArray(G)?o.push(ca.getValueToObjectValue(G,j)):o.push(G)})}return o},Mf=L.useMenuState(L.pinia),{activeMenuPath:$6}=L.storeToRefs(Mf),If=L.useUnit(L.pinia),{chooseTitle:V6}=L.storeToRefs(If),Of="col-operate",St=l=>`${Of}-${l}`,Lf=(l,n)=>{const r=new Map;l.forEach(s=>{const{prop:c}=s;r.set(c,s)});const o=s=>{Array.isArray(s)&&s.forEach(c=>{const{prop:m}=c||{},p=r.get(m);Rf(p,c),Array.isArray(c==null?void 0:c.children)&&c.children.length>0&&o(c.children)})};return o(n),n},Rf=(l,n)=>(l&&(n.sortable=l==null?void 0:l.sortable,n.filterable=l==null?void 0:l.filterable,n.showSummary=l==null?void 0:l.showSummary,n.operable=l==null?void 0:l.operable,n.fixed=l==null?void 0:l.fixed),n),$f=(l,n)=>{const{sortable:r=!1,filterable:o=!1,showSummary:s=!1,operable:c=!1,fixed:m=!1}=n||{};return{prop:l,sortable:r,filterable:o,showSummary:s,operable:c,fixed:m}},Vf=async l=>{var c,m;if(!l)return;const n=St(l),r=await _r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),o=(c=r==null?void 0:r.data)==null?void 0:c.code,s=(m=r==null?void 0:r.data)==null?void 0:m.result;if(o==200)return s==null?void 0:s[0]},Pf=async l=>{var c,m,p,v;if(!l)return;const n=St(l),r=await _r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),o=(c=r==null?void 0:r.data)==null?void 0:c.code,s=(m=r==null?void 0:r.data)==null?void 0:m.result;return o==200?(v=(p=s==null?void 0:s[0])==null?void 0:p.value)==null?void 0:v.columns:[]},Ff=async(l,n)=>{if(!l||!n)return;const r=St(l);return await _r.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:n}})},jf=async(l,n)=>!l||!n?void 0:await _r.updateInsofDataApi({id:l,value:{columns:n}}),ds=async(l,n)=>{const r=sessionStorage.getItem("systemKey");if(!l||!n||!r)return;const o=await Vf(l);return o?await jf(o==null?void 0:o.id,n):await Ff(l,n)};var bi={exports:{}},Hf=bi.exports,ps;function Uf(){return ps||(ps=1,function(l,n){(function(r,o){o()})(Hf,function(){function r(y,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function o(y,u,w){var B=new XMLHttpRequest;B.open("GET",y),B.responseType="blob",B.onload=function(){v(B.response,u,w)},B.onerror=function(){console.error("could not download file")},B.send()}function s(y){var u=new XMLHttpRequest;u.open("HEAD",y,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function c(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(u)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof $n.commonjsGlobal=="object"&&$n.commonjsGlobal.global===$n.commonjsGlobal?$n.commonjsGlobal:void 0,p=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(y,u,w){var B=m.URL||m.webkitURL,R=document.createElement("a");u=u||y.name||"download",R.download=u,R.rel="noopener",typeof y=="string"?(R.href=y,R.origin===location.origin?c(R):s(R.href)?o(y,u,w):c(R,R.target="_blank")):(R.href=B.createObjectURL(y),setTimeout(function(){B.revokeObjectURL(R.href)},4e4),setTimeout(function(){c(R)},0))}:"msSaveOrOpenBlob"in navigator?function(y,u,w){if(u=u||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(r(y,w),u);else if(s(y))o(y,u,w);else{var B=document.createElement("a");B.href=y,B.target="_blank",setTimeout(function(){c(B)})}}:function(y,u,w,B){if(B=B||open("","_blank"),B&&(B.document.title=B.document.body.innerText="downloading..."),typeof y=="string")return o(y,u,w);var R=y.type==="application/octet-stream",E=/constructor/i.test(m.HTMLElement)||m.safari,q=/CriOS\/[\d]+/.test(navigator.userAgent);if((q||R&&E||p)&&typeof FileReader<"u"){var O=new FileReader;O.onloadend=function(){var C=O.result;C=q?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),B?B.location.href=C:location=C,B=null},O.readAsDataURL(y)}else{var M=m.URL||m.webkitURL,Z=M.createObjectURL(y);B?B.location=Z:location.href=Z,B=null,setTimeout(function(){M.revokeObjectURL(Z)},4e4)}});m.saveAs=v.saveAs=v,l.exports=v})}(bi)),bi.exports}Uf();const Jn=L.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(l){this.itemData=l},setCurStructureCompIds(l){this.curStructureCompIds=l},setRefreshCurStructure(l){this.isRefreshCurStructure=l},setOriginalData(l){this.originalData=l},setExtraContents(l){this.extraContents=l},setNodeDev(l){this.nodeDev=l},setIsEdit(l){this.isEdit=l},setSelectTab(l){this.selectTab=l}}}),qf=L.useLoginState(L.pinia),{loginUserInfo:it}=L.storeToRefs(qf),Wf=async l=>{var o,s,c;let n=await L.getAllTables({platId:parseInt((o=it==null?void 0:it.value)==null?void 0:o.plat_id),tableNames:[l]});return n=(c=(s=n==null?void 0:n.data)==null?void 0:s.result)==null?void 0:c[0],await ec(n,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:n}]}]},Kf=L.useLoginState(),{loginUserInfo:gl}=L.storeToRefs(Kf);let hi="$R";const Sr=L.useModelComp(L.pinia),tc=a.ref(!1),{itemData:Gf,itemGridData:ro,curStructureCompIds:fs,isSubmitCurStructure:Yf,routeToChildPath:Jf,pageMapState:mt,itemExtendData:vi,refreshTable:hs}=L.storeToRefs(Sr),Ii=Jn(L.pinia),Tr=L.useMenuState(L.pinia),rr=a.shallowRef([]),{asideMenus:Xf,activeTopMenuPath:Zf,activeMenuPath:xl,platform:P6,buttonTriggerType:Qf,currentMenuPath:Zr}=L.storeToRefs(Tr),dn=L.useUnit(L.pinia),{selectTitle:Kn,chooseTitle:Di}=L.storeToRefs(dn);a.ref();const Bo=a.ref(!0),Yn=a.ref(0),yt=a.ref([]);a.ref(!1);const Et=a.ref(!1),Ho=a.ref(),sc=a.ref(),cc=a.ref(),e0=()=>{Sr.setItemGridData([]),Sr.setIsEdit("edit"),Sr.setSubmitCurStructure(xl.value!=="/平台管理/菜单管理")},a0=()=>{Sr.setIsEdit("view"),Sr.setRefreshCurStructure(!0)},l0=async l=>{var s;let n=Kn.value,r=n==null?void 0:n.findIndex(c=>(c==null?void 0:c.value)===(l==null?void 0:l.value)),o=n==null?void 0:n.filter((c,m)=>m<=r);dn.setSelectTitle(dl.safeClone(o)),o=(s=o==null?void 0:o.map(c=>c==null?void 0:c.value))==null?void 0:s.join("/"),Tr.setActiveMenuPath(null),Tr.setActiveMenuPath(o)},tt=async(l,n,r,o="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let c,m;n==="create"?(c={dataList:l==null?void 0:l.map(v=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:o,parentTable:"",version:1},value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},m=_r.batchAddInsofDataApi):n==="update"?(c={dataList:l==null?void 0:l.map(v=>{var y;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},m=_r.batchUpdateInsofDataApi):n==="delete"&&(c={ids:l},m=_r.batchDeleteInsofDataApi);const p=await m(c);if(((s=p==null?void 0:p.data)==null?void 0:s.code)===200)return p.data.result;throw el.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{el.ElMessage.error("保存响应失败")}},vs=async(l,n,r,o)=>{var s,c,m,p,v,y,u,w,B,R,E;try{const q=(c=(s=l==null?void 0:l.results)==null?void 0:s.filter(S=>!(S!=null&&S.id)||typeof(S==null?void 0:S.id)=="string"))==null?void 0:c.map(S=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:n,relatedInfo:r},value:{tableData:S}})),O=(p=(m=l==null?void 0:l.results)==null?void 0:m.filter(S=>(S==null?void 0:S.id)&&typeof(S==null?void 0:S.id)=="number"))==null?void 0:p.map(S=>({id:S==null?void 0:S.id,value:{tableData:S}})),M=JSON.parse(JSON.stringify(l)),Z=(v=M==null?void 0:M.results)==null?void 0:v.map(S=>S.id);let C;r?C=(w=(u=(y=mt.value)==null?void 0:y[xl.value])==null?void 0:u.filter(S=>{var g,b,j;return((g=S==null?void 0:S.key)==null?void 0:g.type)===n&&((j=(b=S==null?void 0:S.key)==null?void 0:b.relatedInfo)==null?void 0:j.target)===o}))==null?void 0:w.map(S=>S==null?void 0:S.id):C=(E=(R=(B=mt.value)==null?void 0:B[xl.value])==null?void 0:R.filter(S=>{var g;return((g=S==null?void 0:S.key)==null?void 0:g.type)===n}))==null?void 0:E.map(S=>S==null?void 0:S.id);const _=C==null?void 0:C.filter(S=>!(Z!=null&&Z.includes(S))&&typeof S=="number");(q==null?void 0:q.length)>0&&await _r.batchAddInsofDataApi({dataList:q}),(O==null?void 0:O.length)>0&&await _r.batchUpdateInsofDataApi({dataList:O}),(_==null?void 0:_.length)>0&&await _r.batchDeleteInsofDataApi({ids:_})}catch(q){throw new Error(q)}},r0=async l=>{var y,u,w,B,R,E,q,O,M,Z;Tr.setContentLoading(!0);const n=JSON.parse(JSON.stringify(Gf.value));if(!Yf.value)return Tr.setCacheStructures({key:Qf.value,data:n}),el.ElMessage.success("已暂存");const r=n==null?void 0:n.map(C=>C.id),o=r.filter(C=>{var _;return!((_=fs.value)!=null&&_.includes(C))}),s=(y=fs.value)==null?void 0:y.filter(C=>!r.includes(C)),c=[...o,...s].filter(C=>typeof C!==null&&typeof C<"u"),m=n==null?void 0:n.filter(C=>!C.id),p=n==null?void 0:n.filter(C=>C.id);let v=[];if(c&&(c==null?void 0:c.length)>0&&v.push(tt(c,"delete",l)),m&&(m==null?void 0:m.length)>0&&v.push(tt(m,"create",l)),p&&(p==null?void 0:p.length)>0&&v.push(tt(p,"update",l)),ro.value&&((u=ro.value)!=null&&u.isDelete&&((B=(w=ro.value)==null?void 0:w.results)==null?void 0:B.length)>0&&((E=(R=ro.value)==null?void 0:R.results)!=null&&E.every(C=>typeof C=="number"))?await _r.batchDeleteInsofDataApi({ids:(q=ro.value)==null?void 0:q.results}):(console.log("itemGridData.value",ro.value),v.push(await vs(ro.value,"gridLayout")))),vi.value)for(const C in vi.value)v.push(await vs((O=vi.value)==null?void 0:O[C],"extend",{target:C,compId:(Z=(M=vi.value)==null?void 0:M[C])==null?void 0:Z.compId},C));await Promise.all(v).then(()=>{el.ElMessage.success("保存成功"),Sr.setRefreshCurStructure(!0)}).catch(C=>{el.ElMessage.success(C)}),Tr.setContentLoading(!1)},Uo=l=>No(l),n0=a.computed(()=>{var l;return(l=rr.value)==null?void 0:l.filter(n=>(n==null?void 0:n.affix)&&(n==null?void 0:n.affix)!=="default")}),uc=a.computed(()=>{var l;return(l=rr.value)==null?void 0:l.filter(n=>!(n!=null&&n.affix&&(n==null?void 0:n.affix)!=="default"))}),dc=a.ref(0),pc=a.ref(null),o0="ocr_committed_temp_ids_v1",i0=(l,n)=>`${o0}:${String(l??"")}:${String(n??"")}`,t0=(l,n,r)=>{try{const o=i0(l,n),s=sessionStorage.getItem(o),c=s?JSON.parse(s):[],m=Array.isArray(c)?c:[],p=Array.from(new Set([...m,...r||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(o,JSON.stringify(p))}catch{}},Bi=async(l,n="data",r)=>{var s,c,m,p,v,y,u,w,B,R,E,q,O,M,Z,C,_,S,g,b,j,V,G,fe,Ne,Se,Q,ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha,wa,ta,We,Qe,Ca,oe,_e,Pe,ie,Ka,vl,Wl,Wa;let o=((m=(c=(s=Kn.value)==null?void 0:s.filter(fa=>(fa==null?void 0:fa.condition)==="child"))==null?void 0:c[0])==null?void 0:m.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let fa=(p=l==null?void 0:l.fixContent)==null?void 0:p.map(me=>{let Ra={};for(let qe in me)Array.isArray(me==null?void 0:me[qe])?Ra[qe]=JSON.stringify(me==null?void 0:me[qe]):Ra[qe]=me==null?void 0:me[qe];return Ra}),va=await L.quoteApi({platId:parseInt((v=gl==null?void 0:gl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});va=(y=va==null?void 0:va.data)==null?void 0:y.result,va=va==null?void 0:va.filter(me=>{var Ra,qe;return!((me==null?void 0:me.fatherPath)!==""&&((qe=(Ra=me==null?void 0:me.quote)==null?void 0:Ra[0])==null?void 0:qe.menus)===(xl==null?void 0:xl.value))});let ba=va==null?void 0:va.map(me=>{var aa,Ge;let Ra={},qe=fa==null?void 0:fa[0],K;return Array.isArray((aa=me==null?void 0:me.struct)==null?void 0:aa[0])?K=ca.getColumnChild((Ge=me==null?void 0:me.struct)==null?void 0:Ge[0]):K=me==null?void 0:me.struct,K=K==null?void 0:K.filter(Be=>(Be==null?void 0:Be.prop)!=="relatedId"),K==null||K.forEach(Be=>{var Cl,tl;Ra[Be.prop]=((Cl=Be==null?void 0:Be.words)!=null&&Cl[0]?(qe==null?void 0:qe[(tl=Be==null?void 0:Be.words)==null?void 0:tl[0]])??(qe==null?void 0:qe[Be==null?void 0:Be.prop]):qe==null?void 0:qe[Be==null?void 0:Be.prop])??""}),Ra.id="1",Ra.relatedId=`[${Ra.id}]`,delete Ra.sort,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[Ra]}}),Ye=[{tableName:(u=l==null?void 0:l.relatedContents)==null?void 0:u.find(me=>me==null?void 0:me.includes("content")),tableContents:fa}];Ye=[...Ye,...ba];let Za=await L.quoteApi({platId:parseInt((w=gl==null?void 0:gl.value)==null?void 0:w.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Za=(R=(B=Za==null?void 0:Za.data)==null?void 0:B.result)==null?void 0:R.filter(me=>!(Ye!=null&&Ye.find(Ra=>(Ra==null?void 0:Ra.tableName)==="content_"+(me==null?void 0:me.id)))),Za=Za==null?void 0:Za.filter(me=>{var Ra,qe;return!((me==null?void 0:me.fatherPath)!==""&&((qe=(Ra=me==null?void 0:me.quote)==null?void 0:Ra[0])==null?void 0:qe.menus)===(xl==null?void 0:xl.value))});let Ee=Za==null?void 0:Za.map(me=>{var aa,Ge,Be,Cl,tl,bl,Ga;let Ra={},qe=fa==null?void 0:fa[0],K;return Array.isArray((aa=me==null?void 0:me.struct)==null?void 0:aa[0])?K=ca.getColumnChild((Ge=me==null?void 0:me.struct)==null?void 0:Ge[0]):K=me==null?void 0:me.struct,K=K==null?void 0:K.filter(Qa=>(Qa==null?void 0:Qa.prop)!=="relatedId"),((Cl=(Be=K==null?void 0:K[0])==null?void 0:Be.words)!=null&&Cl[0]?qe!=null&&qe[(bl=(tl=K==null?void 0:K[0])==null?void 0:tl.words)==null?void 0:bl[0]]:qe!=null&&qe[(Ga=K==null?void 0:K[0])==null?void 0:Ga.prop])?(K==null||K.forEach(Qa=>{var Ta,pe;Ra[Qa.prop]=((Ta=Qa==null?void 0:Qa.words)!=null&&Ta[0]?(qe==null?void 0:qe[(pe=Qa==null?void 0:Qa.words)==null?void 0:pe[0]])??(qe==null?void 0:qe[Qa==null?void 0:Qa.prop]):qe==null?void 0:qe[Qa==null?void 0:Qa.prop])??""}),Ra.id="1",Ra.relatedId=`[${Ra.id}]`,delete Ra.sort):Ra=void 0,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[Ra]}});Ee=Ee==null?void 0:Ee.filter(me=>{var Ra;return!((Ra=me==null?void 0:me.tableContents)!=null&&Ra.every(qe=>qe===void 0))}),Ye=[...Ye,...Ee],await L.pageBatchAddApi({platId:parseInt((E=gl==null?void 0:gl.value)==null?void 0:E.plat_id),changeContents:Ye});let Ke=[];Ye==null||Ye.forEach(me=>{var Ra;(Ra=me==null?void 0:me.tableContents)==null||Ra.forEach(qe=>{Ke.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(qe),request_result:"{}",is_delete:!1,request_table:me==null?void 0:me.tableName,request_type:"add"})})}),await L.pageBatchAddApi({platId:parseInt((q=gl==null?void 0:gl.value)==null?void 0:q.plat_id),changeContents:[{tableName:"log",tableContents:Ke}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const fa=((l==null?void 0:l.ocrRows)||[]).map(Za=>Za==null?void 0:Za.id).filter(Za=>Za!=null),va=((l==null?void 0:l.ocrRows)||[]).map(Za=>{const Ee={...Za};return delete Ee._isOCRRow,delete Ee._ocrTableId,Object.keys(Ee).forEach(Ke=>{/(^|\.)证书附件$/.test(Ke)&&Array.isArray(Ee[Ke])&&(Ee[Ke]=JSON.stringify(Ee[Ke].map(me=>({url:(me==null?void 0:me.url)||"",name:(me==null?void 0:me.name)||(me==null?void 0:me.fileName)||"",fileName:(me==null?void 0:me.fileName)||(me==null?void 0:me.name)||""})).filter(me=>me.url||me.name)))}),Ee});let ba=[{tableName:(O=l==null?void 0:l.relatedContents)==null?void 0:O.find(Za=>Za==null?void 0:Za.includes("content")),tableContents:va}];await L.pageBatchAddApi({platId:parseInt((M=gl==null?void 0:gl.value)==null?void 0:M.plat_id),changeContents:ba});let Ye=[];ba==null||ba.forEach(Za=>{var Ee;(Ee=Za==null?void 0:Za.tableContents)==null||Ee.forEach(Ke=>{Ye.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ke),request_result:"{}",is_delete:!1,request_table:Za==null?void 0:Za.tableName,request_type:"ocrBatchAdd"})})}),await L.pageBatchAddApi({platId:parseInt((Z=gl==null?void 0:gl.value)==null?void 0:Z.plat_id),changeContents:[{tableName:"log",tableContents:Ye}]}),t0(l==null?void 0:l.parentTableId,l==null?void 0:l.index,fa)}if((l==null?void 0:l.buttonName)==="编辑"){const va=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(K=>{const aa={...K};return delete aa._isOCRRow,delete aa._ocrTableId,delete aa._isTemp,delete aa.tableEditType,delete aa.index,aa});let ba=va==null?void 0:va.map(K=>{let aa={};for(let Ge in K)Array.isArray(K==null?void 0:K[Ge])?aa[Ge]=JSON.stringify(K==null?void 0:K[Ge]):aa[Ge]=K==null?void 0:K[Ge];return aa}),Ye=await L.quoteApi({platId:parseInt((C=gl==null?void 0:gl.value)==null?void 0:C.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Ye=(_=Ye==null?void 0:Ye.data)==null?void 0:_.result,Ye=Ye==null?void 0:Ye.filter(K=>{var aa,Ge;return!((K==null?void 0:K.fatherPath)!==""&&((Ge=(aa=K==null?void 0:K.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))});let Za=(S=ba==null?void 0:ba[0])==null?void 0:S.id,Ee=[{tableName:(g=l==null?void 0:l.relatedContents)==null?void 0:g.find(K=>K==null?void 0:K.includes("content")),tableContents:ba}],Ke=(b=Ye==null?void 0:Ye.map(K=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=K==null?void 0:K.contents)==null?void 0:Ge.filter(Ga=>{var Qa,Ta;return JSON.stringify(Ga==null?void 0:Ga.relatedId)!=="{}"&&(Ga==null?void 0:Ga.relatedId)!==""&&(Ga!=null&&Ga.relatedId)?(Qa=Ga==null?void 0:Ga.relatedId)==null?void 0:Qa.includes(parseInt(Za)):(Ga==null?void 0:Ga.sort)===((Ta=ba==null?void 0:ba[0])==null?void 0:Ta.sort)});if((aa==null?void 0:aa.length)>0){let Ga=ba==null?void 0:ba[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Ta=Ga,pe;return Array.isArray((Cl=K==null?void 0:K.struct)==null?void 0:Cl[0])?pe=ca.getColumnChild((tl=K==null?void 0:K.struct)==null?void 0:tl[0]):pe=K==null?void 0:K.struct,pe=pe==null?void 0:pe.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),pe==null||pe.forEach(Da=>{var Sl,Vl;Qa[Da.prop]=((Sl=Da==null?void 0:Da.words)!=null&&Sl[0]?(Ta==null?void 0:Ta[(Vl=Da==null?void 0:Da.words)==null?void 0:Vl[0]])??(Ta==null?void 0:Ta[Da==null?void 0:Da.prop]):Ta==null?void 0:Ta[Da==null?void 0:Da.prop])??""}),Qa.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,delete Qa.relatedId,{tableName:"content_"+(K==null?void 0:K.id),tableContents:[Qa]}}else return}))==null?void 0:b.filter(K=>K);Ee=[...Ee,...Ke];let me=await L.quoteApi({platId:parseInt((j=gl==null?void 0:gl.value)==null?void 0:j.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});me=(G=(V=me==null?void 0:me.data)==null?void 0:V.result)==null?void 0:G.filter(K=>!(Ee!=null&&Ee.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(K==null?void 0:K.id)))),me=me==null?void 0:me.filter(K=>{var aa,Ge;return!((K==null?void 0:K.fatherPath)!==""&&((Ge=(aa=K==null?void 0:K.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))});let Ra=(fe=me==null?void 0:me.map(K=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=K==null?void 0:K.contents)==null?void 0:Ge.filter(Ga=>{var Qa,Ta,pe;return JSON.stringify(Ga==null?void 0:Ga.relatedId)!=="{}"&&(Ga==null?void 0:Ga.relatedId)!==""&&(Ga!=null&&Ga.relatedId)?(Qa=Ga==null?void 0:Ga.relatedId)==null?void 0:Qa.includes(parseInt(Za)):(Ga==null?void 0:Ga.sort)===((Ta=ba==null?void 0:ba[0])==null?void 0:Ta.sort)||(Ga==null?void 0:Ga.sort)===(parseInt(((pe=ba==null?void 0:ba[0])==null?void 0:pe.sort)??"0")+1).toString()});if((aa==null?void 0:aa.length)>0){let Ga=ba==null?void 0:ba[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Ta=Ga,pe;return Array.isArray((Cl=K==null?void 0:K.struct)==null?void 0:Cl[0])?pe=ca.getColumnChild((tl=K==null?void 0:K.struct)==null?void 0:tl[0]):pe=K==null?void 0:K.struct,pe=pe==null?void 0:pe.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),pe==null||pe.forEach(Da=>{var Sl,Vl,Fl,nr;((Sl=Da==null?void 0:Da.words)!=null&&Sl[0]?(Ta==null?void 0:Ta[(Vl=Da==null?void 0:Da.words)==null?void 0:Vl[0]])??(Ta==null?void 0:Ta[Da==null?void 0:Da.prop]):Ta!=null&&Ta[Da==null?void 0:Da.prop])&&(Qa[Da.prop]=((Fl=Da==null?void 0:Da.words)!=null&&Fl[0]?(Ta==null?void 0:Ta[(nr=Da==null?void 0:Da.words)==null?void 0:nr[0]])??(Ta==null?void 0:Ta[Da==null?void 0:Da.prop]):Ta==null?void 0:Ta[Da==null?void 0:Da.prop])??"")}),Qa.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,delete Qa.relatedId,{tableName:"content_"+(K==null?void 0:K.id),tableContents:[Qa]}}else return}))==null?void 0:fe.filter(K=>K);Ee=[...Ee,...Ra],await L.pageBatchUpdateApi({platId:parseInt((Ne=gl==null?void 0:gl.value)==null?void 0:Ne.plat_id),changeContents:Ee});let qe=[];Ee==null||Ee.forEach(K=>{var aa;(aa=K==null?void 0:K.tableContents)==null||aa.forEach(Ge=>{qe.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:K==null?void 0:K.tableName,request_type:"update"})})}),await L.pageBatchAddApi({platId:parseInt((Se=gl==null?void 0:gl.value)==null?void 0:Se.plat_id),changeContents:[{tableName:"log",tableContents:qe}]})}if((l==null?void 0:l.buttonName)==="删除"){let fa=[{tableName:(Q=l==null?void 0:l.relatedContents)==null?void 0:Q.find(me=>me==null?void 0:me.includes("content")),tableContents:l==null?void 0:l.fixContent}],va=await L.quoteApi({platId:parseInt((ge=gl==null?void 0:gl.value)==null?void 0:ge.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});va=(J=va==null?void 0:va.data)==null?void 0:J.result,va=va==null?void 0:va.filter(me=>{var Ra,qe;return!((me==null?void 0:me.fatherPath)!==""&&((qe=(Ra=me==null?void 0:me.quote)==null?void 0:Ra[0])==null?void 0:qe.menus)===(xl==null?void 0:xl.value))});let ba=(Ue=(ue=l==null?void 0:l.fixContent)==null?void 0:ue[0])==null?void 0:Ue.id,Ye=(Ba=va==null?void 0:va.map(me=>{var qe,K,aa,Ge,Be,Cl;let Ra=(qe=me==null?void 0:me.contents)==null?void 0:qe.filter(tl=>{var bl,Ga,Qa;return JSON.stringify(tl==null?void 0:tl.relatedId)!=="{}"&&(tl==null?void 0:tl.relatedId)!==""&&(tl!=null&&tl.relatedId)?(bl=tl==null?void 0:tl.relatedId)==null?void 0:bl.includes(parseInt(ba)):(tl==null?void 0:tl.sort)===((Qa=(Ga=l==null?void 0:l.fixContent)==null?void 0:Ga[0])==null?void 0:Qa.sort)});if((Ra==null?void 0:Ra.length)>0){let tl=(K=l==null?void 0:l.fixContent)==null?void 0:K[0];tl={...tl,id:(aa=Ra==null?void 0:Ra[0])==null?void 0:aa.id};let bl={},Ga=tl,Qa;return Array.isArray((Ge=me==null?void 0:me.struct)==null?void 0:Ge[0])?Qa=ca.getColumnChild((Be=me==null?void 0:me.struct)==null?void 0:Be[0]):Qa=me==null?void 0:me.struct,Qa=Qa==null?void 0:Qa.filter(Ta=>(Ta==null?void 0:Ta.prop)!=="relatedId"),Qa==null||Qa.forEach(Ta=>{var pe,Da;bl[Ta.prop]=((pe=Ta==null?void 0:Ta.words)!=null&&pe[0]?(Ga==null?void 0:Ga[(Da=Ta==null?void 0:Ta.words)==null?void 0:Da[0]])??(Ga==null?void 0:Ga[Ta==null?void 0:Ta.prop]):Ga==null?void 0:Ga[Ta==null?void 0:Ta.prop])??""}),bl.id=(Cl=Ra==null?void 0:Ra[0])==null?void 0:Cl.id,delete bl.sort,delete bl.relatedId,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[bl]}}else return}))==null?void 0:Ba.filter(me=>me);fa=[...fa,...Ye];let Za=await L.quoteApi({platId:parseInt((ne=gl==null?void 0:gl.value)==null?void 0:ne.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Za=(re=(D=Za==null?void 0:Za.data)==null?void 0:D.result)==null?void 0:re.filter(me=>!(fa!=null&&fa.find(Ra=>(Ra==null?void 0:Ra.tableName)==="content_"+(me==null?void 0:me.id)))),Za=Za==null?void 0:Za.filter(me=>{var Ra,qe;return!((me==null?void 0:me.fatherPath)!==""&&((qe=(Ra=me==null?void 0:me.quote)==null?void 0:Ra[0])==null?void 0:qe.menus)===(xl==null?void 0:xl.value))});let Ee=(ke=Za==null?void 0:Za.map(me=>{var qe,K,aa,Ge,Be,Cl;let Ra=(qe=me==null?void 0:me.contents)==null?void 0:qe.filter(tl=>{var bl,Ga,Qa;return JSON.stringify(tl==null?void 0:tl.relatedId)!=="{}"&&(tl==null?void 0:tl.relatedId)!==""&&(tl!=null&&tl.relatedId)?(bl=tl==null?void 0:tl.relatedId)==null?void 0:bl.includes(parseInt(ba)):(tl==null?void 0:tl.sort)===((Qa=(Ga=l==null?void 0:l.fixContent)==null?void 0:Ga[0])==null?void 0:Qa.sort)});if((Ra==null?void 0:Ra.length)>0){let tl=(K=l==null?void 0:l.fixContent)==null?void 0:K[0];tl={...tl,id:(aa=Ra==null?void 0:Ra[0])==null?void 0:aa.id};let bl={},Ga=tl,Qa;return Array.isArray((Ge=me==null?void 0:me.struct)==null?void 0:Ge[0])?Qa=ca.getColumnChild((Be=me==null?void 0:me.struct)==null?void 0:Be[0]):Qa=me==null?void 0:me.struct,Qa=Qa==null?void 0:Qa.filter(Ta=>(Ta==null?void 0:Ta.prop)!=="relatedId"),Qa==null||Qa.forEach(Ta=>{var pe,Da;bl[Ta.prop]=((pe=Ta==null?void 0:Ta.words)!=null&&pe[0]?(Ga==null?void 0:Ga[(Da=Ta==null?void 0:Ta.words)==null?void 0:Da[0]])??(Ga==null?void 0:Ga[Ta==null?void 0:Ta.prop]):Ga==null?void 0:Ga[Ta==null?void 0:Ta.prop])??""}),bl.id=(Cl=Ra==null?void 0:Ra[0])==null?void 0:Cl.id,delete bl.sort,delete bl.relatedId,{tableName:"content_"+(me==null?void 0:me.id),tableContents:[bl]}}else return}))==null?void 0:ke.filter(me=>me);fa=[...fa,...Ee],await L.pageBatchDeleteApi({platId:parseInt((de=gl==null?void 0:gl.value)==null?void 0:de.plat_id),changeContents:fa});let Ke=[];fa==null||fa.forEach(me=>{var Ra;(Ra=me==null?void 0:me.tableContents)==null||Ra.forEach(qe=>{Ke.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(qe),request_result:"{}",is_delete:!1,request_table:me==null?void 0:me.tableName,request_type:"delete"})})}),await L.pageBatchAddApi({platId:parseInt((De=gl==null?void 0:gl.value)==null?void 0:De.plat_id),changeContents:[{tableName:"log",tableContents:Ke}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let fa=await L.getPageDataApi({platId:parseInt((ha=gl==null?void 0:gl.value)==null?void 0:ha.plat_id),pageName:"menu"});if(fa=(Sa=fa==null?void 0:fa.data)==null?void 0:Sa.result,fa!=null&&fa.find(va=>(va==null?void 0:va.father_name)===xl.value+"/")){cc.value=l,sc.value=fa==null?void 0:fa.filter(Ye=>(Ye==null?void 0:Ye.father_name)===xl.value+"/");let va=(le=(Ja=l==null?void 0:l.columns)==null?void 0:Ja.find(Ye=>Ye==null?void 0:Ye.mainKey))==null?void 0:le.prop,ba=(Ve=(la=l==null?void 0:l.fixContent)==null?void 0:la[0])==null?void 0:Ve[va];Et.value=!0,Ho.value=[{prop:va,label:va,name:va,value:ba}]}else{let va=(_a=l==null?void 0:l.fixContent)==null?void 0:_a.map(Za=>{let Ee={};for(let Ke in Za)Array.isArray(Za==null?void 0:Za[Ke])?Ee[Ke]=JSON.stringify(Za==null?void 0:Za[Ke]):Ee[Ke]=Za==null?void 0:Za[Ke];return Ee.relatedId="",Ee}),ba=[{tableName:(Fe=l==null?void 0:l.relatedContents)==null?void 0:Fe.find(Za=>Za==null?void 0:Za.includes("content")),tableContents:va}];await L.pageBatchAddApi({platId:parseInt((ze=gl==null?void 0:gl.value)==null?void 0:ze.plat_id),changeContents:ba});let Ye=[];ba==null||ba.forEach(Za=>{var Ee;(Ee=Za==null?void 0:Za.tableContents)==null||Ee.forEach(Ke=>{Ye.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ke),request_result:"{}",is_delete:!1,request_table:Za==null?void 0:Za.tableName,request_type:"copyAdd"})})}),await L.pageBatchAddApi({platId:parseInt(($e=gl==null?void 0:gl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:"log",tableContents:Ye}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let fa=((qa=(Xa=(Ze=l==null?void 0:l.columns)==null?void 0:Ze.map(K=>K==null?void 0:K.filter))==null?void 0:Xa.filter(K=>K!==""))==null?void 0:qa[0])??"";fa=Va.analyzeSplitToContent(fa,","),fa=(fa==null?void 0:fa.find(K=>K==null?void 0:K.includes("@Filter")))??"";let va=(F=l==null?void 0:l.fixContent)==null?void 0:F.map(K=>{let aa={};for(let Ge in K)Array.isArray(K==null?void 0:K[Ge])?aa[Ge]=JSON.stringify(K==null?void 0:K[Ge]):aa[Ge]=K==null?void 0:K[Ge];return aa}),ba=await L.quoteApi({platId:parseInt((P=gl==null?void 0:gl.value)==null?void 0:P.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});ba=(X=ba==null?void 0:ba.data)==null?void 0:X.result,ba=ba==null?void 0:ba.filter(K=>{var aa,Ge;return!((K==null?void 0:K.fatherPath)!==""&&((Ge=(aa=K==null?void 0:K.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))});let Ye=(ce=(te=l==null?void 0:l.columns)==null?void 0:te[0])==null?void 0:ce.prop,Za=(xa=va==null?void 0:va[0])==null?void 0:xa[Ye],Ee=[{tableName:(ra=l==null?void 0:l.relatedContents)==null?void 0:ra.find(K=>K==null?void 0:K.includes("content")),tableContents:va}],Ke=(Le=ba==null?void 0:ba.map(K=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=K==null?void 0:K.contents)==null?void 0:Ge.filter(Ga=>{var Qa;return(Qa=Object.values(Ga))==null?void 0:Qa.find(Ta=>Ta===Za)});if((aa==null?void 0:aa.length)>0){let Ga=va==null?void 0:va[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Ta=Ga,pe;return Array.isArray((Cl=K==null?void 0:K.struct)==null?void 0:Cl[0])?pe=ca.getColumnChild((tl=K==null?void 0:K.struct)==null?void 0:tl[0]):pe=K==null?void 0:K.struct,pe=pe==null?void 0:pe.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),pe==null||pe.forEach(Da=>{var Sl,Vl;Qa[Da.prop]=((Sl=Da==null?void 0:Da.words)!=null&&Sl[0]?(Ta==null?void 0:Ta[(Vl=Da==null?void 0:Da.words)==null?void 0:Vl[0]])??(Ta==null?void 0:Ta[Da==null?void 0:Da.prop]):Ta==null?void 0:Ta[Da==null?void 0:Da.prop])??""}),Qa.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,{tableName:"content_"+(K==null?void 0:K.id),tableContents:[Qa]}}else return}))==null?void 0:Le.filter(K=>K);Ee=[...Ee,...Ke];let me=await L.quoteApi({platId:parseInt((Ce=gl==null?void 0:gl.value)==null?void 0:Ce.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});if(me=(ma=(Ea=me==null?void 0:me.data)==null?void 0:Ea.result)==null?void 0:ma.filter(K=>!(Ee!=null&&Ee.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(K==null?void 0:K.id)))),me=me==null?void 0:me.filter(K=>{var aa,Ge;return!((K==null?void 0:K.fatherPath)!==""&&((Ge=(aa=K==null?void 0:K.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))}),fa&&fa!==""){(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=(Pa=fa==null?void 0:fa.replace("(",hi))==null?void 0:Pa.split(hi))==null?void 0:Fa[1],fa=fa==null?void 0:fa.slice(0,(fa==null?void 0:fa.length)-1),(fa==null?void 0:fa[0])==="*"&&(fa="{"+((Je=(ve=fa==null?void 0:fa.replace("{",hi))==null?void 0:ve.split(hi))==null?void 0:Je[1])),fa=(Ae=fa==null?void 0:fa.replaceAll("{",""))==null?void 0:Ae.replaceAll("}","");let K=ca.calculatorAndToOr(fa);K=K==null?void 0:K[0];let aa;if((Xe=Object.values(K))!=null&&Xe.some(Ge=>(Ge==null?void 0:Ge[0])==="*")){let Ge=(pa=(ya=Kn.value)==null?void 0:ya.find(Be=>(Be==null?void 0:Be.condition)==="child"))!=null&&pa.value?(Zr==null?void 0:Zr.value)+"/"+((Ia=(Te=Kn.value)==null?void 0:Te.find(Be=>(Be==null?void 0:Be.condition)==="child"))==null?void 0:Ia.value):Zr==null?void 0:Zr.value;aa=await Wr(Ge,!1)}for(let Ge in K)if(((ga=K==null?void 0:K[Ge])==null?void 0:ga[0])==="*"){let Be=(We=(ta=(wa=K[Ge])==null?void 0:wa.slice(1,(Ha=K[Ge])==null?void 0:Ha.length))==null?void 0:ta.split(":"))==null?void 0:We[0],Cl=(Ca=(Qe=K[Ge])==null?void 0:Qe.split(":"))==null?void 0:Ca[1],tl=(oe=aa==null?void 0:aa.filter(bl=>(bl==null?void 0:bl.name)===Be))==null?void 0:oe[0];tl=(Pe=(_e=tl==null?void 0:tl.compData)==null?void 0:_e.find(bl=>(bl==null?void 0:bl.key)==="tableContents"))==null?void 0:Pe.contents,tl=(ie=tl==null?void 0:tl[0])==null?void 0:ie[Cl],K[Ge]=tl}fa=((Ka=Object.values(K))==null?void 0:Ka[0])??""}let Ra=(vl=me==null?void 0:me.map(K=>{var Ge,Be,Cl,tl,bl;let aa=(Ge=K==null?void 0:K.contents)==null?void 0:Ge.filter(Ga=>{var Qa;return(Qa=Object.values(Ga))==null?void 0:Qa.find(Ta=>Ta===(fa===""?Za:fa))});if((aa==null?void 0:aa.length)>0){let Ga=va==null?void 0:va[0];Ga={...Ga,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Qa={},Ta=Ga,pe;return Array.isArray((Cl=K==null?void 0:K.struct)==null?void 0:Cl[0])?pe=ca.getColumnChild((tl=K==null?void 0:K.struct)==null?void 0:tl[0]):pe=K==null?void 0:K.struct,pe=pe==null?void 0:pe.filter(Da=>(Da==null?void 0:Da.prop)!=="relatedId"),pe==null||pe.forEach(Da=>{var Vl,Fl,nr,yr;let Sl=(Vl=l==null?void 0:l.columns)==null?void 0:Vl.find(Nl=>{var tr,Nr,Ll;return((Nr=(tr=Nl==null?void 0:Nl.words)==null?void 0:tr[0])==null?void 0:Nr.replaceAll("'",""))===(Da==null?void 0:Da.prop)&&((Ll=Nl==null?void 0:Nl.functionRelatedWords)==null?void 0:Ll.length)>0});Sl=(Fl=Sl==null?void 0:Sl.prop)==null?void 0:Fl.replaceAll("'",""),Qa[Da.prop]=((nr=Da==null?void 0:Da.words)!=null&&nr[0]?(Ta==null?void 0:Ta[(yr=Da==null?void 0:Da.words)==null?void 0:yr[0]])??(Ta==null?void 0:Ta[Da==null?void 0:Da.prop])??(Ta==null?void 0:Ta[Sl]):(Ta==null?void 0:Ta[Da==null?void 0:Da.prop])??(Ta==null?void 0:Ta[Sl]))??void 0}),Qa.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Qa.sort,{tableName:"content_"+(K==null?void 0:K.id),tableContents:[Qa]}}else return}))==null?void 0:vl.filter(K=>K);Ee=[...Ee,...Ra],await L.pageBatchUpdateApi({platId:parseInt((Wl=gl==null?void 0:gl.value)==null?void 0:Wl.plat_id),changeContents:Ee});let qe=[];Ee==null||Ee.forEach(K=>{var aa;(aa=K==null?void 0:K.tableContents)==null||aa.forEach(Ge=>{qe.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:K==null?void 0:K.tableName,request_type:"method"})})}),await L.pageBatchAddApi({platId:parseInt((Wa=gl==null?void 0:gl.value)==null?void 0:Wa.plat_id),changeContents:[{tableName:"log",tableContents:qe}]})}Sr.setRefreshCurStructure(!0),await bt(l)},gt=async(l,n,r)=>{var s;let o=l==null?void 0:l.find(c=>(c==null?void 0:c.id)===n);if(o){let c=(s=o.compData)==null?void 0:s.map(m=>{var p;if((m==null?void 0:m.key)==="tableContents"){let v={...m,contents:r};return v.contents=(p=(v==null?void 0:v.contents)??[])==null?void 0:p.map(y=>{let u={};for(let w in y)JSON.stringify(y==null?void 0:y[w])==="{}"?u[w]="":u[w]=y==null?void 0:y[w];return u}),v}return m});return o.compData=await _t(c,{}),l=l==null?void 0:l.map(m=>((m==null?void 0:m.id)===(o==null?void 0:o.id)&&(m=o),m)),l}else{let c=l==null?void 0:l.filter(p=>{var v;return(p==null?void 0:p.children)&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0||(p==null?void 0:p.comp)==="Tabs"}),m=c==null?void 0:c.map(async p=>{var v;return p!=null&&p.children&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0?p.children=await gt(p==null?void 0:p.children,n,r):p.compData=await gt(p==null?void 0:p.compData,n,r),p});return c=await Promise.all(m),c}},bt=async l=>{var c,m,p,v,y,u,w;let n=(c=l==null?void 0:l.relatedContents)==null?void 0:c.filter(B=>B==null?void 0:B.includes("content_")),r=await L.getAllTables({platId:parseInt((m=gl==null?void 0:gl.value)==null?void 0:m.plat_id),tableNames:n});if(r=(v=(p=r==null?void 0:r.data)==null?void 0:p.result)==null?void 0:v[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(B=>{B==null||delete B.source_table;const R={};for(let E in B){const q=B==null?void 0:B[E],O=q&&Object.prototype.toString.call(q)==="[object Object]"&&Object.keys(q).length===0,M=Array.isArray(q)&&q.length===0;q==null||q==="{}"||O||M?R[E]="":R[E]=q}return R});let o=(u=(y=n==null?void 0:n[0])==null?void 0:y.split("_"))==null?void 0:u[1],s=await gt(rr.value,o,r);rr.value=(w=rr.value)==null?void 0:w.map(B=>{var R,E;return(R=s==null?void 0:s[0])!=null&&R.tabInform&&((E=s==null?void 0:s[0])==null?void 0:E.tabInform)===(B==null?void 0:B.tabInform)?B=s==null?void 0:s[0]:(B!=null&&B.name?(B==null?void 0:B.name)===(s==null?void 0:s.name):(B==null?void 0:B.id)===(s==null?void 0:s.id))&&(B=s),B})},s0=l=>{let n=Ho.value;Ho.value=n==null?void 0:n.map(r=>(r.value=l==null?void 0:l[r==null?void 0:r.prop],r))},c0=async()=>{var B,R,E,q,O,M,Z,C,_,S;let l=cc.value,n=sc.value,r=(R=(B=l==null?void 0:l.columns)==null?void 0:B.find(g=>g==null?void 0:g.mainKey))==null?void 0:R.prop,o=(q=(E=Ho.value)==null?void 0:E[0])==null?void 0:q.value,s=(O=l==null?void 0:l.fixContent)==null?void 0:O.map(g=>{var j;let b={};for(let V in g)Array.isArray(g==null?void 0:g[V])?b[V]=JSON.stringify(g==null?void 0:g[V]):b[V]=g==null?void 0:g[V];return(j=l==null?void 0:l.columns)==null||j.forEach(V=>{(V==null?void 0:V.formType)==="Upload"&&(b==null?void 0:b[V==null?void 0:V.prop])===""&&(b[V==null?void 0:V.prop]="{}")}),b[r]=o,b}),c=[{tableName:(M=l==null?void 0:l.relatedContents)==null?void 0:M.find(g=>g==null?void 0:g.includes("content")),tableContents:s}];await L.pageBatchAddApi({platId:parseInt((Z=gl==null?void 0:gl.value)==null?void 0:Z.plat_id),changeContents:c}),n=n==null?void 0:n.filter(g=>{var b,j,V;return(V=g==null?void 0:g.object_name)==null?void 0:V.includes((j=(b=l==null?void 0:l.fixContent)==null?void 0:b[0])==null?void 0:j[r])});let m=[],p=new Map;n==null||n.forEach(g=>{m.push(`content_${g==null?void 0:g.object_id}`),m.push(`struct_${g==null?void 0:g.object_id}`),p.set(g==null?void 0:g.object_id,g)});let v=await L.getAllTables({platId:parseInt((C=gl==null?void 0:gl.value)==null?void 0:C.plat_id),tableNames:m});v=(_=v==null?void 0:v.data)==null?void 0:_.result;let y=[],u=[];v=Va.chunk(v,2),v==null||v.forEach(g=>{var V,G,fe,Ne,Se,Q,ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja,le;let b=p.get((Ne=(fe=(G=(V=g==null?void 0:g[1])==null?void 0:V[0])==null?void 0:G.source_table)==null?void 0:fe.split("_"))==null?void 0:Ne[1]),j=(ge=(Q=(Se=b==null?void 0:b.object_name)==null?void 0:Se.split("/"))==null?void 0:Q.filter((la,Ve)=>{var _a,Fe;return((Fe=(_a=b==null?void 0:b.object_name)==null?void 0:_a.split("/"))==null?void 0:Fe.length)-1!==Ve}))==null?void 0:ge.join("/");if(j=j+"/"+o,u!=null&&u.find(la=>(la==null?void 0:la.path)===j)||u.push({fatherPath:b==null?void 0:b.father_name,isShow:b==null?void 0:b.is_show,path:j}),((ue=(J=g==null?void 0:g[1])==null?void 0:J[0])==null?void 0:ue.类型)==="Table"){let la=((ne=(Ba=(Ue=g==null?void 0:g[1])==null?void 0:Ue[0])==null?void 0:Ba.结构)==null?void 0:ne.contents)??[],Ve=dl.safeClone(la);Array.isArray(Ve==null?void 0:Ve[0])&&(Ve=ca.getColumnChild(Ve==null?void 0:Ve[0]));let _a=[];if(((D=g==null?void 0:g[0])==null?void 0:D.length)>0&&(_a=(re=g==null?void 0:g[0])==null?void 0:re.map(Fe=>Ve==null?void 0:Ve.map($e=>($e=(Fe==null?void 0:Fe[$e==null?void 0:$e.prop])??"",$e)))),y!=null&&y.find(Fe=>(Fe==null?void 0:Fe.key)===j)){let Fe=(ke=y==null?void 0:y.find($e=>($e==null?void 0:$e.key)===j))==null?void 0:ke.contents;Fe.push({isShow:b==null?void 0:b.is_show,filter:((ha=(De=(de=g==null?void 0:g[1])==null?void 0:de[0])==null?void 0:De.引用)==null?void 0:ha.contents)??"",key:"Table",name:Object.values(b==null?void 0:b.name),tableColumns:la,tableContents:_a});let ze=y==null?void 0:y.findIndex($e=>($e==null?void 0:$e.key)===j);y[ze].contents=Fe}else y.push({key:j,contents:[{isShow:b==null?void 0:b.is_show,filter:((le=(Ja=(Sa=g==null?void 0:g[1])==null?void 0:Sa[0])==null?void 0:Ja.引用)==null?void 0:le.contents)??"",key:"Table",name:Object.values(b==null?void 0:b.name),tableColumns:la,tableContents:_a}]})}});let w=[];w.push({key:"menuPath",contents:u}),w=[...w,...y],await L.createPlatFormDataApi({platId:parseInt((S=gl==null?void 0:gl.value)==null?void 0:S.plat_id),changeData:w}),Et.value=!1,Sr.setRefreshTable(!0)},Ni=async(l,n)=>{},Ti=async l=>{rr.value=await ca.getDeepDiffItems(l),Sr.setItemData(rr.value),Sr.setOriginalData(rr.value)};a.ref();const u0=a.ref(null),d0=()=>{var l,n;console.log("倒计时结束时"),un.ElMessageBox.alert(`超时未提交,【${(n=(l=xl.value)==null?void 0:l.split("/"))==null?void 0:n[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},fc=a.ref([]),p0=a.computed(()=>{var l,n;return(n=(l=mt.value)==null?void 0:l[xl.value])==null?void 0:n.filter(r=>{var o;return((o=r==null?void 0:r.key)==null?void 0:o.type)==="gridLayout"})});a.watch(()=>[Zf.value],()=>{dn.setSelectTitle([]),dn.setChooseTitle([])},{deep:!0});a.watch(()=>Di.value,async(l,n)=>{var o,s,c,m,p,v;if(JSON.stringify(l)===JSON.stringify(n))return;let r=(o=Di.value)==null?void 0:o.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Zr.value);if((r==null?void 0:r.length)>0){Tr.setContentLoading(!0);let y=((s=r==null?void 0:r[0])==null?void 0:s.relatedContent)??(xl==null?void 0:xl.value),u=y+"/"+((c=r==null?void 0:r[0])==null?void 0:c.value),w=!!((m=r==null?void 0:r[0])!=null&&m.parentContent),B=await Wr(u,w,{originPath:y});B=(p=B==null?void 0:B.filter(q=>q))==null?void 0:p.map(q=>(q.isShow=!0,q)),console.log(B,"loadingContents");let R=await ca.getDeepDiffItems(B),E=R==null?void 0:R.filter(q=>q==null?void 0:q.choice);Ii.setSelectTab((v=E==null?void 0:E[0])==null?void 0:v.choiceName),R=R==null?void 0:R.filter(q=>{var O;return!(q!=null&&q.choiceName)||(q==null?void 0:q.choiceName)===((O=E==null?void 0:E[0])==null?void 0:O.choiceName)}),rr.value=R,Tr.setContentLoading(!1)}});const f0=(l,n)=>{setTimeout(async()=>{var p,v,y;let r=(p=Di.value)==null?void 0:p.filter(u=>(u==null?void 0:u.condition)==="child"&&(u==null?void 0:u.value)!==""&&(u==null?void 0:u.parentContent)!==Zr.value),o=xl==null?void 0:xl.value,s=xl==null?void 0:xl.value;(r==null?void 0:r.length)>0&&(s=((v=r==null?void 0:r[0])==null?void 0:v.relatedContent)??(xl==null?void 0:xl.value),o=s+"/"+((y=r==null?void 0:r[0])==null?void 0:y.value));let c=await Wr(o,!1,{originPath:s});c=c==null?void 0:c.map(u=>(u.isShow=!0,u));let m=await ca.getDeepDiffItems(c);rr.value=m==null?void 0:m.filter(u=>!(u!=null&&u.step)||(u==null?void 0:u.step)===(l==null?void 0:l.title))},10)},h0=l=>{setTimeout(async()=>{var m,p,v;let n=(m=Di.value)==null?void 0:m.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Zr.value),r=xl==null?void 0:xl.value,o=xl==null?void 0:xl.value;(n==null?void 0:n.length)>0&&(o=((p=n==null?void 0:n[0])==null?void 0:p.relatedContent)??(xl==null?void 0:xl.value),r=o+"/"+((v=n==null?void 0:n[0])==null?void 0:v.value));let s=await Wr(r,!1,{originPath:o});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),Ii.setSelectTab(l);let c=await ca.getDeepDiffItems(s);rr.value=c==null?void 0:c.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>Xf.value,l=>{l!=null&&l.length||(rr.value=[])},{immediate:!0});a.watch(()=>[xl.value],async l=>{var c,m,p,v;if(!xl.value)return;if(xl.value==="/"){rr.value=[];return}Tr.setCurrentMenuPath(xl.value),Sr.setLockingPage(""),rr.value=[];let n=a.getCurrentInstance();(c=n==null?void 0:n.scope)==null||c.stop(),n=null,Bo.value=!1,Tr.setContentLoading(!0),tc.value=!0;let r=l==null?void 0:l[0],o=r,s=(m=Kn.value)==null?void 0:m.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==xl.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(r=r+"/"+((p=s==null?void 0:s[0])==null?void 0:p.value)),r==="系统管理/日志管理")rr.value=await Wf("log");else{let y=await Wr(r,!0,{originPath:o});y=y==null?void 0:y.map(B=>(B.isShow=!0,B));let u=await ca.getDeepDiffItems(y),w=u==null?void 0:u.filter(B=>B==null?void 0:B.choice);Ii.setSelectTab((v=w==null?void 0:w[0])==null?void 0:v.choiceName),rr.value=u==null?void 0:u.filter(B=>{var R;return!(B!=null&&B.choiceName)||(B==null?void 0:B.choiceName)===((R=w==null?void 0:w[0])==null?void 0:R.choiceName)})}Tr.setContentLoading(!1),Sr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Sr.setItemData(rr.value),Sr.setOriginalData(rr.value),Sr.setRefreshTable(!1),a.nextTick(()=>{Yn.value=Yn.value++,Bo.value=!0})},{immediate:!0});a.watch(()=>[hs.value],async()=>{var l,n,r,o;if(hs.value){rr.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,Bo.value=!1,Tr.setContentLoading(!0),tc.value=!0;let c=Zr==null?void 0:Zr.value,m=c,p=(n=Kn.value)==null?void 0:n.filter(w=>(w==null?void 0:w.condition)==="child"&&(w==null?void 0:w.value)!==""&&(w==null?void 0:w.parentContent)!==(Zr==null?void 0:Zr.value));(p==null?void 0:p.length)>0&&(c=c+"/"+((r=p==null?void 0:p[0])==null?void 0:r.value));let v=await Wr(c,!0,{originPath:m});v=v==null?void 0:v.map(w=>(w.isShow=!0,w));let y=await ca.getDeepDiffItems(v),u=y==null?void 0:y.filter(w=>w==null?void 0:w.choice);if(Ii.setSelectTab((o=u==null?void 0:u[0])==null?void 0:o.choiceName),rr.value=y==null?void 0:y.filter(w=>{var B;return!(w!=null&&w.choiceName)||(w==null?void 0:w.choiceName)===((B=u==null?void 0:u[0])==null?void 0:B.choiceName)}),Tr.setContentLoading(!1),Sr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Sr.setItemData(rr.value),Sr.setOriginalData(rr.value),Sr.setRefreshTable(!1),(p==null?void 0:p.length)>0){let w=[...Kn.value,...p];dn.setSelectTitle(w)}a.nextTick(()=>{Yn.value=Yn.value++,Bo.value=!0})}},{immediate:!0,deep:!0});const v0=async()=>{Tr.setLinkMenuInfo(null),Tr.setActiveMenuPath(Jf.value),rr.value=null,Sr.setRouteToChildPath(""),Tr.setChildMenu("")},m0=l=>new RegExp("button","i").test(l),y0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),hc=l=>{if(y0(l)){const n=l==null?void 0:l.split("^");(n==null?void 0:n.length)>0&&(n!=null&&n[0])&&Tr.setLinkMenuInfo({path:n==null?void 0:n[0],data:n==null?void 0:n[1]})}},vc=async(l,n,r)=>{var B,R,E,q,O,M,Z,C,_,S,g,b;let o="",s="";for(let j in n)(n==null?void 0:n[j])===l&&(s=j);r==null||r.forEach(j=>{(j==null?void 0:j.prop)===s&&(o=j==null?void 0:j.fatherPath)});let c=o===""?xl.value:o;o!==""&&Tr.setCurrentMenuPath(c),Tr.setCurrentMenuPath(c+"/"+l),Tr.setContentLoading(!0),await Wr(c+"/"+l,!0,{originPath:c+"/",row:n});let m=await Wr(c,!1),p=(B=m==null?void 0:m.filter(j=>(j==null?void 0:j.comp)==="Table"))==null?void 0:B[0],v=((O=(q=(E=(R=p==null?void 0:p.compData)==null?void 0:R.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:E.contents)==null?void 0:q[0])==null?void 0:O.prop)??((S=(_=(C=(Z=(M=p==null?void 0:p.compData)==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:Z.contents)==null?void 0:C[0])==null?void 0:_[0])==null?void 0:S.prop),y=(b=(g=p==null?void 0:p.compData)==null?void 0:g.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:b.contents;y=y==null?void 0:y.map(j=>({label:j==null?void 0:j[v],value:j==null?void 0:j[v]}));let u=Kn.value,w={value:l,condition:"child",options:y,relatedContent:c,isShow:!0};u.push(w),dn.setSelectTitle(u),dn.setChooseTitle([w]),Tr.setContentLoading(!1),Sr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Sr.setItemData(rr.value),Sr.setOriginalData(rr.value)},g0=l=>{dc.value=l},_o=a.reactive({index:0,comp:null}),b0=a.computed(()=>{var l;return(l=rr.value)==null?void 0:l.map((n,r)=>({id:n.id,name:n.name,status:k0(n,r)}))}),mc=(l,n)=>{var v,y,u,w,B;const r=n?l:l-2,o=(v=rr.value)==null?void 0:v[r],s=(u=(y=o==null?void 0:o.compData)==null?void 0:y.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:u.contents,c=s==null?void 0:s.findIndex(R=>(R==null?void 0:R.isMainKey)&&(R==null?void 0:R.label)!=="操作"),m=c===-1?0:c,p=(B=(w=o==null?void 0:o.compData)==null?void 0:w.find(R=>(R==null?void 0:R.key)==="tableContents"))==null?void 0:B.contents;return{valid:p==null?void 0:p.every(R=>R==null?void 0:R[m+1]),length:(p==null?void 0:p.length)||0}},k0=(l,n)=>{var o;let r="process";if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){const{valid:s,length:c}=mc(n,!0);_o.index===n?r="process":c===0?r="wait":r=s?"success":"error"}return r},yc=l=>{var r,o,s,c,m;const n=l+1;if(n>1&&((s=(o=(r=rr.value)==null?void 0:r[l])==null?void 0:o.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:p}=mc(n);p?(_o.index=n,_o.comp=(c=rr.value)==null?void 0:c[l]):el.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else _o.index=n,_o.comp=(m=rr.value)==null?void 0:m[l]},gc=a.computed(()=>{var l,n;return(n=(l=uc.value)==null?void 0:l[0])==null?void 0:n.isStepLayout});a.watch(()=>gc.value,l=>{l&&yc(0)},{immediate:!0});const x0={class:"table-content"},w0={class:"menu-config-wrap"},_0=["onClick"],C0={key:0,class:"viewport-wrap"},S0=["onClick"],E0={title:"选择显示列信息"},D0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},B0=["title"],N0={class:"col-operate-wrap"},T0={key:0,class:"col-operate-radio-wrapper"},A0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},z0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},M0={class:"pop-view"},I0={class:"pop-wrapper"},O0={class:"file-list-pop"},L0=["title","onClick"],R0=["onClick"],$0=["onClick"],V0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},P0={class:"form-content"},F0={key:0,class:"dialog-footer"},j0={class:"dialog-footer"},H0={class:"ocr-dialog-content"},U0={class:"ocr-steps"},q0={key:0,class:"ocr-action-buttons"},W0={key:1,class:"ocr-preview-area"},K0={class:"ocr-file-grid"},G0={class:"file-thumbnail"},Y0=["src"],J0={key:1,class:"thumbnail-placeholder"},X0={class:"progress-svg",viewBox:"0 0 36 36"},Z0=["stroke","stroke-width","stroke-dasharray"],Q0={key:0,class:"progress-icon"},e3={key:1,class:"progress-icon"},a3=["onClick"],l3={class:"file-name"},r3={key:0,class:"ocr-recognize-button"},n3={key:2,class:"ocr-progress-section"},o3={key:3,class:"ocr-confirm-area"},i3={class:"ocr-preview-tip"},t3={class:"ocr-preview-table"},s3={style:{display:"flex","align-items":"center",gap:"8px"}},c3={key:0},u3={key:4,class:"ocr-success-area"},d3={key:0,class:"ocr-dialog-footer"},p3={class:"form-content"},f3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},h3={style:{display:"flex"}},ms="ss-ocr-upload-history",v3="ss-ocr-cert-history-v1",m3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},groupNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(l,{emit:n}){var $t;const r=a.ref([]),o=Ct(L.pinia),s=a.ref(null),c=a.ref(new Set),m=a.ref(new Map),p=a.ref(new Map),v=new Map,y=a.ref(new Map),u=l,w=a.ref((u==null?void 0:u.allowSelect)??!0),B=a.ref((($t=u==null?void 0:u.config)==null?void 0:$t.showIndex)??!0),R=a.ref(),E=a.ref(!0),q=a.ref(!1),O=a.ref([]),M={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},Z=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),C=ca.useOriginalState(L.pinia);let _="$R";const{originalPath:S}=L.storeToRefs(C),g=S.value,b=a.computed(()=>{var h;const d=(h=ca.getAllLeafNodes(Se.value)||[])==null?void 0:h.filter(T=>(T==null?void 0:T.type)!=="operate"&&(T==null?void 0:T.label)!=="操作"&&(T==null?void 0:T.prop)!=="operate");return d.length>0?d.every(T=>!!(T!=null&&T.sortable)):!1});a.computed(()=>{var h;return(h=Se.value)==null?void 0:h.every(T=>T==null?void 0:T.filterable)}),a.computed(()=>{var h;return(h=Se.value)==null?void 0:h.every(T=>T==null?void 0:T.operable)});const j=a.ref(!0),V=a.ref([]),G=a.reactive({column:{},status:!1,text:"合计"}),fe=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Ne=n,Se=a.ref([]),Q=a.ref([]),ge=a.ref([]),J=a.reactive({prop:"",order:null}),ue=a.ref([]),Ue=a.ref(!1),Ba=a.ref(!1),ne=a.ref(null),{isUseBackdrop:D,initTrackFileType:re,getFileExtension:ke,setData:de,getFileInfo:De,getFilesInfo:ha}=wi.useThreeSystem(),Sa=a.ref([]),Ja=a.ref(!1),le=a.ref(),la=L.useMenuState(),{importLoading:Ve,activeMenuPath:_a,contentLoading:Fe,linkMenuInfo:ze}=L.storeToRefs(la),$e=ca.useTableComp(L.pinia),Ze=L.useModelComp(L.pinia),Xa=Jn(L.pinia),{extraContents:qa,cacheUpdatingData:F,tableViewContents:P,tableLoading:X,pageMapState:te,lockingPage:ce}=L.storeToRefs(Ze),{selectTab:xa}=L.storeToRefs(Xa),{compType:ra,hasEditable:Le}=Ws.useRole(),Ce=a.ref([]),Ea=a.ref([]),ma=a.ref(new Map);a.ref(!1);const Pa=a.ref("");a.ref();const Fa=a.ref(!0),ve=a.ref(0),Je=a.ref(!0),Ae=a.ref(""),Xe=a.ref(!1),ya=a.ref(null);a.ref([]);const pa=a.ref({label:"查看三维模型"}),Te=a.ref(!1),Ia=a.ref(),ga=a.ref([]),Ha=a.ref([]),wa=a.ref(!1),ta=a.ref([]),We=a.ref([]),Qe=a.ref([]),Ca=a.ref([]),oe=a.ref([]),_e=()=>{try{const d=localStorage.getItem(ms),h=d?JSON.parse(d):[];oe.value=Array.isArray(h)?h:[]}catch{oe.value=[]}},Pe=()=>{try{localStorage.setItem(ms,JSON.stringify(oe.value||[]))}catch{}},ie=d=>{var ee,ae,H;if(!d)return;const h=d.url||((ee=d==null?void 0:d.uploadResult)==null?void 0:ee.url)||"",T=d.name||((ae=d==null?void 0:d.uploadResult)==null?void 0:ae.name)||((H=d==null?void 0:d.uploadResult)==null?void 0:H.fileName)||"";if(!h&&!T)return;const z={name:T,url:h,ts:Date.now()},$=String(z.name||"").trim().toLowerCase(),N=(oe.value||[]).findIndex(be=>String((be==null?void 0:be.name)||"").trim().toLowerCase()===$);N>-1&&oe.value.splice(N,1),oe.value.unshift(z),oe.value.length>20&&(oe.value=oe.value.slice(0,20)),Pe()};_e();const Ka=(d,h)=>`${v3}:${String(d??"")}:${String(h??"")}`,vl=(d,h)=>{try{const T=sessionStorage.getItem(Ka(d,h)),z=T?JSON.parse(T):[];return Array.isArray(z)?z:[]}catch{return[]}},Wl=(d,h,T)=>{try{sessionStorage.setItem(Ka(d,h),JSON.stringify(Array.isArray(T)?T:[]))}catch{}},Wa=(d,h,T)=>{if(!h)return;const z=vl(d,h),$=[T,...z||[]].filter(Boolean).slice(0,1);return Wl(d,h,$),$},fa=(d,h,T)=>{if(!h||!T)return;const z=Ka(d,h),$=Ka(d,T);try{const N=sessionStorage.getItem(z);if(!N)return;const ee=(()=>{try{const be=JSON.parse(N);return Array.isArray(be)?be:[]}catch{return[]}})(),ae=vl(d,T),H=[...ee,...ae||[]].filter(Boolean).sort((be,we)=>Number((we==null?void 0:we.ts)||0)-Number((be==null?void 0:be.ts)||0)).slice(0,1);sessionStorage.setItem($,JSON.stringify(H)),sessionStorage.removeItem(z)}catch{}},va=a.ref(!1),ba=a.ref(!1),Ye=a.ref([]),Za=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const Ee=a.ref(!1),Ke=a.ref([]),me=a.ref(1),Ra=a.ref(new Map),qe=a.ref(new Map),K=a.ref(0),aa=a.ref(!1),Ge=a.ref([]),Be=a.ref([]),Cl=d=>{var h;try{const T=(h=ca.getAllLeafNodes(Se.value)||[])==null?void 0:h.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return(T==null?void 0:T.find(z=>(z==null?void 0:z.prop)===d||(z==null?void 0:z.label)===d))||null}catch{return null}},tl=d=>{const h=Cl(d),T=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return dl.getComponent(T)||dl.getComponent("Input")},bl=a.ref([]),Ga=a.ref(null),Qa=a.ref([]),Ta=a.ref(null),pe=a.ref(""),Da=a.ref(!1),Sl=a.ref([]),Vl=a.ref(""),Fl=a.ref(!1),nr=a.ref([]),yr=a.ref([]),Nl=a.ref([]),tr=a.ref(null),Nr=a.ref([]),Ll=a.ref("");a.computed(()=>{var d;try{const h=(d=ca.getAllLeafNodes(Se.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"),T=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&T.set(z.label,z.prop)}),T.get("编号")||""}catch{return""}});const lr=a.computed(()=>{var d;try{const h=(d=ca.getAllLeafNodes(Se.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"),T=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&T.set(z.label,z.prop)}),T.get("名称")||""}catch{return""}}),Qr=a.computed(()=>{var d;try{const h=(d=ca.getAllLeafNodes(Se.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"),T=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&T.set(z.label,z.prop)}),T.get("制造厂")||""}catch{return""}}),Ir=()=>{Fl.value=!1,nr.value=[],yr.value=[],Nl.value=[],tr.value=null,Nr.value=[],Ll.value=""},Ar=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Er=(d,h)=>{const T=(d==null?void 0:d.ocrRow)||{};for(const $ of Object.keys(T))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Ar(T[$])&&(h[$]=T[$]);const z=Ea.value.find($=>$.id===h.id);if(z)for(const $ of Object.keys(T))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Ar(T[$])&&(z[$]=T[$]);ma.value&&ma.value.set(h.id,h),Wa(u==null?void 0:u.index,h.id,d==null?void 0:d.versionItem),yr.value=[...yr.value||[],JSON.parse(JSON.stringify(h))]},zr=async(d,h=null)=>{var T,z,$,N,ee,ae,H;try{const be=(T=ca.getAllLeafNodes(Se.value)||[])==null?void 0:T.filter(oa=>(oa==null?void 0:oa.type)!=="operate"&&(oa==null?void 0:oa.label)!=="操作"&&(oa==null?void 0:oa.prop)!=="operate"),we=new Map;be==null||be.forEach(oa=>{oa!=null&&oa.label&&(oa!=null&&oa.prop)&&we.set(oa.label,oa.prop)});const Re=we.get("系统编号")||we.get("编号");if(!Re){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Ie=h||tr.value;if((Array.isArray(Ie==null?void 0:Ie.result)?Ie.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let oa=0;oa<d.length;oa++){const ja=d[oa],Oa=ja[Re];if(!Oa){console.warn(`第 ${oa+1} 条匹配行缺少系统编号,跳过`);continue}const na=`设备管理/试验设备/${Oa}`,al=await L.getPageDataApi({platId:parseInt((z=$l.value)==null?void 0:z.plat_id),pageName:na});if(!(($=al==null?void 0:al.data)!=null&&$.result)||!Array.isArray(al.data.result)){console.warn(`未找到详情页数据: ${na}`);continue}const sa=al.data.result.find(ia=>(ia==null?void 0:ia.property_name)==="校检记录");if(!sa){console.warn(`详情页 ${na} 中未找到校检记录表`);continue}const Ua=(N=sa.contents)==null?void 0:N.find(ia=>(ia==null?void 0:ia.key)&&ia.key.startsWith("content_"));if(!Ua||!Ua.key){console.warn("校检记录表中未找到 content item");continue}const se=Ua.key,Aa=Array.isArray(Ua.value)?Ua.value:[];if(Aa.length>=5){const ye=[...Aa].sort((ua,La)=>{const pl=Number((ua==null?void 0:ua.create_time)||0),rl=Number((La==null?void 0:La.create_time)||0);return pl-rl})[0];ye!=null&&ye.id&&await L.pageBatchDeleteApi({platId:parseInt((ee=$l.value)==null?void 0:ee.plat_id),changeContents:[{tableName:se,tableContents:[{id:ye.id}]}]})}const da=(ae=be==null?void 0:be.find(ia=>(ia==null?void 0:ia.label)==="证书附件"))==null?void 0:ae.prop,Na=String(Date.now()),Ma={id:Na},A=Aa[0]||{},W=new Date().toISOString().split("T")[0];if(Object.keys(A||{}).forEach(ia=>{if(ia!=="id"){if(ia==="证书附件"){Ma[ia]="";return}if(ia==="校检日期"||ia==="检校日期"){Ma[ia]=ja[ia]||ja.校检日期||ja.检校日期||W;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(ia)){Ma[ia]=ja[ia]??"";return}Ma[ia]=ja[ia]??""}}),da&&ja[da]){const ia=ja[da];if(Array.isArray(ia)&&ia.length>0)Ma.证书附件=JSON.stringify(ia.map(ye=>({url:(ye==null?void 0:ye.url)||"",name:(ye==null?void 0:ye.name)||(ye==null?void 0:ye.fileName)||"",fileName:(ye==null?void 0:ye.fileName)||(ye==null?void 0:ye.name)||""})).filter(ye=>ye.url||ye.name));else if(typeof ia=="string")try{const ye=JSON.parse(ia);Ma.证书附件=ia}catch{Ma.证书附件=JSON.stringify([{url:ia,name:ia,fileName:ia}])}}console.log(se,"tableName","inspectionRecordRow",Ma),await L.pageBatchAddApi({platId:parseInt((H=$l.value)==null?void 0:H.plat_id),changeContents:[{tableName:se,tableContents:[Ma]}]});const Me=sa==null?void 0:sa.object_id;if(Me&&Na){const ia=da&&ja[da]?ja[da]:null;let ye=[],ua="",La=!1;if(Array.isArray(ia)&&ia.length>0){ye=ia.map(yl=>({name:(yl==null?void 0:yl.name)||(yl==null?void 0:yl.fileName)||"",url:(yl==null?void 0:yl.url)||""})).filter(yl=>yl.url||yl.name);const rl=ia[0];ua=(rl==null?void 0:rl.url)||"";const ml=(rl==null?void 0:rl.name)||(rl==null?void 0:rl.fileName)||"";La=String(ml).toLowerCase().endsWith(".pdf")||String(ua).toLowerCase().endsWith(".pdf")}else if(typeof ia=="string")try{const rl=JSON.parse(ia);Array.isArray(rl)?(ye=rl.map(ml=>({name:(ml==null?void 0:ml.name)||(ml==null?void 0:ml.fileName)||"",url:(ml==null?void 0:ml.url)||""})).filter(ml=>ml.url||ml.name),ye.length>0&&(ua=ye[0].url||"",La=String(ye[0].name).toLowerCase().endsWith(".pdf")||String(ua).toLowerCase().endsWith(".pdf"))):(ua=ia,La=String(ia).toLowerCase().endsWith(".pdf"))}catch{ua=ia,La=String(ia).toLowerCase().endsWith(".pdf")}const pl={ts:Date.now(),versionId:String(Date.now())+"_"+String(oa),label:new Date().toLocaleString(),certType:ja.证书类型||"",certNo:ja.证书编号||"",fileType:La?"pdf":"image",sourceUrl:La?ua:"",images:ye};Wa(Me,Na,pl)}}}catch(be){console.error("向校检记录表插入OCR识别结果失败:",be),el.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Mr=d=>{const h=Array.isArray(d)?d:nr.value||[];if(h.length===0){Ir();return}if(h.find(N=>(N==null?void 0:N.__decision)==="replace"&&!(N!=null&&N.selectedTargetId))){el.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(N=>{var ae;const ee=N==null?void 0:N.__decision;if(!(!ee||ee==="skip")){if(ee==="add"){Wa(u==null?void 0:u.index,(ae=N==null?void 0:N.ocrRow)==null?void 0:ae.id,N==null?void 0:N.versionItem),Nl.value=[...Nl.value||[],N.ocrRow];return}if(ee==="replace"){const H=N==null?void 0:N.selectedTargetId,be=(Ce.value||[]).find(we=>String(we==null?void 0:we.id)===String(H));if(!be)return;Er(N,be)}}}),(yr.value||[]).length>0&&(Ce.value=[...Ce.value||[]]),(Nl.value||[]).length>0&&(Ce.value=[...Ce.value||[],...Nl.value||[]],Ea.value=[...Ea.value||[],...Nl.value||[]],(Nl.value||[]).forEach(N=>{var ee,ae;return(ae=(ee=ma.value)==null?void 0:ee.set)==null?void 0:ae.call(ee,N.id,N)})),Gr.value=Ce.value;const z=yr.value||[],$=Nl.value||[];if(z.length>0&&(Ne("change",{buttonName:"编辑",singleContent:z,content:Ce.value,relatedContents:u==null?void 0:u.related,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,columns:Se.value,name:u==null?void 0:u.compName}),zr(z)),$.length>0){const N=tr.value;Ne("change",{buttonName:"OCR批量新增",content:Ce.value,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,column:Se.value,ocrRows:$,relatedContents:u==null?void 0:u.related,uploadedFiles:(Array.isArray(N==null?void 0:N.result)?N.result:[]).map(ee=>(Array.isArray(ee==null?void 0:ee.图片信息)?ee.图片信息:[]).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:N,matchedCount:(z||[]).length,newCount:($||[]).length})}el.ElMessage.success("已提交候选处理结果"),Ir()},Dr=ic(),Vr=a.computed(()=>Dr.getConfig()),Or=a.ref(),sr=a.ref(),gn=ac(L.pinia),Gr=a.ref(),rn=a.ref(0),Nn=L.useUnit(L.pinia),{selectIndex:bn,selectMenu:vn,selectTitle:vr}=L.storeToRefs(Nn),{selectString:Hl}=L.storeToRefs(gn),dr=L.useLoginState(L.pinia),{loginUserInfo:$l}=L.storeToRefs(dr),Kl=a.ref(720),Il=a.ref(!1),mr=a.ref(!1),or=a.ref([]),jl=a.ref(),$r=a.ref(!0),Pr=a.ref(!0);a.ref([]);const kn=a.inject("contentRef");a.provide("contentRef",kn),a.provide("getSuggestListForCell",fu),a.provide("getSuggestLoadingForCell",(d,h)=>{const T=`${d==null?void 0:d.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return y.value.get(T)||!1}),a.watch(()=>{var d;return(d=Ce.value)==null?void 0:d.length},d=>{fe.total=d}),a.watch(()=>P.value,async()=>{var h,T,z,$,N,ee,ae,H,be,we,Re,Ie,je,oa,ja,Oa,na;if(((h=P.value)==null?void 0:h.length)===0||!((T=u==null?void 0:u.itemData)!=null&&T.find(al=>(al==null?void 0:al.key)==="columnPath"))||!((z=u==null?void 0:u.itemData)!=null&&z.find(al=>(al==null?void 0:al.key)==="pageColumn")))return;let d=(be=(H=(ae=(ee=(N=($=u==null?void 0:u.itemData)==null?void 0:$.find(al=>(al==null?void 0:al.key)==="pageColumn"))==null?void 0:N.contents)==null?void 0:ee.split("["))==null?void 0:ae[1])==null?void 0:H.split("]"))==null?void 0:be[0];((je=(Ie=(Re=(we=u==null?void 0:u.itemData)==null?void 0:we.find(al=>(al==null?void 0:al.key)==="pageColumn"))==null?void 0:Re.contents)==null?void 0:Ie.split("["))==null?void 0:je[0])+((ja=(oa=P.value)==null?void 0:oa.find(al=>(al==null?void 0:al.key)===d))==null?void 0:ja.value),(na=(Oa=u==null?void 0:u.itemData)==null?void 0:Oa.find(al=>(al==null?void 0:al.key)==="pageGroup"))==null||na.contents,Rt(compData,u.allMapContents)},{deep:!0});const nn=d=>{var T,z,$,N,ee;const h=(z=(T=Se.value)==null?void 0:T.filter(ae=>ae==null?void 0:ae.mainKey))==null?void 0:z.map(ae=>ae==null?void 0:ae.prop);if(h.length===0){const ae=($=Se.value)==null?void 0:$.map(H=>H==null?void 0:H.prop);return(N=ae==null?void 0:ae.map(H=>d==null?void 0:d[H]))==null?void 0:N.join("|")}return(ee=h==null?void 0:h.map(ae=>d==null?void 0:d[ae]))==null?void 0:ee.join("|")},Xn=d=>{var ae,H,be,we,Re;const h=(H=(ae=Se.value)==null?void 0:ae.filter(Ie=>Ie==null?void 0:Ie.required))==null?void 0:H.map(Ie=>Ie==null?void 0:Ie.prop),T=[];if(d==null||d.forEach(Ie=>{h==null||h.forEach(je=>{const oa=Ie[je];(oa==null||oa==="")&&(T.includes(je)||T.push(je))})}),T.length>0)return el.ElMessage.warning(`请填写必填项:${T.join("、")}`);const z=new Map,$=new Map;(be=Ce.value)==null||be.forEach(Ie=>{const je=nn(Ie);z.set(je,Ie)}),d==null||d.forEach(Ie=>{const je=nn(Ie);$.set(je,Ie)});const N=d==null?void 0:d.filter(Ie=>z.has(nn(Ie))),ee=(we=Ce.value)==null?void 0:we.filter(Ie=>$.has(nn(Ie)));return(N==null?void 0:N.length)>0&&(i.columns=(Re=Se.value)==null?void 0:Re.filter(Ie=>(Ie==null?void 0:Ie.label)!=="操作"),i.existRows=ee,i.tableData=N,i.show=!0),d==null?void 0:d.filter(Ie=>{const je=nn(Ie);return!z.has(je)})},Tn=a.ref(""),Zn=a.ref(null),xn=async()=>{var d,h,T,z,$,N;try{const ee=await L.quoteApi({related:[{menus:_a.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=$l.value)==null?void 0:d.plat_id)});if(((h=ee==null?void 0:ee.data)==null?void 0:h.code)===200){Zn.value=(T=ee==null?void 0:ee.data)==null?void 0:T.result;const ae=(z=Se.value)==null?void 0:z.map(we=>(we==null?void 0:we.prop)||(we==null?void 0:we.label)),H=An(ae,($=ee==null?void 0:ee.data)==null?void 0:$.result),be=H==null?void 0:H.flatMap(we=>we==null?void 0:we.quote);(be==null?void 0:be.length)>0&&(Tn.value=(N=be==null?void 0:be.map(we=>we==null?void 0:we.menus))==null?void 0:N.join("、"))}}catch(ee){throw new Error(ee)}};function An(d,h){var T;return(T=h.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some($=>$.words&&Array.isArray($.words)?$.words.some(N=>d.includes(N)):!1):!1))==null?void 0:T.map(z=>{const $={...z};return $.struct&&Array.isArray($.struct)&&($.struct=$.struct.filter(N=>N.words&&Array.isArray(N.words)?N.words.some(ee=>d.includes(ee)):!1)),$})}const Pn=async(d,h)=>{var T,z,$,N,ee,ae,H,be,we,Re;try{Zn.value||await xn();const Ie=h==null?void 0:h.map(Ua=>{const se=Object.keys(Ua),Aa={};return se.forEach((da,Na)=>{Aa[d[Na]]=Ua[da]}),Aa}),je=Xn(Ie);if(!je||(je==null?void 0:je.length)===0)return;const oa=[];let ja=(Ce.value||[]).slice();(je||[]).forEach(Ua=>{const se={...Ua};try{se.sort=Mn(0,ja)}catch{}oa.push(se),ja.unshift(se)});let Oa=await L.quoteApi({platId:parseInt((T=$l==null?void 0:$l.value)==null?void 0:T.plat_id),type:"fatherSyncs",related:[{menus:_a.value,groups:""},{menus:_a.value,groups:u==null?void 0:u.compName}]});Oa=(z=Oa==null?void 0:Oa.data)==null?void 0:z.result;let na=Oa==null?void 0:Oa.map(Ua=>({tableName:"content_"+(Ua==null?void 0:Ua.id),tableContents:oa==null?void 0:oa.map((se,Aa)=>({id:Aa,...se}))})),al=[{tableName:($=u==null?void 0:u.related)==null?void 0:$.find(Ua=>Ua==null?void 0:Ua.includes("content")),tableContents:oa==null?void 0:oa.map((Ua,se)=>({id:se,...Ua}))}];al=[...al,...na];const sa=await L.pageBatchAddApi({platId:parseInt((N=$l.value)==null?void 0:N.plat_id),changeContents:al});if(((ee=sa==null?void 0:sa.data)==null?void 0:ee.code)===200){const Ua={buttonName:"新增",columns:Se.value,fixContent:oa==null?void 0:oa.map((Aa,da)=>({id:da,...Aa})),relatedContents:u==null?void 0:u.related};await bt(Ua),((ae=i==null?void 0:i.existRows)==null?void 0:ae.length)>0?el.ElMessage.success("部分数据导入成功"):el.ElMessage.success("数据导入成功");let se=[];al==null||al.forEach(Aa=>{var da;(da=Aa==null?void 0:Aa.tableContents)==null||da.forEach(Na=>{se.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Na),request_result:"{}",is_delete:!1,request_table:Aa==null?void 0:Aa.tableName,request_type:"export"})})}),await L.pageBatchAddApi({platId:parseInt((H=$l==null?void 0:$l.value)==null?void 0:H.plat_id),changeContents:[{tableName:"log",tableContents:se}]})}else{let Ua=[];al==null||al.forEach(se=>{var Aa;(Aa=se==null?void 0:se.tableContents)==null||Aa.forEach(da=>{Ua.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(da),request_result:"{}",is_delete:!1,request_table:se==null?void 0:se.tableName,request_type:"error"})})}),await L.pageBatchAddApi({platId:parseInt((be=$l==null?void 0:$l.value)==null?void 0:be.plat_id),changeContents:[{tableName:"log",tableContents:Ua}]}),el.ElMessage.error("数据导入响应失败")}}catch(Ie){throw el.ElMessage.error("数据导入处理失败"),await L.pageBatchAddApi({platId:parseInt((we=$l==null?void 0:$l.value)==null?void 0:we.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(Ie),is_delete:!1,request_table:(Re=u==null?void 0:u.related)==null?void 0:Re.find(je=>je==null?void 0:je.includes("content")),request_type:"error"}]}]}),new Error(Ie)}},en=async d=>{var N,ee,ae,H,be,we,Re;let h=ge.value;h!=null&&h.find(Ie=>(d==null?void 0:d.key)===(Ie==null?void 0:Ie.key))&&(h=h==null?void 0:h.filter(Ie=>(d==null?void 0:d.key)!==(Ie==null?void 0:Ie.key))),h.push({key:d==null?void 0:d.key,value:[(ee=d==null?void 0:d.value)==null?void 0:ee[((N=d==null?void 0:d.value)==null?void 0:N.length)-1]]});let T=Ca.value;T=T==null?void 0:T.map(Ie=>{var je,oa;return(Ie==null?void 0:Ie.type)==="Select"&&(d==null?void 0:d.key)===(Ie==null?void 0:Ie.prop)&&Array.isArray(Ie.value)&&(je=Ie.value)!=null&&je.every(ja=>typeof ja=="string")&&(Ie.selectValue=(oa=h==null?void 0:h.find(ja=>(ja==null?void 0:ja.key)===(Ie==null?void 0:Ie.prop)))==null?void 0:oa.value),Ie});let z=(H=(ae=T==null?void 0:T.find(Ie=>(Ie==null?void 0:Ie.prop)===(d==null?void 0:d.key)))==null?void 0:ae.optionUrl)==null?void 0:H.menuId,$=T==null?void 0:T.find(Ie=>(Ie==null?void 0:Ie.prop)===(d==null?void 0:d.key));if(z){let Ie=await vt($==null?void 0:$.optionUrl,z),je,oa=V.value,ja=(Re=(we=(be=Ca.value)==null?void 0:be.find(Oa=>{var na;return(na=$==null?void 0:$.optionUrl)==null?void 0:na.menuId}))==null?void 0:we.selectValue)==null?void 0:Re[0];if(Ie==null||Ie.forEach(Oa=>{var na,al,sa,Ua,se,Aa,da,Na,Ma,A;if(z){let W=(al=(na=Ca.value)==null?void 0:na.find(ia=>{var ye,ua;return((ye=$==null?void 0:$.optionUrl)==null?void 0:ye.menuId)===((ua=ia==null?void 0:ia.optionUrl)==null?void 0:ua.menuId)}))==null?void 0:al.prop,Me=(Ua=(sa=T==null?void 0:T.find(ia=>(ia==null?void 0:ia.prop)===W))==null?void 0:sa.selectValue)==null?void 0:Ua[0];W!=null&&W.includes("·")&&(W=(se=W==null?void 0:W.split("·"))==null?void 0:se[0],Me=(Ma=(Na=(da=d==null?void 0:d.value)==null?void 0:da[((Aa=d==null?void 0:d.value)==null?void 0:Aa.length)-1])==null?void 0:Na.split(" "))==null?void 0:Ma[0]),oa!=null&&oa.find(ia=>(ia==null?void 0:ia.value)===ja)?je=(A=oa==null?void 0:oa.find(ia=>(ia==null?void 0:ia.value)===ja))==null?void 0:A.objectValue:Oa[W]===Me&&(je=Oa)}}),je){let Oa=T;Oa=Oa==null?void 0:Oa.map(na=>{var al,sa,Ua,se,Aa,da;return z&&(je!=null&&je[na==null?void 0:na.prop])&&Ae.value==="新增"&&(na==null?void 0:na.prop)!==($==null?void 0:$.prop)?na.value=(je==null?void 0:je[na==null?void 0:na.prop])||(je==null?void 0:je[(se=(Ua=(sa=(al=na==null?void 0:na.optionUrl)==null?void 0:al.groupSelect)==null?void 0:sa[1])==null?void 0:Ua.replaceAll("[",""))==null?void 0:se.replaceAll("]","")]):na.value=(da=(Aa=Ca.value)==null?void 0:Aa.find(Na=>(Na==null?void 0:Na.prop)===(na==null?void 0:na.prop)))==null?void 0:da.value,na}),Ca.value=Oa}}ge.value=h},zn=async(d,h)=>{var T,z,$,N,ee;if((T=d==null?void 0:d.toString())!=null&&T.includes(".txt")||(z=d==null?void 0:d.toString())!=null&&z.includes(".cpt")||($=d==null?void 0:d.toString())!=null&&$.includes(".cyd")){const ae=await el.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),H=new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"});let be=URL.createObjectURL(H);le.value=[{name:(ee=d==null?void 0:d.split("/"))==null?void 0:ee[((N=d==null?void 0:d.split("/"))==null?void 0:N.length)-1],blobUrl:be}],Ja.value=!0}else Array.isArray(h)&&(h==null?void 0:h.length)>0&&Ne("routeUrl",{isEdit:!1,routerUrl:h})};a.onBeforeUnmount(()=>{Pr.value=!1;let d=rn.value;rn.value=d+1});const wn=a.reactive({prop:"",order:null}),Kr=a.computed(()=>{const d=(Ce.value??[]).slice(),h=wn.prop||J.prop,T=wn.order||J.order;if(!h||!T)return d;const z=T==="ascending",$=ee=>{if(h)return ee&&Object.prototype.hasOwnProperty.call(ee,h)?ee[h]:h.includes(".")?h.split(".").reduce((ae,H)=>ae==null?ae:ae[H],ee):ee==null?void 0:ee[h]},N=ee=>{if(ee==null)return{ok:!1,value:NaN};if(typeof ee=="number")return{ok:Number.isFinite(ee),value:ee};const ae=String(ee).trim();if(ae==="")return{ok:!1,value:NaN};const H=ae.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(H))return{ok:!1,value:NaN};const be=Number(H);return{ok:Number.isFinite(be),value:be}};return d.sort((ee,ae)=>{const H=$(ee),be=$(ae);if(H==null&&be==null)return 0;if(H==null)return z?-1:1;if(be==null)return z?1:-1;const we=N(H),Re=N(be);if(we.ok&&Re.ok)return z?we.value-Re.value:Re.value-we.value;const Ie=se=>{if(se==null)return{ok:!1,value:NaN};const Aa=String(se).trim();if(Aa==="")return{ok:!1,value:NaN};const da=Aa.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!da)return{ok:!1,value:NaN};const Na=da[1]?-1:1,Ma=Number(da[2]),A=Number(da[3]),W=Number(da[4]);return[Ma,A,W].some(Me=>Number.isNaN(Me))?{ok:!1,value:NaN}:A>=60||W>=60?{ok:!1,value:NaN}:{ok:!0,value:Na*(Ma*3600+A*60+W)}},je=Ie(H),oa=Ie(be);if(je.ok&&oa.ok)return z?je.value-oa.value:oa.value-je.value;const ja=new Date(H).getTime(),Oa=new Date(be).getTime(),na=!Number.isNaN(ja),al=!Number.isNaN(Oa);if(na&&al)return z?ja-Oa:Oa-ja;const sa=String(H),Ua=String(be);return z?sa.localeCompare(Ua):Ua.localeCompare(sa)})}),Fn=a.computed(()=>{var T;const d=(fe.currentPage-1)*fe.pageSize,h=d+fe.pageSize;return Ne("getSliceContLength",fe),(T=Kr.value)==null?void 0:T.slice(d,h)}),mn=d=>{fe.currentPage=d,Ne("getSliceContLength",fe)},To=d=>{var z;fe.pageSize=d;const h=((z=Ce.value)==null?void 0:z.length)??0,T=d>0?Math.ceil(h/d):1;fe.currentPage>T&&(fe.currentPage=T||1,el.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Ne("getSliceContLength",fe)},Oi=({prop:d,order:h})=>{wn.prop=d,wn.order=h,fe.currentPage=1};function Li(d){const h=[];function T(z,$=""){z.forEach(N=>{N.children&&N.children.length>0?T(N.children,N.prop):h.push(N.prop)})}return T(d),h}const _n=(d,h)=>{var ae,H,be,we;let T=(H=(ae=Se.value)==null?void 0:ae.map(Re=>Re==null?void 0:Re.prop))==null?void 0:H.filter(Re=>Re!=="operate");((be=Se.value)==null?void 0:be.some(Re=>{var Ie;return((Ie=Re==null?void 0:Re.children)==null?void 0:Ie.length)>0}))&&(T=Li((we=Se.value)==null?void 0:we.filter(Re=>(Re==null?void 0:Re.prop)!=="operate")));let $;if($=(d==null?void 0:d.length)===(T==null?void 0:T.length)?d:d.slice(0,T==null?void 0:T.length),!($==null?void 0:$.every(Re=>T==null?void 0:T.find(Ie=>Re===Ie))))return el.ElMessage.error("导入的数据表头不匹配");Pn($,h)},Ri=(d,h)=>{var $;const T=d==null?void 0:d.filter(N=>N!=="序号"),z=h==null?void 0:h.map(N=>{const ee=Object.entries(N);return ee.shift(),Object.fromEntries(ee)});Ze.setRefreshCurStructure(!1),(($=Se.value)==null?void 0:$.length)===0||_n(T,z)},$i=(d,h,T,z)=>{const $=[],N=[],ee=be=>Object.keys(be).length;for(const be in d)if(d[be]!==void 0){const we=d[be],Re=[];for(const[Ie,je]of Object.entries(we))Re.push(je),N.length<ee(we)&&N.push(Ie);$.push(Re)}$.unshift(N);const ae=ca.utils.aoa_to_sheet($),H=ca.utils.book_new();ca.utils.book_append_sheet(H,ae,z),ca.writeFileSync(H,`${h}.xlsx`),or.value=[]},Wo=async(d,h,T,z=!1,$)=>{var N,ee,ae,H,be,we,Re,Ie;try{Ze.setRefreshCurStructure(!1);const je=await _r.getInsofDataApi({id:u==null?void 0:u.index});if(((N=je==null?void 0:je.data)==null?void 0:N.code)===200){let oa=(be=(H=(ae=(ee=je==null?void 0:je.data)==null?void 0:ee.result)==null?void 0:ae[0])==null?void 0:H.value)==null?void 0:be.pageData;z?oa={...oa,compData:(Re=oa==null?void 0:oa.compData)==null?void 0:Re.map(Oa=>{var na;return(Oa==null?void 0:Oa.key)==="header"?{...Oa,contents:(na=Oa==null?void 0:Oa.contents)==null?void 0:na.map(al=>({...al,[d]:T}))}:Oa})}:oa={...oa,compData:(we=oa==null?void 0:oa.compData)==null?void 0:we.map(Oa=>{var na,al;return(Oa==null?void 0:Oa.key)==="header"?{...Oa,contents:(na=Oa==null?void 0:Oa.contents)==null?void 0:na.map(sa=>{if(Array.isArray(sa))sa=sa==null?void 0:sa.map(Ua=>(Ua==null?void 0:Ua.prop)===(h==null?void 0:h.prop)?{...Ua,[d]:T}:Ua);else if((sa==null?void 0:sa.prop)===(h==null?void 0:h.prop))return{...sa,[d]:T};return sa})}:(Oa==null?void 0:Oa.key)==="tableToForm"&&$?{...Oa,contents:(al=Oa==null?void 0:Oa.contents)==null?void 0:al.map(sa=>(sa==null?void 0:sa.prop)===(h==null?void 0:h.prop)?{...sa,[$]:T}:sa)}:Oa})};const ja=await _r.updateInsofDataApi({id:u==null?void 0:u.index,value:{pageData:oa}});((Ie=ja==null?void 0:ja.data)==null?void 0:Ie.code)===200?(el.ElMessage.success("编辑成功"),Ze.setRefreshCurStructure(!0)):el.ElMessage.error("编辑响应失败")}}catch(je){el.ElMessage.error(je)}},Ko=async(d,h)=>{await Wo("label",h,d)},Go=async(d,h)=>{await Wo("columnType",h,d,!1,"type")},Fr=async({newRow:d,targetIndex:h})=>{var $;if(!Le(u.config,{type:ra.TABLE}))return;const z=(fe.currentPage-1)*fe.pageSize+(h??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Mn(z,Ce.value||[]))}catch{}Ce.value.splice(z,0,d),await a.nextTick(),m.value.has(d.id)||m.value.set(d.id,L.cloneDeep(d)),Ce.value=($=Ce.value)==null?void 0:$.map(N=>({...N,tableEditType:(N==null?void 0:N.id)===d.id?"edit":(N==null?void 0:N.tableEditType)??"text"})),c.value.add(d.id),Il.value=!0},Vi=(d,h,T,z=[])=>(!Array.isArray(h)||h.length===0||h.forEach($=>{const N=$==null?void 0:$.prop;if(!N)return;let ee=d==null?void 0:d[N];if(ee==null||String(ee).trim()==="")return;ee=String(ee);const ae=new Set([...(Array.isArray(T)?T:[]).filter(we=>(we==null?void 0:we.id)!==(d==null?void 0:d.id)).map(we=>we==null?void 0:we[N]).filter(we=>we!=null).map(we=>String(we)),...(Array.isArray(z)?z:[]).map(we=>we==null?void 0:we[N]).filter(we=>we!=null).map(we=>String(we))]);if(!ae.has(ee))return;let H=1,be="";for(;be=`${ee}(${H})`,!!ae.has(be);)H++;d[N]=be}),d),Ao=async()=>{var $,N,ee,ae,H,be,we,Re;const d=Array.from(c.value||[]);if(d.length===0)return;const h=(N=ca.getColumnChild(($=L.cloneDeep(Se.value))==null?void 0:$.filter(Ie=>(Ie==null?void 0:Ie.label)!=="操作")))==null?void 0:N.filter(Ie=>(Ie==null?void 0:Ie.required)===!0);if((h==null?void 0:h.length)>0)for(let Ie=0;Ie<d.length;Ie++){const je=d[Ie],oa=(ee=Ce.value)==null?void 0:ee.find(ja=>(ja==null?void 0:ja.id)===je);if(oa)for(let ja=0;ja<h.length;ja++){const Oa=h[ja],na=Oa==null?void 0:Oa.prop,al=(Oa==null?void 0:Oa.label)??na,sa=oa==null?void 0:oa[na];if(sa===""||sa===null||sa===void 0||Array.isArray(sa)&&sa.length===0){el.ElMessage.error(`${al}不能为空`);return}}}const T=[],z=[];if(d.forEach(Ie=>{var al;const je=(al=Ce.value)==null?void 0:al.find(sa=>(sa==null?void 0:sa.id)===Ie);if(!je)return;if(je!=null&&je._isTemp){const Ua=(ca.getAllLeafNodes(Se.value)||[]).filter(A=>(A==null?void 0:A.mainKey)===!0||(A==null?void 0:A.isMainKey)===!0),se=Ce.value.findIndex(A=>(A==null?void 0:A.id)===Ie),Aa=se>=0?se+1:Ce.value.length+1;Vi(je,Ua,Ce.value,T);const da={id:Aa.toString()};(je==null?void 0:je.sort)!==void 0&&(je==null?void 0:je.sort)!==null&&String(je.sort).trim()!==""?da.sort=String(je.sort):da.sort=Mn(se>=0?se:Ce.value.length-1,Ce.value||[]),(ca.getAllLeafNodes(Se.value)||[]).filter(A=>(A==null?void 0:A.type)!=="operate"&&(A==null?void 0:A.label)!=="操作"&&(A==null?void 0:A.prop)!=="operate").forEach(A=>{const W=A==null?void 0:A.prop;if(W){const Me=je[W];Me!==void 0?da[W]=Me??"":da[W]=""}}),T.push(da);return}const ja=(ca.getAllLeafNodes(Se.value)||[]).filter(sa=>(sa==null?void 0:sa.type)!=="operate"&&(sa==null?void 0:sa.label)!=="操作"&&(sa==null?void 0:sa.prop)!=="operate"),Oa=new Set(ja.map(sa=>sa==null?void 0:sa.prop).filter(Boolean)),na={};for(const sa of Oa)Object.prototype.hasOwnProperty.call(je,sa)&&(na[sa]=je[sa]);z.push({id:je.id,value:{tableData:na}})}),Ze.setTableLoading(u==null?void 0:u.index),z.length>0){const Ie=z.map(oa=>{const ja={id:oa.id,...oa.value.tableData};return delete ja._isOCRRow,delete ja._ocrTableId,delete ja._isTemp,delete ja.tableEditType,delete ja.index,ja}),je=[{tableName:(ae=u==null?void 0:u.related)==null?void 0:ae.find(oa=>oa==null?void 0:oa.includes("content")),tableContents:Ie}];try{await L.pageBatchUpdateApi({platId:parseInt((H=$l.value)==null?void 0:H.plat_id),changeContents:je})}catch(oa){el.ElMessage.error(((we=(be=oa==null?void 0:oa.response)==null?void 0:be.data)==null?void 0:we.message)||(oa==null?void 0:oa.message)||"保存失败"),Ze.setTableLoading(!1);return}}if(T.length>0){const Ie={fixContent:T,buttonName:"新增",relatedContents:u==null?void 0:u.related,name:u==null?void 0:u.compName,columns:Se.value};Ne("change",Ie)}el.ElMessage.success("保存成功"),c.value.clear(),m.value.clear(),Ce.value=(Re=Ce.value)==null?void 0:Re.map(Ie=>({...Ie,tableEditType:"text"})),Il.value=!1,Ze.setRefreshCurStructure(!0)},Pi=()=>{var h;const d=Array.from(c.value||[]);if(d.length===0){Il.value=!1;return}d.forEach(T=>{var N,ee;const z=m.value.get(T),$=(N=Ce.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.id)===T);if($!=null&&$._isTemp){Ce.value=Ce.value.filter(ae=>(ae==null?void 0:ae.id)!==$.id);return}if(z){const ae=(ee=Ce.value)==null?void 0:ee.findIndex(H=>(H==null?void 0:H.id)===T);ae!==-1&&(Ce.value[ae]={...Ce.value[ae],...z})}}),c.value.clear(),m.value.clear(),Ce.value=(h=Ce.value)==null?void 0:h.map(T=>({...T,tableEditType:"text"})),Il.value=!1},zo=a.ref(!1),Yo=async d=>{var $,N,ee,ae;if(!Il.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const h=d==null?void 0:d.target;if(((N=($=h==null?void 0:h.tagName)==null?void 0:$.toLowerCase)==null?void 0:N.call($))==="textarea")return;const z=document.getElementById("excel-table");z&&!z.contains(h)||((ee=h==null?void 0:h.blur)==null||ee.call(h),(ae=d.preventDefault)==null||ae.call(d),await a.nextTick(),await Jo())},Jo=async()=>{if(F.value){Il.value=!1;return}if(!zo.value){zo.value=!0;try{Array.from(c.value||[]).length>0?await Ao():Il.value=!1}finally{Promise.resolve().then(()=>{zo.value=!1})}}},Fi=d=>{or.value=d},ji=(d,h)=>{jl.value===h?$r.value=!1:$r.value=!0,jl.value=h==null?void 0:h.changeProp},Xo=d=>{if(!d)return;const{item:h,value:T}=d,z=Ca.value.find($=>$.prop==h.prop);z&&z.contents.push({label:T,value:T})},Cn=a.computed(()=>{var T,z,$;const d=(T=Se.value)==null?void 0:T.some(N=>N==null?void 0:N.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),($=(z=Se.value)==null?void 0:z.filter(N=>(N==null?void 0:N.label)!=="操作"))==null?void 0:$.map(N=>({...N,filterable:!!(N!=null&&N.filterable),showSummary:!!(N!=null&&N.showSummary),operable:!!(N!=null&&N.operable),fixed:N==null?void 0:N.fixed}))}),Sn=async(d,h,T)=>{const z=L.cloneDeep(Se.value);await a.nextTick();const $=z==null?void 0:z.map(ee=>(T==null?void 0:T.label)===(ee==null?void 0:ee.label)?{...ee,[h]:d}:ee),N=jn($);await ds(u.index,N),Se.value=$,Q.value=N},jn=d=>{var $;const h=d||[];return(($=ca.getAllLeafNodes(h)||[])==null?void 0:$.filter(N=>(N==null?void 0:N.prop)&&(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate")).map(N=>{const{prop:ee}=N;return $f(ee,N)})},Hi=async d=>{let h=await Pf(u.index);h||(h=jn(d)),Q.value=h},Zo=async(d,h)=>{const T=L.cloneDeep(Se.value),z=ee=>Array.isArray(ee)?ee.map(ae=>{const H=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=H?!1:!!d,H&&(be.children=z(be.children)),be}):ee,$=z(T),N=jn($);await ds(u.index,N),Se.value=$,Q.value=N,await a.nextTick(),rn.value=rn.value+1},Qo=()=>{Xe.value=!1},ei=d=>{Ne("clickTrigger",d)},Hn=async d=>{var N,ee,ae,H,be,we,Re,Ie,je,oa,ja,Oa,na,al,sa;const h=d==null?void 0:d.row,T=d==null?void 0:d.rowData,z=d==null?void 0:d.suffix;if((N=h==null?void 0:h.toString())!=null&&N.includes(".urdf")||d!=null&&d.isUrdf||z!=null&&z.includes(".urdf")){if(h.includes(",")){el.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(D(h)){const se={files:[De(h)],data:{}};de(se);return}ta.value=[{url:h,extension:ke(h)}],Ba.value=!0,ne.value={data:L.cloneDeep(T)},Ue.value=!0;return}let $=[];if((ee=h==null?void 0:h.toString())!=null&&ee.includes(".stl")||(ae=h==null?void 0:h.toString())!=null&&ae.includes(".STL")||(H=h==null?void 0:h.toString())!=null&&H.includes(".obj")||(be=h==null?void 0:h.toString())!=null&&be.includes(".mtl")){const Ua=(we=h==null?void 0:h.toString())==null?void 0:we.split(","),se=ha(Ua),Aa=se==null?void 0:se[0];if(D(Aa==null?void 0:Aa.extension)){de({files:se,data:{}});return}ta.value=se,Ba.value=!1,Ue.value=!0;return}if((Re=h==null?void 0:h.toString())!=null&&Re.includes(".stl")||(Ie=h==null?void 0:h.toString())!=null&&Ie.includes(".STL")||(je=h==null?void 0:h.toString())!=null&&je.includes(".obj")||(oa=h==null?void 0:h.toString())!=null&&oa.includes(".mtl")||z!=null&&z.includes(".stl")||z!=null&&z.includes(".STL")||z!=null&&z.includes(".obj")||z!=null&&z.includes(".mtl")){let Ua,se=[],Aa={};if(Array.isArray(h)?Ua=h:Ua=h==null?void 0:h.split(","),Ua==null||Ua.forEach(da=>{da.includes(".mtl")?se.push(da):Aa.blob=Aa.blob?Aa.blob+","+da:da}),(se==null?void 0:se.length)>0&&(Aa.mtlBlobs=se),z&&(Aa.suffix=z),(Oa=(ja=Object.values(Aa))==null?void 0:ja[0])!=null&&Oa.includes("http:"))$.push(Aa);else{const da=new Blob([Aa.blob],{type:"application/octet-stream;charset=UTF-8"});let Na=URL.createObjectURL(da),Ma="";(na=h==null?void 0:h.split("/"))==null||na.forEach((A,W)=>{var Me;W===((Me=h==null?void 0:h.split("/"))==null?void 0:Me.length)-1&&(Ma=A)}),(al=Aa.blob)!=null&&al.includes(".stl")&&(Ma=(Ma==null?void 0:Ma.replaceAll(">",""))+".urdf"),le.value=[{name:Ma,blobUrl:Na}],Ja.value=!0}}else{const Ua=await el.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),se=new Blob([Ua.data],{type:"application/octet-stream;charset=UTF-8"});let Aa=URL.createObjectURL(se),da="";if((sa=h==null?void 0:h.split("/"))==null||sa.forEach((Na,Ma)=>{var A;Ma===((A=h==null?void 0:h.split("/"))==null?void 0:A.length)-1&&(da=Na)}),D(da)){const Na=re(da),Ma=De(h);de({files:[Ma],data:{trackFileType:Na}});return}le.value=[{name:da,blobUrl:Aa}],Ja.value=!0}($==null?void 0:$.length)>0&&o.setBlobUrls($)},Qn=d=>{var z,$,N,ee;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const h=(ee=(z=d==null?void 0:d.url)==null?void 0:z.split("."))==null?void 0:ee[((N=($=d==null?void 0:d.url)==null?void 0:$.split("."))==null?void 0:N.length)-1];return(d==null?void 0:d.name)+"."+h},ai=d=>{if(!d)return"未知文件";try{const z=Qn(d);if(typeof z=="string"&&z.includes("."))return z}catch{}const h=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",T=(d==null?void 0:d.suffix)||"";return h.includes(".")?h:`${h}${T}`},li=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const h=d.match(/^(\d+)\_(\d+)$/);if(!h)return d;const T=Number(h[1]),z=Number(h[2]);return!Number.isFinite(T)||!Number.isFinite(z)?d:String(T*1e3+z)},eo=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;const T=Number(h);return Number.isFinite(T)?T:null},Ui=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;if(/^\d+$/.test(h)){const $=Number(h);return Number.isFinite($)?h.length<=10?$*1e3:$:null}const T=h.includes("T")?h:h.replace(" ","T"),z=Date.parse(T);return Number.isFinite(z)?z:null},ri=(d,h=[])=>{const T=Array.isArray(d)?d.slice():[];if(T.length<=1)return T;const z=new Map((h||[]).map((ee,ae)=>[String(ee),ae])),$=T.some(ee=>eo(ee==null?void 0:ee.sort)!==null),N=T.map((ee,ae)=>({r:ee,idx:ae,id:String((ee==null?void 0:ee.id)??""),sortVal:eo(ee==null?void 0:ee.sort),createTimeMs:Ui(ee==null?void 0:ee.create_time),prevIdx:z.has(String(ee==null?void 0:ee.id))?z.get(String(ee==null?void 0:ee.id)):Number.POSITIVE_INFINITY}));return N.sort((ee,ae)=>{if($){const we=ee.sortVal,Re=ae.sortVal;if(we===null&&Re!==null)return 1;if(we!==null&&Re===null)return-1;if(we!==null&&Re!==null&&we!==Re)return we-Re}const H=ee.createTimeMs,be=ae.createTimeMs;return H!==null&&be!==null&&H!==be?be-H:H!==null&&be===null?-1:H===null&&be!==null?1:ee.prevIdx!==ae.prevIdx?ee.prevIdx-ae.prevIdx:ee.idx-ae.idx}),N.map(ee=>ee.r)},Mn=(d,h=[])=>{const T=h==null?void 0:h[d-1],z=h==null?void 0:h[d],$=eo(T==null?void 0:T.sort),N=eo(z==null?void 0:z.sort);let ee=null;$!==null&&N!==null&&N>$?ee=($+N)/2:$!==null?ee=$+1:N!==null?ee=Math.max(N-1,0):ee=(d??0)+1;const ae=Number(ee.toFixed(6));return String(Number.isFinite(ae)?ae:ee)},qi=async d=>{let h=null,T=null;if(d!=null&&d.id){const $=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const N=await L.platformDownloadFile(d);h=URL.createObjectURL(N.data),T=ai(d)}finally{$.close()}}else if(d!=null&&d.downloadUrl){const $=await uo(),N=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ee=await el.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:$,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{N.close()}),ae=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ae),T=d==null?void 0:d.name}else{const $=await L.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL($.data),T=Qn(d)):h=d==null?void 0:d.url}if(D(h)){const $={row:`${h}`,suffix:ke(T)};Hn($);return}const z={name:T,blobUrl:h};le.value=[z],Ja.value=!0},co=async d=>{let h=null,T=null;if(d!=null&&d.id){const N=await L.platformDownloadFile(d);h=URL.createObjectURL(N.data),T=ai(d)}else if(d!=null&&d.downloadUrl){const N=await uo(),ee=await el.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:N,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ae=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ae),T=d==null?void 0:d.name}else{const N=await L.platformDownloadFile({url:d==null?void 0:d.url});h=URL.createObjectURL(N.data),T=Qn(d)}const z={name:T,blobUrl:h},$=document.createElement("a");$.href=z.blobUrl,$.download=z.name,$.style.display="none",document.body.appendChild($),$.click(),setTimeout(()=>{document.body.removeChild($)},100)},Wi=(d,h)=>{var z;if(Object.values(h).length===0)return;let T=d;return Object.values(h).find($=>{var N,ee,ae;return((N=$==null?void 0:$.toString())==null?void 0:N.includes(".txt"))||((ee=$==null?void 0:$.toString())==null?void 0:ee.includes(".cpt"))||((ae=$==null?void 0:$.toString())==null?void 0:ae.includes(".obj"))})?T=[...d,pa.value]:(z=u==null?void 0:u.config)!=null&&z.allowMove&&(T=[...d,{label:"迁移"}]),T},Mo=()=>{q.value=!0},Ki=a.ref([]),Gi=async(d,h,T=!1)=>{var ee,ae,H,be;if(!d)return;if(T){Ce.value=[...ma.value.values()].filter(we=>Object.values(we).some(Re=>typeof Re=="string"?Re==null?void 0:Re.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let z={};for(let we in d)(d==null?void 0:d[we])!==""&&(z[we]=d==null?void 0:d[we]);if(JSON.stringify(z)==="{}"){Ce.value=Array.from(((ee=ma.value)==null?void 0:ee.values())??[]);return}let $=(ae=u==null?void 0:u.related)==null?void 0:ae.find(we=>we==null?void 0:we.includes("content_")),N=await L.getFillFind({platId:parseInt((H=$l==null?void 0:$l.value)==null?void 0:H.plat_id),tableName:$,params:z});N=(be=N==null?void 0:N.data)==null?void 0:be.result,Ce.value=N,Ze.setTableLoading(!1)},ni=async d=>{var T,z;if(!Le(u.config,{type:ra.TABLE})||!d)return;((T=Array.from(c.value))==null?void 0:T.length)>0&&await Ao();const h=d==null?void 0:d.id;h!=null&&(c.value.clear(),m.value.clear(),m.value.has(h)||m.value.set(h,L.cloneDeep(d)),Ce.value=(z=Ce.value)==null?void 0:z.map($=>({...$,tableEditType:($==null?void 0:$.id)===h?"edit":"text"})),c.value.add(h),Il.value=!0)},Un=async(d,h,T,z)=>{z!=null&&z.isExistChild&&Ne("clickMainKey",d,T,Se.value)},En=()=>{Ja.value=!1},oi=d=>{Ne("rowClick",d)};a.watch(()=>u.changedContent,()=>{var T,z;if(!u.changedContent)return;let d=(T=Ce.value)==null?void 0:T.map($=>{var N;return $.id===((N=u.changedContent)==null?void 0:N.id)&&($={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete $.newId),$});const h=(z=u.itemData)==null?void 0:z.map($=>(($==null?void 0:$.key)==="tableContents"&&($.contents=d),$));Ce.value=d,Ne("contentChange",{contents:h,index:u.index}),Ne("change",{content:d,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Io=()=>{},Yi=async()=>{const d=_a.value,h=sessionStorage.getItem("systemKey"),T=await ca.getItemData(d,h,""),z=(T==null?void 0:T.find(ae=>(ae==null?void 0:ae.name)==="方法明细"))||(T==null?void 0:T[0]),$=(z==null?void 0:z.compData)||[],N=$==null?void 0:$.find(ae=>{const H=ae==null?void 0:ae.key;return H==="formContent"||H==="tableContents"});return N==null?void 0:N.contents},uo=async()=>{const h=el.Local.get("access-token");return h?`Bearer ${h}`:""},Ji=async(d,{token:h,inputData:T}={})=>await el.axios.post(d,T,{headers:{Authorization:h}}).catch($=>(la.setImportLoading(!1),Promise.reject($))),Xi=d=>{var z;let h={};const T=[];return h.form={},(z=L.cloneDeep(d))==null||z.forEach(($,N)=>{var ee,ae,H,be,we,Re,Ie,je,oa,ja,Oa,na,al,sa;if(($==null?void 0:$.comp)==="Table"){(ae=(ee=$==null?void 0:$.compData)==null?void 0:ee.find(da=>(da==null?void 0:da.key)==="header"))==null||ae.contents;let Ua=(we=(be=(H=$==null?void 0:$.compData)==null?void 0:H.find(da=>(da==null?void 0:da.key)==="tableContents"))==null?void 0:be.contents)==null?void 0:we.map(da=>da.slice(1));(ja=(oa=(je=(Ie=(Re=$==null?void 0:$.compData)==null?void 0:Re.find(da=>(da==null?void 0:da.key)==="header"))==null?void 0:Ie.contents)==null?void 0:je[0])==null?void 0:oa[0])==null||ja.label;let se=(na=(Oa=$==null?void 0:$.compData)==null?void 0:Oa.find(da=>(da==null?void 0:da.key)==="header"))==null?void 0:na.contents,Aa=[];Ua==null||Ua.forEach(da=>{let Na=[];da==null||da.forEach((Ma,A)=>{var Me;let W={};((Me=se[A])==null?void 0:Me.label)!=="操作"&&(W[se[A].label]=Ma,Na.push(W))}),Aa.push(Na)}),h[$.name]=Aa}else{const Ua=(sa=(al=$.compData)==null?void 0:al.find(se=>(se==null?void 0:se.key)==="formContent"))==null?void 0:sa.contents;Ua==null||Ua.forEach(se=>{var Aa,da;if(se.prop!==""){let Na=se==null?void 0:se.value;Array.isArray(Na)?Na=((Aa=Na==null?void 0:Na[0])==null?void 0:Aa.oldUrl)||"http://222.92.178.198:62001/"+((da=Na==null?void 0:Na[0])==null?void 0:da.url):Na=Na.toString(),se={key:(se==null?void 0:se.prop)??(se==null?void 0:se.label),value:Na},T.push(se)}})}}),h.form=ca.getFormContents(T),h},Zi=d=>{const h=[],T=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(T):h.push(z)};return T(d),h},Qi=async(d,h,T)=>{var se,Aa,da,Na,Ma,A,W,Me,ia,ye,ua,La,pl,rl,ml,yl,Pl;la.setImportLoading(!0),Ze.setFreshContent(!1);let z=await Yi().catch(ll=>(la.setImportLoading(!1),Promise.reject(ll)));z=z==null?void 0:z.filter(ll=>{var kl;return((kl=ll==null?void 0:ll.find(Ya=>Ya==null?void 0:Ya.id))==null?void 0:kl.id)===(h==null?void 0:h.id)});let $=ca.getEqualChild([(se=Se.value)==null?void 0:se.filter(ll=>(ll==null?void 0:ll.label)!=="操作")]);const N=(da=(Aa=ca.tableToForm(z,$))==null?void 0:Aa[0])==null?void 0:da.find(ll=>{const kl=ll==null?void 0:ll.key;return kl==="Interface"||kl==="方法体"}),ee=N==null?void 0:N.value;if(!ee){console.log("未搜索到isMain, 缺少算法执行接口"),la.setImportLoading(!1);return}const ae=Se.value?ca.getEqualChild([Se.value]):[],H=ae.find(ll=>{const kl=ll==null?void 0:ll.prop;return kl==="Input1"||kl==="输入数据.输入1"||kl==="样本输入数据"}),be=H==null?void 0:H.prop;let we=h==null?void 0:h[be];const Re=await uo().catch(ll=>(la.setImportLoading(!1),Promise.reject(ll)));let Ie=!0,je="";(Na=Se.value)==null||Na.forEach(ll=>{(ll==null?void 0:ll.prop)===be&&(Ie=!!(ll!=null&&ll.childPath),je=ll==null?void 0:ll.childPath)});let oa="";if(Ie){let ll=(A=(Ma=Se.value)==null?void 0:Ma.find(hl=>(hl==null?void 0:hl.isMainKey)===!0))==null?void 0:A.prop;oa=h==null?void 0:h[ll];let kl=je==null?void 0:je.split(g),Ya=[];kl==null||kl.forEach((hl,El)=>{(kl==null?void 0:kl.length)-1===El&&Ya.push(oa),Ya.push(hl)}),Ya=Ya==null?void 0:Ya[0];let fl=await ca.getItemData(Ya,sessionStorage.getItem("systemKey"),""),ol=fl==null?void 0:fl.filter(hl=>(hl==null?void 0:hl.name)===be);ol=ol==null?void 0:ol.map(hl=>{var El;return hl.compData=(El=hl==null?void 0:hl.compData)==null?void 0:El.map(Al=>{var kr;return(Al==null?void 0:Al.key)==="tableContents"&&(Al.contents=(kr=Al==null?void 0:Al.contents)==null?void 0:kr.filter(Rl=>(Rl==null?void 0:Rl[1])===(h==null?void 0:h[be]))),Al}),hl}),(!ol||(ol==null?void 0:ol.length)===0)&&(ol=fl,ol=ol==null?void 0:ol.map(hl=>{var El;return hl.compData=(El=hl==null?void 0:hl.compData)==null?void 0:El.map(Al=>{var kr;return(Al==null?void 0:Al.key)==="tableContents"&&(Al.contents=(kr=Al==null?void 0:Al.contents)==null?void 0:kr.filter(Rl=>{var wl,Ml;return(Rl==null?void 0:Rl[1])===(h==null?void 0:h[(Ml=(wl=Se==null?void 0:Se.value)==null?void 0:wl[0])==null?void 0:Ml.prop])})),Al}),hl})),we=Xi(ol)}const ja=await Ji(ee,{token:Re,inputData:we}).catch(ll=>(la.setImportLoading(!1),Promise.reject(ll))),Oa=(W=ja==null?void 0:ja.data)==null?void 0:W.data,na=ae.find(ll=>(ll==null?void 0:ll.prop)==="Output1"),al=na==null?void 0:na.prop;let sa=[],Ua=[];if(Oa&&((Me=Object.values(Oa))==null?void 0:Me.length)>0){let ll=[];const kl=new FormData,Ya=(ia=Zi(Oa))==null?void 0:ia.map(async ol=>{var hl,El;if(!Array.isArray(ol)&&(ol!=null&&ol.includes("http"))){let Al=await el.axios.get(ol,{responseType:"blob"}),kr=(El=ol==null?void 0:ol.split("/"))==null?void 0:El[((hl=ol==null?void 0:ol.split("/"))==null?void 0:hl.length)-1];kl.append("files",Al.data,kr)}else ll.push(ol)});if(await Promise.all(Ya),!ca.isFormDataEmpty(kl)){let ol=await wu.uploadAmountApi(kl),hl=(ua=(ye=ol==null?void 0:ol.data)==null?void 0:ye.result)==null?void 0:ua.map(El=>{var Al,kr,Rl,wl,Ml,Yl;return{name:(Yl=(Ml=(wl=(Al=El==null?void 0:El.url)==null?void 0:Al.split("/"))==null?void 0:wl[((Rl=(kr=El==null?void 0:El.url)==null?void 0:kr.split("/"))==null?void 0:Rl.length)-1])==null?void 0:Ml.split("."))==null?void 0:Yl[0],url:El==null?void 0:El.url}});ll=[...ll,...hl]}let fl={};for(let ol in h)ol!=="id"&&(fl[ol]=h[ol]);fl[al]=ll,Ua.push({id:h==null?void 0:h.id,value:{tableData:fl}})}if((Ua==null?void 0:Ua.length)>0){const ll=Ua.map(Ya=>{const fl={id:Ya.id,...Ya.value.tableData};return delete fl._isOCRRow,delete fl._ocrTableId,delete fl._isTemp,delete fl.tableEditType,delete fl.index,fl}),kl=[{tableName:(La=u==null?void 0:u.related)==null?void 0:La.find(Ya=>Ya==null?void 0:Ya.includes("content")),tableContents:ll}];await L.pageBatchUpdateApi({platId:parseInt((pl=$l.value)==null?void 0:pl.plat_id),changeContents:kl})}if((sa==null?void 0:sa.length)>0)try{await L.pageBatchAddApi({platId:parseInt((rl=$l.value)==null?void 0:rl.plat_id),changeContents:[{tableName:(ml=u==null?void 0:u.related)==null?void 0:ml.find(ll=>ll==null?void 0:ll.includes("content")),tableContents:sa.map(ll=>{var Ya,fl,ol;const kl={id:((Ya=ll==null?void 0:ll.key)==null?void 0:Ya.id)??((fl=ll==null?void 0:ll.key)==null?void 0:fl.rowId)??(ll==null?void 0:ll.id),...((ol=ll==null?void 0:ll.value)==null?void 0:ol.tableData)||{}};return delete kl._isOCRRow,delete kl._ocrTableId,delete kl._isTemp,delete kl.tableEditType,delete kl.index,Object.keys(kl).forEach(hl=>{hl==="证书附件"&&Array.isArray(kl[hl])&&(kl[hl]=JSON.stringify(kl[hl]))}),kl})}]})}catch(ll){el.ElMessage.error(((Pl=(yl=ll==null?void 0:ll.response)==null?void 0:yl.data)==null?void 0:Pl.message)||(ll==null?void 0:ll.message)||"保存失败"),Ze.setTableLoading(!1);return}Ro(!0),la.setImportLoading(!1),Ze.setFreshContent(!0)},ii=(d,h)=>(d=d==null?void 0:d.map(T=>{var z,$;return T!=null&&T.children&&((z=T.children)!=null&&z.find(N=>N.id===(h==null?void 0:h.id))?T.children=($=T.children)==null?void 0:$.filter(N=>(N==null?void 0:N.id)!==(h==null?void 0:h.id)):T.children=ii(T.children,h)),T}),d),po=a.ref(!1),et=()=>{po.value=!0},at=async d=>{var T,z,$,N;po.value=!1;const h=Array.isArray(d)?d:d?[d]:[];if(h.length!==0)for(const ee of h){const ae={name:ee.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(ee),raw:ee,uid:Date.now()+Math.random()};Ye.value.push(ae),Bl(ae,"uploading"),Ol(ae,0);try{const H=new FormData;H.append("file",ee,ae.name);const be=await L.platformUploadFile(H);ae.uploadResult=((T=be==null?void 0:be.data)==null?void 0:T.result)||{name:ae.name,url:"",fileName:ae.name},ie({name:((z=ae.uploadResult)==null?void 0:z.name)||ae.name,url:(($=ae.uploadResult)==null?void 0:$.url)||"",id:(N=ae.uploadResult)==null?void 0:N.id}),Bl(ae,"uploaded"),Ol(ae,100)}catch(H){console.error("文件上传失败:",H),el.ElMessage.error(`文件 ${ae.name} 上传失败,请重试`),Bl(ae,"pending"),Ol(ae,0);const be=Ye.value.findIndex(we=>we.uid===ae.uid);be>-1&&Ye.value.splice(be,1)}}},t=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,h,T)=>{h===(u==null?void 0:u.index)?T(new Error("选择源不能和目标源一致")):T()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),i=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),f=()=>{i.show=!1},k=async d=>{var h,T,z,$,N,ee,ae,H;try{if(d==="cancel"&&(i.show=!1),d==="replace"&&((h=i==null?void 0:i.existRows)==null?void 0:h.length)>0){await L.pageBatchDeleteApi({platId:parseInt((T=$l.value)==null?void 0:T.plat_id),changeContents:[{tableName:((z=u==null?void 0:u.related)==null?void 0:z.find(we=>we==null?void 0:we.includes("content_")))||(($=u==null?void 0:u.related)==null?void 0:$.find(we=>we==null?void 0:we.includes("content"))),tableContents:i==null?void 0:i.existRows}]});const be=await L.pageBatchAddApi({platId:parseInt((N=$l.value)==null?void 0:N.plat_id),changeContents:[{tableName:(ee=u==null?void 0:u.related)==null?void 0:ee.find(we=>we==null?void 0:we.includes("content")),tableContents:(()=>{const we=(Ce.value||[]).filter(oa=>!((i==null?void 0:i.existRows)||[]).some(ja=>String(ja==null?void 0:ja.id)===String(oa==null?void 0:oa.id))),Re=(i==null?void 0:i.tableData)||[],Ie=[];let je=we.slice();return Re.forEach(oa=>{const ja={...oa};try{ja.sort=Mn(0,je)}catch{}Ie.push(ja),je.unshift(ja)}),Ie.map((oa,ja)=>({id:ja,...oa}))})()}]});((ae=be==null?void 0:be.data)==null?void 0:ae.code)===200&&(await bt({buttonName:"新增",columns:Se.value,fixContent:(H=i==null?void 0:i.tableData)==null?void 0:H.map((we,Re)=>({id:Re,...we})),relatedContents:u==null?void 0:u.related}),el.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{i.show=!1,i.columns=[],i.tableData=[],i.existRows=[]}},x=()=>{t.show=!1},I=d=>{var h,T;if((d==null?void 0:d.buttonName)==="取消")return t.show=!1;t.to=d==null?void 0:d.content,!(!(u!=null&&u.index)||!((h=t.to)!=null&&h.groupName))&&(u==null?void 0:u.index)!==((T=t.to)==null?void 0:T.groupName)&&(Ne("change",{buttonName:"迁移",value:{from:t.from,to:t.to,data:t.selectRow}}),t.show=!1)},U=async d=>{var h,T,z,$;if(d){if(!Dr.validateFileSize(d.raw)){el.ElMessage.warning(`文件大小不能超过 ${Vr.value.maxSize}MB`);const N=Ye.value.findIndex(ee=>ee.uid===d.uid);N>-1&&Ye.value.splice(N,1),Y();return}if(!Dr.validateFileType(d.raw)){el.ElMessage.warning("请上传图片文件");const N=Ye.value.findIndex(ee=>ee.uid===d.uid);N>-1&&Ye.value.splice(N,1),Y();return}Bl(d,"uploading"),Ol(d,0);try{const N=new FormData;N.append("file",d.raw,d.name);const ee=await L.platformUploadFile(N);d.uploadResult=((h=ee==null?void 0:ee.data)==null?void 0:h.result)||{name:d.name,url:"",fileName:d.name},ie({name:((T=d.uploadResult)==null?void 0:T.name)||d.name,url:((z=d.uploadResult)==null?void 0:z.url)||"",id:($=d.uploadResult)==null?void 0:$.id}),Bl(d,"uploaded"),Ol(d,100)}catch(N){console.error("文件上传失败:",N),el.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Bl(d,"pending"),Ol(d,0);const ee=Ye.value.findIndex(ae=>ae.uid===d.uid);ee>-1&&Ye.value.splice(ee,1)}finally{Y()}}},Y=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},he=async()=>{var T,z;if(sessionStorage.setItem("ocr_root_table_id",String((u==null?void 0:u.index)??"")),Ye.value.length===0){el.ElMessage.warning("请先选择要上传的图片");return}if(Ye.value.filter($=>{const N=ul($);return N!=="uploaded"&&N!=="completed"&&N!=="failed"}).length>0){el.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ba.value=!0,K.value=0;let h=null;try{Ye.value.forEach(na=>{Bl(na,"processing")});const $=Math.floor(Math.random()*10)+90;h=setInterval(()=>{K.value<$?K.value+=1:clearInterval(h)},50);const N=Ye.value.map(na=>{var al,sa,Ua;return{name:((al=na.uploadResult)==null?void 0:al.name)||na.name,url:((sa=na.uploadResult)==null?void 0:sa.url)||"",fileName:((Ua=na.uploadResult)==null?void 0:Ua.fileName)||na.name}}),ee=Dr.extractTableHeaders(Se.value),ae=N.map(na=>({name:(na==null?void 0:na.fileName)||(na==null?void 0:na.name),url:(na==null?void 0:na.url)||""})),H=await Dr.recognize(ae,ee);if(console.log(H,"ocrResult"),clearInterval(h),h=null,(H==null?void 0:H.code)===500||(H==null?void 0:H.type)==="error"||!(H!=null&&H.result)){K.value=0,Ye.value.forEach(na=>{Bl(na,"failed"),Ol(na,0)}),el.ElMessage.error((H==null?void 0:H.message)||"OCR识别失败,请重试"),ba.value=!1;return}K.value=$;const be=Array.isArray(H==null?void 0:H.result)?H.result:[];if(be.length===0){K.value=0,Ye.value.forEach(na=>{Bl(na,"failed"),Ol(na,0)}),el.ElMessage.warning("OCR识别未返回有效数据"),ba.value=!1;return}const we=new Set,Re=[];be.forEach((na,al)=>{const sa=na!=null&&na.数据&&typeof(na==null?void 0:na.数据)=="object"?na.数据:{},Ua=Array.isArray(na==null?void 0:na.图片信息)?na.图片信息:[],se=new Map;Ua.forEach(da=>{da!=null&&da.name&&se.set(da.name,da.url||"")});const Aa={_index:al,_certType:(na==null?void 0:na.证书类型)||"",_certNo:(na==null?void 0:na.证书编号)||"",_ocrImages:Ua,__ocrFieldMeta:{}};Object.entries(sa).forEach(([da,Na])=>{let Ma="",A=0,W=[],Me="";Na&&typeof Na=="object"&&!Array.isArray(Na)?(Ma=(Na==null?void 0:Na.value)??"",A=(Na==null?void 0:Na.score)??0,W=Array.isArray(Na==null?void 0:Na.bboxNorm)?Na==null?void 0:Na.bboxNorm:[],Me=(Na==null?void 0:Na.imageName)||""):Array.isArray(Na)&&Na.length>=2?(Ma=Na[0]??"",A=Na[1]??0):(Ma=Na??"",A=0),Aa[da]=Ma,Aa[`${da}_accuracy`]=A,we.add(da),Aa.__ocrFieldMeta[da]={value:Ma,score:A,bboxNorm:W,imageName:Me,imageUrl:Me&&se.get(Me)||"",images:Ua}}),Re.push(Aa)});const Ie=[],je=new Set;Re.forEach(na=>{na&&we.forEach(al=>{const sa=na[`${al}_accuracy`];(typeof sa=="number"?sa>0:sa!=null&&String(sa).trim()!==""&&String(sa)!=="0")&&je.add(al)})}),we.forEach(na=>{Ie.push({prop:na,label:na,editable:!0,minWidth:230}),je.has(na)&&Ie.push({prop:`${na}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Ye.value.forEach(na=>{Bl(na,"completed")}),K.value=100,Be.value=Ie,Ge.value=Re,bl.value=N,Ga.value=H;const oa=["出厂编号","设备名称","制造厂"],ja=Ie.filter(na=>na&&!na.isAccuracy&&typeof na.prop=="string").map(na=>na.prop),Oa=["出厂编号","设备名称","制造厂"];Qa.value=ja.filter(na=>Oa.includes(na)),console.log("[OCR] 默认勾选字段 props:",Qa.value),me.value=2,ba.value=!1,aa.value=!1}catch($){console.error("OCR处理失败:",$),h&&(clearInterval(h),h=null),el.ElMessage.error(((z=(T=$==null?void 0:$.response)==null?void 0:T.data)==null?void 0:z.message)||"OCR识别失败,请重试"),ba.value=!1,K.value=0,Ye.value.forEach(N=>{Bl(N,"pending"),Ol(N,0)})}},Oe=d=>{if(d==null)return"";let h=String(d);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,T=>String.fromCharCode(T.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},xe=()=>{var na,al;const d=bl.value,h=Ga.value,T=Ge.value;if(!T||T.length===0){el.ElMessage.warning("暂无数据可添加");return}const z=(na=ca.getAllLeafNodes(Se.value)||[])==null?void 0:na.filter(sa=>(sa==null?void 0:sa.type)!=="operate"&&(sa==null?void 0:sa.label)!=="操作"&&(sa==null?void 0:sa.prop)!=="operate"),$=new Map,N=new Map,ee=(al=z==null?void 0:z.find(sa=>(sa==null?void 0:sa.label)==="证书附件"))==null?void 0:al.prop;z==null||z.forEach(sa=>{sa!=null&&sa.label&&(sa!=null&&sa.prop)&&($.set(sa.label,sa.prop),N.set(sa.prop,sa.label))});const ae=Date.now(),H=sa=>String(ae*1e3+sa),be=[],we=[],Re=sa=>{const Ua=Ei&&Ei[sa]||[sa];for(const se of Ua){const Aa=$.get(se);if(Aa)return Aa}return""},Ie=Re("出厂编号"),je=Re("设备名称"),oa=Re("制造厂"),ja=[],Oa=sa=>{var Ma,A;if(!ee)return[];const Ua=(Array.isArray(d)?d[sa]:null)||null,se=(Ua==null?void 0:Ua.url)||"",Aa=(Ua==null?void 0:Ua.fileName)||(Ua==null?void 0:Ua.name)||"";return(String(Aa).toLowerCase().endsWith(".pdf")||String(se).toLowerCase().endsWith(".pdf"))&&se?[{url:se,name:Aa,fileName:Aa}]:(Array.isArray((A=(Ma=h==null?void 0:h.result)==null?void 0:Ma[sa])==null?void 0:A.图片信息)?h.result[sa].图片信息:[]).map(W=>({url:(W==null?void 0:W.url)||"",name:(W==null?void 0:W.name)||"",fileName:(W==null?void 0:W.name)||""})).filter(W=>W.url)};if(T.forEach((sa,Ua)=>{var pl;const se={id:H(Ua),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[rl,ml]of $.entries())Object.prototype.hasOwnProperty.call(sa,rl)&&(se[ml]=sa[rl]);ee&&(se[ee]=Oa(Ua));const Aa=(Array.isArray(h==null?void 0:h.result)?h.result[Ua]:null)||null,da=(Array.isArray(d)?d[Ua]:null)||null,Na=(da==null?void 0:da.url)||"",Ma=(da==null?void 0:da.fileName)||(da==null?void 0:da.name)||"",A=String(Ma).toLowerCase().endsWith(".pdf")||String(Na).toLowerCase().endsWith(".pdf"),W={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ua),label:new Date().toLocaleString(),certType:(Aa==null?void 0:Aa.证书类型)||"",certNo:(Aa==null?void 0:Aa.证书编号)||"",fileType:A?"pdf":"image",sourceUrl:A?Na:"",images:Array.isArray(Aa==null?void 0:Aa.图片信息)?Aa.图片信息.map(rl=>({name:(rl==null?void 0:rl.name)||"",url:(rl==null?void 0:rl.url)||""})).filter(rl=>rl.url):[]},Me=rl=>Oe(rl?se==null?void 0:se[rl]:""),ia=Me(Ie),ye=Me(je),ua=Me(oa);if(!!(Ie&&je&&oa&&ia&&ye&&ua)){const rl=(Ce.value||[]).find(ml=>{const yl=Oe(Ie?ml==null?void 0:ml[Ie]:""),Pl=Oe(je?ml==null?void 0:ml[je]:""),ll=Oe(oa?ml==null?void 0:ml[oa]:"");return yl&&Pl&&ll&&yl===ia&&Pl===ye&&ll===ua});if(rl){ja.push({idx:Ua,ocrRow:se,versionItem:W,ocrNo:ia,candidates:[rl],selectedTargetId:String((rl==null?void 0:rl.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(ia&&Ie){const rl=(Ce.value||[]).filter(ml=>{const yl=Oe(Ie?ml==null?void 0:ml[Ie]:"");return yl&&yl===ia});if(rl.length>0){ja.push({idx:Ua,ocrRow:se,versionItem:W,ocrNo:ia,candidates:rl,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(se.sort===void 0||se.sort===null||String(se.sort).trim()===""){const rl=(Ce.value||[]).map(yl=>eo(yl==null?void 0:yl.sort)).filter(yl=>yl!==null),ml=rl.length>0?Math.max(...rl):((pl=Ce.value)==null?void 0:pl.length)??0;se.sort=String(Number((ml+1).toFixed(6)))}}catch{}Wa(u==null?void 0:u.index,se.id,W),ja.push({idx:Ua,ocrRow:se,versionItem:W,ocrNo:ia,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(ja||[]).length>0){nr.value=(ja||[]).map(sa=>({...sa,selectedTargetId:(sa==null?void 0:sa.selectedTargetId)||""})),Fl.value=!0,yr.value=we,Nl.value=be,tr.value=h,Nr.value=d,Ll.value=ee||"";return}},ea=(d,h,T)=>{Ge.value[d]&&(Ge.value[d][h]=T)},$a=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,sl=d=>{if(d==null||d===0)return"#909399";const h=Number(d);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},nl=d=>{var T,z,$,N;if(Ta.value===d){Ta.value=null,Da.value=!1,pe.value="";return}Ta.value=d,pe.value="";const h=(T=Ge.value)==null?void 0:T[d];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){Sl.value=h._ocrImages.map(H=>({name:(H==null?void 0:H.name)||"",url:(H==null?void 0:H.url)||""})).filter(H=>H.name||H.url);const ee=h.__ocrFieldMeta||{},ae=(z=Object.values(ee))==null?void 0:z.find(H=>H==null?void 0:H.imageName);Vl.value=(ae==null?void 0:ae.imageName)||((N=($=Sl.value)==null?void 0:$[0])==null?void 0:N.name)||"",Da.value=Sl.value.length>0}else Sl.value=[],Da.value=!1,Vl.value=""},cl=()=>{va.value=!1,Ye.value=[],Za.value=null,me.value=1,Ra.value.clear(),qe.value.clear(),K.value=0,Da.value=!1},_l=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",ul=d=>{const h=d.uid||d.name;return Ra.value.get(h)||"pending"},Tl=d=>{const h=d.uid||d.name;return qe.value.get(h)||0},Ol=(d,h)=>{const T=d.uid||d.name;qe.value.set(T,Math.min(100,Math.max(0,h)))},Xl=d=>{const h=ul(d),T=100.53;if(h==="completed"||h==="uploaded")return`${T} ${T}`;if(h==="failed")return`${T} ${T}`;if(h==="uploading"){const z=Tl(d);return`${T*(z/100)} ${T}`}else if(h==="processing")return`${T*.5} ${T}`;return`0 ${T}`},Bl=(d,h)=>{const T=d.uid||d.name;Ra.value.set(T,h),(h==="completed"||h==="uploaded")&&Ol(d,100)},Ul=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const h=document.createElement("input");h.type="file",h.multiple=!0,h.accept="image/*,application/pdf",h.style.display="none",h.onchange=async T=>{const z=Array.from(T.target.files||[]);for(const $ of z){const N={name:$.name,raw:$,uid:Date.now()+Math.random()};Ye.value.push(N),await U(N)}T.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},jr=()=>{me.value>1&&me.value--},wr=()=>{me.value===1?Ye.value.length>0&&!ba.value&&he():me.value===2&&(xe(),me.value=3)},Yr=async d=>{await pn(d==null?void 0:d.row)},on=async({row:d,prop:h})=>{!d||!h||await pn(d,h)},pn=async(d,h)=>{var $,N;const T=d==null?void 0:d.id;if(!T){el.ElMessage.warning("暂无可预览数据");return}let z=vl(u==null?void 0:u.index,T);if(!z||z.length===0){const ee=sessionStorage.getItem("ocr_root_table_id"),ae=ee!==null?Number(ee):null;if(ae!=null&&ae!==""&&!Number.isNaN(ae)){const H=vl(ae,T);Array.isArray(H)&&H.length>0&&(Wl(u==null?void 0:u.index,T,H),z=H)}}if(!z||z.length===0){const ee=($=ca.getAllLeafNodes(Se.value)||[])==null?void 0:$.filter(H=>(H==null?void 0:H.type)!=="operate"&&(H==null?void 0:H.label)!=="操作"&&(H==null?void 0:H.prop)!=="operate"),ae=h||((N=ee==null?void 0:ee.find(H=>(H==null?void 0:H.label)==="证书附件"))==null?void 0:N.prop);if(ae&&d[ae]){const H=d[ae];let be=[],we="",Re=!1;if(typeof H=="string")try{const Ie=JSON.parse(H);Array.isArray(Ie)&&(be=Ie.map(je=>({name:(je==null?void 0:je.name)||(je==null?void 0:je.fileName)||"",url:(je==null?void 0:je.url)||""})).filter(je=>je.url||je.name),be.length>0&&(we=be[0].url||"",Re=String(be[0].name).toLowerCase().endsWith(".pdf")||String(we).toLowerCase().endsWith(".pdf")))}catch{we=H,Re=String(H).toLowerCase().endsWith(".pdf"),be=[{name:H,url:H}]}else Array.isArray(H)&&(be=H.map(Ie=>({name:(Ie==null?void 0:Ie.name)||(Ie==null?void 0:Ie.fileName)||"",url:(Ie==null?void 0:Ie.url)||""})).filter(Ie=>Ie.url||Ie.name),be.length>0&&(we=be[0].url||"",Re=String(be[0].name).toLowerCase().endsWith(".pdf")||String(we).toLowerCase().endsWith(".pdf")));if(be.length>0||we){const Ie={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:Re?"pdf":"image",sourceUrl:Re?we:"",images:be};z=[Ie],Wa(u==null?void 0:u.index,T,Ie)}}}if(!z||z.length===0){el.ElMessage.warning("暂无可预览数据");return}Ke.value=z,Ee.value=!0},fo=d=>{Ye.value=Ye.value.filter((h,T)=>T!==d)},In=async(d,h,T)=>{var z,$,N,ee,ae,H,be,we,Re,Ie,je,oa,ja,Oa,na,al,sa,Ua,se,Aa,da;if(Le(u.config,{type:ra.TABLE,tableOperate:d})){if(Pa.value="",wa.value=!0,Fa.value=!0,Ne("onButtonClick",d,h),V.value=[],d==="删除")un.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Na,Ma,A,W;(Na=Ce.value)!=null&&Na.find(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id))?Ce.value=(Ma=L.cloneDeep(Ce.value))==null?void 0:Ma.filter(Me=>(Me==null?void 0:Me.id)!==(h==null?void 0:h.id)):Ce.value=ii(L.cloneDeep(Ce.value),h);try{h!=null&&h.id&&((W=(A=ma.value)==null?void 0:A.has)!=null&&W.call(A,h==null?void 0:h.id))&&ma.value.delete(h.id)}catch{}pf(Gr.value,vn.value,h==null?void 0:h.id),Ze.setTableLoading(u==null?void 0:u.index),Ne("change",{content:Ce.value,fixContent:[h],index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.groupNames,buttonName:d,columns:Se.value,relatedContents:u==null?void 0:u.related}),console.log(h,"item")});else if(d==="批量删除"){if(((z=or.value)==null?void 0:z.length)===0)return el.ElMessage.warning("请先勾选操作的数据");un.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var A,W,Me,ia,ye;const Na=(A=or.value)==null?void 0:A.map(ua=>ua.id);Ce.value=(W=L.cloneDeep(Ce.value))==null?void 0:W.filter(ua=>!(Na!=null&&Na.includes(ua.id))),Ze.setTableLoading(u==null?void 0:u.index),Ne("change",{content:Ce.value,fixContent:or.value,index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.compName,buttonName:d,relatedContents:u==null?void 0:u.related,columns:Se.value});const Ma=(Na||[]).filter(Boolean);if(Ma.length>0&&Ma.every(ua=>ua!=null&&ua!=="")){const ua=(or.value||[]).map(La=>{const pl={...La};return delete pl._isOCRRow,delete pl._ocrTableId,delete pl._isTemp,delete pl.tableEditType,delete pl.index,pl});await L.pageBatchDeleteApi({platId:parseInt((Me=$l.value)==null?void 0:Me.plat_id),changeContents:[{tableName:((ia=u==null?void 0:u.related)==null?void 0:ia.find(La=>La==null?void 0:La.includes("content_")))||((ye=u==null?void 0:u.related)==null?void 0:ye.find(La=>La==null?void 0:La.includes("content"))),tableContents:ua}]})}})}else if(d==="复制新增"){Ae.value="复制新增",L.cloneDeep(h);const Na=($=Se.value)==null?void 0:$.find(Ma=>Ma==null?void 0:Ma.isMainKey);Na||((N=Se.value)==null||N[0]),sr.value=h,Ro(!0)}else if(d==="新增")Ae.value="新增",Oo(""),Xe.value=!0;else if(d==="编辑")Ae.value="编辑",Oo(h),Xe.value=!0;else if(d==="查看")Ae.value="查看",Oo(h),wa.value=!1,Fa.value=!1,Xe.value=!0;else if(d==="查看三维模型"){const Na={};for(let A in h)A!=="id"&&(Na[A]=h[A]);let Ma=(ee=Object.values(Na))==null?void 0:ee[1];$e.setTableShowThree(Ma)}else if(d==="切换视图")tu();else if(((ae=T==null?void 0:T.extra)==null?void 0:ae.type)==="modelExample")Ae.value=d,Te.value=!0;else if(d==="新建"){let Na=te.value,Ma=[];for(let ye in Na)ye!=null&&ye.includes(`loading${((H=$l.value)==null?void 0:H.account)||((be=$l.value)==null?void 0:be.账号)}`)&&(Ma=[...Ma,...ye]);let A=[];for(let ye in Na)ye!=null&&ye.includes(`updateLoading${((we=$l.value)==null?void 0:we.account)||((Re=$l.value)==null?void 0:Re.账号)}`)&&(A=[...A,...ye]);let W=Ma==null?void 0:Ma.map(ye=>ye==null?void 0:ye.id);const Me=A==null?void 0:A.map(ye=>ye==null?void 0:ye.id);W=[...L.cloneDeep(W),...Me],(W==null?void 0:W.length)>0&&(W!=null&&W.every(ye=>ye!==null&&ye))&&await _r.batchDeleteInsofDataApi({ids:W});const ia=(Ie=Qe.value)==null?void 0:Ie.find(ye=>(ye==null?void 0:ye.label)==="新建");await Zc(!1,ia)}else if(d==="修改模板"){let Na=L.cloneDeep(_a).value;Ze.setRouteToChildPath(Na),la.setActiveMenuPath(Na+g)}else if(d==="执行")Qi(d,h);else if(d==="导出paraform"){const Na=Vo.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Ma=["推力","真空","压力","温度","流量"],A=wl=>{var Ml,Yl,zl;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((zl=(Yl=(Ml=wl==null?void 0:wl._custom)==null?void 0:Ml.value)==null?void 0:Yl.value)==null?void 0:zl.value)||"":""},W=Array.isArray(vr.value)?vr.value:[],Me=A(W.find(wl=>(wl==null?void 0:wl.condition)==="child")),ia=String(Me||"").slice(0,8),ye=wl=>{if(wl==null)return"";const Ml=String(wl).trim();if(!Ml)return"";if(/^\d{8}$/.test(Ml))return Ml;const Yl=Ml.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Yl){const Gl=Yl[1],Ql=Yl[2].padStart(2,"0"),ql=Yl[3].padStart(2,"0");return`${Gl}${Ql}${ql}`}const zl=Ml.replace(/\D/g,"");return zl.length>=8?zl.slice(0,8):""},ua=async wl=>{var Ml,Yl;if(!wl)return"";try{const zl=await Wr("试验任务/任务管理",!1),Gl=(fr,ir=[])=>{if(!Array.isArray(fr))return ir;for(const cr of fr)(cr==null?void 0:cr.comp)==="Table"&&(cr!=null&&cr.name)&&ir.push(cr),Array.isArray(cr==null?void 0:cr.children)&&Gl(cr.children,ir),Array.isArray(cr==null?void 0:cr.tab)&&Gl(cr.tab,ir),Array.isArray(cr==null?void 0:cr.choice)&&Gl(cr.choice,ir);return ir},ql=Gl(zl||[]).find(fr=>(fr==null?void 0:fr.name)==="任务列表"),pr=((Yl=(Ml=ql==null?void 0:ql.compData)==null?void 0:Ml.find(fr=>(fr==null?void 0:fr.key)==="tableContents"))==null?void 0:Yl.contents)||[];if(!Array.isArray(pr)||pr.length===0)return"";const Ur=pr.find(fr=>String((fr==null?void 0:fr["试验代号(名称)"])||"").slice(0,8)===wl);return ye(Ur==null?void 0:Ur.计划试验时间)}catch(zl){return console.warn("获取任务列表计划试验时间失败:",zl),""}},La=(_a.value||"").replace(/\/+$/,""),pl=Me?`${La}/${Me}`:La,rl=await Wr(pl||_a.value,!1),ml=String(xa.value||"").trim(),yl=wl=>String(wl||"").trim(),Pl=(wl,Ml=[],Yl="")=>{if(!Array.isArray(wl))return Ml;for(const zl of wl){const Gl=yl((zl==null?void 0:zl.choiceName)||(zl==null?void 0:zl.name0)||Yl);(zl==null?void 0:zl.comp)==="Table"&&(zl==null?void 0:zl.name)&&Ma.includes(zl.name)&&(!ml||Gl===ml)&&Ml.push(zl),Array.isArray(zl==null?void 0:zl.children)&&Pl(zl.children,Ml,Gl),Array.isArray(zl==null?void 0:zl.tab)&&Pl(zl.tab,Ml,Gl),Array.isArray(zl==null?void 0:zl.choice)&&Pl(zl.choice,Ml,Gl)}return Ml},ll=Pl(rl||[]),kl=new Map;for(const wl of ll)wl!=null&&wl.name&&!kl.has(wl.name)&&kl.set(wl.name,wl);const Ya=Ma.map(wl=>kl.get(wl)).filter(Boolean);if(!Ya||Ya.length===0)return el.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const fl=wl=>{const Ml=new Map,Yl=(zl,Gl=[])=>{if(Array.isArray(zl))for(const Ql of zl){const ql=((Ql==null?void 0:Ql.label)??"").toString().trim(),pr=ql?[...Gl,ql]:[...Gl];if(Array.isArray(Ql==null?void 0:Ql.children)&&Ql.children.length>0)Yl(Ql.children,pr);else{const fr=((Ql==null?void 0:Ql.prop)??"").toString();if(!fr)continue;const ir=ql||fr,cr=(pr.length>0?[...Gl,ir]:[ir]).join(".");Ml.set(fr,cr)}}};return Yl(wl,[]),Ml},ol=(wl,Ml)=>{const Yl=fl(wl||[]),Gl=(ca.getAllLeafNodes(wl||[])||[]).filter(ql=>(ql==null?void 0:ql.prop)&&(ql==null?void 0:ql.type)!=="operate"&&(ql==null?void 0:ql.label)!=="操作"&&(ql==null?void 0:ql.prop)!=="operate"),Ql=Array.isArray(Ml)?Ml:[];return Ql.length===0?[]:Ql.map(ql=>{const pr={};return Gl.forEach(Ur=>{const fr=String(Ur.prop),ir=Yl.get(fr)||String(Ur.label||Ur.prop);pr[ir]=(ql==null?void 0:ql[fr])??""}),pr})},hl=Ya.map(wl=>{var Ql,ql;const Ml=(wl==null?void 0:wl.compData)||[];let Yl=(Ql=Ml==null?void 0:Ml.find(pr=>(pr==null?void 0:pr.key)==="header"))==null?void 0:Ql.contents;Array.isArray(Yl==null?void 0:Yl[0])&&(Yl=Yl[0]);const zl=((ql=Ml==null?void 0:Ml.find(pr=>(pr==null?void 0:pr.key)==="tableContents"))==null?void 0:ql.contents)||[];if(!Array.isArray(Yl)||Yl.length===0||!Array.isArray(zl)||zl.length===0)return null;const Gl=ol(Yl||[],zl||[]);return!Array.isArray(Gl)||Gl.length===0?null:{类型:wl==null?void 0:wl.name,数据:Gl}}).filter(Boolean);if(!hl||hl.length===0)return el.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const El=await ua(ia),Al={试验代号:ia,试验日期:El,ParaForm:hl},kr=await uo().catch(()=>""),Rl=await L.exportParaformApi(Al,kr);if(((je=Rl==null?void 0:Rl.data)==null?void 0:je.code)===200&&((ja=(oa=Rl==null?void 0:Rl.data)==null?void 0:oa.result)!=null&&ja.Excel文件)){const wl=Rl.data.result.Excel文件,Ml=await L.platformDownloadFile({url:wl}),Yl=new Blob([Ml.data],{type:"application/vnd.ms-excel"}),zl=URL.createObjectURL(Yl),Gl=$n.dayjs().format("YYYYMMDD"),ql=`${(ia||"UNKNOWN").trim()||"UNKNOWN"}_${Gl}_paraform.xls`,pr=document.createElement("a");pr.href=zl,pr.download=ql,pr.style.display="none",document.body.appendChild(pr),pr.click(),setTimeout(()=>{document.body.removeChild(pr),URL.revokeObjectURL(zl)},100);const Ur=Array.isArray((na=(Oa=Rl==null?void 0:Rl.data)==null?void 0:Oa.result)==null?void 0:na.warnings)?Rl.data.result.warnings:[];if(Ur.length>0){const fr=Ur.map((ir,cr)=>`${cr+1}. ${(ir==null?void 0:ir.field)||"未知字段"}:${(ir==null?void 0:ir.message)||""}`).join(`
24
- `);el.ElMessage.warning({message:`导出成功,但存在以下提示:
25
- ${fr}`,duration:5e3,showClose:!0})}else el.ElMessage.success("导出成功")}else el.ElMessage.error(((al=Rl==null?void 0:Rl.data)==null?void 0:al.message)||"导出失败")}catch(Ma){console.error("导出paraform失败:",Ma),el.ElMessage.error("导出失败:"+((Ma==null?void 0:Ma.message)||"未知错误"))}finally{Na.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((sa=or.value)==null?void 0:sa.length)===0)return el.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Ua=Ce.value)==null?void 0:Ua.length)===0)return el.ElMessage.warning("暂无数据导出");let Na=["序号",...(Aa=(se=Se.value)==null?void 0:se.map(Me=>Me==null?void 0:Me.prop))==null?void 0:Aa.filter(Me=>Me!=="操作")],Ma=d==="导出全部"?Ce.value:or.value;const A=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Ma=Ma==null?void 0:Ma.map(Me=>Object.fromEntries(Object.entries(Me).filter(([ia])=>!A.includes(ia)))),Na=["序号",...Na],Ma=Ma==null?void 0:Ma.map((Me,ia)=>({序号:ia+1,...Me}));let W=(u==null?void 0:u.compName)||"表格信息";$i(Ma,W,Na,W)}else if(d==="OCR识别")va.value=!0,Ye.value=[],me.value=1,Ra.value.clear(),qe.value.clear(),K.value=0;else if(d==="迁移")t.selectRow=h,t.show=!0;else if(d==="生成方法"){let Na=await Af(h),Ma;h!==""?Ma=[h]:Ma=L.cloneDeep(Ce.value),Ma=Ma==null?void 0:Ma.map(W=>(W.输出值=Na,W));const A={fixContent:Ma,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:Se.value,name:u==null?void 0:u.groupNames};Ne("change",A)}else if(((da=T==null?void 0:T.extra)==null?void 0:da.type)==="methodButton"){let Na;h!==""?Na=[h]:Na=L.cloneDeep(Ce.value);const A={fixContent:await ft(Na,Se==null?void 0:Se.value,"Manual",Ce.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:Se.value,name:u==null?void 0:u.groupNames};Ne("change",A)}}},Jc=async(d,h)=>{var T,z,$,N,ee,ae,H,be,we,Re,Ie,je,oa,ja,Oa,na,al,sa,Ua,se;try{let Aa,da;const Na=(T=te.value[_a.value+g])==null?void 0:T.filter(La=>{var pl;return((pl=La==null?void 0:La.key)==null?void 0:pl.type)==="structureMethod"}),Ma=(z=te.value[_a.value+g])==null?void 0:z.filter(La=>{var pl;return((pl=La==null?void 0:La.key)==null?void 0:pl.type)==="structure"}),A=Na==null?void 0:Na.find(La=>{var pl,rl;return((rl=(pl=La==null?void 0:La.value)==null?void 0:pl.pageData)==null?void 0:rl.method)==="保存"});if(!A)return;const W=(ae=(ee=te.value[(N=($=A==null?void 0:A.value)==null?void 0:$.pageData)==null?void 0:N.path])==null?void 0:ee.filter(La=>{var pl;return((pl=La==null?void 0:La.key)==null?void 0:pl.type)==="data"}))==null?void 0:ae.find(La=>{var pl,rl,ml,yl;return((rl=(pl=La==null?void 0:La.value)==null?void 0:pl.tableData)==null?void 0:rl.算法名称)===((yl=(ml=A==null?void 0:A.value)==null?void 0:ml.pageData)==null?void 0:yl.method)});if(!W)return;const Me={buttonName:(be=(H=A==null?void 0:A.value)==null?void 0:H.pageData)==null?void 0:be.method,api:(Re=(we=W==null?void 0:W.value)==null?void 0:we.tableData)==null?void 0:Re.算法体,content:Ma==null?void 0:Ma.map(La=>{var pl;return(pl=La==null?void 0:La.value)==null?void 0:pl.pageData}),extraContent:[],extraValues:(je=(Ie=A==null?void 0:A.value)==null?void 0:Ie.pageData)==null?void 0:je.data,methodName:(ja=(oa=A==null?void 0:A.value)==null?void 0:oa.pageData)==null?void 0:ja.path};if(!d)return;const ia={...d,compData:(Oa=d==null?void 0:d.compData)==null?void 0:Oa.map(La=>{var pl;return(La==null?void 0:La.key)==="formContent"?{...La,contents:(pl=La==null?void 0:La.contents)==null?void 0:pl.map(rl=>(rl==null?void 0:rl.prop)===h?{...rl,value:""}:rl)}:La})},ye={key:{pageKey:_a.value+g,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:ia}},ua=await el.axios.post(Me.api,ye,{headers:{"Content-Type":"application/json"}});return((na=ua==null?void 0:ua.data)==null?void 0:na.code)===200&&(Aa=(sa=(al=ua==null?void 0:ua.data)==null?void 0:al.result)==null?void 0:sa.latestReportCode,da=(se=(Ua=ua==null?void 0:ua.data)==null?void 0:Ua.result)==null?void 0:se.status),{newMainKeyValue:Aa,newStatus:da}}catch(Aa){throw el.ElMessage.error(Aa),new Error(Aa)}},Nt=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Xc=async(d,h,T)=>{var H,be;let z=d==null?void 0:d[h==null?void 0:h.prop],$=1,N,ee;const ae=L.cloneDeep(_a).value+g+z;if(ae){Nt.value="",N=(H=te.value[ae])==null?void 0:H.filter(Ie=>{var je;return((je=Ie==null?void 0:Ie.key)==null?void 0:je.type)==="structure"});const we=N==null?void 0:N.find(Ie=>{var je,oa,ja;return((ja=(oa=(je=Ie==null?void 0:Ie.value)==null?void 0:je.pageData)==null?void 0:oa.comp)==null?void 0:ja.toUpperCase())==="FORM"});ee={...(be=we==null?void 0:we.value)==null?void 0:be.pageData,id:we==null?void 0:we.id};const Re=await Jc(ee,h==null?void 0:h.prop);if(Nt.value=Re==null?void 0:Re.newStatus,Re!=null&&Re.newMainKeyValue)return Re==null?void 0:Re.newMainKeyValue}if(Ce.value.some(we=>(we==null?void 0:we[h==null?void 0:h.prop])===z)){const we=z;for(;Ce.value.some(Re=>(Re==null?void 0:Re[h==null?void 0:h.prop])===`${we}(${$})`);)$++;z=`${we}(${$})`}return z},Zc=async(d,h,T)=>{var N,ee,ae,H;let z,$;if(await Xc(T==null?void 0:T.data,T==null?void 0:T.firstCol),z=L.cloneDeep(_a).value+g,$=L.cloneDeep(z)+`loading${((N=$l.value)==null?void 0:N.account)||((ee=$l.value)==null?void 0:ee.账号)}`,h){const be=(H=(ae=te.value[$])==null?void 0:ae.filter(we=>{var Re;return((Re=we==null?void 0:we.key)==null?void 0:Re.parentTable)===""}))==null?void 0:H.map(we=>{var Re;return{id:we==null?void 0:we.id,...(Re=we==null?void 0:we.value)==null?void 0:Re.pageData}});(be==null?void 0:be.length)>0||await ca.loadingConstruct(z,$,null,null,null),Ze.setRouteToChildPath(L.cloneDeep(_a).value),la.setActiveMenuPath($)}else Ze.setRouteToChildPath(L.cloneDeep(_a).value),la.setActiveMenuPath($)},Qc=()=>{Ue.value=!1,ta.value=[],Ba.value=!1},Oo=d=>{var N,ee,ae,H,be,we,Re,Ie,je,oa,ja,Oa,na,al,sa,Ua,se,Aa,da,Na,Ma;const h=[];ue.value=L.cloneDeep(Se.value),(ee=ca.getColumnChild((N=L.cloneDeep(Se.value))==null?void 0:N.filter(A=>(A==null?void 0:A.label)!=="操作")))==null||ee.forEach((A,W)=>{var Me,ia,ye;A!=null&&A.formType&&((Me=A==null?void 0:A.formType)==null?void 0:Me.toUpperCase())==="SELECT"||A!=null&&A.menuId?h.push({label:(ia=A==null?void 0:A.prop)!=null&&ia.includes(".")?A==null?void 0:A.prop:(A==null?void 0:A.label)??(A==null?void 0:A.prop)??"",name:(A==null?void 0:A.prop)??"t"+W,prop:A==null?void 0:A.prop,type:"Select",value:(d==null?void 0:d[A==null?void 0:A.prop])??(A==null?void 0:A.value)??"",id:(A==null?void 0:A.id)??W,contents:(A==null?void 0:A.options)??[],multiple:(A==null?void 0:A.multiple)??!1,width:1,isFormColHidden:A==null?void 0:A.isFormColHidden,relatedValueId:A==null?void 0:A.relatedValueId,disabled:A==null?void 0:A.disabled,menus:A==null?void 0:A.menus,groups:A==null?void 0:A.groups,words:A==null?void 0:A.words,allSelectionContents:(A==null?void 0:A.allSelectionContents)??[],filterContent:A==null?void 0:A.filterContent,disabled:(A==null?void 0:A.prop)==="disabled"?!0:A==null?void 0:A.disabled,filter:A==null?void 0:A.filter,bindMenus:A==null?void 0:A.bindMenus,isMainPath:A==null?void 0:A.isMainPath,required:(A==null?void 0:A.required)??!1,relatedContents:A==null?void 0:A.relatedContents,mainKey:A==null?void 0:A.mainKey,relatedContents:A==null?void 0:A.relatedContents,functionName:A==null?void 0:A.functionName,functionRelatedWords:A==null?void 0:A.functionRelatedWords,calculatorFilter:A==null?void 0:A.calculatorFilter}):h.push({label:(ye=A==null?void 0:A.prop)!=null&&ye.includes(".")?A==null?void 0:A.prop:(A==null?void 0:A.label)??(A==null?void 0:A.prop)??"",prop:A==null?void 0:A.prop,name:(A==null?void 0:A.prop)??"t"+W,type:!(A!=null&&A.formType)||(A==null?void 0:A.formType)===""?"Input":A==null?void 0:A.formType,value:(A==null?void 0:A.formType)==="Upload"?(d==null?void 0:d[A==null?void 0:A.prop])??"{}":(d==null?void 0:d[A==null?void 0:A.prop])??(A==null?void 0:A.value)??"",id:(A==null?void 0:A.id)??W,contents:(A==null?void 0:A.options)??[],multiple:(A==null?void 0:A.multiple)??!1,width:1,isFormColHidden:A==null?void 0:A.isFormColHidden,disabled:(A==null?void 0:A.prop)==="disabled"?!0:A==null?void 0:A.disabled,relatedValueId:A==null?void 0:A.relatedValueId,menus:A==null?void 0:A.menus,groups:A==null?void 0:A.groups,words:A==null?void 0:A.words,filter:A==null?void 0:A.filter,bindMenus:A==null?void 0:A.bindMenus,isMainPath:A==null?void 0:A.isMainPath,required:(A==null?void 0:A.required)??!1,relatedContents:A==null?void 0:A.relatedContents,mainKey:A==null?void 0:A.mainKey,relatedContents:A==null?void 0:A.relatedContents,functionName:A==null?void 0:A.functionName,functionRelatedWords:A==null?void 0:A.functionRelatedWords,calculatorFilter:A==null?void 0:A.calculatorFilter})}),d===""||!d||(Pa.value=(d==null?void 0:d.id)??"");let T=ca.getColumnChild((ae=L.cloneDeep(Se.value))==null?void 0:ae.filter(A=>(A==null?void 0:A.label)!=="操作"));ga.value&&((H=ga.value)==null?void 0:H.length)>0&&(ga.value=(be=L.cloneDeep(ga).value)==null?void 0:be.map(A=>{var Me;let W=(A==null?void 0:A.prop)||((Me=T==null?void 0:T.find(ia=>(ia==null?void 0:ia.label)===(A==null?void 0:A.label)))==null?void 0:Me.prop);return W&&(A.value=d[W]),A})),Ca.value=ga.value&&((we=ga.value)==null?void 0:we.length)>0?ca.getTableFormToForm(ga.value):h,Ca.value=((Re=Ca.value)==null?void 0:Re.map(A=>({...A,disabled:(A==null?void 0:A.prop)==="disabled"?!0:A==null?void 0:A.disabled})))??Ca.value;let z=[],$=((oa=(je=(Ie=u.itemData)==null?void 0:Ie.filter(A=>(A==null?void 0:A.key)==="filter"))==null?void 0:je[0])==null?void 0:oa.contents)??"";if($=Va.analyzeSplitToContent($,","),($==null?void 0:$.length)>0&&(z=$.flat()),(z==null?void 0:z.length)>0){let A=z==null?void 0:z.filter(ua=>ua==null?void 0:ua.includes("@Type"));if(A=A==null?void 0:A[(A==null?void 0:A.length)-1],(A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A){let ua=(Oa=(ja=A==null?void 0:A.replace("=",_))==null?void 0:ja.split(_))==null?void 0:Oa[1];((na=ua==null?void 0:ua.trim())==null?void 0:na.toUpperCase())==="MANUAL"&&(u==null||u.index,Ca.value=(al=Ca.value)==null?void 0:al.map((La,pl)=>La))}let W=(sa=Ca.value)==null?void 0:sa.filter(ua=>ua==null?void 0:ua.mainKey),Me;W==null||W.forEach(ua=>{var pl;if(Me!==void 0)return;let La=ua==null?void 0:ua.menus;((pl=W==null?void 0:W.filter(rl=>rl==null?void 0:rl.mainKey))==null?void 0:pl.length)>1&&(Me=La,ua==null||ua.groups)});let ia=[],ye=new Map;if(W==null||W.forEach(ua=>{var La,pl,rl,ml,yl,Pl,ll,kl,Ya,fl,ol,hl,El;if((La=ua==null?void 0:ua.prop)!=null&&La.includes(".")){let Al=[];ye.get(((rl=(pl=ua==null?void 0:ua.prop)==null?void 0:pl.split("."))==null?void 0:rl[0])+(ua!=null&&ua.isMainPath?0:1)+((ml=ua==null?void 0:ua.groups)==null?void 0:ml[0]))&&(Al=ye.get(((Pl=(yl=ua==null?void 0:ua.prop)==null?void 0:yl.split("."))==null?void 0:Pl[0])+(ua!=null&&ua.isMainPath?0:1)+((ll=ua==null?void 0:ua.groups)==null?void 0:ll[0]))),Al.push(ua),ye.set(((Ya=(kl=ua==null?void 0:ua.prop)==null?void 0:kl.split("."))==null?void 0:Ya[0])+(ua!=null&&ua.isMainPath?0:1)+((fl=ua==null?void 0:ua.groups)==null?void 0:fl[0]),Al)}else{let Al=[];ye.get("normal"+(ua!=null&&ua.isMainPath?0:1)+((ol=ua==null?void 0:ua.groups)==null?void 0:ol[0]))&&(Al=ye.get("normal"+(ua!=null&&ua.isMainPath?0:1)+((hl=ua==null?void 0:ua.groups)==null?void 0:hl[0]))),Al.push(ua),ye.set("normal"+(ua!=null&&ua.isMainPath?0:1)+((El=ua==null?void 0:ua.groups)==null?void 0:El[0]),Al)}}),ia=Array.from(ye.values()),(ia==null?void 0:ia.length)>0)for(let ua in ia){let La=ia==null?void 0:ia[ua];if((La==null?void 0:La.length)!==1){if((La==null?void 0:La.length)>1){let pl=La==null?void 0:La.map(fl=>fl==null?void 0:fl.prop),rl=La==null?void 0:La.map(fl=>fl==null?void 0:fl.label),ml=La==null?void 0:La.map(fl=>fl==null?void 0:fl.value),yl=(Ua=L.cloneDeep(La))==null?void 0:Ua[0],Pl=(se=Ca.value)==null?void 0:se.findIndex(fl=>(fl==null?void 0:fl.prop)===(yl==null?void 0:yl.prop)),ll=(Aa=Ca.value)==null?void 0:Aa.slice(0,Pl),kl=(Na=Ca.value)==null?void 0:Na.slice(Pl,(da=Ca.value)==null?void 0:da.length);yl.label=rl==null?void 0:rl.join("·"),yl.value=ml==null?void 0:ml.join(" "),yl.value.trim()===""&&(yl.value=""),yl.prop=pl==null?void 0:pl.join("·");let Ya=La==null?void 0:La.map(fl=>{var ol;return(ol=fl==null?void 0:fl.words)==null?void 0:ol.join(".")});yl.relatedWords=Ya,yl.usingType="parent",kl.unshift(yl),Ca.value=[...ll,...kl],Ca.value=(Ma=Ca.value)==null?void 0:Ma.map(fl=>(pl!=null&&pl.find(ol=>ol===(fl==null?void 0:fl.prop))&&(fl.isFormColHidden=!0,fl.relatedWords=Ya),fl))}}}}},eu=()=>{var h;const d=(h=s.value)==null?void 0:h.$el;d&&Va.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:T=>{var ee;const{oldIndex:z,newIndex:$}=T;if(z===$)return;const N=Cn.value.splice(z,1)[0];Cn.value.splice($,0,N),Se.value=(ee=Se.value)==null?void 0:ee.slice().sort((ae,H)=>{if(ae.label==="操作")return 1;if(H.label==="操作")return-1;const be=Cn.value.findIndex(Re=>Re.label===ae.label),we=Cn.value.findIndex(Re=>Re.label===H.label);return be-we})}})};a.onMounted(()=>{Ia.value=window.innerWidth-240*2,window.addEventListener("keydown",Yo)});const au=()=>{a.nextTick(()=>{eu()})},lt=(d,h)=>{var z;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let T;return d.children=(z=d.children)==null?void 0:z.map($=>{var N,ee;if(($==null?void 0:$.id)===Pa.value){let ae={};for(let H in $){let be=(N=h==null?void 0:h.find(we=>(we==null?void 0:we.prop)===H))==null?void 0:N.label;be?ae[H]=(ee=sr.value)==null?void 0:ee[be]:ae[H]=$[H]??""}$=Object.assign(ae,sr.value),T=$}else{let ae=lt($,h);$=ae==null?void 0:ae.contents,T=ae==null?void 0:ae.currentSelectContents}return $}),{contents:d,currentSelectContents:T}},Tt=(d,h)=>{let T,z;return d!=null&&d.find($=>($==null?void 0:$.id)===Pa.value)?T=d==null?void 0:d.map($=>{var N,ee,ae;if(($==null?void 0:$.id)===Pa.value){let H={};for(let we in $){let Re=(N=h==null?void 0:h.find(Ie=>(Ie==null?void 0:Ie.prop)===we))==null?void 0:N.label;Re?H[we]=((ee=sr.value)==null?void 0:ee[Re])??"":H[we]=$[we]??""}let be=sr.value;for(let we in H)(ae=sr.value)!=null&&ae[we]||(be[we]=(H==null?void 0:H[we])??"");$=be,z=$}return $}):T=d==null?void 0:d.map($=>{var N,ee,ae,H;if(($==null?void 0:$.id)===Pa.value){let be={};for(let we in $){let Re=(N=h==null?void 0:h.find(Ie=>(Ie==null?void 0:Ie.prop)===we))==null?void 0:N.label;Re?be[we]=(ee=sr.value)==null?void 0:ee[Re]:be[we]=$[we]??""}$=Object.assign(be,sr.value),z=$}else $=(ae=lt($,h))==null?void 0:ae.contents,z=(H=lt($,h))==null?void 0:H.currentSelectContents;return $}),{newContents:T,currentSelectContents:z}},At=(d,h,T)=>{var z,$;return d[h==null?void 0:h.prop]=T,typeof d.id=="number"&&(d.id=(z=d.id)==null?void 0:z.toString()),d.children&&(($=d.children)==null?void 0:$.length)>0&&(d.children=d.children.map(At)),d},zt=d=>{var T;const h=[];return h.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((T=d.children)==null||T.forEach(z=>{h.push(...zt(z))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(z=>{const $={...z};return delete $.children,$}):[]},ti=["Pacific6000数据采集装置.通道号","通道号"],Lo=d=>{if(!d)return"";const h=ti.map(T=>d==null?void 0:d[T]).find(T=>T!=null&&String(T).trim()!=="");return h==null?"":String(h).trim()},rt=async(d,h=void 0)=>{if(!d)return!1;try{const T=je=>{var oa,ja,Oa;return je?typeof(je==null?void 0:je.value)=="string"?je.value:((Oa=(ja=(oa=je==null?void 0:je._custom)==null?void 0:oa.value)==null?void 0:ja.value)==null?void 0:Oa.value)||"":""},z=Array.isArray(vr.value)?vr.value:[],$=T(z.find(je=>(je==null?void 0:je.condition)==="child")),N=(_a.value||"").replace(/\/+$/,""),ee=$?`${N}/${$}`:N,ae=await Wr(ee||_a.value,!1),H=String(xa.value||"").trim(),be=je=>String(je||"").trim(),we=(je,oa=[],ja="")=>{if(!Array.isArray(je))return oa;for(const Oa of je){const na=be((Oa==null?void 0:Oa.choiceName)||(Oa==null?void 0:Oa.name0)||ja);(Oa==null?void 0:Oa.comp)==="Table"&&(!H||na===H)&&oa.push(Oa),Array.isArray(Oa==null?void 0:Oa.children)&&we(Oa.children,oa,na),Array.isArray(Oa==null?void 0:Oa.tab)&&we(Oa.tab,oa,na),Array.isArray(Oa==null?void 0:Oa.choice)&&we(Oa.choice,oa,na)}return oa},Re=we(ae||[]),Ie=String((u==null?void 0:u.compName)||"");return Re.some(je=>{var ja,Oa;const oa=((Oa=(ja=je==null?void 0:je.compData)==null?void 0:ja.find(na=>(na==null?void 0:na.key)==="tableContents"))==null?void 0:Oa.contents)||[];return!Array.isArray(oa)||oa.length===0?!1:oa.some(na=>{if(String((je==null?void 0:je.name)||"")===Ie&&(na==null?void 0:na.id)===h)return!1;const sa=Lo(na);return!!sa&&sa===d})})}catch{return(Ce.value||[]).some(z=>{if((z==null?void 0:z.id)===h)return!1;const $=Lo(z);return!!$&&$===d})}},Ro=async(d=!0,h,T)=>{var be,we,Re,Ie,je,oa,ja,Oa,na,al,sa,Ua,se,Aa,da,Na,Ma,A,W,Me,ia,ye,ua,La,pl,rl,ml,yl,Pl,ll,kl;if(sr.value){const Ya=(we=ca.getColumnChild((be=L.cloneDeep(Se.value))==null?void 0:be.filter(ol=>(ol==null?void 0:ol.label)!=="操作")))==null?void 0:we.filter(ol=>(ol==null?void 0:ol.required)===!0);for(let ol=0;ol<((Ya==null?void 0:Ya.length)??0);ol++){const hl=Ya[ol],El=hl==null?void 0:hl.prop,Al=(hl==null?void 0:hl.label)??El,kr=(Re=sr.value)==null?void 0:Re[El];if(kr===""||kr===null||kr===void 0||Array.isArray(kr)&&kr.length===0){el.ElMessage.error(`${Al}不能为空`);return}}const fl=Lo(sr.value);if(fl&&await rt(fl,Pa.value||void 0)){el.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=ca.getColumnChild((Ie=L.cloneDeep(Se.value))==null?void 0:Ie.filter(Ya=>(Ya==null?void 0:Ya.label)!=="操作")),$,N=L.cloneDeep(Ce.value);if(!sr.value){Xe.value=!1;return}if(Pa.value===""){ve.value++;let Ya;Ya={id:ve.value.toString()};try{Ya.sort=Mn(0,Ce.value||[])}catch{}Ya!=null&&Ya.children&&(Ya={...Ya,children:(je=Ya.children)==null?void 0:je.map(ol=>At(ol,h,T))});const fl=Object.assign(sr.value,Ya);N.unshift(fl),$=fl}else N=(oa=Tt(N,z))==null?void 0:oa.newContents,$=(ja=Tt(N,z))==null?void 0:ja.currentSelectContents;const ee=(Oa=u.itemData)==null?void 0:Oa.filter(Ya=>(Ya==null?void 0:Ya.key)==="childTree")[0];if(((na=ee==null?void 0:ee.contents)==null?void 0:na.length)>0){Ae.value="编辑";const Ya=[];N==null||N.forEach((hl,El)=>{var kr;let Al={};if(Array.isArray(hl)){let Rl=[];hl==null||hl.filter(wl=>!(wl!=null&&wl.id)).forEach((wl,Ml)=>{var Yl,zl,Gl,Ql,ql,pr,Ur;if((zl=(Yl=Or.value)==null?void 0:Yl[Ml])!=null&&zl.prop&&!Array.isArray(wl)){let fr={};fr[Or.value[Ml].column]=wl,qa!=null&&qa.value&&((Gl=qa==null?void 0:qa.value)==null?void 0:Gl.length)>0&&((Ql=qa==null?void 0:qa.value)!=null&&Ql.find(ir=>JSON.stringify(ir==null?void 0:ir[0])===JSON.stringify(fr)))&&(Rl=(ql=qa==null?void 0:qa.value)==null?void 0:ql.find(ir=>JSON.stringify(ir==null?void 0:ir[0])===JSON.stringify(fr))),Rl&&Rl.length>0?Al[Or.value[Ml].prop]=Rl!=null&&Rl.find(ir=>{var cr;return((cr=Object.keys(ir))==null?void 0:cr[0])===Or.value[Ml].column})?(pr=Rl==null?void 0:Rl.find(ir=>{var cr;return((cr=Object.keys(ir))==null?void 0:cr[0])===Or.value[Ml].column}))==null?void 0:pr[Or.value[Ml].column]:wl:Al[Or.value[Ml].prop]=wl}else Array.isArray(wl)&&((Ur=Or.value[Ml])!=null&&Ur.prop?Al[Or.value[Ml].prop]=wl:Al.children=ht(wl,Or.value))})}else Al=hl;if(Array.isArray(hl)&&hl.some(Rl=>Rl==null?void 0:Rl.id)){const Rl=(kr=hl==null?void 0:hl.find(wl=>wl.id))==null?void 0:kr.id;Ya.push(Object.assign(Al,{id:li(Rl)}))}else Al.id?Ya.push(Al):Ya.push(Object.assign(Al,{id:El.toString()}))});const fl=(Ce.value||[]).map(hl=>String(hl==null?void 0:hl.id)),ol=ri(Ya,fl);Ce.value=Lt(ol,ee,Se.value)}It(Ce.value),Gr.value=Ce.value;const ae=hf(Gr.value,vn.value,N);let H=[];if(F.value?(H=(al=L.cloneDeep(F).value.singleContent)==null?void 0:al.filter(Ya=>(Ya==null?void 0:Ya.id)!==($==null?void 0:$.id)),H.push($)):H=[$],Il.value){const Ya={content:ae,singleContent:((sa=ee==null?void 0:ee.contents)==null?void 0:sa.length)>0?H==null?void 0:H.flatMap(zt):H,index:u==null?void 0:u.index,buttonName:"编辑",column:Se.value,parentTableId:u==null?void 0:u.parentTableId};Ze.setCacheUpdatingData(Ya)}if((Ua=Se.value)==null||Ua.forEach(Ya=>{(Ya==null?void 0:Ya.formType)==="Upload"&&($[Ya.prop]=$[Ya.prop]===""?"{}":typeof $[Ya.prop]!="string"?JSON.stringify($[Ya.prop]):$[Ya.prop])}),d){(Na=(da=(Aa=(se=u.itemData)==null?void 0:se.find(ol=>(ol==null?void 0:ol.key)==="filterAllType"))==null?void 0:Aa.value)==null?void 0:da.find(ol=>(ol==null?void 0:ol.value)==="onConditionContents"))==null||Na.content;let Ya=(Ma=u.itemData)==null?void 0:Ma.filter(ol=>(ol==null?void 0:ol.key)==="filterAllType");Ya=Array.from(new Map(Ya.filter(Boolean).map((ol,hl)=>[ol.value,{...ol,_idx:hl}])).values()).sort((ol,hl)=>ol._idx-hl._idx).map(({_idx:ol,...hl})=>hl),Ya=(A=Ya==null?void 0:Ya[(Ya==null?void 0:Ya.length)-1])==null?void 0:A.value;const fl={fixContent:[$],buttonName:Ae.value,relatedContents:u==null?void 0:u.related,columns:Se.value,name:u==null?void 0:u.groupNames};Ze.setTableLoading(u==null?void 0:u.index),Xe.value=!1,sr.value=void 0,Ne("change",fl)}if((ia=(Me=(W=Ca.value)==null?void 0:W[0])==null?void 0:Me.optionUrl)!=null&&ia.menuId){Xe.value=!1;let Ya=(ye=u.itemData)==null?void 0:ye.filter(fl=>(fl==null?void 0:fl.key)==="filterAllType");if((Ya==null?void 0:Ya.length)>0){let fl=Ya==null?void 0:Ya.map(El=>El==null?void 0:El.value),ol=(pl=(La=(ua=fl.flat().find(El=>{var Al;return(Al=El==null?void 0:El.content)==null?void 0:Al.includes("@Num")}))==null?void 0:ua.content)==null?void 0:La.split(":"))==null?void 0:pl[1];((yl=(ml=(rl=fl.flat().find(El=>{var Al;return(Al=El==null?void 0:El.content)==null?void 0:Al.includes("@Type:")}))==null?void 0:rl.content)==null?void 0:ml.split(":"))==null?void 0:yl[1])!=="Manual"&&(ol=parseInt(ol),Ce.value=(kl=Ce.value)==null?void 0:kl.slice(((Pl=Ce.value)==null?void 0:Pl.length)-ol,(ll=Ce.value)==null?void 0:ll.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",Yo),Se.value=[],Ce.value=[],ue.value=[],Sa.value=[],ga.value=[],Ha.value=[],ta.value=[],We.value=[],Ca.value=[],or.value=[],s.value=null,Tn.value=""});const si=async(d,h,T)=>{var je,oa,ja,Oa,na,al,sa,Ua,se,Aa,da,Na,Ma;jl.value=(T==null?void 0:T.prop)??(T==null?void 0:T.property);const z=L.cloneDeep(u.itemData),$=((je=z==null?void 0:z.find(A=>(A==null?void 0:A.key)==="header"))==null?void 0:je.contents)??[];let N=$==null?void 0:$.find((A,W)=>{var Me,ia,ye;return(A==null?void 0:A.prop)===jl.value||(A==null?void 0:A.label)===jl.value||(W==null?void 0:W.toString())===((ye=(ia=(Me=jl.value)==null?void 0:Me.split("a"))==null?void 0:ia[1])==null?void 0:ye.toString())});const ee=ca.getColumnChild((oa=L.cloneDeep(Se.value))==null?void 0:oa.filter(A=>(A==null?void 0:A.label)!=="操作"));if(N||(N=ee==null?void 0:ee.find(A=>(A==null?void 0:A.prop)===jl.value||(A==null?void 0:A.label)===jl.value)),N&&!((ja=N==null?void 0:N.menus)!=null&&ja.length)&&!((Oa=N==null?void 0:N.groups)!=null&&Oa.length)&&!((na=N==null?void 0:N.words)!=null&&na.length)){const A=(al=Ca.value)==null?void 0:al.find(W=>(W==null?void 0:W.prop)===jl.value);A&&(N={...N,menus:(A==null?void 0:A.menus)??(N==null?void 0:N.menus),groups:(A==null?void 0:A.groups)??(N==null?void 0:N.groups),words:(A==null?void 0:A.words)??(N==null?void 0:N.words),bindMenus:(A==null?void 0:A.bindMenus)??(N==null?void 0:N.bindMenus),isMainPath:(A==null?void 0:A.isMainPath)??(N==null?void 0:N.isMainPath),relatedContents:(A==null?void 0:A.relatedContents)??(N==null?void 0:N.relatedContents),endChildMenu:(A==null?void 0:A.endChildMenu)??(N==null?void 0:N.endChildMenu)})}if(N&&((sa=Ca==null?void 0:Ca.value)==null||sa.forEach(A=>{var W,Me,ia,ye,ua;(A==null?void 0:A.prop)===(N==null?void 0:N.prop)&&(A!=null&&A.endChildMenu)&&((W=N==null?void 0:N.prop)!=null&&W.includes(".")&&((ia=(Me=N==null?void 0:N.prop)==null?void 0:Me.split("."))==null?void 0:ia[0])!==((ua=(ye=A==null?void 0:A.prop)==null?void 0:ye.split("."))==null?void 0:ua[0])?N.endChildMenu=A==null?void 0:A.value:N.endChildMenu=A==null?void 0:A.endChildMenu)})),!N)return;const ae=jl.value,H=(Ua=Ce.value)==null?void 0:Ua.findIndex(A=>(A==null?void 0:A.id)===(h==null?void 0:h.id));H!==-1&&ae&&(Ce.value[H]={...Ce.value[H],[ae]:d});const be=A=>{Array.isArray(A)&&A.forEach(W=>{Array.isArray(W==null?void 0:W.allSelectionContents)&&W.allSelectionContents.length>0&&(W.contactValue=Ce.value[H]??h),Array.isArray(W==null?void 0:W.children)&&W.children.length>0&&be(W.children)})};be(Se.value),N.value=d,N.endChildMenu=N.endChildMenu||"";let we=N!=null&&N.isMainPath&&(N!=null&&N.mainKey)?N==null?void 0:N.value:"";const Re=A=>{Array.isArray(A)&&A.forEach(W=>{var ia,ye;if(((W==null?void 0:W.type)==="Select"||(W==null?void 0:W.formType)&&W.formType.toUpperCase()==="SELECT"||(W==null?void 0:W.columnType)&&W.columnType.toUpperCase()==="SELECT")&&Array.isArray(W==null?void 0:W.menus)&&W.menus.length>0&&W.menus[W.menus.length-1]===""&&(N!=null&&N.isMainPath)&&(N!=null&&N.mainKey)){const ua=(ia=W==null?void 0:W.prop)!=null&&ia.includes(".")?W.prop.split(".")[0]:null,La=(ye=N==null?void 0:N.prop)!=null&&ye.includes(".")?N.prop.split(".")[0]:null;(!ua||!La||ua===La)&&(W.endChildMenu=we)}Array.isArray(W==null?void 0:W.children)&&W.children.length>0&&Re(W.children)})};if(Re(Se.value),!!(N!=null&&N.mainKey)&&Array.isArray(N==null?void 0:N.menus)&&(N==null?void 0:N.menus.length)>0&&(N!=null&&N.value)&&(N==null?void 0:N.value)!==""){let A=N!=null&&N.relatedContents&&((se=N==null?void 0:N.relatedContents)==null?void 0:se.length)>0?(Aa=N==null?void 0:N.relatedContents)==null?void 0:Aa.find(W=>{var Me,ia,ye,ua;return(W==null?void 0:W[(ua=(Me=N==null?void 0:N.prop)==null?void 0:Me.split("."))==null?void 0:ua[((ye=(ia=N==null?void 0:N.prop)==null?void 0:ia.split("."))==null?void 0:ye.length)-1]])===(N==null?void 0:N.value)}):await is(N);if(A){const W={...h};ee==null||ee.forEach(Me=>{var ia,ye,ua,La,pl,rl,ml,yl,Pl,ll,kl,Ya,fl,ol,hl,El;(Me==null?void 0:Me.prop)!==(N==null?void 0:N.prop)&&(N!=null&&N.relatedContents&&((ia=N==null?void 0:N.relatedContents)==null?void 0:ia.length)>0?(ye=Me==null?void 0:Me.prop)!=null&&ye.includes(".")&&((La=(ua=Me==null?void 0:Me.prop)==null?void 0:ua.split("."))==null?void 0:La[0])===((rl=(pl=N==null?void 0:N.prop)==null?void 0:pl.split("."))==null?void 0:rl[0])?W[Me.prop]=A[(ll=(ml=Me==null?void 0:Me.prop)==null?void 0:ml.split("."))==null?void 0:ll[((Pl=(yl=Me==null?void 0:Me.prop)==null?void 0:yl.split("."))==null?void 0:Pl.length)-1]]??W[Me.prop]:W[Me.prop]=(A==null?void 0:A[Me.prop])??W[Me.prop]:Va.same((N==null?void 0:N.menus)??[],(Me==null?void 0:Me.menus)??[])&&Va.same((N==null?void 0:N.groups)??[],(Me==null?void 0:Me.groups)??[])&&!Va.same((N==null?void 0:N.words)??[],(Me==null?void 0:Me.words)??[])?(kl=Me==null?void 0:Me.prop)!=null&&kl.includes(".")&&((fl=(Ya=Me==null?void 0:Me.prop)==null?void 0:Ya.split("."))==null?void 0:fl[0])!==((hl=(ol=N==null?void 0:N.prop)==null?void 0:ol.split("."))==null?void 0:hl[0])||(W[Me.prop]=(A==null?void 0:A[(El=Me==null?void 0:Me.words)==null?void 0:El.join(".")])??(A==null?void 0:A[Me.prop])??W[Me.prop]):(!(Me!=null&&Me.isMainPath)&&Va.same((N==null?void 0:N.bindMenus)??[],(Me==null?void 0:Me.bindMenus)??[]),W[Me.prop]=(A==null?void 0:A[Me.prop])??W[Me.prop]))}),Ce.value=(da=L.cloneDeep(Ce.value))==null?void 0:da.map(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id)?{...W,id:Me==null?void 0:Me.id}:Me)}}if((Na=N==null?void 0:N.optionUrl)!=null&&Na.menuSelect){let A="";ee==null||ee.forEach(ia=>{var ye,ua,La,pl,rl;A===""&&((La=(ua=(ye=ia==null?void 0:ia.optionUrl)==null?void 0:ye.groupSelect)==null?void 0:ua[1])!=null&&La.includes("["))&&(A=(rl=(pl=ia==null?void 0:ia.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:rl[1])});let W=await vt(N),Me;if(W==null||W.forEach(ia=>{var ye,ua,La,pl,rl,ml,yl,Pl,ll,kl;A===((ua=(ye=N==null?void 0:N.optionUrl)==null?void 0:ye.groupSelect)==null?void 0:ua[1])&&((rl=(pl=(La=N==null?void 0:N.optionUrl)==null?void 0:La.groupSelect)==null?void 0:pl[1])!=null&&rl.includes("["))&&((kl=L.cloneDeep(ia))==null?void 0:kl[(ll=(Pl=(yl=(ml=N==null?void 0:N.optionUrl)==null?void 0:ml.groupSelect)==null?void 0:yl[1])==null?void 0:Pl.replaceAll("[",""))==null?void 0:ll.replaceAll("]","")])===(N==null?void 0:N.value)&&(Me=ia)}),Me){const ia={...h};ee==null||ee.forEach(ye=>{var ua,La,pl,rl,ml,yl,Pl,ll,kl,Ya,fl;(Me!=null&&Me[ye==null?void 0:ye.label]||Me!=null&&Me[(rl=(pl=(La=(ua=ye==null?void 0:ye.optionUrl)==null?void 0:ua.groupSelect)==null?void 0:La[1])==null?void 0:pl.replaceAll("[",""))==null?void 0:rl.replaceAll("]","")])&&((Pl=(yl=(ml=ye==null?void 0:ye.optionUrl)==null?void 0:ml.groupSelect)==null?void 0:yl[1])!=null&&Pl.includes("["))&&(ia[ye.prop]=(Me==null?void 0:Me[ye==null?void 0:ye.label])||(Me==null?void 0:Me[(fl=(Ya=(kl=(ll=ye==null?void 0:ye.optionUrl)==null?void 0:ll.groupSelect)==null?void 0:kl[1])==null?void 0:Ya.replaceAll("[",""))==null?void 0:fl.replaceAll("]","")]))}),Ce.value=(Ma=L.cloneDeep(Ce.value))==null?void 0:Ma.map(ye=>(ye==null?void 0:ye.id)===(h==null?void 0:h.id)?{...ia,id:ye==null?void 0:ye.id}:ye)}}},lu=async d=>{var je,oa,ja,Oa,na,al,sa,Ua,se,Aa,da,Na,Ma,A;if(!d)return;const h=L.cloneDeep(sr.value||{});sr.value=d;const T=Lo(h),z=Lo(sr.value);if(z&&z!==T&&await rt(z,Pa.value||void 0)){el.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ti.forEach(Me=>{if(Object.prototype.hasOwnProperty.call(sr.value||{},Me)||Object.prototype.hasOwnProperty.call(h||{},Me)){const ia=(h==null?void 0:h[Me])??"";sr.value[Me]=ia,d[Me]=ia}}),Ca.value=(Ca.value||[]).map(Me=>{if(!(Me!=null&&Me.prop)||!ti.includes(Me.prop))return Me;const ia=(h==null?void 0:h[Me.prop])??"";return{...Me,value:ia,selectValue:ia===""?[]:[ia]}});return}let $=L.cloneDeep(u.itemData);$==null||$.map(W=>{var Me,ia,ye,ua;return(W==null?void 0:W.key)==="header"&&(Array.isArray((Me=W.contents)==null?void 0:Me[0])?W.contents=(ye=ca.getColumnChild((ia=W.contents)==null?void 0:ia[0]))==null?void 0:ye.map((La,pl)=>{var rl,ml,yl,Pl,ll,kl;return((yl=(ml=(rl=Ca.value)==null?void 0:rl.find(Ya=>(Ya==null?void 0:Ya.prop)===(La==null?void 0:La.prop)))==null?void 0:ml.optionUrl)==null?void 0:yl.multiple)===!0&&!Array.isArray((Pl=Object.values(d))==null?void 0:Pl[pl])?La.value=[(ll=Object.values(d))==null?void 0:ll[pl]]:La.value=(kl=Object.values(d))==null?void 0:kl[pl],La}):W.contents=(ua=W.contents)==null?void 0:ua.map((La,pl)=>{var rl,ml,yl,Pl,ll,kl;return((yl=(ml=(rl=Ca.value)==null?void 0:rl.find(Ya=>(Ya==null?void 0:Ya.prop)===(La==null?void 0:La.prop)))==null?void 0:ml.optionUrl)==null?void 0:yl.multiple)===!0&&!Array.isArray((Pl=Object.values(d))==null?void 0:Pl[pl])?La.value=[(ll=Object.values(d))==null?void 0:ll[pl]]:La.value=(kl=Object.values(d))==null?void 0:kl[pl],La})),W});let N=Ca.value,ee=(je=$==null?void 0:$.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:je.contents;if(jl.value||(N=N==null?void 0:N.map(W=>{var Me;return W.value=W.value??((Me=ee==null?void 0:ee.find((ia,ye)=>(ia==null?void 0:ia.prop)===(W==null?void 0:W.name)))==null?void 0:Me.value),W})),!$r.value)return;let ae=L.cloneDeep(jl.value);(oa=jl.value)!=null&&oa.includes("·")&&(jl.value=(Oa=(ja=jl.value)==null?void 0:ja.split("·"))==null?void 0:Oa[0]);let H=(al=(na=$==null?void 0:$.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:na.contents)==null?void 0:al.find((W,Me)=>(W==null?void 0:W.prop)===jl.value);(sa=Ca==null?void 0:Ca.value)==null||sa.forEach(W=>{var Me,ia,ye,ua,La,pl,rl,ml,yl;(W==null?void 0:W.prop)===(H==null?void 0:H.prop)&&(W!=null&&W.endChildMenu)&&((Me=H==null?void 0:H.prop)!=null&&Me.includes(".")&&((ye=(ia=H==null?void 0:H.prop)==null?void 0:ia.split("."))==null?void 0:ye[0])!==((La=(ua=W==null?void 0:W.prop)==null?void 0:ua.split("."))==null?void 0:La[0])?H.endChildMenu=(rl=(pl=W==null?void 0:W.value)==null?void 0:pl.split(" "))==null?void 0:rl[0]:H.endChildMenu=(yl=(ml=W==null?void 0:W.endChildMenu)==null?void 0:ml.split(" "))==null?void 0:yl[0])});let be=H!=null&&H.isMainPath&&(H!=null&&H.mainKey)?H==null?void 0:H.value:"",we=N,Re=ge.value;if(Re!=null&&Re.find(W=>(H==null?void 0:H.prop)===(W==null?void 0:W.key))&&(Re=Re==null?void 0:Re.filter(W=>(H==null?void 0:H.prop)!==(W==null?void 0:W.key))),Re!=null&&Re.find(W=>ae===(W==null?void 0:W.key))&&(Re=Re==null?void 0:Re.filter(W=>ae!==(W==null?void 0:W.key))),(H==null?void 0:H.formType)==="Select"&&(we=we==null?void 0:we.map(W=>{var Me,ia,ye,ua,La,pl,rl,ml,yl,Pl,ll,kl,Ya,fl,ol,hl;return(W==null?void 0:W.type)==="Select"&&(((Me=W==null?void 0:W.allSelectionContents)==null?void 0:Me.length)>0&&(W.contactValue=d),((H==null?void 0:H.prop)===(W==null?void 0:W.prop)||ae===(W==null?void 0:W.prop))&&H&&(Array.isArray(H.value)&&((ia=H.value)==null?void 0:ia.length)>0&&((ye=H.value)!=null&&ye.every(El=>typeof El=="string"))?(Re.push({key:W==null?void 0:W.prop,value:[(La=H.value)==null?void 0:La[((ua=H.value)==null?void 0:ua.length)-1]]}),W.selectValue=(pl=Re==null?void 0:Re.find(El=>(El==null?void 0:El.key)===(W==null?void 0:W.prop)))==null?void 0:pl.value):Array.isArray(H.value)&&((rl=H.value)==null?void 0:rl.length)===0?(Re=[],W.selectValue=[],d[W==null?void 0:W.prop]=""):Array.isArray(W.value)&&Re.push({key:W==null?void 0:W.prop,value:[(ml=W.value)==null?void 0:ml[(W==null?void 0:W.length)-1]]})),((Pl=W==null?void 0:W.menus)==null?void 0:Pl[((yl=W==null?void 0:W.menus)==null?void 0:yl.length)-1])===""&&(H!=null&&H.isMainPath)&&(H!=null&&H.mainKey)&&((ll=W==null?void 0:W.prop)!=null&&ll.includes(".")&&((Ya=(kl=W==null?void 0:W.prop)==null?void 0:kl.split("."))==null?void 0:Ya[0])!==((ol=(fl=H==null?void 0:H.prop)==null?void 0:fl.split("."))==null?void 0:ol[0])||(W.endChildMenu=(hl=be==null?void 0:be.split(" "))==null?void 0:hl[0]))),W.value=(d==null?void 0:d[W==null?void 0:W.prop])??(W==null?void 0:W.value),W})),ge.value=Re,we!=null&&we.some(W=>(W==null?void 0:W.functionName)&&(W==null?void 0:W.functionName)!=="")){let W=await ft([d],Se==null?void 0:Se.value,"Auto",Ce.value),Me=[];(Ua=we==null?void 0:we.filter(ye=>(ye==null?void 0:ye.functionName)&&(ye==null?void 0:ye.functionName)!==""))==null||Ua.forEach(ye=>{var ua;((ua=ye==null?void 0:ye.functionRelatedWords)==null?void 0:ua.length)>0&&(Me=[...Me,...ye==null?void 0:ye.functionRelatedWords])}),Me=Me==null?void 0:Me.filter(ye=>(ye==null?void 0:ye[0])!=="@");let ia=[];for(let ye in W==null?void 0:W[0])Me!=null&&Me.find(ua=>ye===ua||(ye==null?void 0:ye.includes("."+ua)))&&ia.push(((se=W==null?void 0:W[0])==null?void 0:se[ye])!=="");(W==null?void 0:W.length)>0&&ia.every(ye=>ye)&&(we=we==null?void 0:we.map(ye=>{var ua;return ye.value=((ua=W==null?void 0:W[0])==null?void 0:ua[ye==null?void 0:ye.prop])??ye.value,ye})),sr.value=W==null?void 0:W[0]}if(Ca.value=we,H=Object.assign({},H??{},{relatedWords:(da=(Aa=Ca==null?void 0:Ca.value)==null?void 0:Aa.find(W=>(W==null?void 0:W.prop)===(H==null?void 0:H.prop)))==null?void 0:da.relatedWords}),(H==null?void 0:H.mainKey)&&(H!=null&&H.value)&&(H==null?void 0:H.value)!==""){let W=H!=null&&H.relatedContents&&((Na=H==null?void 0:H.relatedContents)==null?void 0:Na.length)>0?(Ma=H==null?void 0:H.relatedContents)==null?void 0:Ma.find(Me=>{var ia,ye,ua,La;return(Me==null?void 0:Me[(La=(ia=H==null?void 0:H.prop)==null?void 0:ia.split("."))==null?void 0:La[((ua=(ye=H==null?void 0:H.prop)==null?void 0:ye.split("."))==null?void 0:ua.length)-1]])===(H==null?void 0:H.value)}):await is(H);if(W&&JSON.stringify(W)!=="{}"){let Me=we;Me=Me==null?void 0:Me.map(ye=>{var ua,La,pl,rl,ml,yl,Pl,ll,kl,Ya,fl,ol,hl,El,Al,kr,Rl,wl,Ml,Yl,zl;if((H==null?void 0:H.prop)===(ye==null?void 0:ye.prop))ye.value=(W==null?void 0:W[(ua=ye==null?void 0:ye.words)==null?void 0:ua.join(".")])??(W==null?void 0:W[ye==null?void 0:ye.prop])??W[(ml=(La=ye==null?void 0:ye.prop)==null?void 0:La.split("."))==null?void 0:ml[((rl=(pl=ye==null?void 0:ye.prop)==null?void 0:pl.split("."))==null?void 0:rl.length)-1]];else if(H!=null&&H.relatedContents&&((yl=H==null?void 0:H.relatedContents)==null?void 0:yl.length)>0)ye.value=(Pl=ye==null?void 0:ye.prop)!=null&&Pl.includes(".")&&((kl=(ll=ye==null?void 0:ye.prop)==null?void 0:ll.split("."))==null?void 0:kl[0])===((fl=(Ya=H==null?void 0:H.prop)==null?void 0:Ya.split("."))==null?void 0:fl[0])?W[(Al=(ol=ye==null?void 0:ye.prop)==null?void 0:ol.split("."))==null?void 0:Al[((El=(hl=ye==null?void 0:ye.prop)==null?void 0:hl.split("."))==null?void 0:El.length)-1]]:(W==null?void 0:W[ye==null?void 0:ye.prop])??(ye==null?void 0:ye.value);else if(Va.same((H==null?void 0:H.menus)??[],(ye==null?void 0:ye.menus)??[])&&Va.same((H==null?void 0:H.groups)??[],(ye==null?void 0:ye.groups)??[])&&!Va.same((H==null?void 0:H.words)??[],(ye==null?void 0:ye.words)??[]))if((kr=ye==null?void 0:ye.prop)!=null&&kr.includes(".")&&((wl=(Rl=ye==null?void 0:ye.prop)==null?void 0:Rl.split("."))==null?void 0:wl[0])!==((Yl=(Ml=H==null?void 0:H.prop)==null?void 0:Ml.split("."))==null?void 0:Yl[0])){let Gl=Object.keys(W);Gl=Gl==null?void 0:Gl.find(Ql=>{var ql;return Ql==null?void 0:Ql.includes("."+((ql=ye==null?void 0:ye.words)==null?void 0:ql.join(".")))}),ye.value=(W==null?void 0:W[Gl])??(W==null?void 0:W[ye==null?void 0:ye.prop])??ye.value}else{let Gl=Object.keys(W);Gl=Gl==null?void 0:Gl.find(Ql=>{var ql;return Ql==null?void 0:Ql.includes("."+((ql=ye==null?void 0:ye.words)==null?void 0:ql.join(".")))}),ye.value=(W==null?void 0:W[(zl=ye==null?void 0:ye.words)==null?void 0:zl.join(".")])??(W==null?void 0:W[Gl])??(W==null?void 0:W[ye==null?void 0:ye.prop])??ye.value}else!(ye!=null&&ye.isMainPath)&&Va.same((H==null?void 0:H.bindMenus)??[],(ye==null?void 0:ye.bindMenus)??[]),ye.value=(W==null?void 0:W[ye==null?void 0:ye.prop])??ye.value;return ye}),Ca.value=Me;let ia={};(A=Ca.value)==null||A.forEach(ye=>{ia[ye.prop]=ye==null?void 0:ye.value}),sr.value=ia}}$r.value=!0,q.value=!1},ru=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",nu=d=>{var N,ee;const h=(ee=(N=ga.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.label)===(d==null?void 0:d.label)))==null?void 0:ee.multiple,T=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ce.value.forEach(ae=>{const H=ae==null?void 0:ae[T];h&&_i.isString(H)&&(ae[T]=[H]),!h&&!_i.isString(H)&&(ae[T]="")})},Mt=(d,h)=>{var T;return h==null||h.forEach(z=>{d[z==null?void 0:z.prop]=z==null?void 0:z.value}),d.children&&((T=d.children)==null?void 0:T.length)>0&&(d.children=d.children.map(z=>Mt(z,h))),d},nt=d=>{var T,z,$,N,ee,ae;Oo("");const h=(T=Ca.value)==null?void 0:T.reduce((H,be)=>(H[be.name]=be.value,H),{});if(((z=Object.keys(h))==null?void 0:z.length)>0){sr.value=h,Pa.value="",ve.value=($=Ce.value)==null?void 0:$.length,We.value=(N=Qe.value)==null?void 0:N.filter(be=>(be==null?void 0:be.label)!=="新增");const H=(ae=(ee=ue.value)==null?void 0:ee.filter(be=>(be==null?void 0:be.label)!=="操作"))==null?void 0:ae.map(be=>{var Re,Ie,je;const we=(Ie=(Re=ga.value)==null?void 0:Re.find(oa=>(oa==null?void 0:oa.label)===(be==null?void 0:be.label)))==null?void 0:Ie.multiple;return nu(be),{...be,contents:(be==null?void 0:be.options)??[],optionUrl:be!=null&&be.formMenuSelect&&((je=be==null?void 0:be.formMenuSelect)==null?void 0:je.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:we}:null}});Se.value=H==null?void 0:H.map(be=>Mt(be,[{prop:"type",value:"edit"},{prop:"columnType",value:ru(be==null?void 0:be.formType)||(be==null?void 0:be.columnType)}])),d==="createClick"&&(Ae.value="新增",Ro(!0))}},ho={START:"开始时间",END:"结束时间",HOURS:"工时"},ou=(d,h)=>Number($n.dayjs(h).diff($n.dayjs(d),"day",!0).toFixed(1)),It=d=>{var N;const h=u.itemData,T=(N=h==null?void 0:h.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:N.contents,z=new Map;return T==null||T.forEach((ee,ae)=>{const{label:H}=ee;z.set(H,ae)}),!z.has(ho.START)||!z.has(ho.END)||!z.has(ho.HOURS)?d:d==null?void 0:d.map(ee=>{const ae=ee==null?void 0:ee[ho.START],H=ee==null?void 0:ee[ho.END],be=ou(ae,H);return ae&&H&&(ee[ho.HOURS]=`${be}天`),ee})},Ot=(d,h,T=0)=>{if(T>((h==null?void 0:h.length)??""))return d;const z=h==null?void 0:h[T],$=new Map;for(const ee of d){const ae=ee[z];$.has(ae)||$.set(ae,[]),$.get(ae)&&$.get(ae).push(ee)}const N=[];for(const[ee,ae]of $){const[H,...be]=ae,we={...H};T+1===((h==null?void 0:h.length)??"")?we.children=ae==null?void 0:ae.map(Re=>(Re.level=L.cloneDeep(T)+1,Re)).filter((Re,Ie)=>Ie!==0):be.length>0&&(we.children=Ot(be,h,T+1)),we.level=T,N.push(we)}return N},Lt=(d,h,T)=>{var $;if(!(h!=null&&h.contents)||(($=h==null?void 0:h.contents)==null?void 0:$.length)===0)return d;let z=[];return z=Ot(d,h==null?void 0:h.contents,0),z},Rt=async(d,h)=>{var Oa,na,al,sa,Ua,se,Aa,da,Na,Ma,A,W,Me,ia,ye,ua,La,pl,rl,ml,yl,Pl,ll,kl,Ya,fl,ol,hl,El,Al,kr,Rl,wl,Ml,Yl,zl,Gl,Ql,ql,pr,Ur,fr,ir,cr,Vt,Pt,Ft;const T=d==null?void 0:d.filter(ka=>(ka==null?void 0:ka.key)==="header");d==null||d.filter(ka=>(ka==null?void 0:ka.key)==="tableIndexColumn")[0];const z=d==null?void 0:d.filter(ka=>(ka==null?void 0:ka.key)==="childTree")[0];let $=!0;if((al=(na=(Oa=d==null?void 0:d.find(ka=>(ka==null?void 0:ka.key)==="filterAllType"))==null?void 0:Oa.value)==null?void 0:na.find(ka=>(ka==null?void 0:ka.value)==="onPamButtonContents"))!=null&&al.content){let ka=(se=(Ua=(sa=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:sa.value)==null?void 0:Ua.find(Dl=>(Dl==null?void 0:Dl.value)==="onPamButtonContents"))==null?void 0:se.content;ka=(Aa=ka==null?void 0:ka.split(":"))==null?void 0:Aa[1],ka=(da=ka.slice(1,(ka==null?void 0:ka.length)-1))==null?void 0:da.split(","),$=!!(ka!=null&&ka.find(Dl=>Dl==="操作"))}const N=d==null?void 0:d.find(ka=>(ka==null?void 0:ka.key)==="page"),ee=d==null?void 0:d.find(ka=>(ka==null?void 0:ka.key)==="rowButton"),ae=d==null?void 0:d.find(ka=>(ka==null?void 0:ka.key)==="extraButton"),H=d==null?void 0:d.filter(ka=>(ka==null?void 0:ka.key)==="tableContents"),be=d==null?void 0:d.filter(ka=>(ka==null?void 0:ka.key)==="bottomButton"),we=d==null?void 0:d.filter(ka=>(ka==null?void 0:ka.key)==="tableIndex");ga.value=(Ma=(Na=d==null?void 0:d.filter(ka=>(ka==null?void 0:ka.key)==="tableToForm"))==null?void 0:Na[0])==null?void 0:Ma.contents,Je.value=(N==null?void 0:N.contents)??!0;let Re=[];Hl.value===""?Re=T==null?void 0:T[0]:Re=(T==null?void 0:T.find(ka=>(ka==null?void 0:ka.selectLabel)==="("+Hl.value+")"))??(T==null?void 0:T.find(ka=>!(ka!=null&&ka.selectLabel)));let Ie=[];Hl.value===""?Ie=we==null?void 0:we[0]:Ie=(we==null?void 0:we.find(ka=>(ka==null?void 0:ka.selectLabel)==="("+Hl.value+")"))??(we==null?void 0:we.find(ka=>!(ka!=null&&ka.selectLabel)));let je=[],oa=[];if(((A=Re==null?void 0:Re.contents)==null?void 0:A.length)>0){let ka=[],Dl=Re==null?void 0:Re.contents;if(Array.isArray(Dl==null?void 0:Dl[0])&&((W=Dl==null?void 0:Dl[0])!=null&&W.every(il=>!(il!=null&&il.children)))&&(Dl=Dl==null?void 0:Dl[0]),Dl.some(il=>Array.isArray(il)&&(il==null?void 0:il.find(He=>He.children))))ka=(Me=ca.getGradeColumns(Dl,$))==null?void 0:Me[0],ka!=null&&ka.find(il=>(il==null?void 0:il.label)==="操作")||ka.push({label:"操作",prop:"operate",type:"operate"});else{let il=Dl.some(He=>Array.isArray(He))?Dl==null?void 0:Dl[0]:Dl;il!=null&&il.find(He=>(He==null?void 0:He.label)==="操作")||il.push({label:"操作",prop:"operate",type:"operate"}),il==null||il.forEach((He,Zl)=>{var Lr,Br,Rr,Cr,lo,yo,go,gr,yn,qn,bo,ln,Wn,qt,Wt,Kt,Gt,Yt,Jt,Xt;if((Br=(Lr=_a.value)==null?void 0:Lr.split("/"))==null||Br.forEach(er=>{var hr,Dn,Zt;er!==""&&((Zt=(Dn=(hr=er==null?void 0:er.split(g+"updateLoading"))==null?void 0:hr[0])==null?void 0:Dn.split(g+"loading"))==null||Zt[0])}),He!=null&&He.methodContent){let er=(lo=(Cr=(Rr=He==null?void 0:He.methodContent)==null?void 0:Rr.replace("@","%%#"))==null?void 0:Cr.split("%%#"))==null?void 0:lo[1];if(er=er==null?void 0:er.slice(0,(er==null?void 0:er.length)-1),er=ca.contentTransArrayToAllNoExtra(er??"",","),(yo=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("@Button")))!=null&&yo.includes("Prop")&&((go=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("Type")))!=null&&go.includes("Manual"))){let hr=(yn=(gr=er==null?void 0:er.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:gr.split(":"))==null?void 0:yn[1];hr=((ln=(bo=(qn=hr==null?void 0:hr.replaceAll("[",""))==null?void 0:qn.replaceAll("]",""))==null?void 0:bo.split(","))==null?void 0:ln[1])??"算法执行",je.push(hr)}else if((Wn=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("@Button")))!=null&&Wn.includes("Row")&&((qt=er==null?void 0:er.find(hr=>hr==null?void 0:hr.includes("Type")))!=null&&qt.includes("Manual"))){let hr=(Kt=(Wt=er==null?void 0:er.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:Wt.split(":"))==null?void 0:Kt[1];hr=((Jt=(Yt=(Gt=hr==null?void 0:hr.replaceAll("[",""))==null?void 0:Gt.replaceAll("]",""))==null?void 0:Yt.split(","))==null?void 0:Jt[1])??"算法执行",oa.push(hr)}}(Xt=ga.value)==null||Xt.find(er=>(er==null?void 0:er.prop)===(He==null?void 0:He.prop)),ka.push({label:(He==null?void 0:He.label)==="操作"?$?"操作":"":(He==null?void 0:He.label)??"",prop:(He==null?void 0:He.label)==="操作"?"operate":(He==null?void 0:He.prop)??"a"+Zl,width:He!=null&&He.width?parseInt(He.width):"",fixed:(He==null?void 0:He.fixed)??void 0,sortable:(He==null?void 0:He.sortable)??!1,filterable:(He==null?void 0:He.filterable)??!1,operable:(He==null?void 0:He.operable)??!1,showSummary:(He==null?void 0:He.showSummary)??!1,align:(He==null?void 0:He.align)??"left",showOverflowTooltip:(He==null?void 0:He.showOverflowTooltip)??!0,isNotDrag:(He==null?void 0:He.isNotDrag)??!1,isEditCol:(He==null?void 0:He.isEditCol)??!1,isOperate:(He==null?void 0:He.isOperate)??!1,id:(He==null?void 0:He.id)??Zl,type:(He==null?void 0:He.label)==="操作"?"operate":void 0,formType:(He==null?void 0:He.formType)??(He!=null&&He.groupSelect?"Select":""),disabled:He==null?void 0:He.disabled,options:(He==null?void 0:He.options)??[],value:(He==null?void 0:He.value)??"",isExistChild:(He==null?void 0:He.isExistChild)??!1,mainKey:(He==null?void 0:He.mainKey)??Zl===0,allSelectionContents:(He==null?void 0:He.allContents)??[],filterContent:He==null?void 0:He.filterContents,menus:He==null?void 0:He.menus,groups:He==null?void 0:He.groups,words:He==null?void 0:He.words,filter:He==null?void 0:He.filter,bindMenus:He==null?void 0:He.bindMenus,fatherPath:He==null?void 0:He.fatherPath,isMainPath:He==null?void 0:He.isMainPath,required:(He==null?void 0:He.required)??!1,relatedContents:He==null?void 0:He.relatedContents,functionName:He==null?void 0:He.functionName,functionRelatedWords:He==null?void 0:He.functionRelatedWords,calculatorFilter:He==null?void 0:He.calculatorFilter,relatedPages:He==null?void 0:He.relatedPages,multiple:(He==null?void 0:He.multiple)??!1})})}O.value=(ia=be==null?void 0:be[0])==null?void 0:ia.contents;const tn=ca.getNewColumnChild(ka),jt=il=>Array.isArray(il)?il.map(He=>(Array.isArray(He==null?void 0:He.children)&&He.children.length>0?(He.sortable=!1,jt(He.children)):(He==null?void 0:He.prop)==="operate"||(He==null?void 0:He.label)==="操作"||(He==null?void 0:He.type)==="operate"||(He.sortable=!1),He)):il;jt(tn),await Hi(tn),Lf(Q.value,tn),Se.value=tn,Sa.value=tn,r.value=(ye=Se.value)==null?void 0:ye.map(il=>il==null?void 0:il.label);let sn=(La=(ua=ca.getAllLeafNodes(Se.value))==null?void 0:ua.filter(il=>(il==null?void 0:il.type)!=="operate"))==null?void 0:La.map((il,He)=>({prop:(il==null?void 0:il.prop)??"a"+He,column:il.label}));Or.value=sn;let an=[];Hl.value===""?an=H==null?void 0:H[0]:an=(H==null?void 0:H.find(il=>(il==null?void 0:il.selectLabel)==="("+Hl.value+")"))??(H==null?void 0:H.find(il=>!(il!=null&&il.selectLabel)));let ao=Array.isArray((pl=an==null?void 0:an.contents)==null?void 0:pl[0])&&((rl=an==null?void 0:an.contents)!=null&&rl[0].every(il=>Array.isArray(il)))?(ml=an==null?void 0:an.contents)==null?void 0:ml[0]:an==null?void 0:an.contents;Ie!=null&&Ie.contents&&((yl=Ie==null?void 0:Ie.contents)==null?void 0:yl.length)!==0&&(ao=(Pl=L.cloneDeep(ao))==null?void 0:Pl.map((il,He)=>{if(!Array.isArray(il)){let Zl={};for(let Lr in il)Lr!=="id"&&Lr!=="index"&&(Zl[Lr]=il[Lr]);il=Object.values(Zl)}return il}));const gu=!!((ll=Se.value)!=null&&ll.find(il=>il.prop==="index"));ao=lc(ao,Ie==null?void 0:Ie.contents,gu);const vo=[];ao==null||ao.forEach((il,He)=>{var Lr;let Zl={};if(Array.isArray(il)){let Br=[];il==null||il.filter(Rr=>!(Rr!=null&&Rr.id)).forEach((Rr,Cr)=>{var lo,yo,go,gr,yn,qn;if((lo=sn==null?void 0:sn[Cr])!=null&&lo.prop&&!Array.isArray(Rr)){let bo={};bo[sn[Cr].column]=Rr,qa!=null&&qa.value&&((yo=qa==null?void 0:qa.value)==null?void 0:yo.length)>0&&((go=qa==null?void 0:qa.value)!=null&&go.find(ln=>JSON.stringify(ln==null?void 0:ln[0])===JSON.stringify(bo)))&&(Br=(gr=qa==null?void 0:qa.value)==null?void 0:gr.find(ln=>JSON.stringify(ln==null?void 0:ln[0])===JSON.stringify(bo))),Br&&Br.length>0?Zl[sn[Cr].prop]=Br!=null&&Br.find(ln=>{var Wn;return((Wn=Object.keys(ln))==null?void 0:Wn[0])===sn[Cr].column})?(yn=Br==null?void 0:Br.find(ln=>{var Wn;return((Wn=Object.keys(ln))==null?void 0:Wn[0])===sn[Cr].column}))==null?void 0:yn[sn[Cr].column]:Rr:Zl[sn[Cr].prop]=Rr}else Array.isArray(Rr)&&((qn=sn[Cr])!=null&&qn.prop?Zl[sn[Cr].prop]=Rr:Zl.children=ht(Rr,sn))})}else Zl=il;if(Array.isArray(il)&&il.some(Br=>Br==null?void 0:Br.id)){const Br=(Lr=il==null?void 0:il.find(Rr=>Rr.id))==null?void 0:Lr.id;vo.push(Object.assign(Zl,{id:li(Br)}))}else Zl.id?vo.push(Zl):vo.push(Object.assign(Zl,{id:He.toString()}))});try{const il=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),He=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Zl=il==null?void 0:il.tableId,Lr=il==null?void 0:il.compIndex;if(Zl&&Array.isArray(He)&&He.length>0&&String(Zl)===String(u==null?void 0:u.parentTableId)&&String(Lr)===String(u==null?void 0:u.index)){const Br=new Set(vo.map(Cr=>String(Cr==null?void 0:Cr.id))),Rr=He.filter(Cr=>!Br.has(String(Cr)));if(Rr.length>0){const Cr=il==null?void 0:il.pageKey,lo=Cr!=null&&Cr.startsWith("/")?Cr.substring(1):Cr;((h==null?void 0:h[Cr])||(h==null?void 0:h[lo])||[]).filter(gr=>{var yn,qn;return((yn=gr==null?void 0:gr.key)==null?void 0:yn.type)==="data"&&String((qn=gr==null?void 0:gr.key)==null?void 0:qn.tableId)===String(Zl)&&Rr.includes(gr==null?void 0:gr.id)}).forEach(gr=>{var yn;Br.has(String(gr==null?void 0:gr.id))||(vo.push({id:gr==null?void 0:gr.id,...((yn=gr==null?void 0:gr.value)==null?void 0:yn.tableData)||{}}),Br.add(String(gr==null?void 0:gr.id)))})}}}catch{}let mo=null;try{const il=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,He=JSON.parse(sessionStorage.getItem(il)||"null");Array.isArray(He)&&He.length>0&&(mo=new Set(He.map(Zl=>String(Zl))))}catch{}const Ht=Array.from(((kl=ma.value)==null?void 0:kl.values())||[]).filter(il=>!(!(il!=null&&il._isOCRRow&&(il==null?void 0:il._ocrTableId)===(u==null?void 0:u.index))||mo&&mo.has(String(il==null?void 0:il.id)))),bu=(Ce.value||[]).map(il=>String(il==null?void 0:il.id)),Ut=ri(vo,bu);if(Ce.value=Lt(Ut,z,Se.value),Ea.value=Ut,(Ya=Ea.value)==null||Ya.forEach(il=>{var He;(He=ma.value)==null||He.set(il.id,il)}),mo&&mo.size>0)try{const il=new Set(Array.from(mo.values()));Ce.value=(Ce.value||[]).filter(He=>!il.has(String(He==null?void 0:He.id))),Ea.value=(Ea.value||[]).filter(He=>!il.has(String(He==null?void 0:He.id))),il.forEach(He=>{var Zl,Lr;try{(Lr=(Zl=ma.value)==null?void 0:Zl.delete)==null||Lr.call(Zl,He)}catch{}})}catch{}const ci=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ot=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(ci&&Array.isArray(ot)&&ot.length>0&&String(ci==null?void 0:ci.compIndex)===String(u==null?void 0:u.index)){const il=new Set((Ea.value||[]).map(He=>String(He==null?void 0:He.id)));ot.filter(He=>!il.has(String(He)))}if(Ht.length>0){const il=new Set((Ce.value||[]).map(Zl=>Zl==null?void 0:Zl.id)),He=Ht.filter(Zl=>!il.has(Zl.id));He.length>0&&(Ce.value=[...Ce.value||[],...He],Ea.value=[...Ea.value||[],...He],He.forEach(Zl=>{var Lr;return(Lr=ma.value)==null?void 0:Lr.set(Zl.id,Zl)}))}}else Se.value=[],ue.value=[],Ce.value=[],Ea.value=[],ma.value=new Map;if(oa=[...new Set(oa)],oa=oa==null?void 0:oa.map(ka=>({label:ka,type:"methodButton"})),((fl=ee==null?void 0:ee.contents)==null?void 0:fl.length)>0?Ha.value=ee==null?void 0:ee.contents:Ha.value=[],Ha.value=[...Ha.value,...oa],je=[...new Set(je)],je=je==null?void 0:je.map(ka=>({label:ka,type:"methodButton"})),((ol=ae==null?void 0:ae.contents)==null?void 0:ol.length)>0)if((Al=(El=(hl=d==null?void 0:d.find(ka=>(ka==null?void 0:ka.key)==="filterAllType"))==null?void 0:hl.value)==null?void 0:El.find(ka=>(ka==null?void 0:ka.value)==="onButtonContents"))!=null&&Al.content){let ka=(wl=(Rl=(kr=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:kr.value)==null?void 0:Rl.find(Dl=>(Dl==null?void 0:Dl.value)==="onButtonContents"))==null?void 0:wl.content;if(ka=(Ml=ka==null?void 0:ka.split(":"))==null?void 0:Ml[1],ka=(Yl=ka.slice(1,(ka==null?void 0:ka.length)-1))==null?void 0:Yl.split(","),We.value=(zl=ae==null?void 0:ae.contents)==null?void 0:zl.filter(Dl=>ka==null?void 0:ka.find(tn=>tn===(Dl==null?void 0:Dl.label))),Qe.value=(Gl=ae==null?void 0:ae.contents)==null?void 0:Gl.filter(Dl=>ka==null?void 0:ka.find(tn=>tn===(Dl==null?void 0:Dl.label))),(Ql=ae==null?void 0:ae.contents)!=null&&Ql.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别")&&!((ql=We.value)!=null&&ql.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别"))){const Dl=(pr=ae==null?void 0:ae.contents)==null?void 0:pr.find(tn=>(tn==null?void 0:tn.label)==="OCR识别");We.value=[...We.value,Dl],Qe.value=[...Qe.value,Dl]}E.value=!!(ka!=null&&ka.find(Dl=>Dl==="搜索")),j.value=!!(ka!=null&&ka.find(Dl=>Dl==="块状显示"))}else We.value=ae==null?void 0:ae.contents,Qe.value=ae==null?void 0:ae.contents;else We.value=[],Qe.value=[];We.value=[...We.value,...je],Qe.value=[...Qe.value,...je],typeof _a.value=="string"&&_a.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?((Ur=We.value)!=null&&Ur.some(ka=>(ka==null?void 0:ka.label)==="OCR识别")||(We.value=[...We.value||[],{label:"OCR识别"}]),(fr=Qe.value)!=null&&fr.some(ka=>(ka==null?void 0:ka.label)==="OCR识别")||(Qe.value=[...Qe.value||[],{label:"OCR识别"}])):(We.value=(We.value||[]).filter(ka=>(ka==null?void 0:ka.label)!=="OCR识别"),Qe.value=(Qe.value||[]).filter(ka=>(ka==null?void 0:ka.label)!=="OCR识别")),(ir=We.value)!=null&&ir.some(ka=>(ka==null?void 0:ka.label)==="切换视图")||(We.value=[...We.value||[],{label:"切换视图"}]),(cr=Qe.value)!=null&&cr.some(ka=>(ka==null?void 0:ka.label)==="切换视图")||(Qe.value=[...Qe.value||[],{label:"切换视图"}]),ve.value=((Vt=Ce==null?void 0:Ce.value)==null?void 0:Vt.length)??0,It(Ce.value),Gr.value=Ce.value,Il.value&&(Se.value=(Ft=(Pt=ue.value)==null?void 0:Pt.filter(ka=>(ka==null?void 0:ka.label)!=="操作"))==null?void 0:Ft.map(ka=>{var Dl;return{...ka,type:"edit",optionUrl:ka!=null&&ka.formMenuSelect&&((Dl=ka==null?void 0:ka.formMenuSelect)==null?void 0:Dl.length)>0?{groupSelect:ka==null?void 0:ka.groupSelect,menuSelect:ka==null?void 0:ka.formMenuSelect,selectRelateType:"",type:ka==null?void 0:ka.formType}:null}}),nt())};a.watch(()=>[u.itemData,Hl.value,bn.value,vn.value,qa==null?void 0:qa.value],async()=>{var d,h,T,z,$,N;if((d=u==null?void 0:u.itemData)!=null&&d.find(ee=>(ee==null?void 0:ee.key)==="columnPath")&&!((h=P.value)!=null&&h.find(ee=>{var ae,H;return(ee==null?void 0:ee.key)===((H=(ae=u==null?void 0:u.itemData)==null?void 0:ae.find(be=>(be==null?void 0:be.key)==="columnPath"))==null?void 0:H.contents)}))){let ee=P.value,ae={key:(z=(T=u==null?void 0:u.itemData)==null?void 0:T.find(H=>(H==null?void 0:H.key)==="columnPath"))==null?void 0:z.contents,value:(N=($=u==null?void 0:u.itemData)==null?void 0:$.find(H=>(H==null?void 0:H.key)==="columnUsingPath"))==null?void 0:N.contents};ee!=null&&ee.find(H=>(H==null?void 0:H.key)===(ae==null?void 0:ae.key))?ee=ee==null?void 0:ee.map(H=>((H==null?void 0:H.key)===(ae==null?void 0:ae.key)&&(H.value=ae.value),H)):ee.push(ae),Ze.setTableViewContents(ee)}await Rt(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&(Oo(d==null?void 0:d.form),Ae.value=d==null?void 0:d.dialogTitle,wa.value=!0,Xe.value=!0)},{immediate:!0,deep:!0});const iu=()=>{var d;(d=R.value)!=null&&d.includes("read")&&(Il.value=!Il.value)},tu=()=>{mr.value=!mr.value};a.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var h;R.value=d,(d==null?void 0:d.length)===0?Il.value=!1:(d!=null&&d.includes("read")||(Il.value=!0),d!=null&&d.includes("edit")||(Il.value=!1)),B.value=((h=u==null?void 0:u.config)==null?void 0:h.showIndex)||Il.value},{immediate:!0}),a.watch(()=>Il.value,d=>{var h;d?(nt("viewChange"),Ze.setCacheUpdatingData(null)):(We.value=Qe.value,Se.value=Sa.value,F.value&&(Ze.setTableLoading(u==null?void 0:u.index),Ne("change",F.value))),B.value=d||((h=u==null?void 0:u.config)==null?void 0:h.showIndex),or.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=Fn.value)==null?void 0:d.length},d=>{d===0&&(fe.currentPage=1)}),a.watch(()=>u==null?void 0:u.compNames,d=>{t.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),a.ref(!1);const su=(d,h)=>{var T;nt("createClick"),h===fe.pageSize&&(fe.currentPage=Math.ceil(((T=Ce.value)==null?void 0:T.length)/fe.pageSize))},cu=async(d,h,T)=>{var $,N,ee,ae,H;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(z&&ti.includes(z)&&T!==void 0&&T!==null&&String(T).trim()!==""){const be=String(T).trim();if(await rt(be,d==null?void 0:d.id)){el.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Re=($=Ce.value)==null?void 0:$.findIndex(je=>(je==null?void 0:je.id)===(d==null?void 0:d.id)),Ie=Re!==-1?(ee=(N=Ce.value)==null?void 0:N[Re])==null?void 0:ee[z]:void 0;z&&(d[z]=Ie??"");return}}if(Il.value){const be=d==null?void 0:d.id;be!=null&&(m.value.has(be)||m.value.set(be,L.cloneDeep(d)),c.value.add(be));const we=(ae=Ce.value)==null?void 0:ae.findIndex(Re=>(Re==null?void 0:Re.id)===(d==null?void 0:d.id));we!==-1&&z&&(Ce.value[we]={...Ce.value[we],[z]:T}),si(T,d,h);return}si(T,d,h),sr.value=L.cloneDeep(d),Pa.value=d==null?void 0:d.id,ve.value=(H=Ce.value)==null?void 0:H.length,Ae.value=d!=null&&d._isTemp?"新增":"编辑",Ro(!1)},uu=async()=>{var d,h;try{const T=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const $=z.split("_")[1];$&&(T.push(`content_${$}`),T.push(`struct_${$}`))}})),T.length===0&&(u!=null&&u.itemData)){const z=(h=(d=u.itemData)==null?void 0:d.find($=>($==null?void 0:$.key)==="contentTableId"))==null?void 0:h.contents;z&&(T.push(`content_${z}`),T.push(`struct_${z}`))}return T}catch(T){return console.error("获取 tableNames 失败:",T),[]}},du=async(d,h,T)=>{var N,ee;if(!T||typeof T!="string"||T.trim()===""){const ae=(h==null?void 0:h.property)??(h==null?void 0:h.prop),H=`${d==null?void 0:d.id}:${ae}`;p.value.delete(H),y.value.set(H,!1);return}const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),$=`${d==null?void 0:d.id}:${z}`;y.value.set($,!0);try{const ae=await uu();if(ae.length===0){console.warn("未找到同名表,跳过全局搜索"),p.value.delete($),y.value.set($,!1);return}const H=parseInt((N=$l.value)==null?void 0:N.plat_id);if(!H){console.warn("platId 无效,跳过全局搜索"),p.value.delete($),y.value.set($,!1);return}const be=await L.getAllTables({platId:H,tableNames:ae}),we=((ee=be==null?void 0:be.data)==null?void 0:ee.result)||[],Re=[],Ie=[];for(let je=0;je<we.length;je+=2)je+1<we.length&&Ie.push([we[je],we[je+1]]);Ie.forEach(([je,oa])=>{var Ua;if(!Array.isArray(je)||je.length===0||!Array.isArray(oa)||oa.length===0)return;const ja=oa[0];let Oa=((Ua=ja==null?void 0:ja.结构)==null?void 0:Ua.contents)??[];if(!Array.isArray(Oa)||Oa.length===0)return;let na=L.cloneDeep(Oa);if(Array.isArray(na==null?void 0:na[0])&&(na=ca.getColumnChild(na[0])),!Array.isArray(na)||na.length===0||!na.some(se=>(se==null?void 0:se.prop)===z))return;[...je].sort((se,Aa)=>{const da=Number((se==null?void 0:se.update_time)??0);return Number((Aa==null?void 0:Aa.update_time)??0)-da}).slice(0,20).forEach(se=>{const Aa=se[z];if(Aa!=null){const da=String(Aa);da.toLowerCase().includes(T.toLowerCase())&&Re.findIndex(Ma=>{var A;return se.id&&((A=Ma.rowData)==null?void 0:A.id)===se.id?!0:Ma.label===da})===-1&&Re.push({label:da,rowData:L.cloneDeep(se),sourceTable:(ja==null?void 0:ja.source_table)||""})}})}),p.value.set($,Re)}catch(ae){console.error("全局搜索建议失败:",ae),p.value.delete($)}finally{y.value.set($,!1)}},pu=(d,h,T)=>{if(!Il.value)return;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),$=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if($&&$.toUpperCase()!=="INPUT"&&$!=="")return;const N=`${d==null?void 0:d.id}:${z}`;if(v.has(N)&&clearTimeout(v.get(N)),!T||T.trim()===""){p.value.delete(N),y.value.set(N,!1);return}const ee=setTimeout(()=>{du(d,{prop:z,property:z},T),v.delete(N)},300);v.set(N,ee)};function fu(d,h){const T=`${d==null?void 0:d.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return p.value.get(T)||[]}const hu=(d,h,T)=>{var we;if(!T||!T.rowData)return;const z=T.rowData,$=d==null?void 0:d.id,N=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ae=(ca.getAllLeafNodes(Se.value)||[]).filter(Re=>(Re==null?void 0:Re.type)!=="operate"&&(Re==null?void 0:Re.label)!=="操作"&&(Re==null?void 0:Re.prop)!=="operate");ae.forEach(Re=>{const Ie=Re==null?void 0:Re.prop;Ie&&z[Ie]!==void 0&&(d[Ie]=z[Ie])});const H=(we=Ce.value)==null?void 0:we.findIndex(Re=>(Re==null?void 0:Re.id)===$);H!==-1&&ae.forEach(Re=>{const Ie=Re==null?void 0:Re.prop;Ie&&z[Ie]!==void 0&&(Ce.value[H][Ie]=z[Ie])}),$!=null&&(m.value.has($)||m.value.set($,L.cloneDeep(d)),c.value.add($));const be=`${$}:${N}`;p.value.delete(be),y.value.set(be,!1),si(d[N],d,h)},Hr=d=>{var H,be,we,Re,Ie,je,oa,ja,Oa,na,al;const{row:h,column:T,item:z,slotData:$}=d;let N=h!=null&&h[T==null?void 0:T.prop]||(h==null?void 0:h[T==null?void 0:T.prop])===0?((be=(H=h==null?void 0:h[T==null?void 0:T.prop])==null?void 0:H[0])==null?void 0:be.contents)??((h==null?void 0:h[T==null?void 0:T.prop])===0?"0":h==null?void 0:h[T==null?void 0:T.prop]):((Re=(we=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:we[0])==null?void 0:Re.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((je=(Ie=$==null?void 0:$[z==null?void 0:z.prop])==null?void 0:Ie[0])==null?void 0:je.contents)??($==null?void 0:$[z==null?void 0:z.prop])??((Oa=(ja=h==null?void 0:h[(oa=z==null?void 0:z.child)==null?void 0:oa.prop])==null?void 0:ja[0])==null?void 0:Oa.contents)??(h==null?void 0:h[(na=z==null?void 0:z.child)==null?void 0:na.prop]),ae=Array.isArray(N)&&!(N!=null&&N.every(sa=>typeof sa=="string"||typeof sa=="number"))?"查看":N;if(ae=Array.isArray(ae)?ae.join(","):ae,(T==null?void 0:T.formType)==="Date")if(!ae||ae===""||ae===null||ae===void 0)ae="";else{const sa=$n.dayjs(ae,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ae=sa.isValid()?sa.format("YYYYMMDD"):ae??""}return Array.isArray(T==null?void 0:T.relatedPages)&&((al=T==null?void 0:T.relatedPages)==null?void 0:al.length)>0&&(ae="详情页"),ae},vu=d=>{var be,we,Re,Ie,je,oa,ja,Oa,na,al;const{row:h,column:T,item:z,slotData:$}=d;let N=h!=null&&h[T==null?void 0:T.prop]?((we=(be=h==null?void 0:h[T==null?void 0:T.prop])==null?void 0:be[0])==null?void 0:we.contents)??(h==null?void 0:h[T==null?void 0:T.prop]):((Ie=(Re=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:Re[0])==null?void 0:Ie.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((oa=(je=$==null?void 0:$[z==null?void 0:z.prop])==null?void 0:je[0])==null?void 0:oa.contents)??($==null?void 0:$[z==null?void 0:z.prop])??((na=(Oa=h==null?void 0:h[(ja=z==null?void 0:z.child)==null?void 0:ja.prop])==null?void 0:Oa[0])==null?void 0:na.contents)??(h==null?void 0:h[(al=z==null?void 0:z.child)==null?void 0:al.prop]);const ae=Array.isArray(N)&&!(N!=null&&N.every(sa=>typeof sa=="string"||typeof sa=="number")),H=Array.isArray(N)&&(N==null?void 0:N.find(sa=>sa==null?void 0:sa.url));return ae&&H},mu=d=>{var $,N;if(!(d!=null&&d.column))return!1;const h=_a.value==="试验任务/任务管理",T=(u==null?void 0:u.compName)==="任务列表",z=(($=d==null?void 0:d.column)==null?void 0:$.label)==="任务状态"||((N=d==null?void 0:d.column)==null?void 0:N.prop)==="任务状态";return h&&T&&z},yu=(d,h)=>d.find(T=>Object.values(T).some(z=>z===h));return a.watch(()=>ze.value,async d=>{if(d){la.setContentLoading(!0),await a.nextTick();const h=yu(Ce.value,d==null?void 0:d.data);if(!h)return la.setContentLoading(!1);await Un(d==null?void 0:d.data,null,h,{data:d==null?void 0:d.data}),la.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.cacheNewData,d=>{var h;d&&(Array.isArray(d)?d.forEach(T=>{var z,$,N,ee,ae;if(换,String(T==null?void 0:T.compId)===String(u==null?void 0:u.index)&&(T!=null&&T.resId)&&((z=T==null?void 0:T.data)!=null&&z.id)){const H=($=T==null?void 0:T.data)==null?void 0:$.id,be=T==null?void 0:T.resId;if(Ce.value=(N=Ce.value)==null?void 0:N.map(we=>{if((we==null?void 0:we.id)===H){const Re={...we,id:be};return delete Re._isOCRRow,delete Re._ocrTableId,Re}return we}),(ae=(ee=ma.value)==null?void 0:ee.has)!=null&&ae.call(ee,H)){const Re={...ma.value.get(H)||{},id:be};delete Re._isOCRRow,delete Re._ocrTableId,ma.value.delete(H),ma.value.set(be,Re)}fa(u==null?void 0:u.index,H,be)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(Ce.value=(h=Ce.value)==null?void 0:h.map(T=>{var z;if((T==null?void 0:T.id)===((z=d==null?void 0:d.data)==null?void 0:z.id)){const $={...T,id:d==null?void 0:d.resId};return delete $._isOCRRow,delete $._ocrTableId,$}return T})))},{immediate:!0,deep:!0}),(d,h)=>{var na,al,sa,Ua;const T=a.resolveComponent("svg-icon"),z=a.resolveComponent("el-popover"),$=a.resolveComponent("el-switch"),N=a.resolveComponent("el-checkbox"),ee=a.resolveComponent("el-radio"),ae=a.resolveComponent("el-radio-group"),H=a.resolveComponent("el-checkbox-group"),be=a.resolveComponent("el-button"),we=a.resolveComponent("el-icon"),Re=a.resolveComponent("el-progress"),Ie=a.resolveComponent("el-alert"),je=a.resolveComponent("el-table-column"),oa=a.resolveComponent("el-table"),ja=a.resolveComponent("el-upload"),Oa=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",x0,[Pr.value?(a.openBlock(),a.createBlock(dl.ssTable,{id:"excel-table",pageObj:fe,showIndex:B.value,isTree:(na=l.compItem)==null?void 0:na.isTree,summaryInfo:G,columns:Se.value,defaultSort:J,isCardViewport:mr.value,checkedColumns:r.value,key:rn.value+Se.value,tableData:Fn.value,isEditViewport:Il.value,isShowPagination:Je.value,isShowEdit:!1,isShowDelete:!1,allowSelect:w.value,onDbClickRow:ni,extraButton:We.value,rowButton:Ha.value,cacheExtraButtons:Qe.value,isClearSelection:((al=or.value)==null?void 0:al.length)===0,onDoCurrentChange:mn,onDoSizeChange:To,onSortChange:Oi,onContentClick:Un,onRowClick:oi,onSelectChange:Fi,onCellChange:cu,onCellInput:pu,onSelectSuggest:hu,onChange:si,onPreview:Hn,onSubmitEditingTable:Jo,onHandleColEditChange:Ko,onHandleColTypeChange:Go,onClickButton:In,onAddNewRow:Fr,bottomButton:O.value},a.createSlots({headerButton:a.withCtx(se=>{var Aa,da;return[l.showHeader?(a.openBlock(),a.createBlock(Zp,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(ce)===a.unref(_a),filterValues:Ki.value,selectNums:(Aa=or.value)==null?void 0:Aa.length,dataNums:(da=Ce.value)==null?void 0:da.length,compName:l.compName,isDevMode:l.isDevMode,buttons:se.buttons,onButtonClick:h[1]||(h[1]=(Na,Ma,A)=>In(Na,Ma,{extra:A})),columns:Se.value,onFilter:Gi,onGetImportData:Ri,level:l.level,filterShow:E.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var se,Aa,da,Na;return[((se=Ce.value)==null?void 0:se.length)>0&&l.allowOperate&&j.value?(a.openBlock(),a.createElementBlock("div",C0,[(Aa=R.value)!=null&&Aa.includes("read")&&((da=R.value)!=null&&da.includes("edit"))&&((Na=Ha.value)!=null&&Na.some(Ma=>(Ma==null?void 0:Ma.label)==="编辑"))&&!mr.value&&a.unref(ce)!==a.unref(_a)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:iu},[a.createVNode(T,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:se,index:Aa})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:da=>su(se,Aa)},[a.createVNode(T,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,S0)]),operateCol:a.withCtx(()=>[a.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:au},{reference:a.withCtx(()=>[a.createElementVNode("span",E0,[a.createVNode(T,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",D0,[h[20]||(h[20]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode($,{"model-value":b.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=se=>Zo(se))},null,8,["model-value"]),h[21]||(h[21]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(H,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=se=>r.value=se),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Cn.value,se=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:se.label},[a.createVNode(N,{value:se.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:se.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(se.label),9,B0)]),_:2},1032,["value"]),a.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(T,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Aa;return[a.createElementVNode("div",N0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Aa=Object.keys(se))==null?void 0:Aa.filter(da=>{var Na;return(Na=Z.value)==null?void 0:Na.find(Ma=>(Ma==null?void 0:Ma.value)===da)}),da=>{var Na,Ma;return a.openBlock(),a.createElementBlock("div",{key:da},[M[da]=="radio"?(a.openBlock(),a.createElementBlock("div",T0,[h[19]||(h[19]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ae,{"model-value":se==null?void 0:se[da],onChange:A=>Sn(A,da,se)},{default:a.withCtx(()=>{var A,W;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((W=(A=Z.value)==null?void 0:A.find(Me=>(Me==null?void 0:Me.value)===da))==null?void 0:W.options,Me=>(a.openBlock(),a.createBlock(ee,{key:Me==null?void 0:Me.value,label:Me==null?void 0:Me.value,value:Me==null?void 0:Me.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Me==null?void 0:Me.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),M[da]=="switch"?(a.openBlock(),a.createBlock($,{key:1,"model-value":se==null?void 0:se[da],"active-text":(Ma=(Na=Z.value)==null?void 0:Na.find(A=>(A==null?void 0:A.value)===da))==null?void 0:Ma.label,onChange:A=>Sn(A,da,se)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",A0,[a.createVNode(T,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(se=>{var Aa,da,Na,Ma,A,W,Me,ia,ye,ua,La,pl,rl,ml,yl,Pl,ll,kl,Ya,fl;return[((Aa=se==null?void 0:se.column)==null?void 0:Aa.label)==="证书附件"||((da=se==null?void 0:se.column)==null?void 0:da.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",z0,[a.createVNode(T,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(ol=>Yr(se),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):vu(se)?(a.openBlock(),a.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",M0,a.toDisplayString(Hr(se)),1)]),default:a.withCtx(()=>{var ol,hl;return[a.createElementVNode("div",I0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((hl=se==null?void 0:se.row)==null?void 0:hl[(ol=se==null?void 0:se.column)==null?void 0:ol.prop],El=>(a.openBlock(),a.createElementBlock("div",O0,[a.createElementVNode("div",{class:"prop-url",title:Qn(El),onClick:Al=>qi(El)},a.toDisplayString(Qn(El)),9,L0),a.createElementVNode("div",{class:"prop-download",onClick:Al=>co(El)}," 下载 ",8,R0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[mu(se)?(a.openBlock(),a.createBlock(Tu,{key:0,value:Hr(se)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Hr(se))&&((Ma=(Na=Hr(se))==null?void 0:Na.toString())!=null&&Ma.includes(".txt")||(W=(A=Hr(se))==null?void 0:A.toString())!=null&&W.includes(".cpt")||(ia=(Me=Hr(se))==null?void 0:Me.toString())!=null&&ia.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Hr(se))&&((ua=(ye=Hr(se))==null?void 0:ye.toString())!=null&&ua.includes(".txt")||(pl=(La=Hr(se))==null?void 0:La.toString())!=null&&pl.includes(".cpt")||(ml=(rl=Hr(se))==null?void 0:rl.toString())!=null&&ml.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Hr(se))&&((Pl=(yl=Hr(se))==null?void 0:yl.toString())!=null&&Pl.includes(".txt")||(kl=(ll=Hr(se))==null?void 0:ll.toString())!=null&&kl.includes(".cpt")||(fl=(Ya=Hr(se))==null?void 0:Ya.toString())!=null&&fl.includes(".cyd"))?"pointer":"",marginLeft:(se==null?void 0:se.colIndex)===0?`${((se==null?void 0:se.level)??0)*20}px`:0}),onClick:ol=>{var hl;return zn(Hr(se),((hl=se==null?void 0:se.column)==null?void 0:hl.relatedPages)??[])}},a.toDisplayString(Hr(se)===0?"0":Hr(se)),13,$0))],64))]}),_:2},[((sa=Ha.value)==null?void 0:sa.length)>0?{name:"actions",fn:a.withCtx(({item:se,fIndex:Aa})=>[a.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",w0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Wi(Ha.value,se),(da,Na)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Na,onClick:a.withModifiers(Ma=>In(da==null?void 0:da.label,se,{extra:da}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:da==null?void 0:da.textColor}),class:"extra-button-label"},a.toDisplayString(da==null?void 0:da.label),5)],8,_0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):a.createCommentVNode("",!0),Il.value?(a.openBlock(),a.createElementBlock("div",V0,[a.createVNode(be,{id:"themeBorderButton",onClick:Pi},{default:a.withCtx(()=>h[22]||(h[22]=[a.createTextVNode("取消")])),_:1,__:[22]}),a.createVNode(be,{class:"ok-button",id:"themeButton",onClick:Ao},{default:a.withCtx(()=>h[23]||(h[23]=[a.createTextVNode("保存")])),_:1,__:[23]})])):a.createCommentVNode("",!0),a.createVNode(xr.ssDialog,{title:Ae.value,visible:Xe.value,width:Kl.value,onBeforeDestroy:Qo,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",P0,[a.createVNode(dl.ssForm,{ref_key:"formRef",ref:ya,rowContents:Ca.value,showOperator:!1,onChange:lu,isEnableWrap:!1,onFixChangeValue:Mo,onClickTrigger:ei,isEdit:Fa.value,onBlurChange:ji,onCreate:Xo,onTagChange:en},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[wa.value?(a.openBlock(),a.createElementBlock("div",F0,[a.createVNode(be,{onClick:h[4]||(h[4]=se=>Xe.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>h[24]||(h[24]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[24]}),a.createVNode(be,{class:"ok-button",onClick:h[5]||(h[5]=se=>Ro(!0)),id:"themeButton"},{default:a.withCtx(()=>h[25]||(h[25]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[25]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(xr.ssDialog,{title:Ae.value,visible:Te.value,width:Ia.value,onBeforeDestroy:h[7]||(h[7]=se=>Te.value=!1)},{default:a.withCtx(()=>[a.createVNode(df)]),footer:a.withCtx(()=>[a.createElementVNode("div",j0,[a.createVNode(be,{onClick:h[6]||(h[6]=se=>Te.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>h[26]||(h[26]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[26]}),a.createVNode(be,{class:"ok-button",onClick:Io,id:"themeButton"},{default:a.withCtx(()=>h[27]||(h[27]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),Ja.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:2,fileDataList:le.value,onDestroy:En},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ue.value?(a.openBlock(),a.createBlock(xr.ssDialog,{key:3,visible:Ue.value,onBeforeDestroy:Qc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(wi.ThreeViewerHost,{files:ta.value,threeData:ne.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(xr.ssDialog,{title:"OCR扫描录入",visible:va.value,"close-on-click-modal":!1,onBeforeDestroy:cl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[h[38]||(h[38]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",H0,[a.createElementVNode("div",U0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:me.value===1}])},h[28]||(h[28]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[31]||(h[31]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:me.value===2}])},h[29]||(h[29]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[32]||(h[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:me.value===3}])},h[30]||(h[30]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),me.value===1?(a.openBlock(),a.createElementBlock("div",q0,[a.createVNode(be,{onClick:et,class:"ocr-action-btn",disabled:ba.value,size:"default"},{default:a.withCtx(()=>h[33]||(h[33]=[a.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),a.createVNode(be,{onClick:Ul,class:"ocr-action-btn",disabled:ba.value,size:"default"},{default:a.withCtx(()=>h[34]||(h[34]=[a.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):a.createCommentVNode("",!0),me.value===1?(a.openBlock(),a.createElementBlock("div",W0,[a.createElementVNode("div",K0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Ye.value,(se,Aa)=>{var da;return a.openBlock(),a.createElementBlock("div",{key:Aa,class:"ocr-file-item"},[a.createElementVNode("div",G0,[se.raw&&((da=se.raw.type)!=null&&da.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:_l(se),alt:"预览",class:"thumbnail-image"},null,8,Y0)):(a.openBlock(),a.createElementBlock("div",J0,[a.createVNode(we,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(el.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:ul(se)==="uploading",processing:ul(se)==="processing",completed:ul(se)==="completed"||ul(se)==="uploaded",failed:ul(se)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",X0,[h[35]||(h[35]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:ul(se)==="completed"||ul(se)==="uploaded",uploading:ul(se)==="uploading",processing:ul(se)==="processing",failed:ul(se)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:ul(se)==="failed"?"#f56c6c":ul(se)==="completed"||ul(se)==="uploaded"?"#67c23a":"#409eff","stroke-width":ul(se)==="completed"||ul(se)==="uploaded"||ul(se)==="failed"?3:2,"stroke-dasharray":Xl(se),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,Z0)])),ul(se)==="completed"||ul(se)==="uploaded"?(a.openBlock(),a.createElementBlock("div",Q0,[a.createVNode(we,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(el.check_default))]),_:1})])):a.createCommentVNode("",!0),ul(se)==="failed"?(a.openBlock(),a.createElementBlock("div",e3,[a.createVNode(we,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(el.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:Na=>fo(Aa)},[a.createVNode(we,null,{default:a.withCtx(()=>[a.createVNode(a.unref(el.close_default))]),_:1})],8,a3)]),a.createElementVNode("div",l3,a.toDisplayString(se.name||"文件名123"),1)])}),128))]),Ye.value.length>0?(a.openBlock(),a.createElementBlock("div",r3,[a.createVNode(be,{onClick:he,class:"ocr-start-recognize-btn",disabled:ba.value||Ye.value.length===0,size:"default"},{default:a.withCtx(()=>h[36]||(h[36]=[a.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),me.value===1?(a.openBlock(),a.createElementBlock("div",n3,[a.createVNode(Re,{percentage:K.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),me.value===2?(a.openBlock(),a.createElementBlock("div",o3,[a.createElementVNode("div",i3,[a.createVNode(Ie,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",t3,[a.createVNode(oa,{data:Ge.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(je,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Be.value,se=>(a.openBlock(),a.createBlock(je,{key:se.prop,prop:se.prop,"min-width":se.minWidth||230,"class-name":se.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",s3,[a.createElementVNode("span",null,a.toDisplayString(se.label),1)])]),default:a.withCtx(({row:Aa,$index:da})=>{var Na,Ma,A;return[se.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:sl(Aa[se.prop]),fontWeight:500})},a.toDisplayString($a(Aa[se.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[Ta.value!==da?(a.openBlock(),a.createElementBlock("span",c3,a.toDisplayString(Aa[se.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(tl(se.prop)),{key:1,modelValue:Aa[se.prop],"onUpdate:modelValue":W=>Aa[se.prop]=W,size:"small",placeholder:"请输入"+se.label,content:((Na=Cl(se.prop))==null?void 0:Na.contents)??((Ma=Cl(se.prop))==null?void 0:Ma.options)??[],optionUrl:(A=Cl(se.prop))==null?void 0:A.optionUrl,onChange:W=>ea(da,se.prop,W),onFocus:W=>pe.value=se.prop,onBlur:h[8]||(h[8]=W=>pe.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(je,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:se})=>[Ta.value===se?(a.openBlock(),a.createBlock(we,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(Aa=>nl(se),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(el.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(T,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(Aa=>nl(se),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),me.value===3?(a.openBlock(),a.createElementBlock("div",u3,[a.createVNode(we,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(el.check_default))]),_:1}),h[37]||(h[37]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(ja,{ref:"ocrUploadRef","file-list":Ye.value,"onUpdate:fileList":h[9]||(h[9]=se=>Ye.value=se),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":U,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[me.value!==3?(a.openBlock(),a.createElementBlock("div",d3,[a.createVNode(be,{onClick:jr,class:"ocr-start-recognize-btn",disabled:me.value===1||ba.value},{default:a.withCtx(()=>h[39]||(h[39]=[a.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),a.createVNode(be,{onClick:wr,class:"ocr-start-recognize-btn",disabled:ba.value},{default:a.withCtx(()=>h[40]||(h[40]=[a.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(Nf,{visible:po.value,onConfirm:at,onCancel:h[10]||(h[10]=se=>po.value=!1)},null,8,["visible"]),a.createVNode(dd,{visible:Ee.value,"onUpdate:visible":h[11]||(h[11]=se=>Ee.value=se),versions:Ke.value},null,8,["visible","versions"]),a.createVNode(Xu,{visible:Da.value,"onUpdate:visible":h[12]||(h[12]=se=>Da.value=se),images:Sl.value,"default-image-name":Vl.value,"field-meta":Ta.value!==null?((Ua=Ge.value[Ta.value])==null?void 0:Ua.__ocrFieldMeta)||{}:{},"focused-field-name":pe.value,onClose:h[13]||(h[13]=se=>Da.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(Cd,{visible:Fl.value,"onUpdate:visible":h[14]||(h[14]=se=>Fl.value=se),candidates:nr.value,"name-prop":lr.value,"mfr-prop":Qr.value,columns:Se.value,onSubmit:Mr,onPreviewFile:on},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Ad,{visible:aa.value,"onUpdate:visible":h[15]||(h[15]=se=>aa.value=se),ocrPreviewData:Ge.value,"onUpdate:ocrPreviewData":h[16]||(h[16]=se=>Ge.value=se),ocrSelectedFields:Qa.value,"onUpdate:ocrSelectedFields":h[17]||(h[17]=se=>Qa.value=se),ocrPreviewColumns:Be.value,onConfirm:xe,onFieldChange:h[18]||(h[18]=({rowIndex:se,prop:Aa,value:da})=>ea(se,Aa,da))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(xr.ssDialog,{title:t.title,visible:t.show,width:t.width,onBeforeDestroy:x},{default:a.withCtx(()=>[a.createElementVNode("div",p3,[a.createVNode(dl.ssForm,{rowContents:t==null?void 0:t.contents,formRules:t==null?void 0:t.formRules,showOperator:!1,buttonValue:t.buttonValue,isEdit:Fa.value,isStartJustify:!1,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(xr.ssDialog,{title:i.title,visible:i.show,width:i.width,alignCenter:!0,onBeforeDestroy:f},{header:a.withCtx(()=>[a.createVNode(Oa,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>h[41]||(h[41]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[41]})]),footer:a.withCtx(()=>[a.createElementVNode("div",f3,[a.createVNode(Oa,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(Tn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",h3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i==null?void 0:i.buttonValue,se=>(a.openBlock(),a.createBlock(be,{key:se==null?void 0:se.label,style:a.normalizeStyle({background:se==null?void 0:se.background,color:se==null?void 0:se.color}),onClick:Aa=>k(se==null?void 0:se.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(Qp,{columns:i==null?void 0:i.columns,tableData:i==null?void 0:i.tableData},{content:a.withCtx(({row:se,item:Aa,slotData:da,scope:Na,column:Ma,columnProp:A,$index:W})=>[a.createTextVNode(a.toDisplayString((se==null?void 0:se[(Ma==null?void 0:Ma.prop)||(Ma==null?void 0:Ma.label)])||(da==null?void 0:da[Ma==null?void 0:Ma.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},bc=Jl._export_sfc(m3,[["__scopeId","data-v-257996c6"]]),y3={key:1,class:"static-form-body"},g3=["onClick"],b3={key:1},k3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:n}){const r=l,o=n,s=g=>{switch(g){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},c=a.computed(()=>{var V;const g=(V=r.itemData)==null?void 0:V.find(G=>(G==null?void 0:G.key)==="formContent"),b=(g==null?void 0:g.contents)||[];return(r.fields&&r.fields.length>0?r.fields:b).filter(G=>(G==null?void 0:G.label)||(G==null?void 0:G.isHideInForm)).map(G=>{let fe=G==null?void 0:G.value;Array.isArray(fe)&&(fe=fe.map(ge=>ge==null?"":typeof ge=="object"?ge.label??ge.value??ge.name??JSON.stringify(ge):String(ge)).filter(Boolean).join(",")),fe!=null&&typeof fe=="object"&&(fe=fe.label??fe.value??fe.name??JSON.stringify(fe));const Ne=G.isHideInForm?"":G.label??"",Se=fe==null||fe===""?"-":String(fe),Q=Ne==="使用状态";return{label:Ne,value:Se,isStatus:Q,tagType:Q?s(Se):"",width:G.width??1,field:G}})}),m=a.ref(null),p=a.ref(null),v=g=>{if(Array.isArray(g)&&g.length>=3){const[b,j,V,G]=g;return G!==void 0?`rgba(${b}, ${j}, ${V}, ${G})`:`rgb(${b}, ${j}, ${V})`}if(typeof g=="string"){const b=g.trim();if(b.startsWith("[")&&b.endsWith("]")){const j=b.slice(1,-1).split(",").map(V=>Number(V.trim()));if(j.length>=3&&j.every(V=>!Number.isNaN(V))){const[V,G,fe,Ne]=j;return Ne!==void 0?`rgba(${V}, ${G}, ${fe}, ${Ne})`:`rgb(${V}, ${G}, ${fe})`}}return b}},y=a.computed(()=>{const g=Number(r==null?void 0:r.textSize),b=v(r==null?void 0:r.textColor),j={},V={},G={},fe={};return!Number.isNaN(g)&&g&&(j.fontSize=`${g}px`,V.fontSize=`${g+1}px`,G.fontSize=`${g}px`,fe.fontSize=`${g}px`),b&&(V.color=b,G.color=b,fe.color=b),{item:j,label:V,value:G,empty:fe}}),u=a.ref(""),w=a.ref(""),B=a.ref(!1),R=async g=>{if(g){w.value&&(URL.revokeObjectURL(w.value),w.value="");try{const b=await L.platformDownloadFile({url:g}),j=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});w.value=URL.createObjectURL(j)}catch{w.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,g=>{g&&(u.value=g)},{immediate:!0}),a.watch(u,g=>{R(g)},{immediate:!0});const E=()=>{var g;(g=p.value)==null||g.click()},q=async g=>{var V,G,fe;const b=g.target,j=(V=b==null?void 0:b.files)==null?void 0:V[0];if(!j){b.value="";return}B.value=!0;try{const Ne=new FormData;Ne.append("file",j);const Se=await L.platformUploadFile(Ne),Q=(fe=(G=Se==null?void 0:Se.data)==null?void 0:G.result)==null?void 0:fe.url;Q?(u.value=Q,o("update:backGroundImage",Q),R(Q),el.ElMessage.success("背景图片上传成功")):el.ElMessage.error("背景图片上传失败")}catch{el.ElMessage.error("背景图片上传失败")}finally{B.value=!1,b.value=""}},O=a.computed(()=>w.value?{backgroundImage:`url(${w.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),M=g=>dl.getComponent(g),Z=g=>{if(!g)return;const b=g.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},C=(g,b,j)=>{r.disabled||(m.value=b,a.nextTick(()=>{Z(j.currentTarget)}))},_=()=>{m.value=null},S=g=>{const b=g!=null&&g.width&&g.width>0?g.width:1,V=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${V}`,maxWidth:V,minWidth:"0",boxSizing:"border-box"}};return(g,b)=>{const j=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",{class:"static-form-card",style:a.normalizeStyle(O.value),onClick:b[2]||(b[2]=V=>(r==null?void 0:r.backGround)==="Yes"&&E())},[(r==null?void 0:r.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=a.withModifiers(V=>E(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:p,type:"file",accept:"image/*",style:{display:"none"},onChange:q},null,544),b[3]||(b[3]=a.createElementVNode("img",{src:dl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),c.value.length?(a.openBlock(),a.createElementBlock("div",y3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(V,G)=>{var fe,Ne,Se,Q,ge,J,ue,Ue;return a.openBlock(),a.createElementBlock("div",{key:G,class:"static-form-item",style:a.normalizeStyle({...S(V),...y.value.item}),onClick:b[1]||(b[1]=a.withModifiers(()=>{},["stop"]))},[V.label?(a.openBlock(),a.createElementBlock("div",{key:0,class:"static-form-label",style:a.normalizeStyle(y.value.label)},a.toDisplayString(V.label)+": ",5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(y.value.value),onClick:Ba=>C(V,G,Ba)},[m.value===G&&V.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(M(((fe=V.field)==null?void 0:fe.type)??"Input")),{key:0,modelValue:V.field.value,"onUpdate:modelValue":Ba=>V.field.value=Ba,isEdit:!0,disabled:(Ne=V.field)==null?void 0:Ne.disabled,content:((Se=V.field)==null?void 0:Se.contents)??[],optionUrl:V.field,originalValue:(Q=V.field)==null?void 0:Q.value,config:(ge=V.field)==null?void 0:ge.config,configModel:((J=V.field)==null?void 0:J.prop)??((ue=V.field)==null?void 0:ue.name),selectedTagList:((Ue=V.field)==null?void 0:Ue.selectValue)??[],onBlur:_,onBlurChange:_},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[V.isStatus?(a.openBlock(),a.createBlock(j,{key:0,type:V.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",b3,a.toDisplayString(V.value??"-"),1))],64))],12,g3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:2,class:"static-form-empty",style:a.normalizeStyle(y.value.empty)}," 暂无数据 ",4))],4)}}}),kc=Jl._export_sfc(k3,[["__scopeId","data-v-f2084144"]]),x3={class:"form-content"},w3={title:"选择标签"},_3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},C3={class:"col-operate-wrap"},S3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},E3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(l,{emit:n}){const r=()=>{m.value=!1,p.value=!1,v.value=[]},o=l;a.computed(()=>{var Ae;const ve=(Ae=De.value)==null?void 0:Ae.split("/");return(ve==null?void 0:ve.some(Xe=>(Xe==null?void 0:Xe.includes("updateLoading"))||(Xe==null?void 0:Xe.includes("loading"))))?!1:Ue.value==="view"});const s=n,c=a.ref([]),m=a.ref(!1),p=a.ref(!1),v=a.ref([]),{getFileExtension:y}=wi.useThreeSystem(),u=a.ref(),w=a.ref(!1),B=a.ref(!1),R=L.useUnit(L.pinia),{chooseTitle:E}=L.storeToRefs(R),q=a.ref([]),O=a.ref(),M=a.ref(!1),Z=a.ref([]),C=ac(L.pinia),_=Ct(L.pinia),S=a.ref(!1),g=a.ref(),b=a.ref(),j=a.ref(),V=a.ref(),G=a.ref(),fe=L.useLoginState(L.pinia),{loginUserInfo:Ne}=L.storeToRefs(fe),Se=a.ref(),Q=a.ref(!0),ge=L.useModelComp(L.pinia),{tableViewContents:J,itemData:ue,isEdit:Ue,routeToChildPath:Ba,lockingPage:ne}=L.storeToRefs(ge),D=a.ref(null),re=a.ref(!1),ke=a.ref(!1),de=L.useMenuState(),{activeMenuPath:De}=L.storeToRefs(de),ha=ca.useOriginalState(L.pinia),{originalPath:Sa}=L.storeToRefs(ha),{compType:Ja,hasEditable:le}=Ws.useRole(),la=()=>!le(o.config,{type:Ja.FORM});a.computed(()=>De.value==="设备管理/试验设备"&&o.compName==="设备概要");const Ve=a.ref([]),_a=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Fe=async ve=>{ke.value=ve,await P("disabled",null,ve,!0)},ze=async ve=>{await P("operable",null,ve,!0)};a.watch(()=>De.value,async()=>{c.value=[],v.value=[]},{deep:!0,immediate:!0});const $e=()=>{a.nextTick(()=>{F()})},Ze=ve=>{var Je;c.value=(Je=c.value)==null?void 0:Je.map(Ae=>({...Ae,isFormColHidden:!(ve!=null&&ve.includes(Ae.label))}))};a.onUnmounted(()=>{D.value=null});const Xa=ve=>{s("clickTrigger",ve)},qa=async ve=>{var Je,Ae,Xe,ya,pa,Te;if(ve===""){let Ia="";(Je=c.value)==null||Je.forEach(ta=>{ta!=null&&ta.isMain&&(Ia=ta==null?void 0:ta.value)});let ga=await ca.getItemData(Ba.value,sessionStorage.getItem("systemKey"),"");Ia=((Te=(pa=(ya=(Xe=(Ae=ga==null?void 0:ga[0])==null?void 0:Ae.compData)==null?void 0:Xe.find(ta=>(ta==null?void 0:ta.key)==="mainRouters"))==null?void 0:ya.contents)==null?void 0:pa[0])==null?void 0:Te.routerContent)+Sa.value+Ia;let wa=await ca.getItemData(Ia,sessionStorage.getItem("systemKey"),"");M.value=!0,Z.value=wa==null?void 0:wa.filter(ta=>(ta==null?void 0:ta.comp)!=="methodButton"),s("routeUrl",Z.value)}},F=()=>{var Je;const ve=(Je=D.value)==null?void 0:Je.$el;ve&&Va.Sortable.create(ve,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ae=>{const{oldIndex:Xe,newIndex:ya}=Ae;if(Xe===ya)return;const pa=c.value.splice(Xe,1)[0];c.value.splice(ya,0,pa)}})},P=async(ve,Je,Ae,Xe=!1)=>{try{ge.setRefreshCurStructure(!1)}catch{el.ElMessage.error("编辑处理失败")}},X=async(ve,Je)=>{await P()},te=async(ve,Je)=>{ve&&await P()},ce=async(ve,Je,Ae)=>{await P(Je,Ae,ve,!1)},xa=(ve,Je)=>{Se.value===Je?Q.value=!1:Q.value=!0,Se.value=Je==null?void 0:Je.changeProp},ra=ve=>{V.value=ve;const Je=o.itemData,Ae=Je==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.key)==="backGroundImage");Ae?Ae.contents=ve:Je==null||Je.push({key:"backGroundImage",contents:ve}),s("change",{key:"backGroundImage",contents:ve})},Le=async ve=>{var Ae,Xe,ya,pa,Te,Ia,ga,Ha,wa,ta,We,Qe,Ca,oe,_e;let Je=[];if((Ae=ve==null?void 0:ve.toString())!=null&&Ae.includes(".urdf")){if(ve.includes(",")){el.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:ve,extension:y(ve)}],p.value=!0,m.value=!0;return}if((Xe=ve==null?void 0:ve.toString())!=null&&Xe.includes(".stl")||(ya=ve==null?void 0:ve.toString())!=null&&ya.includes(".STL")||(pa=ve==null?void 0:ve.toString())!=null&&pa.includes(".obj")||(Te=ve==null?void 0:ve.toString())!=null&&Te.includes(".mtl")){const ie=((Ia=ve==null?void 0:ve.toString())==null?void 0:Ia.split(",")).map(Ka=>({url:Ka,extension:y(Ka)}));v.value=ie,p.value=!1,m.value=!0;return}if((ga=ve==null?void 0:ve.toString())!=null&&ga.includes(".stl")||(Ha=ve==null?void 0:ve.toString())!=null&&Ha.includes(".STL")||(wa=ve==null?void 0:ve.toString())!=null&&wa.includes(".obj")||(ta=ve==null?void 0:ve.toString())!=null&&ta.includes(".mtl")){let Pe,ie=[],Ka={};if(Array.isArray(ve)?Pe=ve:Pe=ve==null?void 0:ve.split(","),Pe==null||Pe.forEach(vl=>{vl.includes(".mtl")?ie.push(vl):Ka.blob=Ka.blob?Ka.blob+","+vl:vl}),(ie==null?void 0:ie.length)>0&&(Ka.mtlBlobs=ie),(Qe=(We=Object.values(Ka))==null?void 0:We[0])!=null&&Qe.includes("http:"))Je.push(Ka);else{const vl=new Blob([Ka.blob],{type:"application/octet-stream;charset=UTF-8"});let Wl=URL.createObjectURL(vl),Wa="";(Ca=ve==null?void 0:ve.split("/"))==null||Ca.forEach((fa,va)=>{var ba;va===((ba=ve==null?void 0:ve.split("/"))==null?void 0:ba.length)-1&&(Wa=fa)}),(oe=Ka.blob)!=null&&oe.includes(".stl")&&(Wa=(Wa==null?void 0:Wa.replaceAll(">",""))+".urdf"),O.value=[{name:Wa,blobUrl:Wl}],B.value=!0}}else{const Pe=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ie=await el.axios.get(ve,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Pe.close()}),Ka=new Blob([ie.data],{type:"application/octet-stream;charset=UTF-8"});let vl=URL.createObjectURL(Ka),Wl="";(_e=ve==null?void 0:ve.split("/"))==null||_e.forEach((Wa,fa)=>{var va;fa===((va=ve==null?void 0:ve.split("/"))==null?void 0:va.length)-1&&(Wl=Wa)}),O.value=[{name:Wl,blobUrl:vl}],B.value=!0}(Je==null?void 0:Je.length)>0&&_.setBlobUrls(Je)},Ce=()=>{B.value=!1},Ea=ve=>{var pa,Te,Ia,ga;const Je=(Te=(pa=dl.safeClone(o.itemData))==null?void 0:pa.find(Ha=>(Ha==null?void 0:Ha.key)==="formContent"))==null?void 0:Te.contents,Ae=dl.safeClone(ve.content);let Xe={};Ae&&((Ia=Object.values(Ae))==null?void 0:Ia.length)>0&&((ga=Object.values(Ae))==null||ga.forEach((Ha,wa)=>{Xe[Je[wa].key]=Ha}));const ya={content:Xe,index:o==null?void 0:o.index,buttonName:ve==null?void 0:ve.buttonName};s("change",ya)};a.computed(()=>"http://222.92.178.198:62001");const ma=async ve=>{var We,Qe,Ca,oe,_e,Pe,ie,Ka,vl,Wl,Wa,fa,va,ba,Ye,Za;if(!ve)return;(Qe=(We=o==null?void 0:o.itemData)==null?void 0:We.find(Ee=>(Ee==null?void 0:Ee.key)==="parentFormPath"))==null||Qe.contents;let Je=J.value;(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(Ee=>{var me,Ra,qe,K;let Ke=(me=Ee==null?void 0:Ee.key)==null?void 0:me.split("/");return(o==null?void 0:o.compName)===(Ke==null?void 0:Ke[0])&&(Ra=c.value)!=null&&Ra.find(aa=>(aa==null?void 0:aa.prop)===(Ke==null?void 0:Ke[1]))&&(Ee.value=(K=(qe=c.value)==null?void 0:qe.find(aa=>(aa==null?void 0:aa.prop)===(Ke==null?void 0:Ke[1])))==null?void 0:K.value),Ee}),ge.setTableViewContents(Je));const Ae=dl.safeClone(o.itemData);let Xe=Ae==null?void 0:Ae.map(Ee=>{var Ke;return(Ee==null?void 0:Ee.key)==="formContent"&&((Ke=Ee.contents)==null||Ke.map((me,Ra)=>{var qe,K,aa,Ge,Be,Cl,tl,bl,Ga,Qa,Ta,pe,Da,Sl,Vl,Fl,nr,yr,Nl,tr,Nr;return me.type=(K=(qe=c.value)==null?void 0:qe.find(Ll=>(Ll==null?void 0:Ll.prop)===(me==null?void 0:me.prop)))==null?void 0:K.type,me.options=me!=null&&me.options?me.options:((Be=(Ge=(aa=me==null?void 0:me.key)==null?void 0:aa.split("$"))==null?void 0:Ge[1])==null?void 0:Be.length)>0?(Ga=(bl=Du((tl=(Cl=me==null?void 0:me.key)==null?void 0:Cl.split("$"))==null?void 0:tl[1]))==null?void 0:bl.split(","))==null?void 0:Ga.map(Ll=>({label:Ll,value:Ll})):[],(Qa=me==null?void 0:me.key)!=null&&Qa.includes("$")&&(me.key=(pe=(Ta=me==null?void 0:me.key)==null?void 0:Ta.split("$"))==null?void 0:pe[0]),me.signature=(Sl=(Da=c.value)==null?void 0:Da.find(Ll=>(Ll==null?void 0:Ll.prop)===(me==null?void 0:me.prop)))==null?void 0:Sl.signature,me.isLoginUser=(Fl=(Vl=c.value)==null?void 0:Vl.find(Ll=>(Ll==null?void 0:Ll.prop)===(me==null?void 0:me.prop)))==null?void 0:Fl.isLoginUser,me.value=(nr=Object.values(ve))==null?void 0:nr[Ra],me.isFormColHidden=(Nl=(yr=c.value)==null?void 0:yr.find(Ll=>(Ll==null?void 0:Ll.prop)===(me==null?void 0:me.prop)))==null?void 0:Nl.isFormColHidden,me.isHideInForm=(Nr=(tr=c.value)==null?void 0:tr.find(Ll=>(Ll==null?void 0:Ll.prop)===(me==null?void 0:me.prop)))==null?void 0:Nr.isHideInForm,me})),Ee}),ya=c.value,pa=(oe=(Ca=dl.safeClone(Xe))==null?void 0:Ca.find(Ee=>(Ee==null?void 0:Ee.key)==="formContent"))==null?void 0:oe.contents;if(ya=ya==null?void 0:ya.map(Ee=>{var Ke,me;return(Ee==null?void 0:Ee.type)==="Select"&&((Ke=Ee==null?void 0:Ee.allSelectionContents)==null?void 0:Ke.length)>0&&(Ee.contactValue=ve),Ee.value=(me=pa==null?void 0:pa.find((Ra,qe)=>((Ra==null?void 0:Ra.id)??qe)===(Ee==null?void 0:Ee.id)))==null?void 0:me.value,Ee}),!Q.value){s("contentChange",{contents:Xe,index:o.index});return}let Te="",Ia=(ie=(Pe=(_e=dl.safeClone(Xe))==null?void 0:_e.find(Ee=>(Ee==null?void 0:Ee.key)==="formContent"))==null?void 0:Pe.contents)==null?void 0:ie.find((Ee,Ke)=>{var me,Ra,qe;return(Ee==null?void 0:Ee.label)===Se.value||Ke.toString()===((qe=(Ra=(me=Se.value)==null?void 0:me.split("t"))==null?void 0:Ra[1])==null?void 0:qe.toString())}),ga=(Ka=Ia==null?void 0:Ia.optionUrl)==null?void 0:Ka.menuSelect,Ha=!0;if((Wa=(Wl=(vl=dl.safeClone(Xe))==null?void 0:vl.find(Ee=>(Ee==null?void 0:Ee.key)==="formContent"))==null?void 0:Wl.contents)==null||Wa.forEach(Ee=>{var Ke,me,Ra,qe,K,aa;Ha&&((Ra=(me=(Ke=Ee==null?void 0:Ee.optionUrl)==null?void 0:Ke.groupSelect)==null?void 0:me[1])!=null&&Ra.includes("["))&&(Te=(K=(qe=Ee==null?void 0:Ee.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:K[1],JSON.stringify(ga)===JSON.stringify((aa=Ee==null?void 0:Ee.optionUrl)==null?void 0:aa.menuSelect)&&(Ha=!1))}),(fa=Ia==null?void 0:Ia.optionUrl)!=null&&fa.menuSelect&&Q.value){let Ee=await vt(Ia),Ke,me=(va=Ia==null?void 0:Ia.optionUrl)==null?void 0:va.menuSelect;if(Ee==null||Ee.forEach(Ra=>{var qe,K,aa,Ge,Be,Cl,tl,bl,Ga,Qa;Te===((K=(qe=Ia==null?void 0:Ia.optionUrl)==null?void 0:qe.groupSelect)==null?void 0:K[1])&&((Be=(Ge=(aa=Ia==null?void 0:Ia.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])!=null&&Be.includes("["))&&((Qa=dl.safeClone(Ra))==null?void 0:Qa[(Ga=(bl=(tl=(Cl=Ia==null?void 0:Ia.optionUrl)==null?void 0:Cl.groupSelect)==null?void 0:tl[1])==null?void 0:bl.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])===(Ia==null?void 0:Ia.value)&&(Ke=Ra)}),Ke){let Ra=dl.safeClone(ya);Ra=Ra==null?void 0:Ra.map(K=>{var aa,Ge,Be,Cl,tl,bl,Ga,Qa,Ta,pe,Da;return(Ke!=null&&Ke[K==null?void 0:K.label]||Ke!=null&&Ke[(Cl=(Be=(Ge=(aa=K==null?void 0:K.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])==null?void 0:Be.replaceAll("[",""))==null?void 0:Cl.replaceAll("]","")])&&((Ga=(bl=(tl=K==null?void 0:K.optionUrl)==null?void 0:tl.groupSelect)==null?void 0:bl[1])!=null&&Ga.includes("["))&&me!=null&&me.every(Sl=>{var Vl,Fl;return(Fl=(Vl=K==null?void 0:K.optionUrl)==null?void 0:Vl.menuSelect)==null?void 0:Fl.includes(Sl)})&&(K.value=(Ke==null?void 0:Ke[K==null?void 0:K.label])||(Ke==null?void 0:Ke[(Da=(pe=(Ta=(Qa=K==null?void 0:K.optionUrl)==null?void 0:Qa.groupSelect)==null?void 0:Ta[1])==null?void 0:pe.replaceAll("[",""))==null?void 0:Da.replaceAll("]","")]),Array.isArray(K.value)&&K.value.every(Sl=>(Sl==null?void 0:Sl.url)&&(Sl==null?void 0:Sl.name))&&(K.type="Upload")),K}),Ra=Ra==null?void 0:Ra.map(K=>{var aa,Ge,Be;return(aa=K==null?void 0:K.optionUrl)!=null&&aa.oldMenuSelect&&(K.optionUrl.menuSelect=(Be=(Ge=dl.safeClone(K))==null?void 0:Ge.optionUrl)==null?void 0:Be.oldMenuSelect),K}),c.value=dl.safeClone(Ra);let qe=dl.safeClone(Ra);qe=qe==null?void 0:qe.map(K=>{var aa,Ge,Be,Cl,tl,bl;return(Ge=(aa=K==null?void 0:K.optionUrl)==null?void 0:aa.menuSelect)!=null&&Ge.some(Ga=>Ga==null?void 0:Ga.includes("["))&&(K.optionUrl.oldMenuSelect=(Cl=(Be=dl.safeClone(K))==null?void 0:Be.optionUrl)==null?void 0:Cl.menuSelect,K.optionUrl.menuSelect=(bl=(tl=K==null?void 0:K.optionUrl)==null?void 0:tl.menuSelect)==null?void 0:bl.map(Ga=>{var Qa,Ta,pe,Da;if(Ga!=null&&Ga.includes("[")){let Sl=(Ta=(Qa=Ga==null?void 0:Ga.replaceAll("[","").replaceAll("]",""))==null?void 0:Qa.split(":"))==null?void 0:Ta[1];Ga=(Da=(pe=dl.safeClone(Ra))==null?void 0:pe.find(Vl=>(Vl==null?void 0:Vl.label)===Sl))==null?void 0:Da.value}return Ga})),K}),c.value=qe}else c.value=ya;Xe=Xe==null?void 0:Xe.map(Ra=>{var qe;return(Ra==null?void 0:Ra.key)==="formContent"&&(Ra.contents=(qe=Ra.contents)==null?void 0:qe.map(K=>{var aa,Ge,Be,Cl;return K.value=((Ge=(aa=c.value)==null?void 0:aa.find(tl=>(tl==null?void 0:tl.label)===(K==null?void 0:K.key)))==null?void 0:Ge.value)??(K==null?void 0:K.value),K.type=((Cl=(Be=c.value)==null?void 0:Be.find(tl=>(tl==null?void 0:tl.prop)===(K==null?void 0:K.key)))==null?void 0:Cl.type)??(K==null?void 0:K.type),K})),Ra})}Q.value=!1,s("contentChange",{contents:Xe,index:o.index});let wa=[],ta=[];if((Ye=dl.safeClone((ba=Xe==null?void 0:Xe.find(Ee=>(Ee==null?void 0:Ee.key)==="formContent"))==null?void 0:ba.contents))==null||Ye.forEach(Ee=>{var Ke;Array.isArray(Ee==null?void 0:Ee.value)&&((Ke=Ee==null?void 0:Ee.value)!=null&&Ke.find(me=>{var Ra;return(Ra=me==null?void 0:me.url)==null?void 0:Ra.includes(".obj")}))&&(ta=Ee==null?void 0:Ee.value)}),(ta==null?void 0:ta.length)>0){const Ee=(Za=dl.safeClone(ta))==null?void 0:Za.filter(Ke=>{var me;return(me=Ke==null?void 0:Ke.url)==null?void 0:me.includes(".obj")});Ee==null||Ee.forEach(Ke=>{var Ra,qe,K,aa;const me=(Ra=ta==null?void 0:ta.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ke==null?void 0:Ke.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:Ra.map(Ge=>Ge==null?void 0:Ge.url);wa.push({objUrl:Ke==null?void 0:Ke.url,mtlUrls:((qe=ta==null?void 0:ta.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ke==null?void 0:Ke.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:qe.length)===1?(aa=(K=ta==null?void 0:ta.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ke==null?void 0:Ke.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:K[0])==null?void 0:aa.url:me})}),_.setObjUrl(wa)}},Pa=(ve,Je,Ae)=>{let Xe="";const ya=Je==null?void 0:Je.map(pa=>{var Te;return(Te=pa==null?void 0:pa.value)==null?void 0:Te.pageData});return ya==null||ya.forEach(pa=>{var Te;(pa==null?void 0:pa.name)===(ve==null?void 0:ve[0])&&((Te=pa==null?void 0:pa.compData)==null||Te.forEach(Ia=>{var ga;(Ia==null?void 0:Ia.key)==="formContent"&&((ga=Ia==null?void 0:Ia.contents)==null||ga.forEach(Ha=>{var wa;(Ha==null?void 0:Ha.prop)===(ve==null?void 0:ve[1])&&(Xe=(Ha==null?void 0:Ha.value)===""?ca.judgeContents((wa=dl.safeClone(Ha))==null?void 0:wa.optionUrl,Ae):Ha==null?void 0:Ha.value)}))}))}),Xe},Fa=(ve,Je,Ae,Xe)=>{var Ia,ga;let ya="",pa="";(Ia=dl.safeClone(Je))==null||Ia.forEach((Ha,wa)=>{Ha!=null&&Ha.includes("[")?pa=pa+Sa.value+ve[wa]:pa=pa===""?pa+Ha:pa+"/"+Ha});let Te=(ga=Xe[pa])==null?void 0:ga.map(Ha=>{var wa;return(wa=Ha==null?void 0:Ha.value)==null?void 0:wa.pageData});return Te==null||Te.forEach(Ha=>{var wa;(Ha==null?void 0:Ha.name)===(Ae==null?void 0:Ae[0])&&((wa=Ha==null?void 0:Ha.compData)==null||wa.forEach(ta=>{var We;(ta==null?void 0:ta.key)==="formContent"&&((We=ta==null?void 0:ta.contents)==null||We.forEach(Qe=>{(Qe==null?void 0:Qe.prop)===(Ae==null?void 0:Ae[1])&&(ya=Qe==null?void 0:Qe.value)}))}))}),ya};return a.watch(()=>o.itemData,async()=>{var We,Qe,Ca,oe,_e,Pe,ie,Ka,vl,Wl,Wa,fa,va,ba,Ye,Za,Ee,Ke,me,Ra,qe,K,aa;const ve=(We=o.itemData)==null?void 0:We.find(Ge=>(Ge==null?void 0:Ge.key)==="formContent"),Je=(Qe=dl.safeClone(o.itemData))==null?void 0:Qe.find(Ge=>(Ge==null?void 0:Ge.key)==="formButton"),Ae=(Ca=dl.safeClone(o.itemData))==null?void 0:Ca.find(Ge=>(Ge==null?void 0:Ge.key)==="formFlex"),Xe=(oe=dl.safeClone(o.itemData))==null?void 0:oe.find(Ge=>(Ge==null?void 0:Ge.key)==="formWrap"),ya=(_e=dl.safeClone(o.itemData))==null?void 0:_e.find(Ge=>(Ge==null?void 0:Ge.key)==="enableWrap"),pa=(Pe=dl.safeClone(o.itemData))==null?void 0:Pe.find(Ge=>(Ge==null?void 0:Ge.key)==="textSize"),Te=(ie=dl.safeClone(o.itemData))==null?void 0:ie.find(Ge=>(Ge==null?void 0:Ge.key)==="textRGBA"),Ia=(Ka=dl.safeClone(o.itemData))==null?void 0:Ka.find(Ge=>(Ge==null?void 0:Ge.key)==="backGround"),ga=(vl=dl.safeClone(o.itemData))==null?void 0:vl.find(Ge=>(Ge==null?void 0:Ge.key)==="backGroundImage");(Xe==null?void 0:Xe.contents)==="纵向"?w.value=!1:w.value=!0;const Ha=Number(pa==null?void 0:pa.contents);g.value=Number.isNaN(Ha)?void 0:Ha,b.value=Te==null?void 0:Te.contents,j.value=Ia==null?void 0:Ia.contents,V.value=ga==null?void 0:ga.contents;const wa=ya==null?void 0:ya.contents;if(wa===void 0?S.value=no.BLOCK:typeof wa=="boolean"?S.value=wa?no.ORDINARY:no.BLOCK:S.value=wa,G.value=typeof(Ae==null?void 0:Ae.contents)!="boolean"?!(!(Ae!=null&&Ae.contents)===""||((Wl=Ae==null?void 0:Ae.contents)==null?void 0:Wl.toUpperCase())==="VERTICAL"):Ae==null?void 0:Ae.contents,((Wa=ve==null?void 0:ve.contents)==null?void 0:Wa.length)>0&&Array.isArray(ve==null?void 0:ve.contents)){let Ge=o.allMapContents;const Be=(va=(fa=dl.safeClone(ve))==null?void 0:fa.contents)==null?void 0:va.map((pe,Da)=>{var Er,zr,Mr,Dr,Vr,Or,sr,gn,Gr,rn,Nn,bn,vn;let Sl=(pe==null?void 0:pe.label)??(pe==null?void 0:pe.key)??"";pe==null||pe.type;let Vl=(pe==null?void 0:pe.options)??[];if((Er=pe==null?void 0:pe.key)!=null&&Er.includes("$")&&(Sl=(zr=dl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:zr[0],((Dr=(Mr=dl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:Mr[1])==null?void 0:Dr.length)>0)){const[vr,Hl]=(Or=(Vr=dl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:Vr[1])==null?void 0:Or.split(/[()]/);(sr=ca.FormType.find(dr=>(dr==null?void 0:dr.key)===vr))==null||sr.value,((gn=Hl==null?void 0:Hl.split(","))==null?void 0:gn.length)>0&&(Vl=(Gr=Hl==null?void 0:Hl.split(","))==null?void 0:Gr.map(dr=>({label:dr,value:dr})))}let Fl=pe==null?void 0:pe.options;((rn=pe==null?void 0:pe.optionUrl)==null?void 0:rn.selectRelateType)==="自定义绑定"&&(Fl=(bn=(Nn=pe==null?void 0:pe.optionUrl)==null?void 0:Nn.defaultSelect)==null?void 0:bn.map(vr=>({label:vr,value:vr})));let nr=(pe==null?void 0:pe.menuPath)??[],yr=(pe==null?void 0:pe.groups)??[],Nl=(pe==null?void 0:pe.columns)??[],tr=!1,Nr=(pe==null?void 0:pe.isFormColHidden)??!1,Ll="",lr=pe!=null&&pe.value?pe.value:(Fl==null?void 0:Fl.length)>0?(vn=Fl==null?void 0:Fl[0])==null?void 0:vn.value:(pe==null?void 0:pe.value)??"",Qr=!1,Ir="Input";return((Fl==null?void 0:Fl.length)>0||(nr==null?void 0:nr.length)>0)&&(Ir="Select"),(Array.isArray(Ll)&&(Ll!=null&&Ll.every(vr=>(vr==null?void 0:vr.name)&&(vr==null?void 0:vr.url)))||Array.isArray(lr)&&(lr!=null&&lr.every(vr=>(vr==null?void 0:vr.name)&&(vr==null?void 0:vr.url))))&&(Ir="upload"),pe!=null&&pe.isMainUrl&&(Ir="Url"),{label:Sl??"",name:Sl??"t"+Da,prop:Sl??dl.safeClone(pe==null?void 0:pe.key),type:(pe==null?void 0:pe.type)??Ir,value:(pe==null?void 0:pe.type)==="Date"&&lr===""?new Date:lr,id:(pe==null?void 0:pe.id)??Da,contents:(Fl==null?void 0:Fl.length)>0?Fl:Vl??[],width:(pe==null?void 0:pe.width)??1,isLoginUser:tr,config:pe==null?void 0:pe.config,optionUrl:(pe==null?void 0:pe.optionUrl)??pe,isFormColHidden:Nr,isHideInForm:(pe==null?void 0:pe.isHideInForm)??!1,signature:Qr,isMain:pe==null?void 0:pe.isMain,required:(pe==null?void 0:pe.required)??!1,isMainUrl:pe==null?void 0:pe.isMainUrl,operable:(pe==null?void 0:pe.operable)??!1,disabled:(pe==null?void 0:pe.disabled)??!1,isSync:pe==null?void 0:pe.isSync,menus:nr,groups:yr,words:Nl,allSelectionContents:pe==null?void 0:pe.allContents,filterContent:pe==null?void 0:pe.filterContents}}),Cl=Be==null?void 0:Be.map(pe=>pe==null?void 0:pe.value);let tl="";Cl==null||Cl.forEach(pe=>{pe!==""&&pe!==void 0&&(tl=tl===""?pe:tl+"/"+pe)}),C.setSelectArray(Cl),C.setSelectString(tl);let bl=(ba=dl.safeClone(Be))==null?void 0:ba.map(pe=>(pe!=null&&pe.value&&ca.IsJson(pe==null?void 0:pe.value)&&Array.isArray(JSON.parse(pe==null?void 0:pe.value))&&(pe.value=JSON.parse(pe.value)),pe)),Ga={};bl==null||bl.forEach(pe=>{Ga[pe.label]=pe==null?void 0:pe.value}),bl=bl==null?void 0:bl.map(pe=>{var Da,Sl,Vl,Fl,nr,yr,Nl,tr,Nr;if((pe==null?void 0:pe.type)==="Select"&&((Da=pe==null?void 0:pe.allSelectionContents)==null?void 0:Da.length)>0&&(pe.contactValue=Ga),(Vl=(Sl=pe==null?void 0:pe.optionUrl)==null?void 0:Sl.menuSelect)!=null&&Vl.some(Ll=>Ll==null?void 0:Ll.includes("["))){let Ll="";pe.optionUrl.oldMenuSelect=(nr=(Fl=dl.safeClone(pe))==null?void 0:Fl.optionUrl)==null?void 0:nr.menuSelect,pe.optionUrl.menuSelect=(Nl=(yr=pe==null?void 0:pe.optionUrl)==null?void 0:yr.menuSelect)==null?void 0:Nl.map(lr=>{var Qr,Ir,Ar,Er,zr,Mr;if(lr!=null&&lr.includes("[")){let Dr=(Ir=(Qr=lr==null?void 0:lr.replaceAll("[","").replaceAll("]",""))==null?void 0:Qr.split(":"))==null?void 0:Ir[1];Ll=Pa((Ar=lr==null?void 0:lr.replaceAll("[","").replaceAll("]",""))==null?void 0:Ar.split(":"),Ge==null?void 0:Ge[De.value],Ge),lr=((zr=(Er=dl.safeClone(bl))==null?void 0:Er.find(Vr=>(Vr==null?void 0:Vr.label)===Dr))==null?void 0:zr.value)||Pa((Mr=lr==null?void 0:lr.replaceAll("[","").replaceAll("]",""))==null?void 0:Mr.split(":"),Ge==null?void 0:Ge[De.value],Ge)}return lr}),Ll!==""&&pe.value===""&&(pe.value=Fa(pe.optionUrl.menuSelect,pe.optionUrl.oldMenuSelect,(tr=pe==null?void 0:pe.optionUrl)==null?void 0:tr.groupSelect,Ge),Array.isArray(pe.value)&&((Nr=pe.value)!=null&&Nr.every(lr=>lr==null?void 0:lr.url))&&(pe.type="UPLOAD"))}return pe}),c.value=bl,ke.value=((Ye=c.value)==null?void 0:Ye.every(pe=>pe==null?void 0:pe.disabled))||ne.value===De.value,re.value=(Za=c.value)==null?void 0:Za.every(pe=>pe==null?void 0:pe.operable),Ve.value=(Ee=c.value)==null?void 0:Ee.map(pe=>pe==null?void 0:pe.label);let Qa=[],Ta=[];if((Ke=dl.safeClone(c.value))==null||Ke.forEach(pe=>{var Da;Array.isArray(pe==null?void 0:pe.value)&&((Da=pe==null?void 0:pe.value)!=null&&Da.find(Sl=>{var Vl;return(Vl=Sl==null?void 0:Sl.url)==null?void 0:Vl.includes(".obj")}))&&(Ta=pe==null?void 0:pe.value)}),(Ta==null?void 0:Ta.length)>0){const pe=(me=dl.safeClone(Ta))==null?void 0:me.filter(Da=>{var Sl;return(Sl=Da==null?void 0:Da.url)==null?void 0:Sl.includes(".obj")});pe==null||pe.forEach(Da=>{var Vl,Fl,nr,yr;const Sl=(Vl=Ta==null?void 0:Ta.filter(Nl=>{var tr;return(Nl==null?void 0:Nl.name)===(Da==null?void 0:Da.name)&&((tr=Nl==null?void 0:Nl.url)==null?void 0:tr.includes(".mtl"))}))==null?void 0:Vl.map(Nl=>Nl==null?void 0:Nl.url);Qa.push({objUrl:Da==null?void 0:Da.url,mtlUrls:((Fl=Ta==null?void 0:Ta.filter(Nl=>{var tr;return(Nl==null?void 0:Nl.name)===(Da==null?void 0:Da.name)&&((tr=Nl==null?void 0:Nl.url)==null?void 0:tr.includes(".mtl"))}))==null?void 0:Fl.length)===1?(yr=(nr=Ta==null?void 0:Ta.filter(Nl=>{var tr;return(Nl==null?void 0:Nl.name)===(Da==null?void 0:Da.name)&&((tr=Nl==null?void 0:Nl.url)==null?void 0:tr.includes(".mtl"))}))==null?void 0:nr[0])==null?void 0:yr.url:Sl})}),_.setObjUrl(Qa)}(Ra=dl.safeClone(c.value))==null||Ra.forEach(pe=>{var Da,Sl,Vl,Fl,nr,yr,Nl,tr,Nr,Ll,lr,Qr,Ir;if((Sl=(Da=pe==null?void 0:pe.value)==null?void 0:Da.toString())!=null&&Sl.includes(".stl")||(Fl=(Vl=pe==null?void 0:pe.value)==null?void 0:Vl.toString())!=null&&Fl.includes(".STL")||(yr=(nr=pe==null?void 0:pe.value)==null?void 0:nr.toString())!=null&&yr.includes(".obj")||(tr=(Nl=pe==null?void 0:pe.value)==null?void 0:Nl.toString())!=null&&tr.includes(".mtl")||(Ll=(Nr=pe==null?void 0:pe.value)==null?void 0:Nr.toString())!=null&&Ll.includes(".urdf")){let Ar={},Er=[],zr;Array.isArray(pe==null?void 0:pe.value)?zr=pe==null?void 0:pe.value:zr=(lr=pe==null?void 0:pe.value)==null?void 0:lr.split(","),zr==null||zr.forEach(Mr=>{Mr.includes(".mtl")?Er.push(Mr):Ar.blob=Ar.blob==="undefined"?Mr:Ar.blob+","+Mr}),(Er==null?void 0:Er.length)>0&&(Ar.mtlBlobs=Er),(Ir=(Qr=Object.values(Ar))==null?void 0:Qr[0])!=null&&Ir.includes("http:")}})}else c.value=[];let ta=J.value;if((ta==null?void 0:ta.length)>0&&(ta=ta==null?void 0:ta.map(Ge=>{var Cl,tl,bl,Ga;let Be=(Cl=Ge==null?void 0:Ge.key)==null?void 0:Cl.split("/");return(o==null?void 0:o.compName)===(Be==null?void 0:Be[0])&&(tl=c.value)!=null&&tl.find(Qa=>(Qa==null?void 0:Qa.prop)===(Be==null?void 0:Be[1]))&&(Ge.value=(Ga=(bl=c.value)==null?void 0:bl.find(Qa=>(Qa==null?void 0:Qa.prop)===(Be==null?void 0:Be[1])))==null?void 0:Ga.value),Ge}),ge.setTableViewContents(ta)),o!=null&&o.formRules)u.value=o==null?void 0:o.formRules;else{let Ge={};(qe=dl.safeClone(c).value)==null||qe.forEach(Be=>{((Be==null?void 0:Be.isMain)===!0||(Be==null?void 0:Be.required)===!0)&&(Ge[(Be==null?void 0:Be.prop)??(Be==null?void 0:Be.name)]=[{required:!0,message:`${(Be==null?void 0:Be.label)||(Be==null?void 0:Be.prop)||(Be==null?void 0:Be.name)}不能为空`}])}),u.value=Ge}if(((K=Je==null?void 0:Je.contents)==null?void 0:K.length)>0){const Ge=[];(aa=Je==null?void 0:Je.contents)==null||aa.forEach((Be,Cl)=>{(Be==null?void 0:Be.label)!==""&&Ge.push({label:(Be==null?void 0:Be.label)??"",id:(Be==null?void 0:Be.id)??Cl,type:(Be==null?void 0:Be.type)??"",background:Be==null?void 0:Be.background})}),q.value=Ge}else q.value=[]},{deep:!0,immediate:!0}),a.watch(()=>ne.value,ve=>{ke.value=ve===De.value},{immediate:!0}),(ve,Je)=>{var Ia;const Ae=a.resolveComponent("svg-icon"),Xe=a.resolveComponent("el-switch"),ya=a.resolveComponent("el-checkbox"),pa=a.resolveComponent("el-popover"),Te=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",x3,[S.value===a.unref(no).TEXT?(a.openBlock(),a.createBlock(kc,{key:0,itemData:l.itemData,compName:l.compName,fields:c.value,textSize:g.value,textColor:b.value,backGround:j.value,backGroundImage:V.value,disabled:ke.value||la(),"onUpdate:backGroundImage":ra},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):S.value===a.unref(no).BLOCK?(a.openBlock(),a.createBlock(of,{key:1,items:(Ia=c.value)==null?void 0:Ia.map(ga=>({label:ga!=null&&ga.isHideInForm?"":ga==null?void 0:ga.label,value:ga==null?void 0:ga.value,width:(ga==null?void 0:ga.width)??1,field:ga})),textSize:g.value,textColor:b.value,backGround:j.value,backGroundImage:V.value,disabled:ke.value||la(),"onUpdate:backGroundImage":ra},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":S.value===a.unref(no).ORDINARY})},[a.createVNode(dl.ssForm,{rowContents:c.value,formRules:u.value,buttonValue:q.value,isRowFlex:!1,isEnableWrap:!0,textSize:g.value,textColor:b.value,backGround:j.value,backGroundImage:V.value,onOnButtonClick:Ea,onChange:ma,formDisabled:ke.value||la(),formLabelsOperable:re.value,isButtonRow:w.value,onPreview:Le,onBlurChange:xa,onHandleColEditChange:X,onHandleColTypeChange:te,onRouteUrl:qa,onClickTrigger:Xa,"onUpdate:backGroundImage":ra},{operateCol:a.withCtx(({renderColumns:ga,formDisabled:Ha,formLabelsOperable:wa})=>[a.createVNode(pa,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:$e},{reference:a.withCtx(()=>[a.createElementVNode("span",w3,[a.createVNode(Ae,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",_3,[Je[1]||(Je[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(Xe,{"model-value":Ha,"active-text":"禁用","inactive-text":"",onChange:Fe,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(Xe,{"model-value":wa,"active-text":"编辑所有标签","inactive-text":"",onChange:ze},null,8,["model-value"]),Je[2]||(Je[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(Te,{modelValue:Ve.value,"onUpdate:modelValue":Je[0]||(Je[0]=ta=>Ve.value=ta),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:D,onChange:Ze},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ga,ta=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ta.label},[a.createVNode(ya,{value:ta.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(ta.label),1)]),_:2},1032,["value"]),a.createVNode(pa,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(Ae,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var We;return[a.createElementVNode("div",C3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((We=Object.keys(ta))==null?void 0:We.filter(Qe=>{var Ca;return(Ca=_a.value)==null?void 0:Ca.find(oe=>(oe==null?void 0:oe.value)===Qe)}),Qe=>{var Ca,oe;return a.openBlock(),a.createElementBlock("div",{key:Qe},[a.createVNode(dl._sfc_main$1,{value:ta==null?void 0:ta[Qe],"active-text":(oe=(Ca=_a.value)==null?void 0:Ca.find(_e=>(_e==null?void 0:_e.value)===Qe))==null?void 0:oe.label,inactiveText:"",onChange:_e=>ce(_e,Qe,ta)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",S3,[a.createVNode(Ae,{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)),B.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:3,fileDataList:O.value,onDestroy:Ce},null,8,["fileDataList"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(xr.ssDialog,{key:4,visible:m.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(wi.ThreeViewerHost,{files:v.value,onGetAnimationData:ve.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},ys=Jl._export_sfc(E3,[["__scopeId","data-v-14c62655"]]),Ai=a.ref(0),xc=l=>{var n;return!l||(l==null?void 0:l.length)===0?[]:(n=L.cloneDeep(l))==null?void 0:n.map(o=>(Ai.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Ai.value,children:xc(o==null?void 0:o.children)},o))},D3=l=>{var r;return(r=L.cloneDeep(l))==null?void 0:r.map(o=>(Ai.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Ai.value,children:xc(o==null?void 0:o.children)},o))},wc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===n)?(r=L.cloneDeep(l))==null?void 0:r.filter(s=>(s==null?void 0:s.id)!==n):(l=l==null?void 0:l.map(o=>(o.children=wc(o==null?void 0:o.children,n),o)),l)},_c=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=L.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s=n),s)):(l=l==null?void 0:l.map(o=>(o.children=_c(o==null?void 0:o.children,n),o)),l)},Cc=(l,n)=>{var r;return l!=null&&l.find(o=>{var s;return(o==null?void 0:o.id)===((s=n==null?void 0:n.contents)==null?void 0:s.id)})?(r=L.cloneDeep(l))==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.id)===((c=n==null?void 0:n.contents)==null?void 0:c.id)&&(s=n==null?void 0:n.contents),s}):(l=l==null?void 0:l.map(o=>(o.children=Cc(o==null?void 0:o.children,n),o)),l)},Sc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=L.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(n.contents)),s)):(l=l==null?void 0:l.map(o=>(o.children=Sc(o==null?void 0:o.children,n),o)),l)},ar=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],B3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],N3=[{label:"新增",value:"add"}],Ln=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:N3},{key:"background",label:"按钮背景色",type:"Color"}],Rn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:B3},{key:"textColor",label:"按钮颜色",type:"Color"}],T3={class:"table-header-child"},A3={class:"table-header-child-main"},z3={class:"table-header-child-content"},M3={class:"table-header-child-content-item"},I3={class:"fix-button"},O3={key:0},L3={class:"form-content"},R3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref(""),m=ca.useTableComp(L.pinia),{tableIndex:p}=L.storeToRefs(m);a.ref(0);const v=a.ref(""),y=a.ref([]),u=a.ref([]),w=C=>{var S;s.value=!0;let _=[];ar==null||ar.forEach(g=>{let b=L.cloneDeep(p.value)+1;m.setTableIndex(b),_.push({label:g==null?void 0:g.label,name:g==null?void 0:g.label,type:g.type,value:C[g.key],id:p.value,contents:g==null?void 0:g.options})}),C!=null&&C.children&&((S=C==null?void 0:C.children)==null?void 0:S.length)>0&&_.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,y.value=_,u.value=_},B=C=>{o("fixChange",L.cloneDeep(C))},R=C=>{o("deleteChange",L.cloneDeep(C))},E=C=>{s.value=!0;let _=[];ar==null||ar.forEach(S=>{let g=L.cloneDeep(p.value)+1;m.setTableIndex(g),_.push({label:S==null?void 0:S.label,name:S==null?void 0:S.label,type:S.type,value:"",id:p.value,contents:S==null?void 0:S.options})}),c.value=C==null?void 0:C.id,y.value=_,u.value=_},q=C=>{let _=L.cloneDeep(u.value);_=_==null?void 0:_.map(S=>(S.children||(S.value=C==null?void 0:C[S.name]),S)),u.value=_},O=()=>{var _,S;y.value=u.value;let C={};if(v.value!=="")C.id=v.value,(_=y.value)==null||_.forEach(g=>{const b=ar==null?void 0:ar.find(j=>(j==null?void 0:j.label)===(g==null?void 0:g.label));b?C[b.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"fix"});else{let g=L.cloneDeep(p.value)+1;m.setTableIndex(g),C.id="id"+p.value,(S=y.value)==null||S.forEach(b=>{const j=ar==null?void 0:ar.find(V=>(V==null?void 0:V.label)===(b==null?void 0:b.label));j?C[j.key]=b.value:b!=null&&b.children&&b.children.length>0&&(C.children=b.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},M=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},Z=C=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(C,_)=>{const S=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",T3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(g,b)=>(a.openBlock(),a.createElementBlock("div",A3,[a.createElementVNode("div",z3,[a.createElementVNode("div",M3,a.toDisplayString(g.label),1),a.createElementVNode("div",I3,[a.createVNode(S,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>E(g)},null,8,["onClick"]),a.createVNode(S,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>w(g)},null,8,["onClick"]),a.createVNode(S,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>Z(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",O3,[a.createVNode(Ec,{tableChildContents:g==null?void 0:g.children,onDeleteChange:R,onFixChange:B},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:M,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",L3,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:q},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:M,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:O},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},$3=Jl._export_sfc(R3,[["__scopeId","data-v-e0fef72d"]]),V3={class:"table-header-child"},P3={class:"table-header-child-main"},F3={class:"table-header-child-content"},j3={class:"table-header-child-content-item"},H3={class:"fix-button"},U3={key:0},q3={class:"form-content"},W3={class:"dialog-footer"},K3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref(""),m=ca.useTableComp(L.pinia),{tableIndex:p}=L.storeToRefs(m),v=a.ref(""),y=a.ref([]),u=a.ref([]),w=C=>{o("fixChange",L.cloneDeep(C))},B=C=>{var S;s.value=!0;let _=[];ar==null||ar.forEach(g=>{let b=L.cloneDeep(p.value)+1;m.setTableIndex(b),_.push({label:g==null?void 0:g.label,name:g==null?void 0:g.label,type:g.type,value:C[g.key],id:p.value,contents:g==null?void 0:g.options})}),C!=null&&C.children&&((S=C==null?void 0:C.children)==null?void 0:S.length)>0&&_.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,y.value=_,u.value=_},R=C=>{s.value=!0;let _=[];ar==null||ar.forEach(S=>{let g=L.cloneDeep(p.value)+1;m.setTableIndex(g),_.push({label:S==null?void 0:S.label,name:S==null?void 0:S.label,type:S.type,value:"",id:p.value,contents:S==null?void 0:S.options})}),c.value=C==null?void 0:C.id,y.value=_,u.value=_},E=C=>{let _=L.cloneDeep(u.value);_=_==null?void 0:_.map(S=>(S.children||(S.value=C==null?void 0:C[S.name]),S)),u.value=_},q=()=>{var _,S;y.value=u.value;let C={};if(v.value!=="")C.id=v.value,(_=y.value)==null||_.forEach(g=>{const b=ar==null?void 0:ar.find(j=>(j==null?void 0:j.label)===(g==null?void 0:g.label));b?C[b.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"fix"});else{let g=L.cloneDeep(p.value)+1;m.setTableIndex(g),C.id="idChild"+p.value,(S=y.value)==null||S.forEach(b=>{const j=ar==null?void 0:ar.find(V=>(V==null?void 0:V.label)===(b==null?void 0:b.label));j?C[j.key]=b.value:b!=null&&b.children&&b.children.length>0&&(C.children=b.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},O=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},M=C=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Z=C=>{o("deleteChange",C)};return(C,_)=>{const S=a.resolveComponent("svg-icon"),g=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",V3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(b,j)=>(a.openBlock(),a.createElementBlock("div",P3,[a.createElementVNode("div",F3,[a.createElementVNode("div",j3,a.toDisplayString(b.label),1),a.createElementVNode("div",H3,[a.createVNode(S,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>R(b)},null,8,["onClick"]),a.createVNode(S,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>B(b)},null,8,["onClick"]),a.createVNode(S,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>M(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(a.openBlock(),a.createElementBlock("div",U3,[a.createVNode($3,{tableChildContents:b==null?void 0:b.children,onDeleteChange:Z,onFixChange:w},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:O,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",q3,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:E},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",W3,[a.createVNode(g,{onClick:O,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>_[0]||(_[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(g,{class:"ok-button button",onClick:q,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Ec=Jl._export_sfc(K3,[["__scopeId","data-v-ebd68fa1"]]),G3={class:"table-operate-content"},Y3={class:"table-operate-item"},J3={class:"operate-title"},X3={class:"operate-content"},Z3={class:"fix-content"},Q3={class:"fix-content-label"},e1={class:"fix-button"},a1={key:0},l1={class:"operate-title"},r1={class:"operate-content"},n1={class:"fix-content"},o1={class:"fix-content-label"},i1={class:"fix-button"},s1={class:"operate-title"},c1={class:"operate-content"},u1={class:"fix-content"},d1={class:"fix-content-label"},p1={class:"fix-button"},f1={class:"operate-title"},h1={class:"operate-content"},v1={class:"fix-content"},m1={class:"fix-content-label"},y1={class:"fix-button"},g1={class:"operate-content"},b1={style:{display:"flex","justify-content":"space-between"}},k1={class:"form-content"},x1={class:"dialog-footer"},w1={class:"form-content"},_1={class:"dialog-footer"},C1={class:"form-content"},S1={class:"dialog-footer"},E1={class:"form-content"},D1={class:"dialog-footer"},B1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref(!1),m=a.ref(!1),p=a.ref([]),v=a.ref(!1),y=a.ref([]),u=a.ref(!1),w=a.ref([]),B=a.ref(""),R=a.ref(""),E=a.ref([]),q=a.ref([]),O=a.ref([]),M=a.ref([]),Z=a.ref(!1),C=a.ref([]),_=a.ref([]),S=a.ref(0),g=a.ref([]),b=a.ref([]),j=a.ref([]),V=()=>{Z.value=!0;let F=[];Ln==null||Ln.forEach(P=>{S.value++,F.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:(P==null?void 0:P.key)==="background"?"var(--ssComponent-primary-color)":"",id:S.value,contents:P==null?void 0:P.options})}),C.value=F,_.value=F},G=()=>{var P,X,te;m.value=!0;let F=[];(te=(X=(P=ca.FormContent)==null?void 0:P.find(ce=>(ce==null?void 0:ce.key)==="Input"))==null?void 0:X.value)==null||te.forEach(ce=>{S.value++,F.push({label:ce==null?void 0:ce.label,name:(ce==null?void 0:ce.name)||(ce==null?void 0:ce.label),type:ce.type,value:(ce==null?void 0:ce.label)==="类型"?"Input":"",id:S.value,contents:ce==null?void 0:ce.options})}),g.value=F,b.value=F},fe=F=>{F||(g.value=b.value)},Ne=async F=>{var P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa;if((F==null?void 0:F.类型)!==((X=(P=b.value)==null?void 0:P.find(ve=>(ve==null?void 0:ve.label)==="类型"))==null?void 0:X.value)){let ve=[],Je=await((xa=(ce=(te=ca.FormContent)==null?void 0:te.find(Ae=>(Ae==null?void 0:Ae.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:ce.value)==null?void 0:xa.value)?await((ma=(Ea=(Ce=ca.FormContent)==null?void 0:Ce.find(Ae=>(Ae==null?void 0:Ae.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:Ea.value)==null?void 0:ma.value):(Le=(ra=ca.FormContent)==null?void 0:ra.find(Ae=>(Ae==null?void 0:Ae.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:Le.value;if(Je==null||Je.forEach(Ae=>{S.value++,ve.push({label:Ae==null?void 0:Ae.label,name:(Ae==null?void 0:Ae.name)||(Ae==null?void 0:Ae.label),type:Ae.type,value:Ae!=null&&Ae.属性名?(F==null?void 0:F.prop)||(F==null?void 0:F.name)||(F==null?void 0:F.label):(F==null?void 0:F[Ae.label])??"",id:S.value,contents:Ae==null?void 0:Ae.options,prop:(Ae==null?void 0:Ae.prop)||(Ae==null?void 0:Ae.name)||(Ae==null?void 0:Ae.label)})}),F!=null&&F.菜单选项&&((Pa=F==null?void 0:F.菜单选项)==null?void 0:Pa.length)>0){const Ae=await ca.menuToContentType(F==null?void 0:F.菜单选项);ve=ve==null?void 0:ve.map(Xe=>((Xe==null?void 0:Xe.name)==="组信息选项"&&(Xe.contents=Ae),Xe))}b.value=await ca.selectToBase(L.cloneDeep(ve)),g.value=await ca.selectToBase(L.cloneDeep(ve))}else{let ve=L.cloneDeep(g.value);if(ve=ve==null?void 0:ve.map(Je=>(Je.value=F==null?void 0:F[Je.name],Je)),F!=null&&F.菜单选项&&((Fa=F==null?void 0:F.菜单选项)==null?void 0:Fa.length)>0){const Je=await ca.menuToContentType(F==null?void 0:F.菜单选项);ve=ve==null?void 0:ve.map(Ae=>((Ae==null?void 0:Ae.name)==="组信息选项"&&(Ae.contents=Je),Ae))}ve=ca.formToOptionsContents(ve),b.value=await ca.selectToBase(L.cloneDeep(ve))}},Se=async F=>{await Ne(F),g.value=b.value},Q=(F,P)=>{if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="selectRelateType"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.selectRelateType)||P[F.key]}if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="menuSelect"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.menuSelect)||P[F.key]}if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="groupSelect"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.groupSelect)||P[F.key]}if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="originalContent")return(P==null?void 0:P.value)||P[F.key];if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="multiple"){const X=P[F.key];return Gs(X)?X:F.default}return(F==null?void 0:F.label)==="类型"&&P[F.key]===""?"Input":(F==null?void 0:F.key)==="isFormColHidden"&&!P[F.key]?!1:P[F.key]},ge=async F=>{var te,ce,xa,ra,Le,Ce,Ea,ma,Pa;m.value=!0;let P=[];const X=await((xa=(ce=(te=ca.FormContent)==null?void 0:te.find(Fa=>(Fa==null?void 0:Fa.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:ce.value)==null?void 0:xa.value)?await((ma=(Ea=(Ce=ca.FormContent)==null?void 0:Ce.find(Fa=>(Fa==null?void 0:Fa.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:Ea.value)==null?void 0:ma.value):(Le=(ra=ca.FormContent)==null?void 0:ra.find(Fa=>(Fa==null?void 0:Fa.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:Le.value;if(X==null||X.forEach(Fa=>{S.value++,P.push({label:Fa==null?void 0:Fa.label,name:(Fa==null?void 0:Fa.name)||(Fa==null?void 0:Fa.label),type:Fa.type,value:(Fa==null?void 0:Fa.label)==="属性名"?(F==null?void 0:F.prop)||(F==null?void 0:F.name)||(F==null?void 0:F.label):Q(Fa,F),id:S.value,contents:Fa==null?void 0:Fa.options})}),F!=null&&F.menuSelect&&((Pa=F==null?void 0:F.menuSelect)==null?void 0:Pa.length)>0){const Fa=await ca.menuToContentType(F==null?void 0:F.menuSelect);P=P==null?void 0:P.map(ve=>((ve==null?void 0:ve.name)==="组信息选项"&&(ve.contents=Fa),ve))}B.value=F==null?void 0:F.id,g.value=await ca.selectToBase(ca.formToOptionsContents(P)),b.value=await ca.selectToBase(ca.formToOptionsContents(P))},J=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;j.value=(P=L.cloneDeep(j.value))==null?void 0:P.filter(te=>(te==null?void 0:te.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(te=>((te==null?void 0:te.key)==="tableToForm"&&(te.contents=j.value),te))),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ue=()=>{m.value=!1,g.value=[],B.value=""},Ue=async()=>{var te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa;g.value=b.value;let F={};B.value!==""?F.id=B.value:(S.value++,F.id="id"+S.value);let P=await((xa=(ce=(te=ca.FormContent)==null?void 0:te.find(ve=>{var Je,Ae;return(ve==null?void 0:ve.key)===(((Ae=(Je=g.value)==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.label)==="类型"))==null?void 0:Ae.value)??"label")}))==null?void 0:ce.value)==null?void 0:xa.value)??((Le=(ra=ca.FormContent)==null?void 0:ra.find(ve=>{var Je,Ae;return(ve==null?void 0:ve.key)===(((Ae=(Je=g.value)==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.label)==="类型"))==null?void 0:Ae.value)??"label")}))==null?void 0:Le.value);if((Ce=g.value)==null||Ce.forEach(ve=>{const Je=P==null?void 0:P.find(Ae=>(Ae==null?void 0:Ae.label)===(ve==null?void 0:ve.label));Je&&(F[Je.key]=ve.value)}),F.name=F.label,(Ea=j.value)!=null&&Ea.find(ve=>ve.id===F.id))j.value=(ma=j.value)==null?void 0:ma.map(ve=>(ve.id===F.id&&(ve=F),ve));else{let ve=L.cloneDeep(j.value);j.value||(j.value=[]),ve.push(F),j.value=ve}j.value=j.value.map(({id:ve,...Je})=>Je),m.value=!1,B.value="";let X=L.cloneDeep(r.originalItemContents);(Pa=L.cloneDeep(r.originalItemContents))!=null&&Pa.find(ve=>(ve==null?void 0:ve.key)==="tableToForm")?X=(Fa=L.cloneDeep(r.originalItemContents))==null?void 0:Fa.map(ve=>((ve==null?void 0:ve.key)==="tableToForm"&&(ve.contents=j.value),ve)):X.push({key:"tableToForm",contents:j.value}),o("change",X)},Ba=F=>{Z.value=!0;let P=[];Ln==null||Ln.forEach(X=>{S.value++,P.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:F[X.key],id:S.value,contents:X==null?void 0:X.options})}),B.value=F==null?void 0:F.id,C.value=P,_.value=P};a.watch(()=>u.value,()=>{var P,X;let F=L.cloneDeep(r.originalItemContents);(P=L.cloneDeep(r.originalItemContents))!=null&&P.find(te=>(te==null?void 0:te.key)==="page")?F=(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(te=>((te==null?void 0:te.key)==="page"&&(te.contents=u.value),te)):F.push({key:"page",contents:u.value}),o("change",F)},{deep:!0});const ne=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;q.value=(P=L.cloneDeep(q.value))==null?void 0:P.filter(te=>(te==null?void 0:te.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(te=>((te==null?void 0:te.key)==="extraButton"&&(te.contents=q.value),te))),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},D=()=>{var X,te,ce,xa,ra;C.value=_.value;let F={};if(B.value!==""?F.id=B.value:(S.value++,F.id="id"+S.value),(X=C.value)==null||X.forEach(Le=>{const Ce=Ln==null?void 0:Ln.find(Ea=>(Ea==null?void 0:Ea.label)===(Le==null?void 0:Le.label));Ce?F[Ce.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(F.children=Le.children)}),(te=q.value)!=null&&te.find(Le=>Le.id===F.id))q.value=(ce=q.value)==null?void 0:ce.map(Le=>(Le.id===F.id&&(Le=F),Le));else{let Le=L.cloneDeep(q.value)??[];Le.push(F),q.value=Le}Z.value=!1,B.value="";let P=L.cloneDeep(r.originalItemContents);(xa=L.cloneDeep(r.originalItemContents))!=null&&xa.find(Le=>(Le==null?void 0:Le.key)==="extraButton")?P=(ra=L.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="extraButton"&&(Le.contents=q.value),Le)):P.push({key:"extraButton",contents:q.value}),o("change",P)},re=F=>{let P=L.cloneDeep(_.value);P=P==null?void 0:P.map(X=>(X.children||(X.value=F==null?void 0:F[X.name]),X)),_.value=P},ke=()=>{Z.value=!1,C.value=[],B.value=""},de=F=>{v.value=!0;let P=[];Rn==null||Rn.forEach(X=>{S.value++,P.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:F[X.key],id:S.value,contents:X==null?void 0:X.options})}),B.value=F==null?void 0:F.id,O.value=P,M.value=P},De=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;E.value=(P=L.cloneDeep(E.value))==null?void 0:P.filter(te=>(te==null?void 0:te.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(te=>((te==null?void 0:te.key)==="rowButton"&&(te.contents=E.value),te))),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ha=()=>{c.value=!0;let F=[];ar==null||ar.forEach(P=>{S.value++,F.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:S.value,contents:P==null?void 0:P.options})}),y.value=F,w.value=F},Sa=()=>{v.value=!0;let F=[];Rn==null||Rn.forEach(P=>{S.value++,F.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:S.value,contents:P==null?void 0:P.options})}),O.value=F,M.value=F},Ja=F=>{let P=L.cloneDeep(M.value);P=P==null?void 0:P.map(X=>(X.children||(X.value=F==null?void 0:F[X.name]),X)),M.value=P},le=()=>{var X,te,ce,xa,ra;O.value=M.value;let F={};if(B.value!==""?F.id=B.value:(S.value++,F.id="id"+S.value),(X=O.value)==null||X.forEach(Le=>{const Ce=Rn==null?void 0:Rn.find(Ea=>(Ea==null?void 0:Ea.label)===(Le==null?void 0:Le.label));Ce?F[Ce.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(F.children=Le.children)}),(te=E.value)!=null&&te.find(Le=>Le.id===F.id))E.value=(ce=E.value)==null?void 0:ce.map(Le=>(Le.id===F.id&&(Le=F),Le));else{let Le=L.cloneDeep(E.value);Le.push(F),E.value=Le}v.value=!1,B.value="";let P=L.cloneDeep(r.originalItemContents);(xa=L.cloneDeep(r.originalItemContents))!=null&&xa.find(Le=>(Le==null?void 0:Le.key)==="rowButton")?P=(ra=L.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="rowButton"&&(Le.contents=E.value),Le)):P.push({key:"rowButton",contents:E.value}),o("change",P)},la=()=>{v.value=!1,B.value="",M.value=[],O.value=[]},Ve=F=>{c.value=!0;let P=[];ar==null||ar.forEach(X=>{S.value++,P.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:"",id:S.value,contents:X==null?void 0:X.options})}),y.value=P,R.value=F==null?void 0:F.id,w.value=P},_a=F=>{var P;p.value=wc(L.cloneDeep(p.value),F==null?void 0:F.id),o("change",(P=L.cloneDeep(r.originalItemContents))==null?void 0:P.map(X=>{var te;return(X==null?void 0:X.key)==="header"&&(X.contents=(te=p.value)!=null&&te.some(ce=>ce==null?void 0:ce.children)?[p.value]:p.value),X}))},Fe=F=>{var X,te,ce;F.type==="fix"?F.id!==""?p.value=Cc(p.value,F):p.value=_c(p.value,F==null?void 0:F.contents):p.value=Sc(p.value,F),p.value=(X=p.value)!=null&&X.some(xa=>xa==null?void 0:xa.children)?[p.value]:p.value,B.value="";let P=L.cloneDeep(r.originalItemContents);(te=L.cloneDeep(r.originalItemContents))!=null&&te.find(xa=>(xa==null?void 0:xa.key)==="header")?P=(ce=L.cloneDeep(r.originalItemContents))==null?void 0:ce.map(xa=>((xa==null?void 0:xa.key)==="header"&&(xa.contents=p.value),xa)):P.push({key:"header",contents:p.value}),o("change",P)},ze=F=>{var X;c.value=!0;let P=[];ar==null||ar.forEach(te=>{S.value++,P.push({label:te==null?void 0:te.label,name:te==null?void 0:te.label,type:te.type,value:F[te.key],id:S.value,contents:te==null?void 0:te.options})}),F!=null&&F.children&&((X=F==null?void 0:F.children)==null?void 0:X.length)>0&&P.push({children:F==null?void 0:F.children,isFormColHidden:!0}),B.value=F==null?void 0:F.id,R.value="",y.value=P,w.value=P},$e=F=>{let P=L.cloneDeep(w.value);P=P==null?void 0:P.map(X=>(X.children||(X.value=F==null?void 0:F[X.name]),X)),w.value=P},Ze=()=>{c.value=!1,B.value="",R.value="",w.value=[]},Xa=()=>{var X,te,ce,xa,ra,Le;y.value=w.value;let F={};if(B.value!==""?F.id=B.value:(S.value++,F.id="id"+S.value),(X=y.value)==null||X.forEach(Ce=>{const Ea=ar==null?void 0:ar.find(ma=>(ma==null?void 0:ma.label)===(Ce==null?void 0:Ce.label));Ea?F[Ea.key]=Ce.value:Ce!=null&&Ce.children&&Ce.children.length>0&&(F.children=Ce.children)}),(te=p.value)!=null&&te.find(Ce=>Ce.id===F.id))p.value=(ce=p.value)==null?void 0:ce.map(Ce=>(Ce.id===F.id&&(Ce=F),Ce));else{let Ce=L.cloneDeep(p.value)??[];R.value===""?Ce.push(F):Ce=Ce==null?void 0:Ce.map(Ea=>(Ea.id===R.value&&(Ea.children||(Ea.children=[]),Ea.children.push(F)),Ea)),p.value=Ce}p.value=(xa=p.value)!=null&&xa.some(Ce=>Ce==null?void 0:Ce.children)?[p.value]:p.value,c.value=!1,B.value="",R.value="";let P=L.cloneDeep(r.originalItemContents);(ra=L.cloneDeep(r.originalItemContents))!=null&&ra.find(Ce=>(Ce==null?void 0:Ce.key)==="header")?P=(Le=L.cloneDeep(r.originalItemContents))==null?void 0:Le.map(Ce=>((Ce==null?void 0:Ce.key)==="header"&&(Ce.contents=p.value),Ce)):P.push({key:"header",contents:p.value}),o("change",P)},qa=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;p.value=(P=L.cloneDeep(p.value))==null?void 0:P.filter(te=>(te==null?void 0:te.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(te=>{var ce;return(te==null?void 0:te.key)==="header"&&(te.contents=(ce=p.value)!=null&&ce.some(xa=>xa==null?void 0:xa.children)?[p.value]:p.value),te})),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>r.originalItemContents,()=>{var F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(s.value=L.cloneDeep(r.originalItemContents),p.value=(P=(F=s.value)==null?void 0:F.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:P.contents,E.value=(te=(X=s.value)==null?void 0:X.find(Te=>(Te==null?void 0:Te.key)==="rowButton"))==null?void 0:te.contents,q.value=(xa=(ce=s.value)==null?void 0:ce.find(Te=>(Te==null?void 0:Te.key)==="extraButton"))==null?void 0:xa.contents,u.value=(Le=(ra=s.value)==null?void 0:ra.find(Te=>(Te==null?void 0:Te.key)==="page"))!=null&&Le.contents?!!((Ea=(Ce=s.value)==null?void 0:Ce.find(Te=>(Te==null?void 0:Te.key)==="page"))!=null&&Ea.contents):!1,j.value=(Pa=(ma=s.value)==null?void 0:ma.find(Te=>(Te==null?void 0:Te.key)==="tableToForm"))==null?void 0:Pa.contents,p.value=(Fa=p.value)==null?void 0:Fa.map((Te,Ia)=>(Array.isArray(Te)?Te=D3(Te):Te={label:(Te==null?void 0:Te.label)??"",prop:(Te==null?void 0:Te.label)==="操作"?"operate":Te==null?void 0:Te.prop,width:Te!=null&&Te.width?parseInt(Te.width):"",fixed:(Te==null?void 0:Te.fixed)??void 0,sortable:(Te==null?void 0:Te.sortable)??!1,align:(Te==null?void 0:Te.align)??"left",showOverflowTooltip:(Te==null?void 0:Te.showOverflowTooltip)??!0,isNotDrag:(Te==null?void 0:Te.isNotDrag)??!1,isEditCol:(Te==null?void 0:Te.isEditCol)??!1,isOperate:(Te==null?void 0:Te.isOperate)??!1,id:(Te==null?void 0:Te.id)??Ia,formMenuSelect:(Te==null?void 0:Te.formMenuSelect)??void 0,groupSelect:(Te==null?void 0:Te.groupSelect)??void 0},Te)),p.value=(ve=p.value)!=null&&ve.every(Te=>Array.isArray(Te))?(Je=p.value)==null?void 0:Je[0]:p.value,E.value=(Ae=E.value)==null?void 0:Ae.map((Te,Ia)=>Te={label:(Te==null?void 0:Te.label)??"",type:(Te==null?void 0:Te.type)??"",textColor:(Te==null?void 0:Te.textColor)??"#000000",id:(Te==null?void 0:Te.id)??Ia}),q.value=(Xe=q.value)==null?void 0:Xe.map((Te,Ia)=>Te={label:(Te==null?void 0:Te.label)??"",type:(Te==null?void 0:Te.type)??"",background:(Te==null?void 0:Te.background)??"var(--ssComponent-primary-color)",id:(Te==null?void 0:Te.id)??Ia}),j.value)j.value=(pa=j.value)==null?void 0:pa.map(Te=>{S.value++;let Ia=Te;return Ia.id=S.value,Ia});else{let Te=[];const Ia=(ya=ca.getColumnChild(L.cloneDeep(p.value)))==null?void 0:ya.filter(ga=>(ga==null?void 0:ga.prop)!=="operate");Ia==null||Ia.forEach(ga=>{var Ha;S.value++,Te.push({label:ga==null?void 0:ga.label,name:(ga==null?void 0:ga.prop)||(ga==null?void 0:ga.label),type:ga!=null&&ga.groupSelect?"Select":"Input",value:"",id:S.value,contents:ga==null?void 0:ga.options,menuSelect:ga==null?void 0:ga.formMenuSelect,groupSelect:(Ha=ga==null?void 0:ga.groupSelect)==null?void 0:Ha.split(":"),selectRelateType:"关联绑定列"})}),j.value=Te}},{deep:!0,immediate:!0}),(F,P)=>{const X=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",G3,[a.createElementVNode("div",Y3,[a.createElementVNode("div",J3,[P[2]||(P[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(te,{class:"icon-content",onClick:ha,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[1]||(P[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",X3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(ce,xa)=>(a.openBlock(),a.createElementBlock("div",{key:xa},[a.createElementVNode("div",Z3,[a.createElementVNode("div",Q3,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",e1,[a.createVNode(X,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ve(ce)},null,8,["onClick"]),a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>ze(ce)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>qa(ce)},null,8,["onClick"])])]),ce!=null&&ce.children&&ce.children.length>0?(a.openBlock(),a.createElementBlock("div",a1,[a.createVNode(Ec,{tableChildContents:ce==null?void 0:ce.children,onDeleteChange:_a,onFixChange:Fe},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",l1,[P[4]||(P[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(te,{class:"icon-content",id:"themeButton",onClick:Sa},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[3]||(P[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",r1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,(ce,xa)=>(a.openBlock(),a.createElementBlock("div",{key:xa},[a.createElementVNode("div",n1,[a.createElementVNode("div",o1,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",i1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>de(ce)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>De(ce)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",s1,[P[6]||(P[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(te,{class:"icon-content",id:"themeButton",onClick:V},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[5]||(P[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",c1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q.value,(ce,xa)=>(a.openBlock(),a.createElementBlock("div",{key:xa},[a.createElementVNode("div",u1,[a.createElementVNode("div",d1,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",p1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>Ba(ce)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>ne(ce)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",f1,[P[8]||(P[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(te,{class:"icon-content",id:"themeButton",onClick:G},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[7]||(P[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",h1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j.value,(ce,xa)=>(a.openBlock(),a.createElementBlock("div",{key:xa},[a.createElementVNode("div",v1,[a.createElementVNode("div",m1,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",y1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>ge(ce)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>J(ce)},null,8,["onClick"])])])]))),128))]),P[10]||(P[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",g1,[a.createElementVNode("div",b1,[P[9]||(P[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(dl._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":P[0]||(P[0]=ce=>u.value=ce)},null,8,["modelValue"])])])]),a.createVNode(xr.ssDialog,{visible:c.value,onBeforeDestroy:Ze,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",k1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:$e},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",x1,[a.createVNode(te,{onClick:Ze,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[11]||(P[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(te,{class:"ok-button button",onClick:Xa,id:"themeButton"},{default:a.withCtx(()=>P[12]||(P[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:v.value,onBeforeDestroy:la,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",w1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:O.value,key:O.value,isEnableWrap:!0,onChange:Ja},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",_1,[a.createVNode(te,{onClick:la,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[13]||(P[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(te,{class:"ok-button button",onClick:le,id:"themeButton"},{default:a.withCtx(()=>P[14]||(P[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:Z.value,onBeforeDestroy:ke,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",C1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:re},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",S1,[a.createVNode(te,{onClick:ke,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[15]||(P[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(te,{class:"ok-button button",onClick:D,id:"themeButton"},{default:a.withCtx(()=>P[16]||(P[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:m.value,onBeforeDestroy:ue,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",E1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:g.value,key:g.value,isEnableWrap:!0,onChange:Ne,onChangeVisible:fe,onBlurChange:Se},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",D1,[a.createVNode(te,{onClick:ue,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[17]||(P[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(te,{class:"ok-button button",onClick:Ue,id:"themeButton"},{default:a.withCtx(()=>P[18]||(P[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},N1=Jl._export_sfc(B1,[["__scopeId","data-v-7a6b87b5"]]),T1=L.useModelComp(L.pinia),{pageMapState:A1}=L.storeToRefs(T1),z1=L.useMenuState(L.pinia),{activeMenuPath:M1}=L.storeToRefs(z1),I1=a.ref(24),O1=a.ref(6),L1=a.ref(70),R1=a.ref(.18),$1=a.ref(45),V1=(l,n,r,o)=>{var s,c,m,p,v,y,u,w,B,R,E,q,O,M,Z,C;return{x:((c=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:c.x)||n%2*12,y:((p=(m=l==null?void 0:l.value)==null?void 0:m.tableData)==null?void 0:p.y)||n,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||I1.value,h:((w=(u=l==null?void 0:l.value)==null?void 0:u.tableData)==null?void 0:w.h)||r,minW:((R=(B=l==null?void 0:l.value)==null?void 0:B.tableData)==null?void 0:R.minW)||O1.value,minH:((q=(E=l==null?void 0:l.value)==null?void 0:E.tableData)==null?void 0:q.minH)||R1.value,maxH:((M=(O=l==null?void 0:l.value)==null?void 0:O.tableData)==null?void 0:M.maxH)||$1.value,i:((C=(Z=l==null?void 0:l.value)==null?void 0:Z.tableData)==null?void 0:C.i)||n,id:(l==null?void 0:l.id)||n+"",component:o}},P1=(l,n)=>{var o,s,c,m,p,v,y,u;let r=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){if(((m=(c=(s=l==null?void 0:l.compData)==null?void 0:s.find(B=>(B==null?void 0:B.key)==="tableContents"))==null?void 0:c.contents)==null?void 0:m.length)===0)return 2}else((p=l==null?void 0:l.comp)==null?void 0:p.toUpperCase())==="FORM"&&(r=((u=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:y.contents)==null?void 0:u.length)/5);return r*2},Dc=(l,n,r)=>{var m,p;const o=(p=(m=A1.value)==null?void 0:m[M1.value])==null?void 0:p.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=o==null?void 0:o.find(v=>{var y,u,w;return((w=(u=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:u.component)==null?void 0:w.id)===l.id}),c=P1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>Dc(v,y))),{...V1(s,n,c,l)}},F1=(l,n)=>{if((l==null?void 0:l.length)===0)return[];const r=L.cloneDeep(l);return Array.isArray(l)?r==null?void 0:r.map((o,s)=>Dc(o,s)):[]},j1=l=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),H1=(l,n)=>l==null?void 0:l.map(r=>{for(const o in n)if(o===(r==null?void 0:r.prop))return{...r,value:n[o]};return r}),U1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]);a.watch(()=>r.compType,p=>{var u;const v=j1(r==null?void 0:r.optionItems),y=p?(u=v[p==null?void 0:p.toUpperCase()])==null?void 0:u[r==null?void 0:r.target]:[];s.value=y==null?void 0:y.map(w=>{for(const[B,R]of Object.entries((r==null?void 0:r.comp)||{}))if((w==null?void 0:w.prop)===B)return{...w,value:R};return w})},{immediate:!0});const c=p=>dl.getComponent(p),m=p=>{var v,y;(p==null?void 0:p.prop)==="layout"&&(p==null?void 0:p.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(u=>{var w;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(w=u==null?void 0:u.options)==null?void 0:w.map(B=>({...B,disabled:!0}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!0}:u}):s.value=(y=s.value)==null?void 0:y.map(u=>{var w;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(w=u==null?void 0:u.options)==null?void 0:w.map(B=>({...B,disabled:!1}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!1}:u}),o("change",{target:r==null?void 0:r.target,styleConfigs:s.value,prop:p==null?void 0:p.prop})};return(p,v)=>{const y=a.resolveComponent("el-col"),u=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,w=>(a.openBlock(),a.createBlock(u,{class:"style-row",key:w==null?void 0:w.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(w==null?void 0:w.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(w.type)),{modelValue:w.value,"onUpdate:modelValue":B=>w.value=B,content:w==null?void 0:w.options,optionUrl:w==null?void 0:w.optionUrl,disabled:w==null?void 0:w.disabled,activeText:w==null?void 0:w.activeText,inactiveText:w==null?void 0:w.inactiveText,onChange:B=>m(w)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),q1=Jl._export_sfc(U1,[["__scopeId","data-v-6c233914"]]),W1=a.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(l,{emit:n}){const r=l,o=n,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],c=a.ref([]),m=M=>M==null?void 0:M.reduce((Z,C)=>(Z[C==null?void 0:C.prop]=C==null?void 0:C.rule,Z),{}),p=a.computed(()=>({formRules:m(c.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),v=a.ref([]),y=a.ref(""),u=(M,Z,C)=>{var g;let _=[];(r==null?void 0:r.activeTabName)==="任务配置"?(_=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:M},{label:"按钮名称",value:"按钮名称",children:Z}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],c.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(r==null?void 0:r.activeTabName)==="任务关联"&&(_=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(g=r==null?void 0:r.relatedData)==null?void 0:g.map(b=>({label:b==null?void 0:b.任务名称,value:b==null?void 0:b.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],c.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let S;return C&&(C==null?void 0:C.length)>0?S=[..._,...w(M,Z,C)]:S=_,S},w=(M,Z,C)=>{const _=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return C?_==null?void 0:_.filter(S=>C==null?void 0:C.includes(S==null?void 0:S.prop)):_},B=(M,Z)=>{var b,j,V,G,fe,Ne,Se,Q,ge;const C=((fe=(G=(V=(j=(b=r==null?void 0:r.comp)==null?void 0:b.compData)==null?void 0:j.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:V.contents)==null?void 0:G.filter(J=>(J==null?void 0:J.label)!=="操作"))==null?void 0:fe.map(J=>({value:J==null?void 0:J.prop,label:J.label})))||[],_=/button/i,S=((ge=(Q=(Se=(Ne=r==null?void 0:r.comp)==null?void 0:Ne.compData)==null?void 0:Se.filter(J=>_.test(J==null?void 0:J.key)))==null?void 0:Q.flatMap(J=>J==null?void 0:J.contents))==null?void 0:ge.map(J=>({value:J==null?void 0:J.label,label:J.label})))||[],g=u(C,S,M);v.value=Z?H1(g,Z):g,M&&(M==null?void 0:M.length)>0&&c.value.push(...M==null?void 0:M.map(J=>({prop:J,rule:s})))};a.onMounted(()=>{B(null,r==null?void 0:r.extendItem)});const R=M=>{const Z=M==null?void 0:M[y.value];if(y.value==="执行任务"){if(!(Z!=null&&Z.join("/")))return;const C=Z==null?void 0:Z.join("/");B(C==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:C==="进度设置/进度条"?["进度关键词"]:null,M)}},E=M=>{o("change",{target:r==null?void 0:r.target,extendConfigs:M})},q=(M,Z)=>{y.value=Z==null?void 0:Z.changeProp,R(M)},O=M=>{o("onButtonClick",M)};return(M,Z)=>(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:p.value.formRules,buttonValue:p.value.buttonValue,onChange:E,onBlurChange:q,onOnButtonClick:O},null,8,["rowContents","formRules","buttonValue"]))}}),K1=Jl._export_sfc(W1,[["__scopeId","data-v-7c660c1f"]]),G1={};function Y1(l,n){return null}const J1=Jl._export_sfc(G1,[["render",Y1]]),X1={class:"form-operate-content"},Z1={class:"form-operate-item"},Q1={class:"operate-title"},e2={class:"operate-content"},a2={class:"fix-content"},l2={class:"fix-button"},r2={class:"operate-title"},n2={class:"operate-content"},o2={class:"fix-content"},i2={class:"fix-button"},t2={style:{display:"flex","justify-content":"space-between"}},s2={class:"form-content"},c2={class:"dialog-footer"},u2={class:"form-content"},d2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref([]),m=a.ref([]),p=a.ref(!1),v=a.ref([]),y=a.ref([]),u=a.ref(""),w=a.ref(!1),B=a.ref(0),R=a.ref([]),E=a.ref([]),q=(Q,ge)=>{if((ge==null?void 0:ge.type)=="Select"&&(Q==null?void 0:Q.key)==="selectRelateType"){const J=ge==null?void 0:ge.optionUrl;return(J==null?void 0:J.selectRelateType)||ge[Q.key]}if((ge==null?void 0:ge.type)=="Select"&&(Q==null?void 0:Q.key)==="menuSelect"){const J=ge==null?void 0:ge.optionUrl;return(J==null?void 0:J.menuSelect)||ge[Q.key]}if((ge==null?void 0:ge.type)=="Select"&&(Q==null?void 0:Q.key)==="groupSelect"){const J=ge==null?void 0:ge.optionUrl;return(J==null?void 0:J.groupSelect)||ge[Q.key]}if((ge==null?void 0:ge.type)=="Select"&&(Q==null?void 0:Q.key)==="originalContent")return(ge==null?void 0:ge.value)||ge[Q.key];if((ge==null?void 0:ge.type)=="Select"&&(Q==null?void 0:Q.key)==="multiple"){const J=ge[Q.key];return Gs(J)?J:Q.default}return(Q==null?void 0:Q.label)==="类型"&&ge[Q.key]===""?"Input":(Q==null?void 0:Q.key)==="isFormColHidden"&&!ge[Q.key]?!1:ge[Q.key]},O=async Q=>{var ue,Ue,Ba,ne,D,re;s.value=!0;let ge=[];const J=await((Ba=(Ue=(ue=ca.FormContent)==null?void 0:ue.find(ke=>(ke==null?void 0:ke.key)===((Q==null?void 0:Q.type)===""?"Input":Q==null?void 0:Q.type)))==null?void 0:Ue.value)==null?void 0:Ba.value)??((D=(ne=ca.FormContent)==null?void 0:ne.find(ke=>(ke==null?void 0:ke.key)===((Q==null?void 0:Q.type)===""?"Input":Q==null?void 0:Q.type)))==null?void 0:D.value);if(J==null||J.forEach(ke=>{B.value++,ge.push({label:ke==null?void 0:ke.label,name:ke==null?void 0:ke.label,type:ke.type,prop:ke==null?void 0:ke.prop,value:q(ke,Q),id:B.value,contents:ke==null?void 0:ke.options,width:(Q==null?void 0:Q.width)??1})}),Q!=null&&Q.menuSelect&&((re=Q==null?void 0:Q.menuSelect)==null?void 0:re.length)>0){const ke=await ca.menuToContentType(Q==null?void 0:Q.menuSelect);ge=ge==null?void 0:ge.map(de=>((de==null?void 0:de.name)==="组信息选项"&&(de.contents=ke),de))}u.value=Q==null?void 0:Q.id,c.value=await ca.selectToBase(ca.formToOptionsContents(ge)),m.value=await ca.selectToBase(ca.formToOptionsContents(ge))},M=Q=>{var J;p.value=!0;let ge=[];(J=ca.FormButton)==null||J.forEach(ue=>{B.value++,ge.push({label:ue==null?void 0:ue.label,name:ue==null?void 0:ue.label,type:ue.type,value:(ue==null?void 0:ue.label)==="类型"&&Q[ue.key]===""?"normal":Q[ue.key],id:B.value,contents:ue==null?void 0:ue.options})}),R.value=ge,E.value=ge,u.value=Q==null?void 0:Q.id};a.watch(()=>w.value,()=>{var ge,J;let Q=L.cloneDeep(r.originalItemContents);(ge=L.cloneDeep(r.originalItemContents))!=null&&ge.find(ue=>(ue==null?void 0:ue.key)==="enableWrap")?Q=(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ue=>((ue==null?void 0:ue.key)==="enableWrap"&&(ue.contents=!w.value),ue)):Q.push({key:"enableWrap",contents:!w.value}),o("change",Q)},{deep:!0});const Z=()=>{var J,ue,Ue,Ba,ne;R.value=E.value;let Q={};if(u.value!==""?Q.id=u.value:(B.value++,Q.id="id"+B.value),(J=R.value)==null||J.forEach(D=>{var ke;const re=(ke=ca.FormButton)==null?void 0:ke.find(de=>(de==null?void 0:de.label)===(D==null?void 0:D.label));re&&(Q[re.key]=D.value)}),(ue=v.value)!=null&&ue.find(D=>D.id===Q.id))v.value=(Ue=v.value)==null?void 0:Ue.map(D=>(D.id===Q.id&&(D=Q),D));else{let D=L.cloneDeep(v.value);v.value||(v.value=[]),D.push(Q),v.value=D}p.value=!1,u.value="";let ge=L.cloneDeep(r.originalItemContents);(Ba=L.cloneDeep(r.originalItemContents))!=null&&Ba.find(D=>(D==null?void 0:D.key)==="formButton")?ge=(ne=L.cloneDeep(r.originalItemContents))==null?void 0:ne.map(D=>((D==null?void 0:D.key)==="formButton"&&(D.contents=v.value),D)):ge.push({key:"formButton",contents:v.value}),o("change",ge)},C=Q=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ge,J;y.value=(ge=L.cloneDeep(y.value))==null?void 0:ge.filter(ue=>(ue==null?void 0:ue.id)!==(Q==null?void 0:Q.id)),o("change",(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ue=>((ue==null?void 0:ue.key)==="formContent"&&(ue.contents=y.value),ue))),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=Q=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ge,J;v.value=(ge=L.cloneDeep(v.value))==null?void 0:ge.filter(ue=>(ue==null?void 0:ue.id)!==(Q==null?void 0:Q.id)),o("change",(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ue=>((ue==null?void 0:ue.key)==="formButton"&&(ue.contents=v.value),ue))),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},S=()=>{var ge;p.value=!0;let Q=[];(ge=ca.FormButton)==null||ge.forEach(J=>{B.value++,Q.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:(J==null?void 0:J.label)==="类型"?"normal":"",id:B.value,contents:J==null?void 0:J.options})}),R.value=Q,E.value=Q},g=()=>{var ge,J,ue;s.value=!0;let Q=[];(ue=(J=(ge=ca.FormContent)==null?void 0:ge.find(Ue=>(Ue==null?void 0:Ue.key)==="Input"))==null?void 0:J.value)==null||ue.forEach(Ue=>{B.value++,Q.push({label:Ue==null?void 0:Ue.label,name:Ue==null?void 0:Ue.label,type:Ue.type,value:(Ue==null?void 0:Ue.label)==="类型"?"Input":"",id:B.value,contents:Ue==null?void 0:Ue.options})}),c.value=Q,m.value=Q},b=Q=>{let ge=L.cloneDeep(E.value);ge=ge==null?void 0:ge.map(J=>(J.value=Q==null?void 0:Q[J.name],J)),E.value=ge},j=Q=>{const ge=Q.find(Ue=>(Ue==null?void 0:Ue.name)==="类型");if((ge==null?void 0:ge.value)!="Select")return;const J=Q.find(Ue=>(Ue==null?void 0:Ue.name)==="多选"),ue=Q.find(Ue=>(Ue==null?void 0:Ue.name)==="初始值");J!=null&&J.value&&_i.isString(ue.value)&&(ue.value=[ue.value]),!(J!=null&&J.value)&&!_i.isString(ue.value)&&(ue.value="")},V=async Q=>{var ge,J,ue,Ue,Ba,ne,D,re,ke,de,De,ha;if((Q==null?void 0:Q.类型)!==((J=(ge=m.value)==null?void 0:ge.find(Sa=>(Sa==null?void 0:Sa.label)==="类型"))==null?void 0:J.value)){let Sa=[];const Ja=await((Ba=(Ue=(ue=ca.FormContent)==null?void 0:ue.find(le=>(le==null?void 0:le.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:Ue.value)==null?void 0:Ba.value)?await((de=(ke=(re=ca.FormContent)==null?void 0:re.find(le=>(le==null?void 0:le.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:ke.value)==null?void 0:de.value):(D=(ne=ca.FormContent)==null?void 0:ne.find(le=>(le==null?void 0:le.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:D.value;if(Ja==null||Ja.forEach(le=>{var Ve,_a;B.value++;const la=Eu(le==null?void 0:le.default)?(Q==null?void 0:Q[le.label])??le.value??"":le==null?void 0:le.default;Sa.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:la,prop:le==null?void 0:le.prop,id:B.value,contents:le==null?void 0:le.options,width:((_a=(Ve=m.value)==null?void 0:Ve[0])==null?void 0:_a.width)??1})}),Q!=null&&Q.菜单选项&&((De=Q==null?void 0:Q.菜单选项)==null?void 0:De.length)>0){const le=await ca.menuToContentType(Q==null?void 0:Q.菜单选项);Sa=Sa==null?void 0:Sa.map(la=>((la==null?void 0:la.name)==="组信息选项"&&(la.contents=le),la))}j(Sa),m.value=await ca.selectToBase(L.cloneDeep(Sa)),c.value=await ca.selectToBase(L.cloneDeep(Sa))}else{let Sa=L.cloneDeep(m.value);if(Sa=Sa==null?void 0:Sa.map(Ja=>(Ja.value=Q==null?void 0:Q[Ja.name],Ja)),Q!=null&&Q.菜单选项&&((ha=Q==null?void 0:Q.菜单选项)==null?void 0:ha.length)>0){const Ja=await ca.menuToContentType(Q==null?void 0:Q.菜单选项);Sa=Sa==null?void 0:Sa.map(le=>((le==null?void 0:le.name)==="组信息选项"&&(le.contents=Ja),le))}Sa=ca.formToOptionsContents(Sa),j(Sa),m.value=await ca.selectToBase(L.cloneDeep(Sa))}},G=Q=>{Q||(c.value=m.value)},fe=async Q=>{await V(Q),c.value=m.value},Ne=Va.debounce(async()=>{var ue,Ue,Ba,ne,D,re,ke,de,De,ha,Sa,Ja;c.value=m.value;let Q={};Q.width=((Ue=(ue=c.value)==null?void 0:ue[0])==null?void 0:Ue.width)??1,u.value!==""?Q.id=u.value:(B.value++,Q.id="id"+B.value);let ge=await((D=(ne=(Ba=ca.FormContent)==null?void 0:Ba.find(le=>{var la,Ve;return(le==null?void 0:le.key)===(((Ve=(la=c.value)==null?void 0:la.find(_a=>(_a==null?void 0:_a.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:ne.value)==null?void 0:D.value)??((ke=(re=ca.FormContent)==null?void 0:re.find(le=>{var la,Ve;return(le==null?void 0:le.key)===(((Ve=(la=c.value)==null?void 0:la.find(_a=>(_a==null?void 0:_a.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:ke.value);if((de=c.value)==null||de.forEach(le=>{const la=ge==null?void 0:ge.find(Ve=>(Ve==null?void 0:Ve.label)===(le==null?void 0:le.label));la&&(Q[la.key]=le.value)}),Q.width=Q.width?Q.width:1,Q.key=Q==null?void 0:Q.label,Q.isFormColHidden=Q==null?void 0:Q.isFormColHidden,(De=y.value)!=null&&De.find(le=>le.id===Q.id))y.value=(ha=y.value)==null?void 0:ha.map(le=>(le.id===Q.id&&(le=Q),le));else{let le=L.cloneDeep(y.value);le.push(Q),y.value=le}y.value=y.value.map(({id:le,...la})=>la),s.value=!1,u.value="";let J=L.cloneDeep(r.originalItemContents);(Sa=L.cloneDeep(r.originalItemContents))!=null&&Sa.find(le=>(le==null?void 0:le.key)==="formContent")?J=(Ja=L.cloneDeep(r.originalItemContents))==null?void 0:Ja.map(le=>((le==null?void 0:le.key)==="formContent"&&(le.contents=y.value),le)):J.push({key:"formContent",contents:y.value}),o("change",J)},300),Se=()=>{s.value=!1,p.value=!1,u.value="",m.value=[],E.value=[]};return a.watch(()=>r.originalItemContents,()=>{var ge,J,ue,Ue,Ba,ne;if(!r.originalItemContents||r.originalItemContents.length===0)return;const Q=L.cloneDeep(r.originalItemContents);y.value=((ge=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:ge.contents)??[],v.value=((J=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="formButton"))==null?void 0:J.contents)??[],w.value=(ue=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&ue.contents?!((Ue=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&Ue.contents):!0,y.value=(Ba=L.cloneDeep(y.value))==null?void 0:Ba.map((D,re)=>{var de;let ke=D;return ke.id=(D==null?void 0:D.id)??re,D!=null&&D.label||(D.label=(D==null?void 0:D.key)??(D==null?void 0:D.label)??""),D!=null&&D.type||(D.type=(D==null?void 0:D.type)??""),D.contents=((de=D==null?void 0:D.options)==null?void 0:de.length)===0?(D==null?void 0:D.contents)??"":D==null?void 0:D.options,ke}),y.value=ca.formToOptionsContents(y.value),v.value=(ne=v.value)==null?void 0:ne.map((D,re)=>D={label:(D==null?void 0:D.label)??"",type:(D==null?void 0:D.type)??"",background:(D==null?void 0:D.background)??"var(--ssComponent-primary-color)",id:re})},{deep:!0,immediate:!0}),(Q,ge)=>{const J=a.resolveComponent("svg-icon"),ue=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",X1,[a.createElementVNode("div",Z1,[a.createElementVNode("div",Q1,[ge[2]||(ge[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:g},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[ge[1]||(ge[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",e2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ue,Ba)=>(a.openBlock(),a.createElementBlock("div",{key:Ba},[a.createElementVNode("div",a2,[a.createElementVNode("div",null,a.toDisplayString(Ue.label),1),a.createElementVNode("div",l2,[a.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>O(Ue)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>C(Ue)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",r2,[ge[4]||(ge[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(ue,{class:"icon-content",id:"themeButton",onClick:S},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[ge[3]||(ge[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",n2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(Ue,Ba)=>(a.openBlock(),a.createElementBlock("div",{key:Ba},[a.createElementVNode("div",o2,[a.createElementVNode("div",null,a.toDisplayString(Ue.label),1),a.createElementVNode("div",i2,[a.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>M(Ue)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>_(Ue)},null,8,["onClick"])])])]))),128))]),ge[6]||(ge[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",t2,[ge[5]||(ge[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(dl._sfc_main$1,{modelValue:w.value,"onUpdate:modelValue":ge[0]||(ge[0]=Ue=>w.value=Ue)},null,8,["modelValue"])])]),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:Se,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",s2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:V,onChangeVisible:G,onBlurChange:fe},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",c2,[a.createVNode(ue,{onClick:Se,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>ge[7]||(ge[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(ue,{class:"ok-button button",onClick:a.unref(Ne),id:"themeButton"},{default:a.withCtx(()=>ge[8]||(ge[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:p.value,onBeforeDestroy:Se,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",u2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:R.value,key:R.value,isEnableWrap:!0,onChange:b},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:Se,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:Z},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},gs=Jl._export_sfc(d2,[["__scopeId","data-v-20850524"]]),p2={class:"step-module content"},f2={class:"module-data"},h2={class:"step-module layout"},v2={class:"form-content"},m2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),c=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),m=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),p=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),u=a.ref([]),w=O=>{var M;y.value=O,o("change",(M=E())==null?void 0:M.compData)},B=(O,M)=>{var Z,C;switch(O){case"create":(Z=c.value)==null||Z.forEach(_=>{_.value=""}),v.value="create",p.visible=!0;break;case"update":(C=c.value)==null||C.forEach(_=>{_.value=M[_==null?void 0:_.prop]}),v.value="update",p.visible=!0;break;case"delete":u.value.splice(M,1),v.value="delete";break}},R=O=>{var M,Z,C;if((O==null?void 0:O.buttonName)==="确认"){const _=L.cloneDeep(O==null?void 0:O.content);switch(Object.keys(_).forEach(S=>{_[S]===""&&delete _[S]}),v.value){case"create":u.value.push({..._,index:((M=u.value)==null?void 0:M.length)+1});break;case"update":u.value=(Z=u.value)==null?void 0:Z.map(S=>S.index===(_==null?void 0:_.index)?{...S,title:_==null?void 0:_.title,description:_==null?void 0:_.description}:S);break}o("change",(C=E())==null?void 0:C.compData),p.visible=!1}else p.visible=!1},E=()=>({comp:"Step",compData:[{key:"stepList",contents:u.value},{key:"stepConfig",contents:y.value}]}),q=()=>{p.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,O=>{var M,Z;O&&(y.value=((M=O==null?void 0:O.find(C=>C.key==="stepConfig"))==null?void 0:M.contents)??{},u.value=((Z=O==null?void 0:O.find(C=>C.key==="stepList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(O,M)=>{const Z=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",p2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=_=>B("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",f2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(_,S)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:S},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.title),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:g=>B("update",{..._,index:S+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:g=>B("delete",S)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",h2,[M[5]||(M[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(dl.ssForm,{rowContents:s.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:q,width:p.width},{default:a.withCtx(()=>[a.createElementVNode("div",v2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),y2=Jl._export_sfc(m2,[["__scopeId","data-v-7dbd17f2"]]),g2={class:"step-module content"},b2={class:"module-data"},k2={class:"step-module layout"},x2={class:"form-content"},w2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref("create"),c=a.ref({}),m=a.ref([]),p=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),u=a.reactive({visible:!1,width:"40%",title:"时间线"}),w=O=>{var M;c.value=O,o("change",(M=E())==null?void 0:M.compData)},B=(O,M)=>{var Z,C;switch(O){case"create":(Z=v.value)==null||Z.forEach(_=>{_.value=""}),s.value="create",u.visible=!0;break;case"update":(C=v.value)==null||C.forEach(_=>{_.value=M[_==null?void 0:_.prop]}),s.value="update",u.visible=!0;break;case"delete":m.value.splice(M,1),s.value="delete";break}},R=O=>{var M,Z,C,_;if((O==null?void 0:O.buttonName)==="确认"){const S=L.cloneDeep(O==null?void 0:O.content);switch(Object.keys(S).forEach(g=>{S[g]===""&&delete S[g]}),s.value){case"create":(Z=m.value)==null||Z.push({...S,index:((M=m.value)==null?void 0:M.length)+1});break;case"update":m.value=(C=m.value)==null?void 0:C.map(g=>g.index===(S==null?void 0:S.index)?{...g,content:S==null?void 0:S.content,timestamp:S==null?void 0:S.timestamp}:g);break}o("change",(_=E())==null?void 0:_.compData),u.visible=!1}else u.visible=!1},E=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:m.value},{key:"timeLineConfig",contents:c.value}]}),q=()=>{u.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,O=>{var M,Z;O&&(c.value=((M=O==null?void 0:O.find(C=>C.key==="timeLineConfig"))==null?void 0:M.contents)??{},m.value=((Z=O==null?void 0:O.find(C=>C.key==="timeLineList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(O,M)=>{const Z=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",g2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=_=>B("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",b2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,(_,S)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:S},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.content),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:g=>B("update",{..._,index:S+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:g=>B("delete",S)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",k2,[M[5]||(M[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(dl.ssForm,{rowContents:p.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:q,width:u.width},{default:a.withCtx(()=>[a.createElementVNode("div",x2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),_2=Jl._export_sfc(w2,[["__scopeId","data-v-39ffc861"]]),C2={};function S2(l,n){return a.openBlock(),a.createElementBlock("div")}const E2=Jl._export_sfc(C2,[["render",S2]]),D2={class:"extra-content"},B2={key:0},N2={key:1},T2={class:"dialog-footer"},A2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:n}){const r=l,o=a.ref(0),s=a.ref(),c=a.ref(),m=n,p=a.ref(!1),v=a.ref({}),y=a.ref({}),u=a.ref();a.watch(()=>[r.itemData],()=>{var _;const C=L.cloneDeep(r.itemData);s.value=(_=L.cloneDeep(C))==null?void 0:_.map(S=>{var g;if(S.key==="extra"){let b=[];(g=S.value)==null||g.forEach(j=>{var V;b.push((V=Object.values(j))==null?void 0:V[0])}),S.value=b}return S})},{deep:!0,immediate:!0});const w=(C,_,S,g)=>{var j;let b={};((j=C==null?void 0:C[0])==null?void 0:j.contents)==="详情"&&(p.value=!0,b[_]=C,c.value=C==null?void 0:C.filter(V=>(V==null?void 0:V.key)!=="tableContentName"),v.value=b,y.value=S,u.value=g.id)},B=C=>{var V,G,fe,Ne;const _=(G=(V=Object.values(L.cloneDeep(v.value)))==null?void 0:V[0])==null?void 0:G.filter(Se=>(Se==null?void 0:Se.key)==="tableContentName"),S=(Ne=(fe=Object.values(L.cloneDeep(v.value)))==null?void 0:fe[0])==null?void 0:Ne.filter(Se=>(Se==null?void 0:Se.key)!=="tableContentName"),g=S==null?void 0:S.map((Se,Q)=>{var ge;return Q===C.index&&(Se==null?void 0:Se.comp)==="Table"&&(Se.compData=(ge=Se.compData)==null?void 0:ge.map(J=>{var ue,Ue;return(J==null?void 0:J.key)==="tableContents"&&(J.contents=(Ue=(ue=C.content)==null?void 0:ue.map(Ba=>{let ne={};for(let D in Ba)D!=="id"&&(ne[D]=Ba[D]);return ne}))==null?void 0:Ue.map(Ba=>Object.values(Ba))),J})),Se});g.unshift(_==null?void 0:_[0]);let b=L.cloneDeep(v.value),j={};for(let Se in b)j[Se]=g;v.value=j},R=()=>{p.value=!1,v.value={},y.value={},u.value=void 0,o.value++},E=C=>{var V,G,fe,Ne;const _=(G=(V=Object.values(L.cloneDeep(v.value)))==null?void 0:V[0])==null?void 0:G.filter(Se=>(Se==null?void 0:Se.key)==="tableContentName"),S=(Ne=(fe=Object.values(L.cloneDeep(v.value)))==null?void 0:fe[0])==null?void 0:Ne.filter(Se=>(Se==null?void 0:Se.key)!=="tableContentName"),g=S==null?void 0:S.map((Se,Q)=>(Q===C.index&&(Se.compData=C.contents),Se));g.unshift(_==null?void 0:_[0]);let b=L.cloneDeep(v.value),j={};for(let Se in b)j[Se]=g;v.value=j},q=()=>{var _,S;let C={};for(let g in y.value)g===((_=Object.keys(v.value))==null?void 0:_[0])?C[g]=(S=Object.values(v.value))==null?void 0:S[0]:C[g]=y.value[g];m("change",{buttonName:"编辑",index:u.value,singleContent:C},"methodData"),p.value=!1,v.value={},y.value={},u.value=void 0},O=()=>{p.value=!1,v.value={},y.value={},u.value=void 0},M=C=>{m("change",C,"methodData")},Z=C=>No(C);return(C,_)=>{const S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",D2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(g,b)=>(a.openBlock(),a.createElementBlock("div",{key:o.value},[(g==null?void 0:g.key)==="extra"?(a.openBlock(),a.createElementBlock("div",B2)):(a.openBlock(),a.createElementBlock("div",N2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Z(g.comp)),{itemData:g==null?void 0:g.compData,childItemData:g==null?void 0:g.itemChildData,key:b,index:(g==null?void 0:g.id)??b,onContentClick:w,onChange:M},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(xr.ssDialog,{visible:p.value,onBeforeDestroy:O},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(g,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Z(g.comp)),{itemData:g==null?void 0:g.compData,onChange:B,childItemData:g==null?void 0:g.itemChildData,key:b,onContentChange:E,index:(g==null?void 0:g.id)??b,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",T2,[a.createVNode(S,{class:"cancel-button footer-button",onClick:R,id:"themeBorderButton"},{default:a.withCtx(()=>_[0]||(_[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(S,{class:"confirm-button footer-button",onClick:q,id:"themeButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},z2=Jl._export_sfc(A2,[["__scopeId","data-v-2d9c5ab2"]]),M2={key:0,class:"method-content"},I2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const n=a.ref([]),r=ca.useOriginalState(L.pinia),{originalPath:o}=L.storeToRefs(r),s=l,c=a.ref(!1),m=a.ref(),p=ca.useTableComp(L.pinia),{multipleTableConst:v}=L.storeToRefs(p),y=L.useModelComp(L.pinia),u=a.ref(!1),w=L.useMenuState(L.pinia),B=L.useLoginState(L.pinia),{itemData:R,isEdit:E,routeToChildPath:q,tableViewContents:O,lockingPage:M,payloadTypes:Z}=L.storeToRefs(y),{activeMenuPath:C,platform:_,childMenu:S}=L.storeToRefs(w),{loginUserInfo:g}=L.storeToRefs(B),b=a.ref(!1),j=async()=>{var ne,D;(ne=n.value)!=null&&ne.find(re=>(re==null?void 0:re.buttonName)==="保存")&&await J((D=n.value)==null?void 0:D.find(re=>(re==null?void 0:re.buttonName)==="保存")),await ca.onSaveBack()};a.watch(()=>R.value,async()=>{E.value==="view"&&!b.value&&await Ba(L.cloneDeep(s.itemData)),b.value=!1},{deep:!0});const V=()=>{c.value=!1,m.value=void 0},G=ne=>ne.map(D=>{const re={};for(const ke in D){const de=D[ke];if(ke.includes(v.value)){const De=ke.split(v.value);let ha=re;De.forEach((Sa,Ja)=>{Ja===De.length-1?ha[Sa]=de:(ha[Sa]||(ha[Sa]={}),ha=ha[Sa])})}else re[ke]=de}return re}),fe=async(ne,D,re=[])=>{var de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa;let ke=(de=L.cloneDeep(D))==null?void 0:de.filter(F=>(F==null?void 0:F.comp)!=="methodButton");if(ne!=null&&ne.includes("[")){let F=(le=(Ja=(Sa=(ha=(De=L.cloneDeep(ne))==null?void 0:De.split("["))==null?void 0:ha[1])==null?void 0:Sa.split("]"))==null?void 0:Ja[0])==null?void 0:le.split(":"),P="";if(F!=null&&F[0]){let X=(la=ke==null?void 0:ke.find(te=>(te==null?void 0:te.name)===(F==null?void 0:F[0])))==null?void 0:la.compData;if(!X){let te=(Ve=ne==null?void 0:ne.split("["))==null?void 0:Ve[0],ce=await ca.getItemData(te,sessionStorage.getItem("systemKey"),"",!1,"","",re);X=(_a=ce==null?void 0:ce.find(xa=>(xa==null?void 0:xa.name)===(F==null?void 0:F[0])))==null?void 0:_a.compData}X==null||X.forEach(te=>{var ce,xa,ra,Le,Ce,Ea;if((te==null?void 0:te.key)==="formContent")(ce=te==null?void 0:te.contents)==null||ce.forEach(ma=>{var Pa;(ma==null?void 0:ma.key)===(F==null?void 0:F[1])&&(Array.isArray(ma==null?void 0:ma.value)?P=ma==null?void 0:ma.value:P=(Pa=ma==null?void 0:ma.value)==null?void 0:Pa.toString())});else if((te==null?void 0:te.key)==="tableContents"){let ma=[],Pa=(xa=X==null?void 0:X.find(ve=>(ve==null?void 0:ve.key)==="header"))==null?void 0:xa.contents,Fa=(F==null?void 0:F[1])??"";if(Pa!=null&&Pa.every(ve=>Array.isArray(ve))){let ve=ca.getColumnChild((Ce=Pa==null?void 0:Pa[0])==null?void 0:Ce.filter(Je=>(Je==null?void 0:Je.label)!=="操作"));(Ea=te.contents)==null||Ea.forEach(Je=>{let Ae={};Je=Je==null?void 0:Je.filter(Xe=>!(Xe!=null&&Xe.id)),ve==null||ve.forEach((Xe,ya)=>{let pa=Je[ya];typeof Je[ya]=="number"&&(pa=Je[ya].toString()),(Fa===""||Fa===Xe.prop)&&(Ae[Xe.prop]=pa)}),ma.push(Ae)}),ma=G(ma)}else{let ve=(ra=Pa==null?void 0:Pa.map(Je=>Je==null?void 0:Je.label))==null?void 0:ra.filter(Je=>Je!=="操作");(Le=te.contents)==null||Le.forEach(Je=>{let Ae={};Je=Je==null?void 0:Je.filter(Xe=>!(Xe!=null&&Xe.id)),ve==null||ve.forEach((Xe,ya)=>{let pa=Je[ya];typeof Je[ya]=="number"&&(pa=Je[ya].toString()),(Fa===""||Fa===Xe)&&(Ae[Xe]=pa)}),ma.push(Ae)})}P=ma}})}return P}else if(ne!=null&&ne.includes("/")){let F={};return(Fe=L.cloneDeep(ke))==null||Fe.forEach((P,X)=>{var te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga;if((P==null?void 0:P.comp)==="Table"){let Ha=Array.isArray((xa=(ce=(te=P==null?void 0:P.compData)==null?void 0:te.find(Qe=>(Qe==null?void 0:Qe.key)==="header"))==null?void 0:ce.contents)==null?void 0:xa[0])?(Ea=(Ce=(Le=(ra=P==null?void 0:P.compData)==null?void 0:ra.find(Qe=>(Qe==null?void 0:Qe.key)==="header"))==null?void 0:Le.contents)==null?void 0:Ce[0])==null?void 0:Ea.some(Qe=>Qe==null?void 0:Qe.children):[],wa=(Fa=(Pa=(ma=P==null?void 0:P.compData)==null?void 0:ma.find(Qe=>(Qe==null?void 0:Qe.key)==="tableContents"))==null?void 0:Pa.contents)==null?void 0:Fa.map(Qe=>(Qe!=null&&Qe.find(Ca=>Ca==null?void 0:Ca.id)&&(Qe=Qe.slice(1)),Qe)),ta=(ya=(Xe=(Ae=(Je=(ve=P==null?void 0:P.compData)==null?void 0:ve.find(Qe=>(Qe==null?void 0:Qe.key)==="header"))==null?void 0:Je.contents)==null?void 0:Ae[0])==null?void 0:Xe[0])==null?void 0:ya.label,We=(Te=(pa=P==null?void 0:P.compData)==null?void 0:pa.find(Qe=>(Qe==null?void 0:Qe.key)==="header"))==null?void 0:Te.contents;if(Ha)(Ha==null?void 0:Ha.length)===0?F[P.name]=F!=null&&F[P.name]?F[P.name]:ca.tableToForm(wa,We):F[ta]=ca.tableToForm(wa,We);else{const Qe=[];We=We.slice(1,We.length-1),We==null||We.forEach((Ca,oe)=>{wa==null||wa.forEach(_e=>{Qe.push({key:Ca.label+_e[0],value:_e[oe+1]})})}),F["form"+X]=Qe}}else{const Ha=(ga=(Ia=P.compData)==null?void 0:Ia.find(ta=>(ta==null?void 0:ta.key)==="formContent"))==null?void 0:ga.contents;F!=null&&F.form||(F.form=[]);const wa=[];Ha==null||Ha.forEach(ta=>{ta.key!==""&&(ta={key:(ta==null?void 0:ta.key)??(ta==null?void 0:ta.label),value:ta==null?void 0:ta.value},wa.push(ta))}),F.form=[...wa,...L.cloneDeep(F==null?void 0:F.form)]}}),F}else{if(ne==="createInsofDataApi"){let F=(ze=L.cloneDeep(D))==null?void 0:ze[0];return F={comp:($e=L.cloneDeep(F))==null?void 0:$e.comp,compData:(Ze=L.cloneDeep(F))==null?void 0:Ze.compData,name:(Xa=L.cloneDeep(F))==null?void 0:Xa.name,isShow:(qa=L.cloneDeep(F))==null?void 0:qa.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:C.value},value:{pageData:F}}}return ne}},Ne=async(ne,D,re)=>{var De,ha,Sa;let ke=await ca.getItemData(D,sessionStorage.getItem("systemKey"),""),de=ke==null?void 0:ke.find(Ja=>(Ja==null?void 0:Ja.name)===(re==null?void 0:re[0]));if(de){if((de==null?void 0:de.comp)==="Table"){let Ja={};for(let $e in L.cloneDeep(ne))L.cloneDeep(ne)[$e]!=="loginUser"?Ja[$e]=L.cloneDeep(ne)[$e]:Ja[$e]=((De=g.value)==null?void 0:De.account)||((ha=g.value)==null?void 0:ha.账号);let le=[],la=Ja;Array.isArray(ne)||(la=[Ja]),la==null||la.forEach($e=>{le.push({[$e[re[1]]]:$e})});let Ve=[],_a=le==null?void 0:le.map($e=>{var Ze;return(Ze=Object.keys($e))==null?void 0:Ze[0]});ke==null||ke.forEach($e=>{var Ze;($e==null?void 0:$e.name)===(re==null?void 0:re[0])&&((Ze=$e==null?void 0:$e.compData)==null||Ze.forEach(Xa=>{var qa;(Xa==null?void 0:Xa.key)==="tableContents"&&((qa=Xa==null?void 0:Xa.contents)==null||qa.forEach(F=>{F!=null&&F.some(P=>_a.includes(P))&&Ve.push({[F.find(P=>P.id).id]:F.find(P=>_a.includes(P))})}))}))});let Fe=Ve==null?void 0:Ve.map($e=>{var Ze;return(Ze=Object.keys($e))==null?void 0:Ze[0]}),ze=[];if(Fe==null||Fe.forEach($e=>{var qa;let Ze=(qa=Ve==null?void 0:Ve.find(F=>{var P;return((P=Object.keys(F))==null?void 0:P[0].toString())===$e.toString()}))==null?void 0:qa[$e],Xa=le==null?void 0:le.find(F=>{var P;return((P=Object.keys(F))==null?void 0:P[0])===Ze});ze.push({id:parseInt($e),value:{tableData:Xa[Ze]}})}),(ze==null?void 0:ze.length)>0)return ze}else if((de==null?void 0:de.comp)==="Form"){let Ja=L.cloneDeep(de);Ja.compData=(Sa=Ja.compData)==null?void 0:Sa.map(Ve=>{var _a;return(Ve==null?void 0:Ve.key)==="formContent"&&(Ve.contents=(_a=Ve.contents)==null?void 0:_a.map(Fe=>((Fe==null?void 0:Fe.key)===(re==null?void 0:re[1])&&(Fe.value=(ne==null?void 0:ne[Fe==null?void 0:Fe.prop])||ne),Fe))),Ve});let le={};for(let Ve in Ja)Ve!=="id"&&(le[Ve]=Ja[Ve]);let la=[];if(la.push({id:de==null?void 0:de.id,keyType:re==null?void 0:re[1],value:{pageData:le}}),(la==null?void 0:la.length)>0)return la}}},Se=async(ne,D,re)=>{var De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze;let ke=await ca.getItemData(D,sessionStorage.getItem("systemKey"),""),de=ke==null?void 0:ke.find($e=>($e==null?void 0:$e.name)===(re==null?void 0:re[0]));if(de){if((de==null?void 0:de.comp)==="Table"){let $e={};for(let Ze in L.cloneDeep(ne))L.cloneDeep(ne)[Ze]!=="loginUser"?$e[Ze]=L.cloneDeep(ne)[Ze]:$e[Ze]=((De=g.value)==null?void 0:De.account)||((ha=g.value)==null?void 0:ha.账号);await _r.createInsofDataApi({key:{type:"data",pageKey:D,tableId:de==null?void 0:de.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:$e}})}else if((de==null?void 0:de.comp)==="Form"){let $e=L.cloneDeep(de),Ze=Object.keys(ne),Xa="";(Ja=(Sa=L.cloneDeep($e))==null?void 0:Sa.compData)==null||Ja.forEach(ce=>{var xa,ra;(ce==null?void 0:ce.key)==="formContent"&&((ra=(xa=L.cloneDeep(ce))==null?void 0:xa.contents)==null||ra.forEach(Le=>{var Ce;Ze.includes(Le==null?void 0:Le.key)&&(Le==null?void 0:Le.value)===((Ce=g.value)==null?void 0:Ce.姓名)&&(Xa=Le==null?void 0:Le.key)}))});let qa=[];(le=Object.values(ne[Xa]))==null||le.forEach(ce=>{ce!=null&&ce.includes("(")&&qa.push(ce)}),qa=[...new Set(qa)];const F=qa==null?void 0:qa.map(async ce=>{var Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia;let xa="";(Je=(ve=(Fa=(Pa=(ma=(Ea=L.cloneDeep(ce))==null?void 0:Ea.split("("))==null?void 0:ma[1])==null?void 0:Pa.split(")"))==null?void 0:Fa[0])==null?void 0:ve.split(":"))==null||Je.forEach(ga=>{xa=xa===""?xa+ga.replaceAll("'",""):xa+"/"+ga.replaceAll("'","")});let ra=[];(Ia=(Te=(pa=(ya=(Xe=(Ae=L.cloneDeep(ce))==null?void 0:Ae.split("<"))==null?void 0:Xe[1])==null?void 0:ya.split(">"))==null?void 0:pa[0])==null?void 0:Te.split(":"))==null||Ia.forEach(ga=>{ra.push(ga.replaceAll("'",""))});const Le=await ca.getItemData(xa,sessionStorage.getItem("systemKey"),"");let Ce="";return Le==null||Le.forEach(ga=>{var Ha;ga.name===(ra==null?void 0:ra[0])&&((Ha=ga==null?void 0:ga.compData)==null||Ha.forEach(wa=>{var ta;(wa==null?void 0:wa.key)==="formContent"&&((ta=wa.contents)==null||ta.forEach(We=>{(We==null?void 0:We.key)===(ra==null?void 0:ra[1])&&(Ce=We==null?void 0:We.value)}))}))}),{[ce]:Ce}}),P=await Promise.all(F);$e.compData=(Ve=(la=L.cloneDeep($e))==null?void 0:la.compData)==null?void 0:Ve.map(ce=>{var xa,ra;return(ce==null?void 0:ce.key)==="formContent"&&(ce.contents=(ra=(xa=L.cloneDeep(ce))==null?void 0:xa.contents)==null?void 0:ra.map(Le=>{var Ce,Ea,ma,Pa;return(Ce=ne[Xa])!=null&&Ce[Le==null?void 0:Le.key]&&(ne[Xa][Le==null?void 0:Le.key].includes("(")?Le.value=(Ea=P==null?void 0:P.find(Fa=>{var ve;return((ve=Object.keys(Fa))==null?void 0:ve[0])===ne[Xa][Le==null?void 0:Le.key]}))==null?void 0:Ea[ne[Xa][Le==null?void 0:Le.key]]:Le.value=(Pa=(ma=L.cloneDeep(ne))==null?void 0:ma[Xa])==null?void 0:Pa[Le==null?void 0:Le.key]),Le})),ce});const X=await _r.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let te="";((_a=X==null?void 0:X.data)==null?void 0:_a.type)==="success"&&((ze=(Fe=X==null?void 0:X.data)==null?void 0:Fe.result)==null||ze.forEach(ce=>{var xa,ra;((ra=(xa=ce==null?void 0:ce.value)==null?void 0:xa.pageData)==null?void 0:ra.name)===(re==null?void 0:re[0])&&(te=ce.id)}),await _r.updateInsofDataApi({id:te,value:{pageData:$e}}))}}},Q=(ne,D="",re={})=>{for(const[ke,de]of Object.entries(ne)){const De=D?`${D}.${ke}`:ke;de!==null&&typeof de=="object"&&!Array.isArray(de)&&Object.prototype.toString.call(de)!=="[object Date]"?Q(de,De,re):re[De]=de}return re},ge=async(ne,D,re,ke)=>{var ha,Sa,Ja,le,la,Ve,_a,Fe,ze,$e,Ze,Xa,qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa;let de=await ca.getItemData(D,sessionStorage.getItem("systemKey"),""),De=de==null?void 0:de.find(Fa=>(Fa==null?void 0:Fa.name)===(re==null?void 0:re[0]));if(De){if(!(re!=null&&re[1])&&(De==null?void 0:De.comp)==="Table"){let Fa={},ve=[],Je=(Sa=(ha=De==null?void 0:De.compData)==null?void 0:ha.find(ya=>(ya==null?void 0:ya.key)==="header"))==null?void 0:Sa.contents;Je!=null&&Je.every(ya=>Array.isArray(ya))?ve=(le=ca.getColumnChild((Ja=Je==null?void 0:Je[0])==null?void 0:Ja.filter(ya=>(ya==null?void 0:ya.label)!=="操作")))==null?void 0:le.map(ya=>ya==null?void 0:ya.prop):ve=Je==null?void 0:Je.map(ya=>ya==null?void 0:ya.label);for(let ya in L.cloneDeep(ne))if(L.cloneDeep(ne)[ya]!=="loginUser"){let pa=Q(L.cloneDeep(ne)[ya]),Te={};for(let Ia in pa)if(ve!=null&&ve.find(ga=>ga===Ia))Te[Ia]=pa[Ia];else if(ve!=null&&ve.find(ga=>(ga==null?void 0:ga.toUpperCase())===(Ia==null?void 0:Ia.toUpperCase()))){let ga=ve==null?void 0:ve.find(Ha=>(Ha==null?void 0:Ha.toUpperCase())===(Ia==null?void 0:Ia.toUpperCase()));Te[ga]=pa[Ia]}Fa[ya]=Te}else Fa[ya]=((la=g.value)==null?void 0:la.account)||((Ve=g.value)==null?void 0:Ve.账号);let Ae=await _r.getInsofDataApi({keyLikes:{tableId:De==null?void 0:De.id}});if(((Fe=(_a=Ae==null?void 0:Ae.data)==null?void 0:_a.result)==null?void 0:Fe.length)>0){let ya=($e=(ze=Ae==null?void 0:Ae.data)==null?void 0:ze.result)==null?void 0:$e.map(pa=>pa==null?void 0:pa.id);(ya==null?void 0:ya.length)>0&&await _r.batchDeleteInsofDataApi({ids:ya})}let Xe=[];if((Ze=De==null?void 0:De.compData)!=null&&Ze.find(ya=>(ya==null?void 0:ya.key)==="pageColumn")&&((F=(qa=(Xa=De==null?void 0:De.compData)==null?void 0:Xa.find(ya=>(ya==null?void 0:ya.key)==="pageColumn"))==null?void 0:qa.contents)!=null&&F.includes("["))){const ya=await _r.getInsofDataApi({id:De==null?void 0:De.tableId});let pa=((ce=(te=(X=(P=ya==null?void 0:ya.data)==null?void 0:P.result)==null?void 0:X[0])==null?void 0:te.key)==null?void 0:ce.pageKey)??"";(xa=Object.values(Fa))==null||xa.forEach(Te=>{Xe.push({key:{type:"data",pageKey:pa,tableId:De==null?void 0:De.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Te}})})}else(ra=Object.values(Fa))==null||ra.forEach(ya=>{Xe.push({key:{type:"data",pageKey:D,tableId:De==null?void 0:De.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:ya}})});(Xe==null?void 0:Xe.length)>0&&await _r.batchAddInsofDataApi({dataList:Xe})}else if(!(re!=null&&re[1])&&(De==null?void 0:De.comp)==="Form"){let Fa=L.cloneDeep(De);Fa.compData=(Ce=(Le=L.cloneDeep(Fa))==null?void 0:Le.compData)==null?void 0:Ce.map(Ae=>{var Xe,ya;return(Ae==null?void 0:Ae.key)==="formContent"&&(Ae.contents=(ya=(Xe=L.cloneDeep(Ae))==null?void 0:Xe.contents)==null?void 0:ya.map(pa=>{var Te,Ia;return(Te=L.cloneDeep(ne))!=null&&Te[pa==null?void 0:pa.key]&&(pa.value=(Ia=L.cloneDeep(ne))==null?void 0:Ia[pa==null?void 0:pa.key]),pa})),Ae});const ve=await _r.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let Je="";((Ea=ve==null?void 0:ve.data)==null?void 0:Ea.type)==="success"&&((Pa=(ma=ve==null?void 0:ve.data)==null?void 0:ma.result)==null||Pa.forEach(Ae=>{var Xe,ya;((ya=(Xe=Ae==null?void 0:Ae.value)==null?void 0:Xe.pageData)==null?void 0:ya.name)===(re==null?void 0:re[0])&&(Je=Ae.id)}),await _r.updateInsofDataApi({id:Je,value:{pageData:Fa}}))}}},J=async ne=>{var D,re,ke,de,De,ha,Sa,Ja,le,la,Ve,_a,Fe,ze;w.setImportLoading(!0);try{if(ne.api){let $e=new WeakMap,Ze=await ca.getItemData((S==null?void 0:S.value)===""?C.value:S==null?void 0:S.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e),Xa="";if(Ze=Ze==null?void 0:Ze.map(ra=>{var Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa;if((ra==null?void 0:ra.comp)==="Form")ra.compData=(Le=ra.compData)==null?void 0:Le.map(Te=>{var Ia;return(Te==null?void 0:Te.key)==="formContent"&&(Te.contents=(Ia=Te.contents)==null?void 0:Ia.map(ga=>{var Ha;if((ga==null?void 0:ga.value)===""&&(ga==null?void 0:ga.type)==="Select"){let wa=ca.judgeContents((Ha=L.cloneDeep(ga))==null?void 0:Ha.optionUrl,$e);ga.value=ga.value||wa}return ga})),Te});else if((ra==null?void 0:ra.comp)==="Table"&&(Ce=ra.compData)!=null&&Ce.find(Te=>(Te==null?void 0:Te.key)==="pageColumn")){let Te=(ma=(Ea=ra.compData)==null?void 0:Ea.find(wa=>(wa==null?void 0:wa.key)==="pageColumn"))==null?void 0:ma.contents,Ia=((Fa=(Pa=ra.compData)==null?void 0:Pa.find(wa=>(wa==null?void 0:wa.key)==="pageGroup"))==null?void 0:Fa.contents)??"",ga=(Ae=(Je=(ve=Te==null?void 0:Te.split("["))==null?void 0:ve[1])==null?void 0:Je.split("]"))==null?void 0:Ae[0];Xa=((Xe=Te==null?void 0:Te.split("["))==null?void 0:Xe[0])+((pa=(ya=O.value)==null?void 0:ya.find(wa=>(wa==null?void 0:wa.key)===ga))==null?void 0:pa.value)}return ra}),!(Xa===""||Xa==="")){const ra=await ca.getItemData(Xa,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Ze=Ze==null?void 0:Ze.map(Le=>{var Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia;if((Le==null?void 0:Le.comp)==="Table"&&(Ce=Le.compData)!=null&&Ce.find(ga=>(ga==null?void 0:ga.key)==="pageColumn")){let ga=(ma=(Ea=Le.compData)==null?void 0:Ea.find(Qe=>(Qe==null?void 0:Qe.key)==="pageColumn"))==null?void 0:ma.contents,Ha=((Fa=(Pa=Le.compData)==null?void 0:Pa.find(Qe=>(Qe==null?void 0:Qe.key)==="pageGroup"))==null?void 0:Fa.contents)??"",wa=(Ae=(Je=(ve=ga==null?void 0:ga.split("["))==null?void 0:ve[1])==null?void 0:Je.split("]"))==null?void 0:Ae[0],ta=((Xe=ga==null?void 0:ga.split("["))==null?void 0:Xe[0])+((pa=(ya=O.value)==null?void 0:ya.find(Qe=>(Qe==null?void 0:Qe.key)===wa))==null?void 0:pa.value),We=(Te=ra==null?void 0:ra.find(Qe=>(Qe==null?void 0:Qe.name)===(Ha===""?s==null?void 0:s.compName:Ha)))==null?void 0:Te.compData;Le.compData=(Ia=Le.compData)==null?void 0:Ia.map(Qe=>{var Ca;return(Qe==null?void 0:Qe.key)==="tableContents"&&(Qe.contents=(Ca=We==null?void 0:We.find(oe=>(oe==null?void 0:oe.key)==="tableContents"))==null?void 0:Ca.contents),Qe})}return Le})}let qa={};if(((re=(D=ne==null?void 0:ne.extraValues)==null?void 0:D.input)==null?void 0:re.length)>0){const ra=(de=(ke=ne==null?void 0:ne.extraValues)==null?void 0:ke.input)==null?void 0:de.map(async Le=>{var Ce;ue!=null&&ue.find(Ea=>Ea===Le)?qa=await fe(Le,Ze):qa[Object.keys(Le)[0]]=await fe((Ce=Object.values(Le))==null?void 0:Ce[0],Ze,$e)});await Promise.all(ra)}else qa=await fe("/",Ze);let F=!1;(ha=(De=ne==null?void 0:ne.extraValues)==null?void 0:De.output)==null||ha.forEach(ra=>{var Le,Ce;(Ce=(Le=Object.values(ra))==null?void 0:Le[0])!=null&&Ce.includes(".doc")&&(F=!0)});let P;if(F){const ra=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});P=await el.axios.post(ne.api,qa,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ra.close()})}else P=await el.axios.post(ne.api,qa,{headers:{"Content-Type":"application/json"}});let X=(la=(le=(Ja=(Sa=L.cloneDeep(ne))==null?void 0:Sa.extraValues)==null?void 0:Ja.output)==null?void 0:le.map(ra=>{var Le,Ce,Ea,ma,Pa,Fa,ve,Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha;if(!((Ce=(Le=Object.values(ra))==null?void 0:Le[0])!=null&&Ce.includes(".doc"))){let wa=(Xe=(Ae=(Je=(ma=L.cloneDeep((Ea=Object.values(ra))==null?void 0:Ea[0]))==null?void 0:ma.split("["))==null?void 0:Je[((ve=(Fa=L.cloneDeep((Pa=Object.values(ra))==null?void 0:Pa[0]))==null?void 0:Fa.split("["))==null?void 0:ve.length)-1])==null?void 0:Ae.split("]"))==null?void 0:Xe[0],ta=wa==null?void 0:wa.split(":"),We=(Te=L.cloneDeep((ya=Object.values(ra))==null?void 0:ya[0]))==null?void 0:Te.substring(0,L.cloneDeep((pa=Object.values(ra))==null?void 0:pa[0]).lastIndexOf("["));if(We=(ga=L.cloneDeep(We))==null?void 0:ga.slice(0,((Ia=L.cloneDeep(We))==null?void 0:Ia.length)-1),We!=null&&We.includes("[")){let Qe="";if((Ha=ca.contentTransArrayToAll(We,"/"))==null||Ha.forEach(Ca=>{var oe,_e,Pe,ie,Ka,vl,Wl;if(!(Ca!=null&&Ca.includes("[")))Qe=Qe===""?Qe+Ca.replaceAll("/",""):Qe+"/"+Ca.replaceAll("/","");else{let Wa=L.cloneDeep(Ca).slice(1,((oe=L.cloneDeep(Ca))==null?void 0:oe.length)-1),fa=(vl=(Ka=(ie=(Pe=(_e=L.cloneDeep(Wa))==null?void 0:_e.split("["))==null?void 0:Pe[1])==null?void 0:ie.split("]"))==null?void 0:Ka[0])==null?void 0:vl.split(":"),va="",ba=(Wl=Ze==null?void 0:Ze.find(Ye=>(Ye==null?void 0:Ye.name)===(fa==null?void 0:fa[0])))==null?void 0:Wl.compData;ba==null||ba.forEach(Ye=>{var Za;(Ye==null?void 0:Ye.key)==="formContent"&&((Za=Ye==null?void 0:Ye.contents)==null||Za.forEach(Ee=>{(Ee==null?void 0:Ee.key)===(fa==null?void 0:fa[1])&&(va=Ee==null?void 0:Ee.value)}))}),Qe=Qe===""?Qe+va.replaceAll("/",""):Qe+"/"+va.replaceAll("/","")}}),We=Qe,We[(We==null?void 0:We.length)-1]!=="/")return We}}}))==null?void 0:la.filter(ra=>ra);X=[...new Set(L.cloneDeep(X))];let te=X==null?void 0:X.map(async ra=>{let Le=await ca.getItemData(ra,sessionStorage.getItem("systemKey"),"",!1,"","",$e);if((Le==null?void 0:Le.length)===0)return await ca.getParentContents(ra)});await Promise.all(te);let ce=[],xa=(Fe=(_a=(Ve=L.cloneDeep(ne))==null?void 0:Ve.extraValues)==null?void 0:_a.output)==null?void 0:Fe.map(async ra=>{var Je,Ae,Xe,ya,pa,Te,Ia,ga,Ha,wa,ta,We,Qe,Ca,oe,_e,Pe,ie,Ka,vl,Wl,Wa,fa,va,ba,Ye,Za,Ee,Ke,me,Ra,qe,K,aa,Ge,Be,Cl,tl,bl,Ga,Qa,Ta,pe,Da,Sl,Vl,Fl,nr,yr,Nl,tr,Nr,Ll,lr,Qr,Ir,Ar,Er,zr,Mr,Dr,Vr,Or,sr,gn,Gr,rn,Nn,bn,vn;if((Ae=(Je=Object.values(ra))==null?void 0:Je[0])!=null&&Ae.includes(".doc")){var Le=new Blob([P.data],{type:"application/octet-stream;charset=UTF-8"}),Ce=P.headers["content-disposition"],Ea=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),ma=Ea.exec(Ce),Pa=ma==null?void 0:ma[1],Fa=document.createElement("a"),ve=window.URL.createObjectURL(Le);m.value=[{name:Pa,blobUrl:ve}],c.value=!0}else{let vr=(wa=(Ha=(ga=(ya=L.cloneDeep((Xe=Object.values(ra))==null?void 0:Xe[0]))==null?void 0:ya.split("["))==null?void 0:ga[((Ia=(Te=L.cloneDeep((pa=Object.values(ra))==null?void 0:pa[0]))==null?void 0:Te.split("["))==null?void 0:Ia.length)-1])==null?void 0:Ha.split("]"))==null?void 0:wa[0],Hl=vr==null?void 0:vr.split(":"),dr=(Qe=L.cloneDeep((ta=Object.values(ra))==null?void 0:ta[0]))==null?void 0:Qe.substring(0,L.cloneDeep((We=Object.values(ra))==null?void 0:We[0]).lastIndexOf("["));if(dr!=null&&dr.includes("[")?dr=(oe=L.cloneDeep(dr))==null?void 0:oe.slice(0,((Ca=L.cloneDeep(dr))==null?void 0:Ca.length)-1):dr===""&&(dr=C.value),dr=dr.replaceAll("<","[").replaceAll(">","]"),dr!=null&&dr.includes("[")){let Kl="";(_e=ca.contentTransArrayToAll(dr,"/"))==null||_e.forEach((Il,mr)=>{var or,jl,$r,Pr,kn,nn,Xn,Tn,Zn,xn,An;if(!(Il!=null&&Il.includes("[")))Kl=Kl===""?Kl+Il.replaceAll("/",""):Kl+"/"+Il.replaceAll("/","");else{let Pn="",en="";(or=L.cloneDeep(Il))!=null&&or.includes("]")?(Pn=L.cloneDeep(Il).slice(1,((jl=L.cloneDeep(Il))==null?void 0:jl.length)-1),en=(Xn=(nn=(kn=(Pr=($r=L.cloneDeep(Pn))==null?void 0:$r.split("["))==null?void 0:Pr[1])==null?void 0:kn.split("]"))==null?void 0:nn[0])==null?void 0:Xn.split(":")):(Pn=L.cloneDeep(Il).slice(1,(Tn=L.cloneDeep(Il))==null?void 0:Tn.length),en=(Zn=L.cloneDeep(Pn))==null?void 0:Zn.split("/"));let zn="",wn=(xn=Ze==null?void 0:Ze.find(Kr=>(Kr==null?void 0:Kr.name)===(en==null?void 0:en[0])))==null?void 0:xn.compData;wn==null||wn.forEach(Kr=>{var Fn;(Kr==null?void 0:Kr.key)==="formContent"&&((Fn=Kr==null?void 0:Kr.contents)==null||Fn.forEach(mn=>{(mn==null?void 0:mn.key)===(en==null?void 0:en[1])&&(zn=mn==null?void 0:mn.value)}))}),((An=ca.contentTransArrayToAll(dr,"/"))==null?void 0:An.length)-1!==mr?Kl=Kl===""?Kl+zn.replaceAll("/",""):Kl+"/"+zn.replaceAll("/",""):Kl=Kl+o.value+zn.replaceAll("/","")}}),(Pe=C.value)!=null&&Pe.includes(Kl)?dr=C.value:dr=Kl}let $l=L.cloneDeep((ie=Object.keys(ra))==null?void 0:ie[0]);if(((Ka=P==null?void 0:P.data)==null?void 0:Ka.statusCode)===200||((vl=P==null?void 0:P.data)==null?void 0:vl.code)===200){if(((Wa=(Wl=P==null?void 0:P.data)==null?void 0:Wl.data)!=null&&Wa[$l]||(va=(fa=P==null?void 0:P.data)==null?void 0:fa.result)!=null&&va[$l])&&(Hl==null?void 0:Hl.length)===1)return await ge(((Ye=(ba=P==null?void 0:P.data)==null?void 0:ba.data)==null?void 0:Ye[$l])||((Ee=(Za=P==null?void 0:P.data)==null?void 0:Za.result)==null?void 0:Ee[$l]),L.cloneDeep(dr),Hl,Xa);if((me=(Ke=P==null?void 0:P.data)==null?void 0:Ke.data)!=null&&me[$l]||(qe=(Ra=P==null?void 0:P.data)==null?void 0:Ra.result)!=null&&qe[$l]){let Kl=await Ne(((aa=(K=P==null?void 0:P.data)==null?void 0:K.data)==null?void 0:aa[$l])||((Be=(Ge=P==null?void 0:P.data)==null?void 0:Ge.result)==null?void 0:Be[$l]),L.cloneDeep(dr),Hl);return Kl&&(ce=[...ce,...Kl]),Kl}else{if(!((Cl=P==null?void 0:P.data)!=null&&Cl.data)){let Kl=await ca.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Kl=Kl==null?void 0:Kl.map(mr=>{var or;return(mr==null?void 0:mr.name)===(Hl==null?void 0:Hl[0])&&(mr.compData=(or=mr.compData)==null?void 0:or.map(jl=>{var $r;return(jl==null?void 0:jl.key)==="formContent"&&(jl.contents=($r=jl.contents)==null?void 0:$r.map(Pr=>{var kn,nn;return(Pr==null?void 0:Pr.key)===(Hl==null?void 0:Hl[1])&&(Pr.value=(nn=(kn=P==null?void 0:P.data)==null?void 0:kn.result)==null?void 0:nn[$l==null?void 0:$l.replaceAll(":","")]),Pr})),jl})),mr});let Il=[];(tl=Kl==null?void 0:Kl.filter(mr=>(mr==null?void 0:mr.comp)==="Form"))==null||tl.forEach(async mr=>{let or={};for(let jl in mr)jl!=="id"&&(or[jl]=mr[jl]);Il.push({id:mr==null?void 0:mr.id,value:{pageData:or}})}),(Il==null?void 0:Il.length)>0&&await _r.batchUpdateInsofDataApi({dataList:Il});return}if((Hl==null?void 0:Hl.length)===1){const Kl=(Qa=(Ga=(bl=P==null?void 0:P.data)==null?void 0:bl.data)==null?void 0:Ga.path)==null?void 0:Qa.path;let Il="";(Vl=(Sl=(Da=(pe=(Ta=Kl==null?void 0:Kl.split("("))==null?void 0:Ta[1])==null?void 0:pe.split(")"))==null?void 0:Da[0])==null?void 0:Sl.split(":"))==null||Vl.forEach(jl=>{var $r,Pr;Il=Il===""?Il+(($r=jl==null?void 0:jl.replaceAll("'",""))==null?void 0:$r.trim()):Il+"/"+((Pr=jl==null?void 0:jl.replaceAll("'",""))==null?void 0:Pr.trim())});let mr=[(tr=(Nl=(yr=(nr=(Fl=Kl==null?void 0:Kl.split("<"))==null?void 0:Fl[1])==null?void 0:nr.split(">"))==null?void 0:yr[0])==null?void 0:Nl.replaceAll("'",""))==null?void 0:tr.trim()],or;return(lr=(Ll=(Nr=P==null?void 0:P.data)==null?void 0:Nr.data)==null?void 0:Ll.data)!=null&&lr[Hl==null?void 0:Hl[0]]?or=await ge((Ar=(Ir=(Qr=P==null?void 0:P.data)==null?void 0:Qr.data)==null?void 0:Ir.data)==null?void 0:Ar[Hl==null?void 0:Hl[0]],Il,Hl,Xa):or=await Se((zr=(Er=P==null?void 0:P.data)==null?void 0:Er.data)==null?void 0:zr.data,Il,mr,$e),or}else{const Kl=(Vr=(Dr=(Mr=P==null?void 0:P.data)==null?void 0:Mr.data)==null?void 0:Dr.path)==null?void 0:Vr.path;let Il="";return(rn=(Gr=(gn=(sr=(Or=Kl==null?void 0:Kl.split("("))==null?void 0:Or[1])==null?void 0:sr.split(")"))==null?void 0:gn[0])==null?void 0:Gr.split(":"))==null||rn.forEach(or=>{var jl,$r;Il=Il===""?Il+((jl=or==null?void 0:or.replaceAll("'",""))==null?void 0:jl.trim()):Il+"/"+(($r=or==null?void 0:or.replaceAll("'",""))==null?void 0:$r.trim())}),await Ne((vn=(bn=(Nn=P==null?void 0:P.data)==null?void 0:Nn.data)==null?void 0:bn.data)==null?void 0:vn[Hl==null?void 0:Hl[0]],Il,Hl)}}}}});if(await Promise.all(xa),(ce==null?void 0:ce.length)>0){let ra=[];ce==null||ce.forEach(Ea=>{ra!=null&&ra.find(ma=>{var Pa,Fa,ve,Je;return((Fa=(Pa=ma==null?void 0:ma.value)==null?void 0:Pa.pageData)==null?void 0:Fa.name)===((Je=(ve=Ea==null?void 0:Ea.value)==null?void 0:ve.pageData)==null?void 0:Je.name)})||ra.push(Ea)});let Le=[];ra==null||ra.forEach(Ea=>{var Fa,ve,Je,Ae;let ma=L.cloneDeep(Ea);ma.value.pageData.compData=(Fa=ma.value.pageData.compData)==null?void 0:Fa.map(Xe=>{var ya;return(Xe==null?void 0:Xe.key)==="formContent"&&(Xe.contents=(ya=Xe.contents)==null?void 0:ya.map(pa=>{var Ia,ga,Ha,wa;let Te=(Ia=L.cloneDeep(ce))==null?void 0:Ia.find(ta=>(ta==null?void 0:ta.keyType)===(pa==null?void 0:pa.key));if(Te){let ta=(wa=(Ha=(ga=Te.value.pageData.compData)==null?void 0:ga.find(We=>(We==null?void 0:We.key)==="formContent"))==null?void 0:Ha.contents)==null?void 0:wa.find(We=>(We==null?void 0:We.key)===(pa==null?void 0:pa.key));pa.value=ta==null?void 0:ta.value}return pa})),Xe}),Le.push({id:ma==null?void 0:ma.id,value:ma==null?void 0:ma.value});let Pa=[];(Ae=(Je=(ve=ma==null?void 0:ma.value)==null?void 0:ve.pageData)==null?void 0:Je.compData)==null||Ae.forEach(Xe=>{var ya;(Xe==null?void 0:Xe.key)==="formContent"&&((ya=Xe==null?void 0:Xe.contents)==null||ya.forEach(pa=>{var Te,Ia,ga,Ha,wa,ta;if((Ia=(Te=pa==null?void 0:pa.optionUrl)==null?void 0:Te.menuSelect)!=null&&Ia.find(We=>We==null?void 0:We.includes("[")))if(Pa!=null&&Pa.find(We=>{var Qe,Ca,oe;return((Qe=We==null?void 0:We.key)==null?void 0:Qe.join(","))===((oe=(Ca=pa==null?void 0:pa.optionUrl)==null?void 0:Ca.menuSelect)==null?void 0:oe.join(","))})){let We=(ga=Pa==null?void 0:Pa.find(Qe=>{var Ca,oe,_e;return((Ca=Qe==null?void 0:Qe.key)==null?void 0:Ca.join(","))===((_e=(oe=pa==null?void 0:pa.optionUrl)==null?void 0:oe.menuSelect)==null?void 0:_e.join(","))}))==null?void 0:ga.value;We.push({key:pa==null?void 0:pa.prop,groups:(Ha=pa==null?void 0:pa.optionUrl)==null?void 0:Ha.groupSelect,value:pa==null?void 0:pa.value}),Pa=Pa==null?void 0:Pa.map(Qe=>{var Ca,oe,_e;return((Ca=Qe==null?void 0:Qe.key)==null?void 0:Ca.join(","))===((_e=(oe=pa==null?void 0:pa.optionUrl)==null?void 0:oe.menuSelect)==null?void 0:_e.join(","))&&(Qe.value=We),Qe})}else Pa.push({key:(wa=pa==null?void 0:pa.optionUrl)==null?void 0:wa.menuSelect,value:[{key:pa==null?void 0:pa.prop,groups:(ta=pa==null?void 0:pa.optionUrl)==null?void 0:ta.groupSelect,value:pa==null?void 0:pa.value}]})}))}),(Pa==null?void 0:Pa.length)>0&&(Pa=Pa==null?void 0:Pa.map(Xe=>{var pa;let ya="";return(pa=Xe==null?void 0:Xe.key)==null||pa.forEach(Te=>{var Ia;if(!(Te!=null&&Te.includes("[")))ya=ya===""?ya+Te:ya+"/"+Te;else{let ga="",Ha=(Ia=Te==null?void 0:Te.replaceAll("[","").replaceAll("]",""))==null?void 0:Ia.split(":");Ze==null||Ze.forEach(wa=>{var ta;(wa==null?void 0:wa.name)===(Ha==null?void 0:Ha[0])&&((ta=wa==null?void 0:wa.compData)==null||ta.forEach(We=>{var Qe;(We==null?void 0:We.key)==="formContent"&&((Qe=We==null?void 0:We.contents)==null||Qe.forEach(Ca=>{(Ca==null?void 0:Ca.prop)===(Ha==null?void 0:Ha[1])&&(ga=Ca==null?void 0:Ca.value)}))}))}),ya=ya+o.value+ga}}),Xe.key=ya,Xe})),Pa==null||Pa.forEach(Xe=>{var Ia,ga,Ha;let ya=(Ia=$e[Xe.key])==null?void 0:Ia.find(wa=>{var ta,We,Qe,Ca,oe,_e,Pe;return((We=(ta=wa==null?void 0:wa.value)==null?void 0:ta.pageData)==null?void 0:We.name)===((oe=(Ca=(Qe=Xe==null?void 0:Xe.value)==null?void 0:Qe[0])==null?void 0:Ca.groups)==null?void 0:oe[0])&&((Pe=(_e=wa==null?void 0:wa.value)==null?void 0:_e.pageData)==null?void 0:Pe.name)!==void 0}),pa=ya==null?void 0:ya.id,Te=(ga=ya==null?void 0:ya.value)==null?void 0:ga.pageData;Te.compData=(Ha=Te.compData)==null?void 0:Ha.map(wa=>{var ta;return(wa==null?void 0:wa.key)==="formContent"&&(wa.contents=(ta=wa.contents)==null?void 0:ta.map(We=>{var Ca;let Qe=(Ca=Xe.value)==null?void 0:Ca.find(oe=>(oe==null?void 0:oe.key)===(We==null?void 0:We.prop));return Qe&&(We.value=Qe.value),We})),wa}),Le.push({id:pa,value:{pageData:Te}})})});let Ce=(ze=L.cloneDeep(ce))==null?void 0:ze[0];(Le==null?void 0:Le.length)>0&&await _r.batchUpdateInsofDataApi({dataList:Le})}y.setFreshContent(!0)}w.setImportLoading(!1)}catch{el.ElMessage.error("方法执行错误,请查看方法!"),w.setImportLoading(!1)}b.value=!0},ue=["createInsofDataApi"],Ue=Va.debounce(async ne=>{J(ne)},100),Ba=async ne=>{var ha,Sa,Ja;const D=L.cloneDeep(ne);let re,ke=new WeakMap;ne!=null&&ne[0].path&&(re=await(D==null?void 0:D.map(async(le,la)=>{var qa,F,P,X,te,ce,xa,ra,Le,Ce,Ea,ma,Pa,Fa,ve,Je;const _a=(qa=ke[le==null?void 0:le.path])==null?void 0:qa.filter(Ae=>{var Xe;return((Xe=Ae==null?void 0:Ae.key)==null?void 0:Xe.type)==="data"});let Fe="";const ze=await ca.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ke);_a==null||_a.forEach(Ae=>{var Xe,ya,pa,Te,Ia;((ya=(Xe=Ae==null?void 0:Ae.value)==null?void 0:Xe.tableData)==null?void 0:ya.算法名称)===((pa=D==null?void 0:D[la])==null?void 0:pa.method)&&(Fe=(Ia=(Te=Ae==null?void 0:Ae.value)==null?void 0:Te.tableData)==null?void 0:Ia.算法体)});const $e=await ca.getItemData(le==null?void 0:le.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ke);let Ze="",Xa=(te=(X=(P=(F=$e==null?void 0:$e[0])==null?void 0:F.compData)==null?void 0:P.find(Ae=>(Ae==null?void 0:Ae.key)==="header"))==null?void 0:X.contents)==null?void 0:te.findIndex(Ae=>(Ae==null?void 0:Ae.prop)==="算法体");return(xa=(ce=$e==null?void 0:$e[0])==null?void 0:ce.compData)==null||xa.forEach(Ae=>{var Xe;(Ae==null?void 0:Ae.key)==="tableContents"&&((Xe=Ae==null?void 0:Ae.contents)==null||Xe.forEach(ya=>{ya!=null&&ya.find(pa=>pa===(le==null?void 0:le.method))&&(Ze=ya[Xa])}))}),{buttonName:((ra=D==null?void 0:D[la])==null?void 0:ra.method)||((Ea=(Ce=(Le=_a==null?void 0:_a[0])==null?void 0:Le.value)==null?void 0:Ce.tableData)==null?void 0:Ea.算法名称),api:(Fe===""?(Fa=(Pa=(ma=_a==null?void 0:_a[0])==null?void 0:ma.value)==null?void 0:Pa.tableData)==null?void 0:Fa.算法体:Fe)||Ze,content:ze==null?void 0:ze.filter(Ae=>Ae.comp!=="methodButton"),extraContent:(ve=L.cloneDeep(le.value))==null?void 0:ve.slice(1),methodName:(le==null?void 0:le.path)??"",extraValues:(Je=D==null?void 0:D[la])==null?void 0:Je.data}})));const de=D==null?void 0:D.map(async le=>{var $e,Ze,Xa,qa,F,P;const la=($e=resAll.data.result)==null?void 0:$e.filter(X=>{var te,ce,xa;return((te=X==null?void 0:X.key)==null?void 0:te.parentTable)===""&&((ce=X==null?void 0:X.key)==null?void 0:ce.type)==="method"&&((xa=X==null?void 0:X.key)==null?void 0:xa.methodName)===X.method}),Ve=la==null?void 0:la[0],_a=(Ze=resAll.data.result)==null?void 0:Ze.filter(X=>{var te,ce;return((te=X==null?void 0:X.key)==null?void 0:te.type)==="methodData"&&((ce=X==null?void 0:X.key)==null?void 0:ce.tableId)===(Ve==null?void 0:Ve.id)}),Fe=await ca.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ke),ze=_a==null?void 0:_a[0];return{buttonName:(Xa=Ve==null?void 0:Ve.key)==null?void 0:Xa.methodKey,api:(F=(qa=ze==null?void 0:ze.value)==null?void 0:qa.tableData)==null?void 0:F[0],content:Fe==null?void 0:Fe.filter(X=>X.comp!=="methodButton"),extraContent:(P=L.cloneDeep(le.value))==null?void 0:P.slice(1),methodName:(le==null?void 0:le.method)??""}}),De=(ha=ne==null?void 0:ne[0])!=null&&ha.path&&((Sa=ne==null?void 0:ne[0])==null?void 0:Sa.path)!==""?await Promise.all(re):await Promise.all(de);n.value=De==null?void 0:De.filter(le=>le==null?void 0:le.extraContent),(Ja=n.value)==null||Ja.forEach(le=>{var la;le.api===""&&((la=le.content)==null||la.forEach(Ve=>{var _a;Ve.comp=="Table"&&y.setExtraContents(ca.methodTableToContent(Ve.compData,(_a=le.extraContent)==null?void 0:_a[0]))}))})};return a.watch(()=>s.itemData,async()=>{E.value=="view"&&!b.value&&await Ba(L.cloneDeep(s.itemData)),b.value=!1},{immediate:!0,deep:!0}),(ne,D)=>{var re,ke,de;return a.unref(E)!=="edit"?(a.openBlock(),a.createElementBlock("div",M2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((re=n.value)==null?void 0:re.filter(De=>(De==null?void 0:De.buttonName)!=="保存"),De=>{var ha;return a.openBlock(),a.createElementBlock("div",null,[De.api!==""?(a.openBlock(),a.createBlock(a.unref(es._sfc_main),{key:0,disabled:a.unref(M)===a.unref(C)&&!((ha=De==null?void 0:De.buttonName)!=null&&ha.includes("预览")),class:"calculator-content",modelValue:De.buttonName,onClickTrigger:Sa=>a.unref(Ue)(De),loading:u.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(q)!==""&&((de=a.unref(C))==null?void 0:de[((ke=a.unref(C))==null?void 0:ke.length)-1])!==a.unref(o)?(a.openBlock(),a.createBlock(a.unref(es._sfc_main),{key:0,class:"calculator-content",onClickTrigger:j,modelValue:"保存"})):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:V},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},O2=Jl._export_sfc(I2,[["__scopeId","data-v-063aa9af"]]),L2={};function R2(l,n){return" 567 "}const $2=Jl._export_sfc(L2,[["render",R2]]),V2={class:"module content"},P2={class:"module data"},F2={class:"module layout"},j2={class:"form-content"},H2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),c=a.ref("create"),m=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),p=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),u=a.ref([]),w=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:u.value},{key:"signConfig",contents:y.value}]}),B=O=>{var M;y.value=L.cloneDeep(O),o("change",(M=w())==null?void 0:M.compData)},R=O=>{var M,Z;if((O==null?void 0:O.buttonName)==="确认"){const C=L.cloneDeep(O==null?void 0:O.content);switch(c.value){case"create":u.value.push({...C,index:((M=u.value)==null?void 0:M.length)+1});break}o("change",(Z=w())==null?void 0:Z.compData),s.visible=!1}else s.visible=!1},E=(O,M)=>{var Z,C;switch(O){case"create":(Z=v.value)==null||Z.forEach(_=>{_.value=""}),c.value="create",s.visible=!0;break;case"update":(C=v.value)==null||C.forEach(_=>{_.value=M[_==null?void 0:_.prop]}),c.value="update",s.visible=!0;break;case"delete":u.value.splice(M,1),c.value="delete";break}},q=()=>{s.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,O=>{var M,Z;O&&(y.value=((M=O==null?void 0:O.find(C=>C.key==="signConfig"))==null?void 0:M.contents)??{},u.value=((Z=O==null?void 0:O.find(C=>C.key==="signTypeList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(O,M)=>{const Z=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",V2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=_=>E("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",P2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(_,S)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:S},[a.createElementVNode("span",null,a.toDisplayString(_==null?void 0:_.label),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:g=>E("update",{..._,index:S+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:g=>E("delete",S)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",F2,[a.createVNode(dl.ssForm,{rowContents:p.value,onChange:B},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:q,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",j2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:R},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),U2=Jl._export_sfc(H2,[["__scopeId","data-v-487e0536"]]),q2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(0),c=a.computed(()=>{var w,B;return(w=r==null?void 0:r.stepConfig)!=null&&w.allowTrigger?s.value:(B=r==null?void 0:r.stepConfig)==null?void 0:B.active}),m=(w,B)=>{s.value=B-1,o("clickStep",w,B)};a.onMounted(()=>{var w;o("clickStep",(w=r==null?void 0:r.stepList)==null?void 0:w[0],0)});const p=w=>dl.getComponent(w),v=()=>{var B;const w=(B=r==null?void 0:r.stepList)==null?void 0:B.find((R,E)=>E+1===c.value);return console.log("findStep",w),w?w==null?void 0:w.children:[]},y=w=>{o("clickTrigger",w)},u=w=>{o("changeTrigger",w)};return(w,B)=>{var q,O,M,Z,C;const R=a.resolveComponent("el-step"),E=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(E,{direction:(q=l.stepConfig)==null?void 0:q.direction,active:c.value,"finish-status":"success",simple:(O=l.stepConfig)==null?void 0:O.simple,"align-center":((M=l.stepConfig)==null?void 0:M.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,(_,S)=>(a.openBlock(),a.createBlock(R,{key:S,class:"step-item",onClick:g=>m(_,S+1)},{title:a.withCtx(()=>[a.renderSlot(w.$slots,"title",{title:_==null?void 0:_.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(w.$slots,"description",{descriptions:_==null?void 0:_.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(Z=l.stepConfig)!=null&&Z.allowTrigger&&((C=l.stepConfig)!=null&&C.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),(_,S)=>(a.openBlock(),a.createElementBlock("div",{key:S,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(_==null?void 0:_.type)),{modelValue:_.value,"onUpdate:modelValue":g=>_.value=g,onClickTrigger:y,onChangeTrigger:u,content:_==null?void 0:_.content},a.createSlots({_:2},[a.renderList(w.$slots,(g,b)=>({name:b,fn:a.withCtx(j=>[a.renderSlot(w.$slots,b,a.mergeProps({ref_for:!0},j||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),W2=Jl._export_sfc(q2,[["__scopeId","data-v-fdbd6832"]]),K2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:n}){const r=l,o=n,s=a.ref({}),c=a.ref([]),m=(p,v)=>{o("clickStep",p,v)};return a.watch(()=>r==null?void 0:r.itemData,p=>{var w,B,R,E;s.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let v=((w=p==null?void 0:p.find(q=>(q==null?void 0:q.key)==="stepName"))==null?void 0:w.contents)??[],y=[];(R=(B=p==null?void 0:p.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:B.contents)==null||R.forEach(q=>{y.push({label:q==null?void 0:q.label,prop:q==null?void 0:q.prop,name:q==null?void 0:q.prop,type:"text",disabled:!0})});let u=((E=p==null?void 0:p.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:E.contents)??[];v=v==null?void 0:v.map((q,O)=>{let M=y==null?void 0:y.map(Z=>{var C;return{...Z,value:(C=u==null?void 0:u[O])==null?void 0:C[Z==null?void 0:Z.prop]}});return{title:q,description:M}}),c.value=v},{immediate:!0,deep:!0}),(p,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(W2,{stepConfig:s.value,stepList:c.value,onClickStep:m},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:u})=>[a.createTextVNode(a.toDisplayString(u),1)]),description:a.withCtx(({descriptions:u})=>[a.createVNode(dl.ssForm,{ref:"formRef",rowContents:u,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),G2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(n,r)=>{const o=a.resolveComponent("el-timeline-item"),s=a.resolveComponent("el-timeline");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.activities,(c,m)=>(a.openBlock(),a.createBlock(o,{key:m,timestamp:c.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"content",{content:c==null?void 0:c.content,timestamp:c==null?void 0:c.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),Y2=Jl._export_sfc(G2,[["__scopeId","data-v-4172a886"]]),J2={class:"line-content"},X2={class:"line-time"},Z2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const n=l,r=a.ref({}),o=a.ref([]);return a.watch(()=>n==null?void 0:n.itemData,s=>{var c,m;o.value=(c=s==null?void 0:s.find(p=>(p==null?void 0:p.key)==="timeLineList"))==null?void 0:c.contents,r.value=(m=s==null?void 0:s.find(p=>(p==null?void 0:p.key)==="timeLineConfig"))==null?void 0:m.contents},{immediate:!0}),(s,c)=>(a.openBlock(),a.createBlock(Y2,{activities:o.value,timeLineConfig:r.value},{content:a.withCtx(({content:m,timestamp:p})=>[a.createElementVNode("span",J2,a.toDisplayString(m),1),a.createElementVNode("span",X2,a.toDisplayString(p),1)]),_:1},8,["activities","timeLineConfig"]))}}),Q2=Jl._export_sfc(Z2,[["__scopeId","data-v-b4d9deed"]]),eh={class:"tabs-content"},ah=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(l,{emit:n}){const r=l,o=n,s=a.ref();a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const c=B=>{o("change",B)},m=(B,R)=>{o("contentChange",B,R)},p=B=>{o("pageChange",B)},v=B=>{o("rowClick",B)},y=(B,R)=>{o("routeUrl",B,R)},u=B=>{o("clickTrigger",B)},w=(B,R)=>{o("clickMainKey",B,R)};return(B,R)=>{var E,q;return a.openBlock(),a.createElementBlock("div",eh,[(E=s.value)!=null&&E.length?(a.openBlock(),a.createBlock(dl.ssTab,{tabsContents:s.value,key:(q=s.value)==null?void 0:q.length},{pane:a.withCtx(({tab:O,index:M})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(O==null?void 0:O.comp)),{related:O==null?void 0:O.relatedTables,compNames:r==null?void 0:r.compNames,compName:O==null?void 0:O.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:l.isDevMode,itemData:O==null?void 0:O.compData,childItemData:O==null?void 0:O.itemChildData,onChange:c,index:(O==null?void 0:O.id)??M,config:{showIndex:O==null?void 0:O.showIndex,allowMove:O==null?void 0:O.allowMove,viewport:O==null?void 0:O.viewport},onContentChange:m,onPageChange:p,onRowClick:v,onRouteUrl:y,parentTableId:O==null?void 0:O.tableId,allMapContents:l.allMapContents,children:O==null?void 0:O.children,level:1,onClickTrigger:u,onClickMainKey:w},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),lh=Jl._export_sfc(ah,[["__scopeId","data-v-ded4e0d9"]]),rh={class:"type-select"},nh=["onClick"],oh={class:"list-icon"},ih={__name:"modelSelect",setup(l){const n=Jn(L.pinia),{itemData:r}=L.storeToRefs(n),o=s=>{const c=L.cloneDeep(r.value);c.push({comp:s.comp,name:s.name,compData:[]}),n.setItemData(c)};return(s,c)=>{const m=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",rh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Yc),(p,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>o(p)},[a.createElementVNode("div",oh,[a.createVNode(m,{name:p.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(p.name),1)],8,nh)]))),128))])}}},th=Jl._export_sfc(ih,[["__scopeId","data-v-91799bf8"]]),sh={class:"fill-content"},ch={class:"operate-content"},uh={class:"collapse-title-content"},dh={class:"collapse-title-item"},ph={key:1},fh=["onClick"],hh={class:"icon-content"},vh={key:0,class:"edit-content"},mh=["onClick"],yh={class:"comp-child"},gh={__name:"modelFill",setup(l){const n=Jn(L.pinia),{itemData:r,originalData:o}=L.storeToRefs(n),s=a.ref([]);a.ref([]);const c=a.ref([]),m=a.ref([]),p=R=>{var q;let E=(q=L.cloneDeep(m.value))==null?void 0:q.map((O,M)=>(R===M&&(O.content=!0),O));m.value=E},v=R=>{var q;let E=(q=L.cloneDeep(m.value))==null?void 0:q.map((O,M)=>(R===M&&(O.content=!1),O));m.value=E,s.value=L.cloneDeep(r.value)},y=(R,E)=>{var Z;let q=(Z=L.cloneDeep(m.value))==null?void 0:Z.map((C,_)=>(R===_&&(C.content=!1),C));m.value=q;const O=L.cloneDeep(r.value),M=O==null?void 0:O.filter((C,_)=>(_===R&&(C.name=E),C));n.setOriginalData(M),n.setItemData(M)};a.watch(()=>r.value,()=>{var R,E,q;!r.value||((R=r.value)==null?void 0:R.length)===0?s.value=[]:s.value=(E=L.cloneDeep(r.value))==null?void 0:E.filter(O=>(O==null?void 0:O.comp)!=="methodButton"),c.value=s.value,m.value=(q=L.cloneDeep(c.value))==null?void 0:q.map((O,M)=>({id:M,content:!1}))},{deep:!0,immediate:!0});const u=R=>No(R),w=(R,E,q)=>{var M,Z;if(!R)return;let O=L.cloneDeep(r.value);O=(M=O==null?void 0:O.map((C,_)=>(_===q&&(C.compData=R),C)))==null?void 0:M.filter(C=>(C==null?void 0:C.comp)!=="methodButton"),m.value=(Z=L.cloneDeep(O))==null?void 0:Z.map((C,_)=>({id:_,content:!1})),n.setOriginalData(O),n.setItemData(O)},B=R=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const E=L.cloneDeep(r.value),q=E==null?void 0:E.filter((O,M)=>M!==R);n.setOriginalData(q),n.setItemData(q),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(R,E)=>{const q=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",sh,[E[1]||(E[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",ch,[a.createVNode(Ks.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:O,index:M})=>{var Z,C,_,S,g,b,j,V,G,fe;return[a.createElementVNode("div",uh,[a.createElementVNode("div",dh,[(C=(Z=m.value)==null?void 0:Z.find(Ne=>Ne.id===M))!=null&&C.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:O.name&&O.name!==""?"8px":"0px"})},a.toDisplayString(O.name),5)),(S=(_=m.value)==null?void 0:_.find(Ne=>Ne.id===M))!=null&&S.content?(a.openBlock(),a.createElementBlock("div",ph,[a.createVNode(dl.ssInput,{modelValue:O.name,"onUpdate:modelValue":Ne=>O.name=Ne,onClick:E[0]||(E[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(b=(g=m.value)==null?void 0:g.find(Ne=>Ne.id===M))!=null&&b.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(Ne=>p(M),["stop"]),class:"icon-content"},[a.createVNode(q,{name:"Edit",style:{width:"16px",height:"16px"}})],8,fh))]),a.createElementVNode("div",hh,[(V=(j=m.value)==null?void 0:j.find(Ne=>Ne.id===M))!=null&&V.content?(a.openBlock(),a.createElementBlock("div",vh,[a.createVNode(q,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Ne=>v(M),["stop"])},null,8,["onClick"]),a.createVNode(q,{name:"Save",onClick:a.withModifiers(Ne=>y(M,O.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(fe=(G=m.value)==null?void 0:G.find(Ne=>Ne.id===M))!=null&&fe.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(Ne=>B(M),["stop"]),class:"icon-content"},[a.createVNode(q,{name:"Delete",style:{width:"16px",height:"16px"}})],8,mh))])])]}),content:a.withCtx(({item:O,index:M})=>{var Z,C;return[a.createElementVNode("div",yh,[a.createTextVNode(a.toDisplayString(u(O.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(O.comp+"Operate")),{itemContents:O==null?void 0:O.compData,originalItemContents:(C=(Z=c.value)==null?void 0:Z.find((_,S)=>S===M))==null?void 0:C.compData,onChange:_=>w(_,O,M)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},bh=Jl._export_sfc(gh,[["__scopeId","data-v-a46a44b9"]]),kh={key:0,class:"show-content"},xh={style:{display:"flex"}},wh={__name:"modelShow",setup(l){const n=Jn(L.pinia),{itemData:r}=L.storeToRefs(n),o=a.ref([]);a.watch(()=>r.value,()=>{var c;!r.value||((c=r.value)==null?void 0:c.length)===0?o.value=[]:o.value=L.cloneDeep(r.value)},{deep:!0,immediate:!0});const s=c=>No(c);return(c,m)=>{var p;return((p=o.value)==null?void 0:p.length)>0?(a.openBlock(),a.createElementBlock("div",kh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",xh,a.toDisplayString(v.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},_h=Jl._export_sfc(wh,[["__scopeId","data-v-3f3e863e"]]),Ch={class:"tabs-header"},Sh={class:"tabs-list"},Eh={class:"tab-name"},Dh={class:"tab-actions"},Bh=["onClick"],Nh=["onClick"],Th=["onClick"],Ah={class:"model-operate"},zh={class:"model-select",style:{display:"unset"}},Mh={class:"existing-components"},Ih={class:"component-list"},Oh=["onClick"],Lh={class:"component-info"},Rh={class:"component-type"},$h={class:"component-name"},Vh={class:"model-fill"},Ph={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref(!1),m=a.ref(""),p=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),u=a.ref(-1),w=a.ref(new WeakMap),B=a.ref(null),R=Jn(L.pinia),{itemData:E}=L.storeToRefs(R),q=()=>{m.value="新增标签页",p.value.title="",v.value=-1,c.value=!0},O=ne=>{m.value="修改标签页",p.value.title=s.value[ne].title,v.value=ne,c.value=!0},M=ne=>{const D=_(ne);w.value.delete(D),s.value.splice(ne,1),Ba()},Z=()=>{if(p.value.title.trim()){if(v.value===-1){const ne={title:p.value.title,value:p.value.title,label:p.value.title,children:[],id:C()};s.value.push(ne)}else s.value[v.value].title=p.value.title,s.value[v.value].value=p.value.title,s.value[v.value].label=p.value.title;c.value=!1,Ba()}},C=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,_=ne=>{const D=s.value[ne];return D.id||(D.id=C()),D.id},S=ne=>{var ke;u.value=ne;const D=_(ne);B.value=L.cloneDeep(E.value);let re=w.value.get(D);!re&&((ke=s.value[ne].children)==null?void 0:ke.length)>0&&(re=V(s.value[ne].children)),re?R.setItemData(L.cloneDeep(re)):R.setItemData([]),y.value=!0},g=a.computed(()=>{const ne=L.useModelComp(L.pinia),D=L.storeToRefs(ne).itemData.value;return console.log("可用组件数据",D),!D||!Array.isArray(D)?[]:D.filter(re=>{var ke;if(re.comp==="Tabs"&&u.value>=0){const de=_(u.value);if((ke=re.compData)==null?void 0:ke.some(ha=>{var Sa;return ha.key==="stepList"&&((Sa=ha.contents)==null?void 0:Sa.some(Ja=>Ja.id===de))}))return!1}return!0})}),b=ne=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[ne]||ne,j=ne=>{var D;try{const re=L.cloneDeep(ne);re.id=Date.now()+Math.random(),re.comp==="Tabs"&&((D=re.compData)==null||D.forEach(de=>{de.key==="stepList"&&de.contents&&de.contents.forEach(De=>{De.id=C()})}));const ke=L.cloneDeep(E.value);ke.push(re),R.setItemData(ke)}catch(re){console.error("添加组件失败:",re)}},V=ne=>ne.map(D=>{var re;switch(D.type){case"form":return{comp:"Form",name:D.value||"表单",compData:G(D.content)};case"table":return{comp:"Table",name:D.value||"表格",compData:fe(D.content)};default:return{comp:"Unknown",name:D.value||"",compData:((re=D.content)==null?void 0:re.originalData)||[]}}}),G=ne=>{if(!ne)return[];const D=[];return ne.rowContents&&D.push({key:"formContent",contents:ne.rowContents}),ne.buttonValue&&D.push({key:"formButton",contents:ne.buttonValue}),typeof ne.isEnableWrap<"u"&&D.push({key:"enableWrap",contents:ne.isEnableWrap}),D},fe=ne=>[],Ne=()=>{if(u.value>=0&&u.value<s.value.length){const ne=_(u.value);w.value.set(ne,L.cloneDeep(E.value)),s.value[u.value].children=ge(E.value),console.log("保存后的数据",ge(E.value))}y.value=!1,u.value=-1,B.value=null,Ba()},Se=()=>{B.value&&R.setItemData(L.cloneDeep(B.value)),y.value=!1,u.value=-1,B.value=null},Q=()=>{y.value&&Se()},ge=ne=>{if(!Array.isArray(ne))throw new Error("sourceData must be an array");return ne.map((D,re)=>{if(!D||typeof D!="object")return D;const{comp:ke,name:de,compData:De}=D;switch(ke){case"Form":return{type:"form",content:J(De||[]),value:"表单"};case"Table":return{type:"table",content:ue(De||[]),value:"表格"};default:return{type:"xxx",content:Ue(De||[]),value:""}}})},J=ne=>{const D={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},re={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return ne.forEach((ke,de)=>{if(!ke||typeof ke!="object"){console.warn(`Invalid config at index ${de}:`,ke);return}const{key:De,contents:ha}=ke,Sa=re[De];if(!Sa){console.warn(`Unknown Form config key: ${De}`);return}De==="enableWrap"?D[Sa]=!!ha:D[Sa]=Array.isArray(ha)?ha:[]}),D},ue=ne=>{const D={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},re={header:"columns",tableContents:"tableData"};return ne.forEach((ke,de)=>{if(!ke||typeof ke!="object"){console.warn(`Invalid config at index ${de}:`,ke);return}const{key:De,contents:ha}=ke,Sa=re[De];if(!Sa){console.warn(`Unknown Table config key: ${De}`);return}D[Sa]=Array.isArray(ha)?ha:[]}),D},Ue=ne=>(console.log("Default conversion logic - to be implemented"),{originalData:ne,processed:!1,componentType:"unknown"}),Ba=()=>{const ne=[{key:"stepList",contents:s.value}];o("change",ne)};return a.watch(()=>r.itemContents,ne=>{if(ne&&ne.length>0){const D=ne.find(re=>re.key==="stepList");D&&D.contents&&(s.value=D.contents.map(re=>({title:re.title||"",value:re.value||re.title||"",label:re.label||re.title||"",children:re.children||[],id:re.id||C()})))}},{immediate:!0,deep:!0}),(ne,D)=>{const re=a.resolveComponent("svg-icon"),ke=a.resolveComponent("el-input"),de=a.resolveComponent("el-form-item"),De=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Ch,[D[6]||(D[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:q},[a.createVNode(re,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),D[5]||(D[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",Sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(ha,Sa)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:Sa},[a.createElementVNode("span",Eh,a.toDisplayString(ha.title),1),a.createElementVNode("div",Dh,[a.createElementVNode("button",{onClick:Ja=>O(Sa)},"修改标题",8,Bh),a.createElementVNode("button",{onClick:Ja=>S(Sa)},"布局调整",8,Nh),a.createElementVNode("button",{onClick:Ja=>M(Sa)},"删除",8,Th)])]))),128))]),a.createVNode(xr.ssDialog,{modelValue:c.value,"onUpdate:modelValue":D[2]||(D[2]=ha=>c.value=ha),title:m.value,onBeforeDestroy:D[3]||(D[3]=ha=>c.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:D[1]||(D[1]=ha=>c.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:Z},"确定")]),default:a.withCtx(()=>[a.createVNode(De,{model:p.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(de,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(ke,{modelValue:p.value.title,"onUpdate:modelValue":D[0]||(D[0]=ha=>p.value.title=ha),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(xr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":D[4]||(D[4]=ha=>y.value=ha),title:"布局调整",fullScreen:"",onBeforeDestroy:Q},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:Se},"取消"),a.createElementVNode("button",{onClick:Ne},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",Ah,[a.createElementVNode("div",zh,[a.createVNode(th),a.createElementVNode("div",Mh,[D[8]||(D[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",Ih,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.value,ha=>(a.openBlock(),a.createElementBlock("div",{key:ha.id,class:"component-item",onClick:Sa=>j(ha)},[a.createElementVNode("div",Lh,[a.createElementVNode("span",Rh,a.toDisplayString(b(ha.comp)),1),a.createElementVNode("span",$h,a.toDisplayString(ha.name),1)]),D[7]||(D[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Oh))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:ne.innerWidth},[a.createVNode(_h)])),a.createElementVNode("div",Vh,[a.createVNode(bh)])])]),_:1},8,["modelValue"])])}}},Fh=Jl._export_sfc(Ph,[["__scopeId","data-v-9096ed0d"]]);function jh(){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 Hh(l){return{type:"line",...l}}function Uh(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function qh(l){return{type:"bar",barWidth:"60%",...l}}function Wh(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function Kh(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Vn={line:{initBaseoptions:jh,initSeries:Hh},bar:{initBaseoptions:Uh,initSeries:qh},pie:{initBaseoptions:Wh,initSeries:Kh}},bs=L.useMenuState(L.pinia),Bc=(l,n)=>{var u;const r=[],o=[],{group:s,nameCol:c,valueCol:m}=n||{},p=l==null?void 0:l.find(w=>{const{name:B}=w;return B===s});if(!p)return{names:r,values:o};const v=(u=p==null?void 0:p.compData)==null?void 0:u.find(w=>{const{key:B}=w;return B==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(w=>{const B=w==null?void 0:w[0];let R=!1;el.isObject(B)&&(B!=null&&B.id)&&(R=!0);let E=c,q=m;R&&(E=E+1,q=q+1);const O=w==null?void 0:w[E],M=w==null?void 0:w[q];r.push(O),o.push(M)}),{names:r,values:o}},Gh=async l=>{const{menu:n,mainKey:r,detailGroup:o,detailNameCol:s,detailValueCol:c,isSelfDetail:m}=l||{};let p=null;const v=sessionStorage.getItem("systemKey");if(m&&bs.activeMenuPath&&(p=await ca.getItemData(`${bs.activeMenuPath}`,v,"")),!m){const y=n==null?void 0:n.join("/");p=await ca.getItemData(`${y}^${r}`,v,"")}return Bc(p,{group:o,nameCol:s,valueCol:c})},Yh=async l=>{const{menu:n,group:r,nameCol:o,valueCol:s}=l||{},c=n==null?void 0:n.join("/"),m=sessionStorage.getItem("systemKey"),p=await ca.getItemData(c,m,"");return Bc(p,{group:r,nameCol:o,valueCol:s})},Dt=async(l,n)=>{const r={names:[],values:[]},{menu:o,group:s,nameCol:c,valueCol:m}=l||{};if(!o.length||!s)return r;const{mainKey:p,group:v,nameCol:y,valueCol:u,isSelfDetail:w}=n||{};return p&&v&&dl.isNumber(y)&&dl.isNumber(u)?await Gh({menu:o,mainKey:p,detailGroup:v,detailNameCol:y,detailValueCol:u,isSelfDetail:w}):dl.isNumber(c)&&dl.isNumber(m)?await Yh({menu:o,group:s,nameCol:c,valueCol:m}):r},Jh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:m,initSeries:p}=c,v=m();v.title.text=s??"";const{names:y,values:u}=await Dt(n,r);if(!y||!u)return v;v.xAxis.data=y;const w=p({data:u});return v.series.push(w),v},Xh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:m,initSeries:p}=c,v=m();v.title.text=s??"";const{names:y,values:u}=await Dt(n,r);if(!y||!u)return v;v.xAxis.data=y;const w=p({data:u});return v.series.push(w),v},Zh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:m,initSeries:p}=c,v=m();v.title.text=s??"";const{names:y,values:u}=await Dt(n,r);if(!y||!u)return v;const w=[];for(let R=0;R<y.length;R++){const E=y[R],q=u[R];w.push({name:E,value:q})}const B=p({data:w});return v.series.push(B),v},Qh=async(l=[])=>{var m,p,v;const n=((m=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:m.contents)??{},r=((p=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:p.contents)??{},o=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=n;let c={};return s==="line"&&(c=await Jh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),s==="bar"&&(c=await Xh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),s==="pie"&&(c=await Zh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),c},e4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const n=l,r=a.ref({});a.onMounted(async()=>{const s=n==null?void 0:n.itemData;r.value=await Qh(s)});const o=a.computed(()=>(n==null?void 0:n.height)||"300px");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:o.value})},[a.createVNode(_u.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),a4=Jl._export_sfc(e4,[["__scopeId","data-v-d4c081e8"]]),l4={class:"chart-module layout"},r4={class:"chart-module content"},n4={class:"chart-module content"},o4={class:"form-content"},i4={class:"dialog-footer"},t4={class:"form-content"},s4={class:"dialog-footer"},c4={class:"form-content"},u4={class:"dialog-footer"},d4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),c=a.ref([]),m=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],p=a.ref({}),v=()=>{var Fe;c.value=m(),(Fe=c.value)==null||Fe.forEach(ze=>{var Ze;const $e=ze==null?void 0:ze.prop;ze.value=(Ze=p==null?void 0:p.value)==null?void 0:Ze[$e]}),s.visible=!0},y=Fe=>{p.value=Fe},u=()=>{var Fe;s.visible=!1,o("change",(Fe=Ve())==null?void 0:Fe.compData)},w=a.reactive({visible:!1,width:"840",title:"数据配置"}),B=a.ref([]),R=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],E=a.ref({}),q=()=>{const Fe=B.value,ze=L.cloneDeep(Fe);return ze==null||ze.forEach($e=>{var Xa;const Ze=$e==null?void 0:$e.prop;$e.value=(Xa=E.value)==null?void 0:Xa[Ze]}),ze},O=Fe=>{var $e;E.value=Fe;const ze=q();B.value=ze,o("change",($e=Ve())==null?void 0:$e.compData)},M=async()=>{const Fe=await ca.getMenusContent(),ze=q();ze==null||ze.forEach($e=>{($e==null?void 0:$e.prop)==="menu"&&($e.contents=Fe)}),B.value=ze,w.visible=!0,await ha(E.value.menu),await le(E.value.group)},Z=a.reactive({visible:!1,width:"840",title:"详情页配置"}),C=a.ref([]),_=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],S=a.ref({}),g=()=>{const Fe=C.value,ze=L.cloneDeep(Fe);return ze==null||ze.forEach($e=>{var Xa;const Ze=$e==null?void 0:$e.prop;$e.value=(Xa=S.value)==null?void 0:Xa[Ze]}),ze},b=Fe=>{var $e;S.value=Fe;const ze=g();C.value=ze,o("change",($e=Ve())==null?void 0:$e.compData)},j=async()=>{await Q();const Fe=L.cloneDeep(V.value),ze=g();ze==null||ze.forEach($e=>{var Xa;const Ze=$e==null?void 0:$e.prop;$e.value=(Xa=S==null?void 0:S.value)==null?void 0:Xa[Ze],Ze==="mainKey"&&($e.contents=Fe)}),C.value=ze,Z.visible=!0},V=a.ref([]),G=a.ref([]),fe=a.ref({}),Ne=a.ref({}),Se=()=>{const{compData:Fe}=ke.value||{},ze=Fe==null?void 0:Fe.find(X=>{const{key:te}=X;return te==="header"}),$e=(ze==null?void 0:ze.contents)||[],Ze=$e==null?void 0:$e.filter((X,te)=>{const{label:ce}=X;return ce!=="操作"}),Xa=Ze==null?void 0:Ze.findIndex((X,te)=>{const{isMainKey:ce}=X;return ce});if(Xa<0)return[];const qa=Fe==null?void 0:Fe.find(X=>{const{key:te}=X;return te==="tableContents"}),F=(qa==null?void 0:qa.contents)||[];return F==null?void 0:F.map(X=>{const te=X==null?void 0:X[0];let ce=Xa;el.isObject(te)&&(te!=null&&te.id)&&(ce=ce+1);const xa=X==null?void 0:X[ce];return{label:xa,value:xa}})},Q=async()=>{const Fe=await Se();V.value=Fe},ge=async Fe=>{const ze=sessionStorage.getItem("systemKey");return await ca.getItemData(Fe,ze,"")},J=async Fe=>{const ze=Fe;G.value=ze==null?void 0:ze.map($e=>{const{name:Ze}=$e;return fe.value[Ze]=$e,{label:Ze,value:Ze}})},ue=Fe=>{const{comp:ze,compData:$e}=Ne.value||{};if(ze==="Table"){let Ze=g();Ze=Ze.filter(Xa=>{const{prop:qa}=Xa;return qa!=="formItems"}),Sa(Ze,$e),C.value=Ze}},Ue=async()=>{var $e,Ze;const Fe=($e=S==null?void 0:S.value)==null?void 0:$e.mainKey,ze=(Ze=E==null?void 0:E.value)==null?void 0:Ze.menu;if(Fe){const qa=`${ze==null?void 0:ze.join("/")}^${Fe}`,F=await ge(qa);await J(F);const P=g();P==null||P.forEach(X=>{(X==null?void 0:X.prop)==="group"&&(X.contents=G.value)}),C.value=P}};a.watch(()=>{var Fe;return(Fe=S==null?void 0:S.value)==null?void 0:Fe.mainKey},async(Fe,ze)=>{Fe!=ze&&Fe&&await Ue()});const Ba=async Fe=>{const ze=fe.value[Fe];Ne.value=ze,await ue()};a.watch(()=>{var Fe;return(Fe=S==null?void 0:S.value)==null?void 0:Fe.group},async(Fe,ze)=>{Fe!=ze&&Fe&&Ba(Fe)});const ne=async()=>{var ze;await Ue();const Fe=(ze=S.value)==null?void 0:ze.group;await Ba(Fe)},D=a.ref([]),re=a.ref({}),ke=a.ref({}),de=async Fe=>{const ze=Fe==null?void 0:Fe.join("/"),$e=sessionStorage.getItem("systemKey");return await ca.getItemData(ze,$e,"")},De=async Fe=>{const ze=await de(Fe);D.value=ze==null?void 0:ze.map($e=>{const{name:Ze}=$e;return re.value[Ze]=$e,{label:Ze,value:Ze}})},ha=async(Fe,ze)=>{await De(Fe);const $e=q();$e==null||$e.forEach(Ze=>{(Ze==null?void 0:Ze.prop)==="group"&&(Ze.contents=D.value)}),B.value=$e};a.watch(()=>{var Fe;return(Fe=E==null?void 0:E.value)==null?void 0:Fe.menu},async(Fe,ze)=>{const $e=Fe==null?void 0:Fe.join("/"),Ze=ze==null?void 0:ze.join("/");$e!=Ze&&await ha(Fe)});const Sa=(Fe,ze)=>{const $e=ze==null?void 0:ze.find(F=>{const{key:P}=F;return P==="header"}),Ze=($e==null?void 0:$e.contents)||[],Xa=Ze==null?void 0:Ze.filter((F,P)=>{const{label:X}=F;return X!=="操作"}),qa=Xa==null?void 0:Xa.map((F,P)=>{const{label:X}=F;return{label:X,value:P}});Fe==null||Fe.forEach(F=>{const P=F==null?void 0:F.prop;(P==="nameCol"||P==="valueCol")&&(F.contents=qa)})},Ja=Fe=>{const{comp:ze,compData:$e}=ke.value||{};if(ze==="Table"){E.value.formItems=[];let Ze=q();Ze=Ze.filter(Xa=>{const{prop:qa}=Xa;return qa!=="formItems"}),Sa(Ze,$e),B.value=Ze}},le=async Fe=>{const ze=re.value[Fe];ke.value=ze,await Ja()};a.watch(()=>{var Fe;return(Fe=E==null?void 0:E.value)==null?void 0:Fe.group},async(Fe,ze)=>{Fe!=ze&&le(Fe)});const la=async()=>{var $e,Ze;const Fe=($e=E.value)==null?void 0:$e.menu;await ha(Fe);const ze=(Ze=E.value)==null?void 0:Ze.group;await le(ze)},Ve=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:p.value},{key:"chartDataConfig",contents:E.value},{key:"chartDetailConfig",contents:S.value}]}),_a=()=>{s.visible=!1,w.visible=!1,Z.visible=!1};return a.onMounted(async()=>{var ze,$e,Ze;B.value=R(),C.value=_();const Fe=r==null?void 0:r.itemContents;p.value=((ze=Fe==null?void 0:Fe.find(Xa=>Xa.key==="chartBaseConfig"))==null?void 0:ze.contents)??{},E.value=(($e=Fe==null?void 0:Fe.find(Xa=>Xa.key==="chartDataConfig"))==null?void 0:$e.contents)??{},await la(),S.value=((Ze=Fe==null?void 0:Fe.find(Xa=>Xa.key==="chartDetailConfig"))==null?void 0:Ze.contents)??{},await ne()}),(Fe,ze)=>{const $e=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",l4,[ze[4]||(ze[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode($e,{id:"themeButton",onClick:ze[0]||(ze[0]=Ze=>v())},{default:a.withCtx(()=>ze[3]||(ze[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",r4,[ze[6]||(ze[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:ze[1]||(ze[1]=Ze=>M())},{default:a.withCtx(()=>ze[5]||(ze[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",n4,[ze[8]||(ze[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:ze[2]||(ze[2]=Ze=>j())},{default:a.withCtx(()=>ze[7]||(ze[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(xr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:_a,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",o4,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",i4,[a.createVNode($e,{class:"cancel-button button",onClick:_a,id:"themeBorderButton"},{default:a.withCtx(()=>ze[9]||(ze[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode($e,{class:"ok-button button",onClick:u,id:"themeButton"},{default:a.withCtx(()=>ze[10]||(ze[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(xr.ssDialog,{visible:w.visible,title:w.title,onBeforeDestroy:_a,width:w.width},{default:a.withCtx(()=>[a.createElementVNode("div",t4,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:B.value,key:B.value,isEnableWrap:!0,onChange:O},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",s4,[a.createVNode($e,{class:"cancel-button button",onClick:_a,id:"themeBorderButton"},{default:a.withCtx(()=>ze[11]||(ze[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode($e,{class:"ok-button button",onClick:_a,id:"themeButton"},{default:a.withCtx(()=>ze[12]||(ze[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(xr.ssDialog,{visible:Z.visible,title:Z.title,onBeforeDestroy:_a,width:Z.width},{default:a.withCtx(()=>[a.createElementVNode("div",c4,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:b},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",u4,[a.createVNode($e,{class:"cancel-button button",onClick:_a,id:"themeBorderButton"},{default:a.withCtx(()=>ze[13]||(ze[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode($e,{class:"ok-button button",onClick:_a,id:"themeButton"},{default:a.withCtx(()=>ze[14]||(ze[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),p4=Jl._export_sfc(d4,[["__scopeId","data-v-fe119645"]]),f4={class:"layout"},h4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:n}){const r=n,o=l;a.onMounted(async()=>{});const s=a.computed(()=>L.cloneDeep(o==null?void 0:o.itemData)||[]),c=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(w=>{const{key:B}=w;return B==="baseConfig"});return y==null?void 0:y.contents}),m=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(w=>{const{key:B}=w;return B==="children"});return y==null?void 0:y.contents}),p=a.computed(()=>{let y=L.cloneDeep(m.value)||[];const u=y.length;let w=0;const B=[];if(y=y.map(R=>{const E=R.span;return E?(R.span=Number(E),w=w+R.span):B.push(R),R}),w<24){const R=Math.floor((24-w)/u);B.forEach(E=>{E.span=R})}return y}),v=y=>{r("rowClick",y)};return(y,u)=>{var R;const w=a.resolveComponent("el-col"),B=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",f4,[a.createVNode(B,{style:a.normalizeStyle({height:(R=c.value)==null?void 0:R.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(E,q)=>(a.openBlock(),a.createBlock(w,{span:E==null?void 0:E.span},{default:a.withCtx(()=>{var O;return[a.unref(Bo)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(E.comp)),{key:a.unref(Yn),compName:E.name,index:(E==null?void 0:E.id)??q,height:(O=c.value)==null?void 0:O.height,itemData:E==null?void 0:E.compData,childItemData:E==null?void 0:E.itemChildData,onChange:a.unref(Bi),onContentChange:a.unref(Ni),onPageChange:a.unref(Ti),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),v4=Jl._export_sfc(h4,[["__scopeId","data-v-ab9a36ed"]]),m4={class:"layout-operate"},y4={class:"layout-module"},g4={class:"collapse-title-item"},b4={class:"collapse-title"},k4={class:"icon-content"},x4=["onClick"],w4={class:"comp-child"},_4=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n;a.onMounted(()=>{q()});const s=a.ref({}),c=a.ref({}),m=a.ref([]),p=S=>[{label:"高度",prop:"height",type:"input",value:S==null?void 0:S.height}],v=S=>{c.value=S,o("change",_(),!0)},y=a.ref([]),u=a.ref([]),w=S=>[{label:"占比",prop:"span",type:"input",value:S==null?void 0:S.span}],B=a.computed(()=>{const S=r==null?void 0:r.itemContents;return L.cloneDeep(S)}),R=a.computed(()=>{const S=B==null?void 0:B.value,g=S==null?void 0:S.find(b=>{const{key:j}=b;return j==="baseConfig"});return g==null?void 0:g.contents}),E=a.computed(()=>{const S=B==null?void 0:B.value,g=S==null?void 0:S.find(b=>{const{key:j}=b;return j==="children"});return g==null?void 0:g.contents}),q=()=>{var S;s.value=B.value||{},y.value=(E==null?void 0:E.value)||[],m.value=p(),m.value=(S=m.value)==null?void 0:S.map(g=>{var j;const{prop:b}=g;return g.value=(j=R.value)==null?void 0:j[b],g})};a.watch(()=>{var S;return(S=E==null?void 0:E.value)==null?void 0:S.length},()=>{var S;y.value=(E==null?void 0:E.value)||[],u.value=(S=E.value)==null?void 0:S.map(g=>w(g))},{immediate:!0});const O=(S,g)=>{const b=L.cloneDeep(E==null?void 0:E.value);b[g].span=S.span,y.value=b,o("change",_(),!0)},M=S=>No(S),Z=(S,g,b)=>{if(!S)return;const j=L.cloneDeep(E==null?void 0:E.value);j[b]&&(j[b].compData=S,y.value=j,o("change",_(),!0))},C=S=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let g=L.cloneDeep(E==null?void 0:E.value);g=g==null?void 0:g.filter((b,j)=>S!==j),y.value=g,o("change",_(),!0),el.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=()=>({compData:[{key:"baseConfig",contents:c.value},{key:"children",contents:y==null?void 0:y.value}]});return(S,g)=>{const b=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",m4,[a.createElementVNode("div",y4,[g[1]||(g[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(dl.ssForm,{rowContents:m.value,isEnableWrap:!0,onChange:g[0]||(g[0]=j=>v(j))},null,8,["rowContents"])])]),a.createVNode(Ks.default,{class:"collapse-content",collapseContents:E.value},{title:a.withCtx(({item:j,index:V})=>[a.createElementVNode("div",g4,[a.createElementVNode("div",b4,a.toDisplayString(j.name),1),a.createElementVNode("div",k4,[a.createElementVNode("div",{onClick:a.withModifiers(G=>C(V),["stop"]),class:"icon-content"},[a.createVNode(b,{name:"Delete",style:{width:"16px",height:"16px"}})],8,x4)])])]),content:a.withCtx(({item:j,index:V})=>[a.createElementVNode("div",w4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:u.value[V],key:V,isEnableWrap:!0,onChange:G=>O(G,V)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(M(j.comp+"Operate")),{itemContents:j==null?void 0:j.compData,originalItemContents:j.compData,onChange:G=>Z(G,j,V)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),C4=Jl._export_sfc(_4,[["__scopeId","data-v-ba05456e"]]),S4=typeof window<"u";var ks;S4&&((ks=window==null?void 0:window.navigator)!=null&&ks.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cn(l){return l==null}function Nc(){}const E4=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(E4)));function D4(){const l=new Map;return{on(n,r){const o=l.get(n);o!=null&&o.add(r)||l.set(n,new Set([r]))},off(n,r){const o=l.get(n);o&&o.delete(r)},clear(n){const r=l.get(n);r&&r.clear()},clearAll(){l.clear()},emit(n,...r){const o=l.get(n);o&&o.forEach(s=>{s(...r)})}}}function xs(l,n=16){if(typeof l!="function")return Nc;const r=(...c)=>{l(...c)};if(n<=0)return Tc(r);let o=0,s;return function(...c){const m=Date.now(),p=m-o;clearTimeout(s),p>=n?(o=m,r(...c)):s=setTimeout(()=>{o=Date.now(),r(...c)},Math.max(0,n-p))}}function B4(l,n=100){if(typeof l!="function")return Nc;const r=(...s)=>{l(...s)};if(n<=0)return Tc(r);let o;return function(...s){clearTimeout(o),o=setTimeout(()=>{r(...s)},n)}}function Tc(l){if(typeof l!="function")return l;let n=!1,r,o;return function(...s){return r=s,n||(n=!0,o=Promise.resolve().then(()=>(n=!1,o=void 0,l(...r)))),o}}const Po=new Set,Ac=new WeakMap;function N4(){Po.forEach(l=>{l(...Ac.get(l))}),Po.clear()}function Jr(l,...n){if(typeof l!="function")return l;Ac.set(l,n),!Po.has(l)&&(Po.add(l),Po.size===1&&Promise.resolve().then(N4))}const zc=Symbol("LAYOUT_KEY"),Mc=Symbol("EMITTER_KEY");function T4(l){let n=0,r;for(let o=0,s=l.length;o<s;o++)r=l[o].y+l[o].h,r>n&&(n=r);return n}function kt(l){const n=Array(l.length);for(let r=0,o=l.length;r<o;r++)n[r]=A4(l[r]);return n}function A4(l){return{...l}}function Ic(l,n){return!(l===n||l.x+l.w<=n.x||l.x>=n.x+n.w||l.y+l.h<=n.y||l.y>=n.y+n.h)}function wo(l,n,r){const o=Lc(l),s=Rc(l),c=Array(l.length);for(let m=0,p=s.length;m<p;m++){let v=s[m];v.static||(v=z4(o,v,n,r),o.push(v)),c[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return c}function z4(l,n,r,o){if(r)for(;n.y>0&&!Fo(l,n);)n.y--;else if(o){const c=o[n.i].y;for(;n.y>c&&!Fo(l,n);)n.y--}let s;for(;s=Fo(l,n);)n.y=s.y+s.h;return n}function M4(l,n){const r=Lc(l);for(let o=0,s=l.length;o<s;o++){const c=l[o];if(c.x+c.w>n.cols&&(c.x=n.cols-c.w),c.x<0&&(c.x=0,c.w=n.cols),!c.static)r.push(c);else for(;Fo(r,c);)c.y++}return l}function ws(l,n){for(let r=0,o=l.length;r<o;r++)if(l[r].i===n)return l[r]}function Fo(l,n){for(let r=0,o=l.length;r<o;r++)if(Ic(l[r],n))return l[r]}function Oc(l,n){return l.filter(r=>Ic(r,n))}function Lc(l){return l.filter(n=>n.static)}function xt(l,n,r,o,s=!1,c=!1){if(n.static)return l;const m=n.x,p=n.y,v=o&&n.y>o;typeof r=="number"&&(n.x=r),typeof o=="number"&&(n.y=o),n.moved=!0;let y=Rc(l);v&&(y=y.reverse());const u=Oc(y,n);if(c&&u.length)return n.x=m,n.y=p,n.moved=!1,l;for(let w=0,B=u.length;w<B;w++){const R=u[w];R.moved||n.y>R.y&&n.y-R.y>R.h/4||(R.static?l=_s(l,R,n,s):l=_s(l,n,R,s))}return l}function _s(l,n,r,o){if(o){const s={x:r.x,y:r.y,w:r.w,h:r.h};if(s.y=Math.max(n.y-r.h,0),!Fo(l,s))return xt(l,r,void 0,s.y,!1)}return xt(l,r,void 0,r.y+1,!1)}function I4(l,n,r,o){const s="translate3d("+n+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:o+"px",position:"absolute"}}function O4(l,n,r,o){const s="translate3d("+n*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:o+"px",position:"absolute"}}function L4(l,n,r,o){return{top:l+"px",left:n+"px",width:r+"px",height:o+"px",position:"absolute"}}function R4(l,n,r,o){return{top:l+"px",right:n+"px",width:r+"px",height:o+"px",position:"absolute"}}function Rc(l){return Array.from(l).sort(function(n,r){return n.y===r.y&&n.x===r.x?0:n.y>r.y||n.y===r.y&&n.x>r.x?1:-1})}function $4(l,n){n=n||"Layout";const r=["x","y","w","h"],o=[];if(!Array.isArray(l))throw new Error(n+" must be an array!");for(let s=0,c=l.length;s<c;s++){const m=l[s];for(let p=0;p<r.length;p++)if(typeof m[r[p]]!="number")throw new Error("VueGridLayout: "+n+"["+s+"]."+r[p]+" must be a number!");if(m.i===void 0||m.i===null)throw new Error("VueGridLayout: "+n+"["+s+"].i cannot be null!");if(typeof m.i!="number"&&typeof m.i!="string")throw new Error("VueGridLayout: "+n+"["+s+"].i must be a string or number!");if(o.indexOf(m.i)>=0)throw new Error("VueGridLayout: "+n+"["+s+"].i must be unique!");if(o.push(m.i),m.static!==void 0&&typeof m.static!="boolean")throw new Error("VueGridLayout: "+n+"["+s+"].static must be a boolean!")}}function V4(l,n="vgl"){const r=()=>`${n}-${l}`;return{b:r,be:o=>`${r()}__${o}`,bm:o=>`${r()}--${o}`,bem:(o,s)=>`${r()}__${o}--${s}`}}function Cs(l){return P4(l)}function P4(l){var n;const r=((n=l.target)==null?void 0:n.offsetParent)||document.body,o=l.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),s=l.clientX+r.scrollLeft-o.left,c=l.clientY+r.scrollTop-o.top;return{x:s,y:c}}function Ss(l,n,r,o){return F4(l)?{deltaX:r-l,deltaY:o-n,lastX:l,lastY:n,x:r,y:o}:{deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}}function F4(l){return typeof l=="number"&&!Number.isNaN(l)}function j4(l,n){const r=Vc(l);let o=r[0];for(let s=1,c=r.length;s<c;s++){const m=r[s];n>l[m]&&(o=m)}return o}function $c(l,n){if(!n[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return n[l]}function H4(l,n,r,o,s,c,m){if(n[o])return kt(n[o]);let p=l;const v=Vc(r),y=v.slice(v.indexOf(o));for(let u=0,w=y.length;u<w;u++){const B=y[u];if(n[B]){p=n[B];break}}return p=kt(p||[]),wo(M4(p,{cols:c}),m)}function Vc(l){return Object.keys(l).sort((n,r)=>l[n]-l[r])}let U4="auto";function q4(){return typeof document<"u"}function Es(){return q4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):U4}var $o={exports:{}},W4=$o.exports,Ds;function K4(){return Ds||(Ds=1,function(l,n){(function(r,o){l.exports=o()})(W4,function(){function r(t,i){var f=Object.keys(t);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(t);i&&(k=k.filter(function(x){return Object.getOwnPropertyDescriptor(t,x).enumerable})),f.push.apply(f,k)}return f}function o(t){for(var i=1;i<arguments.length;i++){var f=arguments[i]!=null?arguments[i]:{};i%2?r(Object(f),!0).forEach(function(k){v(t,k,f[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(f)):r(Object(f)).forEach(function(k){Object.defineProperty(t,k,Object.getOwnPropertyDescriptor(f,k))})}return t}function s(t){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s(t)}function c(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function m(t,i){for(var f=0;f<i.length;f++){var k=i[f];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(t,q(k.key),k)}}function p(t,i,f){return i&&m(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t,i,f){return(i=q(i))in t?Object.defineProperty(t,i,{value:f,enumerable:!0,configurable:!0,writable:!0}):t[i]=f,t}function y(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&w(t,i)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},u(t)}function w(t,i){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,k){return f.__proto__=k,f},w(t,i)}function B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function R(t){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var f,k=u(t);if(i){var x=u(this).constructor;f=Reflect.construct(k,arguments,x)}else f=k.apply(this,arguments);return function(I,U){if(U&&(typeof U=="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(I)}(this,f)}}function E(){return E=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,i,f){var k=function(I,U){for(;!Object.prototype.hasOwnProperty.call(I,U)&&(I=u(I))!==null;);return I}(t,i);if(k){var x=Object.getOwnPropertyDescriptor(k,i);return x.get?x.get.call(arguments.length<3?t:f):x.value}},E.apply(this,arguments)}function q(t){var i=function(f,k){if(typeof f!="object"||f===null)return f;var x=f[Symbol.toPrimitive];if(x!==void 0){var I=x.call(f,k);if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(t,"string");return typeof i=="symbol"?i:i+""}var O=function(t){return!(!t||!t.Window)&&t instanceof t.Window},M=void 0,Z=void 0;function C(t){M=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(i)===i&&(t=t.wrap(t)),Z=t}function _(t){return O(t)?t:(t.ownerDocument||t).defaultView||Z.window}typeof window<"u"&&window&&C(window);var S=function(t){return!!t&&s(t)==="object"},g=function(t){return typeof t=="function"},b={window:function(t){return t===Z||O(t)},docFrag:function(t){return S(t)&&t.nodeType===11},object:S,func:g,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||s(t)!=="object")return!1;var i=_(t)||Z;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?t instanceof Element||t instanceof i.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return S(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return S(t)&&t.length!==void 0&&g(t.splice)}};function j(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 k=f.prepared.axis;if(k==="x"||k==="y"){var x=k==="x"?"y":"x";i.page[x]=f.coords.start.page[x],i.client[x]=f.coords.start.client[x],i.delta[x]=0}}}var G={id:"actions/drag",install:function(t){var i=t.actions,f=t.Interactable,k=t.defaults;f.prototype.draggable=G.draggable,i.map.drag=G,i.methodDict.drag="draggable",k.actions.drag=G.defaults},listeners:{"interactions:before-action-move":j,"interactions:action-resume":j,"interactions:action-move":V,"auto-start:check":function(t){var i=t.interaction,f=t.interactable,k=t.buttons,x=f.options.drag;if(x&&x.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(k&f.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:x.lockAxis==="start"?x.startAxis:x.lockAxis},!1}},draggable:function(t){return b.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):b.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:j,move:V,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},fe=G,Ne={init:function(t){var i=t;Ne.document=i.document,Ne.DocumentFragment=i.DocumentFragment||Se,Ne.SVGElement=i.SVGElement||Se,Ne.SVGSVGElement=i.SVGSVGElement||Se,Ne.SVGElementInstance=i.SVGElementInstance||Se,Ne.Element=i.Element||Se,Ne.HTMLElement=i.HTMLElement||Ne.Element,Ne.Event=i.Event,Ne.Touch=i.Touch||Se,Ne.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 Se(){}var Q=Ne,ge={init:function(t){var i=Q.Element,f=t.navigator||{};ge.supportsTouch="ontouchstart"in t||b.func(t.DocumentTouch)&&Q.document instanceof t.DocumentTouch,ge.supportsPointerEvent=f.pointerEnabled!==!1&&!!Q.PointerEvent,ge.isIOS=/iP(hone|od|ad)/.test(f.platform),ge.isIOS7=/iP(hone|od|ad)/.test(f.platform)&&/OS 7[^\d]/.test(f.appVersion),ge.isIe9=/MSIE 9/.test(f.userAgent),ge.isOperaMobile=f.appName==="Opera"&&ge.supportsTouch&&/Presto/.test(f.userAgent),ge.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",ge.pEventTypes=ge.supportsPointerEvent?Q.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ge.wheelEvent=Q.document&&"onmousewheel"in Q.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},J=ge;function ue(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function Ue(t,i){for(;b.element(t);){if(ne(t,i))return t;t=Ba(t)}return null}function Ba(t){var i=t.parentNode;if(b.docFrag(i)){for(;(i=i.host)&&b.docFrag(i););return i}return i}function ne(t,i){return Z!==M&&(i=i.replace(/\/deep\//g," ")),t[J.prefixedMatchesSelector](i)}var D=function(t){return t.parentNode||t.host};function re(t,i){for(var f,k=[],x=t;(f=D(x))&&x!==i&&f!==x.ownerDocument;)k.unshift(x),x=f;return k}function ke(t,i,f){for(;b.element(t);){if(ne(t,i))return!0;if((t=Ba(t))===f)return ne(t,i)}return!1}function de(t){return t.correspondingUseElement||t}function De(t){var i=t instanceof Q.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function ha(t){var i,f=De(t);if(!J.isIOS7&&f){var k={x:(i=(i=_(t))||Z).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};f.left+=k.x,f.right+=k.x,f.top+=k.y,f.bottom+=k.y}return f}function Sa(t){for(var i=[];t;)i.push(t),t=Ba(t);return i}function Ja(t){return!!b.string(t)&&(Q.document.querySelector(t),!0)}function le(t,i){for(var f in i)t[f]=i[f];return t}function la(t,i,f){return t==="parent"?Ba(f):t==="self"?i.getRect(f):Ue(f,t)}function Ve(t,i,f,k){var x=t;return b.string(x)?x=la(x,i,f):b.func(x)&&(x=x.apply(void 0,k)),b.element(x)&&(x=ha(x)),x}function _a(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Fe(t){return!t||"x"in t&&"y"in t||((t=le({},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 ze(t,i,f){t.left&&(i.left+=f.x),t.right&&(i.right+=f.x),t.top&&(i.top+=f.y),t.bottom&&(i.bottom+=f.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function $e(t,i,f){var k=f&&t.options[f];return _a(Ve(k&&k.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function Ze(t,i){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(he){return!0},k=arguments.length>3?arguments[3]:void 0;if(k=k||{},b.string(t)&&t.search(" ")!==-1&&(t=Xa(t)),b.array(t))return t.forEach(function(he){return Ze(he,i,f,k)}),k;if(b.object(t)&&(i=t,t=""),b.func(i)&&f(t))k[t]=k[t]||[],k[t].push(i);else if(b.array(i))for(var x=0,I=i;x<I.length;x++){var U=I[x];Ze(t,U,f,k)}else if(b.object(i))for(var Y in i)Ze(Xa(Y).map(function(he){return"".concat(t).concat(he)}),i[Y],f,k);return k}function Xa(t){return t.trim().split(/ +/)}var qa=function(t,i){return Math.sqrt(t*t+i*i)},F=["webkit","moz"];function P(t,i){t.__set||(t.__set={});var f=function(x){if(F.some(function(I){return x.indexOf(I)===0}))return 1;typeof t[x]!="function"&&x!=="__set"&&Object.defineProperty(t,x,{get:function(){return x in t.__set?t.__set[x]:t.__set[x]=i[x]},set:function(I){t.__set[x]=I},configurable:!0})};for(var k in i)f(k);return t}function X(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function te(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function ce(t){return t instanceof Q.Event||t instanceof Q.Touch}function xa(t,i,f){return t=t||"page",(f=f||{}).x=i[t+"X"],f.y=i[t+"Y"],f}function ra(t,i){return i=i||{x:0,y:0},J.isOperaMobile&&ce(t)?(xa("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):xa("page",t,i),i}function Le(t){return b.number(t.pointerId)?t.pointerId:t.identifier}function Ce(t,i,f){var k=i.length>1?ma(i):i[0];ra(k,t.page),function(x,I){I=I||{},J.isOperaMobile&&ce(x)?xa("screen",x,I):xa("client",x,I)}(k,t.client),t.timeStamp=f}function Ea(t){var i=[];return b.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 ma(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},f=0;f<t.length;f++){var k=t[f];for(var x in i)i[x]+=k[x]}for(var I in i)i[I]/=t.length;return i}function Pa(t){if(!t.length)return null;var i=Ea(t),f=Math.min(i[0].pageX,i[1].pageX),k=Math.min(i[0].pageY,i[1].pageY),x=Math.max(i[0].pageX,i[1].pageX),I=Math.max(i[0].pageY,i[1].pageY);return{x:f,y:k,left:f,top:k,right:x,bottom:I,width:x-f,height:I-k}}function Fa(t,i){var f=i+"X",k=i+"Y",x=Ea(t),I=x[0][f]-x[1][f],U=x[0][k]-x[1][k];return qa(I,U)}function ve(t,i){var f=i+"X",k=i+"Y",x=Ea(t),I=x[1][f]-x[0][f],U=x[1][k]-x[0][k];return 180*Math.atan2(U,I)/Math.PI}function Je(t){return b.string(t.pointerType)?t.pointerType:b.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof Q.Touch?"touch":"mouse"}function Ae(t){var i=b.func(t.composedPath)?t.composedPath():t.path;return[de(i?i[0]:t.target),de(t.currentTarget)]}var Xe=function(){function t(i){c(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return p(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Xe.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var ya=function(t,i){for(var f=0;f<i.length;f++){var k=i[f];t.push(k)}return t},pa=function(t){return ya([],t)},Te=function(t,i){for(var f=0;f<t.length;f++)if(i(t[f],f,t))return f;return-1},Ia=function(t,i){return t[Te(t,i)]},ga=function(t){y(f,t);var i=R(f);function f(k,x,I){var U;c(this,f),(U=i.call(this,x._interaction)).dropzone=void 0,U.dragEvent=void 0,U.relatedTarget=void 0,U.draggable=void 0,U.propagationStopped=!1,U.immediatePropagationStopped=!1;var Y=I==="dragleave"?k.prev:k.cur,he=Y.element,Oe=Y.dropzone;return U.type=I,U.target=he,U.currentTarget=he,U.dropzone=Oe,U.dragEvent=x,U.relatedTarget=x.target,U.draggable=x.interactable,U.timeStamp=x.timeStamp,U}return p(f,[{key:"reject",value:function(){var k=this,x=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&x.cur.dropzone===this.dropzone&&x.cur.element===this.target)if(x.prev.dropzone=this.dropzone,x.prev.element=this.target,x.rejected=!0,x.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var I=x.activeDrops,U=Te(I,function(he){var Oe=he.dropzone,xe=he.element;return Oe===k.dropzone&&xe===k.target});x.activeDrops.splice(U,1);var Y=new f(x,this.dragEvent,"dropdeactivate");Y.dropzone=this.dropzone,Y.target=this.target,this.dropzone.fire(Y)}else this.dropzone.fire(new f(x,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}(Xe);function Ha(t,i){for(var f=0,k=t.slice();f<k.length;f++){var x=k[f],I=x.dropzone,U=x.element;i.dropzone=I,i.target=U,I.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function wa(t,i){for(var f=function(I,U){for(var Y=[],he=0,Oe=I.interactables.list;he<Oe.length;he++){var xe=Oe[he];if(xe.options.drop.enabled){var ea=xe.options.drop.accept;if(!(b.element(ea)&&ea!==U||b.string(ea)&&!ne(U,ea)||b.func(ea)&&!ea({dropzone:xe,draggableElement:U})))for(var $a=0,sl=xe.getAllElements();$a<sl.length;$a++){var nl=sl[$a];nl!==U&&Y.push({dropzone:xe,element:nl,rect:xe.getRect(nl)})}}}return Y}(t,i),k=0;k<f.length;k++){var x=f[k];x.rect=x.dropzone.getRect(x.element)}return f}function ta(t,i,f){for(var k=t.dropState,x=t.interactable,I=t.element,U=[],Y=0,he=k.activeDrops;Y<he.length;Y++){var Oe=he[Y],xe=Oe.dropzone,ea=Oe.element,$a=Oe.rect,sl=xe.dropCheck(i,f,x,I,ea,$a);U.push(sl?ea:null)}var nl=function(cl){for(var _l,ul,Tl,Ol=[],Xl=0;Xl<cl.length;Xl++){var Bl=cl[Xl],Ul=cl[_l];if(Bl&&Xl!==_l)if(Ul){var jr=D(Bl),wr=D(Ul);if(jr!==Bl.ownerDocument)if(wr!==Bl.ownerDocument)if(jr!==wr){Ol=Ol.length?Ol:re(Ul);var Yr=void 0;if(Ul instanceof Q.HTMLElement&&Bl instanceof Q.SVGElement&&!(Bl instanceof Q.SVGSVGElement)){if(Bl===wr)continue;Yr=Bl.ownerSVGElement}else Yr=Bl;for(var on=re(Yr,Ul.ownerDocument),pn=0;on[pn]&&on[pn]===Ol[pn];)pn++;var fo=[on[pn-1],on[pn],Ol[pn]];if(fo[0])for(var In=fo[0].lastChild;In;){if(In===fo[1]){_l=Xl,Ol=on;break}if(In===fo[2])break;In=In.previousSibling}}else Tl=Ul,(parseInt(_(ul=Bl).getComputedStyle(ul).zIndex,10)||0)>=(parseInt(_(Tl).getComputedStyle(Tl).zIndex,10)||0)&&(_l=Xl);else _l=Xl}else _l=Xl}return _l}(U);return k.activeDrops[nl]||null}function We(t,i,f){var k=t.dropState,x={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return f.type==="dragstart"&&(x.activate=new ga(k,f,"dropactivate"),x.activate.target=null,x.activate.dropzone=null),f.type==="dragend"&&(x.deactivate=new ga(k,f,"dropdeactivate"),x.deactivate.target=null,x.deactivate.dropzone=null),k.rejected||(k.cur.element!==k.prev.element&&(k.prev.dropzone&&(x.leave=new ga(k,f,"dragleave"),f.dragLeave=x.leave.target=k.prev.element,f.prevDropzone=x.leave.dropzone=k.prev.dropzone),k.cur.dropzone&&(x.enter=new ga(k,f,"dragenter"),f.dragEnter=k.cur.element,f.dropzone=k.cur.dropzone)),f.type==="dragend"&&k.cur.dropzone&&(x.drop=new ga(k,f,"drop"),f.dropzone=k.cur.dropzone,f.relatedTarget=k.cur.element),f.type==="dragmove"&&k.cur.dropzone&&(x.move=new ga(k,f,"dropmove"),f.dropzone=k.cur.dropzone)),x}function Qe(t,i){var f=t.dropState,k=f.activeDrops,x=f.cur,I=f.prev;i.leave&&I.dropzone.fire(i.leave),i.enter&&x.dropzone.fire(i.enter),i.move&&x.dropzone.fire(i.move),i.drop&&x.dropzone.fire(i.drop),i.deactivate&&Ha(k,i.deactivate),f.prev.dropzone=x.dropzone,f.prev.element=x.element}function Ca(t,i){var f=t.interaction,k=t.iEvent,x=t.event;if(k.type==="dragmove"||k.type==="dragend"){var I=f.dropState;i.dynamicDrop&&(I.activeDrops=wa(i,f.element));var U=k,Y=ta(f,U,x);I.rejected=I.rejected&&!!Y&&Y.dropzone===I.cur.dropzone&&Y.element===I.cur.element,I.cur.dropzone=Y&&Y.dropzone,I.cur.element=Y&&Y.element,I.events=We(f,0,U)}}var oe={id:"actions/drop",install:function(t){var i=t.actions,f=t.interactStatic,k=t.Interactable,x=t.defaults;t.usePlugin(fe),k.prototype.dropzone=function(I){return function(U,Y){if(b.object(Y)){if(U.options.drop.enabled=Y.enabled!==!1,Y.listeners){var he=Ze(Y.listeners),Oe=Object.keys(he).reduce(function(ea,$a){return ea[/^(enter|leave)/.test($a)?"drag".concat($a):/^(activate|deactivate|move)/.test($a)?"drop".concat($a):$a]=he[$a],ea},{}),xe=U.options.drop.listeners;xe&&U.off(xe),U.on(Oe),U.options.drop.listeners=Oe}return b.func(Y.ondrop)&&U.on("drop",Y.ondrop),b.func(Y.ondropactivate)&&U.on("dropactivate",Y.ondropactivate),b.func(Y.ondropdeactivate)&&U.on("dropdeactivate",Y.ondropdeactivate),b.func(Y.ondragenter)&&U.on("dragenter",Y.ondragenter),b.func(Y.ondragleave)&&U.on("dragleave",Y.ondragleave),b.func(Y.ondropmove)&&U.on("dropmove",Y.ondropmove),/^(pointer|center)$/.test(Y.overlap)?U.options.drop.overlap=Y.overlap:b.number(Y.overlap)&&(U.options.drop.overlap=Math.max(Math.min(1,Y.overlap),0)),"accept"in Y&&(U.options.drop.accept=Y.accept),"checker"in Y&&(U.options.drop.checker=Y.checker),U}return b.bool(Y)?(U.options.drop.enabled=Y,U):U.options.drop}(this,I)},k.prototype.dropCheck=function(I,U,Y,he,Oe,xe){return function(ea,$a,sl,nl,cl,_l,ul){var Tl=!1;if(!(ul=ul||ea.getRect(_l)))return!!ea.options.drop.checker&&ea.options.drop.checker($a,sl,Tl,ea,_l,nl,cl);var Ol=ea.options.drop.overlap;if(Ol==="pointer"){var Xl=$e(nl,cl,"drag"),Bl=ra($a);Bl.x+=Xl.x,Bl.y+=Xl.y;var Ul=Bl.x>ul.left&&Bl.x<ul.right,jr=Bl.y>ul.top&&Bl.y<ul.bottom;Tl=Ul&&jr}var wr=nl.getRect(cl);if(wr&&Ol==="center"){var Yr=wr.left+wr.width/2,on=wr.top+wr.height/2;Tl=Yr>=ul.left&&Yr<=ul.right&&on>=ul.top&&on<=ul.bottom}return wr&&b.number(Ol)&&(Tl=Math.max(0,Math.min(ul.right,wr.right)-Math.max(ul.left,wr.left))*Math.max(0,Math.min(ul.bottom,wr.bottom)-Math.max(ul.top,wr.top))/(wr.width*wr.height)>=Ol),ea.options.drop.checker&&(Tl=ea.options.drop.checker($a,sl,Tl,ea,_l,nl,cl)),Tl}(this,I,U,Y,he,Oe,xe)},f.dynamicDrop=function(I){return b.bool(I)?(t.dynamicDrop=I,f):t.dynamicDrop},le(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,x.actions.drop=oe.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,k=(t.event,t.iEvent);if(f.prepared.name==="drag"){var x=f.dropState;x.activeDrops=[],x.events={},x.activeDrops=wa(i,f.element),x.events=We(f,0,k),x.events.activate&&(Ha(x.activeDrops,x.events.activate),i.fire("actions/drop:start",{interaction:f,dragEvent:k}))}},"interactions:action-move":Ca,"interactions:after-action-move":function(t,i){var f=t.interaction,k=t.iEvent;if(f.prepared.name==="drag"){var x=f.dropState;Qe(f,x.events),i.fire("actions/drop:move",{interaction:f,dragEvent:k}),x.events={}}},"interactions:action-end":function(t,i){if(t.interaction.prepared.name==="drag"){var f=t.interaction,k=t.iEvent;Ca(t,i),Qe(f,f.dropState.events),i.fire("actions/drop:end",{interaction:f,dragEvent:k})}},"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:wa,getDrop:ta,getDropEvents:We,fireDropEvents:Qe,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},_e=oe;function Pe(t){var i=t.interaction,f=t.iEvent,k=t.phase;if(i.prepared.name==="gesture"){var x=i.pointers.map(function(Oe){return Oe.pointer}),I=k==="start",U=k==="end",Y=i.interactable.options.deltaSource;if(f.touches=[x[0],x[1]],I)f.distance=Fa(x,Y),f.box=Pa(x),f.scale=1,f.ds=0,f.angle=ve(x,Y),f.da=0,i.gesture.startDistance=f.distance,i.gesture.startAngle=f.angle;else if(U||i.pointers.length<2){var he=i.prevEvent;f.distance=he.distance,f.box=he.box,f.scale=he.scale,f.ds=0,f.angle=he.angle,f.da=0}else f.distance=Fa(x,Y),f.box=Pa(x),f.scale=f.distance/i.gesture.startDistance,f.angle=ve(x,Y),f.ds=f.scale-i.gesture.scale,f.da=f.angle-i.gesture.angle;i.gesture.distance=f.distance,i.gesture.angle=f.angle,b.number(f.scale)&&f.scale!==1/0&&!isNaN(f.scale)&&(i.gesture.scale=f.scale)}}var ie={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,f=t.Interactable,k=t.defaults;f.prototype.gesturable=function(x){return b.object(x)?(this.options.gesture.enabled=x.enabled!==!1,this.setPerAction("gesture",x),this.setOnEvents("gesture",x),this):b.bool(x)?(this.options.gesture.enabled=x,this):this.options.gesture},i.map.gesture=ie,i.methodDict.gesture="gesturable",k.actions.gesture=ie.defaults},listeners:{"interactions:action-start":Pe,"interactions:action-move":Pe,"interactions:action-end":Pe,"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}},Ka=ie;function vl(t,i,f,k,x,I,U){if(!i)return!1;if(i===!0){var Y=b.number(I.width)?I.width:I.right-I.left,he=b.number(I.height)?I.height:I.bottom-I.top;if(U=Math.min(U,Math.abs((t==="left"||t==="right"?Y:he)/2)),Y<0&&(t==="left"?t="right":t==="right"&&(t="left")),he<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var Oe=Y>=0?I.left:I.right;return f.x<Oe+U}if(t==="top"){var xe=he>=0?I.top:I.bottom;return f.y<xe+U}if(t==="right")return f.x>(Y>=0?I.right:I.left)-U;if(t==="bottom")return f.y>(he>=0?I.bottom:I.top)-U}return!!b.element(k)&&(b.element(i)?i===k:ke(k,i,x))}function Wl(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.resizeAxes){var k=i;f.interactable.options.resize.square?(f.resizeAxes==="y"?k.delta.x=k.delta.y:k.delta.y=k.delta.x,k.axes="xy"):(k.axes=f.resizeAxes,f.resizeAxes==="x"?k.delta.y=0:f.resizeAxes==="y"&&(k.delta.x=0))}}var Wa,fa,va={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,f=t.browser,k=t.Interactable,x=t.defaults;va.cursors=function(I){return I.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(f),va.defaultMargin=f.supportsTouch||f.supportsPointerEvent?20:10,k.prototype.resizable=function(I){return function(U,Y,he){return b.object(Y)?(U.options.resize.enabled=Y.enabled!==!1,U.setPerAction("resize",Y),U.setOnEvents("resize",Y),b.string(Y.axis)&&/^x$|^y$|^xy$/.test(Y.axis)?U.options.resize.axis=Y.axis:Y.axis===null&&(U.options.resize.axis=he.defaults.actions.resize.axis),b.bool(Y.preserveAspectRatio)?U.options.resize.preserveAspectRatio=Y.preserveAspectRatio:b.bool(Y.square)&&(U.options.resize.square=Y.square),U):b.bool(Y)?(U.options.resize.enabled=Y,U):U.options.resize}(this,I,t)},i.map.resize=va,i.methodDict.resize="resizable",x.actions.resize=va.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(i){var f=i.iEvent,k=i.interaction;if(k.prepared.name==="resize"&&k.prepared.edges){var x=f,I=k.rect;k._rects={start:le({},I),corrected:le({},I),previous:le({},I),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},x.edges=k.prepared.edges,x.rect=k._rects.corrected,x.deltaRect=k._rects.delta}})(t),Wl(t)},"interactions:action-move":function(t){(function(i){var f=i.iEvent,k=i.interaction;if(k.prepared.name==="resize"&&k.prepared.edges){var x=f,I=k.interactable.options.resize.invert,U=I==="reposition"||I==="negate",Y=k.rect,he=k._rects,Oe=he.start,xe=he.corrected,ea=he.delta,$a=he.previous;if(le($a,xe),U){if(le(xe,Y),I==="reposition"){if(xe.top>xe.bottom){var sl=xe.top;xe.top=xe.bottom,xe.bottom=sl}if(xe.left>xe.right){var nl=xe.left;xe.left=xe.right,xe.right=nl}}}else xe.top=Math.min(Y.top,Oe.bottom),xe.bottom=Math.max(Y.bottom,Oe.top),xe.left=Math.min(Y.left,Oe.right),xe.right=Math.max(Y.right,Oe.left);for(var cl in xe.width=xe.right-xe.left,xe.height=xe.bottom-xe.top,xe)ea[cl]=xe[cl]-$a[cl];x.edges=k.prepared.edges,x.rect=xe,x.deltaRect=ea}})(t),Wl(t)},"interactions:action-end":function(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.prepared.edges){var k=i;k.edges=f.prepared.edges,k.rect=f._rects.corrected,k.deltaRect=f._rects.delta}},"auto-start:check":function(t){var i=t.interaction,f=t.interactable,k=t.element,x=t.rect,I=t.buttons;if(x){var U=le({},i.coords.cur.page),Y=f.options.resize;if(Y&&Y.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(I&Y.mouseButtons)!=0)){if(b.object(Y.edges)){var he={left:!1,right:!1,top:!1,bottom:!1};for(var Oe in he)he[Oe]=vl(Oe,Y.edges[Oe],U,i._latestPointer.eventTarget,k,x,Y.margin||va.defaultMargin);he.left=he.left&&!he.right,he.top=he.top&&!he.bottom,(he.left||he.right||he.top||he.bottom)&&(t.action={name:"resize",edges:he})}else{var xe=Y.axis!=="y"&&U.x>x.right-va.defaultMargin,ea=Y.axis!=="x"&&U.y>x.bottom-va.defaultMargin;(xe||ea)&&(t.action={name:"resize",axes:(xe?"x":"")+(ea?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,f=t.axis,k=t.name,x=va.cursors,I=null;if(f)I=x[k+f];else if(i){for(var U="",Y=0,he=["top","bottom","left","right"];Y<he.length;Y++){var Oe=he[Y];i[Oe]&&(U+=Oe)}I=x[U]}return I},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},ba=va,Ye={id:"actions",install:function(t){t.usePlugin(Ka),t.usePlugin(ba),t.usePlugin(fe),t.usePlugin(_e)}},Za=0,Ee={request:function(t){return Wa(t)},cancel:function(t){return fa(t)},init:function(t){if(Wa=t.requestAnimationFrame,fa=t.cancelAnimationFrame,!Wa)for(var i=["ms","moz","webkit","o"],f=0;f<i.length;f++){var k=i[f];Wa=t["".concat(k,"RequestAnimationFrame")],fa=t["".concat(k,"CancelAnimationFrame")]||t["".concat(k,"CancelRequestAnimationFrame")]}Wa=Wa&&Wa.bind(t),fa=fa&&fa.bind(t),Wa||(Wa=function(x){var I=Date.now(),U=Math.max(0,16-(I-Za)),Y=t.setTimeout(function(){x(I+U)},U);return Za=I+U,Y},fa=function(x){return clearTimeout(x)})}},Ke={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){Ke.isScrolling=!0,Ee.cancel(Ke.i),t.autoScroll=Ke,Ke.interaction=t,Ke.prevTime=Ke.now(),Ke.i=Ee.request(Ke.scroll)},stop:function(){Ke.isScrolling=!1,Ke.interaction&&(Ke.interaction.autoScroll=null),Ee.cancel(Ke.i)},scroll:function(){var t=Ke.interaction,i=t.interactable,f=t.element,k=t.prepared.name,x=i.options[k].autoScroll,I=me(x.container,i,f),U=Ke.now(),Y=(U-Ke.prevTime)/1e3,he=x.speed*Y;if(he>=1){var Oe={x:Ke.x*he,y:Ke.y*he};if(Oe.x||Oe.y){var xe=Ra(I);b.window(I)?I.scrollBy(Oe.x,Oe.y):I&&(I.scrollLeft+=Oe.x,I.scrollTop+=Oe.y);var ea=Ra(I),$a={x:ea.x-xe.x,y:ea.y-xe.y};($a.x||$a.y)&&i.fire({type:"autoscroll",target:f,interactable:i,delta:$a,interaction:t,container:I})}Ke.prevTime=U}Ke.isScrolling&&(Ee.cancel(Ke.i),Ke.i=Ee.request(Ke.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()&&Ke.check(i.interactable,i.prepared.name))if(i.simulation)Ke.x=Ke.y=0;else{var k,x,I,U,Y=i.interactable,he=i.element,Oe=i.prepared.name,xe=Y.options[Oe].autoScroll,ea=me(xe.container,Y,he);if(b.window(ea))U=f.clientX<Ke.margin,k=f.clientY<Ke.margin,x=f.clientX>ea.innerWidth-Ke.margin,I=f.clientY>ea.innerHeight-Ke.margin;else{var $a=De(ea);U=f.clientX<$a.left+Ke.margin,k=f.clientY<$a.top+Ke.margin,x=f.clientX>$a.right-Ke.margin,I=f.clientY>$a.bottom-Ke.margin}Ke.x=x?1:U?-1:0,Ke.y=I?1:k?-1:0,Ke.isScrolling||(Ke.margin=xe.margin,Ke.speed=xe.speed,Ke.start(i))}}};function me(t,i,f){return(b.string(t)?la(t,i,f):t)||_(f)}function Ra(t){return b.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var qe={id:"auto-scroll",install:function(t){var i=t.defaults,f=t.actions;t.autoScroll=Ke,Ke.now=function(){return t.now()},f.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=Ke.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Ke.stop(),Ke.interaction&&(Ke.interaction=null)},"interactions:stop":Ke.stop,"interactions:action-move":function(t){return Ke.onInteractionMove(t)}}},K=qe;function aa(t,i){var f=!1;return function(){return f||(Z.console.warn(i),f=!0),t.apply(this,arguments)}}function Ge(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Be(t){return b.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Cl(t){return b.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var tl={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(f,k,x,I){var U=function(Y,he,Oe,xe,ea){var $a=Y.getRect(xe),sl=he.buttons||{0:1,1:4,3:8,4:16}[he.button],nl={action:null,interactable:Y,interaction:Oe,element:xe,rect:$a,buttons:sl};return ea.fire("auto-start:check",nl),nl.action}(this,k,x,I,t);return this.options.actionChecker?this.options.actionChecker(f,k,U,this,I,x):U},i.prototype.ignoreFrom=aa(function(f){return this._backCompatOption("ignoreFrom",f)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=aa(function(f){return this._backCompatOption("allowFrom",f)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=Cl,i.prototype.styleCursor=Be}};function bl(t,i,f,k,x){return i.testIgnoreAllow(i.options[t.name],f,k)&&i.options[t.name].enabled&&pe(i,f,t,x)?t:null}function Ga(t,i,f,k,x,I,U){for(var Y=0,he=k.length;Y<he;Y++){var Oe=k[Y],xe=x[Y],ea=Oe.getAction(i,f,t,xe);if(ea){var $a=bl(ea,Oe,xe,I,U);if($a)return{action:$a,interactable:Oe,element:xe}}}return{action:null,interactable:null,element:null}}function Qa(t,i,f,k,x){var I=[],U=[],Y=k;function he(xe){I.push(xe),U.push(Y)}for(;b.element(Y);){I=[],U=[],x.interactables.forEachMatch(Y,he);var Oe=Ga(t,i,f,I,U,k,x);if(Oe.action&&!Oe.interactable.options[Oe.action.name].manualStart)return Oe;Y=Ba(Y)}return{action:null,interactable:null,element:null}}function Ta(t,i,f){var k=i.action,x=i.interactable,I=i.element;k=k||{name:null},t.interactable=x,t.element=I,Ge(t.prepared,k),t.rect=x&&k.name?x.getRect(I):null,Vl(t,f),f.fire("autoStart:prepared",{interaction:t})}function pe(t,i,f,k){var x=t.options,I=x[f.name].max,U=x[f.name].maxPerElement,Y=k.autoStart.maxInteractions,he=0,Oe=0,xe=0;if(!(I&&U&&Y))return!1;for(var ea=0,$a=k.interactions.list;ea<$a.length;ea++){var sl=$a[ea],nl=sl.prepared.name;if(sl.interacting()&&(++he>=Y||sl.interactable===t&&((Oe+=nl===f.name?1:0)>=I||sl.element===i&&(xe++,nl===f.name&&xe>=U))))return!1}return Y>0}function Da(t,i){return b.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function Sl(t,i,f){var k=f.autoStart.cursorElement;k&&k!==t&&(k.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,f.autoStart.cursorElement=i?t:null}function Vl(t,i){var f=t.interactable,k=t.element,x=t.prepared;if(t.pointerType==="mouse"&&f&&f.options.styleCursor){var I="";if(x.name){var U=f.options[x.name].cursorChecker;I=b.func(U)?U(x,f,k,t._interacting):i.actions.map[x.name].getCursor(x)}Sl(t.element,I||"",i)}else i.autoStart.cursorElement&&Sl(i.autoStart.cursorElement,"",i)}var Fl={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,f=t.defaults;t.usePlugin(tl),f.base.actionChecker=null,f.base.styleCursor=!0,le(f.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(k){return Da(k,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:pe,cursorElement:null}},listeners:{"interactions:down":function(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget;f.interacting()||Ta(f,Qa(f,k,x,I,i),i)},"interactions:move":function(t,i){(function(f,k){var x=f.interaction,I=f.pointer,U=f.event,Y=f.eventTarget;x.pointerType!=="mouse"||x.pointerIsDown||x.interacting()||Ta(x,Qa(x,I,U,Y,k),k)})(t,i),function(f,k){var x=f.interaction;if(x.pointerIsDown&&!x.interacting()&&x.pointerWasMoved&&x.prepared.name){k.fire("autoStart:before-start",f);var I=x.interactable,U=x.prepared.name;U&&I&&(I.options[U].manualStart||!pe(I,x.element,x.prepared,k)?x.stop():(x.start(x.prepared,I,x.element),Vl(x,k)))}}(t,i)},"interactions:stop":function(t,i){var f=t.interaction,k=f.interactable;k&&k.options.styleCursor&&Sl(f.element,"",i)}},maxInteractions:Da,withinInteractionLimit:pe,validateAction:bl},nr=Fl,yr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var f=t.interaction,k=t.eventTarget,x=t.dx,I=t.dy;if(f.prepared.name==="drag"){var U=Math.abs(x),Y=Math.abs(I),he=f.interactable.options.drag,Oe=he.startAxis,xe=U>Y?"x":U<Y?"y":"xy";if(f.prepared.axis=he.lockAxis==="start"?xe[0]:he.lockAxis,xe!=="xy"&&Oe!=="xy"&&Oe!==xe){f.prepared.name=null;for(var ea=k,$a=function(nl){if(nl!==f.interactable){var cl=f.interactable.options.drag;if(!cl.manualStart&&nl.testIgnoreAllow(cl,ea,k)){var _l=nl.getAction(f.downPointer,f.downEvent,f,ea);if(_l&&_l.name==="drag"&&function(ul,Tl){if(!Tl)return!1;var Ol=Tl.options.drag.startAxis;return ul==="xy"||Ol==="xy"||Ol===ul}(xe,nl)&&nr.validateAction(_l,nl,ea,k,i))return nl}}};b.element(ea);){var sl=i.interactables.forEachMatch(ea,$a);if(sl){f.prepared.name="drag",f.interactable=sl,f.element=ea;break}ea=Ba(ea)}}}}}};function Nl(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var f=t.interactable.options;return f[i].hold||f[i].delay}var tr={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(nr),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,f=Nl(i);f>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},f))},"interactions:move":function(t){var i=t.interaction,f=t.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!f&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;Nl(i)>0&&(i.prepared.name=null)}},getHoldDuration:Nl},Nr=tr,Ll={id:"auto-start",install:function(t){t.usePlugin(nr),t.usePlugin(Nr),t.usePlugin(yr)}},lr=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):b.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Qr(t){var i=t.interaction,f=t.event;i.interactable&&i.interactable.checkAndPreventDefault(f)}var Ir={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=lr,i.prototype.checkAndPreventDefault=function(f){return function(k,x,I){var U=k.options.preventDefault;if(U!=="never")if(U!=="always"){if(x.events.supportsPassive&&/^touch(start|move)$/.test(I.type)){var Y=_(I.target).document,he=x.getDocOptions(Y);if(!he||!he.events||he.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(I.type)||b.element(I.target)&&ne(I.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||I.preventDefault()}else I.preventDefault()}(this,t,f)},t.interactions.docEvents.push({type:"dragstart",listener:function(f){for(var k=0,x=t.interactions.list;k<x.length;k++){var I=x[k];if(I.element&&(I.element===f.target||ue(I.element,f.target)))return void I.interactable.checkAndPreventDefault(f)}}})},listeners:["down","move","up","cancel"].reduce(function(t,i){return t["interactions:".concat(i)]=Qr,t},{})};function Ar(t,i){if(i.phaselessTypes[t])return!0;for(var f in i.map)if(t.indexOf(f)===0&&t.substr(f.length)in i.phases)return!0;return!1}function Er(t){var i={};for(var f in t){var k=t[f];b.plainObject(k)?i[f]=Er(k):b.array(k)?i[f]=pa(k):i[f]=k}return i}var zr=function(){function t(i){c(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=Mr(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return p(t,[{key:"start",value:function(i,f){var k,x,I=i.phase,U=this.interaction,Y=function(Oe){var xe=Oe.interactable.options[Oe.prepared.name],ea=xe.modifiers;return ea&&ea.length?ea:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function($a){var sl=xe[$a];return sl&&sl.enabled&&{options:sl,methods:sl._methods}}).filter(function($a){return!!$a})}(U);this.prepareStates(Y),this.startEdges=le({},U.edges),this.edges=le({},this.startEdges),this.startOffset=(k=U.rect,x=f,k?{left:x.x-k.left,top:x.y-k.top,right:k.right-x.x,bottom:k.bottom-x.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var he=this.fillArg({phase:I,pageCoords:f,preEnd:!1});return this.result=Mr(),this.startAll(he),this.result=this.setAll(he)}},{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,k=this.states;f<k.length;f++){var x=k[f];x.methods.start&&(i.state=x,x.methods.start(i))}}},{key:"setAll",value:function(i){var f=i.phase,k=i.preEnd,x=i.skipModifiers,I=i.rect,U=i.edges;i.coords=le({},i.pageCoords),i.rect=le({},I),i.edges=le({},U);for(var Y=x?this.states.slice(x):this.states,he=Mr(i.coords,i.rect),Oe=0;Oe<Y.length;Oe++){var xe,ea=Y[Oe],$a=ea.options,sl=le({},i.coords),nl=null;(xe=ea.methods)!=null&&xe.set&&this.shouldDo($a,k,f)&&(i.state=ea,nl=ea.methods.set(i),ze(i.edges,i.rect,{x:i.coords.x-sl.x,y:i.coords.y-sl.y})),he.eventProps.push(nl)}le(this.edges,i.edges),he.delta.x=i.coords.x-i.pageCoords.x,he.delta.y=i.coords.y-i.pageCoords.y,he.rectDelta.left=i.rect.left-I.left,he.rectDelta.right=i.rect.right-I.right,he.rectDelta.top=i.rect.top-I.top,he.rectDelta.bottom=i.rect.bottom-I.bottom;var cl=this.result.coords,_l=this.result.rect;if(cl&&_l){var ul=he.rect.left!==_l.left||he.rect.right!==_l.right||he.rect.top!==_l.top||he.rect.bottom!==_l.bottom;he.changed=ul||cl.x!==he.coords.x||cl.y!==he.coords.y}return he}},{key:"applyToInteraction",value:function(i){var f=this.interaction,k=i.phase,x=f.coords.cur,I=f.coords.start,U=this.result,Y=this.startDelta,he=U.delta;k==="start"&&le(this.startDelta,U.delta);for(var Oe=0,xe=[[I,Y],[x,he]];Oe<xe.length;Oe++){var ea=xe[Oe],$a=ea[0],sl=ea[1];$a.page.x+=sl.x,$a.page.y+=sl.y,$a.client.x+=sl.x,$a.client.y+=sl.y}var nl=this.result.rectDelta,cl=i.rect||f.rect;cl.left+=nl.left,cl.right+=nl.right,cl.top+=nl.top,cl.bottom+=nl.bottom,cl.width=cl.right-cl.left,cl.height=cl.bottom-cl.top}},{key:"setAndApply",value:function(i){var f=this.interaction,k=i.phase,x=i.preEnd,I=i.skipModifiers,U=this.setAll(this.fillArg({preEnd:x,phase:k,pageCoords:i.modifiedCoords||f.coords.cur.page}));if(this.result=U,!U.changed&&(!I||I<this.states.length)&&f.interacting())return!1;if(i.modifiedCoords){var Y=f.coords.cur.page,he={x:i.modifiedCoords.x-Y.x,y:i.modifiedCoords.y-Y.y};U.coords.x+=he.x,U.coords.y+=he.y,U.delta.x+=he.x,U.delta.y+=he.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var f=i.interaction,k=i.event,x=this.states;if(x&&x.length){for(var I=!1,U=0;U<x.length;U++){var Y=x[U];i.state=Y;var he=Y.options,Oe=Y.methods,xe=Oe.beforeEnd&&Oe.beforeEnd(i);if(xe)return this.endResult=xe,!1;I=I||!I&&this.shouldDo(he,!0,i.phase,!0)}I&&f.move({event:k,preEnd:!0})}}},{key:"stop",value:function(i){var f=i.interaction;if(this.states&&this.states.length){var k=le({states:this.states,interactable:f.interactable,element:f.element,rect:null},i);this.fillArg(k);for(var x=0,I=this.states;x<I.length;x++){var U=I[x];k.state=U,U.methods.stop&&U.methods.stop(k)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var f=0;f<i.length;f++){var k=i[f],x=k.options,I=k.methods,U=k.name;this.states.push({options:x,methods:I,index:f,name:U})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var f=i.interaction,k=f.coords,x=f.rect,I=f.modification;if(I.result){for(var U=I.startDelta,Y=I.result,he=Y.delta,Oe=Y.rectDelta,xe=0,ea=[[k.start,U],[k.cur,he]];xe<ea.length;xe++){var $a=ea[xe],sl=$a[0],nl=$a[1];sl.page.x-=nl.x,sl.page.y-=nl.y,sl.client.x-=nl.x,sl.client.y-=nl.y}x.left-=Oe.left,x.right-=Oe.right,x.top-=Oe.top,x.bottom-=Oe.bottom}}},{key:"shouldDo",value:function(i,f,k,x){return!(!i||i.enabled===!1||x&&!i.endOnly||i.endOnly&&!f||k==="start"&&!i.setStart)}},{key:"copyFrom",value:function(i){this.startOffset=i.startOffset,this.startDelta=i.startDelta,this.startEdges=i.startEdges,this.edges=i.edges,this.states=i.states.map(function(f){return Er(f)}),this.result=Mr(le({},i.result.coords),le({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function Mr(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Dr(t,i){var f=t.defaults,k={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},x=function(I){var U=I||{};for(var Y in U.enabled=U.enabled!==!1,f)Y in U||(U[Y]=f[Y]);var he={options:U,methods:k,name:i,enable:function(){return U.enabled=!0,he},disable:function(){return U.enabled=!1,he}};return he};return i&&typeof i=="string"&&(x._defaults=f,x._methods=k),x}function Vr(t){var i=t.iEvent,f=t.interaction.modification.result;f&&(i.modifiers=f.eventProps)}var Or={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new zr(i)},"interactions:before-action-start":function(t){var i=t.interaction,f=t.interaction.modification;f.start(t,i.coords.start.page),i.edges=f.edges,f.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,f=i.modification,k=f.setAndApply(t);return i.edges=f.edges,k},"interactions:before-action-end":function(t){var i=t.interaction,f=i.modification,k=f.beforeEnd(t);return i.edges=f.startEdges,k},"interactions:action-start":Vr,"interactions:action-move":Vr,"interactions:action-end":Vr,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},sr=Or,gn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Gr=function(t){y(f,t);var i=R(f);function f(k,x,I,U,Y,he,Oe){var xe;c(this,f),(xe=i.call(this,k)).relatedTarget=null,xe.screenX=void 0,xe.screenY=void 0,xe.button=void 0,xe.buttons=void 0,xe.ctrlKey=void 0,xe.shiftKey=void 0,xe.altKey=void 0,xe.metaKey=void 0,xe.page=void 0,xe.client=void 0,xe.delta=void 0,xe.rect=void 0,xe.x0=void 0,xe.y0=void 0,xe.t0=void 0,xe.dt=void 0,xe.duration=void 0,xe.clientX0=void 0,xe.clientY0=void 0,xe.velocity=void 0,xe.speed=void 0,xe.swipe=void 0,xe.axes=void 0,xe.preEnd=void 0,Y=Y||k.element;var ea=k.interactable,$a=(ea&&ea.options||gn).deltaSource,sl=$e(ea,Y,I),nl=U==="start",cl=U==="end",_l=nl?B(xe):k.prevEvent,ul=nl?k.coords.start:cl?{page:_l.page,client:_l.client,timeStamp:k.coords.cur.timeStamp}:k.coords.cur;return xe.page=le({},ul.page),xe.client=le({},ul.client),xe.rect=le({},k.rect),xe.timeStamp=ul.timeStamp,cl||(xe.page.x-=sl.x,xe.page.y-=sl.y,xe.client.x-=sl.x,xe.client.y-=sl.y),xe.ctrlKey=x.ctrlKey,xe.altKey=x.altKey,xe.shiftKey=x.shiftKey,xe.metaKey=x.metaKey,xe.button=x.button,xe.buttons=x.buttons,xe.target=Y,xe.currentTarget=Y,xe.preEnd=he,xe.type=Oe||I+(U||""),xe.interactable=ea,xe.t0=nl?k.pointers[k.pointers.length-1].downTime:_l.t0,xe.x0=k.coords.start.page.x-sl.x,xe.y0=k.coords.start.page.y-sl.y,xe.clientX0=k.coords.start.client.x-sl.x,xe.clientY0=k.coords.start.client.y-sl.y,xe.delta=nl||cl?{x:0,y:0}:{x:xe[$a].x-_l[$a].x,y:xe[$a].y-_l[$a].y},xe.dt=k.coords.delta.timeStamp,xe.duration=xe.timeStamp-xe.t0,xe.velocity=le({},k.coords.velocity[$a]),xe.speed=qa(xe.velocity.x,xe.velocity.y),xe.swipe=cl||U==="inertiastart"?xe.getSwipe():null,xe}return p(f,[{key:"getSwipe",value:function(){var k=this._interaction;if(k.prevEvent.speed<600||this.timeStamp-k.prevEvent.timeStamp>150)return null;var x=180*Math.atan2(k.prevEvent.velocityY,k.prevEvent.velocityX)/Math.PI;x<0&&(x+=360);var I=112.5<=x&&x<247.5,U=202.5<=x&&x<337.5;return{up:U,down:!U&&22.5<=x&&x<157.5,left:I,right:!I&&(292.5<=x||x<67.5),angle:x,speed:k.prevEvent.speed,velocity:{x:k.prevEvent.velocityX,y:k.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),f}(Xe);Object.defineProperties(Gr.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var rn=p(function t(i,f,k,x,I){c(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=f,this.event=k,this.downTime=x,this.downTarget=I}),Nn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),bn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),vn=0,vr=function(){function t(i){var f=this,k=i.pointerType,x=i.scopeFire;c(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=aa(function(xe){this.move(xe)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=vn++,this._scopeFire=x,this.pointerType=k;var I=this;this._proxy={};var U=function(xe){Object.defineProperty(f._proxy,xe,{get:function(){return I[xe]}})};for(var Y in Nn)U(Y);var he=function(xe){Object.defineProperty(f._proxy,xe,{value:function(){return I[xe].apply(I,arguments)}})};for(var Oe in bn)he(Oe);this._scopeFire("interactions:new",{interaction:this})}return p(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,f,k){var x=this.updatePointer(i,f,k,!0),I=this.pointers[x];this._scopeFire("interactions:down",{pointer:i,event:f,eventTarget:k,pointerIndex:x,pointerInfo:I,type:"down",interaction:this})}},{key:"start",value:function(i,f,k){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!f.options[i.name].enabled)&&(Ge(this.prepared,i),this.interactable=f,this.element=k,this.rect=f.getRect(k),this.edges=this.prepared.edges?le({},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,k){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,f,k,!1);var x,I,U=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(x=this.coords.cur.client.x-this.coords.start.client.x,I=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=qa(x,I)>this.pointerMoveTolerance);var Y,he,Oe,xe=this.getPointerIndex(i),ea={pointer:i,pointerIndex:xe,pointerInfo:this.pointers[xe],event:f,type:"move",eventTarget:k,dx:x,dy:I,duplicate:U,interaction:this};U||(Y=this.coords.velocity,he=this.coords.delta,Oe=Math.max(he.timeStamp/1e3,.001),Y.page.x=he.page.x/Oe,Y.page.y=he.page.y/Oe,Y.client.x=he.client.x/Oe,Y.client.y=he.client.y/Oe,Y.timeStamp=Oe),this._scopeFire("interactions:move",ea),U||this.simulation||(this.interacting()&&(ea.type=null,this.move(ea)),this.pointerWasMoved&&X(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||te(this.coords.delta),(i=le({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,k,x){var I=this.getPointerIndex(i);I===-1&&(I=this.updatePointer(i,f,k,!1));var U=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(U),{pointer:i,pointerIndex:I,pointerInfo:this.pointers[I],event:f,eventTarget:k,type:U,curEventTarget:x,interaction:this}),this.simulation||this.end(f),this.removePointer(i,f)}},{key:"documentBlur",value:function(i){this.end(i),this._scopeFire("interactions:blur",{event:i,type:"blur",interaction:this})}},{key:"end",value:function(i){var f;this._ending=!0,i=i||this._latestPointer.event,this.interacting()&&(f=this._doPhase({event:i,interaction:this,phase:"end"})),this._ending=!1,f===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(i){var f=Le(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Te(this.pointers,function(k){return k.id===f})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,f,k,x){var I,U,Y,he=Le(i),Oe=this.getPointerIndex(i),xe=this.pointers[Oe];return x=x!==!1&&(x||/(down|start)$/i.test(f.type)),xe?xe.pointer=i:(xe=new rn(he,i,f,null,null),Oe=this.pointers.length,this.pointers.push(xe)),Ce(this.coords.cur,this.pointers.map(function(ea){return ea.pointer}),this._now()),I=this.coords.delta,U=this.coords.prev,Y=this.coords.cur,I.page.x=Y.page.x-U.page.x,I.page.y=Y.page.y-U.page.y,I.client.x=Y.client.x-U.client.x,I.client.y=Y.client.y-U.client.y,I.timeStamp=Y.timeStamp-U.timeStamp,x&&(this.pointerIsDown=!0,xe.downTime=this.coords.cur.timeStamp,xe.downTarget=k,P(this.downPointer,i),this.interacting()||(X(this.coords.start,this.coords.cur),X(this.coords.prev,this.coords.cur),this.downEvent=f,this.pointerWasMoved=!1)),this._updateLatestPointer(i,f,k),this._scopeFire("interactions:update-pointer",{pointer:i,event:f,eventTarget:k,down:x,pointerInfo:xe,pointerIndex:Oe,interaction:this}),Oe}},{key:"removePointer",value:function(i,f){var k=this.getPointerIndex(i);if(k!==-1){var x=this.pointers[k];this._scopeFire("interactions:remove-pointer",{pointer:i,event:f,eventTarget:null,pointerIndex:k,pointerInfo:x,interaction:this}),this.pointers.splice(k,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,f,k){this._latestPointer.pointer=i,this._latestPointer.event=f,this._latestPointer.eventTarget=k}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,f,k,x){return new Gr(this,i,this.prepared.name,f,this.element,k,x)}},{key:"_fireEvent",value:function(i){var f;(f=this.interactable)==null||f.fire(i),(!this.prevEvent||i.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=i)}},{key:"_doPhase",value:function(i){var f=i.event,k=i.phase,x=i.preEnd,I=i.type,U=this.rect;if(U&&k==="move"&&(ze(this.edges,U,this.coords.delta[this.interactable.options.deltaSource]),U.width=U.right-U.left,U.height=U.bottom-U.top),this._scopeFire("interactions:before-action-".concat(k),i)===!1)return!1;var Y=i.iEvent=this._createPreparedEvent(f,k,x,I);return this._scopeFire("interactions:action-".concat(k),i),k==="start"&&(this.prevEvent=Y),this._fireEvent(Y),this._scopeFire("interactions:after-action-".concat(k),i),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Hl(t){dr(t.interaction)}function dr(t){if(!function(f){return!(!f.offset.pending.x&&!f.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Kl(t.coords.cur,i),Kl(t.coords.delta,i),ze(t.edges,t.rect,i),i.x=0,i.y=0,!0}function $l(t){var i=t.x,f=t.y;this.offset.pending.x+=i,this.offset.pending.y+=f,this.offset.total.x+=i,this.offset.total.y+=f}function Kl(t,i){var f=t.page,k=t.client,x=i.x,I=i.y;f.x+=x,f.y+=I,k.x+=x,k.y+=I}bn.offsetBy="";var Il={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=$l},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(i){i.pointerIsDown&&(Kl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Hl,"interactions:before-action-move":Hl,"interactions:before-action-end":function(t){var i=t.interaction;if(dr(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},mr=Il,or=function(){function t(i){c(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return p(t,[{key:"start",value:function(i){var f=this.interaction,k=jl(f);if(!k||!k.enabled)return!1;var x=f.coords.velocity.client,I=qa(x.x,x.y),U=this.modification||(this.modification=new zr(f));if(U.copyFrom(f.modification),this.t0=f._now(),this.allowResume=k.allowResume,this.v0=I,this.currentOffset={x:0,y:0},this.startCoords=f.coords.cur.page,this.modifierArg=U.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-f.coords.cur.timeStamp<50&&I>k.minSpeed&&I>k.endSpeed)this.startInertia();else{if(U.result=U.setAll(this.modifierArg),!U.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,k=jl(this.interaction),x=k.resistance,I=-Math.log(k.endSpeed/this.v0)/x;this.targetOffset={x:(f.x-I)/x,y:(f.y-I)/x},this.te=I,this.lambda_v0=x/this.v0,this.one_ve_v0=1-k.endSpeed/this.v0;var U=this.modification,Y=this.modifierArg;Y.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},U.result=U.setAll(Y),U.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+U.result.delta.x,y:this.targetOffset.y+U.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=Ee.request(function(){f.active&&i()})}},{key:"inertiaTick",value:function(){var i,f,k,x,I,U,Y,he=this,Oe=this.interaction,xe=jl(Oe).resistance,ea=(Oe._now()-this.t0)/1e3;if(ea<this.te){var $a,sl=1-(Math.exp(-xe*ea)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,f=0,k=this.targetOffset.x,x=this.targetOffset.y,I=this.modifiedOffset.x,U=this.modifiedOffset.y,$a={x:Pr(Y=sl,i,k,I),y:Pr(Y,f,x,U)}):$a={x:this.targetOffset.x*sl,y:this.targetOffset.y*sl};var nl={x:$a.x-this.currentOffset.x,y:$a.y-this.currentOffset.y};this.currentOffset.x+=nl.x,this.currentOffset.y+=nl.y,Oe.offsetBy(nl),Oe.move(),this.onNextFrame(function(){return he.inertiaTick()})}else Oe.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,f=this.interaction,k=f._now()-this.t0,x=jl(f).smoothEndDuration;if(k<x){var I={x:kn(k,0,this.targetOffset.x,x),y:kn(k,0,this.targetOffset.y,x)},U={x:I.x-this.currentOffset.x,y:I.y-this.currentOffset.y};this.currentOffset.x+=U.x,this.currentOffset.y+=U.y,f.offsetBy(U),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,k=i.event,x=i.eventTarget,I=this.interaction;I.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),I.updatePointer(f,k,x,!0),I._doPhase({interaction:I,event:k,phase:"resume"}),X(I.coords.prev,I.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Ee.cancel(this.timeout)}}]),t}();function jl(t){var i=t.interactable,f=t.prepared;return i&&i.options&&f.name&&i.options[f.name].inertia}var $r={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(mr),t.usePlugin(sr),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new or(i)},"interactions:before-action-end":function(t){var i=t.interaction,f=t.event;return(!i._interacting||i.simulation||!i.inertia.start(f))&&null},"interactions:down":function(t){var i=t.interaction,f=t.eventTarget,k=i.inertia;if(k.active)for(var x=f;b.element(x);){if(x===i.element){k.resume(t);break}x=Ba(x)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":Vr,"interactions:action-inertiastart":Vr,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Pr(t,i,f,k){var x=1-t;return x*x*i+2*x*t*f+t*t*k}function kn(t,i,f,k){return-f*(t/=k)*(t-2)+i}var nn=$r;function Xn(t,i){for(var f=0;f<i.length;f++){var k=i[f];if(t.immediatePropagationStopped)break;k(t)}}var Tn=function(){function t(i){c(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=le({},i||{})}return p(t,[{key:"fire",value:function(i){var f,k=this.global;(f=this.types[i.type])&&Xn(i,f),!i.propagationStopped&&k&&(f=k[i.type])&&Xn(i,f)}},{key:"on",value:function(i,f){var k=Ze(i,f);for(i in k)this.types[i]=ya(this.types[i]||[],k[i])}},{key:"off",value:function(i,f){var k=Ze(i,f);for(i in k){var x=this.types[i];if(x&&x.length)for(var I=0,U=k[i];I<U.length;I++){var Y=U[I],he=x.indexOf(Y);he!==-1&&x.splice(he,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),Zn=function(){function t(i){c(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,P(this,i)}return p(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function xn(t){return b.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function An(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Pn={id:"events",install:function(t){var i,f=[],k={},x=[],I={add:U,remove:Y,addDelegate:function(xe,ea,$a,sl,nl){var cl=xn(nl);if(!k[$a]){k[$a]=[];for(var _l=0;_l<x.length;_l++){var ul=x[_l];U(ul,$a,he),U(ul,$a,Oe,!0)}}var Tl=k[$a],Ol=Ia(Tl,function(Xl){return Xl.selector===xe&&Xl.context===ea});Ol||(Ol={selector:xe,context:ea,listeners:[]},Tl.push(Ol)),Ol.listeners.push({func:sl,options:cl})},removeDelegate:function(xe,ea,$a,sl,nl){var cl,_l=xn(nl),ul=k[$a],Tl=!1;if(ul)for(cl=ul.length-1;cl>=0;cl--){var Ol=ul[cl];if(Ol.selector===xe&&Ol.context===ea){for(var Xl=Ol.listeners,Bl=Xl.length-1;Bl>=0;Bl--){var Ul=Xl[Bl];if(Ul.func===sl&&An(Ul.options,_l)){Xl.splice(Bl,1),Xl.length||(ul.splice(cl,1),Y(ea,$a,he),Y(ea,$a,Oe,!0)),Tl=!0;break}}if(Tl)break}}},delegateListener:he,delegateUseCapture:Oe,delegatedEvents:k,documents:x,targets:f,supportsOptions:!1,supportsPassive:!1};function U(xe,ea,$a,sl){if(xe.addEventListener){var nl=xn(sl),cl=Ia(f,function(_l){return _l.eventTarget===xe});cl||(cl={eventTarget:xe,events:{}},f.push(cl)),cl.events[ea]||(cl.events[ea]=[]),Ia(cl.events[ea],function(_l){return _l.func===$a&&An(_l.options,nl)})||(xe.addEventListener(ea,$a,I.supportsOptions?nl:nl.capture),cl.events[ea].push({func:$a,options:nl}))}}function Y(xe,ea,$a,sl){if(xe.addEventListener&&xe.removeEventListener){var nl=Te(f,function(jr){return jr.eventTarget===xe}),cl=f[nl];if(cl&&cl.events)if(ea!=="all"){var _l=!1,ul=cl.events[ea];if(ul){if($a==="all"){for(var Tl=ul.length-1;Tl>=0;Tl--){var Ol=ul[Tl];Y(xe,ea,Ol.func,Ol.options)}return}for(var Xl=xn(sl),Bl=0;Bl<ul.length;Bl++){var Ul=ul[Bl];if(Ul.func===$a&&An(Ul.options,Xl)){xe.removeEventListener(ea,$a,I.supportsOptions?Xl:Xl.capture),ul.splice(Bl,1),ul.length===0&&(delete cl.events[ea],_l=!0);break}}}_l&&!Object.keys(cl.events).length&&f.splice(nl,1)}else for(ea in cl.events)cl.events.hasOwnProperty(ea)&&Y(xe,ea,"all")}}function he(xe,ea){for(var $a=xn(ea),sl=new Zn(xe),nl=k[xe.type],cl=Ae(xe)[0],_l=cl;b.element(_l);){for(var ul=0;ul<nl.length;ul++){var Tl=nl[ul],Ol=Tl.selector,Xl=Tl.context;if(ne(_l,Ol)&&ue(Xl,cl)&&ue(Xl,_l)){var Bl=Tl.listeners;sl.currentTarget=_l;for(var Ul=0;Ul<Bl.length;Ul++){var jr=Bl[Ul];An(jr.options,$a)&&jr.func(sl)}}}_l=Ba(_l)}}function Oe(xe){return he(xe,!0)}return(i=t.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return I.supportsOptions=!0},get passive(){return I.supportsPassive=!0}}),t.events=I,I}},en={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,f=en.methodOrder;i<f.length;i++){var k=f[i],x=en[k](t);if(x)return x}return null},simulationResume:function(t){var i=t.pointerType,f=t.eventType,k=t.eventTarget,x=t.scope;if(!/down|start/i.test(f))return null;for(var I=0,U=x.interactions.list;I<U.length;I++){var Y=U[I],he=k;if(Y.simulation&&Y.simulation.allowResume&&Y.pointerType===i)for(;he;){if(he===Y.element)return Y;he=Ba(he)}}return null},mouseOrPen:function(t){var i,f=t.pointerId,k=t.pointerType,x=t.eventType,I=t.scope;if(k!=="mouse"&&k!=="pen")return null;for(var U=0,Y=I.interactions.list;U<Y.length;U++){var he=Y[U];if(he.pointerType===k){if(he.simulation&&!zn(he,f))continue;if(he.interacting())return he;i||(i=he)}}if(i)return i;for(var Oe=0,xe=I.interactions.list;Oe<xe.length;Oe++){var ea=xe[Oe];if(!(ea.pointerType!==k||/down/i.test(x)&&ea.simulation))return ea}return null},hasPointer:function(t){for(var i=t.pointerId,f=0,k=t.scope.interactions.list;f<k.length;f++){var x=k[f];if(zn(x,i))return x}return null},idle:function(t){for(var i=t.pointerType,f=0,k=t.scope.interactions.list;f<k.length;f++){var x=k[f];if(x.pointers.length===1){var I=x.interactable;if(I&&(!I.options.gesture||!I.options.gesture.enabled))continue}else if(x.pointers.length>=2)continue;if(!x.interacting()&&i===x.pointerType)return x}return null}};function zn(t,i){return t.pointers.some(function(f){return f.id===i})}var wn=en,Kr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fn(t,i){return function(f){var k=i.interactions.list,x=Je(f),I=Ae(f),U=I[0],Y=I[1],he=[];if(/^touch/.test(f.type)){i.prevTouchTime=i.now();for(var Oe=0,xe=f.changedTouches;Oe<xe.length;Oe++){var ea=xe[Oe],$a={pointer:ea,pointerId:Le(ea),pointerType:x,eventType:f.type,eventTarget:U,curEventTarget:Y,scope:i},sl=mn($a);he.push([$a.pointer,$a.eventTarget,$a.curEventTarget,sl])}}else{var nl=!1;if(!J.supportsPointerEvent&&/mouse/.test(f.type)){for(var cl=0;cl<k.length&&!nl;cl++)nl=k[cl].pointerType!=="mouse"&&k[cl].pointerIsDown;nl=nl||i.now()-i.prevTouchTime<500||f.timeStamp===0}if(!nl){var _l={pointer:f,pointerId:Le(f),pointerType:x,eventType:f.type,curEventTarget:Y,eventTarget:U,scope:i},ul=mn(_l);he.push([_l.pointer,_l.eventTarget,_l.curEventTarget,ul])}}for(var Tl=0;Tl<he.length;Tl++){var Ol=he[Tl],Xl=Ol[0],Bl=Ol[1],Ul=Ol[2];Ol[3][t](Xl,f,Bl,Ul)}}}function mn(t){var i=t.pointerType,f=t.scope,k={interaction:wn.search(t),searchDetails:t};return f.fire("interactions:find",k),k.interaction||f.interactions.new({pointerType:i})}function To(t,i){var f=t.doc,k=t.scope,x=t.options,I=k.interactions.docEvents,U=k.events,Y=U[i];for(var he in k.browser.isIOS&&!x.events&&(x.events={passive:!1}),U.delegatedEvents)Y(f,he,U.delegateListener),Y(f,he,U.delegateUseCapture,!0);for(var Oe=x&&x.events,xe=0;xe<I.length;xe++){var ea=I[xe];Y(f,ea.type,ea.listener,Oe)}}var Oi={id:"core/interactions",install:function(t){for(var i={},f=0;f<Kr.length;f++){var k=Kr[f];i[k]=Fn(k,t)}var x,I=J.pEventTypes;function U(){for(var Y=0,he=t.interactions.list;Y<he.length;Y++){var Oe=he[Y];if(Oe.pointerIsDown&&Oe.pointerType==="touch"&&!Oe._interacting)for(var xe=function(){var sl=$a[ea];t.documents.some(function(nl){return ue(nl.doc,sl.downTarget)})||Oe.removePointer(sl.pointer,sl.event)},ea=0,$a=Oe.pointers;ea<$a.length;ea++)xe()}}(x=Q.PointerEvent?[{type:I.down,listener:U},{type:I.down,listener:i.pointerDown},{type:I.move,listener:i.pointerMove},{type:I.up,listener:i.pointerUp},{type:I.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:U},{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(Y){for(var he=0,Oe=t.interactions.list;he<Oe.length;he++)Oe[he].documentBlur(Y)}}),t.prevTouchTime=0,t.Interaction=function(Y){y(Oe,Y);var he=R(Oe);function Oe(){return c(this,Oe),he.apply(this,arguments)}return p(Oe,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(xe){t.interactions.pointerMoveTolerance=xe}},{key:"_now",value:function(){return t.now()}}]),Oe}(vr),t.interactions={list:[],new:function(Y){Y.scopeFire=function(Oe,xe){return t.fire(Oe,xe)};var he=new t.Interaction(Y);return t.interactions.list.push(he),he},listeners:i,docEvents:x,pointerMoveTolerance:1},t.usePlugin(Ir)},listeners:{"scope:add-document":function(t){return To(t,"add")},"scope:remove-document":function(t){return To(t,"remove")},"interactable:unset":function(t,i){for(var f=t.interactable,k=i.interactions.list.length-1;k>=0;k--){var x=i.interactions.list[k];x.interactable===f&&(x.stop(),i.fire("interactions:destroy",{interaction:x}),x.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(k,1))}}},onDocSignal:To,doOnInteractions:Fn,methodNames:Kr},Li=Oi,_n=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(_n||{}),Ri=function(){function t(i,f,k,x){c(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Tn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=f.actions,this.target=i,this._context=f.context||k,this._win=_(Ja(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=x,this.set(f)}return p(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,f){return b.func(f.onstart)&&this.on("".concat(i,"start"),f.onstart),b.func(f.onmove)&&this.on("".concat(i,"move"),f.onmove),b.func(f.onend)&&this.on("".concat(i,"end"),f.onend),b.func(f.oninertiastart)&&this.on("".concat(i,"inertiastart"),f.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,f,k){var x,I=this,U=(x=this._actions.map[i])==null?void 0:x.filterEventType,Y=function(he){return(U==null||U(he))&&Ar(he,I._actions)};(b.array(f)||b.object(f))&&this._onOff(_n.Off,i,f,void 0,Y),(b.array(k)||b.object(k))&&this._onOff(_n.On,i,k,void 0,Y)}},{key:"setPerAction",value:function(i,f){var k=this._defaults;for(var x in f){var I=x,U=this.options[i],Y=f[I];I==="listeners"&&this.updatePerActionListeners(i,U.listeners,Y),b.array(Y)?U[I]=pa(Y):b.plainObject(Y)?(U[I]=le(U[I]||{},Er(Y)),b.object(k.perAction[I])&&"enabled"in k.perAction[I]&&(U[I].enabled=Y.enabled!==!1)):b.bool(Y)&&b.object(k.perAction[I])?U[I].enabled=Y:U[I]=Y}}},{key:"getRect",value:function(i){return i=i||(b.element(this.target)?this.target:null),b.string(this.target)&&(i=i||this._context.querySelector(this.target)),ha(i)}},{key:"rectChecker",value:function(i){var f=this;return b.func(i)?(this.getRect=function(k){var x=le({},i.apply(f,k));return"width"in x||(x.width=x.right-x.left,x.height=x.bottom-x.top),x},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,f){if(Ja(f)||b.object(f)){for(var k in this.options[i]=f,this._actions.map)this.options[k][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 b.string(i)?Array.from(this._context.querySelectorAll(i)):b.func(i)&&i.getAllElements?i.getAllElements():b.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||ue(this._context,i)}},{key:"testIgnoreAllow",value:function(i,f,k){return!this.testIgnore(i.ignoreFrom,f,k)&&this.testAllow(i.allowFrom,f,k)}},{key:"testAllow",value:function(i,f,k){return!i||!!b.element(k)&&(b.string(i)?ke(k,i,f):!!b.element(i)&&ue(i,k))}},{key:"testIgnore",value:function(i,f,k){return!(!i||!b.element(k))&&(b.string(i)?ke(k,i,f):!!b.element(i)&&ue(i,k))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,f,k,x,I){b.object(f)&&!b.array(f)&&(x=k,k=null);var U=Ze(f,k,I);for(var Y in U){Y==="wheel"&&(Y=J.wheelEvent);for(var he=0,Oe=U[Y];he<Oe.length;he++){var xe=Oe[he];Ar(Y,this._actions)?this.events[i===_n.On?"on":"off"](Y,xe):b.string(this.target)?this._scopeEvents[i===_n.On?"addDelegate":"removeDelegate"](this.target,this._context,Y,xe,x):this._scopeEvents[i===_n.On?"add":"remove"](this.target,Y,xe,x)}}return this}},{key:"on",value:function(i,f,k){return this._onOff(_n.On,i,f,k)}},{key:"off",value:function(i,f,k){return this._onOff(_n.Off,i,f,k)}},{key:"set",value:function(i){var f=this._defaults;for(var k in b.object(i)||(i={}),this.options=Er(f.base),this._actions.methodDict){var x=k,I=this._actions.methodDict[x];this.options[x]={},this.setPerAction(x,le(le({},f.perAction),f.actions[x])),this[I](i[x])}for(var U in i)U!=="getRect"?b.func(this[U])&&this[U](i[U]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(b.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var f=this._scopeEvents.delegatedEvents[i],k=f.length-1;k>=0;k--){var x=f[k],I=x.selector,U=x.context,Y=x.listeners;I===this.target&&U===this._context&&f.splice(k,1);for(var he=Y.length-1;he>=0;he--)this._scopeEvents.removeDelegate(this.target,this._context,i,Y[he][0],Y[he][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),$i=function(){function t(i){var f=this;c(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(k){var x=k.interactable,I=x.target,U=b.string(I)?f.selectorMap[I]:I[f.scope.id],Y=Te(U,function(he){return he===x});U.splice(Y,1)}})}return p(t,[{key:"new",value:function(i,f){f=le(f||{},{actions:this.scope.actions});var k=new this.scope.Interactable(i,f,this.scope.document,this.scope.events);return this.scope.addDocument(k._doc),this.list.push(k),b.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(k)):(k.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(k)),this.scope.fire("interactable:new",{target:i,options:f,interactable:k,win:this.scope._win}),k}},{key:"getExisting",value:function(i,f){var k=f&&f.context||this.scope.document,x=b.string(i),I=x?this.selectorMap[i]:i[this.scope.id];if(I)return Ia(I,function(U){return U._context===k&&(x||U.inContext(i))})}},{key:"forEachMatch",value:function(i,f){for(var k=0,x=this.list;k<x.length;k++){var I=x[k],U=void 0;if((b.string(I.target)?b.element(i)&&ne(i,I.target):i===I.target)&&I.inContext(i)&&(U=f(I)),U!==void 0)return U}}}]),t}(),Wo=function(){function t(){var i=this;c(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=J,this.defaults=Er(gn),this.Eventable=Tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(k){var x=function I(U,Y){var he=k.interactables.getExisting(U,Y);return he||((he=k.interactables.new(U,Y)).events.global=I.globalEvents),he};return x.getPointerAverage=ma,x.getTouchBBox=Pa,x.getTouchDistance=Fa,x.getTouchAngle=ve,x.getElementRect=ha,x.getElementClientRect=De,x.matchesSelector=ne,x.closest=Ue,x.globalEvents={},x.version="1.10.27",x.scope=k,x.use=function(I,U){return this.scope.usePlugin(I,U),this},x.isSet=function(I,U){return!!this.scope.interactables.get(I,U&&U.context)},x.on=aa(function(I,U,Y){if(b.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),b.array(I)){for(var he=0,Oe=I;he<Oe.length;he++){var xe=Oe[he];this.on(xe,U,Y)}return this}if(b.object(I)){for(var ea in I)this.on(ea,I[ea],U);return this}return Ar(I,this.scope.actions)?this.globalEvents[I]?this.globalEvents[I].push(U):this.globalEvents[I]=[U]:this.scope.events.add(this.scope.document,I,U,{options:Y}),this},"The interact.on() method is being deprecated"),x.off=aa(function(I,U,Y){if(b.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),b.array(I)){for(var he=0,Oe=I;he<Oe.length;he++){var xe=Oe[he];this.off(xe,U,Y)}return this}if(b.object(I)){for(var ea in I)this.off(ea,I[ea],U);return this}var $a;return Ar(I,this.scope.actions)?I in this.globalEvents&&($a=this.globalEvents[I].indexOf(U))!==-1&&this.globalEvents[I].splice($a,1):this.scope.events.remove(this.scope.document,I,U,Y),this},"The interact.off() method is being deprecated"),x.debug=function(){return this.scope},x.supportsTouch=function(){return J.supportsTouch},x.supportsPointerEvent=function(){return J.supportsPointerEvent},x.stop=function(){for(var I=0,U=this.scope.interactions.list;I<U.length;I++)U[I].stop();return this},x.pointerMoveTolerance=function(I){return b.number(I)?(this.scope.interactions.pointerMoveTolerance=I,this):this.scope.interactions.pointerMoveTolerance},x.addDocument=function(I,U){this.scope.addDocument(I,U)},x.removeDocument=function(I){this.scope.removeDocument(I)},x}(this),this.InteractEvent=Gr,this.Interactable=void 0,this.interactables=new $i(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(k){return i.removeDocument(k.target)};var f=this;this.Interactable=function(k){y(I,k);var x=R(I);function I(){return c(this,I),x.apply(this,arguments)}return p(I,[{key:"_defaults",get:function(){return f.defaults}},{key:"set",value:function(U){return E(u(I.prototype),"set",this).call(this,U),f.fire("interactable:set",{options:U,interactable:this}),this}},{key:"unset",value:function(){E(u(I.prototype),"unset",this).call(this);var U=f.interactables.list.indexOf(this);U<0||(f.interactables.list.splice(U,1),f.fire("interactable:unset",{interactable:this}))}}]),I}(Ri)}return p(t,[{key:"addListeners",value:function(i,f){this.listenerMaps.push({id:f,map:i})}},{key:"fire",value:function(i,f){for(var k=0,x=this.listenerMaps;k<x.length;k++){var I=x[k].map[i];if(I&&I(f,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(f,k){return f.isInitialized=!0,b.window(k)&&C(k),Q.init(k),J.init(k),Ee.init(k),f.window=k,f.document=k.document,f.usePlugin(Li),f.usePlugin(Pn),f}(this,i)}},{key:"pluginIsInstalled",value:function(i){var f=i.id;return f?!!this._plugins.map[f]:this._plugins.list.indexOf(i)!==-1}},{key:"usePlugin",value:function(i,f){if(!this.isInitialized)return this;if(this.pluginIsInstalled(i))return this;if(i.id&&(this._plugins.map[i.id]=i),this._plugins.list.push(i),i.install&&i.install(this,f),i.listeners&&i.before){for(var k=0,x=this.listenerMaps.length,I=i.before.reduce(function(Y,he){return Y[he]=!0,Y[Ko(he)]=!0,Y},{});k<x;k++){var U=this.listenerMaps[k].id;if(U&&(I[U]||I[Ko(U)]))break}this.listenerMaps.splice(k,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 k=_(i);f=f?le({},f):{},this.documents.push({doc:i,options:f}),this.events.documents.push(i),i!==this.document&&this.events.add(k,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:k,scope:this,options:f})}},{key:"removeDocument",value:function(i){var f=this.getDocIndex(i),k=_(i),x=this.documents[f].options;this.events.remove(k,"unload",this.onWindowUnload),this.documents.splice(f,1),this.events.documents.splice(f,1),this.fire("scope:remove-document",{doc:i,window:k,scope:this,options:x})}},{key:"getDocIndex",value:function(i){for(var f=0;f<this.documents.length;f++)if(this.documents[f].doc===i)return f;return-1}},{key:"getDocOptions",value:function(i){var f=this.getDocIndex(i);return f===-1?null:this.documents[f].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function Ko(t){return t&&t.replace(/\/.*$/,"")}var Go=new Wo,Fr=Go.interactStatic,Vi=typeof globalThis<"u"?globalThis:window;Go.init(Vi);var Ao=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(k){var x=k[0],I=k[1];return x in t||I in t}),f=function(k,x){for(var I=t.range,U=t.limits,Y=U===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:U,he=t.offset,Oe=he===void 0?{x:0,y:0}:he,xe={range:I,grid:t,x:null,y:null},ea=0;ea<i.length;ea++){var $a=i[ea],sl=$a[0],nl=$a[1],cl=Math.round((k-Oe.x)/t[sl]),_l=Math.round((x-Oe.y)/t[nl]);xe[sl]=Math.max(Y.left,Math.min(Y.right,cl*t[sl]+Oe.x)),xe[nl]=Math.max(Y.top,Math.min(Y.bottom,_l*t[nl]+Oe.y))}return xe};return f.grid=t,f.coordFields=i,f}}),Pi={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=le(i.snappers||{},Ao),i.createSnapGrid=i.snappers.grid}},zo=Pi,Yo={start:function(t){var i=t.state,f=t.rect,k=t.edges,x=t.pageCoords,I=i.options,U=I.ratio,Y=I.enabled,he=i.options,Oe=he.equalDelta,xe=he.modifiers;U==="preserve"&&(U=f.width/f.height),i.startCoords=le({},x),i.startRect=le({},f),i.ratio=U,i.equalDelta=Oe;var ea=i.linkedEdges={top:k.top||k.left&&!k.bottom,left:k.left||k.top&&!k.right,bottom:k.bottom||k.right&&!k.top,right:k.right||k.bottom&&!k.left};if(i.xIsPrimaryAxis=!(!k.left&&!k.right),i.equalDelta){var $a=(ea.left?1:-1)*(ea.top?1:-1);i.edgeSign={x:$a,y:$a}}else i.edgeSign={x:ea.left?-1:1,y:ea.top?-1:1};if(Y!==!1&&le(k,ea),xe!=null&&xe.length){var sl=new zr(t.interaction);sl.copyFrom(t.interaction.modification),sl.prepareStates(xe),i.subModification=sl,sl.startAll(o({},t))}},set:function(t){var i=t.state,f=t.rect,k=t.coords,x=i.linkedEdges,I=le({},k),U=i.equalDelta?Jo:Fi;if(le(t.edges,x),U(i,i.xIsPrimaryAxis,k,f),!i.subModification)return null;var Y=le({},f);ze(x,Y,{x:k.x-I.x,y:k.y-I.y});var he=i.subModification.setAll(o(o({},t),{},{rect:Y,edges:x,pageCoords:k,prevCoords:k,prevRect:Y})),Oe=he.delta;return he.changed&&(U(i,Math.abs(Oe.x)>Math.abs(Oe.y),he.coords,he.rect),le(k,he.coords)),he.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Jo(t,i,f){var k=t.startCoords,x=t.edgeSign;i?f.y=k.y+(f.x-k.x)*x.y:f.x=k.x+(f.y-k.y)*x.x}function Fi(t,i,f,k){var x=t.startRect,I=t.startCoords,U=t.ratio,Y=t.edgeSign;if(i){var he=k.width/U;f.y=I.y+(he-x.height)*Y.y}else{var Oe=k.height*U;f.x=I.x+(Oe-x.width)*Y.x}}var ji=Dr(Yo,"aspectRatio"),Xo=function(){};Xo._defaults={};var Cn=Xo;function Sn(t,i,f){return b.func(t)?Ve(t,i.interactable,i.element,[f.x,f.y,i]):Ve(t,i.interactable,i.element)}var jn={start:function(t){var i=t.rect,f=t.startOffset,k=t.state,x=t.interaction,I=t.pageCoords,U=k.options,Y=U.elementRect,he=le({left:0,top:0,right:0,bottom:0},U.offset||{});if(i&&Y){var Oe=Sn(U.restriction,x,I);if(Oe){var xe=Oe.right-Oe.left-i.width,ea=Oe.bottom-Oe.top-i.height;xe<0&&(he.left+=xe,he.right+=xe),ea<0&&(he.top+=ea,he.bottom+=ea)}he.left+=f.left-i.width*Y.left,he.top+=f.top-i.height*Y.top,he.right+=f.right-i.width*(1-Y.right),he.bottom+=f.bottom-i.height*(1-Y.bottom)}k.offset=he},set:function(t){var i=t.coords,f=t.interaction,k=t.state,x=k.options,I=k.offset,U=Sn(x.restriction,f,i);if(U){var Y=function(he){return!he||"left"in he&&"top"in he||((he=le({},he)).left=he.x||0,he.top=he.y||0,he.right=he.right||he.left+he.width,he.bottom=he.bottom||he.top+he.height),he}(U);i.x=Math.max(Math.min(Y.right-I.right,i.x),Y.left+I.left),i.y=Math.max(Math.min(Y.bottom-I.bottom,i.y),Y.top+I.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Hi=Dr(jn,"restrict"),Zo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Qo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ei(t,i){for(var f=0,k=["top","left","bottom","right"];f<k.length;f++){var x=k[f];x in t||(t[x]=i[x])}return t}var Hn={noInner:Zo,noOuter:Qo,start:function(t){var i,f=t.interaction,k=t.startOffset,x=t.state,I=x.options;I&&(i=_a(Sn(I.offset,f,f.coords.start.page))),i=i||{x:0,y:0},x.offset={top:i.y+k.top,left:i.x+k.left,bottom:i.y-k.bottom,right:i.x-k.right}},set:function(t){var i=t.coords,f=t.edges,k=t.interaction,x=t.state,I=x.offset,U=x.options;if(f){var Y=le({},i),he=Sn(U.inner,k,Y)||{},Oe=Sn(U.outer,k,Y)||{};ei(he,Zo),ei(Oe,Qo),f.top?i.y=Math.min(Math.max(Oe.top+I.top,Y.y),he.top+I.top):f.bottom&&(i.y=Math.max(Math.min(Oe.bottom+I.bottom,Y.y),he.bottom+I.bottom)),f.left?i.x=Math.min(Math.max(Oe.left+I.left,Y.x),he.left+I.left):f.right&&(i.x=Math.max(Math.min(Oe.right+I.right,Y.x),he.right+I.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Qn=Dr(Hn,"restrictEdges"),ai=le({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},jn.defaults),li=Dr({start:jn.start,set:jn.set,defaults:ai},"restrictRect"),eo={width:-1/0,height:-1/0},Ui={width:1/0,height:1/0},ri=Dr({start:function(t){return Hn.start(t)},set:function(t){var i=t.interaction,f=t.state,k=t.rect,x=t.edges,I=f.options;if(x){var U=Fe(Sn(I.min,i,t.coords))||eo,Y=Fe(Sn(I.max,i,t.coords))||Ui;f.options={endOnly:I.endOnly,inner:le({},Hn.noInner),outer:le({},Hn.noOuter)},x.top?(f.options.inner.top=k.bottom-U.height,f.options.outer.top=k.bottom-Y.height):x.bottom&&(f.options.inner.bottom=k.top+U.height,f.options.outer.bottom=k.top+Y.height),x.left?(f.options.inner.left=k.right-U.width,f.options.outer.left=k.right-Y.width):x.right&&(f.options.inner.right=k.left+U.width,f.options.outer.right=k.left+Y.width),Hn.set(t),f.options=I}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Mn={start:function(t){var i,f=t.interaction,k=t.interactable,x=t.element,I=t.rect,U=t.state,Y=t.startOffset,he=U.options,Oe=he.offsetWithOrigin?function($a){var sl=$a.interaction.element,nl=_a(Ve($a.state.options.origin,null,null,[sl])),cl=nl||$e($a.interactable,sl,$a.interaction.prepared.name);return cl}(t):{x:0,y:0};if(he.offset==="startCoords")i={x:f.coords.start.page.x,y:f.coords.start.page.y};else{var xe=Ve(he.offset,k,x,[f]);(i=_a(xe)||{x:0,y:0}).x+=Oe.x,i.y+=Oe.y}var ea=he.relativePoints;U.offsets=I&&ea&&ea.length?ea.map(function($a,sl){return{index:sl,relativePoint:$a,x:Y.left-I.width*$a.x+i.x,y:Y.top-I.height*$a.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,f=t.coords,k=t.state,x=k.options,I=k.offsets,U=$e(i.interactable,i.element,i.prepared.name),Y=le({},f),he=[];x.offsetWithOrigin||(Y.x-=U.x,Y.y-=U.y);for(var Oe=0,xe=I;Oe<xe.length;Oe++)for(var ea=xe[Oe],$a=Y.x-ea.x,sl=Y.y-ea.y,nl=0,cl=x.targets.length;nl<cl;nl++){var _l=x.targets[nl],ul=void 0;(ul=b.func(_l)?_l($a,sl,i._proxy,ea,nl):_l)&&he.push({x:(b.number(ul.x)?ul.x:$a)+ea.x,y:(b.number(ul.y)?ul.y:sl)+ea.y,range:b.number(ul.range)?ul.range:x.range,source:_l,index:nl,offset:ea})}for(var Tl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ol=0;Ol<he.length;Ol++){var Xl=he[Ol],Bl=Xl.range,Ul=Xl.x-Y.x,jr=Xl.y-Y.y,wr=qa(Ul,jr),Yr=wr<=Bl;Bl===1/0&&Tl.inRange&&Tl.range!==1/0&&(Yr=!1),Tl.target&&!(Yr?Tl.inRange&&Bl!==1/0?wr/Bl<Tl.distance/Tl.range:Bl===1/0&&Tl.range!==1/0||wr<Tl.distance:!Tl.inRange&&wr<Tl.distance)||(Tl.target=Xl,Tl.distance=wr,Tl.range=Bl,Tl.inRange=Yr,Tl.delta.x=Ul,Tl.delta.y=jr)}return Tl.inRange&&(f.x=Tl.target.x,f.y=Tl.target.y),k.closest=Tl,Tl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},qi=Dr(Mn,"snap"),co={start:function(t){var i=t.state,f=t.edges,k=i.options;if(!f)return null;t.state={options:{targets:null,relativePoints:[{x:f.left?0:1,y:f.top?0:1}],offset:k.offset||"self",origin:{x:0,y:0},range:k.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Mn.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,f=t.state,k=t.coords,x=f.options,I=f.offsets,U={x:k.x-I[0].x,y:k.y-I[0].y};f.options=le({},x),f.options.targets=[];for(var Y=0,he=x.targets||[];Y<he.length;Y++){var Oe=he[Y],xe=void 0;if(xe=b.func(Oe)?Oe(U.x,U.y,i):Oe){for(var ea=0,$a=f.targetFields;ea<$a.length;ea++){var sl=$a[ea],nl=sl[0],cl=sl[1];if(nl in xe||cl in xe){xe.x=xe[nl],xe.y=xe[cl];break}}f.options.targets.push(xe)}}var _l=Mn.set(t);return f.options=x,_l},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Wi=Dr(co,"snapSize"),Mo={aspectRatio:ji,restrictEdges:Qn,restrict:Hi,restrictRect:li,restrictSize:ri,snapEdges:Dr({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],co.start(t)):null},set:co.set,defaults:le(Er(co.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:qi,snapSize:Wi,spring:Cn,avoid:Cn,transform:Cn,rubberband:Cn},Ki={id:"modifiers",install:function(t){var i=t.interactStatic;for(var f in t.usePlugin(sr),t.usePlugin(zo),i.modifiers=Mo,Mo){var k=Mo[f],x=k._defaults,I=k._methods;x._methods=I,t.defaults.perAction[f]=x}}},Gi=Ki,ni=function(t){y(f,t);var i=R(f);function f(k,x,I,U,Y,he){var Oe;if(c(this,f),P(B(Oe=i.call(this,Y)),I),I!==x&&P(B(Oe),x),Oe.timeStamp=he,Oe.originalEvent=I,Oe.type=k,Oe.pointerId=Le(x),Oe.pointerType=Je(x),Oe.target=U,Oe.currentTarget=null,k==="tap"){var xe=Y.getPointerIndex(x);Oe.dt=Oe.timeStamp-Y.pointers[xe].downTime;var ea=Oe.timeStamp-Y.tapTime;Oe.double=!!Y.prevTap&&Y.prevTap.type!=="doubletap"&&Y.prevTap.target===Oe.target&&ea<500}else k==="doubletap"&&(Oe.dt=x.timeStamp-Y.tapTime,Oe.double=!0);return Oe}return p(f,[{key:"_subtractOrigin",value:function(k){var x=k.x,I=k.y;return this.pageX-=x,this.pageY-=I,this.clientX-=x,this.clientY-=I,this}},{key:"_addOrigin",value:function(k){var x=k.x,I=k.y;return this.pageX+=x,this.pageY+=I,this.clientX+=x,this.clientY+=I,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),f}(Xe),Un={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Un,t.defaults.actions.pointerEvents=Un.defaults,le(t.actions.phaselessTypes,Un.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.down,f=t.pointerInfo;!i&&f.hold||(f.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget;t.duplicate||f.pointerIsDown&&!f.pointerWasMoved||(f.pointerIsDown&&Io(t),En({interaction:f,pointer:k,event:x,eventTarget:I,type:"move"},i))},"interactions:down":function(t,i){(function(f,k){for(var x=f.interaction,I=f.pointer,U=f.event,Y=f.eventTarget,he=f.pointerIndex,Oe=x.pointers[he].hold,xe=Sa(Y),ea={interaction:x,pointer:I,event:U,eventTarget:Y,type:"hold",targets:[],path:xe,node:null},$a=0;$a<xe.length;$a++){var sl=xe[$a];ea.node=sl,k.fire("pointerEvents:collect-targets",ea)}if(ea.targets.length){for(var nl=1/0,cl=0,_l=ea.targets;cl<_l.length;cl++){var ul=_l[cl].eventable.options.holdDuration;ul<nl&&(nl=ul)}Oe.duration=nl,Oe.timeout=setTimeout(function(){En({interaction:x,eventTarget:Y,pointer:I,event:U,type:"hold"},k)},nl)}})(t,i),En(t,i)},"interactions:up":function(t,i){Io(t),En(t,i),function(f,k){var x=f.interaction,I=f.pointer,U=f.event,Y=f.eventTarget;x.pointerWasMoved||En({interaction:x,eventTarget:Y,pointer:I,event:U,type:"tap"},k)}(t,i)},"interactions:cancel":function(t,i){Io(t),En(t,i)}},PointerEvent:ni,fire:En,collectEventTargets:oi,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function En(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget,U=t.type,Y=t.targets,he=Y===void 0?oi(t,i):Y,Oe=new ni(U,k,x,I,f,i.now());i.fire("pointerEvents:new",{pointerEvent:Oe});for(var xe={interaction:f,pointer:k,event:x,eventTarget:I,targets:he,type:U,pointerEvent:Oe},ea=0;ea<he.length;ea++){var $a=he[ea];for(var sl in $a.props||{})Oe[sl]=$a.props[sl];var nl=$e($a.eventable,$a.node);if(Oe._subtractOrigin(nl),Oe.eventable=$a.eventable,Oe.currentTarget=$a.node,$a.eventable.fire(Oe),Oe._addOrigin(nl),Oe.immediatePropagationStopped||Oe.propagationStopped&&ea+1<he.length&&he[ea+1].node!==Oe.currentTarget)break}if(i.fire("pointerEvents:fired",xe),U==="tap"){var cl=Oe.double?En({interaction:f,pointer:k,event:x,eventTarget:I,type:"doubletap"},i):Oe;f.prevTap=cl,f.tapTime=cl.timeStamp}return Oe}function oi(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget,U=t.type,Y=f.getPointerIndex(k),he=f.pointers[Y];if(U==="tap"&&(f.pointerWasMoved||!he||he.downTarget!==I))return[];for(var Oe=Sa(I),xe={interaction:f,pointer:k,event:x,eventTarget:I,type:U,path:Oe,targets:[],node:null},ea=0;ea<Oe.length;ea++){var $a=Oe[ea];xe.node=$a,i.fire("pointerEvents:collect-targets",xe)}return U==="hold"&&(xe.targets=xe.targets.filter(function(sl){var nl,cl;return sl.eventable.options.holdDuration===((nl=f.pointers[Y])==null||(cl=nl.hold)==null?void 0:cl.duration)})),xe.targets}function Io(t){var i=t.interaction,f=t.pointerIndex,k=i.pointers[f].hold;k&&k.timeout&&(clearTimeout(k.timeout),k.timeout=null)}var Yi=Object.freeze({__proto__:null,default:Un});function uo(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Ji={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Un);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(t,i){return t["pointerEvents:".concat(i)]=uo,t},{"pointerEvents:new":function(t){var i=t.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var f=t.interaction,k=t.pointerEvent,x=t.eventTarget,I=t.targets;if(k.type==="hold"&&I.length){var U=I[0].eventable.options.holdRepeatInterval;U<=0||(f.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:f,eventTarget:x,type:"hold",pointer:k,event:k},i)},U))}}})},Xi=Ji,Zi={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(k){return le(this.events.options,k),this};var f=i.prototype._backCompatOption;i.prototype._backCompatOption=function(k,x){var I=f.call(this,k,x);return I===this&&(this.events.options[k]=x),I}},listeners:{"pointerEvents:collect-targets":function(t,i){var f=t.targets,k=t.node,x=t.type,I=t.eventTarget;i.interactables.forEachMatch(k,function(U){var Y=U.events,he=Y.options;Y.types[x]&&Y.types[x].length&&U.testIgnoreAllow(he,k,I)&&f.push({node:k,eventable:Y,props:{interactable:U}})})},"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,k=t.options;le(f.events.options,i.pointerEvents.defaults),le(f.events.options,k.pointerEvents||{})}}},Qi=Zi,ii={id:"pointer-events",install:function(t){t.usePlugin(Yi),t.usePlugin(Xi),t.usePlugin(Qi)}},po=ii,et={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(f){return function(k,x,I){for(var U=k.getAllElements(),Y=I.window.Promise,he=Y?[]:null,Oe=function(){var ea=U[xe],$a=k.getRect(ea);if(!$a)return 1;var sl,nl=Ia(I.interactions.list,function(ul){return ul.interacting()&&ul.interactable===k&&ul.element===ea&&ul.prepared.name===x.name});if(nl)nl.move(),he&&(sl=nl._reflowPromise||new Y(function(ul){nl._reflowResolve=ul}));else{var cl=Fe($a),_l=function(ul){return{coords:ul,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:cl.x,y:cl.y},client:{x:cl.x,y:cl.y},timeStamp:I.now()});sl=function(ul,Tl,Ol,Xl,Bl){var Ul=ul.interactions.new({pointerType:"reflow"}),jr={interaction:Ul,event:Bl,pointer:Bl,eventTarget:Ol,phase:"reflow"};Ul.interactable=Tl,Ul.element=Ol,Ul.prevEvent=Bl,Ul.updatePointer(Bl,Bl,Ol,!0),te(Ul.coords.delta),Ge(Ul.prepared,Xl),Ul._doPhase(jr);var wr=ul.window,Yr=wr.Promise,on=Yr?new Yr(function(pn){Ul._reflowResolve=pn}):void 0;return Ul._reflowPromise=on,Ul.start(Xl,Tl,Ol),Ul._interacting?(Ul.move(jr),Ul.end(Bl)):(Ul.stop(),Ul._reflowResolve()),Ul.removePointer(Bl,Bl),on}(I,k,ea,x,_l)}he&&he.push(sl)},xe=0;xe<U.length&&!Oe();xe++);return he&&Y.all(he).then(function(){return k})}(this,f,t)}},listeners:{"interactions:stop":function(t,i){var f=t.interaction;f.pointerType==="reflow"&&(f._reflowResolve&&f._reflowResolve(),function(k,x){k.splice(k.indexOf(x),1)}(i.interactions.list,f))}}},at=et;if(Fr.use(Ir),Fr.use(mr),Fr.use(po),Fr.use(nn),Fr.use(Gi),Fr.use(Ll),Fr.use(Ye),Fr.use(K),Fr.use(at),Fr.default=Fr,s(l)==="object"&&l)try{l.exports=Fr}catch{}return Fr.default=Fr,Fr})}($o,$o.exports)),$o.exports}var G4=K4();const Bs=$n.getDefaultExportFromCjs(G4),zi=a.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(l,{expose:n,emit:r}){const o=l,s=r,c=a.inject(zc),m=a.inject(Mc);if(!c)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const p=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,u=!1,w=NaN,B=NaN,R=NaN,E=NaN,q=-1,O=-1,M=-1,Z=-1,C=o.x,_=o.y,S=o.w,g=o.h;const b=a.ref(),j=a.reactive({i:a.toRef(o,"i"),state:v,wrapper:b,calcXY:Ve});function V(ce){Ze(ce)}function G(){Xa()}function fe(ce){cn(o.isDraggable)&&(v.draggable=ce)}function Ne(ce){cn(o.isResizable)&&(v.resizable=ce)}function Se(ce){cn(o.isBounded)&&(v.bounded=ce)}function Q(ce){v.transformScale=ce}function ge(ce){v.rowHeight=ce}function J(ce){v.maxRows=ce}function ue(){v.rtl=Es()==="rtl",Xa()}function Ue(ce){v.cols=Math.floor(ce)}c.increaseItem(j),a.onBeforeMount(()=>{v.rtl=Es()==="rtl"}),a.onMounted(()=>{c.responsive&&c.lastBreakpoint?v.cols=$c(c.lastBreakpoint,c.cols):v.cols=c.colNum,v.rowHeight=c.rowHeight,v.containerWidth=c.width!==null?c.width:100,v.margin=c.margin!==void 0?c.margin.map(Number):[10,10],v.maxRows=c.maxRows,cn(o.isDraggable)?v.draggable=c.isDraggable:v.draggable=o.isDraggable,cn(o.isResizable)?v.resizable=c.isResizable:v.resizable=o.isResizable,cn(o.isBounded)?v.bounded=c.isBounded:v.bounded=o.isBounded,v.transformScale=c.transformScale,v.useCssTransforms=c.useCssTransforms,v.useStyleCursor=c.useStyleCursor,a.watchEffect(()=>{C=o.x,_=o.y,g=o.h,S=o.w,Jr(ha)}),m.on("updateWidth",V),m.on("compact",G),m.on("setDraggable",fe),m.on("setResizable",Ne),m.on("setBounded",Se),m.on("setTransformScale",Q),m.on("setRowHeight",ge),m.on("setMaxRows",J),m.on("directionchange",ue),m.on("setColNum",Ue)}),a.onBeforeUnmount(()=>{m.off("updateWidth",V),m.off("compact",G),m.off("setDraggable",fe),m.off("setResizable",Ne),m.off("setBounded",Se),m.off("setTransformScale",Q),m.off("setRowHeight",ge),m.off("setMaxRows",J),m.off("directionchange",ue),m.off("setColNum",Ue),p.value&&(p.value.unset(),p.value=null),c.decreaseItem(j)}),n({state:v,wrapper:b});const Ba=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ne=a.computed(()=>v.resizable&&!o.static),D=a.computed(()=>c.isMirrored?!v.rtl:v.rtl),re=a.computed(()=>(v.draggable||v.resizable)&&!o.static),ke=V4("item"),de=a.computed(()=>({[ke.b()]:!0,[ke.bm("resizable")]:ne.value,[ke.bm("static")]:o.static,[ke.bm("resizing")]:v.isResizing,[ke.bm("dragging")]:v.isDragging,[ke.bm("transform")]:v.useCssTransforms,[ke.bm("rtl")]:D.value,[ke.bm("no-touch")]:Ba&&re.value})),De=a.computed(()=>[ke.be("resizer"),D.value&&ke.bem("resizer","rtl")].filter(Boolean));a.watch(()=>o.isDraggable,ce=>{v.draggable=ce}),a.watch(()=>o.static,()=>{Jr(P),Jr(te)}),a.watch(()=>v.draggable,()=>{Jr(P)}),a.watch(()=>o.isResizable,ce=>{v.resizable=ce}),a.watch(()=>o.isBounded,ce=>{v.bounded=ce}),a.watch(()=>v.resizable,()=>{Jr(te)}),a.watch(()=>v.rowHeight,()=>{Jr(ha),Jr(Sa)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{Jr(te),Jr(ha),Jr(Sa)}),a.watch([()=>o.minH,()=>o.maxH,()=>o.minW,()=>o.maxW],()=>{Jr(te)}),a.watch(D,()=>{Jr(te),Jr(ha)}),a.watch([()=>c.margin,()=>c.margin[0],()=>c.margin[1]],()=>{const ce=c.margin;!ce||ce[0]===v.margin[0]&&ce[1]===v.margin[1]||(v.margin=ce.map(Number),Jr(ha),Jr(Sa))});function ha(){o.x+o.w>v.cols?(C=0,S=o.w>v.cols?v.cols:o.w):(C=o.x,S=o.w);const ce=la(C,_,S,g);v.isDragging&&(ce.top=v.dragging.top,D.value?ce.right=v.dragging.left:ce.left=v.dragging.left),v.isResizing&&(ce.width=v.resizing.width,ce.height=v.resizing.height);let xa;v.useCssTransforms?D.value?xa=O4(ce.top,ce.right,ce.width,ce.height):xa=I4(ce.top,ce.left,ce.width,ce.height):D.value?xa=R4(ce.top,ce.right,ce.width,ce.height):xa=L4(ce.top,ce.left,ce.width,ce.height),v.style=xa}function Sa(){const ce={};for(const xa of["width","height"]){const ra=v.style[xa].match(/^(\d+)px$/);if(!ra)return;ce[xa]=ra[1]}s("container-resized",o.i,o.h,o.w,ce.height,ce.width)}function Ja(ce){if(o.static)return;const xa=ce.type;if(xa==="resizestart"&&v.isResizing||xa!=="resizestart"&&!v.isResizing)return;const ra=Cs(ce);if(cn(ra))return;const{x:Le,y:Ce}=ra,Ea={width:0,height:0};let ma;switch(xa){case"resizestart":{te(),q=S,O=g,ma=la(C,_,S,g),Ea.width=ma.width,Ea.height=ma.height,v.resizing=Ea,v.isResizing=!0;break}case"resizemove":{!ce.edges.right&&!ce.edges.left&&(R=Le),!ce.edges.top&&!ce.edges.bottom&&(E=Ce);const Pa=Ss(R,E,Le,Ce);D.value?Ea.width=v.resizing.width-Pa.deltaX/v.transformScale:Ea.width=v.resizing.width+Pa.deltaX/v.transformScale,Ea.height=v.resizing.height+Pa.deltaY/v.transformScale,v.resizing=Ea;break}case"resizeend":{ma=la(C,_,S,g),Ea.width=ma.width,Ea.height=ma.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}ma=$e(Ea.height,Ea.width),ma.w<o.minW&&(ma.w=o.minW),ma.w>o.maxW&&(ma.w=o.maxW),ma.h<o.minH&&(ma.h=o.minH),ma.h>o.maxH&&(ma.h=o.maxH),ma.h<1&&(ma.h=1),ma.w<1&&(ma.w=1),R=Le,E=Ce,(S!==ma.w||g!==ma.h)&&s("resize",o.i,ma.h,ma.w,Ea.height,Ea.width),ce.type==="resizeend"&&(q!==S||O!==g)&&s("resized",o.i,ma.h,ma.w,Ea.height,Ea.width),m.emit("resizeEvent",ce.type,o.i,C,_,ma.h,ma.w)}function le(ce){if(o.static||v.isResizing)return;const xa=ce.type;if(xa==="dragstart"&&v.isDragging||xa!=="dragstart"&&!v.isDragging)return;const ra=Cs(ce);if(cn(ra))return;const{x:Le,y:Ce}=ra,Ea=ce.target;if(!Ea.offsetParent)return;const ma={top:0,left:0};switch(xa){case"dragstart":{M=C,Z=_;const Fa=Ea.offsetParent.getBoundingClientRect(),ve=Ea.getBoundingClientRect(),Je=ve.left/v.transformScale,Ae=Fa.left/v.transformScale,Xe=ve.right/v.transformScale,ya=Fa.right/v.transformScale,pa=ve.top/v.transformScale,Te=Fa.top/v.transformScale;D.value?ma.left=(Xe-ya)*-1:ma.left=Je-Ae,ma.top=pa-Te,v.dragging=ma,v.isDragging=!0;break}case"dragmove":{const Fa=Ss(w,B,Le,Ce);if(D.value?ma.left=v.dragging.left-Fa.deltaX/v.transformScale:ma.left=v.dragging.left+Fa.deltaX/v.transformScale,ma.top=v.dragging.top+Fa.deltaY/v.transformScale,v.bounded){const ve=Ea.offsetParent.clientHeight-Fe(o.h,v.rowHeight,v.margin[1]);ma.top=ze(ma.top,0,ve);const Je=_a(),Ae=v.containerWidth-Fe(o.w,Je,v.margin[0]);ma.left=ze(ma.left,0,Ae)}v.dragging=ma;break}case"dragend":{const Fa=Ea.offsetParent.getBoundingClientRect(),ve=Ea.getBoundingClientRect(),Je=ve.left/v.transformScale,Ae=Fa.left/v.transformScale,Xe=ve.right/v.transformScale,ya=Fa.right/v.transformScale,pa=ve.top/v.transformScale,Te=Fa.top/v.transformScale;D.value?ma.left=(Xe-ya)*-1:ma.left=Je-Ae,ma.top=pa-Te,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let Pa;D.value,Pa=Ve(ma.top,ma.left),w=Le,B=Ce,(C!==Pa.x||_!==Pa.y)&&s("move",o.i,Pa.x,Pa.y),ce.type==="dragend"&&(M!==C||Z!==_)&&s("moved",o.i,Pa.x,Pa.y),m.emit("dragEvent",ce.type,o.i,Pa.x,Pa.y,g,S)}function la(ce,xa,ra,Le){const Ce=_a();let Ea;return D.value?Ea={right:Math.round(Ce*ce+(ce+1)*v.margin[0]),top:Math.round(v.rowHeight*xa+(xa+1)*v.margin[1]),width:ra===1/0?ra:Math.round(Ce*ra+Math.max(0,ra-1)*v.margin[0]),height:Le===1/0?Le:Math.round(v.rowHeight*Le+Math.max(0,Le-1)*v.margin[1])}:Ea={left:Math.round(Ce*ce+(ce+1)*v.margin[0]),top:Math.round(v.rowHeight*xa+(xa+1)*v.margin[1]),width:ra===1/0?ra:Math.round(Ce*ra+Math.max(0,ra-1)*v.margin[0]),height:Le===1/0?Le:Math.round(v.rowHeight*Le+Math.max(0,Le-1)*v.margin[1])},Ea}function Ve(ce,xa){const ra=_a();let Le=Math.round((xa-v.margin[0])/(ra+v.margin[0])),Ce=Math.round((ce-v.margin[1])/(v.rowHeight+v.margin[1]));return Le=Math.max(Math.min(Le,v.cols-S),0),Ce=Math.max(Math.min(Ce,v.maxRows-g),0),{x:Le,y:Ce}}function _a(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function Fe(ce,xa,ra){return Number.isFinite(ce)?Math.round(xa*ce+Math.max(0,ce-1)*ra):ce}function ze(ce,xa,ra){return Math.max(Math.min(ce,ra),xa)}function $e(ce,xa,ra=!1){const Le=_a();let Ce=Math.round((xa+v.margin[0])/(Le+v.margin[0])),Ea=0;return ra?Ea=Math.ceil((ce+v.margin[1])/(v.rowHeight+v.margin[1])):Ea=Math.round((ce+v.margin[1])/(v.rowHeight+v.margin[1])),Ce=Math.max(Math.min(Ce,v.cols-C),0),Ea=Math.max(Math.min(Ea,v.maxRows-_),0),{w:Ce,h:Ea}}function Ze(ce,xa){v.containerWidth=ce}function Xa(){ha()}function qa(){!p.value&&b.value&&(p.value=Bs(b.value),v.useStyleCursor||p.value.styleCursor(!1))}const F=xs(le);function P(){if(qa(),!!p.value)if(v.draggable&&!o.static){const ce={ignoreFrom:o.dragIgnoreFrom,allowFrom:o.dragAllowFrom,...o.dragOption};p.value.draggable(ce),y||(y=!0,p.value.on("dragstart dragmove dragend",xa=>{xa.type==="dragmove"?F(xa):le(xa)}))}else p.value.draggable({enabled:!1})}const X=xs(Ja);function te(){if(qa(),!!p.value)if(v.resizable&&!o.static){const ce=la(0,0,o.maxW,o.maxH),xa=la(0,0,o.minW,o.minH),ra={edges:{left:D.value?`.${De.value[0]}`:!1,right:D.value?!1:`.${De.value[0]}`,bottom:`.${De.value[0]}`,top:!1},ignoreFrom:o.resizeIgnoreFrom,restrictSize:{min:{height:xa.height*v.transformScale,width:xa.width*v.transformScale},max:{height:ce.height*v.transformScale,width:ce.width*v.transformScale}},...o.resizeOption};o.preserveAspectRatio&&(ra.modifiers=[Bs.modifiers.aspectRatio({ratio:"preserve"})]),p.value.resizable(ra),u||(u=!0,p.value.on("resizestart resizemove resizeend",Le=>{Le.type==="resizemove"?X(Le):Ja(Le)}))}else p.value.resizable({enabled:!1})}return(ce,xa)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:b,class:a.normalizeClass(de.value),style:a.normalizeStyle(v.style)},[a.renderSlot(ce.$slots,"default"),ne.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(De.value)},null,2)):a.createCommentVNode("",!0)],6))}}),so=typeof window<"u";var Ns;so&&(Ns=window==null?void 0:window.navigator)!=null&&Ns.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ts(l){return l!=null}function As(){}const Y4=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(Y4)));const J4=so&&("ontouchstart"in window||Z4()>0),X4=J4?"pointerdown":"click";function Z4(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function Q4(l,n,r=window.Event){const{type:o,bubbles:s=!1,cancelable:c=!1,...m}=n;if(!Ts(o)||o==="")return!1;let p;return Ts(r)?p=new r(o,{bubbles:s,cancelable:c}):(p=document.createEvent("HTMLEvents"),p.initEvent(o,s,c)),Object.assign(p,m),l.dispatchEvent(p)}const e6="clickoutside",a6=new Set;so&&document.addEventListener(X4,l=>{const n=l.target,r=l.composedPath&&l.composedPath();a6.forEach(o=>{o!==n&&(r?!r.includes(o):!o.contains(n))&&(!o.__transferElement||o.__transferElement!==n&&!o.__transferElement.contains(n))&&Q4(o,{type:e6})})},!0);const l6=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let ki;if(so){for(const l of l6)if(l[1]in document){ki=l;break}}a.computed(()=>!1);const r6=new Set,n6=new WeakMap;if(so&&ki){const l=ki[2],n=ki[4];document.addEventListener(n,()=>{if(r6.forEach(r=>{r.value=!1}),document[l]){const r=n6.get(document[l]);r&&(r.value=!0)}},!1)}const Pc=new Map;Pc.set("x",0);Pc.set("y",0);var io=[],o6=function(){return io.some(function(l){return l.activeTargets.length>0})},i6=function(){return io.some(function(l){return l.skippedTargets.length>0})},zs="ResizeObserver loop completed with undelivered notifications.",t6=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:zs}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=zs),window.dispatchEvent(l)},qo;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qo||(qo={}));var to=function(l){return Object.freeze(l)},s6=function(){function l(n,r){this.inlineSize=n,this.blockSize=r,to(this)}return l}(),Fc=function(){function l(n,r,o,s){return this.x=n,this.y=r,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,to(this)}return l.prototype.toJSON=function(){var n=this,r=n.x,o=n.y,s=n.top,c=n.right,m=n.bottom,p=n.left,v=n.width,y=n.height;return{x:r,y:o,top:s,right:c,bottom:m,left:p,width:v,height:y}},l.fromRect=function(n){return new l(n.x,n.y,n.width,n.height)},l}(),Bt=function(l){return l instanceof SVGElement&&"getBBox"in l},jc=function(l){if(Bt(l)){var n=l.getBBox(),r=n.width,o=n.height;return!r&&!o}var s=l,c=s.offsetWidth,m=s.offsetHeight;return!(c||m||l.getClientRects().length)},Ms=function(l){var n;if(l instanceof Element)return!0;var r=(n=l==null?void 0:l.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&l instanceof r.Element)},c6=function(l){switch(l.tagName){case"INPUT":if(l.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},jo=typeof window<"u"?window:{},mi=new WeakMap,Is=/auto|scroll/,u6=/^tb|vertical/,d6=/msie|trident/i.test(jo.navigator&&jo.navigator.userAgent),Bn=function(l){return parseFloat(l||"0")},Eo=function(l,n,r){return l===void 0&&(l=0),n===void 0&&(n=0),r===void 0&&(r=!1),new s6((r?n:l)||0,(r?l:n)||0)},Os=to({devicePixelContentBoxSize:Eo(),borderBoxSize:Eo(),contentBoxSize:Eo(),contentRect:new Fc(0,0,0,0)}),Hc=function(l,n){if(n===void 0&&(n=!1),mi.has(l)&&!n)return mi.get(l);if(jc(l))return mi.set(l,Os),Os;var r=getComputedStyle(l),o=Bt(l)&&l.ownerSVGElement&&l.getBBox(),s=!d6&&r.boxSizing==="border-box",c=u6.test(r.writingMode||""),m=!o&&Is.test(r.overflowY||""),p=!o&&Is.test(r.overflowX||""),v=o?0:Bn(r.paddingTop),y=o?0:Bn(r.paddingRight),u=o?0:Bn(r.paddingBottom),w=o?0:Bn(r.paddingLeft),B=o?0:Bn(r.borderTopWidth),R=o?0:Bn(r.borderRightWidth),E=o?0:Bn(r.borderBottomWidth),q=o?0:Bn(r.borderLeftWidth),O=w+y,M=v+u,Z=q+R,C=B+E,_=p?l.offsetHeight-C-l.clientHeight:0,S=m?l.offsetWidth-Z-l.clientWidth:0,g=s?O+Z:0,b=s?M+C:0,j=o?o.width:Bn(r.width)-g-S,V=o?o.height:Bn(r.height)-b-_,G=j+O+S+Z,fe=V+M+_+C,Ne=to({devicePixelContentBoxSize:Eo(Math.round(j*devicePixelRatio),Math.round(V*devicePixelRatio),c),borderBoxSize:Eo(G,fe,c),contentBoxSize:Eo(j,V,c),contentRect:new Fc(w,v,j,V)});return mi.set(l,Ne),Ne},Uc=function(l,n,r){var o=Hc(l,r),s=o.borderBoxSize,c=o.contentBoxSize,m=o.devicePixelContentBoxSize;switch(n){case qo.DEVICE_PIXEL_CONTENT_BOX:return m;case qo.BORDER_BOX:return s;default:return c}},p6=function(){function l(n){var r=Hc(n);this.target=n,this.contentRect=r.contentRect,this.borderBoxSize=to([r.borderBoxSize]),this.contentBoxSize=to([r.contentBoxSize]),this.devicePixelContentBoxSize=to([r.devicePixelContentBoxSize])}return l}(),qc=function(l){if(jc(l))return 1/0;for(var n=0,r=l.parentNode;r;)n+=1,r=r.parentNode;return n},f6=function(){var l=1/0,n=[];io.forEach(function(c){if(c.activeTargets.length!==0){var m=[];c.activeTargets.forEach(function(p){var v=new p6(p.target),y=qc(p.target);m.push(v),p.lastReportedSize=Uc(p.target,p.observedBox),y<l&&(l=y)}),n.push(function(){c.callback.call(c.observer,m,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var r=0,o=n;r<o.length;r++){var s=o[r];s()}return l},Ls=function(l){io.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(qc(r.target)>l?n.activeTargets.push(r):n.skippedTargets.push(r))})})},h6=function(){var l=0;for(Ls(l);o6();)l=f6(),Ls(l);return i6()&&t6(),l>0},st,Wc=[],v6=function(){return Wc.splice(0).forEach(function(l){return l()})},m6=function(l){if(!st){var n=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return v6()}).observe(r,o),st=function(){r.textContent="".concat(n?n--:n++)}}Wc.push(l),st()},y6=function(l){m6(function(){requestAnimationFrame(l)})},xi=0,g6=function(){return!!xi},b6=250,k6={attributes:!0,characterData:!0,childList:!0,subtree:!0},Rs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],$s=function(l){return l===void 0&&(l=0),Date.now()+l},ct=!1,x6=function(){function l(){var n=this;this.stopped=!0,this.listener=function(){return n.schedule()}}return l.prototype.run=function(n){var r=this;if(n===void 0&&(n=b6),!ct){ct=!0;var o=$s(n);y6(function(){var s=!1;try{s=h6()}finally{if(ct=!1,n=o-$s(),!g6())return;s?r.run(1e3):n>0?r.run(n):r.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var n=this,r=function(){return n.observer&&n.observer.observe(document.body,k6)};document.body?r():jo.addEventListener("DOMContentLoaded",r)},l.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Rs.forEach(function(r){return jo.addEventListener(r,n.listener,!0)}))},l.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),Rs.forEach(function(r){return jo.removeEventListener(r,n.listener,!0)}),this.stopped=!0)},l}(),wt=new x6,Vs=function(l){!xi&&l>0&&wt.start(),xi+=l,!xi&&wt.stop()},w6=function(l){return!Bt(l)&&!c6(l)&&getComputedStyle(l).display==="inline"},_6=function(){function l(n,r){this.target=n,this.observedBox=r||qo.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var n=Uc(this.target,this.observedBox,!0);return w6(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},l}(),C6=function(){function l(n,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=n,this.callback=r}return l}(),yi=new WeakMap,Ps=function(l,n){for(var r=0;r<l.length;r+=1)if(l[r].target===n)return r;return-1},gi=function(){function l(){}return l.connect=function(n,r){var o=new C6(n,r);yi.set(n,o)},l.observe=function(n,r,o){var s=yi.get(n),c=s.observationTargets.length===0;Ps(s.observationTargets,r)<0&&(c&&io.push(s),s.observationTargets.push(new _6(r,o&&o.box)),Vs(1),wt.schedule())},l.unobserve=function(n,r){var o=yi.get(n),s=Ps(o.observationTargets,r),c=o.observationTargets.length===1;s>=0&&(c&&io.splice(io.indexOf(o),1),o.observationTargets.splice(s,1),Vs(-1))},l.disconnect=function(n){var r=this,o=yi.get(n);o.observationTargets.slice().forEach(function(s){return r.unobserve(n,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},l}(),S6=function(){function l(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");gi.connect(this,n)}return l.prototype.observe=function(n,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ms(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");gi.observe(this,n,r)},l.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ms(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");gi.unobserve(this,n)},l.prototype.disconnect=function(){gi.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const Mi=new WeakMap;function E6(l){var n;for(let r=0,o=l.length;r<o;++r){const s=l[r],c=Mi.get(s.target);if(typeof c=="function"){const{inlineSize:m,blockSize:p}=((n=s.borderBoxSize)==null?void 0:n[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;c(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:m??v,height:p??y}))}}}const Kc=new(so&&window.ResizeObserver||S6)(E6);function Fs(l,n){Mi.set(l,n),Kc.observe(l)}function js(l){Mi.has(l)&&(Kc.unobserve(l),Mi.delete(l))}function D6(l={}){let n=As;const r=a.watch(()=>a.unref(l.target),s=>{n(),!(!s||typeof l.onResize!="function")&&(Fs(s,l.onResize),n=()=>{js(s),n=As})},{immediate:!0}),o=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(o),{observeResize:Fs,unobserveResize:js,unobserve:o}}const B6=a.ref(!1);a.computed(()=>B6.value);const Hs="__theme_style__",ut="__theme_observer__",Us=a.reactive(new Map),qs=new Map;a.watch(Us,()=>{if(!so)return;qs.clear();const l=document.head.querySelector(`#${Hs}`);l&&document.head.removeChild(l);const n=document.createElement("style");let r=`.${ut} { width: 1px }`,o=1;for(const[s,[c,m]]of Us.entries())r+=` html.${c} .${ut}, .${m} .${ut} { width: ${++o}px }`,qs.set(o,s);n.textContent=r,n.id=Hs,document.head.appendChild(n)});const Gc=a.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(l,{expose:n,emit:r}){const o=l,s=r,c=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),m=new Map,p=a.ref(o.layout),v=a.ref(),{observeResize:y,unobserveResize:u}=D6(),w=D4();w.on("resizeEvent",B),w.on("dragEvent",R),a.onBeforeMount(()=>{s("layout-before-mount",p.value)}),a.onMounted(()=>{s("layout-mounted",p.value),a.nextTick(()=>{$4(p.value),c.originalLayout=p.value,a.nextTick(()=>{V(),v.value&&y(v.value,B4(C,16)),wo(p.value,o.verticalCompact),s("layout-updated",p.value),Z(),C()})})}),a.onBeforeUnmount(()=>{w.clearAll(),v.value&&u(v.value)});function B(fe,Ne,Se,Q,ge,J){b(fe,Ne,Se,Q,ge,J)}function R(fe,Ne,Se,Q,ge,J){g(fe,Ne,Se,Q,ge,J)}a.watch(()=>c.width,(fe,Ne)=>{a.nextTick(()=>{w.emit("updateWidth",fe),Ne===-1&&a.nextTick(()=>{s("layout-ready",p.value)}),Z()})}),a.watch(()=>[o.layout,o.layout.length],()=>{p.value=o.layout,M()}),a.watch(()=>o.colNum,fe=>{w.emit("setColNum",fe)}),a.watch(()=>o.rowHeight,fe=>{w.emit("setRowHeight",fe)}),a.watch(()=>o.isDraggable,fe=>{w.emit("setDraggable",fe)}),a.watch(()=>o.isResizable,fe=>{w.emit("setResizable",fe)}),a.watch(()=>o.isBounded,fe=>{w.emit("setBounded",fe)}),a.watch(()=>o.transformScale,fe=>{w.emit("setTransformScale",fe)}),a.watch(()=>o.responsive,fe=>{fe||(s("update:layout",c.originalLayout),w.emit("setColNum",o.colNum)),C()}),a.watch(()=>o.maxRows,fe=>{w.emit("setMaxRows",fe)}),a.watch([()=>o.margin,()=>o.margin[1]],Z),a.provide(zc,a.reactive({...a.toRefs(o),...a.toRefs(c),increaseItem:E,decreaseItem:q})),a.provide(Mc,w),n({state:c,getItem:O,resizeEvent:b,dragEvent:g,layoutUpdate:M});function E(fe){m.set(fe.i,fe)}function q(fe){m.delete(fe.i)}function O(fe){return m.get(fe)}function M(){if(!cn(p.value)&&!cn(c.originalLayout)){if(p.value.length!==c.originalLayout.length){const fe=G(p.value,c.originalLayout);if(fe.length>0)if(p.value.length>c.originalLayout.length)c.originalLayout=c.originalLayout.concat(fe);else{const Ne=new Set(fe.map(Se=>Se.i));c.originalLayout=c.originalLayout.filter(Se=>!Ne.has(Se.i))}c.lastLayoutLength=p.value.length,V()}wo(p.value,o.verticalCompact),w.emit("updateWidth",c.width),Z(),s("layout-updated",p.value)}}function Z(){c.mergedStyle={height:_()}}function C(){v.value&&(c.width=v.value.offsetWidth),w.emit("resizeEvent")}function _(){if(!o.autoSize)return;const fe=parseFloat(o.margin[1]);return T4(p.value)*(o.rowHeight+fe)+fe+"px"}let S;function g(fe,Ne,Se,Q,ge,J){let ue=ws(p.value,Ne);cn(ue)&&(ue={h:0,w:0,x:0,y:0,i:""}),fe==="dragstart"&&!o.verticalCompact&&(S=p.value.reduce((Ue,{i:Ba,x:ne,y:D})=>({...Ue,[Ba]:{x:ne,y:D}}),{})),fe==="dragmove"||fe==="dragstart"?(c.placeholder.i=Ne,c.placeholder.x=ue.x,c.placeholder.y=ue.y,c.placeholder.w=J,c.placeholder.h=ge,a.nextTick(()=>{c.isDragging=!0}),w.emit("updateWidth",c.width)):a.nextTick(()=>{c.isDragging=!1}),p.value=xt(p.value,ue,Se,Q,!0,o.preventCollision),o.restoreOnDrag?(ue.static=!0,wo(p.value,o.verticalCompact,S),ue.static=!1):wo(p.value,o.verticalCompact),w.emit("compact"),Z(),fe==="dragend"&&(S=void 0,s("layout-updated",p.value))}function b(fe,Ne,Se,Q,ge,J){let ue=ws(p.value,Ne);cn(ue)&&(ue={h:0,w:0,x:0,y:0,i:""});let Ue;if(o.preventCollision){const Ba=Oc(p.value,{...ue,w:J,h:ge}).filter(ne=>ne.i!==ue.i);if(Ue=Ba.length>0,Ue){let ne=1/0,D=1/0;Ba.forEach(re=>{re.x>ue.x&&(ne=Math.min(ne,re.x)),re.y>ue.y&&(D=Math.min(D,re.y))}),Number.isFinite(ne)&&(ue.w=ne-ue.x),Number.isFinite(D)&&(ue.h=D-ue.y)}}Ue||(ue.w=J,ue.h=ge),fe==="resizestart"||fe==="resizemove"?(c.placeholder.i=Ne,c.placeholder.x=Se,c.placeholder.y=Q,c.placeholder.w=ue.w,c.placeholder.h=ue.h,a.nextTick(()=>{c.isDragging=!0}),w.emit("updateWidth",c.width)):fe&&a.nextTick(()=>{c.isDragging=!1}),o.responsive&&j(),wo(p.value,o.verticalCompact),w.emit("compact"),Z(),fe==="resizeend"&&s("layout-updated",p.value)}function j(){const fe=j4(o.breakpoints,c.width);if(fe===c.lastBreakpoint)return;const Ne=$c(fe,o.cols);!cn(c.lastBreakpoint)&&!c.layouts[c.lastBreakpoint]&&(c.layouts[c.lastBreakpoint]=kt(p.value));const Se=H4(c.originalLayout,c.layouts,o.breakpoints,fe,c.lastBreakpoint,Ne,o.verticalCompact);c.layouts[fe]=Se,c.lastBreakpoint!==fe&&s("breakpoint-changed",fe,Se),p.value=Se,s("update:layout",Se),c.lastBreakpoint=fe,w.emit("setColNum",Ne)}function V(){c.layouts=Object.assign({},o.responsiveLayouts)}function G(fe,Ne){const Se=new Set(Ne.map(ue=>ue.i)),Q=new Set(fe.map(ue=>ue.i)),ge=fe.filter(ue=>!Se.has(ue.i)),J=Ne.filter(ue=>!Q.has(ue.i));return ge.concat(J)}return(fe,Ne)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(c.mergedStyle)},[fe.$slots.default?a.renderSlot(fe.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,Se=>(a.openBlock(),a.createBlock(zi,a.mergeProps({key:Se.i,ref_for:!0},Se),{default:a.withCtx(()=>[a.renderSlot(fe.$slots,"item",{item:Se})]),_:2},1040))),128)),a.withDirectives(a.createVNode(zi,{class:"vgl-item--placeholder",x:c.placeholder.x,y:c.placeholder.y,w:c.placeholder.w,h:c.placeholder.h,i:c.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,c.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(l)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const N6={key:0,class:"item-view-group"},T6={key:0,class:"item-view-group"},A6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:n}){const r=L.useModelComp(L.pinia),{isEdit:o}=L.storeToRefs(r),s=Jn(L.pinia),c=n,m=l,p=a.ref(""),v=a.computed(()=>m==null?void 0:m.children),y=a.computed(()=>{var Z,C,_,S;return((Z=m==null?void 0:m.children)==null?void 0:Z.length)>0&&((C=m==null?void 0:m.children)!=null&&C.every(g=>g==null?void 0:g.layout))?(S=(_=m==null?void 0:m.children)==null?void 0:_[0])==null?void 0:S.layout:"vertical"}),u=Z=>{p.value=Z,c("radioChange",Z)},w=a.computed(()=>{var Z,C;return((C=(Z=m==null?void 0:m.children)==null?void 0:Z[0])==null?void 0:C.isGridLayout)||!1}),B=a.ref((m==null?void 0:m.level)+1),R=a.computed(()=>{if(!(m!=null&&m.children)||!Array.isArray(m.children)||m.children.length<2)return!1;const Z=m.children.some(_=>(_==null?void 0:_.name)==="测量系统配置表"&&(_==null?void 0:_.comp)==="ParentItem"),C=m.children.some(_=>(_==null?void 0:_.name)==="测量系统传递表"&&(_==null?void 0:_.comp)==="ParentItem");return Z&&C}),E=a.computed(()=>{var C,_,S,g,b,j;let Z=(C=m==null?void 0:m.children)==null?void 0:C.filter(V=>V==null?void 0:V.choice);if(s.setSelectTab((_=Z==null?void 0:Z[0])==null?void 0:_.choiceName),(p==null?void 0:p.value)!=="")return(S=m==null?void 0:m.children)==null?void 0:S.filter(V=>!(V!=null&&V.choiceName)||(V==null?void 0:V.choiceName)===(p==null?void 0:p.value));{let V=(b=(g=m==null?void 0:m.children)==null?void 0:g.find(G=>G==null?void 0:G.choice))==null?void 0:b.choiceName;return(j=m==null?void 0:m.children)==null?void 0:j.filter(G=>!(G!=null&&G.choiceName)||(G==null?void 0:G.choiceName)===V)}}),q=Z=>{const C=(Z==null?void 0:Z.menuFilter)||[];return Array.isArray(C)&&(C==null?void 0:C.some(_=>{const S=typeof _=="string"?_:JSON.stringify(_);return S==null?void 0:S.includes("@PropHide=Yes")}))};a.watch(()=>m==null?void 0:m.children,()=>{R.value},{deep:!0});const O=Z=>{c("rowClick",Z)},M=(Z,C)=>{c("routeUrl",Z,C)};return(Z,C)=>w.value?(a.openBlock(),a.createBlock(a.unref(Gc),{key:0,layout:v.value,"onUpdate:layout":C[0]||(C[0]=_=>v.value=_),"is-draggable":a.unref(o)==="edit","is-resizable":a.unref(o)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(_,S)=>(a.openBlock(),a.createBlock(a.unref(zi),{key:_.i,x:_.x,y:_.y,"min-h":_.minH,"max-h":_.maxH,"min-w":_.minW,w:_.w,h:_.h,i:_.i},{default:a.withCtx(()=>{var g,b,j,V,G,fe,Ne,Se,Q,ge,J,ue,Ue,Ba;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:S===((g=m==null?void 0:m.children)==null?void 0:g.length)-1?"0px":"24px"})},[((j=(b=_==null?void 0:_.component)==null?void 0:b.comp)==null?void 0:j.toUpperCase())!=="TABLE"&&((V=_==null?void 0:_.component)!=null&&V.name)?(a.openBlock(),a.createElementBlock("div",N6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(B.value.toString())-1)*12+"px",fontWeight:600-(B.value-1)*100>=400?600-(B.value-1)*100:400,fontSize:17-B.value>=14?17-B.value+"px":"14px"})},a.toDisplayString((G=_==null?void 0:_.component)==null?void 0:G.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)((fe=_==null?void 0:_.component)==null?void 0:fe.comp)),{pageLayout:y.value,config:{showIndex:(Ne=a.unref(rr)[S])==null?void 0:Ne.showIndex,allowMove:(Se=a.unref(rr)[S])==null?void 0:Se.allowMove,viewport:(Q=a.unref(rr)[S])==null?void 0:Q.viewport,status:(ge=a.unref(rr)[S])==null?void 0:ge.status},related:_==null?void 0:_.relatedTables,compName:_==null?void 0:_.component.name,compNames:a.unref(fc),itemData:(J=_==null?void 0:_.component)==null?void 0:J.compData,childItemData:(ue=_==null?void 0:_.component)==null?void 0:ue.itemChildData,key:a.unref(Yn),cacheNewData:a.unref(pc),onChange:a.unref(Bi),index:(_==null?void 0:_.id)??S,onContentChange:a.unref(Ni),onPageChange:a.unref(Ti),parentTableId:(Ue=_==null?void 0:_.component)==null?void 0:Ue.tableId,allMapContents:a.unref(yt),children:(Ba=_==null?void 0:_.component)==null?void 0:Ba.children,level:B.value,onRowClick:O,onRouteUrl:M,onClickTrigger:a.unref(hc),onClickMainKey:a.unref(vc),onRadioChange:u},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(E.value,(_,S)=>{var g,b;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(_==null?void 0:_.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(S)===((g=m==null?void 0:m.children)==null?void 0:g.length)-1?"0px":"24px"})},[((b=_==null?void 0:_.comp)==null?void 0:b.toUpperCase())!=="TABLE"&&_.name?(a.openBlock(),a.createElementBlock("div",T6,[q(_)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(B.value.toString())>1?"12px":"0px",fontWeight:600-(B.value-1)*100>=400?600-(B.value-1)*100:400,fontSize:17-B.value>=14?17-B.value+"px":"14px"})},a.toDisplayString(_.name),5))])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(_.comp)),{compName:_.name,groupNames:_==null?void 0:_.nameContents,config:{showIndex:_==null?void 0:_.showIndex,allowMove:_==null?void 0:_.allowMove,viewport:_==null?void 0:_.viewport,status:_==null?void 0:_.status},itemData:_==null?void 0:_.compData,related:_==null?void 0:_.relatedTables,childItemData:_==null?void 0:_.itemChildData,key:a.unref(Yn),onChange:a.unref(Bi),index:(_==null?void 0:_.id)??S,onContentChange:a.unref(Ni),onPageChange:a.unref(Ti),parentTableId:_==null?void 0:_.tableId,allMapContents:a.unref(yt),children:_==null?void 0:_.children,level:B.value,onRowClick:O,onRouteUrl:M,onRadioChange:u},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),z6=Jl._export_sfc(A6,[["__scopeId","data-v-ea22b6c8"]]),M6={class:"radio-group-container"},I6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(),c=Jn(L.pinia),{selectTab:m}=L.storeToRefs(c);a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=m.value},{immediate:!0,deep:!0});const p=v=>{s.value=v,o("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",M6,[a.createVNode(dl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=u=>s.value=u),content:r==null?void 0:r.itemData,onChange:p},null,8,["modelValue","content"])]))}}),O6=Jl._export_sfc(I6,[["__scopeId","data-v-ed48c2f8"]]),Yc=a.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),L6={TABLE:bc,FORM:ys,STATICFORM:kc,TABLEOPERATE:N1,TABLESTYLE:q1,TABLEEXTEND:K1,TABLEINTERACTION:J1,FORMOPERATE:gs,FOLD:E2,CALCULATOR:z2,METHODBUTTON:O2,AVATARUPLOAD:Qt.ssAvatar,SIGNATURE:Qt.ssSignature,FORMTOP:ys,STEP:K2,STEPOPERATE:y2,TIMELINE:Q2,TIMELINEOPERATE:_2,FORMTOPOPERATE:gs,SIGNATUREOPERATE:U2,AVATARUPLOADOPERATE:$2,TABS:lh,TABSOPERATE:Fh,CHART:a4,CHARTOPERATE:p4,LAYOUT:v4,LAYOUTOPERATE:C4,PARENTITEM:z6,RADIO:O6};function No(l){return L6[l==null?void 0:l.toUpperCase()]||null}exports.De=Gc;exports.activeStepInfo=_o;exports.addContents=Ho;exports.addVisibleDialog=Et;exports.affixItems=n0;exports.allMapContents=yt;exports.analyzeFilter=Co;exports.analyzeForm=Md;exports.analyzeQuoteForm=zd;exports.analyzeTable=Od;exports.cacheNewData=pc;exports.clickMainKey=vc;exports.clickSavePage=r0;exports.clickStep=yc;exports.clickTrigger=hc;exports.compId=Yn;exports.compNames=fc;exports.compShow=Bo;exports.createRobotContent=oc;exports.existLayouts=p0;exports.fixChangeValue=_t;exports.generateLayouts=F1;exports.getComponent=No;exports.getComponents=Uo;exports.getPageData=Wr;exports.getSliceContLength=g0;exports.gridRowHeight=L1;exports.isStepLayout=gc;exports.onBack=a0;exports.onButtonChange=s0;exports.onChange=Bi;exports.onClick=l0;exports.onClickStep=f0;exports.onContentChange=Ni;exports.onExtendTaskEnd=d0;exports.onOk=c0;exports.onPageBack=v0;exports.onPageChange=Ti;exports.onSelectFixContent=e0;exports.partToQuote=Si;exports.renderShowItems=uc;exports.robotFile=Tf;exports.showItems=rr;exports.sliceTableLength=dc;exports.slotContent=Yc;exports.ssTable=bc;exports.st=zi;exports.stepItems=b0;exports.tabChange=h0;exports.toolBar=u0;exports.useFormComp=Ct;exports.useModelLoader=lf;exports.verifyButton=m0;